/* ============================================================
   RELATE — stylesheet (new brand, Oct 2026)
   Palette + type match the Relate app demo:
   cream / navy / royal blue / gold, Fraunces headlines,
   Atkinson Hyperlegible body, Caveat for handwritten accents.
   Dark mode follows the visitor's system setting.
   (Previous forest-green stylesheet kept as css/style.old.css)
   ============================================================ */

:root{
  --bg:         #FBF8F1;   /* warm cream page */
  --surface:    #FFFDF8;   /* cards, forms */
  --surface-alt:#F2EFE6;   /* soft sections */
  --ink:        #14214A;   /* navy text + headlines */
  --muted:      #5A6278;
  --primary:    #2546B8;   /* royal blue */
  --primary-hi: #1F3AA0;
  --on-primary: #FBF8F1;
  --tint:       #E8EDFB;   /* faint blue for icon chips, notes */
  --gold:       #F2C14E;
  --gold-ink:   #8A6A12;   /* gold dark enough to read on cream */
  --hairline:   #E3DFD3;
  --band:       #14214A;   /* dark call-to-action bands */
  --footer:     #0B1433;
  --header-bg:  rgba(251,248,241,.92);
  --pill-shadow: 0 8px 20px -8px rgba(37,70,184,.5);
  --card-shadow: 0 24px 60px -30px rgba(20,33,74,.38);
  --r-pill: 999px;
  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --container: 1180px;
  --ease: cubic-bezier(.2,0,0,1);
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Caveat', 'Segoe Script', cursive;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0B1433; --surface:#131F47; --surface-alt:#101A3C;
    --ink:#E8ECF8; --muted:#A3AECB; --primary:#F2C14E; --primary-hi:#F7CF6E; --on-primary:#0B1433;
    --tint:#1A2755; --gold-ink:#F2C14E; --hairline:#26335E; --band:#1A2755; --footer:#060C22;
    --header-bg:rgba(11,20,51,.92);
    --pill-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
    --card-shadow: 0 24px 60px -30px rgba(0,0,0,.7);
  }
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--font-body); font-size:17px; line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--gold); color:#14214A; }
:focus-visible{ outline:3px solid var(--gold); outline-offset:3px; border-radius:6px; }

h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; line-height:1.14; margin:0 0 .5em; color:var(--ink); letter-spacing:-.015em; }
h1{ font-size:clamp(2.1rem,4.4vw,3.4rem); text-wrap:balance; }
h2{ font-size:clamp(1.9rem,3.4vw,2.7rem); text-wrap:balance; }
h3{ font-size:1.3rem; }
p{ margin:0 0 1em; color:var(--muted); }
a{ color:inherit; text-decoration:none; }
.mission a,.form-note a,.fine a{ color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; background:none; border:none; color:inherit; }

