/* AdaptoFlow Co. storefront
   Ground: cool mist + white. Ink: the logo's outline navy. Color comes from the products and the
   five SKU hues. Type: Instrument Serif (display) + Inter Tight (everything else). */
:root {
  --ink: #0b1026;
  --ink-70: rgba(11, 16, 38, .7);
  --ink-45: rgba(11, 16, 38, .45);
  --mist: #eef1f4;
  --mist-2: #e3e8ee;
  --white: #ffffff;
  --line: rgba(11, 16, 38, .12);
  --line-strong: rgba(11, 16, 38, .3);
  --orange: #f26b0f;
  --focus: #1fb6ff;
  --sku-original: #f26b0f;       --sku-original-t: #ffe3cf;
  --sku-nettle: #1fb6ff;         --sku-nettle-t: #dbf1ff;
  --sku-adaptojam: #b5173f;      --sku-adaptojam-t: #ffdbe4;
  --sku-adaptobar: #5b21b6;      --sku-adaptobar-t: #e9ddff;
  --sku-adaptobites: #f2b705;    --sku-adaptobites-t: #fff1c2;
  --stripe: linear-gradient(90deg, var(--sku-original) 0 20%, var(--sku-nettle) 20% 40%, var(--sku-adaptojam) 40% 60%, var(--sku-adaptobar) 60% 80%, var(--sku-adaptobites) 80% 100%);
  --rainbow: linear-gradient(90deg, #ff4d6d, #ff9f1c, #ffd60a, #3ddc5c, #1fb6ff, #a64dff, #ff4d6d);
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
  /* Older names still used by motion.css (funnel modal, /control/) */
  --paper: var(--white);
  --text: var(--ink);
  --muted: var(--ink-70);
  --green: #1a9e4b;
  --font-body: var(--sans);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.55; color: var(--ink); background: var(--mist); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; line-height: 1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(3rem, 9vw, 8.5rem); letter-spacing: -.035em; line-height: .92; }
h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }
h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
em { font-family: var(--display); font-style: italic; font-size: 1.08em; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; 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: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

.wrap { width: min(1360px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Small kicker line: sentence case, serif italic, quiet */
.eyebrow { display: block; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--ink-70); margin-bottom: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 .95rem/1 var(--sans); text-decoration: none; padding: 1em 1.6em; border-radius: var(--pill); border: 1px solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: #1a2347; border-color: #1a2347; color: var(--white); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.on-dark .btn-ghost, .section-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.section-dark .btn:not(.btn-ghost) { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-small { padding: .7em 1.1em; font-size: .85rem; }
.btn-flow { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn-flow:hover { background: #d95c08; border-color: #d95c08; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.price-inline { font-family: var(--display); font-size: 1.35rem; color: var(--ink-70); margin-left: 8px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--ink); color: var(--white); text-align: center; font-size: .8rem; font-weight: 500; }
.announce p { margin: 0; padding: 8px 16px; max-width: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238, 241, 244, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 16px; }
.brand { justify-self: start; }
.brand img { width: 128px; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.site-header.at-top .brand img { width: 256px; }
.site-header.at-top .header-inner { min-height: 112px; }
.site-nav { display: flex; align-items: center; gap: 28px; justify-self: center; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { border-bottom-color: var(--ink); }
.site-nav .btn { display: none; }
.nav-toggle { display: none; justify-self: end; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 1.5px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
.header-cta { justify-self: end; }
@media (max-width: 1000px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--mist); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .site-nav .btn { display: inline-flex; margin: 18px 0 0; }
  .brand img { width: 112px; }
  .site-header.at-top .brand img { width: 224px; }
  .site-header.at-top .header-inner { min-height: 100px; }
}
@media (max-width: 640px) {
  .announce { font-size: .72rem; }
  .announce p { padding: 6px 12px; }
  .header-inner { min-height: 56px; }
  .brand img { width: 104px; }
  .site-header.at-top .brand img { width: 150px; }
  .site-header.at-top .header-inner { min-height: 72px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(32px, 5vw, 64px) 0; position: relative; }
.section-white { background: var(--white); }
.section-mist { background: var(--mist); }
.section-open { background: transparent; }
.section-dark { background: var(--ink); color: rgba(255,255,255,.82); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { text-decoration-color: rgba(255,255,255,.4); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--ink-70); }
.section-head.center p { margin-inline: auto; }
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-tight { padding: 28px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head p { font-size: 1rem; }
  h2 { font-size: 2.1rem; }
}
.stripe, .rainbow-rule { height: 6px; background: var(--stripe); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* "Cards" are quiet blocks with a top rule, not boxes */
.card { border-top: 1px solid var(--ink); padding: 18px 0 0; background: transparent; }
.card h3 { font-size: 1.5rem; margin-bottom: .35em; }
.card p { color: var(--ink-70); }
.card p:last-child { margin-bottom: 0; }
.icon-dot { width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); }
.section-dark .card { border-top-color: rgba(255,255,255,.35); }
.section-dark .card p { color: rgba(255,255,255,.75); }

/* ---------- Hero (home) ---------- */
.hero { position: relative; padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 96px); min-height: min(86vh, 900px); display: flex; align-items: center; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); align-items: end; flex: 0 1 auto; }
.hero > .wrap { padding-inline: clamp(8px, 3vw, 64px); }
.hero h1 { margin-bottom: .35em; }
.hero .lede { font-size: clamp(1.1rem, 1.5vw, 1.35rem); color: var(--ink-70); max-width: 34em; margin-bottom: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: .9rem; color: var(--ink-70); }
.hero-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 10px; vertical-align: middle; }
.hero-art { display: none; }
.hero-side { align-self: end; justify-self: end; max-width: 300px; font-size: .95rem; color: var(--ink-70); }
.hero-side strong { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; margin-bottom: 6px; }
@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 40px; padding-bottom: 46vh; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-side { display: none; }
}
/* Phones have no floating stage, so the hero shows its product as a still, two-tone panel like the tiles */
@media (max-width: 820px) {
  .hero { padding: 28px 0 36px; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .hero .lede { font-size: 1.02rem; margin-bottom: 22px; }
  .hero-facts { margin-top: 22px; gap: 6px 20px; font-size: .85rem; }
  .hero-art { display: grid; place-items: center; position: relative; aspect-ratio: 5 / 4; max-height: 340px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg, var(--sku) 0 56%, var(--sku-t) 56% 100%); }
  .hero-art img { position: absolute; inset: 8% 0; width: 100%; height: 84%; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(11,16,38,.28)); }
  .af-float .hero-art img { animation: af-float 6.5s ease-in-out infinite alternate; }
}

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.proof div { padding: 22px 20px 22px 0; border-right: 1px solid var(--line); }
.proof div:last-child { border-right: 0; }
.proof div + div { padding-left: 20px; }
.proof strong { display: block; font-family: var(--display); font-size: 2rem; letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; font-weight: 400; }
.proof span { font-size: .9rem; color: var(--ink-70); }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr 1fr; } .proof div:nth-child(2) { border-right: 0; } .proof div:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); } .proof div:nth-child(4) { border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .proof div { padding: 16px 14px 16px 0; } .proof div + div { padding-left: 14px; } .proof div:nth-child(3) { padding-left: 0; } .proof strong { font-size: 1.45rem; } .proof span { font-size: .8rem; display: block; line-height: 1.35; } }

