/* nimaya.pk: design tokens and layout. Design notes: design-system/MASTER.md */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ground: #f3f7ec;
  --surface: #e4edd6;
  --surface-2: #d5e3c1;
  --ink: #18230f;
  --muted: #4a5a3a;
  --forest: #2c4214;
  --action: #2f5a14;
  --action-press: #23450e;
  --leaf: #9cc95a;
  --deep: #1c2c10;
  --deep-2: #26391a;
  --ivory: #f3f7ec;
  --ivory-muted: #c9d6b8;
  --line: rgba(24, 35, 15, 0.18);
  --danger: #9e3418;
  --focus: #6f9f2c;
  --font-display: "Marcellus", "Iowan Old Style", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1360px;
  --header-h: 72px;
  --r: 16px;
  --r-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-ui: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body); font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.ico { width: 22px; height: 22px; flex: none; }

/* type */
.display { font-family: var(--font-display); font-size: clamp(3rem, 6.6vw, 6.8rem); line-height: 0.98; letter-spacing: -0.018em; color: var(--forest); }
.h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 5.4vw, 5rem); line-height: 1.02; letter-spacing: -0.015em; color: var(--forest); }
.h1--long { font-size: clamp(2rem, 4.4vw, 3.9rem); }
.h2 { font-family: var(--font-display); font-size: clamp(2.15rem, 4.3vw, 4.1rem); line-height: 1.04; letter-spacing: -0.012em; color: var(--forest); text-wrap: balance; }
.h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 1.45vw, 1.3rem); line-height: 1.55; max-width: 34em; }
.body-lg { font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); line-height: 1.6; max-width: 36em; }
.muted { color: var(--muted); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(22px); } }
.js .hero .w > span { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 75ms + 120ms); }
.js .hero [data-reveal] { animation: fade-up 0.9s var(--ease-out) both; animation-delay: 0.55s; }
.js .hero .hero__actions { animation-delay: 0.65s; }
.js .hero .hero__facts { animation-delay: 0.75s; }

/* buttons */
.btn {
  --bg: transparent; --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--fg); font-weight: 650; font-size: 1rem; letter-spacing: 0;
  text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-ui) ease, box-shadow var(--t-ui) ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--primary { --bg: var(--action); --fg: var(--ivory); }
.btn--primary:hover { --bg: var(--action-press); }
.btn--lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; }
.btn--grow { flex: 1 1 auto; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(24, 35, 15, 0.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.btn--light { --bg: var(--ivory); --fg: var(--deep); }
.btn--light:hover { --bg: #fff; }
.btn--text { padding: 0 6px; min-height: 44px; font-weight: 650; }
.btn--text .ico { transition: transform var(--t-ui) var(--ease-out); }
.btn--text:hover .ico { transform: translateX(4px); }
.btn__price { font-variant-numeric: tabular-nums; opacity: 0.92; font-weight: 600; }
.btn__price::before { content: ""; display: inline-block; width: 1px; height: 1.1em; background: currentColor; opacity: 0.4; margin: 0 12px -0.18em 2px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; }
.icon-btn:hover { background: var(--surface); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 650; font-size: 0.9375rem; box-shadow: 0 1px 0 rgba(24, 35, 15, 0.08); }
.chip .ico { width: 18px; height: 18px; color: var(--action); }
.chip:hover { background: var(--ivory); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; min-height: 48px; }
.brand img { height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.nav a:hover { background: var(--surface); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--forest); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--action); color: var(--ivory); text-decoration: none; font-weight: 650; font-size: 0.9375rem; }
.cart-btn:hover { background: var(--action-press); }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--ivory); color: var(--forest); font-size: 0.8125rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.cart-count.bump { animation: bump 420ms var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.35); } }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; place-items: center; }
.menu-btn:hover { background: var(--surface); }
.mobile-menu { background: var(--ground); padding: 8px 0 20px; }
.mobile-menu a { display: block; padding: 14px 0; font-family: var(--font-display); font-size: 1.75rem; text-decoration: none; color: var(--forest); }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .brand img { height: 38px; }
  :root { --header-h: 64px; }
}
@media (max-width: 420px) { .cart-btn__label { display: none; } .cart-btn { padding: 0 12px; } }

