/* Shared stylesheet for the public salunahealth.com site (marketing + sign-up/login + account &
   billing + support) — a separate static site from app/ (the product itself). Tokens copied from
   app/css/base.css's :root block so this matches the live app's palette and type exactly; if
   base.css's tokens ever change, update both places (same convention app/css/legal.css already
   uses for the standalone legal pages).

   Redesigned 2026-11-18 on direct feedback ("needs to feel modern/sleek... essentially feel like
   the app") — the liquid-glass material below is lifted verbatim from the app's own real recipes
   (.profile-fab / .modal.glass-modal / .glass-modal-shell, app/css/base.css), not invented fresh:
   same blur/saturate values, same two-layer shadow + inset-highlight pairing, same 28px radius on
   large glass surfaces. Glass only reads as glass over a genuinely different-toned backdrop (the
   app's own design-system rule — see base.css's comment on this exact point), which is why the
   hero/CTA sections below get a soft gradient glow behind them rather than sitting on flat Paper. */

:root{
  --ink:#3A3633;
  --ink-soft:#5D5957;
  --paper:#FFFFFF;
  --card:#FFFFFF;
  --line:#EAE3D6;
  --primary:#4D6E74;
  --primary-soft:#E2EAEB;
  --amber:#C79A42;
  --amber-soft:#F5ECD9;
  --amber-ink:#7A5B1E;
  --red:#B65C4F;
  --red-soft:#F4E4E0;
  --radius:20px;
  --font-display:'Lora', serif;
  --font-body:'Montserrat', system-ui, sans-serif;
  --font-data:'Raleway', sans-serif;

  /* Liquid glass — lifted from app/css/base.css, not re-derived */
  --glass-light: linear-gradient(160deg, rgba(255,255,255,0.72) 0%, rgba(243,247,247,0.65) 55%, rgba(226,234,235,0.6) 100%);
  --glass-teal: rgba(77,110,116,0.6);
  --glass-teal-solid: rgba(70,100,106,0.94);
  --glass-border: 1px solid rgba(255,255,255,0.14);
  --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.2);
  --glass-highlight-light: inset 0 1px 0 rgba(255,255,255,0.5);
  --glass-lift: 0 4px 10px rgba(58,54,51,0.35), 0 20px 45px rgba(58,54,51,0.4);
}