/* ---------- SKU tiles ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.product-card { position: relative; display: flex; flex-direction: column; color: var(--ink); min-width: 0; }
.product-card-media { position: relative; aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--sku) 0 56%, var(--sku-t) 56% 100%); display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); }
.product-card-media .cut { position: absolute; inset: 10% 16%; width: 68%; height: 80%; object-fit: contain; filter: drop-shadow(0 24px 24px rgba(11,16,38,.28)); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-card-media .cut { transform: translateY(-6px) rotate(-3deg) scale(1.03); }
.product-card-media .alt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.product-card:hover .product-card-media .alt { opacity: 1; }
.product-card-media .flag { position: absolute; top: 12px; left: 12px; background: var(--white); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 5px 9px; border-radius: var(--pill); z-index: 1; }
.product-card-body { padding: 14px 2px 0; display: grid; gap: 4px; }
.product-card-body .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-card-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 0; letter-spacing: 0; line-height: 1.3; }
.product-card-body h3 a { text-decoration: none; }
.product-card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.product-card .price { font-family: var(--display); font-size: 1.25rem; white-space: nowrap; margin: 0; }
.product-card .meta { font-size: .85rem; color: var(--ink-70); margin: 0; }
[data-sku="original"] { --sku: var(--sku-original); --sku-t: var(--sku-original-t); }
[data-sku="nettle-dandelion"] { --sku: var(--sku-nettle); --sku-t: var(--sku-nettle-t); }
[data-sku="adaptojam"] { --sku: var(--sku-adaptojam); --sku-t: var(--sku-adaptojam-t); }
[data-sku="adaptobar"] { --sku: var(--sku-adaptobar); --sku-t: var(--sku-adaptobar-t); }
[data-sku="adaptobites"] { --sku: var(--sku-adaptobites); --sku-t: var(--sku-adaptobites-t); }

/* Shop by goal chips (open the quiz) */
.goals { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.goals button { font: 500 .9rem/1 var(--sans); padding: 10px 16px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; }
.goals button:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
/* Phones: chips in one swipeable row instead of three wrapped lines */
@media (max-width: 640px) {
  .goals { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)) 20px; padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .goals::-webkit-scrollbar { display: none; }
  .goals li { flex: none; }
  .goals button { padding: 9px 14px; font-size: .85rem; }
}