.container{ max-width:var(--container); margin:0 auto; padding:0 24px; }
.section{ padding:120px 0; }
.section--soft{ background:var(--surface-alt); }
.section--green{ background:var(--band); }
.section--green h1,.section--green h2,.section--green h3{ color:#FBF8F1; }
.section--green p{ color:#C7CEE6; }
.section-head{ max-width:720px; margin:0 auto 72px; text-align:center; }
.section-head p{ font-size:1.15rem; }

/* handwritten eyebrow (matches the app's "Be present. Live more." tagline) */
.pill-label{
  display:inline-block;
  font-family:var(--font-hand); font-weight:600;
  color:var(--primary);
  font-size:1.65rem; line-height:1.1; letter-spacing:0; text-transform:none;
  margin-bottom:14px;
}
.section--green .pill-label{ color:var(--gold); }

.lede{ font-size:1.2rem; color:var(--muted); max-width:560px; }

/* ---------- buttons: pill, 48px tall ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  min-height:48px; font-weight:700; font-size:1.02rem; line-height:1; padding:0 30px; border-radius:var(--r-pill);
  transition:transform .15s var(--ease), filter .15s, background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn--primary{ background:var(--primary); color:var(--on-primary); box-shadow:var(--pill-shadow); }
.btn--primary:hover{ filter:brightness(1.07); transform:translateY(-2px); }
.btn--primary:active{ transform:scale(.97); }
.btn--outline{ background:transparent; color:var(--primary); box-shadow:inset 0 0 0 2px var(--primary); }
.btn--outline:hover{ background:var(--tint); }
.btn--light{ background:#FBF8F1; color:#14214A; }
.btn--light:hover{ transform:translateY(-2px); filter:brightness(1.03); }
.section--green .btn--outline{ background:transparent; box-shadow:inset 0 0 0 2px rgba(251,248,241,.6); color:#FBF8F1; }
.section--green .btn--outline:hover{ background:rgba(251,248,241,.12); }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--header-bg); backdrop-filter:blur(14px);
  border-bottom:1px solid var(--hairline);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap:24px; max-width:var(--container); margin:0 auto; padding:14px 24px; }
.logo{ display:flex; align-items:center; gap:10px; }
.logo img{ height:36px; width:36px; }
.wordmark{ font-family:var(--font-head); font-weight:700; font-size:1.65rem; line-height:1; letter-spacing:-.01em; color:var(--ink); }
.wordmark i{ color:var(--gold); font-style:normal; }
.nav-links{ display:flex; gap:26px; }
.nav-links a{ font-size:.96rem; font-weight:700; color:var(--muted); padding:6px 0; position:relative; white-space:nowrap; }
.nav-links a:hover{ color:var(--primary); }
.nav-links a.active{ color:var(--primary); }
.nav-links a.active::after{ content:''; position:absolute; left:0; right:0; bottom:0; height:2.5px; background:var(--gold); border-radius:2px; }
.nav-actions{ display:flex; gap:12px; align-items:center; }
.nav-actions .btn{ min-height:44px; padding:0 24px; font-size:.94rem; }
.nav-toggle{ display:none; padding:8px; }
.nav-toggle span{ display:block; width:22px; height:2.5px; background:var(--ink); margin:5px 0; border-radius:2px; transition:.3s; }

@media (max-width: 1120px){
  .nav-links{
    position:fixed; inset:65px 0 auto 0; background:var(--surface);
    flex-direction:column; padding:26px 24px; gap:20px; border-bottom:1px solid var(--hairline);
    box-shadow:var(--card-shadow); transform:translateY(-8px); opacity:0; pointer-events:none; transition:.25s var(--ease);
  }
  .nav-links.open{ transform:none; opacity:1; pointer-events:auto; }
  .nav-toggle{ display:block; }
  .nav-actions .btn--outline{ display:none; }
}

/* ---------- hero (big rounded panel, photo + text) ---------- */
.hero{ padding:40px 0 90px; }
.hero-panel{
  background:var(--surface); border-radius:var(--r-xl); overflow:hidden;
  display:grid; grid-template-columns:1fr 1fr; align-items:stretch; min-height:520px;
  box-shadow:var(--card-shadow); border:1px solid var(--hairline);
}
.hero-copy{ padding:70px 60px; display:flex; flex-direction:column; justify-content:center; }
.hero-copy h1{ margin-bottom:18px; }
.hero-copy .lede{ margin-bottom:34px; font-size:1.25rem; }
.hero-photo{ position:relative; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width: 920px){
  .hero-panel{ grid-template-columns:1fr; }
  .hero-copy{ padding:48px 36px; order:2; }
  .hero-photo{ order:1; min-height:320px; }
}
@media (max-width: 520px){ .hero-copy{ padding:36px 26px; } }

/* ---------- feature cards ---------- */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.cards--4{ grid-template-columns:repeat(4,1fr); }
@media (max-width: 980px){ .cards,.cards--4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .cards,.cards--4{ grid-template-columns:1fr; } }
.card{
  background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg);
  padding:34px 30px; transition:box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover{ box-shadow:var(--card-shadow); transform:translateY(-4px); }
.card .icon{
  width:56px; height:56px; border-radius:50%; background:var(--tint); color:var(--primary);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.card .icon svg{ width:26px; height:26px; }
.card h3{ margin-bottom:8px; }
.card p{ margin:0; font-size:1rem; }

/* ---------- split (image + text), alternating ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:88px; align-items:center; }
.split + .split{ margin-top:140px; }
.split-media img{ width:100%; border-radius:var(--r-xl); box-shadow:var(--card-shadow); background:var(--surface-alt); }
.split-media--round img{ border-radius:var(--r-xl); aspect-ratio:1200/820; object-fit:cover; }
.split-media--phone{ display:flex; justify-content:center; }
.split-media--phone img{ max-width:300px; box-shadow:none; background:transparent; }
.split-media--app{ display:flex; justify-content:center; }
.split-media--app img{ max-width:300px; background:#FBF8F1; border:10px solid #142048; border-radius:44px; box-shadow:var(--card-shadow); }
.split-media--tall img{ max-width:420px; margin:0 auto; }
.split .checks{ display:grid; gap:14px; margin-top:10px; }
.split .checks li{ display:flex; gap:14px; align-items:flex-start; color:var(--ink); font-weight:700; }
.split .checks svg{ width:22px; height:22px; color:var(--primary); flex:none; margin-top:2px; }
@media (max-width: 900px){
  .split{ grid-template-columns:1fr; gap:40px; }
  .split + .split{ margin-top:80px; }
  .split-media{ order:-1; }
}

/* ---------- steps ---------- */
.steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:22px; }
@media (max-width: 980px){ .steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .steps{ grid-template-columns:1fr; } }
.step{ background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg); padding:30px 24px; text-align:center; }
.step .step-num{
  width:52px; height:52px; border-radius:50%; background:var(--primary); color:var(--on-primary);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-head); font-weight:700; font-size:1.3rem;
  margin:0 auto 18px;
}
.step h3{ font-size:1.08rem; margin-bottom:6px; }
.step p{ margin:0; font-size:.95rem; }

