/* ============================================================
   AquaHydra — glass
   Frosted surfaces floating on soft blue/cyan water.
   Light by default; dark via OS or the header toggle.
   The logo is never showcased: it sits in the water and is
   seen through the glass.
   ============================================================ */

:root {
  /* light (default) */
  --bg: #edf2fb;
  --text: #0b1220;
  --muted: #45526a;
  --line: rgba(15, 30, 70, .10);
  --primary: #1f5bef;
  --primary-hover: #1a4fd6;
  --on-primary: #ffffff;
  --accent-text: #1d4ed8;
  --focus: #1f5bef;
  --error: #c62828;

  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .80);
  --glass-solid: #f8faff;
  --glass-border: rgba(255, 255, 255, .78);
  --glass-edge: rgba(15, 30, 70, .07);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .9);
  --glass-shadow: 0 10px 40px rgba(31, 60, 140, .10);
  --chip: rgba(255, 255, 255, .6);

  --field-1: rgba(31, 91, 239, .30);
  --field-2: rgba(18, 214, 228, .26);
  --field-3: rgba(99, 102, 241, .18);
  --scrim: rgba(11, 18, 32, .30);

  --art-stroke: #0b1220;
  --art-fill: rgba(255, 255, 255, .85);
  --art-water: rgba(31, 91, 239, .18);
  --art-bubble: #1f5bef;
  --art-well: rgba(255, 255, 255, .55);

  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --blur: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 64px;
  --radius-lg: 32px;
  --radius-md: 24px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04060b;
    --text: #e8edf6;
    --muted: #9aa6bd;
    --line: rgba(255, 255, 255, .08);
    --primary: #5b93ff;
    --primary-hover: #7aa8ff;
    --on-primary: #04060b;
    --accent-text: #7fb0ff;
    --focus: #7fb0ff;
    --error: #ff8a78;
    --glass: rgba(18, 26, 44, .46);
    --glass-strong: rgba(12, 17, 29, .86);
    --glass-solid: #0d1424;
    --glass-border: rgba(255, 255, 255, .10);
    --glass-edge: rgba(0, 0, 0, .35);
    --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .07);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    --chip: rgba(255, 255, 255, .06);
    --field-1: rgba(31, 91, 239, .34);
    --field-2: rgba(18, 214, 228, .16);
    --field-3: rgba(99, 102, 241, .20);
    --scrim: rgba(0, 0, 0, .55);
    --art-stroke: #c9d8f2;
    --art-fill: rgba(12, 20, 38, .7);
    --art-water: rgba(91, 147, 255, .28);
    --art-bubble: #7fb0ff;
    --art-well: rgba(255, 255, 255, .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #04060b;
  --text: #e8edf6;
  --muted: #9aa6bd;
  --line: rgba(255, 255, 255, .08);
  --primary: #5b93ff;
  --primary-hover: #7aa8ff;
  --on-primary: #04060b;
  --accent-text: #7fb0ff;
  --focus: #7fb0ff;
  --error: #ff8a78;
  --glass: rgba(18, 26, 44, .46);
  --glass-strong: rgba(12, 17, 29, .86);
  --glass-solid: #0d1424;
  --glass-border: rgba(255, 255, 255, .10);
  --glass-edge: rgba(0, 0, 0, .35);
  --glass-shine: inset 0 1px 0 rgba(255, 255, 255, .07);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --chip: rgba(255, 255, 255, .06);
  --field-1: rgba(31, 91, 239, .34);
  --field-2: rgba(18, 214, 228, .16);
  --field-3: rgba(99, 102, 241, .20);
  --scrim: rgba(0, 0, 0, .55);
  --art-stroke: #c9d8f2;
  --art-fill: rgba(12, 20, 38, .7);
  --art-water: rgba(91, 147, 255, .28);
  --art-bubble: #7fb0ff;
  --art-well: rgba(255, 255, 255, .04);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.025em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main, .footer { position: relative; z-index: 1; }

/* ---------- The water behind the glass ---------- */
.field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42vw 42vw at 88% 8%, var(--field-1), transparent 70%),
    radial-gradient(38vw 38vw at 6% 38%, var(--field-2), transparent 70%),
    radial-gradient(46vw 46vw at 70% 78%, var(--field-3), transparent 70%),
    radial-gradient(30vw 30vw at 20% 100%, var(--field-1), transparent 70%);
}

