/* Neat Nook storefront.
   Layout: floating pill nav, split hero (copy left, framed kitchen photo right), one ticker, Sheet-driven product grid,
   a three-tile problem bento, a price-comparison split, numbered steps, FAQ accordion, closing band.
   Colours come from a skin on <html data-skin="…"> chosen by the Google Sheet. Each skin has light and dark values.

   MATERIALS: iOS 26 Liquid Glass, with Apple's own hierarchy kept intact.
   `.glass` is the floating layer that sits above content: the nav, the price tag on the photo,
   captions over photographs, buttons, bars and sheets. It is translucent, it blurs and brightens
   what is behind it, and it carries a lit top bevel plus a specular rim that tracks the pointer.
   `.pane` is the content layer: product cards, the price ledger, FAQ rows. Near solid, same bevel
   and rounding, no blur. Apple never stacks a light translucent surface on another one, because
   the text on top stops being readable, and a page of blurred cards is also a page that drops
   frames on a cheap phone. Glass floats; content does not.
   Behind everything sits a soft field of brand colour, because glass with nothing to refract is
   just a grey box.
   Radius system: capsules for buttons and chips, 24px frames, and inner radii cut to
   outer minus padding so curves stay concentric. */

:root {
  --display: "Gabarito", "Trebuchet MS", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --r-frame: 24px;
  --r-input: 12px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Apple's springs: critically damped by default, a little bounce only after a gesture that
     carried momentum. Expressed as beziers because CSS has no spring. */
  --spring: cubic-bezier(.32, .72, 0, 1);
  --spring-soft: cubic-bezier(.22, 1, .36, 1);

  /* Liquid Glass. A bigger surface reads as thicker glass, so it gets more blur and a deeper
     shadow. Three weights, used in that order of size. */
  --g-tint: 255 255 255;
  --g-thin: .40;    /* small chips sitting on a photograph */
  --g-reg: .56;     /* the nav, bars, buttons */
  --g-thick: .74;   /* sheets and drawers, which carry long text */
  --g-pane: .88;    /* the content layer: near solid, stays readable */
  --g-spec: .92;    /* the lit top bevel. This one line is the whole effect */
  --g-spec-low: .34;
  --g-rim: .55;
  --g-sheen: .30;
  --g-shade: 20 38 31;
  --blur-thin: 14px;
  --blur-reg: 22px;
  --blur-thick: 32px;

  /* fresh (default), light */
  --bg: #F4F6F2; --surface: #FFFFFF; --ink: #14261F; --muted: #56695F; --line: #DCE3DD;
  --accent: #1E5C45; --accent-ink: #F7F8F4; --soft: #E3ECE5; --pop: #F2CF4A; --pop-ink: #2B2205;
  --band: #14261F; --band-ink: #F4F6F2; --strip: #14261F; --strip-ink: #F4F6F2; --error: #B3261E;
  --shadow: 0 30px 60px -30px rgba(20, 38, 31, .35);
  color-scheme: light;
}
:root[data-skin="christmas"] { --bg: #F3F5EF; --surface: #FFFFFF; --ink: #142A21; --muted: #586A5E; --line: #DCE2D6; --accent: #1D5A43; --accent-ink: #FFF8E8; --soft: #E5ECDF; --pop: #D9A840; --pop-ink: #241900; --band: #9E2B25; --band-ink: #FFF3E6; --strip: #9E2B25; --strip-ink: #FFF3E6; }
:root[data-skin="onam"]      { --bg: #FBF7EA; --surface: #FFFDF6; --ink: #3A2A0C; --muted: #70603C; --line: #EADFC0; --accent: #2F6B2A; --accent-ink: #FFFFFF; --soft: #F3E9C8; --pop: #C99A2E; --pop-ink: #241900; --band: #2F6B2A; --band-ink: #FFF8E2; --strip: #C99A2E; --strip-ink: #2A1C00; }
:root[data-skin="monsoon"]   { --bg: #EDF2F6; --surface: #FFFFFF; --ink: #14263A; --muted: #546A80; --line: #D5DFE8; --accent: #1D4F7A; --accent-ink: #FFFFFF; --soft: #DDE8F2; --pop: #F2CF4A; --pop-ink: #2B2205; --band: #14263A; --band-ink: #DBE9F5; --strip: #14263A; --strip-ink: #DBE9F5; }
:root[data-skin="festive"]   { --bg: #FBF2EC; --surface: #FFFAF6; --ink: #3D0F1A; --muted: #7B5058; --line: #EFD8CF; --accent: #8A1F35; --accent-ink: #FFFFFF; --soft: #F8E2D6; --pop: #F2A52B; --pop-ink: #2A1500; --band: #8A1F35; --band-ink: #FFE9C7; --strip: #F2A52B; --strip-ink: #2A1500; }

@media (prefers-color-scheme: dark) {
  :root { --g-tint: 30 46 39; --g-thin: .46; --g-reg: .62; --g-thick: .80; --g-pane: .92; --g-spec: .26; --g-spec-low: .07; --g-rim: .15; --g-sheen: .12; --g-shade: 0 0 0; }
  :root { --bg: #0E1714; --surface: #15221D; --ink: #E8F0EB; --muted: #9DB2A7; --line: #273A32; --accent: #6FC7A2; --accent-ink: #0B1F17; --soft: #1A2E26; --pop: #F2CF4A; --pop-ink: #2B2205; --band: #1A2E26; --band-ink: #E8F0EB; --strip: #1A2E26; --strip-ink: #E8F0EB; --error: #FF8A80; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); color-scheme: dark; }
  :root[data-skin="christmas"] { --bg: #0F1F19; --surface: #163027; --ink: #F6EFDC; --muted: #B9C4B3; --line: #2A4639; --accent: #D9A840; --accent-ink: #1A1405; --soft: #22392E; --pop: #D9A840; --band: #6E1D19; --band-ink: #FFF1E2; --strip: #6E1D19; --strip-ink: #FFF1E2; }
  :root[data-skin="onam"]      { --bg: #1B160B; --surface: #262011; --ink: #F5ECD2; --muted: #C2B38A; --line: #3E3420; --accent: #E0B84A; --accent-ink: #231A00; --soft: #33291A; --pop: #E0B84A; --band: #33291A; --band-ink: #F5ECD2; --strip: #7F5F15; --strip-ink: #FFF4D6; }
  :root[data-skin="monsoon"]   { --bg: #0D1620; --surface: #142130; --ink: #E0EAF3; --muted: #8EA4BA; --line: #243649; --accent: #6FA9DC; --accent-ink: #08182A; --soft: #1B2D40; --band: #1B2D40; --band-ink: #E0EAF3; --strip: #1D3550; --strip-ink: #DBE9F5; }
  :root[data-skin="festive"]   { --bg: #1E0A10; --surface: #2C121A; --ink: #FBE9E0; --muted: #D0AAA8; --line: #47222C; --accent: #F2A52B; --accent-ink: #2A1500; --soft: #3B1822; --band: #5A1424; --band-ink: #FFE9C7; --strip: #7D1A2E; --strip-ink: #FFE9C7; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; transition: background-color .4s var(--ease); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, label, [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: color-mix(in srgb, var(--accent) 16%, transparent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
main { display: grid; gap: clamp(88px, 11vw, 140px); padding-bottom: 96px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 30; }
.skip:focus { top: 12px; }

/* ================================================================= LIQUID GLASS =========
   The material, defined once. Every floating surface on the page is one of these three
   weights, so they all catch light the same way. */

/* GLASS, the floating layer:   the nav, captions over photographs, bars and sheets.
   PANE, the content layer:      product cards, the price ledger, FAQ rows. */
.glass,      .nav, .tile-text, .band-card, .buybar,
.glass-thin, .chip, .film-toggle,
.glass-thick, dialog, dialog.drawer,
.pane,       .card, .compare-card, .faq details {
  position: relative;
  isolation: isolate;
  border: 0;
  /* The lit top bevel, the bounce off the bottom inside face, the rim, then elevation.
     Drop the first line to 30% white and the surface flattens immediately. */
  box-shadow:
    inset 0 1.5px 0 rgb(255 255 255 / var(--g-spec)),
    inset 0 -1px 0 rgb(255 255 255 / var(--g-spec-low)),
    inset 0 0 0 1px rgb(255 255 255 / var(--g-rim)),
    0 2px 6px -2px rgb(var(--g-shade) / .14),
    0 16px 40px -16px rgb(var(--g-shade) / .34);
}
.glass, .nav, .chip { background: rgb(var(--g-tint) / var(--g-reg));   -webkit-backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06);   backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06); }
.glass-thin, .film-toggle { background: rgb(var(--g-tint) / var(--g-thin));  -webkit-backdrop-filter: blur(var(--blur-thin)) saturate(180%) brightness(1.05);  backdrop-filter: blur(var(--blur-thin)) saturate(180%) brightness(1.05); }
.glass-thick, dialog, .tile-text, .band-card { background: rgb(var(--g-tint) / var(--g-thick)); -webkit-backdrop-filter: blur(var(--blur-thick)) saturate(190%) brightness(1.04); backdrop-filter: blur(var(--blur-thick)) saturate(190%) brightness(1.04); }
/* The content layer. Same family, no blur: the text on it has to stay crisp, and a grid of
   blurred cards is what makes a cheap phone drop frames. */
.pane, .card, .compare-card, .faq details { background: color-mix(in srgb, var(--surface) calc(var(--g-pane) * 100%), transparent); }

/* The specular rim. Its bright point follows the pointer (--sx/--sy, set in src/glass.js),
   which is the web's stand-in for the way iOS shifts the highlight as you tilt the device. */
.glass::before, .glass-thin::before, .glass-thick::before, .pane::before,
.nav::before, .tile-text::before, .band-card::before, .buybar::before,
.chip::before, .film-toggle::before, dialog.drawer::before,
.card::before, .compare-card::before, .faq details::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; pointer-events: none;
  padding: 1.25px;
  background: linear-gradient(var(--sa, 150deg),
    rgb(255 255 255 / calc(var(--g-spec) * .85)) 0%,
    rgb(255 255 255 / 0) 34%,
    rgb(255 255 255 / 0) 64%,
    rgb(255 255 255 / calc(var(--g-spec) * .40)) 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
}
/* The broad sheen across the face, so the surface reads as curved rather than flat. */
.glass::after, .glass-thin::after, .glass-thick::after,
.nav::after, .tile-text::after, .band-card::after, .buybar::after,
.chip::after, .film-toggle::after, dialog.drawer::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(130% 100% at var(--sx, 28%) var(--sy, -10%),
    rgb(255 255 255 / var(--g-sheen)), rgb(255 255 255 / 0) 58%);
}
/* Content has to sit above both. */
.glass > *, .glass-thin > *, .glass-thick > *, .pane > *,
.nav > *, .tile-text > *, .band-card > *, .buybar > *,
.chip > *, .film-toggle > *, dialog.drawer > *,
.card > *, .compare-card > *, .faq details > * { position: relative; z-index: 2; }

/* Real glass bends light most at its edges. backdrop-filter cannot move a pixel, so the
   displacement comes from an SVG filter (the <svg> at the top of each page). Chrome only, and
   only where there is GPU budget to spare, so phones get blur and bevel and nothing is lost. */
@supports (backdrop-filter: url(#nn-lens)) {
  @media (min-width: 900px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .glass, .nav, .chip { backdrop-filter: url(#nn-lens) blur(var(--blur-reg)) saturate(185%) brightness(1.06); }
    .glass-thick, dialog, .tile-text, .band-card { backdrop-filter: url(#nn-lens) blur(var(--blur-thick)) saturate(190%) brightness(1.04); }
  }
}

/* Translucency is a preference, not a given. Turned off, the material becomes solid and the
   bevel does the work on its own. */
@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-thin, .glass-thick,
  .nav, .tile-text, .band-card, .buybar, .chip, .film-toggle, dialog {
    background: var(--surface);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .glass::after, .glass-thin::after, .glass-thick::after,
  .nav::after, .tile-text::after, .band-card::after, .buybar::after,
  .chip::after, .film-toggle::after, dialog.drawer::after { display: none; }
}
@media (prefers-contrast: more) {
  .glass, .glass-thin, .glass-thick, .pane,
  .nav, .tile-text, .band-card, .buybar, .chip, .film-toggle, dialog,
  .card, .compare-card, .faq details { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
}

/* The field of colour the glass refracts. Static: a drifting full-viewport background is the
   kind of motion that makes people queasy, and it would fight the product photography. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(44% 38% at  8%  4%, color-mix(in srgb, var(--accent) 85%, transparent), transparent 68%),
    radial-gradient(40% 34% at 94% 14%, color-mix(in srgb, var(--pop)    80%, transparent), transparent 70%),
    radial-gradient(46% 40% at 88% 86%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 70%),
    radial-gradient(40% 36% at 10% 80%, color-mix(in srgb, var(--pop)    55%, transparent), transparent 72%),
    radial-gradient(34% 30% at 52% 46%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 74%);
  opacity: .30;
}
@media (prefers-color-scheme: dark) { body::before { opacity: .40; } }
@media (prefers-contrast: more) { body::before { display: none; } }

@media (max-width: 760px) { :root { --blur-reg: 16px; --blur-thick: 24px; --blur-thin: 11px; } }

/* Vibrancy: secondary text on glass is darker and heavier than it would be on a solid surface. */
.tile-text p, .band-card p, .chip .chip-name, .chip .chip-price { color: color-mix(in srgb, var(--ink) 92%, transparent); font-weight: 600; }
.tile-text h3, .band-card h2 { text-shadow: 0 1px 0 rgb(255 255 255 / .28); }
@media (prefers-color-scheme: dark) {
  .tile-text p, .band-card p, .chip .chip-name, .chip .chip-price { color: var(--ink); }
  .tile-text h3, .band-card h2 { text-shadow: 0 1px 2px rgb(0 0 0 / .4); }
}

/* Buttons: pill with a nested icon circle */
/* A capsule of bottle green seen through glass: the accent is the fill, the bevel and the
   sheen sit on top of it, so it reads as the same material as the nav. */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--accent) 92%, transparent); color: var(--accent-ink); text-decoration: none; font-weight: 700; font-size: 17px; padding: 8px 8px 8px 24px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .45), inset 0 -1px 0 rgb(0 0 0 / .12), inset 0 0 0 1px rgb(255 255 255 / .22), 0 2px 6px -2px rgb(var(--g-shade) / .2), 0 14px 30px -14px rgb(var(--g-shade) / .45); transition: transform .3s var(--spring), box-shadow .3s var(--ease), background-color .2s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; background: radial-gradient(120% 100% at var(--sx, 30%) -20%, rgb(255 255 255 / .34), rgb(255 255 255 / 0) 62%); }
.btn > * { position: relative; z-index: 2; }
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(.97); }
.btn-icon { width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--accent-ink) 18%, transparent); display: grid; place-items: center; transition: transform .45s var(--ease); }
.btn-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-icon { transform: translateY(2px) scale(1.06); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-light { background: var(--band-ink); color: var(--band); }
.btn-light .btn-icon { background: color-mix(in srgb, var(--band) 12%, transparent); }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--pop); }
@media (pointer: coarse) {
  .link, .foot nav a, .crumbs a, .nav-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .card-actions { gap: 14px; }
}

/* Announcement strip */
.strip { background: var(--strip); color: var(--strip-ink); text-align: center; font-size: 14px; font-weight: 600; padding: 9px 16px; }

/* Floating pill nav (sticky, so blur is allowed here) */
.nav-wrap { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; padding: 14px 16px 0; }
.nav-wrap::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 92px; z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  -webkit-mask: linear-gradient(#000 42%, transparent);
  mask: linear-gradient(#000 42%, transparent);
}
@media (prefers-reduced-transparency: reduce) { .nav-wrap::before { display: none; } }
.nav { max-width: 1140px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 8px 8px 18px; border-radius: 999px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15.5px; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 820px) {
  .nav-links a:not(.nav-keep) { display: none; }
  .nav-links { gap: 0; }
}

/* Hero */
.hero { width: 100%; max-width: 1180px; margin-inline: auto; padding: clamp(28px, 4vw, 56px) 20px 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 70px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 13ch; }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-art { margin: 0; position: relative; }
.bezel { position: relative; padding: 8px; border-radius: calc(var(--r-frame) + 8px); background: rgb(var(--g-tint) / calc(var(--g-thin) * .8)); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / var(--g-spec)), inset 0 0 0 1px rgb(255 255 255 / var(--g-rim)), 0 30px 60px -30px rgb(var(--g-shade) / .45); }
.bezel img { width: 100%; height: min(66vh, 580px); min-height: 360px; object-fit: cover; border-radius: var(--r-frame); }
.hero-art .deco { position: absolute; top: -18px; right: 22px; font-size: 54px; line-height: 1; color: var(--pop); text-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.chip { position: absolute; left: -28px; bottom: 34px; display: grid; gap: 2px; color: var(--ink); padding: 14px 22px; border-radius: 22px; max-width: 78%; }
.chip-name { font-size: 14px; color: var(--muted); font-weight: 600; }
.chip-price { font-size: 14px; font-weight: 600; }
.chip-price b { font-family: var(--display); font-size: 28px; font-weight: 800; margin-right: 6px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; width: 100%; justify-self: center; }
  .chip { left: 12px; bottom: 18px; }
}

/* Ticker: the one marquee on the page */
.ticker { overflow: hidden; background: rgb(var(--g-tint) / var(--g-reg)); -webkit-backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06); backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / var(--g-spec)), inset 0 -1px 0 rgb(255 255 255 / var(--g-spec-low)); }
@media (prefers-reduced-transparency: reduce) { .ticker { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.ticker-track { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker ul { list-style: none; margin: 0; padding: 16px 0; display: flex; }
.ticker li { font-family: var(--display); font-weight: 700; font-size: 19px; padding-inline: 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 28px; }
.ticker li::after { content: ""; width: 9px; height: 9px; background: var(--pop); transform: rotate(45deg); border-radius: 2px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Section heads */
.sec-head { display: grid; gap: 12px; max-width: 640px; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 18px; }

/* Product grid (rendered from the Sheet) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { border-radius: var(--r-frame); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: transform .5s var(--spring-soft), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / var(--g-spec)), inset 0 -1px 0 rgb(255 255 255 / var(--g-spec-low)), inset 0 0 0 1px rgb(255 255 255 / var(--g-rim)), 0 4px 10px -3px rgb(var(--g-shade) / .16), 0 28px 60px -20px rgb(var(--g-shade) / .42); }
.card .photo { aspect-ratio: 1 / 1; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-fallback { padding: 24px; text-align: center; color: var(--muted); font-family: var(--display); font-size: 22px; font-weight: 700; }
.card .info { padding: 22px 22px 24px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 23px; font-weight: 800; }
.card .pitch { color: var(--muted); }
.details { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.details li { font-size: 13.5px; background: rgb(var(--g-tint) / var(--g-thin)); box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(var(--g-spec) * .7)), inset 0 0 0 1px rgb(255 255 255 / calc(var(--g-rim) * .8)); border-radius: 999px; padding: 4px 11px; color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price strong { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.compare { color: var(--muted); font-size: 15px; }
.buy { margin-top: 6px; width: 100%; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16.5px; padding: 15px 18px; cursor: pointer; transition: transform .3s var(--ease), filter .2s; }
.buy:hover { filter: brightness(1.07); }
.buy:active { transform: scale(.98); }
.buy:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
@media (min-width: 760px) {
  .card.featured { grid-column: span 2; grid-template-rows: none; grid-template-columns: 1.1fr 1fr; }
  .card.featured .photo { aspect-ratio: auto; min-height: 100%; }
  .card.featured .info { padding: 36px; align-content: center; }
  .card.featured h3 { font-size: 34px; }
}

/* Problem bento: one tall tile plus two stacked */
.jobs h2 { max-width: 16ch; margin-bottom: 36px; }
.bento { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.tile { position: relative; border-radius: var(--r-frame); overflow: hidden; background: var(--soft); min-height: 300px; display: grid; }
.tile-tall { grid-row: span 2; min-height: 560px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-text { align-self: end; margin: 10px; padding: 18px 20px; border-radius: calc(var(--r-frame) - 10px); display: grid; gap: 6px; max-width: 420px; }
.tile h3 { font-size: 22px; font-weight: 800; }
.tile p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
  .tile-tall { grid-row: auto; min-height: 380px; }
}

/* Why it costs less */
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.why-copy { display: grid; gap: 18px; }
.why-copy p { color: var(--muted); font-size: 18px; max-width: 54ch; }
.why-copy .why-note { color: var(--ink); font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.why-copy .why-note::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--pop); }
.compare-card { border-radius: var(--r-frame); padding: 30px 30px 26px; display: grid; gap: 14px; }
.cc-name { font-weight: 700; color: var(--muted); }
.cc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.cc-row span { font-weight: 600; }
.cc-row s { font-family: var(--display); font-size: 30px; color: var(--muted); font-weight: 700; }
.cc-ours { border-bottom: 0; padding-bottom: 0; }
.cc-ours b { font-family: var(--display); font-size: 54px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.cc-save { justify-self: start; background: var(--pop); color: var(--pop-ink); font-weight: 700; padding: 7px 14px; border-radius: 999px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; } }

/* How it works: a real sequence, so it's numbered */
.how h2 { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: counter(step); width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 24px; margin-bottom: 10px; box-shadow: 0 0 0 8px color-mix(in srgb, var(--bg) 80%, transparent), inset 0 1.5px 0 rgb(255 255 255 / .4); }
.steps b { font-family: var(--display); font-size: 22px; font-weight: 800; }
.steps span { color: var(--muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--accent); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 60ch; }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } }

/* Closing band */
.final { background: var(--band); color: var(--band-ink); border-radius: calc(var(--r-frame) + 8px); padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; max-width: 1140px; }
.final h2 { font-size: clamp(32px, 5vw, 56px); max-width: 14ch; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 32px 44px; border-top: 1px solid var(--line); font-size: 15px; }
.foot .logo { font-size: 19px; }
.foot .contact { color: var(--muted); margin-top: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot nav a { color: var(--muted); }

/* One orchestrated load moment for the hero, and a light reveal for sections */
@media (prefers-reduced-motion: no-preference) {

  .motion-lite .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .motion-lite .reveal.in { opacity: 1; transform: none; }
  .motion .reveal, .motion #grid .card { opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}

/* Checkout dialog: bottom sheet on phones, centred card on wider screens */
dialog { border: 0; padding: 0; color: var(--ink); width: min(520px, 100%); max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; }
/* A modal task dims and pushes the page back, so the sheet is clearly the only thing in play. */
dialog::backdrop { background: rgb(10 22 18 / .42); -webkit-backdrop-filter: blur(6px) saturate(130%); backdrop-filter: blur(6px) saturate(130%); }
@media (max-width: 560px) {
  dialog { margin: auto 0 0; max-width: 100%; border-radius: var(--r-frame) var(--r-frame) 0 0; }
}
#ck-form, .ck-done { padding: 22px 22px calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; }
.ck-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ck-kicker { font-size: 14px; color: var(--muted); font-weight: 600; }
#ck-product { font-size: 24px; font-weight: 800; }
.ck-x { border: 0; background: var(--soft); width: 38px; height: 38px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex: none; }
.ck-qty-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-block: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: rgb(var(--g-tint) / calc(var(--g-thin) * .8)); box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(var(--g-spec) * .7)), inset 0 0 0 1px rgb(255 255 255 / calc(var(--g-rim) * .9)); }
.stepper button { border: 0; background: none; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 28px; text-align: center; font-weight: 700; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
legend { font-weight: 700; margin-bottom: 6px; padding: 0; font-family: var(--display); font-size: 18px; }
label { font-size: 14.5px; font-weight: 600; margin-top: 8px; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; border: 0; border-radius: var(--r-input); background: rgb(var(--g-tint) / calc(var(--g-thin) * .8)); box-shadow: inset 0 1px 2px rgb(var(--g-shade) / .14), inset 0 0 0 1px rgb(255 255 255 / calc(var(--g-rim) * .9)); padding: 12px 13px; font-size: 16px; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.err { color: var(--error); font-size: 13.5px; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > div { display: grid; gap: 4px; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cod { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; border: 2px solid var(--accent); background: var(--soft); border-radius: 16px; padding: 12px 14px; }
.cod .radio { width: 20px; height: 20px; border-radius: 50%; border: 6px solid var(--accent); background: var(--surface); }
.cod span { display: block; color: var(--muted); font-size: 14px; }
.ck-error { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); border-radius: var(--r-input); padding: 10px 12px; font-size: 14.5px; font-weight: 700; }
.ck-submit { border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; padding: 16px; cursor: pointer; width: 100%; transition: transform .3s var(--ease); }
.ck-submit:active { transform: scale(.98); }
.ck-submit:disabled { opacity: .7; cursor: progress; }
.ck-fine { color: var(--muted); font-size: 13.5px; text-align: center; }
.ck-done { text-align: center; justify-items: center; padding-block: 36px; }
.ck-done h2 { font-size: 30px; }
.tick { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--soft); }
.tick svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Policy pages */
.policy-top { max-width: 760px; margin-inline: auto; padding: 22px 20px 0; }
.policy { max-width: 760px; padding-block: 28px 80px; display: grid; gap: 18px; }
.policy h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; }
.policy h2 { font-size: 22px; font-weight: 800; margin-top: 12px; }
.policy ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.policy .updated { color: var(--muted); font-size: 14.5px; }
.placeholder { background: #FFE1C2; color: #7A3B00; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- Rev 3 ---------- */

/* Cart button in the nav */
.cart-btn { position: relative; isolation: isolate; width: 46px; height: 46px; border-radius: 50%; border: 0; background: color-mix(in srgb, var(--accent) 92%, transparent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: inset 0 1.5px 0 rgb(255 255 255 / .42), inset 0 0 0 1px rgb(255 255 255 / .2), 0 6px 16px -6px rgb(var(--g-shade) / .5); transition: transform .3s var(--spring); }
.cart-btn:active { transform: scale(.93); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.cart-count[hidden] { display: none; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pop); color: var(--pop-ink); font-size: 12.5px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

/* Card actions */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .photo { display: grid; }
.card-actions { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.card-actions .buy { width: auto; flex: 1; margin-top: 0; }

/* Cart drawer */
dialog.drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(440px, 100%); border-radius: 28px 0 0 28px; display: none; flex-direction: column; padding: 0; overflow: hidden; }
/* Materialise rather than fade: the scale and the blur arrive together, so it reads as a pane of
   glass arriving rather than a rectangle turning opaque. */
dialog.drawer[open] { display: flex; animation: drawer-in .5s var(--spring); }
@keyframes drawer-in { from { transform: translateX(100%) scale(.96); } }
@media (prefers-reduced-motion: reduce) { dialog.drawer[open] { animation: none; } }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 22px 14px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 26px; font-weight: 800; }
.dr-note { margin: 14px 22px 0; background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }
.dr-lines { list-style: none; margin: 0; padding: 8px 22px; overflow-y: auto; overscroll-behavior: contain; flex: 1; display: grid; align-content: start; }
.dr-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: start; }
.dr-thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--soft); display: block; }
.dr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dr-info { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.dr-name { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.3; }
.dr-price { color: var(--muted); font-size: 14px; }
.dr-info .stepper button { width: 34px; height: 34px; font-size: 18px; }
.dr-right { display: grid; justify-items: end; gap: 8px; }
.dr-right b { font-family: var(--display); font-size: 20px; }
.dr-remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 0; }
.dr-empty { padding: 40px 22px; display: grid; gap: 10px; justify-items: start; flex: 1; align-content: start; }
.dr-foot { padding: 18px 22px calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgb(255 255 255 / calc(var(--g-rim) * .7)); display: grid; gap: 10px; background: rgb(var(--g-tint) / calc(var(--g-thin) * .7)); }
.dr-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; }
.dr-total b { font-family: var(--display); font-size: 30px; }
.dr-fine { color: var(--muted); font-size: 14px; }
.btn-block { width: 100%; justify-content: space-between; }
/* On a phone the drawer fills the screen, so it has to be flush left. Leaving margin-left: auto
   on a full-width box over-constrains it against the scrollbar: Chrome honours the auto margin,
   pushes the sheet past the right edge and the whole page gains horizontal scroll. */
@media (max-width: 560px) { dialog.drawer { width: 100%; margin-left: 0; border-radius: 0; } }

/* Checkout summary */
.ck-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15.5px; }
.ck-lines li { display: flex; justify-content: space-between; gap: 12px; }
.ck-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-block: 1px solid var(--line); font-weight: 600; }
.ck-sum b { font-family: var(--display); font-size: 26px; }
.demo-note { background: var(--pop); color: var(--pop-ink); border-radius: 12px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.ck-done .btn { justify-content: center; }
.ck-done .link { background: none; border: 0; cursor: pointer; font-size: 16px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); background: color-mix(in srgb, var(--ink) 82%, transparent); -webkit-backdrop-filter: blur(var(--blur-reg)) saturate(180%); backdrop-filter: blur(var(--blur-reg)) saturate(180%); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; z-index: 40; box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 16px 40px -16px rgb(0 0 0 / .6); transition: transform .45s var(--spring); max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Hero headline mask for the reveal */
.h1-mask { overflow: hidden; padding-bottom: .06em; }

/* Logo intro (first visit per session). Pure CSS so it can never block the page. */
.intro { display: none; }
html.intro-on .intro { display: grid; position: fixed; inset: 0; z-index: 60; background: #1E5C45; place-content: center; justify-items: center; gap: 18px; animation: intro-lift .8s cubic-bezier(.76,0,.24,1) 1.35s forwards; }
html.intro-on body { overflow: hidden; }
.intro-mark { width: 104px; height: 104px; overflow: visible; }
.intro-house { fill: none; stroke: #F7F8F4; stroke-width: 3.2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: intro-draw .9s cubic-bezier(.65,0,.35,1) .1s forwards; }
.intro-spark { fill: #F2CF4A; transform-origin: 33.5px 11.6px; transform: scale(0) rotate(-90deg); animation: intro-spark .6s cubic-bezier(.34,1.56,.64,1) .75s forwards; }
.intro-word { display: flex; font-family: var(--display); font-weight: 800; font-size: 44px; letter-spacing: -0.02em; color: #F7F8F4; overflow: hidden; }
.intro-word span { display: inline-block; transform: translateY(110%); animation: intro-letter .6s var(--ease) forwards; }
.intro-word span:nth-child(1) { animation-delay: .55s; } .intro-word span:nth-child(2) { animation-delay: .59s; } .intro-word span:nth-child(3) { animation-delay: .63s; }
.intro-word span:nth-child(4) { animation-delay: .67s; } .intro-word span:nth-child(6) { animation-delay: .75s; } .intro-word span:nth-child(7) { animation-delay: .79s; }
.intro-word span:nth-child(8) { animation-delay: .83s; } .intro-word span:nth-child(9) { animation-delay: .87s; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-spark { to { transform: scale(1) rotate(0deg); } }
@keyframes intro-letter { to { transform: none; } }
@keyframes intro-lift { to { transform: translateY(-100%); visibility: hidden; } }

/* Story: sticky picture, steps scroll past */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-visual { position: sticky; top: 110px; }
.story-frame { position: relative; aspect-ratio: 4 / 5; border-radius: calc(var(--r-frame) + 8px); overflow: hidden; background: var(--soft); box-shadow: var(--shadow); }
.story-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.story-pic.on { opacity: 1; transform: none; }
.story-text h2 { margin-bottom: 8px; }
.story-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.story-step { counter-increment: s; min-height: 52vh; display: grid; align-content: center; gap: 10px; border-left: 3px solid var(--line); padding-left: 28px; transition: border-color .4s; }
.story-step::before { content: counter(s); font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--line); transition: color .4s; }
.story-step b { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 800; color: var(--muted); transition: color .4s; }
.story-step span { color: var(--muted); max-width: 40ch; font-size: 18px; }
.story-step.on { border-color: var(--accent); }
.story-step.on::before { color: var(--pop); }
.story-step.on b { color: var(--ink); }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; }
  .story-visual { position: relative; top: 0; }
  .story-step { min-height: 0; padding-block: 18px; }
}

/* Film */
.film-frame { position: relative; border-radius: calc(var(--r-frame) + 8px); overflow: hidden; background: #14261F; box-shadow: var(--shadow); aspect-ratio: 16 / 9; }
.film-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-toggle { position: absolute; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--spring); }
.film-toggle:active { transform: scale(.93); }
.film-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.film-toggle[data-state="playing"] .i-play, .film-toggle[data-state="paused"] .i-pause { display: none; }

/* Product page */
.pdp { padding-block: 24px 40px; display: grid; gap: 64px; }
.crumbs { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.crumbs a { color: var(--muted); }
.pd-loading { color: var(--muted); padding: 60px 0; }
.pd-missing { display: grid; gap: 16px; justify-items: start; padding: 40px 0; }
.pd-missing h1 { font-size: clamp(32px, 5vw, 52px); }
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-gallery { position: sticky; top: 100px; display: grid; gap: 12px; }
.pd-main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r-frame); }
.pd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-thumb { width: 72px; height: 72px; padding: 0; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--soft); cursor: pointer; }
.pd-thumb.on { border-color: var(--accent); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-info { display: grid; gap: 16px; align-content: start; }
.pd-info h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.025em; }
.pd-pitch { color: var(--muted); font-size: 19px; max-width: 44ch; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.pd-buy .stepper button { width: 46px; height: 46px; }
.pd-promises { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-promises li { background: rgb(var(--g-tint) / var(--g-thin)); box-shadow: inset 0 1px 0 rgb(255 255 255 / calc(var(--g-spec) * .7)), inset 0 0 0 1px rgb(255 255 255 / calc(var(--g-rim) * .8)); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.pd-sections { display: grid; gap: 10px; margin-top: 6px; }
.pd-sections details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 20px; }
.pd-sections summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; padding: 18px 0; font-weight: 700; }
.pd-sections summary::-webkit-details-marker { display: none; }
.pd-sections summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; color: var(--accent); transition: transform .35s var(--ease); }
.pd-sections details[open] summary::after { transform: rotate(45deg); }
.pd-sections ul, .pd-sections ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.pd-sections p { margin-bottom: 18px; color: var(--muted); }
.share { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; justify-self: start; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); }
.share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.more h2 { margin-bottom: 24px; font-size: clamp(26px, 3.4vw, 36px); }
#pd-more-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mini { display: grid; gap: 8px; text-decoration: none; color: var(--ink); }
.mini-photo { aspect-ratio: 1 / 1; border-radius: var(--r-frame); overflow: hidden; background: var(--soft); display: block; }
.mini-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.mini:hover img { transform: scale(1.05); }
.mini-name { font-weight: 700; }
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; }
  .pd-gallery { position: relative; top: 0; }
}