/* ---------- compare ---------- */
.compare{ max-width:800px; margin:0 auto; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg); overflow:hidden; box-shadow:var(--card-shadow); }
.compare-row{ display:grid; grid-template-columns:1fr 48px 1fr; align-items:center; gap:16px; padding:24px 30px; }
.compare-row + .compare-row{ border-top:1px solid var(--hairline); }
.compare-old{ color:var(--muted); text-decoration:line-through; opacity:.8; }
.compare-arrow{ text-align:center; color:var(--primary); font-size:1.2rem; }
.compare-new{ color:var(--ink); font-weight:700; }
@media (max-width: 620px){ .compare-row{ grid-template-columns:1fr; gap:4px; } .compare-arrow{ display:none; } }

/* ---------- tree layers ---------- */
.tree{ max-width:800px; margin:0 auto; }
.tree-layer{ display:grid; grid-template-columns:150px 1fr; gap:24px; align-items:baseline; padding:22px 6px; }
.tree-layer + .tree-layer{ border-top:1px solid var(--hairline); }
.tree-layer h4{ color:var(--primary); margin:0; font-size:1.25rem; }
.tree-layer p{ margin:0; color:var(--ink); }
@media (max-width: 620px){ .tree-layer{ grid-template-columns:1fr; gap:4px; } }

/* ---------- testimonials ---------- */
.testimonials{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
@media (max-width: 980px){ .testimonials{ grid-template-columns:1fr; max-width:600px; margin:0 auto; } }
.testimonial{ background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg); padding:32px 30px; display:flex; flex-direction:column; box-shadow:var(--card-shadow); }
.section--soft .testimonial{ box-shadow:none; }
.stars{ color:var(--gold); letter-spacing:3px; font-size:1rem; margin-bottom:14px; }
.testimonial p{ color:var(--ink); flex:1; font-size:1.02rem; }
.person{ display:flex; align-items:center; gap:12px; margin-top:20px; }
.person img{ width:46px; height:46px; border-radius:50%; object-fit:cover; }
.person strong{ display:block; color:var(--ink); font-size:1rem; }
.person small{ color:var(--muted); font-size:.88rem; }
.rating-line{ text-align:center; margin-top:34px; color:var(--muted); font-size:1rem; }
.rating-line strong{ color:var(--ink); }