/* Font loading moved to <link rel="preconnect"/stylesheet"> tags in each page's <head> — an
   @import here used to serialize the font request behind this whole file's own download/parse
   (a real waterfall: styles.css -> discover @import -> fonts.googleapis.com -> font files), where
   a <link> in <head> lets the browser discover and fetch fonts in parallel with this stylesheet. */

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{ color:var(--primary); text-decoration:none; transition:color .15s ease; }
a:hover{ color:#3A4F53; }
img{ max-width:100%; display:block; }

.wrap{ max-width:1160px; margin:0 auto; padding:0 24px; position:relative; }

/* Background stays plain Paper everywhere, same as the app — no color wash behind the glass
   surfaces. The dark hero-visual/chip and the light trust-strip already read as glass purely from
   their own blur+shadow; they don't need a tinted backdrop to sell the material. */
.glow-field{ display:none; }

/* Header — frosted light glass, sticky */
.site-header{
  position:sticky; top:0; z-index:20;
  display:flex; align-items:center; justify-content:space-between;
  gap:36px;
  padding:16px 24px;
  background:rgba(255,255,255,0.72);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(234,227,214,0.6);
}
.wordmark{
  font-family:var(--font-display);
  font-weight:600;
  font-size:20px;
  color:var(--primary);
  letter-spacing:-0.01em;
}
.nav-links{ display:flex; align-items:center; gap:28px; margin-left:auto; }
.nav-links a{
  position:relative;
  font-family:var(--font-body);
  font-size:13.5px;
  font-weight:500;
  color:var(--ink-soft);
  padding-bottom:4px;
}
.nav-links a::after{
  content:''; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--primary); transition:right .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"]{ color:var(--primary); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after{ right:0; }
.nav-right{ display:flex; align-items:center; gap:20px; position:relative; z-index:1; }

.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:34px; height:34px; padding:0; border:0; background:none; cursor:pointer;
}
.nav-toggle span{
  display:block; width:22px; height:2px; background:var(--ink); border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.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); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  font-family:var(--font-body);
  font-weight:600;
  font-size:14px;
  padding:12px 24px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  text-align:center;
  transition:transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary{ background:var(--primary); color:#FFFFFF; box-shadow:0 6px 16px rgba(77,110,116,0.3); }
.btn-primary:hover{ background:#3A4F53; color:#FFFFFF; transform:translateY(-2px); box-shadow:0 10px 22px rgba(77,110,116,0.4); }
.btn-soft{ background:var(--primary-soft); color:var(--primary); }
.btn-soft:hover{ background:#D4E0E1; transform:translateY(-2px); }
.btn-outline{ background:transparent; color:var(--ink); border:1px solid var(--line); }
.btn-outline:hover{ border-color:var(--primary); color:var(--primary); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:0.55; cursor:not-allowed; transform:none !important; }
.btn-sm{ padding:9px 18px; font-size:13px; }

/* Hero */
.hero{
  position:relative; z-index:1;
  display:grid; grid-template-columns:1.1fr 1fr; gap:48px; align-items:center;
  padding-top:88px; padding-bottom:96px;
}
.eyebrow{
  font-family:var(--font-data); font-size:12px; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--primary); font-weight:600;
}
.hero h1{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(32px, 5vw, 58px); line-height:1.1; letter-spacing:-0.01em;
  margin:14px 0 18px; color:var(--ink);
}
.hero p.lede{ font-size:18px; line-height:1.55; color:var(--ink-soft); margin:0 0 28px; max-width:520px; }
.hero-ctas{ display:flex; align-items:center; gap:22px; }

/* Hero visual — real app screenshots (iOS + Android) in real device frames, not an abstract mockup */
.hero-visual-wrap{ position:relative; display:flex; justify-content:center; align-items:center; padding:40px 20px 20px; }
.device-stack{ position:relative; width:320px; height:460px; }
.device-frame{
  position:absolute;
  background:#2a2e30;
  border-radius:40px;
  box-shadow:0 30px 60px -20px rgba(58,54,51,0.4), 0 10px 20px -8px rgba(58,54,51,0.3);
  overflow:hidden;
}
.device-frame img{ width:100%; height:auto; display:block; }
.device-frame.android{
  width:190px;
  top:18px; left:0;
  border-radius:28px;
  padding:7px;
  transform:rotate(-6deg);
  box-shadow:0 20px 44px -16px rgba(58,54,51,0.35);
  z-index:1;
}
.device-frame.android .screen{ border-radius:21px; overflow:hidden; position:relative; }
.device-frame.android .camera{
  position:absolute; top:16px; left:50%; transform:translateX(-50%);
  width:10px; height:10px; border-radius:50%; background:#0d0f10; z-index:2;
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.device-frame.iphone{
  width:210px;
  top:0; left:110px;
  border-radius:38px;
  padding:9px;
  transform:rotate(4deg);
  z-index:2;
}
.device-frame.iphone .screen{ border-radius:29px; overflow:hidden; position:relative; }
.device-frame.iphone .notch{
  position:absolute; top:19px; left:50%; transform:translateX(-50%);
  width:58px; height:16px; border-radius:999px; background:#0d0f10; z-index:2;
}

/* Trust strip — light glass pill, auto-scrolling marquee, inset from the viewport edge and
   lifted off Paper rather than a full-bleed band, so it genuinely reads as a floating object
   instead of a flat divider. The item list is duplicated once in the markup (two identical
   .trust-track-inner runs back to back); the animation only ever translates the first half's
   width, so the loop point is invisible — the duplicate takes over seamlessly as the original
   scrolls off. The lift uses filter:drop-shadow rather than box-shadow because .trust-strip
   needs overflow:hidden to clip the marquee, and a box-shadow gets silently clipped by that —
   same rule the app's own glass components already follow (see base.css). */
.trust-strip-section{ padding:36px 0; position:relative; z-index:1; }
/* .wrap's standard 24px side padding would make this narrower than the hero content above it —
   .hero itself overrides that padding to 0 so its text sits flush at the 1160px max-width edge,
   so match that here too, rather than leaving the pill visibly inset relative to the headline. */
.trust-strip-section .wrap{ padding:0; }
.trust-strip{
  position:relative;
  background:var(--glass-light);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border:1px solid rgba(255,255,255,0.6);
  border-radius:999px;
  padding:18px 0;
  overflow:hidden;
  filter:drop-shadow(0 2px 6px rgba(58,54,51,0.08)) drop-shadow(0 18px 36px rgba(58,54,51,0.14));
}
.trust-strip::before{
  content:''; position:absolute; inset:0 0 auto 0; height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}
.trust-track{ display:flex; width:max-content; animation:trust-marquee 36s linear infinite; }
.trust-track:hover{ animation-play-state:paused; }
.trust-track-inner{ display:flex; align-items:center; flex-shrink:0; }
.trust-item{ display:flex; align-items:center; font-size:13.5px; font-weight:500; white-space:nowrap; padding:0 28px; }
.trust-sep{ color:var(--line); font-size:14px; }
@keyframes trust-marquee{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
@media (prefers-reduced-motion: reduce){
  .trust-track{ animation:none; }
}

/* Cards */
.section{ padding-top:72px; padding-bottom:72px; position:relative; z-index:1; }
.section h2{ font-family:var(--font-display); font-weight:600; font-size:clamp(24px,3vw,32px); margin:0 0 10px; letter-spacing:-0.005em; }
.section p.section-sub{ color:var(--ink-soft); margin:0 0 36px; max-width:560px; font-size:15.5px; }
.card-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.feature-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:28px;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover{ transform:translateY(-5px); box-shadow:0 16px 36px rgba(58,54,51,0.1); border-color:rgba(77,110,116,0.25); }
.feature-card h3{ font-family:var(--font-display); font-weight:600; font-size:18px; margin:0 0 10px; color:var(--ink); display:flex; align-items:center; gap:10px; }
.feature-card p{ font-size:14px; color:var(--ink-soft); margin:0; line-height:1.6; }
.features-more{ margin:28px 0 0; }
.features-more .btn{ white-space:nowrap; padding:12px 16px; }

/* Feature showcase — stacked clickable pillars on the left, a single real device frame on the
   right whose screen crossfades between screenshots as each pillar is selected. A fresh
   .showcase-device rather than reusing .device-frame.iphone, since that one is pinned/rotated
   for the hero's two-phone composition; this one needs to sit straight and standalone. */
.feature-showcase{ display:grid; grid-template-columns:300px 1fr; gap:56px; align-items:start; }
.feature-showcase-list{ display:flex; flex-direction:column; gap:14px; order:2; }
.feature-pillar{
  display:block; width:100%; text-align:left; font-family:inherit; cursor:pointer;
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px;
  transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.feature-pillar:hover{ border-color:rgba(77,110,116,0.3); }
.feature-pillar.active{ background:var(--primary-soft); border-color:var(--primary); box-shadow:0 8px 20px rgba(77,110,116,0.12); }
.feature-pillar h3{ font-family:var(--font-display); font-weight:600; font-size:17px; margin:0 0 8px; color:var(--ink); }
.feature-pillar.active h3{ color:var(--primary); }
.feature-pillar p{ font-size:14px; color:var(--ink-soft); margin:0; line-height:1.6; }
.feature-showcase-phone{ display:flex; flex-direction:column; align-items:center; gap:23px; order:1; }
.showcase-device{
  position:relative; width:280px;
  background:#2a2e30; border-radius:45px; padding:11px;
  box-shadow:0 30px 60px -20px rgba(58,54,51,0.4), 0 10px 20px -8px rgba(58,54,51,0.3);
}
.showcase-device .notch{
  position:absolute; top:24px; left:50%; transform:translateX(-50%);
  width:75px; height:19px; border-radius:999px; background:#0d0f10; z-index:2;
}
.showcase-device .screen{ position:relative; border-radius:32px; overflow:hidden; aspect-ratio:9/19.5; background:#fff; }
.showcase-device .screen img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top;
  opacity:0; transition:opacity .35s ease;
}
.showcase-device .screen img.active{ opacity:1; }

/* A smaller, static (single-image, no crossfade) variant of .showcase-device for a real
   screenshot beside each Features-page card — same dark-bezel/notch recipe, scaled down.
   .feature-row holds the card and the shot as siblings, outside the card's own border, rather
   than nesting the shot inside the card's padded content (direct feedback: the shot read as
   cramped/boxed-in when it shared the card's border with the text). */
.feature-row{ display:flex; gap:28px; align-items:center; }
.feature-row > :first-child{ flex:1; min-width:0; }
.feature-row.reverse{ flex-direction:row-reverse; }
.feature-card-shot{
  position:relative; flex-shrink:0; width:120px;
  background:#2a2e30; border-radius:26px; padding:7px;
  box-shadow:0 16px 32px -14px rgba(58,54,51,0.35);
}
.feature-card-shot .notch{
  position:absolute; top:13px; left:50%; transform:translateX(-50%);
  width:38px; height:10px; border-radius:999px; background:#0d0f10; z-index:2;
}
.feature-card-shot .screen{ position:relative; border-radius:19px; overflow:hidden; aspect-ratio:9/19.5; background:#fff; }
.feature-card-shot .screen img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:top; }
@media (max-width:700px){
  .feature-row, .feature-row.reverse{ flex-direction:column-reverse; }
  .feature-card-shot{ width:110px; margin:0 auto 20px; }
}
@media (max-width:860px){
  .feature-showcase{ grid-template-columns:1fr; }
  .feature-showcase-phone{ margin:0 0 28px; }
  .showcase-device{ width:260px; border-radius:42px; padding:10px; }
  .showcase-device .notch{ top:22px; width:70px; height:18px; }
}

.tier-tag{
  font-family:var(--font-data); font-size:10.5px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; flex-shrink:0;
}
.tier-tag.tag-free{ background:var(--primary-soft); color:var(--primary); }
.tier-tag.tag-plus{ background:var(--amber-soft); color:var(--amber-ink); }
.tier-tag.tag-family{ background:var(--red-soft); color:#7A362A; }

/* Tier feature list — Free/Plus/Family on the homepage, mirroring the app's own Settings → Plan
   comparison screen (SettingsPlanScreen.js). Progressive-disclosure rather than a static 3-column
   table: the base state shows only what Free includes; picking Plus or Family (the existing
   .toggle pill component, reused from pricing.html's Monthly/Annual switcher) reveals that tier's
   rows underneath, cumulative — Family's view includes Plus's rows too, matching the "Everything
   in Plus, plus:" framing already used on pricing.html. A row's visibility is driven purely by
   the .tier-feature-list[data-level] attribute set by the toggle script, matched against each
   row's own data-tier — no JS re-render needed, just a CSS selector per level/tier pairing. */
.tier-toggle button{ min-width:84px; }
.tier-feature-list{ max-width:640px; margin:0 auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--card); overflow:hidden; }
.tier-feature-row{
  display:none; align-items:flex-start; gap:12px; padding:16px 20px;
  font-size:14.5px; color:var(--ink);
}
.tier-feature-row + .tier-feature-row{ border-top:1px solid var(--line); }
.tier-feature-check{ color:var(--primary); font-weight:700; flex-shrink:0; line-height:1.5; }
.tier-feature-note{ display:block; font-size:12px; color:var(--ink-soft); font-weight:400; margin-top:2px; }
.tier-feature-list[data-level="free"] .tier-feature-row[data-tier="free"]{ display:flex; }
.tier-feature-list[data-level="plus"] .tier-feature-row[data-tier="free"],
.tier-feature-list[data-level="plus"] .tier-feature-row[data-tier="plus"]{ display:flex; }
.tier-feature-list[data-level="family"] .tier-feature-row{ display:flex; }
.tier-table-footnote{ margin:20px 0 0; text-align:center; }

/* Waitlist form — lives once, in the "Be first in line" section at the page's end; everywhere
   else (nav, hero's "Join the waitlist" links, other pages) just links to #waitlist and scrolls
   there. .centered is a reusable modifier for dropping this form into a center-aligned section
   like that one, rather than its default left-aligned hero-column layout. */
.waitlist-form{ display:flex; flex-direction:column; gap:12px; max-width:420px; }
.waitlist-form.centered{ margin:0 auto; }
.waitlist-form.centered .waitlist-row{ justify-content:center; }
.waitlist-form.centered .waitlist-fine{ text-align:center; }
.waitlist-row{ display:flex; gap:10px; }
.waitlist-row input[type="email"]{
  flex:1; font-family:var(--font-body); font-size:14px; padding:12px 16px;
  border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.waitlist-row input[type="email"]:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(77,110,116,0.15); }
.waitlist-fine{ font-size:12.5px; color:var(--ink-soft); margin:0; }

/* All 10 start equal — icon + title only, same height — and expand to reveal their description
   (and the "Connects with" line, where present) on hover or click/tap. align-items:start on the
   grid keeps one card's expansion from stretching its whole row's siblings along with it, since
   grid rows default to stretch-to-tallest-cell otherwise. Click toggles a persistent .expanded
   class (for touch, and so a tap stays open rather than needing a held hover); :hover handles
   the mouse case with no JS. Both drive the exact same collapsed/expanded rules below. */
.module-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:14px; align-items:start; }
.module-card{
  background:var(--card); border:1px solid var(--line); border-radius:16px; padding:20px; cursor:pointer;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.module-card:hover, .module-card.expanded{ transform:translateY(-4px); box-shadow:0 12px 26px rgba(58,54,51,0.1); border-color:rgba(77,110,116,0.25); }
.module-icon{
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; margin:0 auto 12px;
  background:var(--primary-soft); color:var(--primary);
}
.module-icon svg{ width:18px; height:18px; }
.module-card h4{ font-family:var(--font-display); font-weight:600; font-size:14px; margin:0; color:var(--ink); display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap; }
.module-card p{
  font-size:12.5px; color:var(--ink-soft); line-height:1.5;
  max-height:0; opacity:0; margin:0; overflow:hidden;
  transition:max-height .3s ease, opacity .25s ease, margin-top .3s ease;
}
.module-card p.module-healthkit{ font-size:11px; color:var(--amber-ink); font-weight:600; }
.module-card:hover p, .module-card.expanded p{ max-height:180px; opacity:1; margin-top:10px; }
.module-card:hover p.module-healthkit, .module-card.expanded p.module-healthkit{ margin-top:8px; }

/* Pricing */
.toggle-row{ display:flex; justify-content:center; margin:24px 0 40px; }
.toggle{ display:inline-flex; background:var(--card); border:1px solid var(--line); border-radius:999px; padding:4px; box-shadow:0 2px 8px rgba(58,54,51,0.05); }
.toggle button{
  font-family:var(--font-body); font-size:13.5px; font-weight:600; padding:9px 20px; border-radius:999px;
  border:none; background:transparent; color:var(--ink-soft); cursor:pointer; transition:background-color .18s ease, color .18s ease;
}
.toggle button.active{ background:var(--primary); color:#FFFFFF; }

.pricing-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; align-items:start; }
.price-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 26px; display:flex; flex-direction:column; gap:18px;
  transition:transform .2s ease, box-shadow .2s ease;
}
.price-card:hover{ transform:translateY(-4px); box-shadow:0 16px 36px rgba(58,54,51,0.08); }
.price-card.featured{
  position:relative; border:none; color:var(--ink);
  background:var(--glass-light);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  box-shadow:var(--glass-lift), var(--glass-highlight-light);
}
.price-card.featured:hover{ transform:translateY(-6px); }
.price-card .ribbon{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--primary); color:#FFFFFF; font-family:var(--font-body); font-size:11.5px; font-weight:600;
  padding:5px 14px; border-radius:999px; white-space:nowrap; box-shadow:0 6px 14px rgba(77,110,116,0.35);
}
.price-card .plan-name{ font-family:var(--font-display); font-weight:600; font-size:20px; }
.price-card .plan-sub{ font-size:13px; color:var(--ink-soft); margin-top:-10px; }
.price-card .amount{ font-family:var(--font-display); font-weight:700; font-size:32px; }
.price-card .amount-sub{ font-size:12px; color:var(--ink-soft); }
.price-card ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.price-card li{ display:flex; align-items:flex-start; gap:8px; font-size:13.5px; }
.price-card li::before{ content:'✓'; color:var(--primary); font-weight:700; flex-shrink:0; }
.price-footnote{ text-align:center; color:var(--ink-soft); font-size:12.5px; margin-top:16px; }

/* Forms */
.form-page{ display:flex; justify-content:center; padding:72px 24px 96px; position:relative; z-index:1; }
.form-card{
  width:100%; max-width:400px; background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:36px 32px; box-shadow:0 20px 50px rgba(58,54,51,0.08);
}
.form-card h1{ font-family:var(--font-display); font-weight:600; font-size:24px; margin:0 0 6px; }
.form-card p.form-sub{ color:var(--ink-soft); font-size:13.5px; margin:0 0 24px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:600; margin-bottom:6px; }
.field input{
  width:100%; font-family:var(--font-body); font-size:14px; padding:11px 14px;
  border:1px solid var(--line); border-radius:12px; background:var(--paper); color:var(--ink);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.field input:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(77,110,116,0.15); }
.form-foot{ margin-top:18px; font-size:13px; color:var(--ink-soft); text-align:center; }
.consent-rows{ margin:4px 0 20px; display:flex; flex-direction:column; gap:10px; }
.consent-row{ display:flex; align-items:flex-start; gap:10px; }
.consent-row input[type="checkbox"]{ margin:2px 0 0; width:16px; height:16px; flex:none; accent-color:var(--primary); }
.consent-row label{ font-size:13px; line-height:1.5; color:var(--ink); }
.consent-row a{ color:var(--primary); text-decoration:underline; }
.alert{ border-radius:12px; padding:12px 14px; font-size:13px; margin-bottom:16px; }
.alert-error{ background:var(--red-soft); color:#7A362A; }
.alert-success{ background:var(--primary-soft); color:var(--primary); }
.alert-hidden{ display:none; }

/* Account */
.account-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:30px;
  max-width:480px; margin:0 auto; box-shadow:0 20px 50px rgba(58,54,51,0.08); position:relative; z-index:1;
}
.tier-badge{
  display:inline-block; font-family:var(--font-data); font-size:11.5px; font-weight:600; letter-spacing:0.04em; text-transform:uppercase;
  background:var(--primary-soft); color:var(--primary); padding:4px 12px; border-radius:999px; margin-bottom:12px;
}

/* Footer */
.site-footer{ border-top:1px solid var(--line); padding:44px 0 32px; position:relative; z-index:1; background:var(--paper); }
.footer-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:24px; flex-wrap:wrap; }
.footer-brand{ max-width:280px; }
.footer-brand .wordmark{ display:block; margin-bottom:8px; }
.footer-brand p{ font-size:13px; color:var(--ink-soft); margin:0; }
.footer-cols{ display:flex; gap:48px; flex-wrap:wrap; }
.footer-col{ display:flex; flex-direction:column; gap:10px; }
.footer-col .col-title{ font-family:var(--font-data); font-size:11px; letter-spacing:0.05em; text-transform:uppercase; color:var(--ink-soft); }
.footer-col a{ font-size:13px; color:var(--ink-soft); }
.footer-col a:hover{ color:var(--primary); }
.footer-bottom{ font-size:12px; color:var(--ink-soft); padding-top:20px; margin-top:24px; border-top:1px solid var(--line); }

.center-text{ text-align:center; }
.muted{ color:var(--ink-soft); }

/* Legal pages (privacy/terms) */
.legal-wrap{ max-width:720px; margin:0 auto; padding:56px 24px 96px; position:relative; z-index:1; }
.legal-updated{ font-family:var(--font-data); font-size:12px; color:var(--ink-soft); margin:0 0 28px; }
.legal-wrap h1{ font-family:var(--font-display); font-weight:700; font-size:34px; line-height:1.15; margin:12px 0 4px; color:var(--ink); }
.draft-banner{
  display:flex; gap:12px; align-items:flex-start;
  background:var(--amber-soft); border:1px solid #EFE0BE; border-radius:16px;
  padding:16px 18px; margin:24px 0 32px;
}
.draft-banner p{ margin:0; font-size:13.5px; color:#6B5423; }
.draft-banner strong{ color:#4A3A17; }
.legal-wrap h2{ font-family:var(--font-display); font-weight:600; font-size:19px; margin:36px 0 10px; color:var(--ink); }
.legal-wrap h2:first-of-type{ margin-top:8px; }
.legal-wrap p{ font-size:15px; line-height:1.65; margin:0 0 14px; color:var(--ink); }
.legal-wrap ul{ margin:0 0 14px; padding-left:20px; }
.legal-wrap li{ font-size:15px; margin-bottom:6px; line-height:1.55; }
/* Was font-size:13px — smaller than this page's own 15px body text, the opposite of
   "conspicuous" (UCC §1-201's own benchmark for this exact kind of clause) these two sections
   need to be. Set at least as large as body text, bold, and in its own callout box — not just a
   caps/letter-spacing treatment that a reasonable reader could still skim past. */
.legal-caps{
  display:block; font-size:15px; font-weight:600; letter-spacing:0.01em; line-height:1.7;
  background:var(--amber-soft); border-left:3px solid var(--amber); border-radius:8px;
  padding:14px 16px; margin:0 0 14px; color:var(--amber-ink);
}
.key-points{
  background:var(--primary-soft); border-left:3px solid var(--primary); border-radius:8px;
  padding:18px 20px; margin:0 0 32px;
}
.key-points p{ margin:0 0 10px; font-weight:600; color:var(--ink); font-size:15px; }
.key-points ul{ margin:0; padding-left:20px; }
.key-points li{ font-size:14px; line-height:1.6; margin-bottom:6px; color:var(--ink); }

/* Scroll reveal — subtle, respects reduced-motion; see js/reveal.js */
.reveal{ opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

@media (max-width:860px){
  .hero{ grid-template-columns:1fr; padding-top:48px; padding-bottom:64px; }
  .hero-visual-wrap{ margin-top:12px; }
  .card-grid, .module-grid, .pricing-grid{ grid-template-columns:1fr; }
  .nav-toggle{ display:flex; }
  .nav-links{
    display:none; position:absolute; top:100%; left:0; right:0; margin-left:0;
    flex-direction:column; align-items:flex-start; gap:4px;
    padding:12px 24px 20px;
    background:var(--card);
    border-bottom:1px solid var(--line);
    box-shadow:0 16px 32px -16px rgba(58,54,51,0.18);
  }
  .nav-links.is-open{ display:flex; }
  .nav-links a{ width:100%; padding:10px 0; }
}

/* Destructive action: the account page's "Delete my account" */
.btn-danger{ background:var(--red); color:#fff; border:1px solid var(--red); }
.btn-danger:hover{ filter:brightness(0.94); }
.btn-danger:disabled{ opacity:0.5; cursor:not-allowed; filter:none; }
.delete-account{ margin-top:32px; padding-top:20px; border-top:1px solid var(--line); }
.delete-account-title{ font-family:var(--font-display); font-weight:600; font-size:18px; margin:0 0 8px; color:var(--ink); }
/* Plan prices on the account page's upgrade section */
.account-card .amount{ font-family:var(--font-display); font-weight:700; font-size:24px; color:var(--ink); }
.account-card .amount-sub{ font-size:12px; color:var(--ink-soft); }
/* App view (?app=1) of the legal pages, shown inside the app: no site navigation. js/app-view.js turns links into text. */
.app-view .site-header, .app-view .site-footer{ display:none; }
/* Family extra-people card on the account page */
.addon-section{ margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.addon-stepper{ display:flex; align-items:center; gap:16px; }
.addon-stepper .btn{ width:44px; height:44px; padding:0; font-size:20px; line-height:1; }
.addon-count{ font-family:var(--font-display); font-weight:700; font-size:24px; min-width:2ch; text-align:center; color:var(--ink); }
.addon-review{ margin-top:14px; padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
/* Change plan card on the account page */
.plan-options{ border:0; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.plan-option{ display:grid; grid-template-columns:auto 1fr; column-gap:10px; align-items:start; padding:12px 14px; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.plan-option input{ margin:3px 0 0; accent-color:var(--primary); width:18px; height:18px; }
.plan-option label{ display:flex; flex-wrap:wrap; justify-content:space-between; gap:4px 12px; font-size:14px; color:var(--ink); cursor:pointer; }
.plan-option input:disabled + label{ cursor:default; }
.plan-option-name{ font-weight:600; }
.plan-option-price{ color:var(--ink-soft); font-size:13px; }
.plan-option-note{ grid-column:2; margin:6px 0 0; font-size:12.5px; line-height:1.45; color:var(--ink-soft); }
.plan-option:has(input:checked:not(:disabled)){ border-color:var(--primary); }
.visually-hidden{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
