/* ---------- tokens ---------- */
:root {
  --bg: #f5efe6;
  --bg-card: #ffffff;
  --bg-dark: #1f1a14;
  --ink: #221d18;
  --ink-soft: #5b524a;
  --ink-on-dark: #f5efe6;
  --ink-on-dark-soft: #b8aea2;
  --rule: #e6dccf;
  --accent: #b3552a;
  --accent-hover: #c9612e;
  --accent-soft: #e9d6c4;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 14px;
}

/* ---------- reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ---------- header ---------- */
.site-header {
  padding: 28px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.site-header nav {
  display: flex;
  gap: clamp(18px, 3vw, 28px);
  align-items: baseline;
}
.site-header nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- hero ---------- */
.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(40px, 7vw, 80px);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto 24px;
  text-align: center;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 36px;
  text-align: center;
}
.hero .waitlist-form { margin: 0 auto; justify-content: center; }
.micro {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------- form ---------- */
.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.15s, outline 0.15s;
}
.waitlist-form input::placeholder { color: var(--ink-soft); }
.waitlist-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.waitlist-form button {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--ink-on-dark);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}
.waitlist-form button:hover { background: var(--accent); }
.waitlist-form button:active { transform: scale(0.98); }
.waitlist-form button:disabled { opacity: 0.6; cursor: default; transform: none; }
.waitlist-form.success button { background: var(--accent); }

/* ---------- hero image ---------- */
.hero-image {
  margin-top: clamp(48px, 7vw, 72px);
  display: flex;
  justify-content: center;
}
.hero-image img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  border-radius: 18px;
  box-shadow:
    0 30px 60px -20px rgba(34, 29, 24, 0.25),
    0 10px 20px -8px rgba(34, 29, 24, 0.12);
}

/* ---------- conversation example (in "How it works") ---------- */
.conversation-example {
  margin: clamp(56px, 7vw, 80px) auto 0;
  max-width: 560px;
}
.example-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 16px;
}

/* ---------- iPad mockup (used in "How it works" example) ---------- */
.ipad-frame {
  background: linear-gradient(140deg, var(--accent-soft), #ede2d3);
  border: 1px solid var(--rule);
  border-radius: 28px;
  padding: 22px;
  max-width: 620px;
  width: 100%;
  box-shadow:
    0 30px 60px -20px rgba(34, 29, 24, 0.18),
    0 10px 20px -8px rgba(34, 29, 24, 0.10);
}
.ipad-screen {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: left;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.chat-line {
  font-size: 16px;
  line-height: 1.5;
  padding: 12px 18px;
  border-radius: 14px;
  max-width: 88%;
}
.chat-line.user {
  background: var(--bg);
  color: var(--ink-soft);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-line.assistant {
  background: var(--accent);
  color: #fff;
  align-self: flex-start;
  font-weight: 500;
  border-bottom-left-radius: 4px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.9s forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- section base ---------- */
.for-you, .for-them, .larger, .props, .how, .engagement, .logistics, .family, .pricing, .privacy, .gallery, .exchange, .closing-tag, .about-page, .waitlist-section {
  padding: clamp(60px, 9vw, 110px) 0;
}
.closing-tag { padding: clamp(36px, 5vw, 56px) 0; }
/* Universal seam: any adjacent in-main sections get a top divider, plus the section-to-footer seam. */
main > section + section,
section + footer { border-top: 1px solid var(--rule); }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: clamp(40px, 6vw, 60px);
  text-align: center;
}

/* ---------- props ---------- */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
/* For 5 cards on a 6-col grid: top row 3 cards (span 2 each = 6), bottom row 2 cards centered (offset 1, span 2 each, offset 1) */
.prop-grid > .prop { grid-column: span 2; }
.prop-grid > .prop:nth-child(4) { grid-column: 2 / span 2; }
.prop-grid > .prop:nth-child(5) { grid-column: 4 / span 2; }

/* 4-card variant (home): clean 2x2 grid */
.prop-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  max-width: 920px;
  margin: 0 auto;
}

.prop {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px;
}
.prop h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.prop p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 680px;
  margin: 0 auto;
}
.steps li {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--accent);
  width: 36px;
  line-height: 1;
  padding-top: 2px;
}
.steps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.steps p { color: var(--ink-soft); }

/* ---------- prose sections (for-you, for-them, larger, engagement, logistics) ---------- */
.for-you h2, .for-them h2, .larger h2, .engagement h2, .logistics h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.for-you-body, .for-them-body, .larger-body, .engagement-body, .logistics-body {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.for-you-body p, .for-them-body p, .larger-body p, .engagement-body p, .logistics-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- example queries (italic serif callout used in prose sections) ---------- */
.example-queries {
  list-style: none;
  padding: 8px 0 8px 18px;
  margin: 2px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-left: 2px solid var(--accent-soft);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.45;
  color: var(--ink);
}

/* ---------- family ---------- */
.family h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.family-body {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.family-body p {
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}

/* ---------- pricing ---------- */
.pricing { text-align: center; }
.pricing h2 { margin-bottom: 20px; }
.pricing-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  color: var(--accent);
  margin: 0 auto 24px;
  max-width: 720px;
  line-height: 1.4;
}
.pricing-body {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
}
.cta {
  display: inline-block;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--ink-on-dark);
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.15s;
}
.cta:hover { background: var(--accent); }

