/*
Theme Name: Vitality Stacks
Theme URI: https://vitalitystacks.com/
Description: Classic theme for vitalitystacks.com. The September 2026 design concept, set in Montserrat (the logo typeface): a white ground with sage bands and ink dark sections, one daily pack built from the 54-compound clinical formulary. The site chrome (nav, footer, end band), the front page, How it works, Supplement quality and Contact live here; the Vitality Stacks Learn plugin renders /learn/, /packs/ and /quiz/ inside this chrome using these classes.
Author: Vitality Stacks
Author URI: https://vitalitystacks.com/
Version: 0.8.1
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vitality-stacks
*/

/* =========================================================================
   1. Tokens
   The same block sits at the top of the plugin's learn.css and commerce.css
   so plugin routes render identically even without this theme.
   ========================================================================= */
:root{
  --white:#FFFFFF;
  --sage:#F1F4F0;
  --sage-2:#E6ECE7;
  --line:#DDE3DF;
  --ink:#0F2A22;
  --slate:#54655F;
  --mute:#8E9B96;
  --green:#1E6B58;
  --green-deep:#12463A;
  --glow:#4FD1A5;
  --amber-bg:#FBF3E4;
  --amber:#B7791F;
  --max:1280px;
  --col:680px;
}

/* =========================================================================
   2. Base
   ========================================================================= */
/* Every element-level rule in this file ends in :where(:not(.vs-embed *)).
   The backend's checkout and account components render in the light DOM
   (Stripe's iframes need it) inside .vs-embed on /checkout/, /account/ and
   /order-confirmed/, and a bare button{} or input{} here would restyle them
   — input[type=text] at (0,1,1) beats their .vs-input at (0,1,0). :where()
   adds no specificity, so every rule ranks exactly as it did before. */