/* ---------- FAQ ---------- */
.faq{ max-width:780px; margin:0 auto; }
.faq-item{ background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-md); margin-bottom:14px; overflow:hidden; }
.faq-q{ width:100%; text-align:left; padding:24px 28px; display:flex; justify-content:space-between; align-items:center; font-family:var(--font-head); font-weight:700; font-size:1.1rem; color:var(--ink); }
.faq-q .plus{ color:var(--primary); font-size:1.5rem; font-weight:400; transition:transform .3s var(--ease); flex:none; margin-left:16px; line-height:1; }
.faq-item.open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.faq-item.open .faq-a{ max-height:320px; }
.faq-a p{ padding:0 28px 24px; margin:0; }

/* ---------- CTA ---------- */
.cta{ text-align:center; }
.cta .btn-row{ justify-content:center; margin-top:30px; }
.cta .tagline{ font-family:var(--font-hand); font-weight:600; font-size:1.7rem; color:var(--gold); }

/* ---------- forms ---------- */
.form{ max-width:640px; margin:0 auto; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg); padding:44px; box-shadow:var(--card-shadow); }
.form-field{ display:grid; gap:8px; margin-bottom:22px; }
.form-field label{ font-weight:700; font-size:.94rem; color:var(--ink); }
.form-field input,.form-field textarea{
  font-family:var(--font-body); font-size:1rem; padding:15px 18px;
  border-radius:14px; border:1.5px solid var(--hairline); background:var(--bg); color:var(--ink);
  transition:border-color .2s;
}
.form-field input:focus,.form-field textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--gold); }
#form-note{ display:none; margin-top:18px; padding:15px 20px; background:var(--tint); border-radius:14px; color:var(--ink); font-weight:700; }
#form-note.visible{ display:block; }
@media (max-width:560px){ .form{ padding:28px 22px; } }

/* ---------- quiz ---------- */
.quiz-q{ background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r-lg); padding:28px 30px; margin-bottom:18px; box-shadow:var(--card-shadow); }
.quiz-q h3{ font-size:1.12rem; margin-bottom:18px; }
.quiz-opts{ display:flex; gap:14px; flex-wrap:wrap; }
.quiz-opt{ padding:12px 28px; border-radius:var(--r-pill); border:2px solid var(--hairline); background:var(--surface); font-weight:700; font-size:.96rem; color:var(--ink); transition:.2s; }
.quiz-opt:hover:not(:disabled){ border-color:var(--primary); }
.quiz-opt.selected{ background:var(--primary); color:var(--on-primary); border-color:var(--primary); }
.quiz-q.answered .quiz-opt:disabled{ opacity:.5; cursor:default; }
#quiz-progress{ text-align:center; color:var(--muted); margin-bottom:30px; font-size:.96rem; }
#quiz-result{ display:none; background:var(--tint); border-radius:var(--r-lg); padding:40px; margin-top:26px; text-align:center; }
#quiz-result.visible{ display:block; }
#quiz-result .pill-label{ margin-bottom:10px; }