/* Tracking page */
.track { padding-block: 32px 40px; display: grid; gap: 18px; max-width: 760px; }
.track h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.track-sub { color: var(--muted); font-size: 18px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); padding: 20px; }
.track-form > div { display: grid; gap: 6px; min-width: 0; }
.track-form .btn { padding: 12px 22px; }
@media (max-width: 680px) { .track-form { grid-template-columns: 1fr; } .track-form .btn { justify-content: center; } }
.tr-result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-frame); padding: 24px; display: grid; gap: 18px; box-shadow: var(--shadow); }
.tr-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.tr-head h2 { font-size: 30px; }
.tr-head span { color: var(--muted); }
.tr-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tr-steps li { display: grid; justify-items: center; gap: 8px; text-align: center; font-weight: 600; font-size: 14.5px; color: var(--muted); position: relative; }
.tr-steps li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tr-steps li:first-child::before { display: none; }
.tr-steps .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); position: relative; z-index: 1; }
.tr-steps li.done, .tr-steps li.now { color: var(--ink); }
.tr-steps li.done::before, .tr-steps li.now::before { background: var(--accent); }
.tr-steps li.done .dot { background: var(--accent); border-color: var(--accent); }
.tr-steps li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--pop) 55%, transparent); background: var(--pop); }
.tr-note { background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.tr-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tr-items li, .tr-total { display: flex; justify-content: space-between; gap: 12px; }
.tr-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; }
.tr-total b { font-family: var(--display); font-size: 24px; }
.tr-result .btn { justify-self: start; padding: 12px 22px; }
.tr-help { color: var(--muted); font-size: 15px; }

