/* chrome.css: the ClinicalSwipe home page's chrome, shared so every page wears one design (2026-10-04).
   The rules below are copied verbatim from the <style> in index.html: tokens, base type, the sticky nav, the hero
   type, section type, buttons and the footer. Two blocks add to them, and each says so where it sits: the
   current-page block, and the buttons block (its extra selectors and its last line). The two @media
   blocks at the end keep only the chrome lines of the home's own phone and reduced-motion rules. index.html still
   carries its own inline copy of these rules; it can drop them and link this file instead. Change a rule in
   both places until it does. Linked today from /caregivers and /survey. */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{--bg:#0c0e15;--surf:#11131a;--low:#191b23;--cont:#1d1f27;--high:#282a32;--ink:#e2e2ec;--var:#ccc3d8;--out:#a59fb0;
  --line:rgba(255,255,255,.09);--vio:#7c3aed;--vio-lt:#8b5cf6;--pri:#d2bbff;--em:#4edea3;--amber:#ffb95f;--err:#ffb4ab;--paper:#fbfbfc;--pink:#0c0e15;
  --navy:#e2e2ec;--teal:#7c3aed;--teal-lt:#8b5cf6;--teal-ink:#d2bbff;--off:#191b23;--border:rgba(255,255,255,.09);--muted:#ccc3d8}
html{scroll-behavior:smooth;scroll-padding-top:72px}
body{font-family:'Manrope',-apple-system,sans-serif;color:var(--ink);background:var(--bg);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased}
h1,h2,h3{font-family:'Newsreader',Georgia,serif;font-weight:400;letter-spacing:-.015em;text-wrap:balance}
a{color:inherit;text-decoration:none}
::selection{background:var(--vio);color:#fff}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px}
.mono,.label,.chip,.hc-l{font-family:'JetBrains Mono',ui-monospace,monospace}

/* nav (the site header) */
nav{position:sticky;top:0;z-index:50;background:rgba(17,19,26,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
nav .wrap{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:16px}
.logo{min-height:44px;font-family:'Newsreader',Georgia,serif;font-weight:500;font-size:22px;color:#fff;letter-spacing:-.01em;display:inline-flex;align-items:center;gap:10px}
.logo .mark{width:24px;height:24px;background:var(--vio);border-radius:7px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.nlinks{display:flex;align-items:center;gap:6px;white-space:nowrap}
.nlinks a{font-size:13.5px;font-weight:500;color:var(--var);min-height:44px;display:inline-flex;align-items:center;padding:0 10px;border-radius:8px}
.nlinks a:hover{color:#fff}
.nlinks .cta{background:var(--vio);color:#fff;font-weight:700;padding:0 18px;margin-left:8px;box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.nlinks .cta:hover{background:var(--vio-lt)}
@media(max-width:1120px){.nlinks a:not(.cta):not(.si){display:none}}
@media(max-width:720px){.nlinks .cta{display:none}}
/* current page (not in index.html): the home marks none. A page marks its own nav and footer link with
   aria-current="page", or with aria-current="true" when the link is its section rather than the page itself
   (/survey sits under Families, which links to /caregivers) */
.nlinks a[aria-current="page"],.nlinks a[aria-current="true"]{color:#fff;background:rgba(124,58,237,.18);box-shadow:inset 0 0 0 1px rgba(210,187,255,.25)}
.flinks a[aria-current="page"],.flinks a[aria-current="true"]{color:#fff}

/* hero type */
.hero{position:relative;overflow:hidden;padding:72px 0 76px;background:radial-gradient(60% 60% at 78% 30%, rgba(124,58,237,.16), transparent 70%)}
.hero .eyebrow{display:inline-flex;text-wrap:balance;align-items:center;gap:10px;font-family:'JetBrains Mono',monospace;color:var(--pri);font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;margin-bottom:24px}
.hero h1{font-size:clamp(40px,6.2vw,72px);line-height:1.02;letter-spacing:-.025em;color:#fff;margin-bottom:24px}
.hero .sub{font-size:18px;line-height:1.65;color:var(--var);max-width:560px;margin-bottom:32px}

/* buttons. Added to index.html's rules: the selectors also name the classes /survey's script builds its buttons
   with (.go is primary; .back and .quiet are ghost), and the last line lets a <button> wear them, since every
   button on the home is a link */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;font-size:15px;line-height:1.3;font-weight:700;padding:13px 26px;border-radius:10px;transition:background .15s,border-color .15s}
.btn.primary,.btn.go{background:var(--vio);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.25)}
.btn.primary:hover,.btn.go:hover{background:var(--vio-lt)}
.btn.ghost,.btn.back,.btn.quiet{background:var(--cont);border:1px solid var(--line);color:var(--ink)}
.btn.ghost:hover,.btn.back:hover,.btn.quiet:hover{border-color:rgba(210,187,255,.5)}
button.btn{font-family:inherit;border:0;cursor:pointer}

/* section type */
.label{font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--pri);margin-bottom:14px}
.h2{font-size:clamp(30px,4.4vw,48px);line-height:1.1;color:#fff;margin-bottom:16px;max-width:820px}
.lead{font-size:17px;color:var(--var);max-width:600px;margin:0 0 44px;line-height:1.7}
.lead a{color:var(--pri);text-decoration:underline;text-underline-offset:3px}

/* footer */
footer{background:var(--bg);border-top:1px solid var(--line);padding:56px 0 30px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:28px;align-items:flex-start}
.fbrand{font-family:'Newsreader',serif;font-weight:500;color:#fff;font-size:24px}
.fbrand span{display:block;font-family:'Manrope';font-weight:400;font-size:13px;color:var(--out);margin-top:4px}
.flinks{display:flex;gap:4px 18px;flex-wrap:wrap;align-items:center;max-width:720px;justify-content:flex-end}
.flinks a{font-size:13px;color:var(--var);min-height:44px;display:inline-flex;align-items:center}
.flinks a:hover{color:#fff}
.flinks a.lock{color:var(--out)}
.fbot{border-top:1px solid var(--line);margin-top:20px;padding-top:20px;font-size:12px;color:var(--out);line-height:1.7;max-width:900px}

@media(max-width:720px){
  .wrap{padding:0 20px}
  .hero{padding:44px 0 56px}
  .hero .sub{font-size:16.5px}
  .flinks{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