/* Compare block */
.compare { display: grid; grid-template-columns: 1.2fr 1fr 1fr; border-top: 1px solid var(--ink); }
.compare > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare > div:nth-child(3n+2), .compare > div:nth-child(3n) { padding-left: 16px; border-left: 1px solid var(--line); }
.compare .h { font-weight: 600; }
.compare .k { color: var(--ink-70); }
.compare .yes::before { content: "●"; margin-right: 8px; font-size: .7em; vertical-align: middle; }
.compare .no { color: var(--ink-45); }
.compare .btn { margin-top: 6px; }
@media (max-width: 640px) { .compare { font-size: .85rem; } .compare > div { padding: 12px 8px 12px 0; } }

/* Lineup banner */
.lineup { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.lineup img { width: 100%; }
.lineup figcaption { color: rgba(255,255,255,.75); font-size: .9rem; padding: 12px 18px; }

/* Adaptogen cards and lists */
.mushroom .latin { font-family: var(--display); font-style: italic; color: var(--ink-70); font-size: 1.05rem; margin-bottom: .6em; }
.card-link { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.card-link:hover { border-top-color: var(--orange); }
.card-link .more { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.card .kind { display: block; font-size: .85rem; color: var(--ink-70); margin-bottom: 8px; }
.mini-product strong { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1.1; margin-bottom: 6px; font-weight: 400; }
.mini-product span { color: var(--ink-70); font-size: .95rem; }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: .55em; }
.check-list li::before { content: "●"; position: absolute; left: 0; top: .1em; font-size: .65em; }
.pill-links { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links li { margin: 0; }
.pill-links a { display: inline-block; padding: 8px 14px; border-radius: var(--pill); border: 1px solid var(--line-strong); text-decoration: none; font-size: .9rem; font-weight: 500; }
.pill-links a:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.badges { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 0; list-style: none; font-size: .9rem; color: var(--ink-70); }
.badges li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 10px; vertical-align: middle; }
ol.steps { padding-left: 1.2em; }
ol.steps li { margin-bottom: .6em; }
.notice { border-left: 2px solid var(--orange); padding: 4px 0 4px 18px; color: var(--ink-70); font-size: .95rem; }
.notice p:last-child { margin-bottom: 0; }
.free-from { border-top: 1px solid var(--ink); padding-top: 18px; }
.free-from p:last-child { margin-bottom: 0; }
.free-from h3, .free-from h2 { font-size: 1.6rem; }

/* Mission */
.mission blockquote { margin: 0; max-width: 980px; font-family: var(--display); font-size: clamp(1.8rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.02em; }
.mission blockquote p { max-width: none; }
.mission cite { display: block; margin-top: 18px; font-family: var(--sans); font-style: normal; font-size: .9rem; color: var(--ink-70); }
.section-dark .mission blockquote { color: var(--white); }

.art-panel { border-radius: var(--radius); overflow: hidden; }
.art-panel img { width: 100%; }
.art-panel.cream { background: #fdeddc; }
.art-panel.mint { background: #eaf7f9; }
.steps-grid { counter-reset: step; }
.steps-grid .card h3::before { counter-increment: step; content: counter(step) " "; color: var(--ink-45); }
.section-dark .steps-grid .card h3::before { color: rgba(255,255,255,.45); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(24px, 4vw, 48px); }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 6rem); margin-bottom: .25em; }
.page-head p { font-size: 1.15rem; color: var(--ink-70); margin: 0; max-width: 44em; }
.breadcrumb { font-size: .85rem; color: var(--ink-70); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.pdp-media { position: sticky; top: 88px; }
.pdp-hero { background: linear-gradient(180deg, var(--sku, var(--mist-2)) 0 56%, var(--sku-t, var(--white)) 56% 100%); border-radius: var(--radius); display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; }
.pdp-hero .product-photo { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.pdp-hero { position: relative; }
.pdp-hero .cut { position: absolute; inset: 9% 17%; width: 66%; height: 82%; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(11,16,38,.3)); }
.pdp-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.pdp-gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.pdp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s ease; }
.pdp-gallery a:hover img { transform: scale(1.05); }
.pdp-label { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
.pdp-label img { border-radius: var(--radius); }
.pdp-label figcaption { font-size: .85rem; color: var(--ink-70); padding: 8px 0 0; }
.pdp h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: .98; }
.pdp .meta { color: var(--ink-70); }
.pdp .price { font-family: var(--display); font-size: 2.2rem; margin: 8px 0 4px; }
.pdp .price small { font-family: var(--sans); font-size: .85rem; color: var(--ink-70); }
.stock { font-size: .9rem; color: var(--ink-70); }
.order-box { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 20px 0 28px; }
.order-box .btn { width: 100%; max-width: 360px; }
.order-box p { font-size: .9rem; color: var(--ink-70); margin: 14px 0 0; }
.spec-list { list-style: none; padding: 0; margin: 0 0 28px; font-size: .95rem; }
.spec-list li { display: flex; gap: 16px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { font-weight: 500; color: var(--ink-70); }
.tag { display: inline-block; font-size: .85rem; font-weight: 600; color: var(--ink-70); }
.pdp h2 { font-size: 1.8rem; }
.pdp ul:not(.spec-list) { padding-left: 1.2em; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } .pdp-media { position: static; } }

.facts { border: 2px solid var(--ink); background: var(--white); padding: 10px 14px; font-family: Arial, Helvetica, sans-serif; max-width: 420px; font-size: .92rem; line-height: 1.35; color: var(--ink); }
.facts h3 { font-family: "Arial Black", Arial, sans-serif; font-size: 1.6rem; margin: 0 0 4px; letter-spacing: -.01em; }
.facts .bar { border-top: 8px solid var(--ink); margin: 6px 0; }
.facts .bar-thin { border-top: 1px solid var(--ink); margin: 4px 0; }
.facts table { width: 100%; border-collapse: collapse; }
.facts td, .facts th { padding: 4px 0; vertical-align: top; text-align: left; }
.facts th { font-size: .8rem; }
.facts td:last-child, .facts th:last-child { text-align: right; white-space: nowrap; }
.facts .foot { font-size: .8rem; margin-top: 6px; }

/* ---------- Accordions ---------- */
details { border-top: 1px solid var(--line); padding: 0; margin: 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 500; font-size: 1.05rem; padding: 16px 32px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 12px; font-family: var(--display); font-size: 1.6rem; color: var(--ink-70); }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--ink-70); }
details[open] { padding-bottom: 10px; }

/* ---------- Long-form pages ---------- */
.prose { padding: 0 0 clamp(64px, 9vw, 128px); }
.prose h2 { font-size: 1.9rem; margin-top: 1.6em; }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; max-width: var(--measure); }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.updated { color: var(--ink-70); font-size: .9rem; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.contact-list strong { display: block; font-size: .85rem; font-weight: 500; color: var(--ink-70); margin-bottom: 2px; }

/* Photo review gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 36px; }
.gallery .shot { display: block; text-decoration: none; }
.gallery .shot img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--ink); border-radius: var(--radius); }
.gallery .shot span { display: block; padding: 8px 0; font-weight: 600; font-size: .9rem; }
.gallery .shot small { display: block; font-weight: 400; color: var(--ink-70); font-size: .72rem; word-break: break-all; }
.product-photo { display: block; }
.af-result .product-photo { width: 120px; height: 150px; object-fit: cover; border-radius: var(--radius); margin: 0 auto; }

/* ---------- Scroll stage (big product cutouts behind the page) ---------- */
.af-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; perspective: 1400px; perspective-origin: 50% 40%; overflow: hidden; }
canvas.af-stage3d { width: 100% !important; height: 100% !important; display: block; }
.af-stage-quiet canvas.af-stage3d { opacity: .6; }
.af-obj { position: absolute; top: 50vh; width: auto; max-width: none; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 40px 50px rgba(11,16,38,.35)); backface-visibility: hidden; }
.af-has-stage main, .af-has-stage .site-footer, .af-has-stage .announce { position: relative; z-index: 1; }
.af-has-stage .site-header { position: sticky; z-index: 50; }
.af-has-stage .section-white { background: rgba(255,255,255,.86); }
.af-has-stage .section-mist { background: rgba(238,241,244,.9); }
.af-stage-quiet .af-obj { opacity: .55; }
@media (max-width: 820px) { .af-obj { filter: drop-shadow(0 24px 30px rgba(11,16,38,.35)); } .af-has-stage .section-white { background: rgba(255,255,255,.82); } }

