/* HEASY storefront
   Concept: a clinical, bright daytime surface (RISE green) that turns into a deep indigo night (REST)
   as you scroll. Dark "lab" sections carry the science; FDA-style Supplement Facts panel as the honest detail. */
:root {
  --day: #3c9a1e;
  --day-2: #63c13a;
  --day-ink: #1f5c0e;
  --day-soft: #ebf6e4;
  --night: #2e2a8c;
  --night-2: #6a64e6;
  --night-deep: #0d0f2b;
  --night-soft: #ecebfb;
  --ink: #10142a;
  --muted: #5b6477;
  --line: #e1e6df;
  --bg: #f7f9f6;
  --surface: #ffffff;
  --amazon: #ffa41c;
  --err: #c0362c;
  --ok: #2f8a1a;
  --warn: #b26a00;

  --display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Libre Baskerville", Georgia, "Times New Roman", serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --shadow: 0 20px 50px -24px rgba(16, 20, 42, .28);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --p: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2.5px solid var(--night-2); outline-offset: 3px; border-radius: 6px; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.eyebrow {
  font: 600 .78rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  color: var(--day); margin-bottom: 14px;
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.sec-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.sec-head.center { margin-inline: auto; }
.sec-head.center .lead { margin-inline: auto; }

/* ---------- Icons ---------- */
.ic { width: 24px; height: 24px; flex: none; }
.ic.sm { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-day { background: var(--day); color: #fff; box-shadow: 0 10px 24px -12px var(--day); }
.btn-day:hover { background: var(--day-ink); }
.btn-night { background: var(--night); color: #fff; box-shadow: 0 10px 24px -12px var(--night); }
.btn-night:hover { background: #221f6e; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-grad { background: linear-gradient(100deg, var(--day) 0%, #2a7f4a 40%, var(--night) 100%); color: #fff; box-shadow: 0 14px 30px -14px rgba(46, 42, 140, .7); }
.btn-glass { background: rgba(255, 255, 255, .14); color: inherit; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(10px); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-amazon { background: var(--amazon); color: #111; }
.btn-amazon:hover { background: #f39200; }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font: 600 .92rem var(--display); text-decoration: none; color: inherit; }
.btn-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-row.center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(16, 20, 42, .06); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.chips li { font: 600 .78rem/1 var(--display); padding: 8px 12px; border-radius: 999px; background: rgba(16, 20, 42, .06); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: #fff; font: 500 .82rem/1.3 var(--display); text-align: center; padding-block: 9px; letter-spacing: .01em; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 249, 246, .82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(16, 20, 42, .07);
}
.hdr { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { font: 700 1.5rem/1 var(--logo); color: var(--day-ink); text-decoration: none; letter-spacing: .03em; }
.logo sup { font-size: .45em; font-family: var(--body); vertical-align: super; }
.nav { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.nav a { text-decoration: none; font: 600 .92rem var(--display); padding: 10px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; }
.nav a:hover, .nav a.is-on { background: rgba(16, 20, 42, .06); }
.nav .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--day); }
.nav-night .dot { background: var(--night); }
.nav-split .dot { background: linear-gradient(90deg, var(--day) 50%, var(--night) 50%); }
.hdr-actions { display: flex; gap: 4px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--night); color: #fff; font: 700 .7rem/18px var(--display); text-align: center;
}
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn { display: inline-grid; }
  .hdr { gap: 12px; }
  .hdr-actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; }
}

/* ---------- HERO (day → night) ---------- */
.hero { position: relative; height: 230vh; background: var(--night-deep); }
.hero-stage { position: sticky; top: 68px; height: calc(100vh - 68px); height: calc(100svh - 68px); min-height: 560px; overflow: hidden; color: var(--ink); }
.sky { position: absolute; inset: 0; background-size: cover; background-position: center; }
.sky-day { background-color: #dcefe6; background-image: linear-gradient(180deg, #b9def3 0%, #dff0ea 46%, #f7ebcf 78%, #f3dcae 100%); }
.sky-night {
  opacity: var(--p);
  background-color: var(--night-deep);
  background-image:
    radial-gradient(60% 50% at 78% 18%, rgba(130, 120, 255, .35), transparent 70%),
    linear-gradient(180deg, #070820 0%, #141250 52%, #2b2783 100%);
}
.ridges { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; }
.ridges .r1 { fill: #a9c9b7; fill: color-mix(in srgb, #3b3a8f calc(var(--p) * 100%), #a9c9b7); }
.ridges .r2 { fill: #7fae8b; fill: color-mix(in srgb, #24226b calc(var(--p) * 100%), #7fae8b); }
.ridges .r3 { fill: #4f8a5c; fill: color-mix(in srgb, #121140 calc(var(--p) * 100%), #4f8a5c); }
.orb { position: absolute; border-radius: 50%; pointer-events: none; }
.sun {
  width: 170px; height: 170px; left: 50%; top: 10%;
  background: radial-gradient(circle, #fff7d6 0%, #ffd77a 45%, rgba(255, 196, 92, 0) 70%);
  transform: translateY(calc(var(--p) * 45vh)); opacity: calc(1 - var(--p) * 1.4);
}
.moon {
  width: 86px; height: 86px; left: 47%; top: 9%;
  box-shadow: inset -18px 6px 0 0 #eceaff; background: transparent;
  filter: drop-shadow(0 0 22px rgba(190, 184, 255, .8));
  transform: translateY(calc((1 - var(--p)) * 40vh)); opacity: var(--p);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--p); }
.has-photo .orb { display: none; }
.has-photo .stars { opacity: calc(var(--p) * .6); }
.has-photo .hero-text { color: #1f2740; }
.has-photo .sky-day::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .15) 45%, transparent 70%); }
.has-photo .sky-night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 32, .55) 0%, rgba(8, 9, 32, .1) 55%, transparent 75%); }
.hv-img.is-cutout { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: auto; width: auto; max-height: 74%; max-width: 92%; }

.hero-grid {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 24px;
  padding-block: 40px 70px;
}
.hero-copy { max-width: 620px; transition: color .6s ease; }
.hero .eyebrow { color: var(--day-ink); transition: color .6s; }
.hero-h { font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.02; margin-bottom: 22px; }
.hero-h span { display: block; transition: opacity .2s linear; }
.h-day { opacity: calc(1 - var(--p) * .7); }
.h-night {
  opacity: calc(.3 + var(--p) * .7);
  background: linear-gradient(90deg, var(--night) 0%, var(--night-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text { font-size: clamp(1.02rem, 1.35vw, 1.18rem); max-width: 52ch; color: #2d3550; transition: color .6s; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 30px; }
.hero .btn-glass { color: var(--ink); border-color: rgba(16, 20, 42, .25); background: rgba(255, 255, 255, .45); }
.hero-clock { display: flex; align-items: center; gap: 12px; font: 600 .78rem var(--display); letter-spacing: .04em; flex-wrap: wrap; }
.hero-clock span { display: inline-flex; align-items: center; gap: 6px; }
.ck-bar { width: 120px; height: 4px; border-radius: 4px; background: rgba(16, 20, 42, .15); overflow: hidden; }
.ck-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--day), var(--night-2)); }
.ck-night { opacity: calc(.45 + var(--p) * .55); }
.ck-day { opacity: calc(1 - var(--p) * .55); }

.hero.is-night .hero-copy, .hero.is-night .hero-clock { color: #fff; }
.hero.is-night .eyebrow { color: #b9b5ff; }
.hero.is-night .hero-text { color: #cfd2f0; }
.hero.is-night .h-night { background: linear-gradient(90deg, #c7c3ff 0%, #8f89ff 100%); -webkit-background-clip: text; background-clip: text; }
.hero.is-night .btn-glass { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); }
.hero.is-night .ck-bar { background: rgba(255, 255, 255, .2); }

.hero-visual { position: relative; height: min(70vh, 600px); }
.pedestal {
  position: absolute; left: 50%; bottom: 6%; width: 74%; height: 14%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 20, 42, .35), rgba(16, 20, 42, 0));
}
.hv { position: absolute; inset: 0 0 8% 0; display: grid; place-items: end center; will-change: transform, opacity; }
.hv-img { height: 88%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(16, 20, 42, .3)); }
.hv-img .bottle, div.hv-img { height: 100%; }
div.hv-img { display: grid; place-items: end center; }
div.hv-img .bottle { height: 100%; width: auto; }
.hv-day { opacity: calc(1 - var(--p) * 1.6); transform: translateX(calc(var(--p) * -28%)) scale(calc(1 - var(--p) * .12)); }
.hv-night { opacity: calc(var(--p) * 1.6 - .5); transform: translateX(calc((1 - var(--p)) * 28%)) scale(calc(.88 + var(--p) * .12)); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3;
  font: 600 .72rem var(--display); letter-spacing: .14em; text-transform: uppercase; display: grid; justify-items: center; gap: 8px;
  opacity: calc(1 - var(--p) * 3); color: var(--ink);
}
.scroll-hint span { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: currentColor; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

@media (max-width: 860px) {
  .hero { height: 200vh; }
  .hero-grid { grid-template-columns: 1fr; align-content: start; gap: 0; padding-block: 28px 40px; }
  .hero-h { font-size: clamp(2rem, 9vw, 2.8rem); margin-bottom: 14px; }
  .hero-clock { display: none; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero-text { font-size: 1rem; }
  .hero-ctas { margin: 20px 0; }
  .hero-ctas .btn { width: 100%; }
  .hero-visual { height: 30vh; min-height: 200px; }
  .hero-ctas .btn-lg { min-height: 48px; }
  .sun { width: 110px; height: 110px; top: 56%; left: 66%; }
  .moon { width: 56px; height: 56px; top: auto; bottom: 26%; left: auto; right: 10%; box-shadow: inset -12px 4px 0 0 #eceaff; }
  .scroll-hint { display: none; }
}

/* ---------- Trust ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 22px; }
.trust-item { display: flex; gap: 10px; align-items: center; font: 600 .9rem var(--display); color: var(--ink); }
.trust-item .ic { color: var(--day); }

/* ---------- Rhythm ---------- */
.rhythm { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.rhythm-grid { display: grid; grid-template-columns: 1fr minmax(260px, 340px) 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.rhythm-card {
  display: block; text-decoration: none; padding: 30px; border-radius: var(--r-lg); min-width: 0;
  transition: transform .25s ease, box-shadow .25s ease;
}
.rhythm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.rc-day { background: var(--day-soft); color: var(--ink); }
.rc-night { background: linear-gradient(160deg, #1b1960 0%, var(--night-deep) 100%); color: #fff; }
.rc-time { display: inline-flex; align-items: center; gap: 8px; font: 700 .85rem var(--display); letter-spacing: .1em; margin-bottom: 18px; }
.rc-day .rc-time { color: var(--day); }
.rc-night .rc-time { color: #b9b5ff; }
.rhythm-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rhythm-card li { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: .95rem; }
.rc-day li .ic { color: var(--day); }
.rc-night li .ic { color: #b9b5ff; }
.rc-night p { color: #cfd2f0; }

.ring { position: relative; aspect-ratio: 1; max-width: 340px; width: 100%; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 14; }
.ring-arc { fill: none; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 805; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 160px 160px; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
.ring.pre .ring-arc { stroke-dashoffset: 805; }
.tick { stroke: #b9c2bb; stroke-width: 2; stroke-linecap: round; }
.ring-hand { transform-origin: 160px 160px; animation: spin 24s linear infinite; }
.hand-dot { fill: #fff; stroke: var(--night); stroke-width: 4; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center strong { font: 800 3rem/1 var(--display); background: linear-gradient(135deg, var(--day), var(--night)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-center span { font-size: .85rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 900px) {
  .rhythm-grid { grid-template-columns: 1fr; }
  .ring { max-width: 240px; order: -1; }
}

/* ---------- Product panels ---------- */
.panel { border-radius: var(--r-lg); overflow: hidden; position: relative; display: grid; min-width: 0; }
.panel-day { background: linear-gradient(160deg, #f4fbef 0%, var(--day-soft) 100%); }
.panel-night { background: linear-gradient(160deg, #23206f 0%, var(--night-deep) 100%); color: #fff; }
.panel-night .eyebrow { color: #b9b5ff; }
.panel-night .chips li { background: rgba(255, 255, 255, .1); }
.panel-night .btn-ghost { color: #fff; }
.panel-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-pair .panel { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
.panel-visual { padding: 28px 0 28px 24px; display: grid; place-items: center; }
.panel-img { width: 100%; max-height: 300px; object-fit: contain; }
.is-cutout { filter: drop-shadow(0 24px 28px rgba(16, 20, 42, .28)); }
.panel-night .is-cutout, .pb-img.is-cutout { filter: drop-shadow(0 24px 34px rgba(0, 0, 0, .45)); }
div.panel-img { display: grid; place-items: center; }
div.panel-img .bottle { width: 100%; max-width: 200px; height: auto; }
.panel-copy { padding: 32px 28px 32px 8px; min-width: 0; }
.panel-copy h3 { font-size: 1.6rem; margin-bottom: 4px; }
.panel-tag { color: var(--muted); font-weight: 500; }
.panel-night .panel-tag, .panel-night p { color: #cfd2f0; }
.panel-link { text-decoration: none; transition: transform .25s; }
.panel-link:hover { transform: translateY(-3px); }

.panel-bundle {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin-bottom: 20px;
  background:
    linear-gradient(105deg, #eef8e8 0%, #eef8e8 42%, #1d1a62 58%, var(--night-deep) 100%);
  color: var(--ink);
}
.pb-visual { padding: 40px 20px; display: grid; place-items: center; }
.pb-img { max-height: 380px; width: 100%; object-fit: contain; }
div.pv-duo { display: flex; justify-content: center; align-items: flex-end; gap: 0; }
.pv-duo .bottle { width: 48%; max-width: 220px; height: auto; }
.pv-duo .bottle + .bottle { margin-left: -6%; }
.pb-copy { padding: 44px 44px 44px 20px; color: #fff; min-width: 0; }
.pb-copy .eyebrow { color: #b9b5ff; }
.pb-copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.pb-copy p { color: #cfd2f0; }
.pb-copy .chips li { background: rgba(255, 255, 255, .1); }
.pb-copy .btn-ghost { color: #fff; }
.tag-best { display: inline-block; font: 700 .72rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; background: var(--amazon); color: #111; padding: 7px 10px; border-radius: 6px; margin-bottom: 16px; }

.buy-compact .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.price { font: 800 1.7rem/1 var(--display); letter-spacing: -.02em; }
.price-was { color: var(--muted); font-weight: 500; }
.panel-night .price-was, .pb-copy .price-was { color: #a9acd0; }
.save-pill { font: 700 .75rem/1 var(--display); padding: 6px 10px; border-radius: 999px; background: var(--day); color: #fff; }
.buy-compact .btn-row { gap: 10px 16px; }

@media (max-width: 980px) {
  .panel-pair { grid-template-columns: 1fr; }
  .panel-bundle { grid-template-columns: 1fr; background: linear-gradient(180deg, #eef8e8 0%, #eef8e8 34%, #1d1a62 52%, var(--night-deep) 100%); }
  .pb-copy { padding: 8px 28px 36px; }
}
@media (max-width: 560px) {
  .panel-pair .panel { grid-template-columns: 1fr; }
  .panel-visual { padding: 28px 28px 0; }
  .panel-img { max-height: 240px; }
  div.panel-img .bottle { max-width: 170px; }
  .panel-copy { padding: 20px 24px 30px; }
}

/* ---------- Dark sections / science ---------- */
.dark { background: var(--night-deep); color: #fff; }
.dark .eyebrow { color: #9be27a; }
.dark .lead, .dark p { color: #c9cce8; }
.molecules { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.dark > .wrap { position: relative; z-index: 1; }
.science { background: radial-gradient(70% 60% at 85% 0%, rgba(106, 100, 230, .28), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(60, 154, 30, .22), transparent 70%), var(--night-deep); overflow: hidden; }

.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin-bottom: 28px; flex-wrap: wrap; }
.tab { border: 0; background: transparent; color: #cfd2f0; padding: 10px 18px; border-radius: 999px; cursor: pointer; font: 600 .92rem var(--display); display: inline-flex; gap: 8px; align-items: center; }
.tab[aria-selected="true"].tab-day { background: var(--day); color: #fff; }
.tab[aria-selected="true"].tab-night { background: var(--night-2); color: #fff; }

.ing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 18px; margin-bottom: 36px; }
.ing {
  border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px);
  transition: transform .25s ease, border-color .25s;
}
.ing:hover { transform: translateY(-3px); border-color: rgba(155, 226, 122, .45); }
.ing-night:hover { border-color: rgba(185, 181, 255, .5); }
:not(.dark) > .wrap > .ing-grid .ing, .section:not(.dark) .ing { background: var(--surface); border-color: var(--line); }
.ing-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ing-body { padding: 18px 20px 22px; }
.ing-dose { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px; }
.ing-dose span { font: 800 2.1rem/1 var(--display); letter-spacing: -.03em; }
.ing-dose small { font: 600 .9rem var(--display); opacity: .7; }
.ing-day .ing-dose { color: #8fdc6a; }
.ing-night .ing-dose { color: #b9b5ff; }
.section:not(.dark) .ing-day .ing-dose { color: var(--day); }
.section:not(.dark) .ing-night .ing-dose { color: var(--night); }
.ing h3 { margin-bottom: 2px; }
.ing-full { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; margin-bottom: 10px; }
.ing p { font-size: .94rem; }
.section:not(.dark) .ing p { color: var(--muted); }

/* Image placeholders until real photos are uploaded */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; }
.ph span { font: 600 .7rem var(--display); letter-spacing: .1em; text-transform: uppercase; opacity: .55; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, .15); }
.ph-day { background: radial-gradient(circle at 50% 60%, #ffffff 0 18%, #e3f2db 19% 30%, transparent 31%), linear-gradient(160deg, #f4fbef, #d8eecb); color: var(--day-ink); }
.ph-night { background: radial-gradient(circle at 50% 60%, #8f89ff 0 12%, #4a45b8 13% 24%, transparent 25%), linear-gradient(160deg, #262372, #0e0f33); color: #fff; }

/* ---------- Lifestyle ---------- */
.life-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.life-card { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 460px; }
.life-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .45)); }
.life-card figcaption { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.life-chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; font: 600 .95rem var(--display); color: #fff; backdrop-filter: blur(8px); }
.life-day .life-chip { background: rgba(60, 154, 30, .88); }
.life-night .life-chip { background: rgba(78, 72, 200, .85); }
.life-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.strip-card { margin: 0; min-width: 0; }
.strip-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.strip-card figcaption { font: 600 .92rem var(--display); margin-top: 10px; }
@media (max-width: 760px) { .life-grid { grid-template-columns: 1fr; } .life-card { min-height: 400px; } .life-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Quality steps ---------- */
.quality { background: var(--surface); }
.quality-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.quality-head .sec-head { margin-bottom: 0; }
.quality-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 760px) { .quality-head { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.step { padding: 26px 24px 0 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step-n { font: 700 .82rem var(--display); color: var(--day); letter-spacing: .1em; display: block; margin-bottom: 16px; }
.step p { color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; }
}

/* ---------- FAQ + newsletter ---------- */
.fn-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); margin-bottom: 20px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; font: 600 1.05rem/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; flex: none; }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 20px; max-width: 64ch; }
.dark .faq, .dark .faq-list { border-color: rgba(255, 255, 255, .15); }

.news { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 44px); background: var(--night-deep) center / cover no-repeat; color: #fff; }
.news h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); position: relative; }
.news p { color: #c9cce8; position: relative; }
.news-glow { position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, rgba(99, 193, 58, .55), transparent 70%); }
.news-form { display: flex; gap: 8px; position: relative; flex-wrap: wrap; }
.news-form input { flex: 1 1 200px; min-width: 0; min-height: 50px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; padding: 0 20px; }
.news-form input::placeholder { color: #a9acd0; }
.news-msg { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.coming .news { margin-top: 12px; }
@media (max-width: 860px) { .fn-grid { grid-template-columns: 1fr; } }

/* ---------- PDP ---------- */
.pdp { padding-block: clamp(28px, 4vw, 56px) clamp(40px, 6vw, 72px); }
.pdp-day { background: linear-gradient(180deg, #f1f9ec 0%, var(--bg) 100%); }
.pdp-night { background: linear-gradient(180deg, #ecebfb 0%, var(--bg) 100%); }
.pdp-split { background: linear-gradient(180deg, #f1f4fb 0%, var(--bg) 100%); }
.pdp-night .eyebrow { color: var(--night); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.gallery { position: sticky; top: 92px; min-width: 0; }
.g-main {
  aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center;
  background-color: var(--surface); background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px var(--line);
}
.pdp-day .g-main:not([style]) { background-image: radial-gradient(60% 50% at 50% 85%, rgba(60, 154, 30, .18), transparent 70%), linear-gradient(160deg, #ffffff, #e9f5e1); }
.pdp-night .g-main:not([style]) { background-image: radial-gradient(60% 50% at 50% 85%, rgba(106, 100, 230, .45), transparent 70%), linear-gradient(160deg, #23206f, var(--night-deep)); }
.pdp-split .g-main:not([style]) { background-image: linear-gradient(105deg, #eef8e8 0%, #eef8e8 45%, #1d1a62 55%, var(--night-deep) 100%); }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-main { position: relative; }
.g-visual { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }
div.g-visual.pv-duo { display: flex; align-items: center; }
.g-visual .bottle { height: 100%; width: auto; max-width: 100%; }
.g-visual.pv-duo .bottle { height: auto; width: 46%; }
.g-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.g-thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); aspect-ratio: 1; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.is-on { border-color: var(--ink); }

.pdp-info h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 6px; }
.pdp-sub { font: 600 1rem var(--display); color: var(--muted); margin-bottom: 18px; }
.pdp-intro { font-size: 1.06rem; }
.plans { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.plan { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pdp-day .plan:has(input:checked) { border-color: var(--day); box-shadow: 0 0 0 1px var(--day); }
.pdp-night .plan:has(input:checked) { border-color: var(--night); box-shadow: 0 0 0 1px var(--night); }
.plan input { margin-top: 4px; accent-color: var(--ink); width: 18px; height: 18px; flex: none; }
.pdp-day .plan input { accent-color: var(--day); }
.pdp-night .plan input { accent-color: var(--night); }
.plan-body { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; }
.plan-t { font: 600 1rem var(--display); }
.plan-p { font: 700 1.1rem var(--display); text-align: right; }
.plan-p s { font-weight: 500; color: var(--muted); font-size: .88rem; margin-left: 4px; }
.plan-note { grid-column: 1 / -1; font-size: .86rem; color: var(--muted); }
.buy-row { display: flex; gap: 10px; margin-bottom: 10px; }
.grow { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); }
.qty button { width: 44px; height: 50px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; border-radius: 999px; }
.qty input { width: 38px; text-align: center; border: 0; background: transparent; font: 700 1rem var(--display); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stock { display: flex; gap: 8px; align-items: center; font-size: .9rem; color: var(--ok); margin: 12px 0 0; font-weight: 600; }
.stock .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(47, 138, 26, .15); }
.stock.is-low { color: var(--warn); }
.stock.is-out { color: var(--err); }
.perks { list-style: none; padding: 20px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: .94rem; }
.pdp-info .btn-amazon { margin-top: 2px; }
@media (max-width: 900px) {
  .pdp-grid { grid-template-columns: 1fr; }
  .gallery { position: static; }
}

.highlights { background: var(--surface); border-block: 1px solid var(--line); }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.hl .ic { width: 34px; height: 34px; padding: 6px; border-radius: 10px; margin-bottom: 14px; }
.hl-day .ic { background: var(--day-soft); color: var(--day); }
.hl-night .ic { background: var(--night-soft); color: var(--night); }
.hl-split .ic { background: linear-gradient(135deg, var(--day-soft), var(--night-soft)); color: var(--night); }
.hl h3 { font-size: 1.05rem; }
.hl p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 860px) { .hl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .hl-grid { grid-template-columns: 1fr; } }

.ingredients-sec.dark { overflow: hidden; background: radial-gradient(70% 60% at 85% 0%, rgba(106, 100, 230, .3), transparent 70%), var(--night-deep); }

/* Supplement Facts: modeled on the FDA label format */
.fh-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.facts {
  background: #fff; color: #000; border: 2px solid #000; padding: 8px 10px 10px; font-family: Helvetica, Arial, sans-serif; font-size: .88rem; line-height: 1.3;
  scroll-margin-top: 100px;
}
.facts-h { font: 900 2.05rem/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.02em; margin: 0 0 4px; }
.facts-sv { margin: 0; padding-bottom: 6px; border-bottom: 10px solid #000; }
.facts-th, .facts-row { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; padding: 5px 0; border-bottom: 1px solid #000; }
.facts-th { font-weight: 700; font-size: .78rem; border-bottom: 4px solid #000; }
.facts-th span:nth-child(2), .facts-row span:nth-child(2) { text-align: right; }
.facts-th span:last-child, .facts-row span:last-child { text-align: right; font-weight: 700; }
.facts-row span:first-child { font-weight: 700; }
.facts-row.is-other:first-of-type, .facts-row:not(.is-other) + .facts-row.is-other { border-top: 4px solid #000; }
.facts-ft { margin: 6px 0; padding-bottom: 6px; border-bottom: 4px solid #000; font-size: .8rem; }
.facts-other { margin: 0; font-size: .8rem; }
.facts-pair { display: grid; gap: 14px; }
.facts-mini { display: grid; gap: 4px; text-decoration: none; padding: 20px 22px; border-radius: var(--r); }
.facts-mini strong { font: 700 1.1rem var(--display); margin-bottom: 6px; }
.facts-mini span { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; border-bottom: 1px dashed rgba(127, 127, 127, .35); padding-bottom: 4px; }
.facts-mini.panel-night span { color: #cfd2f0; }
.how h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.how-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-lg); margin-bottom: 24px; }
.how-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 18px; }
.how-list li { display: flex; gap: 16px; align-items: flex-start; }
.how-n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 .95rem var(--display); background: var(--ink); color: #fff; }
.theme-day .how-n { background: var(--day); }
.theme-night .how-n { background: var(--night); }
.how-list p { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 860px) { .fh-grid { grid-template-columns: 1fr; } }

.includes { background: var(--surface); }
.pairs { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Generic pages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(16px, 3vw, 32px); position: relative; overflow: hidden; }
.page-hero.dark { padding-bottom: clamp(48px, 8vw, 96px); background: radial-gradient(70% 70% at 90% 10%, rgba(106, 100, 230, .35), transparent 70%), var(--night-deep); }
.page-hero.dark .wrap { position: relative; z-index: 1; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p { color: #343b4f; }
.sci-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.sci-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.sci-block:nth-child(even) > :first-child { order: 2; }
.sci-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
@media (max-width: 760px) { .sci-block { grid-template-columns: 1fr; } .sci-block:nth-child(even) > :first-child { order: 0; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.contact-card .ic { color: var(--day); margin-bottom: 10px; }
.contact-card h2 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .contact-grid { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); min-width: 0; }
.card h2 { font-size: 1.25rem; }
.card h3 { font-size: 1rem; margin-top: 24px; }
.card-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
@media (max-width: 760px) { .card-grid { grid-template-columns: 1fr; } }
.confirm { text-align: center; margin-bottom: 32px; }
.confirm-ic { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--day), var(--night)); color: #fff; }
.confirm-ic .ic { width: 36px; height: 36px; }
.confirm .lead { margin-inline: auto; }
.addr { line-height: 1.7; }

.alert { padding: 14px 18px; border-radius: var(--r-sm); font-weight: 600; margin: 16px 0; }
.alert-err { background: #fdecea; color: var(--err); }
.alert-ok { background: var(--day-soft); color: var(--day-ink); }

/* Forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font: 600 .85rem var(--display); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--night-2); box-shadow: 0 0 0 3px rgba(106, 100, 230, .2); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--err); }
.f-err { color: var(--err); font-size: .82rem; font-weight: 600; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2, .row3 { grid-template-columns: 1fr; } }

.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.track-form .field { margin: 0; }
.track-form .btn { min-height: 48px; }
@media (max-width: 680px) { .track-form { grid-template-columns: 1fr; } }
.track-result { margin-top: 20px; }
.tr-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tr-head h2 { font-size: 1.6rem; }
.tr-no { font-size: .92rem; color: var(--muted); word-break: break-all; }
.progress { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress li { font: 600 .78rem var(--display); color: var(--muted); display: grid; gap: 8px; }
.progress li span { height: 6px; border-radius: 6px; background: var(--line); }
.progress li.is-done { color: var(--ink); }
.progress li.is-done span { background: linear-gradient(90deg, var(--day), var(--night-2)); }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--line); display: grid; gap: 16px; }
.timeline li { position: relative; display: grid; gap: 2px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--night-2); }
.timeline li:first-child::before { background: var(--night-2); }
.timeline time { font-size: .8rem; color: var(--muted); }
.timeline span { font-size: .85rem; color: var(--muted); }

/* ---------- Checkout ---------- */
.is-checkout .announce { display: none; }
.checkout { padding-block: clamp(28px, 4vw, 56px) 80px; }
.co-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.co-form h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.co-form fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.co-form legend { font: 700 1.1rem var(--display); margin-bottom: 14px; }
.co-summary { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.co-summary h2 { font-size: 1.2rem; }
@media (max-width: 900px) { .co-grid { grid-template-columns: 1fr; } .co-summary { position: static; order: -1; } }

.os-items { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 14px; }
.os-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.os-thumb { position: relative; width: 64px; height: 64px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; }
.os-thumb b { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 .72rem/22px var(--display); text-align: center; }
.os-img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.os-img .bottle { height: 54px; width: auto; }
.os-img.pv-duo .bottle { height: 46px; width: auto; }
.os-name { font: 600 .95rem var(--display); display: grid; }
.os-name small { font: 400 .8rem var(--body); color: var(--muted); }
.os-price { font: 600 .95rem var(--display); }
.sum { margin: 0; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum dt { color: var(--muted); }
.sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.sum-total dt, .sum-total dd { color: var(--ink); font: 700 1.15rem var(--display); }

/* ---------- Cart drawer ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(13, 15, 43, .45); z-index: 60; backdrop-filter: blur(2px); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100%);
  background: var(--surface); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .4);
}
.drawer.is-open { transform: none; }
.drawer-hd { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px 24px; }
.drawer-hd h2 { font-size: 1.3rem; margin: 0; }
.ship-meter { padding: 0 24px 14px; border-bottom: 1px solid var(--line); }
.ship-meter p { font-size: .88rem; font-weight: 600; margin: 0 0 8px; }
.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--day), var(--night-2)); transition: width .4s; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cl { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl-img { width: 76px; height: 76px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-img svg { height: 64px; width: auto; }
.cl-name { font: 700 1rem var(--display); }
.cl-plan { font-size: .8rem; color: var(--muted); display: block; margin-bottom: 8px; }
.cl .qty { transform: scale(.85); transform-origin: left center; }
.cl-right { text-align: right; display: grid; align-content: space-between; justify-items: end; }
.cl-price { font: 700 1rem var(--display); }
.cl-list { font-size: .8rem; color: var(--muted); text-decoration: line-through; }
.cl-remove { border: 0; background: none; font-size: .8rem; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 4px 0; }
.drawer-ft { padding: 16px 24px 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-ft .sum { border: 0; padding: 0; }
.cart-empty { text-align: center; padding: 40px 10px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 80; transform: translate(-50%, 120%);
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font: 600 .92rem var(--display);
  transition: transform .3s ease, opacity .3s, visibility .3s; pointer-events: none; max-width: calc(100% - 32px);
  opacity: 0; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast.is-err { background: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night-deep); color: #c9cce8; padding-block: 64px 32px; font-size: .94rem; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ft-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.ft-grid > div > a { display: block; text-decoration: none; padding: 4px 0; }
.ft-grid a:hover { color: #fff; }
.logo-ft { color: #fff; margin-bottom: 12px; }
.ft-contact p { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.ft-contact .ic { width: 18px; height: 18px; color: #9be27a; margin-top: 3px; }
.ft-contact a { text-decoration: none; }
.disclaimer { font-size: .8rem; color: #9a9dc0; margin: 24px 0 10px; max-width: 110ch; }
.copy { font-size: .8rem; color: #7c7fa6; margin: 0; }
@media (max-width: 860px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 640px; }
  .ring.pre .ring-arc { stroke-dashoffset: 0; }
}
