/* samiio.com: same palette and type as the app (src/constants/theme.js) */
:root {
  --cream: #F7F3EC;
  --surface: #FFFFFF;
  --sand: #EFE8DD;
  --line: #E4DCCF;
  --ink: #1F2622;
  --ink-soft: #4A4640;
  --ink-muted: #6F675C;
  --hero: #1F3B3C;
  --hero-raised: #2E4E4F;
  --hero-muted: #A9BDB9;
  --hero-soft: #C9D6D3;
  --teal: #2E6466;
  --teal-soft: #E7F0EE;
  --gold: #E9C58B;
  --clay-text: #9A4F17;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --gutter: 80px;
  --radius-card: 28px;
  --shadow-card: 0 8px 20px rgba(60, 45, 30, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); }
a:hover { color: var(--hero); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 100px; background: var(--gold); color: var(--hero); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 110px 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); }
.eyebrow.on-dark { color: var(--gold); }
.h2 { font-size: 52px; line-height: 1.15; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.italic-accent { font-style: italic; color: var(--teal); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.section-head.center { align-items: center; max-width: 860px; }

/* ── Nav ── */
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--display); font-size: 30px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }
.dark .wordmark { color: var(--cream); }
.dark .nav-links a { color: var(--hero-soft); }
.dark .nav-links a:hover { color: var(--cream); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border: 0; border-radius: 100px; font-family: var(--body); font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--hero); }
.btn-gold:hover { background: #F0D3A2; color: var(--hero); }
.btn-dark { background: var(--hero); color: var(--cream); }
.btn-dark:hover { background: #28494A; color: var(--cream); }
.nav-links .btn { color: var(--hero); }
.dark .nav-links .btn { color: var(--hero); }

/* ── Waitlist form ── */
.waitlist { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 540px; text-align: left; }
.waitlist label { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.waitlist .row { display: flex; gap: 8px; }
.waitlist input[type="email"] { flex: 1 1 0; min-width: 0; height: 54px; padding: 0 20px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 16px; }
.waitlist .btn { height: 54px; padding: 0 26px; }
.waitlist .note { font-size: 13px; color: var(--ink-muted); min-height: 20px; }
.waitlist .note.success { color: var(--teal); font-weight: 600; }
.waitlist .note.error { color: #B3261E; font-weight: 600; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dark .waitlist label, .dark .waitlist .note { color: var(--hero-muted); }
.dark .waitlist input[type="email"] { border: 0; background: var(--hero-raised); color: var(--cream); }
.dark .waitlist input::placeholder { color: var(--hero-muted); }
.dark .waitlist .note.success { color: var(--gold); }
.dark .waitlist .note.error { color: #F2B8B5; }

/* ── Phones: each screen is drawn at the app's real 390 x 844 and scaled ── */
.phone { --s: 0.74; flex-shrink: 0; width: calc(390px * var(--s) + 20px); height: calc(844px * var(--s) + 20px); padding: 10px; border-radius: calc(50px * var(--s) + 10px); background: #151A17; box-shadow: 0 30px 60px rgba(20, 26, 23, 0.28); }
.phone .viewport { width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(50px * var(--s)); overflow: hidden; }
.phone .screen { width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; }

/* ── Hero ── */
.hero { background: var(--hero); overflow: hidden; }
.hero-body { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 44px; text-align: center; }
.hero h1 { font-size: 80px; line-height: 1.08; letter-spacing: -1px; color: var(--cream); max-width: 1040px; }
.hero h1 em { color: var(--gold); }
.hero .lead { color: var(--hero-soft); max-width: 700px; font-size: 20px; }
.hero-phones { display: flex; gap: 36px; align-items: flex-start; justify-content: center; margin-top: 18px; height: 560px; }
.hero-phones .side { margin-top: 90px; }
.hero-phones .side.left { transform: rotate(-6deg); }
.hero-phones .side.right { transform: rotate(6deg); }
.hero-phones .side .phone { --s: 0.68; }

/* ── Your data ── */
.data-flow { display: flex; align-items: center; gap: 40px; }
.sources { width: 380px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-card); }
.source { padding: 22px; display: flex; gap: 16px; align-items: flex-start; }
.source h3 { font-size: 22px; line-height: 1.3; margin-bottom: 6px; }
.source p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-circle.sm { width: 40px; height: 40px; }
.flow-arrow { flex-shrink: 0; color: var(--gold); }
.data-flow .phone { --s: 0.72; }
.insights { flex: 1 1 0; display: flex; flex-direction: column; gap: 14px; }
.insights h3 { font-size: 26px; }
.insight { background: var(--hero); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.insight span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--gold); }
.insight p { font-family: var(--display); font-size: 20px; line-height: 1.35; color: var(--cream); }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; }
.promise { display: flex; gap: 14px; align-items: flex-start; }
.promise h3 { font-family: var(--body); font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.promise p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.disclaimer { margin-top: 40px; font-size: 13px; color: var(--ink-muted); text-align: center; }

/* ── Features: one row per feature, alternating sides ── */
.features { background: var(--surface); }
.features .section-head { margin-bottom: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step h3 { font-size: 26px; font-weight: 500; line-height: 1.25; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); }
.feature-row { display: flex; align-items: center; justify-content: space-between; gap: 96px; padding: 72px 0; scroll-margin-top: 24px; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 0; max-width: 580px; display: flex; flex-direction: column; gap: 20px; }
.feature-copy h3 { font-size: 44px; line-height: 1.15; }
.feature-copy .lead { font-size: 18px; }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; color: var(--ink); }
.ticks svg { flex-shrink: 0; margin-top: 1px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.feature-visual { position: relative; flex-shrink: 0; width: 440px; display: flex; justify-content: center; padding: 36px 0; }
.feature-visual::before { content: ''; position: absolute; inset: 0 20px; border-radius: 48px; background: var(--sand); }
.feature-visual .phone { position: relative; --s: 0.78; }
.notif { position: absolute; z-index: 2; left: -80px; top: 0; }
.pillars { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pillar { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--cream); }
.pillar .pts { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--hero); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; }
.pillar h4 { margin: 0; font-size: 16px; }
.pillar p { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.small-note { font-size: 14px; color: var(--ink-muted); }

/* ── Community ── */
.community { display: flex; align-items: center; gap: 90px; }
.community .phone { --s: 0.8; }
.community-copy { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 8px; }
.mini { padding: 20px; display: flex; flex-direction: column; gap: 6px; border-radius: 22px; }
.mini h3 { font-size: 21px; }
.mini p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

/* ── How it works ── */
.how { padding-top: 20px; }
.step { background: var(--surface); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-card); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--hero); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 24px; }

/* ── About Sam ── */
.sam { background: var(--hero); }
.sam-inner { display: flex; align-items: center; gap: 80px; }
.sam-photo { width: 440px; height: 520px; flex-shrink: 0; border-radius: 32px; background: var(--hero-raised); color: var(--hero-muted); display: flex; align-items: center; justify-content: center; font-size: 16px; overflow: hidden; }
.sam-photo img { width: 100%; height: 100%; object-fit: cover; }
.sam-copy { display: flex; flex-direction: column; gap: 24px; }
.sam-copy .h2 { color: var(--cream); }
.sam-copy .lead { color: var(--hero-soft); }
.sam-quote { font-family: var(--display); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--gold); }

/* ── Library ── */
.library-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.library-head .lead { max-width: 480px; font-size: 18px; }
.covers { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.cover { position: relative; width: 240px; height: 168px; flex-shrink: 0; border-radius: 18px; overflow: hidden; }
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.cover .cat { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.cover .cat i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cover .title { position: absolute; left: 14px; bottom: 12px; right: 45%; font-family: var(--display); font-size: 21px; line-height: 25px; font-weight: 500; }

/* ── Final call to action ── */
.cta { margin-bottom: 110px; border-radius: 40px; background: var(--hero); padding: 80px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.cta .h2 { font-size: 60px; color: var(--cream); max-width: 900px; }
.cta .h2 em { color: var(--gold); }
.cta .lead { color: var(--hero-soft); max-width: 620px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 40px; padding-bottom: 56px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer small { font-size: 14px; color: var(--ink-muted); }

/* ── Legal and support pages ── */
.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 56px; line-height: 1.1; }
.page-head p { margin-top: 12px; color: var(--ink-muted); font-size: 15px; }
.prose { max-width: 760px; padding: 48px 0 110px; }
.prose h2 { font-size: 28px; line-height: 1.3; margin: 44px 0 12px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.contact-card { margin-top: 48px; padding: 28px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-card); }
.contact-card h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; color: var(--ink); list-style-position: outside; }
.faq details p { margin-top: 10px; }

/* ── Tablet ── */
@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 64px; }
  .data-flow { flex-wrap: wrap; justify-content: center; }
  .sources { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-arrow { display: none; }
  .insights { flex-basis: 360px; }
  .community { gap: 48px; }
  .sam-inner { gap: 48px; }
  .sam-photo { width: 360px; height: 440px; }
  .feature-row { gap: 48px; }
  .feature-copy h3 { font-size: 36px; }
  .feature-visual { width: 380px; }
  .feature-visual .phone { --s: 0.7; }
  .notif { left: -30px; }
}

/* ── Phone ── */
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .h2 { font-size: 34px; }
  .lead { font-size: 17px; }
  .section-head { margin-bottom: 32px; }
  .nav { height: 72px; }
  .wordmark { font-size: 26px; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; left: 12px; right: 12px; top: 72px; z-index: 20; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px; border-radius: 24px; background: var(--surface); box-shadow: 0 20px 40px rgba(20, 26, 23, 0.18); }
  .nav-links.open { display: flex; }
  .nav-links a, .dark .nav-links a { color: var(--ink); padding: 12px 14px; font-size: 16px; }
  .nav-links .btn { margin-top: 6px; }
  .nav-wrap { position: relative; }
  .hero-body { padding-top: 16px; gap: 20px; }
  .hero h1 { font-size: 44px; }
  .hero .lead { font-size: 17px; }
  .hero-phones { height: 480px; margin-top: 8px; }
  .hero-phones .side { display: none; }
  .waitlist .row { flex-direction: column; }
  .waitlist input[type="email"] { flex: none; width: 100%; }
  .sources { grid-template-columns: 1fr; }
  .insights { flex-basis: 100%; }
  .promises, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { flex-direction: column; align-items: stretch; gap: 28px; padding: 48px 0; }
  .feature-copy h3 { font-size: 30px; }
  .feature-visual { width: 100%; padding: 24px 0; }
  .feature-visual::before { inset: 0; border-radius: 32px; }
  .feature-visual .phone { --s: 0.72; }
  .notif { left: 50%; top: 12px; transform: translateX(-50%) scale(0.9); }
  .promises { margin-top: 40px; }
  .community { flex-direction: column-reverse; gap: 40px; }
  .community .phone { --s: 0.72; }
  .sam-inner { flex-direction: column; align-items: stretch; }
  .sam-photo { width: 100%; height: 320px; }
  .sam-quote { font-size: 20px; }
  .library-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .cover { width: 200px; height: 140px; }
  .cover .title { font-size: 18px; line-height: 22px; }
  .cta { margin-bottom: 64px; padding: 40px 22px; border-radius: 28px; }
  .cta .h2 { font-size: 34px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .page-head { padding: 40px 0 28px; }
  .page-head h1 { font-size: 40px; }
  .prose { padding: 32px 0 72px; }
  .prose h2 { font-size: 24px; margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.dark .nav-toggle { color: var(--cream); }

/* Sam's quote */
.sam-quote-wrap { margin: 4px 0 0; }
.sam-quote { margin: 0; }
.sam-quote-wrap figcaption { margin-top: 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; color: var(--hero-muted); }