/* 3D stage */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0; pointer-events: none; transition: opacity 700ms ease; }
html.has-stage .stage { opacity: 1; }
main, .site-footer { position: relative; z-index: 1; }
[data-bg] { background: var(--sec, var(--ground)); transition: background-color 400ms ease; }
html.has-stage [data-bg] { background: transparent; }
.stage-anchor { position: relative; display: grid; place-items: center; }
/* still pictures shown before (or instead of) the 3D: they fill their window and scale to fit, at any size */
.stage-fallback { position: absolute; inset: 0; margin: auto; width: 100%; height: 84%; max-height: 820px; object-fit: contain; transition: opacity 500ms ease, visibility 0s linear 500ms; }
.stage-fallback img { width: 100%; height: 100%; object-fit: contain; }
html.has-stage .stage-fallback { opacity: 0; visibility: hidden; }
[data-stage-drag] { touch-action: pan-y; }
html.has-stage [data-stage-drag] { cursor: grab; }
html.has-stage [data-stage-drag]:active { cursor: grabbing; }
.stage-hint { position: absolute; left: 50%; bottom: 3%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.stage-hint__drag { display: none; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.stage-hint__drag .ico { width: 18px; height: 18px; }
html.has-stage .stage-hint__drag { display: inline-flex; }
html:not(.has-stage) [data-press] { display: none; }

/* hero */
.hero { padding-top: clamp(8px, 2vh, 24px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: center; min-height: min(calc(100svh - var(--header-h)), 960px); }
.hero__copy { display: grid; gap: 28px; padding-block: 40px; }
.hero__copy .lede { margin-top: 4px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font-weight: 600; font-size: 0.9375rem; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .ico { width: 20px; height: 20px; color: var(--action); }
.hero__stage { align-self: stretch; min-height: 560px; }

/* ingredient band */
.marquee { position: relative; z-index: 1; overflow: hidden; background: var(--forest); color: var(--ivory); padding: 18px 0; }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); animation: marquee 48s linear infinite; }
.marquee__leaf { width: 22px; height: 22px; color: var(--leaf); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* story sections: a bottle window beside copy */
.story { padding-block: clamp(80px, 12vh, 180px); }
.story__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); align-items: start; }
.story--right .story__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.story__stage { height: min(86svh, 860px); }
.stage-anchor--sticky { position: sticky; top: calc(var(--header-h) + 2svh); }
.story__copy { display: grid; gap: 28px; align-content: start; padding-block: clamp(0px, 6vh, 80px); }
.story--dark { color: var(--ivory); --sec: var(--deep); }
.story--dark .h2 { color: var(--ivory); }
.story--dark a:not(.btn) { color: var(--leaf); }
.ticks { display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.0625rem; }
.ticks .ico { width: 24px; height: 24px; margin-top: 1px; color: var(--action); flex: none; }
.ing-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 36px; }
.ing-list h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.15; color: var(--ivory); }
.ing-tag { font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; color: var(--leaf); margin-left: 6px; white-space: nowrap; }
.ing-list p { margin-top: 6px; color: var(--ivory-muted); font-size: 1rem; line-height: 1.55; }
.story--dark .btn--light { justify-self: start; }
.steps { display: grid; gap: 8px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 64px 1fr; gap: 4px 18px; padding: 22px 22px 22px 0; border-radius: var(--r); transition: background-color 300ms ease, padding 300ms ease; }
.steps li::before { content: counter(step); grid-row: span 2; font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--leaf); text-align: center; transition: color 300ms ease; }
.steps h3 { font-size: 1.3rem; font-weight: 700; }
.steps p { color: var(--muted); }
.steps li.is-active { background: var(--surface); padding-left: 0; }
.steps li.is-active::before { color: var(--action); }

