/* ============================================================
   Seralog — landing page styles
   Brand (from the app's theme/tokens.dart):
     paper  #F6F3EE   ink      #231F19   ink-muted #6B6459
     teal   #14707F   teal-dk  #155E6B   teal-tint #E7F0F1
     amber  #B08340   amber-dk #8A5A16   sand/border #E7E0D4
   No web fonts (system stack) for a fast LCP. No alarm-red anywhere.
   ============================================================ */

:root {
  --paper:      #F6F3EE;
  --paper-2:    #FBF9F5;
  --card:       #FFFFFF;
  --ink:        #231F19;
  --ink-2:      #4B453C;
  --ink-muted:  #6B6459;
  --ink-faint:  #948B7D;
  --teal:       #14707F;
  --teal-dk:    #155E6B;
  --teal-tint:  #E7F0F1;
  --teal-ink:   #0E4A54;
  --amber:      #B08340;
  --amber-dk:   #8A5A16;
  --sand:       #EFEADF;
  --border:     #E5DECF;
  --border-2:   #EDE7DB;
  --radius:     18px;
  --radius-sm:  12px;
  --shadow:     0 1px 2px rgba(35,31,25,.06), 0 12px 30px -14px rgba(35,31,25,.18);
  --shadow-lg:  0 2px 4px rgba(35,31,25,.06), 0 30px 60px -24px rgba(35,31,25,.28);
  --maxw:       1120px;
  --font:       -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }
a  { color: var(--teal-dk); }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 700; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.center { text-align: center; }
.accent { color: var(--teal); }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  z-index: 100; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px;
}

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons + badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 800; font-size: 1rem; line-height: 1; text-decoration: none;
  padding: 14px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 22px -10px rgba(20,112,127,.7); }
