/*
  The public website. Light only, on purpose: it signs people into the admin portal, which has no
  dark mode, and a visitor whose phone is set to dark should still see the same warm brand the
  portal and the app open on. Every colour is a token from the PWA's app/globals.css (the phone
  app's tokens.ts holds the same values), so the three never drift apart.
*/
:root{
  --background:#edeae3;
  --surface:#fbf9f5;
  --white:#ffffff;
  --ink:#3d0f11;
  --primary:#c23538;
  --primary-hover:#a82c2f;
  --primary-tint:#fbe9e9;
  --mint:#f0aeae;
  --border:#e1ddd2;
  --track:#edeae0;
  --text:#3a4a44;
  --text-2:#5c6b65;
  --muted:#8a968f;
  --blush-bg:#fbede8;
  --blush:#e8c9be;
  --blush-ink:#8a4b37;
  --success:#34996b;
  --info:#57a8e0;
  --shadow-soft:0 1px 2px rgba(61,15,17,.04),0 12px 32px -18px rgba(61,15,17,.22);
  --shadow-lift:0 2px 4px rgba(61,15,17,.05),0 30px 60px -30px rgba(61,15,17,.35);
  --font-head:"Sora",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-body:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0}
html{scroll-behavior:smooth}
body{background:var(--surface);color:var(--text);font-family:var(--font-body);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
.wrap{max-width:1200px;margin:0 auto;padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px))}
h1,h2,h3{font-family:var(--font-head);color:var(--ink);margin:0;text-wrap:balance;line-height:1.18}
p{margin:0}
a{color:var(--primary)}
a:focus-visible,.btn:focus-visible,summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-body);font-weight:600;font-size:15px;text-decoration:none;border-radius:999px;padding:12px 22px;border:1.5px solid transparent;transition:background-color .15s,border-color .15s}
.btn-primary{background:var(--primary);color:var(--white);border-color:var(--primary);box-shadow:0 8px 20px -10px rgba(194,53,56,.7)}
.btn-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.btn-secondary{background:var(--white);color:var(--ink);border-color:var(--border)}
.btn-secondary:hover{background:var(--primary-tint);border-color:var(--mint)}
.btn-sm{padding:8px 18px;font-size:14px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--primary)}
.icon{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* Header: the leaf mark beside the wordmark, never the lockup, whose slogan is unreadable this small. */
.top{position:sticky;top:0;z-index:10;background:rgba(251,249,245,.86);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid rgba(225,221,210,.7)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:68px}
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.brand .mark{height:34px;width:auto}
.brand .word{height:22px;width:auto;margin-top:3px}
.top-links{display:flex;align-items:center;gap:24px}
.top-links a.plain{color:var(--text-2);text-decoration:none;font-size:14.5px;font-weight:500}
.top-links a.plain:hover{color:var(--primary)}

/* Hero */
.hero{position:relative;overflow:hidden;padding-block:72px 88px;background:
  radial-gradient(60% 70% at 85% 30%,var(--blush-bg) 0%,rgba(251,237,232,0) 70%),
  radial-gradient(40% 50% at 10% 90%,var(--primary-tint) 0%,rgba(251,233,233,0) 70%),
  var(--surface)}
.hero .wrap{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center}
.hero-copy{display:flex;flex-direction:column;gap:24px;min-width:0}
.hero h1{font-size:clamp(36px,5.2vw,58px);font-weight:700;letter-spacing:-.025em}
.hero h1 em{font-style:normal;color:var(--primary)}
.lede{font-size:18.5px;color:var(--text-2);max-width:32em}
.actions{display:flex;flex-wrap:wrap;gap:12px}
.partner{display:flex;align-items:center;gap:12px;padding-top:8px;font-size:14px;color:var(--text-2)}
.partner .dot{display:grid;place-items:center;width:38px;height:38px;border-radius:999px;background:var(--white);border:1px solid var(--border);color:var(--primary);flex:none}
.partner .dot .icon{width:18px;height:18px}
.partner strong{color:var(--ink);font-weight:600}

/* The product picture: the patient's day on a phone, with the dietician's view around it. */
.stage{position:relative;min-width:0;display:flex;justify-content:center;padding:12px 0 24px}
.phone{position:relative;z-index:2;width:300px;max-width:100%;background:var(--background);border:9px solid var(--ink);border-radius:42px;padding:18px 14px 20px;box-shadow:var(--shadow-lift);display:flex;flex-direction:column;gap:12px}
.phone::before{content:"";position:absolute;top:8px;left:50%;transform:translateX(-50%);width:84px;height:20px;border-radius:999px;background:var(--ink)}
.phone-head{padding:22px 4px 2px;display:flex;flex-direction:column;gap:2px}
.phone-head small{font-size:12px;color:var(--muted)}
.phone-head strong{font-family:var(--font-head);font-size:20px;color:var(--ink)}
.p-card{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:12px 14px}
.meals{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.meal{display:grid;grid-template-columns:22px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid var(--track)}
.meal:last-child{border-bottom:0}
.tick{width:20px;height:20px;border-radius:999px;border:1.5px solid var(--border);display:grid;place-items:center}
.tick.done{background:var(--success);border-color:var(--success)}
.tick.done svg{width:12px;height:12px;stroke:var(--white);stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round}
.meal .slot{display:block;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.meal .dish{display:block;font-size:13.5px;color:var(--ink);font-weight:500;line-height:1.3}
.meal .kj{font-size:12px;color:var(--text-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.macros{display:flex;flex-direction:column;gap:8px}
.macro{display:grid;grid-template-columns:52px 1fr 64px;gap:8px;align-items:center;font-size:11.5px;color:var(--text-2)}
.macro .val{text-align:right;font-variant-numeric:tabular-nums}
.bar{height:7px;border-radius:999px;background:var(--track);overflow:hidden}
.bar i{display:block;height:100%;border-radius:inherit;background:var(--success)}
.bar i.under{background:var(--info)}
.float{position:absolute;z-index:3;background:var(--white);border:1px solid var(--border);border-radius:18px;padding:14px 16px;box-shadow:var(--shadow-soft);display:flex;flex-direction:column;gap:6px;width:210px}
.float small{font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.float strong{font-family:var(--font-head);font-size:15px;color:var(--ink);line-height:1.3}
/*
  The two cards overlap the phone's bezel by 18px and never reach its screen, which starts 23px in
  (9px frame + 14px padding). They are placed from the phone's centre line so that holds at any
  column width, and hidden below 1200px, where the column is too narrow to hold them beside it.
*/
.float{width:176px}
.float.weight{left:calc(50% - 150px - 176px + 18px);bottom:72px}
.float.weight svg{width:100%;height:36px}
.float.plan{left:calc(50% + 150px - 18px);top:56px}
.float.plan span{font-size:12.5px;color:var(--text-2)}
.pill{align-self:flex-start;font-size:11px;font-weight:600;border-radius:999px;padding:2px 9px;background:var(--primary-tint);color:var(--primary)}

/* Sections */
section{scroll-margin-top:80px}
.band{padding-block:88px}
.band.oat{background:var(--background)}
.section-head{display:flex;flex-direction:column;gap:12px;max-width:640px;margin-bottom:44px}
.section-head h2{font-size:clamp(28px,3.6vw,38px);letter-spacing:-.02em}
.section-head p{font-size:17px;color:var(--text-2)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.step{background:var(--white);border:1px solid var(--border);border-radius:20px;padding:28px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-soft)}
.step .num{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--primary-tint);color:var(--primary);font-family:var(--font-head);font-weight:700}
.step h3{font-size:18px}
.step p{color:var(--text-2);font-size:15px}
.who{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.who article{background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:36px;display:flex;flex-direction:column;gap:18px;min-width:0}
.who article.patients{background:linear-gradient(160deg,var(--blush-bg),var(--surface) 70%)}
.who h3{font-size:24px;letter-spacing:-.01em}
.checks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.checks li{display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:start}
.checks .icon{color:var(--primary);margin-top:2px}
.who .note{font-size:14px;color:var(--text-2);border-top:1px solid var(--border);padding-top:16px;margin-top:auto}
.trust{display:grid;grid-template-columns:1fr 1.4fr;gap:56px;align-items:start}
.trust-head{display:flex;flex-direction:column;gap:14px;align-items:flex-start;position:sticky;top:110px}
.trust-head h2{font-size:clamp(28px,3.6vw,38px);letter-spacing:-.02em}
.trust-head p{color:var(--text-2);font-size:17px}
.trust-head a{font-weight:600}
.points{display:grid;gap:16px}
.point{display:grid;grid-template-columns:48px 1fr;gap:18px;background:var(--white);border:1px solid var(--border);border-radius:20px;padding:24px}
.point .badge{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--blush-bg);color:var(--blush-ink)}
.point h3{font-size:17px;margin-bottom:6px}
.point p{color:var(--text-2);font-size:15px}
.solo{display:grid;grid-template-columns:1fr 1.25fr;gap:56px;align-items:center}
.solo-copy{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.solo-copy h2{font-size:clamp(28px,3.6vw,38px);letter-spacing:-.02em}
.solo-copy p{color:var(--text-2);font-size:17px;max-width:30em}
.solo-copy .actions{margin-top:8px}
.solo-points{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.solo-points li{background:var(--white);border:1px solid var(--border);border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:14px;box-shadow:var(--shadow-soft)}
.solo-points .badge{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--primary-tint);color:var(--primary)}
.solo-points h3{font-size:16.5px;margin-bottom:6px}
.solo-points p{color:var(--text-2);font-size:14.5px}
.cta{background:linear-gradient(135deg,var(--primary-tint),var(--blush-bg));border:1px solid var(--blush);border-radius:28px;padding:56px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:28px}
.cta h2{font-size:clamp(26px,3.2vw,34px);letter-spacing:-.02em}
.cta p{color:var(--text-2);margin-top:10px;max-width:34em}
.cta .actions{align-items:center}

/* Footer */
footer{background:var(--background);border-top:1px solid var(--border);padding-block:48px 40px;font-size:14px;color:var(--text-2)}
.foot{display:grid;grid-template-columns:1.4fr 1fr;gap:32px 48px}
.foot .brand .mark{height:30px}
.foot .brand .word{height:19px}
.legal{display:flex;flex-direction:column;gap:6px;margin-top:16px}
.legal .made{color:var(--ink)}
.legal .made a,.partner a{color:inherit;text-decoration-color:var(--mint);text-underline-offset:3px}
.legal .made a:hover,.partner a:hover{color:var(--primary)}
.foot nav{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;align-content:start;justify-self:end}
.foot nav a{color:var(--text-2);text-decoration:none}
.foot nav a:hover,.foot nav a[aria-current="page"]{color:var(--primary)}
.copy{grid-column:1 / -1;border-top:1px solid var(--border);padding-top:20px;font-size:13px;color:var(--muted)}

/* Document pages */
.doc-head{background:radial-gradient(50% 120% at 90% 0%,var(--blush-bg) 0%,rgba(251,237,232,0) 70%),var(--background);border-bottom:1px solid var(--border);padding-block:56px 44px}
.doc-head .wrap{display:flex;flex-direction:column;gap:12px}
.doc-head h1{font-size:clamp(32px,4.6vw,46px);letter-spacing:-.02em}
.doc-head p{color:var(--text-2);max-width:44em;font-size:17px}
.doc-meta{font-size:13.5px;color:var(--muted)}
.doc{padding-block:56px 88px}
.doc .wrap{display:grid;grid-template-columns:220px minmax(0,1fr);gap:64px;align-items:start}
.toc{position:sticky;top:96px;display:flex;flex-direction:column;gap:2px;font-size:14px;border-left:2px solid var(--border);padding-left:16px}
.toc strong{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.toc a{color:var(--text-2);text-decoration:none;padding:5px 0;line-height:1.35}
.toc a:hover{color:var(--primary)}
.prose{max-width:70ch;display:flex;flex-direction:column;gap:16px;min-width:0}
.prose h2{font-size:22px;margin-top:32px;scroll-margin-top:96px}
.prose h2:first-child{margin-top:0}
.prose h3{font-size:16.5px;margin-top:8px}
.prose ul{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.prose strong{color:var(--ink)}
.callout{background:var(--primary-tint);border:1px solid var(--mint);border-radius:18px;padding:18px 22px;color:var(--ink)}
.prose table{width:100%;border-collapse:separate;border-spacing:0;background:var(--white);border:1px solid var(--border);border-radius:18px;font-size:15px;overflow:hidden}
.prose th,.prose td{text-align:left;vertical-align:top;padding:10px 14px;border-bottom:1px solid var(--border)}
.prose th{color:var(--muted);font-weight:600;font-size:13px;letter-spacing:.04em;text-transform:uppercase}
.prose tr:last-child td{border-bottom:0}
.prose td:first-child{color:var(--ink);width:45%}
ol.callout{margin:0;padding-left:40px;display:flex;flex-direction:column;gap:8px}
.facts{display:grid;grid-template-columns:auto 1fr;gap:8px 24px;background:var(--white);border:1px solid var(--border);border-radius:18px;padding:20px 22px;font-size:15px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.help-card{background:var(--white);border:1px solid var(--border);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow-soft)}
.help-card h2{font-size:18px;margin:0}
.help-card p{color:var(--text-2);font-size:15px}
.faq{display:flex;flex-direction:column;gap:10px}
details{background:var(--white);border:1px solid var(--border);border-radius:16px;transition:border-color .2s,box-shadow .2s}
details:hover,details[open]{border-color:var(--mint)}
details[open]{box-shadow:var(--shadow-soft)}
summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;cursor:pointer;list-style:none;font-family:var(--font-head);font-weight:600;color:var(--ink);font-size:16px;line-height:1.35;border-radius:16px}
summary::-webkit-details-marker{display:none}
/* A chevron drawn from two borders, so it takes the brand colour without another icon file. */
summary::after{content:"";flex:none;width:9px;height:9px;margin:-4px 4px 0 0;border-right:2px solid var(--primary);border-bottom:2px solid var(--primary);transform:rotate(45deg);transition:transform .2s,margin .2s}
details[open] summary::after{margin-top:4px;transform:rotate(-135deg)}
details>p{margin:0 20px;color:var(--text-2)}
details>p+p{margin-top:8px}
details>p:last-child{margin-bottom:18px}

/*
  Motion. Everything is visible without it: the hidden starting states apply only once motion.js
  has added .js to <html>, and only for visitors who have not asked their device to reduce motion.
  Nothing moves for ever except the slow drift of the phone and its cards.
*/
@keyframes rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes drift{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes grow{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes pop{0%{transform:scale(.4);opacity:0}70%{transform:scale(1.15);opacity:1}100%{transform:scale(1)}}
@keyframes draw{from{stroke-dashoffset:240}to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:no-preference){
  .btn{transition:background-color .15s,border-color .15s,transform .2s,box-shadow .2s}
  .btn:hover{transform:translateY(-1px)}
  .step,.solo-points li,.point,.help-card{transition:transform .25s ease,box-shadow .25s ease}
  .step:hover,.solo-points li:hover,.point:hover,.help-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
  .js .enter{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
  .js .hero-copy .enter:nth-child(2){animation-delay:.08s}
  .js .hero-copy .enter:nth-child(3){animation-delay:.16s}
  .js .hero-copy .enter:nth-child(4){animation-delay:.24s}
  .js .hero-copy .enter:nth-child(5){animation-delay:.32s}
  .js .stage{animation:rise .9s .15s cubic-bezier(.2,.7,.2,1) both}
  .js .phone{animation:drift 7s 1.2s ease-in-out infinite}
  .js .float.plan{animation:rise .7s .7s cubic-bezier(.2,.7,.2,1) both,drift 8s 1.6s ease-in-out infinite}
  .js .float.weight{animation:rise .7s .9s cubic-bezier(.2,.7,.2,1) both,drift 9s 2s ease-in-out infinite}
  .js .bar i{transform-origin:left;animation:grow 1.1s .8s cubic-bezier(.2,.7,.2,1) both}
  .js .macro:nth-child(2) .bar i{animation-delay:.95s}
  .js .macro:nth-child(3) .bar i{animation-delay:1.1s}
  .js .tick.done{animation:pop .45s 1.2s both}
  .js .meal:nth-child(2) .tick.done{animation-delay:1.45s}
  .js .trend{stroke-dasharray:240;animation:draw 1.4s 1.3s ease-out both}
  .reveal-ready .reveal{opacity:0;transform:translateY(22px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1),box-shadow .25s ease}
  .reveal-ready .reveal.in{opacity:1;transform:none}
  .reveal-ready .reveal.in:hover{transform:translateY(-3px)}
  .reveal-ready .who .reveal.in:hover,.reveal-ready .cta.reveal.in:hover,.reveal-ready .section-head.reveal.in:hover,.reveal-ready .trust-head.reveal.in:hover,.reveal-ready .solo-copy.reveal.in:hover{transform:none}
}
@media (max-width:1200px){.float{display:none}}
@media (max-width:960px){
  .hero .wrap,.trust,.solo{grid-template-columns:1fr;gap:48px}
  .trust-head{position:static}
  .steps{grid-template-columns:1fr}
  .who,.help-grid{grid-template-columns:1fr}
  .doc .wrap{grid-template-columns:1fr;gap:28px}
  .toc{position:static;background:var(--white);border:1px solid var(--border);border-radius:18px;padding:16px 18px}
  .foot{grid-template-columns:1fr}
  .foot nav{justify-self:start}
}
@media (max-width:560px){
  .top-links{gap:14px}
  .btn{min-height:44px}
  .top-links a.plain{display:none}
  .brand .mark{height:30px}
  .brand .word{height:19px}
  .hero{padding-block:44px 56px}
  .band{padding-block:64px}
  .stage{padding-bottom:0}
  .phone{width:100%;max-width:320px}
  .who article,.cta{padding:28px 22px}
  .point{grid-template-columns:1fr;gap:12px}
  .solo-points{grid-template-columns:1fr}
  .facts{grid-template-columns:1fr;gap:2px}
  .facts dd{margin-bottom:8px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