*:where(:not(.vs-embed *)){box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
body{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--ink);background:var(--white);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
a:where(:not(.vs-embed *)){color:inherit;text-decoration:none}
button:where(:not(.vs-embed *)){font:inherit;cursor:pointer;border:0;background:none;color:inherit}
img:where(:not(.vs-embed *)),svg:where(:not(.vs-embed *)),video:where(:not(.vs-embed *)),picture:where(:not(.vs-embed *)){display:block}
img:where(:not(.vs-embed *)){max-width:100%;height:auto}
:where(:not(.vs-embed *)):focus-visible{outline:2px solid var(--green);outline-offset:3px}
.end :focus-visible,.vsm :focus-visible,.sci :focus-visible,.statbox :focus-visible,.cta-in :focus-visible,.path-card.custom:focus-visible{outline-color:var(--glow)}
main{display:block}

.skip{position:absolute;left:-999px;top:0;z-index:100;background:var(--ink);color:#fff;padding:10px 16px;border-radius:0 0 10px 0;font-weight:600;font-size:14px}
.skip:focus{left:0}
.screen-reader-text,.sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hide{display:none!important}

/* =========================================================================
   3. Layout
   ========================================================================= */
.wrap{max-width:var(--max);margin:0 auto;padding:0 40px}
section:where(:not(.vs-embed *)){padding:112px 0}
.band{background:var(--sage)}
.split{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}

.three-up{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:56px;border-top:1px solid var(--line)}
.three-up>div{padding:32px 36px 0 0;border-right:1px solid var(--line);margin-right:36px}
.three-up>div:last-child{border-right:0;margin-right:0;padding-right:0}
.three-up .n{font-size:13px;font-weight:700;color:var(--green);margin-bottom:24px}
.three-up h3{margin-bottom:10px}
.three-up p{font-size:16px;color:var(--slate);max-width:34ch}

.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{display:block;color:inherit}
.card .ph{aspect-ratio:3/2;border-radius:14px;margin-bottom:16px}
.card .cat{font-size:13px;color:var(--green);font-weight:600;margin-bottom:8px}
.card h3{font-size:20px;font-weight:600;font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;letter-spacing:-0.01em;line-height:1.25;margin-bottom:8px}
.card p{font-size:14px;color:var(--slate);line-height:1.5}
.card time{font-size:13px;color:var(--mute);display:block;margin-top:10px}
.card:hover h3{color:var(--green)}

/* =========================================================================
   4. Type
   ========================================================================= */
h1:where(:not(.vs-embed *)),h2:where(:not(.vs-embed *)),h3:where(:not(.vs-embed *)){font-weight:600;letter-spacing:-0.02em;line-height:1.06}
h1:where(:not(.vs-embed *)){font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(44px,6vw,80px)}
h2:where(:not(.vs-embed *)){font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(32px,4.4vw,58px)}
h3:where(:not(.vs-embed *)){font-family:'Montserrat',system-ui,sans-serif;font-size:21px;letter-spacing:-0.01em;font-weight:600}
.lead{font-size:clamp(18px,1.5vw,21px);color:var(--slate);max-width:56ch;line-height:1.5}
.lead.two{color:var(--ink);font-weight:500}
.kick{font-size:14px;font-weight:600;color:var(--green);margin-bottom:20px;display:flex;align-items:center;gap:8px}
.kick i{width:7px;height:7px;border-radius:50%;background:var(--green);flex:none}
.center{text-align:center}
.center .lead,.center h1,.center h2{margin-left:auto;margin-right:auto}
.center .kick{justify-content:center}
.fine{font-size:12px;color:var(--mute)}

/* Generic WordPress content (index.php fallback, page content) */
.prose{font-size:18px;line-height:1.72;color:#243B34;max-width:var(--col)}
.prose p,.prose ul,.prose ol,.prose figure,.prose table{margin:0 0 26px}
.prose ul,.prose ol{padding-left:22px;display:grid;gap:10px}
.prose h2{font-size:clamp(27px,2.6vw,34px);letter-spacing:-0.015em;line-height:1.2;margin:52px 0 18px}
.prose h3{margin:36px 0 12px}
.prose a:not(.btn){color:var(--green);font-weight:600;box-shadow:inset 0 -1px 0 rgba(30,107,88,.3)}
.prose a:not(.btn):hover{box-shadow:inset 0 -2px 0 var(--green)}
.prose img{border-radius:14px}
.prose strong{font-weight:600;color:var(--ink)}
.prose blockquote{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(24px,2.6vw,30px);line-height:1.32;letter-spacing:-0.015em;color:var(--ink);margin:44px 0;padding-left:24px;border-left:3px solid var(--green)}

/* =========================================================================
   5. Buttons
   ========================================================================= */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:15px 26px;border-radius:999px;font-weight:600;font-size:15px;line-height:1.2;transition:background .15s,color .15s,border-color .15s;white-space:nowrap;cursor:pointer;border:0}
.btn-ink{background:var(--ink);color:#fff}
.btn-ink:hover{background:var(--green-deep);color:#fff}
.btn-line{border:1.5px solid var(--ink);background:transparent;color:var(--ink)}
.btn-line:hover{background:var(--ink);color:#fff}
.btn-white{background:#fff;color:var(--ink)}
.btn-white:hover{background:var(--sage-2)}
.btn-ghost{border:1.5px solid #3d5650;color:#fff;background:transparent}
.btn-ghost:hover{background:#1a3a31;color:#fff}
.btn[disabled],.btn[aria-disabled="true"]{opacity:.55;cursor:not-allowed}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.center .row,.end .row{justify-content:center}

/* =========================================================================
   6. Chrome: nav
   ========================================================================= */
.nav{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.admin-bar .nav{top:32px}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:32px;height:68px}
.logo{display:flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-0.03em;font-size:18px;white-space:nowrap;flex:none;color:var(--ink)}
.logo svg{height:34px;width:auto;display:block}
.wordmark{height:34px;width:auto;display:block}
footer.site-foot .logo .wordmark{height:46px}
.wordmark-text{font-weight:700;letter-spacing:.18em;text-transform:uppercase;font-size:15px}
.navlinks{display:flex;gap:28px;font-size:15px;font-weight:500;white-space:nowrap}
.navlinks>*{position:relative}
.navlinks>a{padding:6px 0}
.navlinks>a:hover::after,.navlinks>a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1.5px;background:var(--ink)}
.navlinks .drop>button{display:flex;align-items:center;gap:6px;padding:6px 0}
.navlinks .drop>button svg{transition:transform .15s}
.navlinks .drop.open>button svg{transform:rotate(180deg)}
.navlinks .menu{position:absolute;top:calc(100% + 14px);left:-18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px;display:none;min-width:200px;box-shadow:0 12px 32px rgba(15,42,34,.1);z-index:5}
.navlinks .menu::before{content:"";position:absolute;left:0;right:0;top:-15px;height:15px}
.navlinks .drop.open .menu{display:grid}
@media (hover:hover){.navlinks .drop:hover .menu{display:grid}}
.navlinks .menu a{padding:10px 12px;border-radius:9px;font-size:14px}
.navlinks .menu a:hover,.navlinks .menu a:focus-visible{background:var(--sage)}
.navcta{display:flex;gap:10px;align-items:center;flex:none}
.navcta .txt{font-size:15px;font-weight:600;white-space:nowrap}
.navcta .btn{padding:10px 18px;font-size:14px}
.navtoggle{display:none;width:40px;height:40px;border-radius:999px;border:1.5px solid var(--line);place-items:center;flex:none}
.navtoggle svg{stroke:currentColor;stroke-width:1.8;stroke-linecap:round;fill:none}
.navtoggle path{transform-box:fill-box;transform-origin:center;transition:transform .15s,opacity .15s}
.nav.open .navtoggle .b1{transform:translateY(5px) rotate(45deg)}
.nav.open .navtoggle .b2{opacity:0}
.nav.open .navtoggle .b3{transform:translateY(-5px) rotate(-45deg)}

/* =========================================================================
   7. Chrome: footer
   ========================================================================= */
footer.site-foot{background:var(--sage);padding:56px 0 40px;font-size:14px;color:var(--slate)}
footer.site-foot .cols{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:32px;padding-bottom:36px}
footer.site-foot .cols.cols-3{grid-template-columns:2fr repeat(2,1fr)}
footer.site-foot .brand p{max-width:32ch;margin-top:14px}
footer.site-foot .brand .foot-advisor{max-width:36ch;margin-top:10px;font-size:13px}
footer.site-foot .brand .foot-advisor a{color:var(--ink);font-weight:600}
footer.site-foot h5{font-size:14px;font-weight:600;color:var(--ink);margin-bottom:12px}
footer.site-foot ul{list-style:none;display:grid;gap:8px}
footer.site-foot a:hover{color:var(--ink)}
footer.site-foot .legal{border-top:1px solid var(--line);padding-top:22px;font-size:12px;color:var(--slate);line-height:1.6}

/* =========================================================================
   8. Chrome: end band (dark)
   ========================================================================= */
.end{background:var(--ink);color:#fff;text-align:center;padding:104px 0}
.end h2{max-width:16ch;margin:0 auto 16px}
.end p{color:#a9bcb5;max-width:52ch;margin:0 auto 30px}
.end .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}

/* =========================================================================
   9. Image slots
   .ph is a sage slot; add .real when it holds a real image, .contain for
   product shots that must not be cropped.
   ========================================================================= */
.ph{position:relative;background:var(--sage);overflow:hidden;display:grid;place-items:center;color:var(--mute);font-size:13px;text-align:center;padding:16px}
.ph::before{content:"";position:absolute;inset:10px;border:1.5px dashed #c8d1cc;border-radius:8px;pointer-events:none}
.ph span{max-width:28ch;line-height:1.4}
.ph>img,.ph>picture{position:absolute;inset:0;width:100%;height:100%}
.ph picture>img{width:100%;height:100%}
.ph img{object-fit:cover}
.ph.contain img{object-fit:contain;padding:4%}
.ph.real::before{display:none}
.ph.real{padding:0}
.play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:56px;height:56px;border-radius:50%;background:rgba(255,255,255,.9);display:grid;place-items:center}
.play::after{content:"";border-left:14px solid var(--ink);border-top:9px solid transparent;border-bottom:9px solid transparent;margin-left:4px}

/* =========================================================================
   10. Hero (shared by every page)
   ========================================================================= */
.hero{padding:80px 0 0}
.hero h1{max-width:13ch;margin-bottom:24px}
.hero .lead{margin-bottom:16px}
.hero .row{margin-top:32px}

/* Split hero — the copy sits in the open space the photograph was composed with.
   A left-to-right white scrim keeps the type legible over the window without
   washing out the product on the right. */
.hero-split{position:relative;display:grid;align-items:center;min-height:clamp(460px,52vw,660px);padding:0;overflow:hidden;isolation:isolate}
.hero-split .hero-bg{position:absolute;inset:0;z-index:0}
.hero-split .hero-bg picture,.hero-split .hero-bg img{display:block;width:100%;height:100%;object-fit:cover;object-position:72% 50%}
.hero-split .hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.90) 30%,rgba(255,255,255,.62) 46%,rgba(255,255,255,0) 62%)}
.hero-split>.wrap{position:relative;z-index:1;width:100%}
.hero-split .hero-copy{max-width:34rem}
.hero-split h1{max-width:14ch}
.hero-split .lead{max-width:38ch}
.hero-img{margin-top:72px}
.hero-img .ph{aspect-ratio:16/9}
.hero-img figcaption{font-size:13px;color:var(--mute);margin-top:10px}

.ticks{list-style:none;display:grid;gap:0;margin-top:32px}
.ticks li{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;padding:16px 0;border-top:1px solid var(--line);font-size:16px}
.ticks li:last-child{border-bottom:1px solid var(--line)}
.ticks svg{margin-top:3px;color:var(--green);flex:none}

/* =========================================================================
   11. Blocks
   ========================================================================= */
.takeaway{background:var(--sage);border-radius:18px;padding:28px 30px;margin:0 0 40px}
.takeaway h2{font-family:'Montserrat',system-ui,sans-serif;font-size:15px;font-weight:600;margin:0 0 14px;letter-spacing:0;line-height:1.3}
.takeaway ul{margin:0;padding-left:20px;font-size:16px;line-height:1.6;display:grid;gap:9px}

.call{border-radius:14px;padding:22px 24px;margin:36px 0;font-size:16px;line-height:1.6;background:var(--sage);border-left:3px solid var(--green)}
.call.warn{background:var(--amber-bg);border-left-color:var(--amber)}
.call b{display:block;margin-bottom:6px;font-weight:600}

.pull{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(24px,2.6vw,30px);line-height:1.32;letter-spacing:-0.015em;color:var(--ink);margin:44px 0;padding-left:24px;border-left:3px solid var(--green)}

.tbl{width:100%;border-collapse:collapse;font-size:15px;margin:36px 0}
.tbl th{text-align:left;font-weight:600;padding:0 14px 12px 0;color:var(--slate);font-size:13px;border-bottom:1.5px solid var(--line)}
.tbl td{padding:14px 14px 14px 0;border-bottom:1px solid var(--line);vertical-align:top;line-height:1.5}
.tbl tr:last-child td{border-bottom:0}
.tbl .best{color:var(--green);font-weight:600}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

.compound{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border:1.5px solid var(--line);border-radius:16px;padding:18px 20px;margin:36px 0;font-size:15px}
.compound .pill{width:56px;height:44px;background:var(--sage);border-radius:10px;display:grid;place-items:center}
.compound b{display:block;font-size:17px;font-weight:600}
.compound span{color:var(--slate);font-size:14px}
.compound .btn{padding:11px 18px;font-size:14px}

.cta-in{background:var(--ink);color:#fff;border-radius:20px;padding:34px 36px;margin:48px 0;display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center}
.cta-in h3{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:26px;font-weight:600;letter-spacing:-0.01em;line-height:1.2;max-width:22ch;margin-bottom:8px}
.cta-in p{color:#a9bcb5;font-size:15px;max-width:44ch;line-height:1.5}

.faq{margin:52px 0 0;padding:0;border-top:1px solid var(--line)}
.faq h2{font-size:clamp(27px,2.6vw,34px);letter-spacing:-0.015em;line-height:1.2;margin:0 0 6px}
.faq details{border-bottom:1px solid var(--line)}
.faq summary{list-style:none;cursor:pointer;padding:20px 40px 20px 0;font-size:17px;font-weight:600;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";position:absolute;right:6px;top:50%;transform:translateY(-50%);font-size:20px;font-weight:400;color:var(--mute)}
.faq details[open] summary::after{content:"\2212"}
.faq p{padding:0 0 22px;font-size:16px;color:var(--slate);line-height:1.65;max-width:62ch}

.refs{margin-top:52px;padding:28px 0 0;border-top:1px solid var(--line);font-size:14px;color:var(--slate)}
.refs h2{font-family:'Montserrat',system-ui,sans-serif;font-size:15px;font-weight:600;margin:0 0 16px;letter-spacing:0;line-height:1.3}
.refs ol{padding-left:20px;display:grid;gap:10px;line-height:1.5}
.refs a{color:var(--green);font-weight:500}
.disclaimer{margin-top:26px;font-size:13px;color:var(--mute);line-height:1.55;background:var(--sage);padding:18px 20px;border-radius:12px}

.reviewer{display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:start;background:var(--sage);border-radius:18px;padding:26px 28px;margin-top:40px}
.reviewer .ph{width:76px;height:76px;border-radius:50%;flex:none;font-size:11px}
.reviewer .ph::before{border-radius:50%}
.reviewer b{font-size:17px;font-weight:600;display:block}
.reviewer .role{font-size:14px;color:var(--slate);margin:2px 0 10px}
.reviewer p{font-size:15px;color:var(--slate);line-height:1.6;max-width:60ch}

.statbox{background:var(--ink);color:#fff;border-radius:22px;padding:40px}
.statbox b{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(64px,8vw,104px);font-weight:600;letter-spacing:-0.03em;line-height:.9;display:block}
.statbox b em{font-style:normal;font-size:.42em;letter-spacing:-0.02em}
.statbox .big-q{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(30px,3.4vw,44px);font-weight:600;letter-spacing:-0.025em;line-height:1.1;display:block;max-width:16ch}
.statbox .cap{font-size:15px;color:#a9bcb5;margin-top:16px;max-width:34ch}
.statbox p{font-size:15px;color:#c9d6d0;margin-top:26px;padding-top:26px;border-top:1px solid #24473c;line-height:1.6}
.statbox .src{font-size:12px;color:#7d968e;margin-top:14px}

/* =========================================================================
   12. Forms and controls
   ========================================================================= */
.chips{display:grid;gap:9px}
.chip{text-align:left;padding:14px 18px;border:1.5px solid var(--line);border-radius:12px;font-size:15px;font-weight:500;transition:background .15s,color .15s,border-color .15s;background:#fff;color:var(--ink)}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.chips.inline{display:flex;flex-wrap:wrap;gap:8px}
.chips.inline .chip{border-radius:999px;padding:9px 14px;font-size:14px}

.filters{display:flex;gap:8px;margin-bottom:28px;flex-wrap:wrap}
.filters button{padding:10px 16px;border-radius:999px;border:1.5px solid var(--line);font-size:14px;font-weight:500;background:#fff;color:var(--ink);transition:background .15s,color .15s,border-color .15s}
.filters button:hover{border-color:var(--ink)}
.filters button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}

.form{display:grid;gap:18px;max-width:600px}
.form .two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:grid;gap:8px}
.field label{font-size:14px;font-weight:600}
.field small{font-size:13px;color:var(--mute)}
.field .req{color:var(--amber)}
input[type="text"]:where(:not(.vs-embed *)),input[type="email"]:where(:not(.vs-embed *)),input[type="tel"]:where(:not(.vs-embed *)),input[type="url"]:where(:not(.vs-embed *)),input[type="search"]:where(:not(.vs-embed *)),input[type="number"]:where(:not(.vs-embed *)),textarea:where(:not(.vs-embed *)),select:where(:not(.vs-embed *)){font:inherit;font-size:16px;width:100%;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}
textarea:where(:not(.vs-embed *)){min-height:160px;resize:vertical;line-height:1.5}
input:where(:not(.vs-embed *)):focus,textarea:where(:not(.vs-embed *)):focus,select:where(:not(.vs-embed *)):focus{border-color:var(--green);outline:none;box-shadow:0 0 0 3px rgba(30,107,88,.15)}
input:where(:not(.vs-embed *))::placeholder,textarea:where(:not(.vs-embed *))::placeholder{color:var(--mute)}
.hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.notice{border-radius:14px;padding:18px 22px;font-size:15px;line-height:1.5;background:var(--sage);border-left:3px solid var(--green);margin-bottom:24px}
.notice.err{background:var(--amber-bg);border-left-color:var(--amber)}
.notice b{font-weight:600}

/* Tabbed spec sheet (Supplement quality principles) */
.spec{display:grid;grid-template-columns:340px 1fr;gap:0;border:1.5px solid var(--line);border-radius:22px;overflow:hidden;background:#fff;margin-top:52px}
.tabs{border-right:1.5px solid var(--line);background:var(--sage)}
.tabs button{display:block;width:100%;text-align:left;padding:22px 26px;border-bottom:1px solid var(--line);transition:background .15s}
.tabs button:last-child{border-bottom:0}
.tabs button:hover{background:var(--sage-2)}
.tabs button[aria-selected="true"]{background:#fff;box-shadow:inset 3px 0 0 var(--green)}
.tabs button:focus-visible{outline-offset:-4px}
.tabs .n{font-size:12px;font-weight:700;color:var(--mute);display:block;margin-bottom:6px}
.tabs button[aria-selected="true"] .n{color:var(--green)}
.tabs b{font-size:16px;font-weight:600;letter-spacing:-0.01em}
.pane{padding:44px 48px;display:none}
.pane.on{display:block}
.pane h3{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(24px,2.6vw,32px);font-weight:600;letter-spacing:-0.02em;line-height:1.15;margin-bottom:16px;max-width:20ch}
.pane p{color:var(--slate);max-width:52ch;line-height:1.65}
.pane ul{list-style:none;display:grid;gap:0;margin-top:28px}
.pane li{display:grid;grid-template-columns:auto 1fr;gap:13px;align-items:start;padding:14px 0;border-top:1px solid var(--line);font-size:16px}
.pane li:last-child{border-bottom:1px solid var(--line)}
.pane li svg{margin-top:3px;color:var(--green);flex:none}

/* Week strip */
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:10px;margin-top:44px}
.day{background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:18px 14px;text-align:center}
.day b{display:block;font-size:14px;font-weight:600;margin-bottom:12px}
.day .pills{display:flex;flex-wrap:wrap;gap:4px;justify-content:center;min-height:34px;align-items:center}
.day .pills i{width:10px;height:10px;border-radius:3px;background:var(--sage-2);display:block}
.day .pills i:nth-child(odd){border-radius:50%}
.day span{font-size:12px;color:var(--mute);display:block;margin-top:10px}

/* =========================================================================
   13. Dark sections: .vsm (Signal Matrix), .sci (science block)
   .end and .statbox are above. Muted text #a9bcb5, rules #24473c.
   ========================================================================= */
.vsm{background:var(--ink);color:#fff;padding:120px 0}
.vsm .head{text-align:center;max-width:800px;margin:0 auto 64px}
.vsm .kick{color:var(--glow);justify-content:center}
.vsm .kick i{background:var(--glow)}
.vsm h2{margin-bottom:20px}
.vsm .lead{color:#a9bcb5;margin:0 auto}
.scan{background:#0A1F1A;border:1px solid #24473c;border-radius:24px;padding:32px;max-width:900px;margin:0 auto}
.scan .bar{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:#7d968e;padding-bottom:20px;border-bottom:1px solid #24473c;margin-bottom:24px}
.scan .bar .live{display:flex;align-items:center;gap:8px;color:var(--glow)}
.scan .bar .live i{width:7px;height:7px;border-radius:50%;background:var(--glow)}
.scan .dots{display:grid;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:9px}
.scan .dot{aspect-ratio:1;border-radius:7px;background:#132E27;border:1px solid #1d3a32;transition:background .3s,border-color .3s,transform .3s}
.scan .dot.lit{background:#1b4a3d;border-color:#2c6b57}
.scan .dot.hit{background:var(--glow);border-color:var(--glow);transform:scale(1.08)}
.scan .out{display:flex;justify-content:space-between;align-items:center;margin-top:26px;padding-top:22px;border-top:1px solid #24473c;font-size:14px;color:#a9bcb5;flex-wrap:wrap;gap:14px}
.scan .out b{color:#fff;font-weight:600}
.vsm .three{display:grid;grid-template-columns:repeat(3,1fr);gap:36px;margin-top:72px}
.vsm .three h3{margin-bottom:12px;font-size:20px}
.vsm .three p{font-size:15px;color:#a9bcb5;line-height:1.6}
.vsm .three>div{padding-top:24px;border-top:1px solid #24473c}
.vsm .cta{text-align:center;margin-top:64px}

.sci{background:var(--ink);color:#fff}
.sci .lock{font-size:15px;font-weight:600;color:#8fa79f;margin-bottom:26px}
.sci .kick{color:var(--glow)}
.sci .kick i{background:var(--glow)}
.sci h2{max-width:14ch;margin-bottom:22px}
.sci .lead{color:#b6c6bf;margin-bottom:36px}
.sci .grid{display:grid;grid-template-columns:1fr 1.2fr;gap:80px;align-items:center}
.sci .ph{aspect-ratio:16/10;border-radius:20px;background:#1a3a31}
.sci .ph::before{border-color:#3b5a50}
.sci .ph span{color:#8fa79f}
.sci .meta{display:flex;justify-content:space-between;font-size:13px;color:#8fa79f;margin-top:12px}

.vsm .btn-line,.sci .btn-line,.end .btn-line{border-color:#3d5650;color:#fff}
.vsm .btn-line:hover,.sci .btn-line:hover,.end .btn-line:hover{background:#1a3a31}

/* =========================================================================
   14. Page sections (front page — from concept index.html)
   The concept's two-path card is .path-card here; .path is the How-it-works
   option row (section 15). Builder-only pieces (.add, .tray) are phase 2.
   ========================================================================= */
.shop-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:44px;gap:40px}
.shop-head h2{max-width:14ch}
.shop-head .lead{max-width:36ch;font-size:17px}

.paths{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.path-card{background:#fff;border-radius:22px;overflow:hidden;display:grid;grid-template-columns:1fr 1fr;transition:transform .2s;color:inherit}
.path-card:hover{transform:translateY(-3px)}
.path-card .ph{aspect-ratio:auto;min-height:320px;border-radius:0}
.path-card .body{padding:34px 32px;display:flex;flex-direction:column;gap:8px}
.path-card .code{font-size:13px;color:var(--mute);font-weight:600}
.path-card h3{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:28px;font-weight:600;letter-spacing:-0.02em}
.path-card p{font-size:15px;color:var(--slate);flex:1;margin-top:6px}
.path-card .foot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;font-size:14px}
.path-card .foot b{font-weight:600}
.path-card .foot span{font-weight:600;color:var(--green)}
.path-card.custom{background:var(--ink);color:#fff}
.path-card.custom .ph{background:#1a3a31}
.path-card.custom .ph::before{border-color:#3b5a50}
.path-card.custom .ph span{color:#8fa79f}
.path-card.custom .code,.path-card.custom p{color:#a9bcb5}
.path-card.custom .foot span{color:#fff}

.products{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.product{background:var(--sage);border-radius:18px;padding:20px;display:flex;flex-direction:column;gap:12px}
.product .vis{aspect-ratio:4/3;background:#fff;border-radius:12px;display:grid;place-items:center}
.product h3{font-size:18px}
.product .dose{font-size:13px;color:var(--mute)}
.product p{font-size:14px;color:var(--slate);flex:1}
.product .rowf{display:flex;justify-content:space-between;align-items:center;padding-top:14px;border-top:1px solid var(--line)}
.product .rowf b{font-size:15px;font-weight:600}
.product .rowf b small{font-size:12px;color:var(--mute);font-weight:500}
.product .cats{display:flex;flex-wrap:wrap;gap:6px}
.product .cats span{font-size:12px;padding:5px 10px;border-radius:999px;background:#fff;color:var(--slate);font-weight:500}

.hl-head{max-width:760px;margin:0 auto 52px}
.hl-head h2{max-width:22ch}
.hl-head .lead{max-width:54ch;margin-top:18px}
.highlights{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.highlights figure{margin:0}
.highlights .ph{aspect-ratio:4/5;border-radius:18px}
.highlights figcaption{margin-top:12px;font-size:14px;line-height:1.45;color:var(--slate)}
/* Second consultation entry point on the page. Centred because it closes a
   symmetric band and should read as the action, not as more page furniture. */
.hl-cta{margin-top:48px;text-align:center}
.hl-cta .row{justify-content:center}
.hl-cta .note{margin:14px 0 0;font-size:15px;color:var(--slate)}

.tech h2{max-width:18ch;margin:0 auto 60px}
.tech-grid{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:48px;align-items:center}
.tech .ph{aspect-ratio:1/1;border-radius:24px;background:var(--sage)}
.tech .col{text-align:left}
.big{text-align:center}
.big b{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(72px,9vw,128px);font-weight:600;letter-spacing:-0.03em;line-height:1;display:block;font-variant-numeric:tabular-nums}
.big span{font-size:15px;color:var(--slate);display:block;margin-top:10px}
.layer{padding:26px 0;border-top:1px solid var(--line)}
.layer:last-child{border-bottom:1px solid var(--line)}
.layer h3{font-size:15px;font-weight:700;margin-bottom:8px;letter-spacing:.02em}
.layer p{font-size:15px;color:var(--slate)}

.scroller{padding:0 0 120px;overflow:hidden}
.track{display:flex;gap:14px;width:max-content;animation:slide 40s linear infinite;padding-left:40px}
.scroller:hover .track{animation-play-state:paused}
.track .ph{width:320px;aspect-ratio:4/5;border-radius:18px;flex:none}
@keyframes slide{to{transform:translateX(-50%)}}

.close{padding:0 0 120px}
.close .ph{aspect-ratio:21/10;border-radius:28px;background:#3b5a50}
.close .ph::before{display:none}
.close .over{position:absolute;inset:0;display:grid;place-items:center;z-index:1;padding:40px;background:linear-gradient(180deg,rgba(15,42,34,.15),rgba(15,42,34,.55))}
.close h2{color:#fff;max-width:14ch;margin:0 auto 12px}
.close p{color:#fff;opacity:.9;margin-bottom:28px;font-size:18px}

/* =========================================================================
   15. Page sections (How it works — from concept how-it-works.html)
   ========================================================================= */
.path{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center;padding:64px 0;border-top:1px solid var(--line)}
.path:first-of-type{border-top:0;padding-top:0}
.path .opt{font-size:14px;font-weight:600;color:var(--mute);margin-bottom:16px}
.path h3{font-family:'Montserrat',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:clamp(26px,3vw,38px);font-weight:600;letter-spacing:-0.02em;line-height:1.15;margin-bottom:16px;max-width:18ch}
.path p{color:var(--slate);max-width:48ch}
.path .tags{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0 28px}
.path .tags span{font-size:14px;padding:8px 14px;border-radius:999px;background:var(--sage-2);font-weight:500}
.demo{background:#fff;border:1.5px solid var(--line);border-radius:20px;padding:26px}
.demo .dh{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:600;color:var(--mute);margin-bottom:20px}
.demo .q{font-size:19px;font-weight:600;margin-bottom:18px;letter-spacing:-0.01em}
.demo .res{margin-top:20px;padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--slate);min-height:44px}
.demo .res b{color:var(--ink)}
.bfilters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:16px}
.bfilters button{font-size:13px;padding:7px 12px;border-radius:999px;border:1.5px solid var(--line);font-weight:500}
.bfilters button[aria-pressed="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.bl{display:grid;gap:7px}
.bl button{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:13px 15px;border:1.5px solid var(--line);border-radius:12px;text-align:left;transition:border-color .15s}
.bl button:hover{border-color:var(--ink)}
.bl button[data-in="true"]{border-color:var(--green);background:#F4FAF7}
.bl b{display:block;font-size:15px;font-weight:600}
.bl small{color:var(--mute);font-size:13px}
.bl i{width:24px;height:24px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center;font-style:normal;font-size:14px;color:var(--mute)}
.bl button[data-in="true"] i{background:var(--green);border-color:var(--green);color:#fff}
.deliver-img{margin-top:72px}
.deliver-img .ph{aspect-ratio:21/9;border-radius:24px}
.embed{display:grid;grid-template-columns:1fr 1fr;gap:72px;align-items:center}
.devices{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;align-items:end}
.frame{border:1.5px solid var(--line);border-radius:16px;overflow:hidden;background:#fff}
.frame .chrome{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--sage)}
.frame .chrome i{width:8px;height:8px;border-radius:50%;background:#cfd6d1}
.frame .chrome span{margin-left:10px;font-size:11px;color:var(--mute)}
.frame .ph{aspect-ratio:16/11}
.phone{border:1.5px solid var(--line);border-radius:24px;overflow:hidden;background:#fff}
.phone .notch{height:26px;background:var(--sage);display:grid;place-items:center;font-size:10px;color:var(--mute);font-weight:600}
.phone .ph{aspect-ratio:9/15}

/* =========================================================================
   16. Page sections (Supplement quality — from concept quality.html)
   The concept's .three is .three-up here (section 3).
   ========================================================================= */
.standards{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:64px}
.standards .wrap{display:grid;grid-template-columns:repeat(4,1fr)}
.std{padding:32px 28px 32px 0;border-left:1px solid var(--line);padding-left:28px}
.std:first-child{border-left:0;padding-left:0}
.std svg{color:var(--green);margin-bottom:18px}
.std b{display:block;font-size:16px;font-weight:600;margin-bottom:6px}
.std span{font-size:14px;color:var(--slate);line-height:1.5;display:block}
.approach{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.approach p{color:var(--slate);margin-top:20px;font-size:17px;line-height:1.65}
.approach p strong{color:var(--ink);font-weight:600}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:52px}
/* Quality-page figures. The page made its whole case in prose; these carry the
   same case as evidence. .ph keeps the shared object-fit/rounding behaviour. */
.qfig{margin:56px 0 0}
.qfig .ph{aspect-ratio:3/2;border-radius:22px}
.qfig figcaption{font-size:14px;color:var(--slate);margin-top:14px;max-width:70ch;line-height:1.6}
.qfig-square{max-width:420px}
.qfig-square .ph{aspect-ratio:1/1;background:#fff;border:1.5px solid var(--line)}
.qfig-square .ph img{object-fit:cover}
@media (max-width:700px){.qfig{margin-top:40px}.qfig:not(.qfig-square) .ph{aspect-ratio:4/3}}
.panel{border-radius:20px;padding:30px;border:1.5px solid var(--line)}
.panel .tag{font-size:13px;font-weight:600;color:var(--mute);margin-bottom:18px}
.panel .title{font-size:17px;font-weight:600;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.panel .foot{font-size:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line);line-height:1.5}
.bad{background:var(--amber-bg);border-color:#EBDCBC}
.bad .tag{color:var(--amber)}
.bad .rows{display:flex;flex-wrap:wrap;gap:8px}
.bad .rows span{font-size:14px;padding:8px 12px;border-radius:8px;background:rgba(183,121,31,.1);color:#6b4a12}
.bad .rows span b{font-weight:700;letter-spacing:.06em}
.bad .foot{color:#6b4a12;border-top-color:#EBDCBC}
.good{background:var(--sage)}
.good .tag{color:var(--green)}
.good .rows{display:grid;gap:8px}
.good .rows div{display:flex;justify-content:space-between;align-items:center;background:#fff;border-radius:10px;padding:12px 14px;font-size:15px;gap:12px}
.good .rows b{font-weight:600}
.good .rows em{font-style:normal;font-weight:600;color:var(--green);font-size:14px;text-align:right}
.good .foot{color:var(--slate)}

/* =========================================================================
   17. 404
   ========================================================================= */
.notfound{padding:120px 0 96px}
.notfound h1{max-width:12ch;margin-bottom:22px}
.notfound .lead{margin-bottom:34px}

/* =========================================================================
   18. Responsive
   ========================================================================= */
@media (max-width:1024px){
  .products{grid-template-columns:repeat(3,1fr)}
  .paths{grid-template-columns:1fr}
  .highlights{grid-template-columns:1fr 1fr}
  .tech-grid{grid-template-columns:1fr}
}
@media (max-width:1000px){
  .standards .wrap{grid-template-columns:1fr 1fr}
  .std{border-left:0;padding-left:0;border-top:1px solid var(--line)}
  .std:nth-child(-n+2){border-top:0}
  .std:nth-child(even){padding-left:28px;border-left:1px solid var(--line)}
  .week{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:980px){
  .navcta .txt{display:none}
  .navtoggle{display:grid}
  .navlinks{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;gap:0;padding:6px 20px 14px;box-shadow:0 16px 32px rgba(15,42,34,.08)}
  .nav.open .navlinks{display:flex}
  .navlinks>a,.navlinks .drop>button{display:flex;width:100%;padding:13px 0;border-top:1px solid var(--line);font-size:16px}
  .navlinks>:first-child{border-top:0}
  .navlinks>a:hover::after,.navlinks>a[aria-current="page"]::after{display:none}
  .navlinks>a[aria-current="page"]{color:var(--green)}
  .navlinks .drop>button{justify-content:space-between}
  .navlinks .menu{position:static;display:none;min-width:0;border:0;box-shadow:none;padding:0 0 10px 14px;border-radius:0}
  .navlinks .menu::before{display:none}
  .navlinks .drop.open .menu{display:grid}
  .navlinks .menu a{padding:9px 0;font-size:15px}
}
/* Narrow phones: the wordmark and the primary CTA together overflow 375px, which
   clipped the consultation button off the right edge. Shrink both to fit. */
@media (max-width:560px){
  .nav .wrap{gap:10px}
  .logo{font-size:15px}
  .logo svg,.wordmark{height:28px}
  .navcta{gap:6px}
  .navcta .btn{padding:9px 13px;font-size:13px}
  .navtoggle{margin-left:auto}
}
/* 320px phones: logo + CTA + menu button still overflowed by ~26px. One more step down. */
@media (max-width:360px){
  .nav .wrap{gap:8px}
  .logo svg,.wordmark{height:22px}
  .navcta .btn{padding:8px 11px;font-size:12px}
}

@media (max-width:900px){
  .wrap{padding:0 20px}
  section:where(:not(.vs-embed *)){padding:72px 0}
  .hero{padding:48px 0 0}
  .hero-split{display:block;min-height:0;padding:0}
  .hero-split .hero-bg{position:relative;inset:auto}
  .hero-split .hero-bg img{aspect-ratio:3/2;height:auto}
  .hero-split .hero-bg::after{display:none}
  .hero-split>.wrap{padding-top:32px;padding-bottom:8px}
  .hero-split .hero-copy{max-width:none}
  .hero-img,.deliver-img{margin-top:40px}
  .hero-img .ph,.deliver-img .ph{aspect-ratio:3/2}
  .split,.path,.embed,.approach,.cmp{grid-template-columns:1fr;gap:36px}
  .path{padding:40px 0}
  .shop-head{flex-direction:column;align-items:start;gap:14px}
  .products{grid-template-columns:1fr 1fr}
  .path-card{grid-template-columns:1fr}
  .path-card .ph{min-height:0;aspect-ratio:4/5}
  .sci .grid{grid-template-columns:1fr;gap:36px}
  .vsm{padding:72px 0}
  .vsm .three{grid-template-columns:1fr;gap:0;margin-top:44px}
  .vsm .three>div{padding:24px 0;border-top:1px solid #24473c}
  .three-up{grid-template-columns:1fr}
  .three-up>div{border-right:0;margin-right:0;padding:26px 0;border-bottom:1px solid var(--line)}
  .three-up>div:last-child{border-bottom:0}
  .scan{padding:22px}
  .scan .dots{grid-template-columns:repeat(auto-fill,minmax(24px,1fr));gap:7px}
  .statbox{padding:30px}
  .spec{grid-template-columns:1fr}
  .tabs{border-right:0;border-bottom:1.5px solid var(--line);display:flex;overflow-x:auto}
  .tabs button{border-bottom:0;border-right:1px solid var(--line);min-width:180px;padding:16px 20px}
  .tabs button[aria-selected="true"]{box-shadow:inset 0 -3px 0 var(--green)}
  .pane{padding:30px 24px}
  .week{grid-template-columns:repeat(3,1fr)}
  .cta-in{grid-template-columns:1fr;padding:28px}
  .compound{grid-template-columns:auto 1fr;row-gap:14px}
  .compound .btn{grid-column:1/-1}
  .cards{grid-template-columns:1fr}
  .reviewer{grid-template-columns:1fr}
  .form .two{grid-template-columns:1fr}
  .track{padding-left:20px}
  .close .ph{aspect-ratio:4/3}
  .end{padding:80px 0}
  .notfound{padding:80px 0 64px}
  footer.site-foot .cols,footer.site-foot .cols.cols-3{grid-template-columns:1fr 1fr}
}
@media (max-width:782px){
  .admin-bar .nav{top:46px}
}
@media (max-width:520px){
  .products{grid-template-columns:1fr}
  .highlights{grid-template-columns:1fr 1fr}
  .week{grid-template-columns:repeat(2,1fr)}
  .devices{grid-template-columns:1fr}
  footer.site-foot .cols,footer.site-foot .cols.cols-3{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .track{animation:none}
  .scan .dot,.path-card,.btn,.chip,.navtoggle path{transition:none}
  .path-card:hover{transform:none}
}

/* =========================================================================
   Commerce pages — /checkout/, /account/, /order-confirmed/
   page-checkout.php and friends. The components bring their own styles
   (tokens on .vs-root); this only frames them.
   ========================================================================= */
.commerce{padding:48px 0 96px}
/* Reserve room while the module loads, so the footer does not jump. */
.commerce .vs-embed{min-height:60vh}
.commerce-note{max-width:60ch;margin:24px auto;font-size:16px;line-height:1.6;color:var(--slate);text-align:center}
/* Their muted grey (#8e9b96) is 2.6:1 on their sage panels — under WCAG AA, and
   it is the colour of the consent sentence below "Place order". Their tokens
   sit on .vs-root; (0,1,1) here beats their (0,1,0) even though their sheet is
   injected after ours. #5f6c67 is 5.5:1 on white, 4.95:1 on sage, 4.58:1 on
   sage-2, and still lighter than their slate (#54655f). */
html .vs-root{--vs-mute:#5f6c67}
@media (max-width:900px){
  .commerce{padding:32px 0 72px}
}