/* buy */
.buy-section { padding-block: clamp(80px, 12vh, 160px); }
.buy-section__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 96px); align-items: center; }
.buy-section__stage { height: min(80svh, 760px); }
.buy-section__box { display: grid; gap: 22px; }
.buy { display: grid; gap: 18px; max-width: 600px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border: 0; margin: 0; padding: 0; }
.packs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pack--duo .pack__name::after { content: "Best value"; display: inline-block; white-space: nowrap; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--leaf); color: var(--deep); font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 2px; }
.buy__legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.pack { position: relative; display: block; cursor: pointer; }
.pack input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pack__body { display: grid; gap: 2px; height: 100%; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--t-ui) ease, background-color var(--t-ui) ease; }
.pack:hover .pack__body { box-shadow: inset 0 0 0 1.5px rgba(24, 35, 15, 0.4); }
.pack input:checked + .pack__body { background: #fff; box-shadow: inset 0 0 0 2.5px var(--action); }
.pack input:focus-visible + .pack__body { outline: 3px solid var(--focus); outline-offset: 2px; }
.pack__name { font-weight: 700; }
.pack__price { font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--forest); }
.pack__note { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.buy, .packs { min-width: 0; }
.buy__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.buy__row .btn--grow { flex: 1 1 200px; min-width: 0; }
.buy__alt { display: flex; flex-wrap: wrap; gap: 10px; }
.buy__alt .btn { flex: 1 1 180px; }
.buy__facts { display: grid; gap: 8px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.buy__facts li { display: flex; align-items: center; gap: 10px; }
.buy__facts .ico { width: 20px; height: 20px; color: var(--action); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty__btn { display: grid; place-items: center; width: 44px; height: 52px; border: 0; background: transparent; border-radius: 999px; }
.qty__btn .ico { width: 18px; height: 18px; }
.qty__btn:hover { color: var(--action); }
.qty__input { width: 40px; border: 0; background: transparent; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm .qty__btn { width: 36px; height: 40px; }
.qty--sm .qty__input { width: 30px; }

/* good to know, faq, journal */
.good, .faq, .journal-teaser { background: var(--ground); padding-block: clamp(80px, 11vh, 160px); }
.good__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; margin-top: 48px; }
.good__grid p { margin-top: 10px; color: var(--muted); }
.faq { background: var(--surface); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq__grid > div:first-child { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: var(--r); background: var(--ground); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: var(--r); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--action); }
.qa__icon { width: 20px; height: 20px; transition: transform 250ms var(--ease-out); }
.qa[open] .qa__icon { transform: rotate(45deg); }
.qa p { padding: 0 22px 22px; color: var(--muted); max-width: 62ch; }
.post-list { display: grid; gap: 8px; margin-top: 40px; }
.post-list a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface); text-decoration: none; transition: background-color var(--t-ui) ease; }
.post-list a:hover { background: var(--surface-2); }
.post-list__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.15; color: var(--forest); }
.post-list__meta { grid-column: 1; color: var(--muted); }
.post-list__arrow { grid-row: 1 / span 2; grid-column: 2; width: 28px; height: 28px; color: var(--action); transition: transform var(--t-ui) var(--ease-out); }
.post-list a:hover .post-list__arrow { transform: translateX(6px); }