/* ---------- Glass ---------- */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
  backdrop-filter: blur(var(--blur)) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shine), 0 0 0 1px var(--glass-edge), var(--glass-shadow);
}
/* No blur support, or the visitor asked for less transparency: solid surfaces, same layout */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .cart, .toast { background: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .cart, .toast { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Brand (quiet, never showcased) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: auto; }
.brand__word { width: 132px; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 20px rgba(31, 91, 239, .28); }
.btn--glass {
  background: var(--chip); color: var(--text); border-color: var(--glass-border);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px var(--glass-edge);
}
.btn--block { width: 100%; }
.btn:active, .cart-btn:active, .icon-btn:active, .qty button:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--primary-hover); }
  .btn--glass:hover { border-color: var(--primary); }
  .nav__links a:hover { color: var(--text); background: var(--chip); }
  .cart-btn:hover { border-color: var(--primary); }
  .icon-btn:hover { background: var(--chip); }
  .qty button:hover { background: var(--chip); }
  .footer__cols a:hover { color: var(--accent-text); }
  summary:hover { color: var(--accent-text); }
}

/* ---------- Floating glass nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; padding: 12px var(--gutter) 0; }
.nav__inner {
  max-width: calc(var(--wrap) - 2 * 24px); margin: 0 auto;
  height: var(--nav-h); padding: 0 10px 0 20px;
  display: flex; align-items: center; gap: 24px;
  border-radius: 999px;
}
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a {
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  transition: color 150ms ease, background-color 150ms ease;
}
.nav__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--text);
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.theme-btn svg { grid-area: 1 / 1; transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.theme-btn__sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
.theme-btn__moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn__moon { opacity: 0; transform: rotate(60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn__sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn__moon { opacity: 0; transform: rotate(60deg) scale(.6); }
}
@media (prefers-reduced-motion: reduce) { .theme-btn svg { transition: opacity 150ms ease; } }

.cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px 0 14px;
  background: var(--chip); color: var(--text);
  border: 1px solid var(--glass-border); border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font-size: .8rem; font-weight: 600; display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Hero: glass card over the ribbon ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
/* The ribbon sits beside the card, never behind glass: crisp, no glow, no motion.
   It blends through colour: the water field behind it uses the ribbon's own blue and cyan. */
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero__ring {
  grid-column: 2; grid-row: 1;
  width: 118%; max-width: 440px; height: auto; justify-self: center;
  pointer-events: none;
}
.hero__card {
  grid-column: 1; grid-row: 1;
  max-width: 740px;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
}
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 16ch; }
.hero__lede { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts li {
  padding: 10px 16px; border-radius: 18px;
  background: var(--chip); border: 1px solid var(--glass-border);
  color: var(--muted); font-size: .9rem; line-height: 1.35;
}
.hero__facts strong { color: var(--text); font-weight: 600; display: block; }

/* Hero entrance: the headline arrives word by word, then the rest follows.
   The logo itself never animates. */
.hero__title .w { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .hero__title .w {
    opacity: 0; transform: translateY(.35em); filter: blur(6px);
    animation: wordIn 700ms var(--ease-out) forwards;
    animation-delay: calc(80ms + var(--i) * 55ms);
  }
  .hero__in {
    opacity: 0; transform: translateY(10px);
    animation: enter 600ms var(--ease-out) forwards;
    animation-delay: calc(480ms + var(--i) * 80ms);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__title .w, .hero__in { animation: fade 300ms ease both; }
}
@keyframes wordIn { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes enter { to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 14px; color: var(--muted); }
.section-head--left { margin-left: 0; text-align: left; }
.section-head a { color: var(--accent-text); font-weight: 500; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  display: grid; grid-template-columns: 148px 1fr; grid-template-rows: auto 1fr auto; gap: 0 24px;
  padding: 24px; border-radius: var(--radius-md);
}
.product__art {
  grid-row: 1 / 3; aspect-ratio: 1; border-radius: 18px;
  background: var(--art-well); border: 1px solid var(--glass-border);
  display: grid; place-items: center; padding: 14px;
}
.product__art svg { width: 100%; height: 100%; }
.product__use { color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.product__name { font-size: 1.4rem; margin-top: 2px; }
.product__desc { margin-top: 8px; color: var(--muted); font-size: 1rem; }
.product__specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.product__specs li {
  padding: 4px 10px; border-radius: 999px;
  background: var(--chip); border: 1px solid var(--glass-border);
  color: var(--text); font-size: .825rem; font-weight: 500;
}
.product__buy {
  grid-column: 1 / -1; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.product__price { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.product__price small { display: block; font-family: var(--body); font-size: .825rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.art-line { fill: none; stroke: var(--art-stroke); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-fill { fill: var(--art-fill); stroke: var(--art-stroke); stroke-width: 2.4; stroke-linejoin: round; }
.art-water { fill: var(--art-water); }
.art-cyan { fill: #12d6e4; }
.art-bubble { fill: none; stroke: var(--art-bubble); stroke-width: 1.6; }

/* ---------- How it works ---------- */
.how__panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg);
}
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--chip); border: 1px solid var(--glass-border); color: var(--accent-text);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: .95rem;
}
.steps h3 { font-family: var(--body); font-weight: 600; font-size: 1.1rem; line-height: 1.3; padding-top: 6px; letter-spacing: 0; }
.steps p { color: var(--muted); margin-top: 4px; }

/* the diagram sits in a pane of smoked glass so its light lines read in both themes */
.cell {
  margin: 0; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-md);
  background: rgba(5, 9, 18, .82); border: 1px solid rgba(255, 255, 255, .08);
}
.cell svg { width: 100%; height: auto; }
.cell__water { fill: rgba(31, 91, 239, .2); }
.cell__glass { fill: none; stroke: #a9b8d0; stroke-width: 2; }
.cell__h2 circle { fill: none; stroke: #7fb0ff; stroke-width: 1.6; }
.cell__o2 circle { fill: none; stroke: #a9b8d0; stroke-width: 1.4; opacity: .6; }
.cell__cathode, .cell__anode { fill: #4a5d80; }
.cell__membrane { fill: #3e7bff; }
.cell__lower { fill: rgba(169, 184, 208, .08); stroke: rgba(169, 184, 208, .4); stroke-width: 1.5; }
.cell__vent { fill: none; stroke: #a9b8d0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cell__label { fill: #fff; font: 500 14px var(--body); }
.cell__side { fill: #a9b8d0; font: 500 11px var(--body); }
.cell__side--accent { fill: #7fb0ff; }
@media (prefers-reduced-motion: no-preference) {
  .cell__h2 circle { animation: rise 4s ease-in infinite; }
  .cell__h2 circle:nth-child(3n) { animation-delay: -1.3s; animation-duration: 5s; }
  .cell__h2 circle:nth-child(3n+1) { animation-delay: -2.6s; animation-duration: 3.6s; }
}
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-60px); opacity: 0; } }

/* ---------- Compare ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .975rem; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th, thead td { font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; background: var(--chip); }
tbody th { font-weight: 500; color: var(--muted); width: 22%; }
td.is-yes { color: var(--accent-text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq__list { border-radius: var(--radius-md); padding: 4px 28px; }
details + details { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 20px 0; font-weight: 600; font-size: 1.075rem;
  transition: color 150ms ease;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- Closing call to action ---------- */
.closer { padding-top: 0; }
.closer__card {
  display: grid; justify-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: var(--radius-lg);
}
.closer h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.closer p { color: var(--muted); max-width: 46ch; margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { padding: 0 0 32px; }
.footer__card {
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); color: var(--muted);
}
.footer__brand p { margin-top: 10px; font-size: .95rem; }
.footer__cols { display: flex; gap: 64px; }
.footer__cols h2 { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 10px; letter-spacing: 0; }
.footer__cols a { display: block; text-decoration: none; padding: 4px 0; transition: color 150ms ease; }
.footer__legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: .875rem; }

/* ---------- Cart drawer (frosted, stronger so text stays crisp) ---------- */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; opacity: 0; transition: opacity 200ms ease; }
.scrim.is-open { opacity: 1; transition-duration: 300ms; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100%);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border-left: 1px solid var(--glass-border);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 240ms var(--ease-out), visibility 0s linear 240ms;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .14);
}
.cart.is-open { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .cart, .cart.is-open { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .cart.is-open { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
}
.cart__view:not([hidden]) { animation: viewIn 220ms var(--ease-out); }
@keyframes viewIn { from { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .cart__view:not([hidden]) { animation: fade 200ms ease; } }

.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.25rem; }
.cart__view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cart__items { list-style: none; margin: 0; padding: 8px 24px; overflow-y: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item__art { width: 64px; height: 64px; border-radius: 14px; background: var(--chip); border: 1px solid var(--glass-border); padding: 8px; }
.cart-item__name { font-weight: 600; }
.cart-item__price { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--chip); margin-top: 6px; }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; font-size: 1.1rem; transition: transform 120ms var(--ease-out), background-color 150ms ease; touch-action: manipulation; }
.qty span { min-width: 24px; text-align: center; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.cart-item__line { font-weight: 600; text-align: right; }
.cart-item__remove { display: block; margin-top: 6px; margin-left: auto; border: 0; background: none; color: var(--muted); font-size: .85rem; text-decoration: underline; padding: 4px 0; }
.cart__empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 20px; color: var(--muted); padding: 24px; }
.cart__foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.cart__totals { margin: 0 0 16px; display: grid; gap: 6px; }
.cart__totals div { display: flex; justify-content: space-between; }
.cart__totals dt { color: var(--muted); }
.cart__totals dd { margin: 0; font-weight: 600; }

.checkout { overflow-y: auto; }
.checkout > label, .checkout__row, .checkout > .link-btn, .checkout__error { margin-left: 24px; margin-right: 24px; }
.checkout label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; margin-top: 16px; }
.checkout__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout input, .checkout textarea {
  font: inherit; font-size: 1rem; color: var(--text);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--glass-border); background: var(--chip);
  box-shadow: 0 0 0 1px var(--glass-edge);
  width: 100%; resize: vertical;
}
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.checkout [aria-invalid="true"] { border-color: var(--error); }
.checkout__error { color: var(--error); font-size: .9rem; min-height: 1.4em; margin-top: 12px; margin-bottom: 12px; }
.checkout .cart__foot { margin-top: auto; }
.link-btn { align-self: flex-start; margin-top: 16px; border: 0; background: none; padding: 4px 0; color: var(--accent-text); font-weight: 600; text-decoration: underline; }

.done { align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px; }
.done img { width: 72px; height: auto; opacity: .9; }
.done h3 { font-size: 1.5rem; }
.done p { color: var(--muted); max-width: 34ch; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--glass-strong); color: var(--text);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  padding: 12px 20px; border-radius: 999px; font-weight: 500;
  transition: opacity 180ms ease, transform 180ms var(--ease-out);
  max-width: calc(100% - 32px);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); transition-duration: 300ms; }
@media (prefers-reduced-motion: reduce) { .toast, .toast.is-on { transform: translate(-50%, 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__tools { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__ring { grid-column: 1; grid-row: 1; width: 100%; max-width: 260px; }
  .hero__card { grid-row: 2; }
  .how__panel, .faq__grid { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --blur: 12px; }
  .nav { padding-top: 8px; }
  .nav__inner { padding: 0 6px 0 14px; gap: 8px; }
  .brand__word { width: 104px; }
  .cart-btn__label { display: none; }
  .product { grid-template-columns: 1fr; padding: 20px; }
  .product__art { grid-row: auto; max-width: 150px; margin-bottom: 16px; }
  .product__buy { flex-wrap: wrap; }
  .faq__list { padding: 4px 20px; }
  .footer__cols { gap: 40px; }
}

/* ============================================================
   Motion layer
   - Scroll reveals: small (14px) fade-ups, once, staggered via --d.
     Only hidden when JS runs (html.js), so crawlers see everything.
   - Benefit animations explain one idea each and only play while on screen.
   - Reduced motion: opacity only, illustrations rest on their final frame.
   ============================================================ */

html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 500ms ease var(--d, 0ms), transform 650ms var(--ease-out) var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { transform: none; }
  html.js .reveal.is-in { transition: opacity 300ms ease; }
}

.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; }

/* ---------- Evidence tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--fact { color: var(--accent-text); background: rgba(31, 91, 239, .10); border-color: rgba(31, 91, 239, .22); }
.tag--early { color: #9a5b00; background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .32); }
:root[data-theme="dark"] .tag--early { color: #ffc069; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--early { color: #ffc069; } }

.legend { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; color: var(--muted); font-size: .9rem; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Benefits bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px; border-radius: var(--radius-md); min-width: 0;
}
.benefit--wide { grid-column: span 2; flex-direction: row; align-items: center; }
.benefit--wide .benefit__art { flex: 1.3; }
.benefit--wide .benefit__body { flex: 1; }
.benefit--band { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 32px; }
.benefit__art {
  margin: 0; border-radius: 18px; min-height: 150px;
  background: var(--art-well); border: 1px solid var(--glass-border);
  display: grid; place-items: center; padding: 10px; overflow: hidden;
}
.benefit__art svg { width: 100%; height: auto; max-height: 190px; overflow: visible; }
.benefit__body h3 { font-size: 1.2rem; margin-top: 12px; }
.benefit__body p { color: var(--muted); margin-top: 8px; font-size: .98rem; }
.benefits__note { margin: 28px auto 0; max-width: 70ch; text-align: center; font-size: .875rem; color: var(--muted); }

/* Illustrations only run while their card is on screen (motion.js toggles .is-playing) */
.benefit:not(.is-playing) * { animation-play-state: paused !important; }
.benefit svg * { transform-box: fill-box; }

/* 1. Freshness chart: the curve draws, then the two moments are marked */
.ch-axis { fill: none; stroke: var(--muted); stroke-width: 1.4; opacity: .5; }
.ch-axis-label { fill: var(--muted); font: 500 11px var(--body); }
.ch-line { fill: none; stroke: var(--primary); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ch-dot { fill: var(--primary); stroke: var(--glass-solid); stroke-width: 3; }
.ch-dot--hollow { fill: var(--glass-solid); stroke: var(--primary); stroke-dasharray: 3 3; stroke-width: 2.4; }
.ch-label { fill: var(--text); font: 600 12px var(--body); }
.ch-mark { transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ch-line { animation: draw 1400ms var(--ease-in-out) 200ms both; }
  .ch-mark { animation: markIn 450ms var(--ease-out) both; }
  .ch-mark--a { animation-delay: 700ms; }
  .ch-mark--b { animation-delay: 1500ms; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes markIn { from { opacity: 0; transform: translateY(6px) scale(.94); } to { opacity: 1; transform: none; } }

/* 2. Antioxidant: H₂ meets •OH, a flash, and water is left */
.atom--h { fill: var(--primary); }
.atom--o { fill: #f2994a; }
.radical { fill: #f2994a; }
.mol { fill: var(--text); font: 600 13px var(--body); text-anchor: middle; }
.drop { fill: var(--primary); opacity: .9; }
.ax-flash { fill: #12d6e4; opacity: 0; transform-origin: center; }
.ax-water { opacity: 0; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .ax-h2 { animation: axH2 5s var(--ease-in-out) infinite; }
  .ax-oh { animation: axOH 5s var(--ease-in-out) infinite; }
  .ax-flash { animation: axFlash 5s ease-out infinite; }
  .ax-water { animation: axWater 5s var(--ease-out) infinite; }
}
@media (prefers-reduced-motion: reduce) { .ax-h2, .ax-oh { opacity: .35; } .ax-water { opacity: 1; } }
@keyframes axH2 { 0% { opacity: 0; transform: none; } 8% { opacity: 1; transform: none; } 40% { opacity: 1; transform: translateX(72px); } 46%, 100% { opacity: 0; transform: translateX(72px); } }
@keyframes axOH { 0% { opacity: 0; transform: none; } 8% { opacity: 1; transform: none; } 40% { opacity: 1; transform: translateX(-52px); } 46%, 100% { opacity: 0; transform: translateX(-52px); } }
@keyframes axFlash { 0%, 38% { opacity: 0; transform: scale(.6); } 44% { opacity: .55; transform: scale(1.2); } 56%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes axWater { 0%, 44% { opacity: 0; transform: translateY(6px) scale(.92); } 54%, 86% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }

/* 3. Hydration: the glass fills once, then the surface keeps moving */
.glass-outline { fill: none; stroke: var(--art-stroke); stroke-width: 2.4; stroke-linejoin: round; }
.hy-wave { fill: var(--art-water); }
.hy-b { fill: none; stroke: var(--art-bubble); stroke-width: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .hy-fill { animation: hyFill 1600ms var(--ease-out) 150ms both; }
  .hy-wave { animation: hyWave 2.4s linear infinite; }
  .hy-b { animation: hyBubble 2.8s ease-in infinite; animation-delay: var(--bd, 0s); }
}
@keyframes hyFill { from { transform: translateY(78px); } to { transform: none; } }
@keyframes hyWave { to { transform: translateX(40px); } }
@keyframes hyBubble { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-62px); opacity: 0; } }

/* 4. Smallest molecule: H₂ slips through the membrane, bigger molecules bounce off */
.mb-wall circle { fill: var(--art-stroke); opacity: .22; }
.mb-big circle { fill: #f2994a; opacity: .8; }
.mb-h circle { fill: var(--primary); }
@media (prefers-reduced-motion: no-preference) {
  .mb-h { animation: mbPass 3.6s linear infinite; animation-delay: var(--bd, 0s); }
  .mb-big { animation: mbBounce 3.6s var(--ease-in-out) infinite; animation-delay: var(--bd, 0s); }
}
@keyframes mbPass { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(160px); opacity: 0; } }
@keyframes mbBounce { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(34px); } 55% { transform: translateX(30px); } }

/* 5. Recovery: the battery refills */
.bt-body { fill: none; stroke: var(--art-stroke); stroke-width: 2.4; }
.bt-cap { fill: var(--art-stroke); }
.bt-fill { fill: var(--primary); opacity: .85; transform-origin: left center; }
.bt-bolt { fill: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .bt-fill { animation: btFill 3.2s var(--ease-out) infinite; }
  .bt-bolt { animation: btBolt 3.2s ease infinite; }
}
@keyframes btFill { 0% { transform: scaleX(.12); } 70%, 88% { transform: scaleX(1); } 100% { transform: scaleX(.12); } }
@keyframes btBolt { 0%, 55% { opacity: .5; } 70%, 88% { opacity: 1; } 100% { opacity: .5; } }

/* 6. Zero: odometers roll down to 0 */
.zero { display: flex; gap: clamp(20px, 4vw, 48px); flex: none; }
.zero__item { display: grid; justify-items: center; gap: 4px; }
.odo { display: block; height: 1em; overflow: hidden; font: 600 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--primary); letter-spacing: -0.03em; }
.odo__strip { display: flex; flex-direction: column; transform: translateY(-90%); }
.odo__strip span { display: block; height: 1em; }
.zero__unit { color: var(--muted); font-size: .9rem; font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .odo__strip { animation: odoRoll 1500ms var(--ease-out) both; animation-delay: calc(200ms + var(--od, 0ms)); }
}
@keyframes odoRoll { from { transform: translateY(0); } to { transform: translateY(-90%); } }

/* ---------- Products: staggered in, bubbles rise in the art on hover ---------- */
.products .product:nth-child(2) { --d: 70ms; }
.products .product:nth-child(3) { --d: 140ms; }
.products .product:nth-child(4) { --d: 210ms; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .product .art-bubble { transform-box: fill-box; }
  .product:hover .art-bubble { animation: artRise 1.4s ease-out infinite; }
  .product:hover .art-bubble:nth-of-type(2n) { animation-delay: -.5s; }
  .product:hover .art-bubble:nth-of-type(3n) { animation-delay: -.9s; }
}
@keyframes artRise { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }

/* Add-to-cart confirms in place: the label blurs out, "Added" blurs in */
.btn--add { position: relative; overflow: hidden; }
.btn__a, .btn__b { transition: opacity 200ms ease, transform 250ms var(--ease-out), filter 200ms ease; }
.btn__b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px;
  opacity: 0; transform: translateY(8px); filter: blur(4px);
}
.btn__b svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn--add.is-added .btn__a { opacity: 0; transform: translateY(-8px); filter: blur(4px); }
.btn--add.is-added .btn__b { opacity: 1; transform: none; filter: none; }

/* ---------- How it works: steps light up as you scroll, the diagram follows ---------- */
.how__panel { align-items: start; }
.cell { position: sticky; top: calc(var(--nav-h) + 40px); }
.steps { position: relative; gap: 40px; }
.steps::before {
  content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px;
  background: var(--line); border-radius: 2px;
}
.steps li.steps__bar {
  counter-increment: none; display: block;
  position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
  background: var(--primary); transform-origin: top; transform: scaleY(0);
  transition: transform 500ms var(--ease-out);
}
.steps li.steps__bar::before { content: none; }
.steps li[data-step]::before { position: relative; z-index: 1; background: var(--glass-solid); transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease; }
html.js .steps li[data-step] { opacity: .5; transition: opacity 300ms ease; }
html.js .steps li[data-step].is-active { opacity: 1; }
.steps li[data-step].is-active::before { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

.cell svg * { transition: fill 300ms ease, stroke 300ms ease, opacity 300ms ease; }
.cell[data-step="1"] .cell__water { fill: rgba(31, 91, 239, .38); }
.cell[data-step="2"] .cell__membrane { fill: #12d6e4; }
.cell[data-step="2"] .cell__cathode, .cell[data-step="2"] .cell__anode { fill: #7f95bd; }
.cell[data-step="3"] .cell__lower { stroke: #12d6e4; }
.cell[data-step="3"] .cell__vent { stroke: #12d6e4; }
.cell[data-step="3"] .cell__o2 circle { opacity: 1; }
.cell[data-step="4"] .cell__h2 circle { stroke: #12d6e4; stroke-width: 2.2; }
@media (prefers-reduced-motion: no-preference) {
  .cell[data-step="3"] .cell__o2 circle { animation: o2Out 2.4s ease-in infinite; transform-box: fill-box; }
}
@keyframes o2Out { 0% { transform: translate(0, 0); opacity: .9; } 100% { transform: translate(60px, 0); opacity: 0; } }

/* ---------- FAQ: answers ease in when opened ---------- */
@media (prefers-reduced-motion: no-preference) {
  details[open] > p { animation: faqIn 260ms var(--ease-out); }
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Motion layer: responsive ---------- */
@media (max-width: 1020px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .benefit--wide { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cell { position: static; }
  .steps { gap: 28px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .benefit--wide, .benefit--band { flex-direction: column; align-items: stretch; }
  .zero { justify-content: space-around; }
}

/* ============================================================
   Single product showcase + competitor comparison
   ============================================================ */
.products { grid-template-columns: 1fr; }
.showcase {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(22px, 4vw, 44px); border-radius: var(--radius-lg);
}
.showcase__art {
  border-radius: 24px; background: var(--art-well); border: 1px solid var(--glass-border);
  display: grid; place-items: center; padding: clamp(16px, 3vw, 32px); aspect-ratio: 1;
}
.showcase__art svg { width: 100%; height: 100%; max-width: 420px; overflow: visible; }
.showcase__name { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin-top: 4px; }
.showcase .product__desc { font-size: 1.05rem; max-width: 52ch; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 0; }
.spec-grid div { padding: 12px 14px; border-radius: 16px; background: var(--chip); border: 1px solid var(--glass-border); }
.spec-grid dt { color: var(--muted); font-size: .8rem; font-weight: 500; }
.spec-grid dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; line-height: 1.3; }
.feature-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.showcase .product__buy { margin-top: 24px; }
.showcase .product__price { font-size: 1.8rem; }

/* generator illustration details */
.art-screen { fill: #05070c; }
.art-screen-text { fill: #7fb0ff; font: 600 15px var(--display); }
.art-dot { fill: var(--art-stroke); opacity: .3; }
.art-stream { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 10; opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .showcase.is-playing .art-stream { animation: pour 600ms linear infinite; }
  .showcase.is-playing .art-bubble { transform-box: fill-box; animation: artRise 1.8s ease-out infinite; }
  .showcase.is-playing .art-bubble:nth-of-type(2n) { animation-delay: -.6s; }
  .showcase.is-playing .art-bubble:nth-of-type(3n) { animation-delay: -1.1s; }
}
.showcase:not(.is-playing) * { animation-play-state: paused; }
@keyframes pour { to { stroke-dashoffset: -18; } }

/* price bars: true to scale, they grow in when revealed */
.price-bars { display: grid; gap: 14px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-md); margin-bottom: 20px; }
.pbar { display: grid; grid-template-columns: minmax(150px, 260px) 1fr auto; gap: 16px; align-items: center; }
.pbar__name { font-weight: 500; color: var(--muted); }
.pbar--ours .pbar__name { color: var(--text); font-weight: 600; }
.pbar__track { height: 14px; border-radius: 999px; background: var(--chip); border: 1px solid var(--glass-border); overflow: hidden; }
.pbar__fill {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: var(--muted); opacity: .45;
  transform-origin: left; transform: scaleX(var(--w));
}
.pbar--ours .pbar__fill { background: var(--primary); opacity: 1; }
.pbar__value { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 9ch; text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  html.js .price-bars:not(.is-in) .pbar__fill { transform: scaleX(0); }
  html.js .price-bars.is-in .pbar__fill { transition: transform 1100ms var(--ease-out) calc(250ms + var(--d, 0ms)); }
}

/* comparison table: our column is highlighted, missing info is muted */
.compare th.is-ours, .compare td.is-ours { background: rgba(31, 91, 239, .08); }
.compare thead th.is-ours { color: var(--accent-text); }
.compare td.is-na { color: var(--muted); font-style: italic; }
.compare td small { display: block; color: var(--muted); font-size: .8rem; }
.compare__note { margin-top: 16px; font-size: .85rem; color: var(--muted); max-width: 90ch; }
.compare__note a { color: var(--accent-text); }

@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__art { max-width: 360px; justify-self: center; width: 100%; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pbar { grid-template-columns: 1fr auto; }
  .pbar__track { grid-column: 1 / -1; grid-row: 2; }
}

/* five-way comparison: give the table room and keep the first column readable */
.compare table { min-width: 1080px; }
.compare tbody th { width: 15%; }
.compare th[scope="col"] { min-width: 170px; }

/* ============================================================
   Multi-page: current page in the nav, mobile page tabs, home teasers
   ============================================================ */
.nav__links a[aria-current="page"] { color: var(--text); background: var(--chip); box-shadow: 0 0 0 1px var(--glass-border); }

/* On phones the main links move into a scrollable row of tabs under the header */
.nav__mobile { display: none; }
@media (max-width: 900px) {
  .nav__mobile {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    max-width: calc(var(--wrap) - 2 * 24px); margin: 8px auto 0; padding: 2px;
  }
  .nav__mobile::-webkit-scrollbar { display: none; }
  .nav__mobile a {
    flex: none; padding: 8px 16px; border-radius: 999px; text-decoration: none;
    font-size: .92rem; font-weight: 500; color: var(--muted);
    background: var(--glass); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .nav__mobile a[aria-current="page"] { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
}

/* Inner pages start a little lower so the first heading clears the floating nav */
body:not(.page-home) main > section:first-child { padding-top: clamp(48px, 7vw, 88px); }

/* Home teasers */
.teaser { padding: clamp(48px, 7vw, 88px) 0; }
.teaser__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini { padding: 24px; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mini h3 { font-size: 1.15rem; margin-top: 4px; }
.mini p { color: var(--muted); font-size: .98rem; }
.mini__icon { width: 44px; height: 44px; margin-bottom: 4px; }
.mini__icon path, .mini__icon circle { fill: var(--primary); }
.mini__icon .mini__alt { fill: #f2994a; }
.mini__icon .mini__cut { fill: none; stroke: var(--glass-solid); stroke-width: 4; stroke-linecap: round; }
.teaser__more { display: flex; justify-content: center; margin-top: 28px; }
.showcase--teaser .showcase__art { max-height: 380px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .teaser__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Product photo: blends into the glass instead of sitting as a rectangle
   - edges fade out through a soft elliptical mask, so the photo's sky and
     water dissolve into the card
   - a blue glow behind it ties it to the page's colour field
   ============================================================ */
.showcase__art--photo {
  position: relative; isolation: isolate;
  background: none; border: 0; padding: 0; aspect-ratio: auto; overflow: visible;
}
.showcase__art--photo::before {
  content: ""; position: absolute; inset: 8% 6% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 91, 239, .28), transparent);
  filter: blur(24px);
}
.photo { display: block; width: 100%; }
.photo img {
  display: block; width: 100%; height: auto;
  /* feather every edge evenly: two linear masks intersected keep the machine fully opaque */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 84%, transparent 100%);
          mask-composite: intersect;
}
.showcase--teaser .showcase__art--photo { max-height: none; }
.showcase--teaser .photo img { max-height: 520px; width: auto; max-width: 100%; margin: 0 auto; }
:root[data-theme="dark"] .photo img { filter: brightness(.86) saturate(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .photo img { filter: brightness(.86) saturate(1.05); } }

.cart-item__art { padding: 0; overflow: hidden; }
.cart-item__art .thumb { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
/* Dark theme: a light photo can't dissolve into a near-black page, so it becomes a framed
   window instead, matching the dark glass cards: rounded, hairline edge, slightly dimmed */
:root[data-theme="dark"] .photo img {
  -webkit-mask-image: none; mask-image: none;
  border-radius: 24px; filter: brightness(.86) saturate(1.05);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .photo img {
    -webkit-mask-image: none; mask-image: none;
    border-radius: 24px; filter: brightness(.86) saturate(1.05);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 60px rgba(0, 0, 0, .45);
  }
}