/* ---------- privacy (full section before waitlist) ---------- */
.privacy { text-align: center; }
.privacy .lock-icon {
  display: block;
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  margin: 0 auto clamp(20px, 3vw, 28px);
  color: var(--accent);
}
.privacy h2 { margin-bottom: clamp(20px, 3vw, 28px); }
.privacy-body {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.privacy-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- waitlist (dark) ---------- */
.waitlist-section {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  border-top: none;
  text-align: center;
}
.waitlist-section h2 { color: var(--ink-on-dark); }
.waitlist-section p {
  max-width: 540px;
  margin: 0 auto 32px;
  color: var(--ink-on-dark-soft);
}
.waitlist-section .waitlist-form { margin: 0 auto; justify-content: center; }
.waitlist-section .waitlist-form input {
  background: #2a241d;
  border-color: #3a322a;
  color: var(--ink-on-dark);
}
.waitlist-section .waitlist-form input::placeholder { color: var(--ink-on-dark-soft); }
.waitlist-section .waitlist-form input:focus {
  outline-color: var(--accent);
  border-color: var(--accent);
}
.waitlist-section .waitlist-form button {
  background: var(--accent);
  color: #fff;
}
.waitlist-section .waitlist-form button:hover { background: var(--accent-hover); }

/* ---------- footer ---------- */
footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .wordmark { font-size: 1.1rem; color: var(--ink); }
.copyright { font-size: 0.88rem; }
.footer-inner a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.footer-inner a:hover { color: var(--accent); }
.footer-disclaimer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---------- about page ---------- */
.about-page h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.about-body {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about-body p {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
}
.about-body p.about-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ---------- next-page link (between sub-page sections) ---------- */
.next-page {
  padding: clamp(36px, 5vw, 56px) 0 clamp(48px, 7vw, 72px);
  text-align: center;
}
.next-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  transition: transform 0.1s;
}
.next-link:hover { transform: translateY(-1px); }
.next-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.next-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  letter-spacing: -0.01em;
  color: var(--accent);
  transition: color 0.15s;
}
.next-link:hover .next-title { color: var(--accent-hover); }

/* ---------- founder note (families) ---------- */
.founder-note {
  padding: clamp(48px, 7vw, 80px) 0;
  text-align: center;
}
.founder-note p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- gallery (product screenshots) ---------- */
.gallery h2 { margin-bottom: clamp(16px, 2.5vw, 24px); }
.gallery-intro {
  max-width: 600px;
  margin: 0 auto clamp(40px, 6vw, 60px);
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  max-width: 1040px;
  margin: 0 auto;
}
.gallery-item {
  display: flex;
  flex-direction: column;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--bg-card);
  box-shadow:
    0 18px 36px -22px rgba(34, 29, 24, 0.25),
    0 6px 12px -6px rgba(34, 29, 24, 0.12);
}
.gallery-item figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 16px;
  line-height: 1.4;
  padding: 0 8px;
}

/* ---------- typical exchange (own section on /product) ---------- */
.exchange { text-align: center; }
.exchange .ipad-frame { margin: 0 auto; }

/* ---------- privacy tagline (subhead under privacy h2) ---------- */
.privacy-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink);
  text-align: center;
  max-width: 600px;
  margin: 0 auto clamp(20px, 3vw, 28px);
  line-height: 1.4;
}

/* ---------- closing tag (small founder/about line at end of long pages) ---------- */
.closing-tag { text-align: center; }
.closing-tag p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 720px;
  margin: 0 auto;
}
.closing-tag-link {
  color: var(--accent);
  font-style: normal;
  white-space: nowrap;
  margin-left: 6px;
  transition: color 0.15s;
}
.closing-tag-link:hover { color: var(--accent-hover); }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .prop-grid, .prop-grid-4 { grid-template-columns: 1fr; }
  .prop-grid > .prop,
  .prop-grid > .prop:nth-child(4),
  .prop-grid > .prop:nth-child(5) { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr; max-width: 380px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input { flex: 0 0 auto; width: 100%; }
  .waitlist-form button { width: 100%; }
  .ipad-screen { padding: 24px 20px; }
  .chat-line { font-size: 15px; }
  .footer-inner { justify-content: center; text-align: center; }
  .steps li { gap: 18px; }
  .step-num { font-size: 1.4rem; }
}
@media (max-width: 520px) {
  .site-header nav { gap: 14px; font-size: 0.88rem; }
}