/* footer */
.site-footer { background: var(--deep); color: var(--ivory); padding-top: clamp(64px, 10vh, 120px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.footer-intro { display: grid; gap: 24px; align-content: start; }
.footer-lede { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.2; max-width: 18em; }
.footer-intro .btn { justify-self: start; }
.footer-h { font-size: 1rem; font-weight: 700; color: var(--leaf); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 0; }
.footer-col a { display: inline-block; padding: 11px 0; color: var(--ivory); text-decoration: none; }
.footer-col li:not(:has(a)) { padding: 11px 0; }
.footer-col a:hover { text-decoration: underline; }
.footer-col li { color: var(--ivory-muted); }
.footer-mark { padding-block: clamp(48px, 8vh, 96px) 24px; }
.footer-mark img { width: 100%; height: auto; opacity: 0.92; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 40px; color: var(--ivory-muted); font-size: 0.9375rem; }
.footer-base a { display: inline-block; padding: 12px 0; color: var(--ivory-muted); margin-left: 18px; }
.footer-base p:last-child a:first-child { margin-left: 0; }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(15, 22, 9, 0.45); opacity: 0; transition: opacity 260ms ease; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%); display: grid; grid-template-rows: auto 1fr auto; background: var(--ground); box-shadow: -24px 0 60px rgba(15, 22, 9, 0.2); transform: translateX(100%); transition: transform 360ms var(--ease-out); }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px 24px; }
.drawer__head h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--forest); }
.drawer__body { overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 24px calc(22px + env(safe-area-inset-bottom)); background: var(--surface); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; }
.line + .line { box-shadow: 0 -1px 0 var(--line); }
.line__img { width: 72px; height: 88px; border-radius: 12px; background: var(--surface); display: block; padding: 5px; overflow: hidden; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__name { font-weight: 700; line-height: 1.3; }
.line__pack { color: var(--muted); font-size: 0.875rem; margin-bottom: 8px; }
.line__ctrl { display: flex; align-items: center; gap: 10px; }
.line__total { font-weight: 700; font-variant-numeric: tabular-nums; align-self: start; padding-top: 2px; }
.link-btn { border: 0; background: none; padding: 6px 2px; color: var(--muted); text-decoration: underline; font-size: 0.875rem; }
.link-btn:hover { color: var(--danger); }
.sum { display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum__total { font-weight: 800; font-size: 1.15rem; padding-top: 6px; }
.free-bar { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--forest); }
.free-bar__track { height: 6px; border-radius: 99px; background: rgba(24, 35, 15, 0.12); overflow: hidden; }
.free-bar__fill { height: 100%; background: var(--action); border-radius: 99px; transform-origin: left; transition: transform 500ms var(--ease-out); }
.empty { padding: 40px 0; display: grid; gap: 16px; justify-items: start; }
.empty p { color: var(--muted); }

/* toast and sticky buy bar */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 95; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 12px 40px rgba(15, 22, 9, 0.25); max-width: calc(100% - 32px); }
.sticky-buy { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 10px 40px rgba(15, 22, 9, 0.18); transform: translateY(150%); transition: transform 360ms var(--ease-out); }
.sticky-buy.is-shown { transform: none; }
.sticky-buy__name { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.sticky-buy__name span { display: block; color: var(--muted); font-weight: 600; }
@media (min-width: 921px) { .sticky-buy { display: none !important; } }

/* inner pages */
.page-head { padding-block: clamp(32px, 6vh, 72px) clamp(24px, 4vh, 48px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.page-head .lede { margin-top: 18px; color: var(--muted); }
.section { padding-block: clamp(56px, 9vh, 120px); }
.section--surface { background: var(--surface); }
.prose { max-width: 70ch; font-size: 1.0625rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.12; color: var(--forest); margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { color: var(--action); font-weight: 600; }
.prose .note { padding: 18px 20px; border-radius: var(--r); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.975rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; vertical-align: top; }
.prose tr:nth-child(odd) td { background: rgba(228, 237, 214, 0.6); }
.sources { font-size: 0.9375rem; color: var(--muted); }
.sources li { overflow-wrap: anywhere; }

/* product page */
.pdp { padding-block: 16px clamp(56px, 9vh, 120px); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(24px, 4.5vw, 72px); align-items: start; }
.pdp__media { position: sticky; top: calc(var(--header-h) + 12px); display: grid; gap: 12px; }
.viewer { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; opacity: 0; transition: opacity 600ms ease; }
.viewer canvas:active { cursor: grabbing; }
html.has-stage .viewer canvas { opacity: 1; }
.viewer .stage-fallback { height: 88%; width: 92%; }
.viewer__bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
html:not(.has-stage) .viewer__bar { display: none; }
.viewer__bar .chip[aria-pressed="true"] { background: var(--action); color: var(--ivory); }
.viewer__bar .chip[aria-pressed="true"] .ico { color: var(--ivory); }
.pdp__media { width: 100%; min-width: 0; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumbs a { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); background: var(--surface); overflow: hidden; }
.thumbs img { position: absolute; inset: 0; margin: auto; width: 88%; height: 88%; object-fit: contain; transition: transform 300ms var(--ease-out); }
.thumbs a:hover img { transform: scale(1.05); }
.pdp__info { display: grid; gap: 22px; padding-top: 8px; }
.pdp__title { font-family: var(--font-display); font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1.04; color: var(--forest); }
.pdp__sub { color: var(--muted); font-weight: 600; margin-top: 10px; }
.pdp__price { font-size: 1.6rem; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--forest); }
.pdp__price small { font-size: 0.95rem; color: var(--muted); font-weight: 600; margin-left: 8px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 650; font-size: 0.9375rem; }
.badges li { display: inline-flex; align-items: center; gap: 8px; }
.badges .ico { width: 20px; height: 20px; color: var(--action); }
.acc { display: grid; gap: 8px; margin-top: 8px; }
.acc .qa { background: var(--surface); }
.acc .qa > div { padding: 0 22px 22px; color: var(--muted); }
.acc .qa > div > * + * { margin-top: 0.8em; }
.acc ul.dots { list-style: disc; padding-left: 1.2em; }
.inci { font-size: 0.9375rem; line-height: 1.7; }
.lightbox { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: rgba(15, 22, 9, 0.88); padding: 20px; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 12px; }
.lightbox button { position: absolute; top: 16px; right: 16px; background: var(--ivory); }

/* forms */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; }
.field .hint { font-size: 0.875rem; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 1rem; transition: box-shadow var(--t-ui) ease; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--action), 0 0 0 4px rgba(111, 159, 44, 0.25); }
.field.has-error input, .field.has-error textarea, .field.has-error select { box-shadow: inset 0 0 0 2px var(--danger); }
.field .err { color: var(--danger); font-size: 0.875rem; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 16px 18px; border-radius: var(--r); background: #f6e3dc; color: #5e1d0b; font-weight: 600; }
.alert--ok { background: var(--surface); color: var(--forest); }
.pay-opts { display: grid; gap: 10px; border: 0; margin: 12px 0 0; padding: 0; }
.pay-opts legend { margin-bottom: 10px; padding: 0; }
.pay { position: relative; display: block; cursor: pointer; }
.pay input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pay__body { display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow var(--t-ui) ease, background-color var(--t-ui) ease; }
.pay:hover .pay__body { box-shadow: inset 0 0 0 1.5px rgba(24, 35, 15, 0.4); }
.pay input:checked + .pay__body { background: #fff; box-shadow: inset 0 0 0 2.5px var(--action); }
.pay input:focus-visible + .pay__body { outline: 3px solid var(--focus); outline-offset: 2px; }
.pay strong { display: flex; align-items: center; gap: 10px; }
.pay .ico { color: var(--action); }
.pay__body > span { color: var(--muted); font-size: 0.9375rem; }
.pay-opts .hint { font-size: 0.875rem; color: var(--muted); }
.wa-cta { display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 2px var(--action); }
.wa-cta .btn { justify-self: start; }

/* cart and checkout pages */
.checkout__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); }
.summary h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--forest); }
.cart-page .line { grid-template-columns: 96px minmax(0, 1fr) auto; }
.cart-page .line__img { width: 96px; height: 116px; }
.done { display: grid; gap: 24px; max-width: 760px; }
.order-no { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--forest); letter-spacing: 0.02em; }
.timeline { display: grid; gap: 0; margin-top: 8px; }
.timeline li { position: relative; padding: 0 0 22px 34px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 99px; background: var(--surface-2); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 22px; bottom: 0; width: 2px; background: var(--surface-2); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--action); }
.timeline strong { display: block; color: inherit; }