/* ---------- Mobile buy bar ---------- */
.buy-bar { display: none; }
@media (max-width: 860px) {
  .buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .buy-bar.show { transform: none; }
  .buy-bar .t { font-size: .85rem; line-height: 1.2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buy-bar .t strong { display: block; font-family: var(--display); font-size: 1.2rem; font-weight: 400; }
  .buy-bar .btn { padding: .8em 1.2em; white-space: nowrap; flex: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); font-size: .92rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-word { padding: clamp(32px, 5vw, 64px) 0 0; }
.footer-word img { display: block; width: 100%; height: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr 1.1fr; gap: 28px; padding: clamp(32px, 5vw, 64px) 0 32px; border-top: 1px solid rgba(255,255,255,.14); margin-top: clamp(24px, 4vw, 48px); }
.footer-brand img { display: none; }
.footer-brand p { max-width: 34em; }
.footer-free { color: rgba(255,255,255,.85); }
.footer-free strong { color: var(--white); font-weight: 600; }
.footer-h { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--white); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.fda-box p { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 0; font-size: .82rem; margin: 0; max-width: none; }
.footer-base { padding: 22px 0 28px; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-base p { margin: 0; max-width: none; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .site-footer { padding-bottom: 72px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Quick-order row on tiles: on hover (pointer devices), always on touch */
.product-card .quick { position: absolute; left: 0; right: 0; bottom: 64px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; margin: 0 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-radius: var(--radius); font-family: var(--display); font-size: 1.2rem; transform: translateY(8px); opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .quick, .product-card:focus-within .quick { opacity: 1; transform: none; }
@media (hover: none) { .product-card .quick { opacity: 1; transform: none; } }
.product-card .quick .btn { font-family: var(--sans); }
.product-card .quick > a:only-child { margin-left: auto; }

/* Phones: two tiles per row, and the quick-order row becomes a slim button under the name (the price is
   already beside the name, so it isn't repeated). An odd last tile runs full width instead of sitting alone. */
@media (max-width: 640px) {
  .grid-products { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .product-card-media .cut { inset: 8% 10%; width: 80%; height: 84%; filter: drop-shadow(0 12px 14px rgba(11,16,38,.26)); }
  .product-card-media .flag { top: 8px; left: 8px; font-size: .66rem; padding: 4px 7px; }
  .product-card-body { padding-top: 10px; gap: 2px; }
  .product-card-body .row { flex-direction: column; align-items: flex-start; gap: 0; }
  .product-card-body h3 { font-size: .92rem; }
  .product-card .price { font-size: 1.1rem; }
  .product-card .meta { font-size: .76rem; line-height: 1.35; }
  .product-card .quick { position: static; margin: 10px 0 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; transform: none; }
  .product-card .quick > span { display: none; }
  .product-card .quick .btn { width: 100%; padding: .75em 1em; }
  .grid-products > .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-products > .product-card:last-child:nth-child(odd) .product-card-media { aspect-ratio: 16 / 10; }
  .grid-products > .product-card:last-child:nth-child(odd) .product-card-body .row { flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* The hero product lands in its tile: the tile's own cutout stays hidden until it docks */
.product-card.af-dock-target .cut { opacity: 0; transition: opacity .15s; }
.product-card.af-dock-target.af-docked .cut { opacity: 1; }

/* SKU hues in the compare block and the ingredient band */
.compare .h[data-sku] { border-top: 4px solid var(--sku); margin-top: -1px; }
.section-tint { background: var(--sku-t); }
.af-has-stage .section-tint { background: color-mix(in srgb, var(--sku-t) 88%, transparent); }

/* Cursor twinkle: a page-wide layer that only lights up while the pointer is over a 3D model */
.af-magic { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; }

/* Transparent illustrations: no panel, just the subject with a soft contact shadow */
.art-float img { width: 100%; filter: drop-shadow(0 28px 28px rgba(11,16,38,.22)); }