/* Lenis smooth scrolling (src/smooth.js). */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }

/* Smooth page-to-page transitions where the browser supports them */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html.intro-on .intro { display: none; }
  .story-pic { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Colour-block band: full-bleed photo with a card */
.band { position: relative; min-height: clamp(420px, 56vw, 720px); display: grid; align-items: end; overflow: hidden; }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-card { margin: 0 0 clamp(20px, 4vw, 48px) clamp(16px, 5vw, 72px); border-radius: var(--r-frame); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; justify-items: start; max-width: 440px; }
.band-card h2 { font-size: clamp(28px, 3.6vw, 44px); }
@media (max-width: 560px) { .band { min-height: 0; aspect-ratio: auto; display: block; } .band picture, .band img { position: relative; height: auto; aspect-ratio: 16 / 10; } .band-card { margin: -40px 16px 0; } }

/* Closing band gets the cinematic photo behind it */
.final { position: relative; overflow: hidden; isolation: isolate; min-height: 360px; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--band) 30%, color-mix(in srgb, var(--band) 35%, transparent)), url("../assets/images/dark-1600.webp") right center / cover no-repeat; }

/* Mobile buy bar: on phones the buy action follows you down the page (src/buybar.js) */
.buybar { display: none; }
@media (max-width: 760px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; align-items: center; gap: 14px; padding: 11px 16px calc(11px + env(safe-area-inset-bottom, 0px)); background: rgb(var(--g-tint) / var(--g-reg)); -webkit-backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06); backdrop-filter: blur(var(--blur-reg)) saturate(185%) brightness(1.06); box-shadow: inset 0 1.5px 0 rgb(255 255 255 / var(--g-spec)), inset 0 0 0 1px rgb(255 255 255 / calc(var(--g-rim) * .8)), 0 -18px 40px -22px rgb(var(--g-shade) / .5); transform: translateY(calc(100% + 10px)); visibility: hidden; transition: transform .45s var(--spring), visibility .45s; }
  .buybar.on { transform: none; visibility: visible; }
  .bb-info { flex: 1 1 auto; min-width: 0; display: grid; }
  .bb-label { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-price { font-family: var(--display); font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
  .bb-go { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16.5px; padding: 14px 22px; cursor: pointer; transition: transform .3s var(--ease); }
  .bb-go:active { transform: scale(.97); }
  .bb-go:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
  html.buybar-on body { padding-bottom: 78px; }
  html.buybar-on .toast { bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
}