/* shop page, pairing and routine sections */
.eyebrow { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); }
.shop-card { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.shop-card__media { display: grid; place-items: center; height: clamp(300px, 34vw, 440px); background: radial-gradient(120% 90% at 50% 100%, var(--surface-2), var(--surface) 60%); }
.shop-card__media { position: relative; }
.shop-card__media img { position: absolute; inset: 0; margin: auto; width: 90%; height: 86%; object-fit: contain; transition: transform 500ms var(--ease-out); }
.shop-card:hover .shop-card__media img { transform: translateY(-6px) scale(1.02); }
.shop-card__body { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 2.4vw, 32px); }
.shop-card__body h2 a { text-decoration: none; }
.shop-card__body .h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 400; color: var(--forest); }
.shop-card__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 8px; }
.shop-card__price { font-size: 1.5rem; font-weight: 800; color: var(--forest); font-variant-numeric: tabular-nums; }
.shop-card__price s { font-size: 1rem; font-weight: 600; margin-left: 6px; }
.duo { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(20px, 4vw, 64px); margin-top: clamp(16px, 2.5vw, 32px); padding: clamp(20px, 3vw, 48px); border-radius: var(--r-lg); background: var(--deep); color: var(--ivory); scroll-margin-top: calc(var(--header-h) + 24px); }
.duo .h2 { color: var(--ivory); }
.duo .eyebrow { color: var(--leaf); }
.duo .body-lg, .duo .muted { color: var(--ivory-muted); }
.duo .ticks .ico { color: var(--leaf); }
.duo .shop-card__price { color: var(--ivory); }
.duo .btn--primary { background: var(--leaf); color: var(--deep); }
.duo__media { display: grid; place-items: center; }
.duo__media img { max-height: 440px; width: auto; }
.duo__body { display: grid; gap: 18px; }
.shop-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(24px, 4vw, 48px); }
.shop-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: var(--surface); }
.shop-facts .ico { width: 24px; height: 24px; color: var(--action); flex: none; }
.pair__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: center; gap: clamp(20px, 5vw, 80px); }
.pair__grid > div { display: grid; gap: 16px; }
.pair__media { display: flex; justify-content: center; align-items: center; min-width: 0; }
/* the picture sizes itself: never taller than the box allows, never wider than the column */
.pair__media img { width: auto; height: auto; max-width: 100%; max-height: clamp(220px, 30vw, 400px); object-fit: contain; }
.routine .story__copy { gap: 20px; }
.routine__stage { height: min(78svh, 720px); }
.stage-fallback--wide { height: 70%; }
.contact-wa { display: grid; gap: 14px; align-content: start; }
.contact-wa__label { font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--action); }
.contact-wa__num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--forest); line-height: 1.1; }
.contact-wa__num a { text-decoration: none; }
.contact-wa .btn { justify-self: start; }
.contact-topics { display: grid; gap: 8px; }
.contact-topics a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 18px; border-radius: var(--r); background: var(--surface); font-weight: 650; text-decoration: none; }
.contact-topics a:hover { background: var(--surface-2); }
.contact-topics .ico { width: 20px; height: 20px; color: var(--action); }
.viewer--jar .stage-fallback { height: 80%; width: 86%; }

