/* Swoosh Care brand tokens (docs/MASTER-ARCHITECTURE.md §6.1). One decision per screen, big type,
   one orange primary action, text-link secondaries, thin teal→orange progress line. */
:root{
  --teal-950:#092f35;--teal-900:#0d5558;--teal-800:#117b7b;--teal-700:#159d96;--teal-600:#28b9aa;--teal-500:#64d9c9;--teal-100:#d9f3ef;--teal-50:#effbf8;
  --orange-600:#f05a1a;--orange-500:#ff6b2c;--orange-100:#ffe7db;
  --ink:#163638;--muted:#607b7b;--line:#d7e6e4;--bg:#f5faf9;--card:#ffffff;
  --danger:#c83d46;--warn:#a96900;--good:#16876a;--blue:#2463eb;
  --shadow:0 16px 45px rgba(6,82,74,.14);--radius:22px;
  --grid:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);background-image:linear-gradient(135deg,#e8faf7,#fff6f0);background-repeat:no-repeat;background-size:cover;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--teal-900)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--teal-600);outline-offset:3px}
h1,h2,h3{letter-spacing:-.03em;line-height:1.08;margin:0 0 12px}
h1{font-size:clamp(34px,6vw,58px);font-weight:900}
h2{font-size:clamp(26px,4vw,38px);font-weight:900}
h3{font-size:20px;font-weight:800}
p{margin:0 0 14px}
.muted{color:var(--muted)}
.progress-line{position:fixed;top:0;left:0;right:0;height:5px;background:linear-gradient(90deg,var(--teal-600),var(--orange-500));z-index:20}
.wrap{width:min(1120px,100% - 32px);margin-inline:auto}
header.top{padding:calc(var(--grid) + 5px) 0 var(--grid);display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.lockup img{height:56px;width:auto}
nav.main{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-weight:700;font-size:15px}
nav.main a{text-decoration:none;color:var(--teal-900);padding:8px 2px}
nav.main a:hover{color:var(--orange-600)}
.pill{display:inline-flex;align-items:center;gap:8px;background:var(--teal-100);color:var(--teal-900);font-weight:800;font-size:12px;letter-spacing:.06em;text-transform:uppercase;padding:7px 12px;border-radius:999px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:16px;padding:16px 24px;font-weight:900;font-size:17px;text-decoration:none;cursor:pointer;transition:transform .12s ease,box-shadow .12s ease}
.btn.primary{background:linear-gradient(90deg,var(--orange-500),#ff8247);color:#fff;box-shadow:0 10px 26px rgba(240,90,26,.28)}
.btn.primary:hover{transform:translateY(-1px);box-shadow:0 14px 30px rgba(240,90,26,.34)}
.btn.ghost{background:#fff;color:var(--teal-900);border:1px solid var(--line)}
.textlink{font-weight:800;color:var(--teal-900);text-decoration:underline;text-underline-offset:4px}
.hero{display:grid;grid-template-columns:1.15fr .85fr;gap:calc(var(--grid) * 2);align-items:center;padding:calc(var(--grid) * 2) 0 calc(var(--grid) * 3)}
.hero .lead{font-size:clamp(18px,2.2vw,22px);color:var(--muted);max-width:560px}
.hero .cta{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:20px}
.hero .phone{font-size:14px;color:var(--muted);margin-top:10px}
.hero .phone a{font-weight:900;color:var(--teal-900);text-decoration:none;font-size:18px}
.story-video{display:grid;grid-template-columns:.8fr 1.2fr;gap:calc(var(--grid) * 2);align-items:center;margin:0 0 calc(var(--grid) * 2);padding:calc(var(--grid) * 1.5);border:1px solid rgba(40,185,170,.28);border-radius:28px;background:linear-gradient(135deg,rgba(255,255,255,.82),rgba(239,251,248,.72));box-shadow:0 18px 52px rgba(6,82,74,.12);overflow:hidden;position:relative}
.story-video:before{content:"";position:absolute;width:420px;height:420px;right:-220px;top:-240px;border-radius:50%;background:radial-gradient(circle,rgba(40,185,170,.2),transparent 68%);pointer-events:none}
.story-video__copy{position:relative;z-index:1;padding:8px}
.story-video__copy h2{margin-top:16px;max-width:420px}
.story-video__copy .muted{max-width:430px}
.story-video__fallback{font-size:14px;font-weight:700;color:var(--muted);margin:20px 0 0}
.story-video__frame{position:relative;z-index:1;aspect-ratio:16/9;min-height:220px;border-radius:20px;overflow:hidden;background:#082c31;box-shadow:0 14px 36px rgba(6,47,53,.22)}
.story-video__frame video{display:block;width:100%;height:100%;object-fit:cover;background:#082c31}
.story-video__empty{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:8px;padding:24px;text-align:center;color:#e5f7f3;background:linear-gradient(135deg,rgba(8,44,49,.96),rgba(13,85,88,.88));cursor:pointer}
.story-video__empty strong{font-size:17px;letter-spacing:-.01em}
.story-video__empty span:last-child{font-size:13px;color:#b8d9d3}
.story-video__play{display:grid;place-items:center;width:52px;height:52px;border:1px solid rgba(255,255,255,.35);border-radius:50%;color:#fff;background:rgba(40,185,170,.28);font-size:18px;padding-left:3px}
.story-video__empty:focus-visible{outline:3px solid var(--orange-500);outline-offset:-5px}
.story-video__frame.has-source .story-video__empty{display:none}
.mascot-card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;display:grid;place-items:center;position:relative;overflow:hidden}
.mascot-card:before{content:"";position:absolute;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(40,185,170,.18),rgba(40,185,170,0));right:-90px;top:-70px}
.mascot-card img{width:min(320px,80%);position:relative}
.big-number{font-size:clamp(44px,8vw,72px);font-weight:900;color:var(--teal-900);letter-spacing:-.05em;line-height:1}
.big-number small{font-size:.38em;color:var(--muted);font-weight:800;letter-spacing:0;margin-left:6px}
section{padding:calc(var(--grid) * 2) 0}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--grid)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:calc(var(--grid) + 4px);box-shadow:0 8px 22px rgba(7,75,70,.06);display:flex;flex-direction:column;gap:10px}
.card .k{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-700)}
.card h3{margin:0}
.card p{color:var(--muted);margin:0}
.card .go{margin-top:auto;padding-top:10px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:calc(var(--grid) * 2);align-items:center}
.list{list-style:none;padding:0;margin:0;display:grid;gap:12px}
.list li{display:flex;gap:12px;align-items:flex-start;font-size:17px}
.list li:before{content:"";flex:0 0 12px;height:12px;margin-top:8px;border-radius:50%;background:linear-gradient(90deg,var(--teal-600),var(--orange-500))}
.steps{counter-reset:s;display:grid;gap:14px}
.steps li{list-style:none;display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start}
.steps li:before{counter-increment:s;content:counter(s);width:44px;height:44px;border-radius:14px;background:var(--teal-900);color:#fff;display:grid;place-items:center;font-weight:900}
.get-app{background:var(--teal-950);color:#fff;border-radius:var(--radius);padding:calc(var(--grid) * 2);display:grid;grid-template-columns:1.1fr .9fr;gap:calc(var(--grid) * 2);align-items:center}
.get-app h2{color:#fff}
.get-app p{color:#cfe8dc}
.badges{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin:18px 0 8px}
.badge{display:inline-flex;align-items:center;gap:10px;background:#000;color:#fff;border:1px solid #444;border-radius:12px;padding:10px 16px;text-decoration:none;font-weight:800;min-height:52px}
.badge.soon{opacity:.55;cursor:default}
.badge small{display:block;font-size:10px;font-weight:600;opacity:.8}
.install-box{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:18px}
.install-box h3{color:#fff;margin-bottom:6px}
.install-box ol{margin:8px 0 0 18px;padding:0;color:#cfe8dc}
#installBtn{display:none}
.notice{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:18px 20px;color:var(--muted);font-size:14px}
footer{padding:calc(var(--grid) * 2) 0 calc(var(--grid) * 3);color:var(--muted);font-size:14px}
footer .row{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center}
footer a{color:var(--teal-900);text-decoration:none;font-weight:700}
footer nav{display:flex;gap:16px;flex-wrap:wrap}
.legal{max-width:760px}
.legal h1{font-size:clamp(28px,5vw,40px)}
.legal h2{font-size:22px;margin-top:28px}
.legal p,.legal li{font-size:16px}
@media (max-width:900px){
  .hero,.split,.get-app,.story-video{grid-template-columns:1fr}
  .cards{grid-template-columns:1fr}
  .hero{padding-top:var(--grid)}
  .mascot-card{order:-1}
  .mascot-card img{width:min(240px,60%)}
  .story-video__frame{order:-1;min-height:0}
}
@media (prefers-reduced-motion:reduce){.btn{transition:none}}

/* Keep the public site aligned with the app when the visitor prefers a dark system theme. */


/* EVV lane: the "Log in" nav anchor (app.swooshcare.com) and the /evv dead-phone door page. */
nav.main a.login{border:2px solid var(--teal-900);border-radius:999px;padding:8px 14px}
nav.main a.login:hover{border-color:var(--orange-600)}
.evv-page main{display:grid;place-items:center;padding:var(--grid) 0 calc(var(--grid) * 2)}
.evv-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:calc(var(--grid) + 8px);max-width:560px;width:100%}
.evv-card h1{font-size:clamp(30px,5vw,44px);margin-top:14px}
.evv-card .lead{font-size:19px;color:var(--muted)}
.evv-card .cta{margin:18px 0}
.evv-card .cta .btn{width:100%;min-height:60px;font-size:19px}
.evv-card .small{font-size:14px}

/* network lane: the /join/<provider code> referral landing page (docs/PROVIDER-REFERRAL-LINKS.md §3).
   Same card as /evv, plus the "invited by" line, the four steps and the rules box. */
.join-card{max-width:640px}
.join-card .join-from{margin:14px 0 0;font-size:15px;font-weight:700;color:var(--muted)}
.join-card .join-from strong{color:var(--teal-900);font-weight:900}
.join-card h1{margin-top:8px}
.join-steps{margin:22px 0 0;padding:0}
.join-steps li{font-size:16px}
.join-steps li:before{width:38px;height:38px;border-radius:12px;font-size:16px}
.join-steps li{grid-template-columns:38px 1fr}
.join-notice{margin-top:22px;font-size:14px}
.join-notice strong{color:var(--ink)}

/* UGC lane: swooshcare.com/ugc, the public creator page (docs/EVV-PRICING-UGC-NETWORK.md §2). */
.ugc-calc{display:grid;gap:14px;margin-top:18px}
.ugc-calc .field label{display:block;font-weight:800;font-size:14px;color:var(--muted);margin-bottom:6px}
.ugc-calc input{font:inherit;font-size:20px;font-weight:800;width:100%;max-width:280px;padding:14px 16px;border:2px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);outline:none}
.ugc-calc input:focus{border-color:var(--teal-700)}
.ugc-calc .small{font-size:13px;margin:6px 0 0}
.ugc-out{padding:24px;background:var(--card)}
.ugc-out .k{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-700);margin-bottom:6px}
.ugc-out .big-number{display:block}
.ugc-form{display:grid;gap:14px;margin-top:18px;max-width:420px}
.ugc-form .field label{display:block;font-weight:800;font-size:14px;color:var(--muted);margin-bottom:6px}
.ugc-form input{font:inherit;font-size:18px;width:100%;padding:14px 16px;border:2px solid var(--line);border-radius:16px;background:#fff;color:var(--ink);outline:none}
.ugc-form input:focus{border-color:var(--teal-700)}
.ugc-form .cta{margin:4px 0 0}
.ugc-form .btn{width:100%;max-width:420px}
.ugc-form .small{font-size:13px;margin:0}
#codeErr{color:var(--danger);font-weight:800}
.ugc-code{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;margin-top:18px;max-width:480px;word-break:break-word}
.ugc-code .k{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-700)}
.ugc-code .big-number{letter-spacing:.06em;margin:4px 0 12px}
.ugc-code .btn{width:100%}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}
.get-app{color:var(--ink)}.get-app h2,.install-box h3{color:var(--ink)}.get-app p,.install-box p,.install-box ol{color:var(--muted)}
.list li{display:block;position:relative;padding-left:24px}.list li:before{position:absolute;left:0;top:.35em;margin:0;width:9px;height:9px}
.story-video__empty{cursor:default}.story-video__empty[role=button]{cursor:pointer}

/* Original Swoosh identity: white space, mint choices and an orange action. */
:root{color-scheme:light;--bg:#fff;--ink:#202a31;--muted:#68716f;--line:#e3e9e7;--card:#fff;--shadow:0 8px 26px #19342c08}
body{background:#fff}.progress-line{display:none}.wrap{width:min(1120px,100% - 40px)}header.top{border-bottom:1px solid var(--line)}.site-wordmark img{width:175px;height:auto}nav.main{font-size:14px;font-weight:600}.btn{font-weight:650;border-radius:14px}.btn.primary{background:#ff6b2c;box-shadow:none}.hero h1{font-weight:700;letter-spacing:-.045em}.hero{gap:48px;padding:64px 0}.mascot-card{box-shadow:none;border:0;background:white}.mascot-card:before{display:none}.care-visual{display:grid;place-items:center;min-height:360px}.care-visual img{height:330px;object-fit:contain}.card{box-shadow:none;border-radius:18px}.pill{background:#f0faf5;color:#276c58;letter-spacing:.07em}.story-video{background:#f7faf8;box-shadow:none;border:1px solid var(--line);border-radius:20px}.story-video:before{display:none}.story-video__frame{box-shadow:none}.get-app{background:#f1f8f4;border:1px solid var(--line)}.big-number{font-weight:700}.list li:before{background:#28b9aa}
@media(max-width:700px){.hero{grid-template-columns:1fr;gap:24px;padding:36px 0}.hero h1{font-size:44px}.care-visual{min-height:260px}.care-visual img{height:250px}nav.main{gap:12px}.story-video{grid-template-columns:1fr;padding:22px}.hero .cta{gap:16px}.cards,.split,.get-app{grid-template-columns:1fr}}


/* ================================================================================================
   Shared Swooshy UI layer — appended, never edited above this line.

   docs/SWOOSHY-UI.md asks for the SAME UI on the app, the website and the provider dashboard. The
   canonical copy of this layer is app/src/app.css; this is the same type scale and the same
   components so a page on swooshcare.com and a screen in the PWA are the same product. It only
   ADDS names (--text-*, .swooshy*, .reveal, .more-options, .voice-back, .reply-stream): nothing
   that the marketing page already styles is touched, so the live site keeps its current layout.
   ============================================================================================== */
:root{
  --text-2xs:11px;   /* micro uppercase labels */
  --text-xs:13px;    /* captions, footnotes, meta */
  --text-sm:15px;    /* secondary body, chips, nav */
  --text-md:17px;    /* body — the anchor */
  --text-lg:20px;    /* lead-in */
  --text-xl:23px;    /* the one question on a phone */
  --text-2xl:28px;   /* section display */
  --text-3xl:35px;   /* hero, big numbers */
  --text-4xl:44px;   /* the single figure a page is about */
  --leading-tight:1.15;--leading-snug:1.35;--leading-normal:1.55;
  --weight-regular:400;--weight-medium:550;--weight-semibold:650;--weight-bold:750;
}
.swooshy{position:relative;display:inline-block;flex:0 0 auto;line-height:0;width:var(--swooshy-w,42px);height:calc(var(--swooshy-w,42px)*1.15)}
.swooshy-sm{--swooshy-w:42px}
.swooshy-md{--swooshy-w:64px}
.swooshy-lg{--swooshy-w:110px}
.swooshy-stage{position:absolute;inset:0;display:block}
.swooshy-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:bottom center;opacity:0}
.swooshy-frame[data-still]{opacity:1}
.swooshy.is-thinking .swooshy-frame:nth-child(1){animation:swooshy-f1 3s ease-in-out infinite}
.swooshy.is-thinking .swooshy-frame:nth-child(2){animation:swooshy-f2 3s ease-in-out infinite}
.swooshy.is-thinking .swooshy-frame:nth-child(3){animation:swooshy-f3 3s ease-in-out infinite}
@keyframes swooshy-f1{0%,28%{opacity:1}34%,94%{opacity:0}100%{opacity:1}}
@keyframes swooshy-f2{0%,28%{opacity:0}34%,61%{opacity:1}67%,100%{opacity:0}}
@keyframes swooshy-f3{0%,61%{opacity:0}67%,94%{opacity:1}100%{opacity:0}}
.swooshy.is-listening .swooshy-stage{animation:swooshy-breathe 2.6s ease-in-out infinite}
@keyframes swooshy-breathe{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
.swooshy.is-replying .swooshy-stage{animation:swooshy-settle .45s ease-out 1}
@keyframes swooshy-settle{from{transform:translateY(-3px)}to{transform:none}}
.swooshy.is-still .swooshy-frame,.swooshy.is-still .swooshy-stage,.swooshy.is-still .swooshy-wave{animation:none}
.swooshy-sign{position:absolute;right:-3px;bottom:1px;display:none;align-items:flex-end;gap:2px;height:12px}
.swooshy.is-listening .swooshy-sign,.swooshy.is-thinking .swooshy-sign{display:flex}
.swooshy-wave{display:block;width:3px;height:5px;border-radius:2px;background:var(--teal-600,#28b9aa)}
.swooshy.is-listening .swooshy-wave{animation:swooshy-hear 1.1s ease-in-out infinite}
.swooshy.is-listening .swooshy-wave:nth-child(2){animation-delay:.18s}
.swooshy.is-listening .swooshy-wave:nth-child(3){animation-delay:.36s}
@keyframes swooshy-hear{0%,100%{height:5px}50%{height:12px}}
.swooshy.is-thinking .swooshy-wave{width:4px;height:4px;border-radius:50%;background:var(--orange-500,#ff6b2c);animation:swooshy-think 1.3s ease-in-out infinite}
.swooshy.is-thinking .swooshy-wave:nth-child(2){animation-delay:.16s}
.swooshy.is-thinking .swooshy-wave:nth-child(3){animation-delay:.32s}
@keyframes swooshy-think{0%,100%{opacity:.35;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}
.reveal{animation:reveal-in .28s ease-out both}
@keyframes reveal-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.more-options{border-top:1px solid var(--line);margin-top:4px}
.more-options>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;min-height:44px;padding:10px 0;font-size:var(--text-xs);font-weight:var(--weight-semibold);color:var(--muted)}
.more-options>summary::-webkit-details-marker{display:none}
.more-options>summary::after{content:"\25BE";font-size:var(--text-2xs);line-height:1}
.more-options[open]>summary::after{content:"\25B4"}
.more-options .more-body{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:0 0 12px}
.voice-back{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--teal-50,#f2faf6)}
.voice-back-mode{display:flex;align-items:center;gap:8px;margin:0;font-size:var(--text-2xs);font-weight:var(--weight-bold);letter-spacing:.1em;text-transform:uppercase;color:var(--teal-700)}
.voice-back-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--teal-600,#28b9aa)}
.voice-back-heard{margin:0;font-size:var(--text-md);line-height:var(--leading-snug);color:var(--ink)}
.voice-back-reply{font-size:var(--text-md);line-height:var(--leading-normal)}
.voice-back-why{margin:0;font-size:var(--text-xs);line-height:var(--leading-snug);color:var(--muted)}
.reply-stream{margin:0;font-size:var(--text-md);line-height:var(--leading-normal);white-space:pre-wrap}
.reply-stream[data-streaming]::after{content:"";display:inline-block;width:2px;height:1em;margin-left:3px;vertical-align:-.15em;background:var(--teal-700);animation:reply-caret 1.05s steps(1,end) infinite}
@keyframes reply-caret{50%{opacity:0}}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}
@media (prefers-reduced-motion:reduce){
  .reveal,.swooshy .swooshy-stage,.swooshy .swooshy-wave,.reply-stream[data-streaming]::after{animation:none}
  .swooshy .swooshy-frame{animation:none;opacity:0}
  .swooshy .swooshy-frame[data-still]{opacity:1}
  .swooshy .swooshy-wave{height:5px}
}
@media (min-width:700px){
  .swooshy-md{--swooshy-w:76px}
  .swooshy-lg{--swooshy-w:132px}
  .more-options>summary{font-size:var(--text-sm)}
  .voice-back{padding:20px 22px}
}

/* ================================================================================================
   i18n-site lane (wave 4): Spanish under /es/ (site/lang.js). The small English / Espanol link
   sits in every page header: after the nav on a wide screen, beside the logo on a phone. The 404 and
   offline pages carry both languages; html[data-show-lang] (set by lang.js) picks one.
   ============================================================================================== */
.lang-switch{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:6px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--teal-900);font-size:var(--text-sm);font-weight:700;line-height:1;text-decoration:none;white-space:nowrap}
.lang-switch:hover{border-color:var(--orange-500);color:var(--orange-600)}
header.top .lang-switch{order:3}
header.top nav.main{margin-left:auto}
@media (max-width:700px){header.top .lang-switch{order:0;margin-left:auto}header.top nav.main{margin-left:0}}
html:not([data-show-lang="es"]) [data-lang-block="es"]{display:none}
html[data-show-lang="es"] [data-lang-block="en"]{display:none}