.btn-primary:hover { background: var(--teal-dk); }
.btn-outline { background: #fff; color: var(--teal-dk); border-color: var(--border); }
.btn-outline:hover { border-color: var(--teal); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 18px; border-radius: 14px; transition: transform .12s ease, background .12s;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { flex: 0 0 auto; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge small { font-size: .66rem; opacity: .85; font-weight: 500; }
.store-badge strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.store-badge.soon { background: transparent; color: var(--ink-muted); border: 1.5px dashed var(--border); cursor: default; }
.store-badge.soon:hover { transform: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,243,238,.82); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; }
.brand-mark { border-radius: 9px; box-shadow: 0 1px 4px rgba(35,31,25,.18); }
.brand-name { font-size: 1.18rem; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.nav-links a:hover { color: var(--teal-dk); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 20px 18px; background: var(--paper-2); border-bottom: 1px solid var(--border); }
.mobile-menu a { padding: 12px 6px; text-decoration: none; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--border-2); }
.mobile-menu a.btn { border: 2px solid transparent; color: #fff; margin-top: 8px; }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin: 0 auto clamp(28px, 5vw, 52px); text-align: center; }
.section-sub { color: var(--ink-muted); font-size: 1.08rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; font-weight: 800; color: var(--teal); margin: 0 0 .6em; }
.eyebrow-light { color: #BFE3E7; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy .lede { font-size: 1.18rem; color: var(--ink-2); max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.center-row { justify-content: center; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 8px 0 0; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.trust-row svg { color: var(--teal); }

.hero-art { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 420px; }
.sero-hero { position: absolute; right: -6px; bottom: -8px; width: clamp(150px, 24vw, 220px); height: auto; filter: drop-shadow(0 18px 30px rgba(35,31,25,.22)); }

/* phone frame */
.phone {
  width: clamp(230px, 30vw, 288px); background: #1c1a16; border-radius: 34px;
  padding: 9px; box-shadow: var(--shadow-lg); position: relative;
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 42%; height: 20px; background: #1c1a16; border-radius: 0 0 14px 14px; z-index: 2; }
.phone img { border-radius: 26px; width: 100%; }
.phone-hero { transform: rotate(-1.4deg); }
.phone-sm { width: clamp(200px, 26vw, 250px); }

/* ---------- answer capsule (AEO) ---------- */
.band-capsule { background: var(--teal-tint); border-top: 1px solid #D5E6E8; border-bottom: 1px solid #D5E6E8; padding: 28px 0; }
.capsule { max-width: 900px; margin: 0 auto; text-align: center; font-size: 1.12rem; color: var(--teal-ink); line-height: 1.65; }
.capsule strong { color: var(--teal-dk); }

/* ---------- bands ---------- */
.band { padding: clamp(44px, 7vw, 76px) 0; }
.band-empathy { background: var(--paper-2); border-block: 1px solid var(--border); }
.empathy-grid { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.sero-side { justify-self: center; filter: drop-shadow(0 14px 24px rgba(35,31,25,.16)); }
.empathy-kicker { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.src-note { font-size: .82rem; color: var(--ink-faint); margin-top: 1rem; }

/* ---------- feature pillars ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; margin: clamp(40px, 6vw, 72px) 0; }
.feature--reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-copy { max-width: 46ch; }
.pose { height: 84px; width: auto; margin-bottom: 8px; filter: drop-shadow(0 8px 14px rgba(35,31,25,.16)); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2314707F' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* ---------- duo (report + insights) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); text-align: center; position: relative; }
.duo-card .phone, .duo-card .doc-frame { margin: 0 auto 18px; }
.doc-frame { width: clamp(200px, 26vw, 250px); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 10px; box-shadow: var(--shadow); }
.doc-frame img { border-radius: 8px; }
.pose-inline { height: 62px; width: auto; margin: -46px auto 6px; position: relative; }
.tag-plus { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .02em; color: var(--amber-dk); background: #F3E9D8; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 999px; background: var(--teal); color: #fff; font-weight: 800; margin-bottom: 12px; }

/* ---------- comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; background: var(--card); min-width: 560px; }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--border-2); font-size: .98rem; }
.compare thead th { background: var(--paper-2); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); }
.compare tbody th { font-weight: 700; color: var(--ink); }
.compare td { color: var(--ink-muted); }
.compare .us { background: var(--teal-tint); color: var(--teal-ink); font-weight: 600; }
.compare thead .us { background: var(--teal); color: #fff; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; max-width: 820px; margin: 0 auto; align-items: start; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow); }
.plan-featured { border: 2px solid var(--teal); box-shadow: var(--shadow-lg); position: relative; }
.plan-flag { position: absolute; top: -13px; left: 28px; background: var(--amber); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin: 0; }
.plan-name { margin: 0 0 6px; }
.plan-price { margin: 0 0 16px; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; }
.plan-price .per { color: var(--ink-muted); margin-left: 6px; }
.price-choice { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.pc { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pc-year { background: var(--teal-tint); border-color: #CFE4E6; }
.pc-amt { font-size: 1.5rem; font-weight: 800; }
.pc-per { color: var(--ink-muted); }
.pc-right { text-align: right; display: flex; flex-direction: column; }
.pc-save { font-size: .72rem; font-weight: 800; color: var(--amber-dk); }
.pc-sub { font-size: .82rem; color: var(--ink-muted); }
.plan .btn { width: 100%; margin-top: 6px; }
.plan-fineprint { font-size: .78rem; color: var(--ink-faint); margin: 10px 0 0; text-align: center; }

/* ---------- privacy band ---------- */
.band-privacy { background: linear-gradient(160deg, var(--teal-dk), var(--teal-ink)); color: #EAF6F7; }
.privacy-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.band-privacy h2 { color: #fff; }
.band-privacy .link-arrow { color: #CFF0F3; font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }
.band-privacy .link-arrow:hover { text-decoration: underline; }
.ticks-light li { color: #DCEFF1; }
.ticks-light li::before { background: rgba(255,255,255,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='m9.5 16.2-3.7-3.7 1.4-1.4 2.3 2.3 6-6 1.4 1.4z'/%3E%3C/svg%3E") center/16px no-repeat; }
.sero-privacy { filter: drop-shadow(0 16px 28px rgba(0,0,0,.3)); }

/* ---------- meet Sero ---------- */
.coach-grid { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.coach-meet { justify-self: center; filter: drop-shadow(0 16px 26px rgba(35,31,25,.18)); }
.pull { border-left: 4px solid var(--teal); margin: 18px 0; padding: 4px 0 4px 18px; font-size: 1.25rem; font-weight: 700; color: var(--ink); font-style: italic; }
.pull-brand { border-color: var(--amber); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--teal); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq-body { padding: 0 20px 18px; color: var(--ink-2); }
.faq-body p { margin: 0; }

/* ---------- final CTA ---------- */
.band-cta { background: var(--teal-tint); border-block: 1px solid #D5E6E8; text-align: center; }
.cta-final { max-width: 640px; }
.cta-final h2 { color: var(--teal-ink); }
.cta-final p { color: var(--ink-2); font-size: 1.1rem; }
.coach-cta { width: 140px; height: auto; margin: 0 auto 8px; filter: drop-shadow(0 14px 22px rgba(35,31,25,.2)); }

/* ---------- footer ---------- */
.site-footer { background: #211D17; color: #CFC8BC; padding: 44px 0 30px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand-name { color: #fff; }
.footer-tag { color: #A79E90; margin: 10px 0 0; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: #CFC8BC; text-decoration: none; font-weight: 600; font-size: .94rem; }
.footer-links a:hover { color: #fff; }
.disclaimer { font-size: .8rem; color: #8F8779; margin: 20px 0 8px; max-width: 92ch; }
.copyright { font-size: .82rem; color: #A79E90; margin: 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu.open { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { max-width: none; }
  .cta-row { justify-content: center; }
  .trust-row { justify-content: center; }
  .hero-art { min-height: 0; margin-top: 8px; }

  .feature, .feature--reverse .feature-media { grid-template-columns: 1fr; order: 0; }
  .feature-media { order: 0 !important; }
  .feature-copy { max-width: none; margin: 0 auto; text-align: center; }
  .feature-copy .pose { margin-left: auto; margin-right: auto; }
  .feature-copy .ticks { text-align: left; display: inline-block; }

  .empathy-grid, .privacy-grid, .coach-grid { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .empathy-grid .sero-side, .privacy-grid .sero-side, .coach-meet { max-width: 200px; }
  .ticks-light { display: inline-block; text-align: left; }

  .duo, .steps, .plans { grid-template-columns: 1fr; }
  .plans { max-width: 440px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .store-badge { padding: 10px 16px; }
  .cta-row { flex-direction: column; }
  .cta-row .store-badge { justify-content: center; }
}