/* admin */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; vertical-align: top; }
.admin-table tr:nth-child(even) td { background: rgba(228, 237, 214, 0.5); }
.admin-table th { font-size: 0.8125rem; color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--surface); font-weight: 700; font-size: 0.8125rem; }
.pill--new { background: #fbe9c9; }
.pill--cancelled { background: #f1d6cd; }
.pill--delivered { background: #d3e8bd; }

/* responsive */
@media (max-width: 1100px) {
  .good__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-intro { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid, .story__grid, .story--right .story__grid, .buy-section__grid, .faq__grid, .pdp__grid, .checkout__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { min-height: 0; gap: 0; }
  .hero__copy { padding-block: 24px 8px; gap: 20px; }
  .hero__stage { min-height: 0; height: 64svh; }
  .story { padding-block: 40px 72px; }
  .story__stage, .buy-section__stage { height: 58svh; order: -1; }
  .stage-anchor--sticky { position: relative; top: auto; }
  .story__copy { padding-block: 0; }
  .faq__grid > div:first-child { position: static; }
  .pdp__media, .summary { position: static; }
  .pdp__grid { display: flex; flex-direction: column; gap: 22px; }
  .pdp__info { display: contents; }
  .pdp__info > * { order: 2; }
  .pdp__info > .pdp__head { order: 0; }
  .pdp__media { order: 1; }
  .viewer { aspect-ratio: auto; height: min(64svh, 620px); }
  .ing-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .buy-section__box .buy { max-width: none; }
  .duo, .pair__grid { grid-template-columns: minmax(0, 1fr); }
  .routine__stage { height: 52svh; min-height: 300px; }
  .shop-facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .good__grid, .row-2, .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .packs { grid-template-columns: minmax(0, 1fr); }
  .pack__body { grid-template-columns: 1fr auto; align-items: baseline; }
  .pack__note { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .packs { gap: 8px; }
  .pack__body { padding: 12px 10px; }
  .pack__price { font-size: 1.02rem; }
  .post-list a { padding: 22px 20px; }
  .thumbs { gap: 8px; }
  .hero__facts { gap: 8px 18px; font-size: 0.875rem; }
  .btn--lg { width: 100%; }
  .hero__actions form { width: 100%; }
  .steps li { grid-template-columns: 48px 1fr; padding-right: 12px; }
  .steps li::before { font-size: 2.4rem; }
  .footer-base a { margin-left: 0; margin-right: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