/* ---------- footer ---------- */
.site-footer{ background:var(--footer); color:#B5BEDA; padding:70px 0 30px; }
.footer-top{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; margin-bottom:52px; }
@media (max-width:820px){ .footer-top{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .footer-top{ grid-template-columns:1fr; } }
.footer-brand a{ display:inline-flex; align-items:center; gap:10px; }
.footer-brand img{ height:36px; width:36px; }
.footer-brand .wordmark{ color:#FBF8F1; }
.footer-brand p{ margin-top:16px; max-width:300px; color:#98A3C4; font-size:.98rem; }
.footer-col h4{ font-family:var(--font-body); color:#FBF8F1; font-size:.88rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; font-weight:700; }
.footer-col a{ display:block; padding:6px 0; color:#B5BEDA; font-size:.98rem; }
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{ border-top:1px solid rgba(251,248,241,.14); padding-top:26px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; font-size:.9rem; color:#98A3C4; }
.socials{ display:flex; gap:16px; }
.socials a{ color:#B5BEDA; display:flex; }
.socials a:hover{ color:var(--gold); }
.socials svg{ width:20px; height:20px; }

/* ---------- utility ---------- */
.center{ text-align:center; }
.mw-720{ max-width:720px; margin-left:auto; margin-right:auto; }
.mw-860{ max-width:860px; margin-left:auto; margin-right:auto; }
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform:none; }

/* ---------- inner page hero ---------- */
.page-hero{ padding:96px 0 64px; background:var(--surface-alt); border-bottom:1px solid var(--hairline); text-align:center; }
.page-hero .lede{ margin:0 auto; }
.page-hero .pill-label{ margin-left:auto; margin-right:auto; }

/* ---------- mission / long-form text (About, legal pages) ---------- */
.mission{ max-width:740px; margin:0 auto; }
.mission p{ font-size:1.12rem; color:var(--ink); margin-bottom:1.3em; }
.mission h3{ margin-top:1.6em; }
.mission p.pull{ font-family:var(--font-head); font-weight:700; font-size:1.6rem; line-height:1.3; color:var(--ink); border-left:4px solid var(--gold); padding-left:26px; margin:1.6em 0; }
.mission p.emph{ font-weight:700; color:var(--ink); }

/* ---------- "Try the app" demo page ---------- */
.demo{ display:grid; grid-template-columns:minmax(0,1fr) auto; gap:64px; align-items:start; }
.demo-guide{ max-width:34rem; }
.demo-guide h2{ font-size:1.5rem; margin-bottom:6px; }
.demo-guide .hint{ font-size:1rem; margin-bottom:22px; }
.demo-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin:6px 0 34px; }
.demo-actions .btn svg{ width:18px; height:18px; }
.demo-actions .link{ font-weight:700; color:var(--primary); text-decoration:underline; text-underline-offset:3px; }
.demo-actions .btn-quiet[aria-pressed="true"]{ background:var(--primary); color:var(--on-primary); box-shadow:none; }
.demo-tries{ border-top:1px solid var(--hairline); margin:0 0 28px; }
.demo-tries li{ padding:12px 0; border-bottom:1px solid var(--hairline); }
.demo-tries b{ display:block; color:var(--ink); }
.demo-tries span{ color:var(--muted); font-size:.98rem; }
.demo-stage{ position:sticky; top:96px; }
.phone-slot{ position:relative; }
.phone{
  position:absolute; top:0; left:0; width:414px; height:868px; padding:12px;
  background:#142048; border-radius:58px;
  box-shadow:0 24px 60px -18px rgba(20,33,74,.35), 0 8px 18px -8px rgba(20,33,74,.25), inset 0 0 0 2px #26356A;
  transform-origin:top left;
}
.phone::before,.phone::after{ content:""; position:absolute; width:4px; border-radius:2px; background:#26356A; }
.phone::before{ left:-4px; top:150px; height:120px; box-shadow:0 -52px 0 -6px #26356A; }
.phone::after{ right:-4px; top:210px; height:84px; }
.phone-screen{ position:relative; width:390px; height:844px; border-radius:46px; overflow:hidden; background:var(--bg); display:flex; flex-direction:column; }
.statusbar{ flex:none; height:44px; padding:0 30px 0 34px; position:relative; display:flex; align-items:center; justify-content:space-between; color:var(--ink); font:700 15px/1 var(--font-body); font-variant-numeric:tabular-nums; }
.statusbar .camera{ position:absolute; left:50%; top:13px; transform:translateX(-50%); width:18px; height:18px; border-radius:50%; background:#050A1C; box-shadow:inset 0 0 0 3px #121A33; }
.statusbar .icons{ display:flex; gap:6px; align-items:center; }
.statusbar svg{ height:13px; width:auto; display:block; }
.phone-screen iframe{ flex:1; display:block; width:390px; border:0; background:var(--bg); }
.homebar{ flex:none; height:22px; display:flex; align-items:center; justify-content:center; }
.homebar::after{ content:""; width:134px; height:5px; border-radius:3px; background:var(--ink); opacity:.35; }
.demo-phone-only{ display:none; }
@media (max-width: 980px){
  .demo{ grid-template-columns:1fr; justify-items:center; gap:36px; }
  .demo-stage{ position:static; order:-1; }
}
/* touch phones get the app full screen instead of a phone inside a phone */
.is-phone .demo-stage{ display:none; }
.is-phone .demo-phone-only{ display:block; }
.is-phone .demo-actions{ display:none; }
@media (max-width:700px){ .section{ padding:80px 0; } .page-hero{ padding:72px 0 48px; } }
