/* Vault: Adaptive Cloud storefront. Dark ink ground, brand yellow (#FFE101) as the single accent.
   One plain stylesheet, no build. Order: tokens, base, layout, components (in page order), utilities.
   Fonts: assets/fonts/fonts.css is linked before this file (self-hosted Onest + Unbounded, OFL).
   Text is 16px or larger below 1024px. */

/* =================================================================== 1. Tokens */

/* Animatable custom properties used by the card tilt (card-tilt.js). */
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 28%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 22%; }
@property --hx { syntax: '<percentage>'; inherits: true; initial-value: 37%; }
@property --hy { syntax: '<percentage>'; inherits: true; initial-value: 33%; }
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }

:root {
  /* Colors */
  --ink: #0E0F12;            /* page ground */
  --ink-deep: #0A0B0E;       /* footer ground */
  --graphite: #191B21;       /* raised surfaces: controls, panels */
  --graphite-2: #20232A;     /* hover on raised surfaces */
  --line: #2A2D35;           /* hairlines */
  --line-2: #3A3E48;         /* stronger hairlines, control borders */
  --fog: #A9AEBA;            /* secondary text (7.9:1 on ink) */
  --paper: #F4F5F7;          /* primary text */
  --slot-panel: #191B21;     /* ground of the address/email images: their panel matches it (= --graphite) */
  --signal: #FFE101;         /* brand yellow: prices, primary action, focus */
  --signal-hover: #FFEA4D;
  --signal-ink: #1A1600;     /* text on yellow */
  --signal-tint: rgba(255, 225, 1, .09);
  --signal-edge: rgba(255, 225, 1, .35);
  --error: #FFB4A8;
  --scrim: rgba(5, 6, 8, .72);
  --header-glass: rgba(14, 15, 18, .86);

  /* Radii */
  --r-card: 14px;            /* gift cards: the physical object */
  --r-ctl: 10px;             /* chips, inputs, buttons */
  --r-panel: 20px;           /* panels, sheets */
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;
  --s-8: 40px;
  --s-9: 56px;
  --s-10: 72px;

  /* Layout */
  --pad: 16px;               /* page gutter */
  --gap: 12px;               /* grid gap */
  --maxw: 1320px;
  --hd-h: 60px;              /* header bar height */

  /* Fonts */
  --f-ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --t-body: 16px;
  --t-meta: 16px;            /* secondary text; 15px from 1024px */

  /* Z-index */
  --z-toolbar: 20;
  --z-buybar: 30;
  --z-header: 40;
  --z-suggest: 50;
  --z-drawer: 60;
  --z-sheet: 70;
  --z-skip: 100;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
  accent-color: var(--signal);
}
@media (min-width: 390px) { :root { --pad: 18px; } }
@media (min-width: 768px) { :root { --pad: 32px; --gap: 16px; --hd-h: 68px; } }
@media (min-width: 1024px) { :root { --t-meta: 15px; } }
@media (min-width: 1280px) { :root { --pad: 48px; --gap: 20px; } }

/* =================================================================== 2. Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 12px); }
html.lock { overflow: hidden; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 var(--t-body)/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--signal); }
button, input, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--signal); color: var(--signal-ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
input { caret-color: var(--signal); }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* =================================================================== 3. Layout */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-top: var(--s-8); }
.sec-hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-4); }
.sec-h { font: 600 20px/1.2 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
.more {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--fog); font-size: var(--t-meta); text-decoration: underline; text-underline-offset: 4px;
}
.more:hover { color: var(--paper); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--gap); padding-top: 6px; }
.state-page { padding-bottom: var(--s-8); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .sec { padding-top: 64px; }
  .sec-h { font-size: 26px; }
  .sec-hd { margin-bottom: 22px; }
}
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-7) var(--gap); } }

/* =================================================================== 4. Components */

/* ---- Icon ---- */
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Button, chip, link button ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-ctl); border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: var(--signal-hover); }
.btn-ghost { background: var(--graphite); border-color: var(--line); color: var(--paper); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--graphite-2); }
.link-btn {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; border: 0; background: none;
  color: var(--fog); font-size: 16px; text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--paper); }

/* component: category-chip (also quick searches, active filters) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px;
  border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--graphite);
  color: var(--paper); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--line-2); background: var(--graphite-2); }
.chip.on { border-color: var(--signal); background: var(--signal-tint); }
.chip .ico { width: 16px; height: 16px; }
.chip-x { padding-right: 10px; }

/* Region chip on cards and product media */
.region-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0;
  padding: 5px 12px 5px 9px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  color: var(--paper); font-size: var(--t-meta); line-height: 1.25; font-weight: 500;
}
.region-chip .ico { width: 16px; height: 16px; color: var(--fog); }
.region-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- component: header ---- */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); padding: 10px 14px;
  background: var(--signal); color: var(--signal-ink); border-radius: var(--r-ctl); font-weight: 600;
}
.skip:focus { top: 12px; }
.site-hd { position: sticky; top: 0; z-index: var(--z-header); background: var(--ink); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(1px)) {
  .site-hd { background: var(--header-glass); backdrop-filter: saturate(140%) blur(14px); }
}
.hd { display: flex; align-items: center; gap: var(--s-2); min-height: var(--hd-h); }
.logo { display: block; margin-right: auto; padding: 6px 0; }
.logo img { height: 30px; width: auto; }
.hd-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-ctl);
  border: 0; background: transparent; color: var(--paper);
}
.hd-icon:hover { background: var(--graphite); }
.hd-browse, .hd-link { display: none; }

/* Header search: phone shows it under the bar when open (#hd-search target, or .search-open set by JS/server). */
.hd-search { display: none; position: relative; align-items: center; }
.site-hd.search-open .hd, .site-hd:has(.hd-search:target) .hd { flex-wrap: wrap; }
.site-hd.search-open .hd-search, .hd-search:target { display: flex; order: 10; flex: 1 0 100%; padding: 0 0 var(--s-3); }
.hd-search > .ico { position: absolute; left: 14px; top: 12px; color: var(--fog); pointer-events: none; }
.hd-search input {
  width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: var(--r-ctl);
  background: var(--graphite); border: 1px solid var(--line); font-size: 16px;
}
.hd-search input::placeholder, .big-search input::placeholder { color: #8E93A0; }
.hd-search input:focus, .big-search input:focus { outline: none; border-color: var(--signal); }

/* Catalog dropdown (desktop): a <details>, works without JS. */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--ink);
  border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
}
.mega-in { display: grid; grid-template-columns: 1fr 1fr 2fr 1fr 1fr; gap: var(--s-7); padding-block: 28px 32px; }
.mega-col:nth-child(3) ul { columns: 2; column-gap: var(--s-7); }
.mega li { break-inside: avoid; }
.mega-h { margin-bottom: var(--s-3); font: 600 14px/1 var(--f-display); color: var(--fog); }
.mega a, .dr-group a { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; color: var(--paper); text-decoration: none; }
.mega a:hover { color: var(--signal); }
.n { color: var(--fog); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }

@media (min-width: 1024px) {
  .hd { gap: var(--s-4); flex-wrap: nowrap; }
  .logo { margin-right: var(--s-2); }
  .logo img { height: 34px; }
  .hd-browse { display: block; }
  .hd-browse > summary {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 14px;
    border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--graphite); font-weight: 500;
  }
  .hd-browse > summary .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
  .hd-browse[open] > summary { border-color: var(--line-2); }
  .hd-browse[open] > summary .ico { transform: rotate(180deg); }
  .hd-search, .site-hd.search-open .hd-search, .hd-search:target { display: flex; order: 0; flex: 1 1 auto; max-width: 560px; padding: 0; }
  .site-hd.search-open .hd, .site-hd:has(.hd-search:target) .hd { flex-wrap: nowrap; }
  .hd-search > .ico { top: 11px; }
  .hd-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 6px; color: var(--fog); text-decoration: none; font-weight: 500; }
  .hd-link:hover { color: var(--paper); }
  .hd-search-btn, .hd-menu-btn { display: none; }
}

/* Phone menu drawer: opens via #menu (no JS) or .open (nav-menu.js). */
.drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.drawer:target, .drawer.open { display: block; }
.drawer-scrim, .sheet-scrim { position: absolute; inset: 0; background: var(--scrim); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto;
  padding: 0 var(--pad) calc(24px + env(safe-area-inset-bottom));
  background: var(--ink); border-left: 1px solid var(--line);
  animation: drawer-in .28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: var(--hd-h); margin-bottom: var(--s-1); }
.drawer-top img { height: 24px; width: auto; }
.dr-group { border-bottom: 1px solid var(--line); }
.dr-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font: 600 16px/1.2 var(--f-display); }
.dr-group summary .ico { color: var(--fog); transition: transform .2s var(--ease); }
.dr-group[open] summary .ico { transform: rotate(180deg); }
.dr-group ul { padding-bottom: var(--s-3); }
.dr-group a { min-height: 44px; align-items: center; padding: 0; font-size: 16px; }
.drawer-foot { display: grid; gap: var(--s-1); margin-top: var(--s-5); }
.drawer-foot a { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; color: var(--fog); text-decoration: none; }
@media (min-width: 1024px) { .drawer:target, .drawer.open { display: none; } }

/* ---- component: search (header, hero, empty states) + suggest box ---- */
.big-search { position: relative; display: flex; align-items: center; gap: var(--s-2); }
.big-search > .ico { position: absolute; left: 14px; top: 15px; color: var(--fog); pointer-events: none; }
.big-search input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px 0 44px; border-radius: var(--r-ctl);
  background: var(--graphite); border: 1px solid var(--line-2); font-size: 16px;
}
.big-search .btn { height: 52px; }
@media (max-width: 380px) { .big-search .btn { padding: 0 14px; } }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: var(--z-suggest); padding: 6px;
  max-height: min(70vh, 520px); overflow-y: auto;
  background: var(--graphite); border: 1px solid var(--line-2); border-radius: var(--r-panel);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .75);
}
.sg { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: var(--s-2); border-radius: var(--r-ctl); text-decoration: none; }
.sg:hover, .sg.on, .sg-all:hover, .sg-all.on { background: var(--graphite-2); }
.sg .art { border-radius: 6px; box-shadow: none; }
.sg-t { display: grid; min-width: 0; }
.sg-t span, .sg-t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-t span { font-weight: 500; }
.sg-t small { color: var(--fog); font-size: var(--t-meta); }
.sg-p { font: 600 15px/1 var(--f-display); color: var(--signal); white-space: nowrap; }
.sg-all { display: block; padding: var(--s-3) var(--s-2); border-radius: var(--r-ctl); color: var(--fog); text-decoration: none; }
.sg-none { padding: 14px 10px; color: var(--fog); }

/* ---- Card art: the physical object (inside product-card, brand-tile, hero, product-media) ---- */
.art {
  position: relative; aspect-ratio: 1.586; border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  background: var(--graphite-2);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 12px 24px -14px rgba(0, 0, 0, .9);
}
/* Backdrop: the same image, blurred, so logos and odd ratios sit on their own colour instead of a strip. */
.art-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  filter: blur(18px) saturate(1.15); transform: scale(1.25);
}
.art-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.art::after { /* specular rim, brighter at the top, plus a soft gloss */
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .28);
  background: linear-gradient(162deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .03) 26%, rgba(255, 255, 255, 0) 42%);
}
/* Face value on the card */
.art-badge {
  position: absolute; right: 7px; bottom: 7px; z-index: 3; max-width: calc(100% - 14px);
  padding: 2px 8px; border-radius: 7px; background: rgba(14, 15, 18, .88);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 4px 10px -4px rgba(0, 0, 0, .8);
  color: var(--paper); font: 600 16px/1.35 var(--f-ui); font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Typographic card for products without artwork */
.art-type, .art-broken {
  container-type: inline-size; display: flex; flex-direction: column; justify-content: space-between; padding: 7% 8%;
  background: linear-gradient(150deg, #2B2E37, #16181D 72%);
}
.art-type::before, .art-broken::before { /* contact chip, so it reads as a card */
  content: ''; position: absolute; left: 8%; top: 40%; width: 11%; aspect-ratio: 1.3; border-radius: 3cqw;
  background: linear-gradient(135deg, #E9D55A, #9C8620); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
/* Image card whose image failed (art-fallback.js): the typographic card inside it takes over. */
.art:not(.art-type):not(.art-broken) > .at-brand, .art:not(.art-type):not(.art-broken) > .at-foot { display: none; }
.art-broken > img, .art-broken > .art-badge { display: none; }
.at-brand { position: relative; font: 700 max(16px, 7cqw)/1.05 var(--f-display); letter-spacing: -.01em; }
.at-foot { position: relative; display: grid; gap: 2px; }
.at-sub { color: var(--fog); font-size: max(16px, 3.6cqw); font-weight: 500; line-height: 1.2; }
.at-line { font: 700 max(16px, 5.6cqw)/1.1 var(--f-display); color: var(--signal); }

/* ---- component: product-card ---- */
.pc { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; text-decoration: none; }
.pc-body { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.pc-title {
  font-size: 16px; line-height: 1.3; font-weight: 500; color: var(--paper);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pc-price { margin-top: 2px; font: 600 18px/1.2 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pc-get { margin-top: -2px; color: var(--fog); font-size: var(--t-meta); line-height: 1.35; }
.pc:hover .pc-title { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pc:hover .art::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .4); }
.pc:focus-visible { outline-offset: 6px; }

/* ---- Rails (home rows, related row) ---- */
.rail-wrap { position: relative; max-width: var(--maxw); margin-inline: auto; }
.rail {
  display: grid; grid-auto-flow: column; gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px var(--pad) 12px; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; min-width: 0; }
.rail-products, .rail-brands { grid-auto-columns: 44%; }
@media (min-width: 560px) { .rail-products, .rail-brands { grid-auto-columns: 30%; } }
@media (min-width: 900px) {
  .rail-wrap { padding-inline: var(--pad); }
  .rail { padding-inline: 0; scroll-padding-inline: 0; }
  .rail-products { grid-auto-columns: calc((100% - 4 * var(--gap)) / 5); }
  .rail-brands { grid-auto-columns: calc((100% - 5 * var(--gap)) / 6); }
}
.rail-btn { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .rail-btn {
    position: absolute; top: calc(50% - 44px); z-index: 3; display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
    background: rgba(25, 27, 33, .94); color: var(--paper); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .8);
  }
  .rail-btn.prev { left: calc(var(--pad) - 22px); }
  .rail-btn.next { right: calc(var(--pad) - 22px); }
  .rail-btn[hidden] { display: none; }
  .rail-btn:hover { border-color: var(--fog); }
}

/* ---- component: brand-tile ---- */
.brand { display: grid; gap: 10px; text-decoration: none; }
.brand-name { font-weight: 600; font-size: 16px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: -6px; color: var(--fog); font-size: var(--t-meta); }
.brand-from { color: var(--signal); font-weight: 500; }
.brand:hover .brand-name { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---- component: home-hero ---- */
/* Phone: headline beside one compact tilted card, search inside the first screen. Desktop: the fan of four. */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(104px, 31vw, 150px);
  grid-template-areas: 'h fan' 'body body'; column-gap: var(--s-3); align-items: center; padding-top: 22px;
}
.hero-h {
  grid-area: h; font: 700 clamp(28px, 8vw, 64px)/1.06 var(--f-display); letter-spacing: -.03em; text-wrap: balance;
}
.hero-fan { grid-area: fan; position: relative; }
.fan-card { display: block; }
.fan-card:not(.fan-lead) { display: none; }
.fan-lead { transform: rotate(8deg) translateY(4px); animation: deal .9s var(--ease) both; }
.fan-card .art { box-shadow: 0 2px 2px rgba(0, 0, 0, .35), 0 22px 36px -16px rgba(0, 0, 0, .95); }
.fan-lead .art-badge { font-size: 16px; }
.hero-body { grid-area: body; min-width: 0; }
.hero-sub { margin-top: var(--s-4); color: var(--fog); font-size: 17px; line-height: 1.5; max-width: 48ch; }
.hero .big-search { margin-top: var(--s-5); }
.quick { display: flex; gap: var(--s-2); margin: 14px calc(-1 * var(--pad)) 0; padding-inline: var(--pad); overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
@keyframes deal { from { transform: translateY(18px) rotate(0deg); } }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: 'h fan' 'body fan';
    column-gap: var(--s-8); padding-top: 56px; padding-bottom: var(--s-2);
  }
  .hero-h { align-self: end; max-width: 13ch; }
  .hero-body { align-self: start; }
  .hero-sub { font-size: 18px; margin-top: var(--s-5); }
  .hero .big-search { margin-top: var(--s-7); max-width: 560px; }
  .big-search input, .big-search .btn { height: 56px; }
  .big-search > .ico { top: 17px; }
  .quick { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; max-width: 560px; }
  .hero-fan { height: 420px; }
  .fan-card, .fan-card:not(.fan-lead) { display: block; position: absolute; width: 62%; animation: deal .9s var(--ease) both; }
  .fan-card.f0 { left: 2%; top: 4%; transform: rotate(-12deg); }
  .fan-card.f1 { left: 34%; top: 0; transform: rotate(7deg); animation-delay: 70ms; }
  .fan-card.f2 { left: 6%; top: 38%; transform: rotate(-3deg); z-index: 2; animation-delay: 140ms; }
  .fan-card.f3 { left: 36%; top: 44%; transform: rotate(5deg); z-index: 3; animation-delay: 210ms; }
  .fan-card:hover, .fan-card:focus-visible { z-index: 5; }
}
@media (min-width: 1280px) { .hero-fan { height: 480px; } }

/* ---- component: category-directory ---- */
.dir { display: grid; gap: 22px; }
.dir-g { min-width: 0; }
.dir-h { margin-bottom: 10px; font: 600 16px/1.2 var(--f-display); color: var(--paper); }
.dir-list { display: flex; gap: var(--s-2); margin-inline: calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; overflow-x: auto; scrollbar-width: none; }
.dir-list::-webkit-scrollbar { display: none; }
.dir-list a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--graphite); text-decoration: none; font-weight: 500;
}
.dir-list a:hover { border-color: var(--line-2); }
@media (min-width: 1024px) {
  .dir { grid-template-columns: 1fr 1fr 2fr 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
  .dir-g { padding: 22px 22px 18px; border-left: 1px solid var(--line); }
  .dir-g:first-child { border-left: 0; }
  .dir-h { margin-bottom: var(--s-2); font-size: 14px; color: var(--fog); }
  .dir-list { display: block; margin: 0; padding: 0; overflow: visible; }
  .dir-g:nth-child(3) .dir-list { columns: 2; column-gap: var(--s-6); }
  .dir-list li { break-inside: avoid; }
  .dir-list a { display: flex; justify-content: space-between; min-height: 40px; padding: 0; border: 0; background: none; white-space: normal; line-height: 1.3; }
  .dir-list a:hover { color: var(--signal); }
}

/* ---- component: how-it-works ---- */
.how-h { font: 600 20px/1.2 var(--f-display); letter-spacing: -.015em; margin-bottom: var(--s-4); }
.how-steps { counter-reset: how; display: grid; gap: var(--s-3); }
.how-steps:has(li:nth-child(2):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.how-steps li {
  counter-increment: how; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; align-items: start;
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite);
}
.how-steps li::before {
  content: counter(how); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--signal); color: var(--signal-ink); font: 700 15px/1 var(--f-display);
}
.how-steps h3 { font-size: 16px; font-weight: 600; line-height: 1.35; padding-top: 6px; }
.how-steps p { margin-top: 2px; color: var(--fog); }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how-steps li { grid-template-columns: 1fr; row-gap: var(--s-3); padding: var(--s-5); }
  .how-steps li::before { grid-row: auto; }
  .how-steps h3 { padding-top: 0; }
}

/* ---- component: guarantee (+ support line on home) ---- */
.guarantee, .support-line { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; line-height: 1.5; }
.guarantee .ico { color: var(--signal); }
.support-line .ico { color: var(--fog); }
.guarantee a, .support-line a { color: var(--paper); font-weight: 500; }
.buying .promise { display: grid; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
@media (min-width: 900px) {
  .buying .promise { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .buying .how-h { font-size: 26px; margin-bottom: 22px; }
}

/* ---- component: footer ---- */
.site-ft { margin-top: var(--s-9); border-top: 1px solid var(--line); background: var(--ink-deep); padding-bottom: env(safe-area-inset-bottom); }
.page-pd .site-ft { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.ft { display: grid; gap: var(--s-7); padding-block: 36px 28px; }
.ft > * { min-width: 0; }
.ft-brand img { height: 26px; width: auto; }
.ft-brand p { margin-top: var(--s-3); color: var(--fog); max-width: 36ch; }
.ft-pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.ft-pay li { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: var(--t-meta); }
.ft-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-4); }
.ft-h { margin-bottom: var(--s-2); font: 600 16px/1.2 var(--f-display); color: var(--paper); }
.ft-cols a { display: inline-flex; align-items: center; min-height: 40px; color: var(--fog); text-decoration: none; }
.ft-cols a:hover { color: var(--paper); }
/* Image slots carry light text on the dark slot panel colour, the same as the PNG ground. */
.paper-slot { display: inline-block; max-width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--slot-panel); line-height: 0; }
.paper-slot img { max-width: 100%; height: auto; }
.ft-legal { padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--fog); font-size: var(--t-meta); }
@media (min-width: 900px) {
  .ft { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); grid-template-areas: 'brand cols' 'addr cols' 'legal legal'; padding-block: 48px 32px; }
  .ft-brand { grid-area: brand; }
  .ft-cols { grid-area: cols; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ft-addr { grid-area: addr; }
  .ft-legal { grid-area: legal; }
}

/* ---- component: breadcrumbs ---- */
.crumbs ol { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; color: var(--fog); font-size: var(--t-meta); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 36px; color: var(--fog); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs .ico { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--paper); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70vw; }
/* Phones: the current page is the H1 right below, so its crumb is kept for screen readers only. */
@media (max-width: 767px) {
  .crumbs li:last-child:not(:first-child) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Catalog header ---- */
.cat-hd { padding-top: var(--s-5); }
.page-h { margin-top: 10px; font: 700 clamp(26px, 7vw, 44px)/1.1 var(--f-display); letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.page-sub { margin-top: var(--s-2); color: var(--fog); }
.sibs { display: flex; gap: var(--s-2); margin: 18px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 4px; overflow-x: auto; scrollbar-width: none; }
.sibs::-webkit-scrollbar { display: none; }

/* ---- Catalog layout + toolbar ---- */
.cat-layout { display: block; padding-top: var(--s-5); }
.cat-main { min-width: 0; }
.toolbar {
  position: sticky; top: var(--hd-h); z-index: var(--z-toolbar); display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-block: 10px; background: var(--ink);
}
.site-hd.search-open ~ main .toolbar { top: calc(var(--hd-h) + 58px); }
.tb-filter { min-height: 44px; padding: 0 14px; gap: var(--s-2); }
.tb-filter .ico { width: 20px; height: 20px; }
.badge {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--signal); color: var(--signal-ink); font-size: 14px; font-weight: 700;
}
.tb-sort { display: flex; gap: var(--s-2); margin-left: auto; }
.tb-sort select {
  height: 44px; max-width: 58vw; padding: 0 36px 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--line); background-color: var(--graphite);
  appearance: none; -webkit-appearance: none; font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9AEBA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.tb-apply { min-height: 44px; padding: 0 14px; }
.tb-apply[hidden] { display: none; }
.tb-count { flex: 1 0 100%; order: 5; color: var(--fog); }
.active { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: 4px 0 14px; }
@media (min-width: 640px) {
  .tb-count { flex: 1 1 auto; order: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-sort { order: 2; }
}

/* ---- component: filters (phone bottom sheet via #filters or .open; desktop column) ---- */
.filters { position: fixed; inset: 0; z-index: var(--z-sheet); visibility: hidden; }
.filters.open, .filters:target { visibility: visible; }
.filters .sheet-scrim { opacity: 0; transition: opacity .25s; }
.filters.open .sheet-scrim, .filters:target .sheet-scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
  background: var(--ink); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-panel) var(--r-panel) 0 0;
  transform: translateY(100%); transition: transform .32s var(--ease);
}
.filters.open .sheet, .filters:target .sheet { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px var(--pad); border-bottom: 1px solid var(--line); }
.sheet-h { font: 600 18px/1 var(--f-display); }
.facets { overflow-y: auto; padding: 4px var(--pad) var(--s-4); overscroll-behavior: contain; }
.sheet-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: var(--s-3) var(--pad) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.facet { min-width: 0; margin: 0; padding: 18px 0 10px; border: 0; border-bottom: 1px solid var(--line); }
.facet:last-child { border-bottom: 0; }
.facet legend { float: left; width: 100%; margin-bottom: var(--s-2); padding: 0; font-weight: 600; font-size: 16px; }
.facet-opts { clear: both; display: grid; }
.opt { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; }
.opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opt .box { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: 6px; }
.opt .box .ico { width: 15px; height: 15px; stroke-width: 2.5; color: var(--signal-ink); visibility: hidden; }
.opt input:checked + .box { background: var(--signal); border-color: var(--signal); }
.opt input:checked + .box .ico { visibility: visible; }
.opt input:focus-visible + .box { outline: 2px solid var(--signal); outline-offset: 2px; }
.opt-n { color: var(--fog); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
.opt.is-zero .opt-name { color: var(--fog); }
.facet-more summary { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.facet-more[open] summary { display: none; }
.facet-none { padding: 18px 0; color: var(--fog); }
@media (min-width: 1024px) {
  .cat-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: var(--s-8); padding-top: 28px; }
  .filters { position: static; visibility: visible; }
  .filters .sheet-scrim, .sheet-top { display: none; }
  .sheet { position: static; max-height: none; transform: none; transition: none; border: 0; border-radius: 0; background: none; }
  .facets { padding: 0; overflow: visible; }
  .facet:first-child { padding-top: 6px; }
  .sheet-foot { grid-template-columns: 1fr; padding: var(--s-3) 0 0; border: 0; }
  .sheet-foot .btn-signal { order: -1; }
  .tb-filter { display: none; }
  .toolbar { position: static; padding-top: 0; }
}

/* ---- component: pagination ---- */
.pager { display: grid; justify-items: center; gap: var(--s-3); margin-top: var(--s-8); }
.pg-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pg {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r-ctl);
  border: 1px solid var(--line); background: var(--graphite); font-variant-numeric: tabular-nums; font-weight: 500; text-decoration: none;
}
a.pg:hover { border-color: var(--line-2); }
.pg.on { background: var(--signal); color: var(--signal-ink); border-color: var(--signal); }
.pg[aria-disabled] { color: var(--line-2); border-color: var(--line); background: none; }
.pg .ico { width: 18px; height: 18px; }
.pg-gap { padding: 0 2px; color: var(--fog); }
.pg-note { color: var(--fog); }

/* ---- component: empty-state ---- */
.empty { grid-column: 1 / -1; max-width: 560px; padding: var(--s-8) 0; }
.empty h1, .empty h2 { font: 600 22px/1.25 var(--f-display); text-wrap: balance; }
.empty h1.page-h { font-size: clamp(26px, 7vw, 40px); }
.empty p { margin-top: var(--s-2); color: var(--fog); }
.empty > .btn { margin-top: var(--s-4); }
.empty .big-search { margin-top: var(--s-5); }
.empty-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

/* ---- Product page layout ---- */
.pd { padding-top: var(--s-3); }
.pd-grid { display: grid; grid-template-areas: 'media' 'buy' 'info'; gap: var(--s-5); margin-top: var(--s-2); }
.pd-media { grid-area: media; min-width: 0; }
.pd-buy { grid-area: buy; min-width: 0; }
.pd-info { grid-area: info; min-width: 0; display: grid; gap: var(--s-6); margin-top: var(--s-3); }

/* component: product-media (tilt: card-tilt.js) */
.stage { padding: 6px 4px 18px; perspective: 1100px; touch-action: pan-y; }
.art-hero {
  width: 100%; max-width: min(100%, 360px); margin-inline: auto;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .4), 0 34px 60px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04);
}
.art-hero.settle { transition: --rx .6s var(--ease), --ry .6s var(--ease), --mx .8s var(--ease), --my .8s var(--ease), --hx .8s var(--ease), --hy .8s var(--ease); }
.sheen { /* holographic foil and a specular hotspot that follows the light */
  position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; mix-blend-mode: overlay;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 22%, transparent 48%),
    linear-gradient(112deg, transparent 30%, rgba(255, 236, 120, .45) 40%, rgba(140, 220, 255, .4) 47%, rgba(255, 150, 220, .35) 54%, transparent 64%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--hx) var(--hy);
}
.media-cap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s-2) 18px; color: var(--fog); }
.cap-mail { display: inline-flex; align-items: center; gap: 6px; }
.cap-mail .ico { width: 18px; height: 18px; }

/* component: buy-block */
.pd-h { font: 600 24px/1.2 var(--f-ui); letter-spacing: -.015em; text-wrap: balance; }
.pd-den { color: var(--fog); font-weight: 500; white-space: nowrap; }

/* component: region-selector, amount-selector */
.pick { margin-top: 22px; }
.pick-hd { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: 10px; }
.pick-h { font-size: 16px; font-weight: 600; }
.pick-hint { color: var(--fog); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chips-reg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips-den { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.den, .reg {
  display: grid; align-content: center; gap: 2px; min-height: 56px; padding: 8px 12px; text-decoration: none;
  border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--graphite); color: var(--paper);
}
.den:hover, .reg:hover { border-color: var(--line-2); background: var(--graphite-2); }
.den.on, .reg.on { border-color: var(--signal); background: var(--signal-tint); box-shadow: inset 0 0 0 1px var(--signal); }
.den-face { font: 700 17px/1.2 var(--f-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.den-pay, .reg-from { color: var(--fog); font-size: var(--t-meta); font-variant-numeric: tabular-nums; }
.den.on .den-pay, .reg.on .reg-from { color: var(--paper); }
.reg-name { font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.reg-more { margin-top: var(--s-2); }
.reg-more summary { display: inline-flex; align-items: center; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.reg-more[open] summary { display: none; }
.region-one { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 0 14px; border: 1px solid var(--signal); border-radius: var(--r-ctl); background: var(--signal-tint); font-weight: 500; }
.region-one .ico { width: 18px; height: 18px; color: var(--signal); }
.region-note { margin-top: var(--s-3); color: var(--fog); }
.region-note strong { color: var(--paper); font-weight: 600; }

/* component: any-amount */
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; gap: var(--s-2); }
.stepper:has(.st-btn[hidden]) { grid-template-columns: 1fr; }
.st-btn { display: grid; place-items: center; height: 56px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--graphite); }
.st-btn[hidden] { display: none; }
.st-btn:hover { border-color: var(--line-2); }
.st-field { position: relative; display: block; }
.st-field input {
  width: 100%; height: 56px; padding: 0 64px 0 16px; border-radius: var(--r-ctl); border: 1px solid var(--line-2); background: var(--graphite);
  font: 600 20px/1 var(--f-display); font-variant-numeric: tabular-nums;
}
.st-field input:focus { outline: none; border-color: var(--signal); }
.js-amount .st-field input { -moz-appearance: textfield; appearance: textfield; }
.js-amount .st-field input::-webkit-outer-spin-button, .js-amount .st-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st-cur { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--fog); font-weight: 500; pointer-events: none; }
.chips-amt { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); margin-top: 10px; }
.chips-amt[hidden] { display: none; }
.chips-amt .chip { justify-content: center; padding: 0 8px; }
.st-err { margin-top: var(--s-2); color: var(--error); }

/* component: price */
.price { margin-top: var(--s-6); padding-top: 18px; border-top: 1px solid var(--line); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.price-l { color: var(--fog); }
.price-v { font: 700 30px/1 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.price-get { margin-top: 6px; text-align: right; }
.btn-buy { width: 100%; height: 56px; margin-top: var(--s-4); font-size: 17px; }
.buy-panel .guarantee { margin-top: var(--s-4); }
.assure { display: grid; gap: 10px; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); color: var(--fog); }
.assure li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-3); align-items: start; }
.assure .ico { width: 20px; height: 20px; margin-top: 2px; }
.assure a { color: var(--paper); }

/* component: description */
.info { padding-top: 22px; border-top: 1px solid var(--line); }
.info-h { margin-bottom: var(--s-3); font: 600 18px/1.25 var(--f-display); letter-spacing: -.01em; }
.about { line-height: 1.6; max-width: 62ch; }
.get-list { display: grid; gap: var(--s-2); margin-top: 14px; }
.get-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.get-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--signal); }
.info.warn { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: 18px; border: 1px solid var(--signal-edge); border-radius: var(--r-panel); background: var(--signal-tint); }
.info.warn > .ico { width: 24px; height: 24px; color: var(--signal); }
.info.warn .info-h { margin-bottom: 6px; font-size: 16px; }
.info.warn p { line-height: 1.55; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: var(--s-3); align-items: start; line-height: 1.55; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-2); font: 600 14px/1 var(--f-display); color: var(--signal);
}
.steps li span { padding-top: 4px; }
.pd-info .how { padding-top: 22px; border-top: 1px solid var(--line); }
.pd-info .how-h { font-size: 18px; margin-bottom: var(--s-3); }

/* component: faq (+ issuer terms) */
.faq details, .terms { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary, .terms summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 52px; padding: 10px 0; font-weight: 500; }
.faq summary .ico, .terms summary .ico { color: var(--fog); transition: transform .2s var(--ease); }
.faq details[open] summary .ico, .terms[open] summary .ico { transform: rotate(180deg); }
.faq p { max-width: 62ch; padding-bottom: var(--s-4); color: var(--fog); line-height: 1.6; }
.terms { margin-top: -10px; border-top: 1px solid var(--line); }
.terms summary { color: var(--fog); }
.terms-body { max-width: 70ch; padding-bottom: 18px; white-space: pre-line; color: var(--fog); line-height: 1.6; overflow-wrap: anywhere; }

/* component: sticky-bar. Visible from the first paint, so on phones (region first, Buy below the fold) price and Buy
   are on the first screen. sticky-buybar.js adds .is-off only while the main Buy button is in view. Desktop keeps the
   buy panel sticky in the first screen, so there the bar waits for the script (.bb-ready) and stays hidden without JS. */
.buybar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: var(--z-buybar);
  max-width: 640px; margin-inline: auto; transition: transform .3s var(--ease), visibility 0s linear;
}
.buybar.is-off { transform: translateY(calc(100% + 24px)); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
@media (min-width: 1024px) { .buybar:not(.bb-ready) { display: none; } }
@media (prefers-reduced-motion: reduce) { .buybar, .buybar.is-off { transition: none; } }
.bb-in {
  display: flex; align-items: center; gap: var(--s-3); padding: 8px 8px 8px 16px;
  background: var(--graphite); border: 1px solid var(--line-2); border-radius: var(--r-panel);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .85);
}
.bb-label {
  flex: 1; min-width: 0; color: var(--paper); line-height: 1.3; font-weight: 500;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bb-label span { white-space: nowrap; }
.bb-in .btn { flex: none; min-height: 48px; padding: 0 18px; font-variant-numeric: tabular-nums; }

/* related-row uses .sec + rail */

@media (min-width: 768px) { .pd-h { font-size: 28px; } }
@media (min-width: 1024px) {
  .pd { padding-top: var(--s-5); }
  .pd-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); grid-template-areas: 'media buy' 'info buy'; column-gap: var(--s-9); row-gap: 0; margin-top: var(--s-4); }
  .pd-media { padding: 28px 24px 8px; background: radial-gradient(60% 55% at 50% 42%, rgba(255, 255, 255, .045), transparent 70%); }
  .art-hero { max-width: 600px; }
  .stage { padding: 12px 8px 28px; }
  .pd-buy { align-self: start; position: sticky; top: calc(var(--hd-h) + 20px); }
  .buy-panel { padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
  .buy-panel .den, .buy-panel .reg, .buy-panel .st-btn, .buy-panel .st-field input, .buy-panel .chip { background: var(--ink); }
  .buy-panel .den.on, .buy-panel .reg.on { background: var(--signal-tint); }
  .den, .reg { min-height: 52px; padding: 6px 12px; }
  .pick { margin-top: 18px; }
  .price { margin-top: 18px; padding-top: 14px; }
  .btn-buy { margin-top: var(--s-3); }
  .pd-info { margin-top: 36px; }
}
@media (min-width: 1280px) { .pd-grid { grid-template-columns: minmax(0, 1.3fr) 440px; column-gap: var(--s-10); } }

/* =================================================================== 4b. Components: support, terms, pay form, 404, services */

/* ---- component: page-head (uses .cat-hd, .page-h, .page-sub) ---- */
.page-sub { max-width: 62ch; }

/* ---- Forms: contact-form, pay-form (labels above controls) ---- */
.form-layout { display: grid; gap: var(--s-7); padding-top: var(--s-5); }
.form-main { display: grid; gap: var(--s-4); min-width: 0; }
.form-panel { padding: var(--s-5) var(--s-4) var(--s-6); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: var(--s-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field > legend { padding: 0; font-weight: 600; font-size: 16px; line-height: 1.3; }
.field > legend { margin-bottom: var(--s-2); }
.input {
  width: 100%; height: 52px; padding: 0 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-2);
  background: var(--ink); color: var(--paper); font: 400 16px/1.3 var(--f-ui); font-variant-numeric: tabular-nums;
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: #4A4F5B; }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.textarea { height: auto; min-height: 168px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.select {
  padding-right: 38px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9AEBA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.input:user-invalid, .field.has-error .input { border-color: var(--error); }
.input:user-invalid:focus, .field.has-error .input:focus { box-shadow: 0 0 0 1px var(--error); }
.field-err { display: grid; grid-template-columns: 18px 1fr; gap: var(--s-2); align-items: start; color: var(--error); line-height: 1.4; }
.field-err .ico { width: 18px; height: 18px; margin-top: 1px; }
.form-foot { display: grid; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.btn-submit { width: 100%; height: 56px; font-size: 17px; cursor: pointer; }
.form-h { font: 600 18px/1.3 var(--f-display); letter-spacing: -.01em; text-wrap: balance; }
@media (min-width: 640px) {
  .form-panel { padding: var(--s-6) var(--s-6) var(--s-7); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--s-4); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .form-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .btn-submit { width: auto; min-width: 220px; }
}

/* component: captcha-note (reCAPTCHA v3, invisible: no widget, just this line; Google's badge is hidden) */
.captcha-note { display: flex; align-items: flex-start; gap: var(--s-2); color: var(--fog); line-height: 1.45; }
.captcha-note .ico { flex: none; margin-top: 2px; color: var(--fog); }
.captcha-note a { color: var(--paper); }
.grecaptcha-badge { visibility: hidden; }

/* component: form-notice */
.notice { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: 16px 18px; border: 1px solid; border-radius: var(--r-panel); }
.notice .ico { width: 24px; height: 24px; }
.notice-h { font-weight: 600; }
.notice p + p { margin-top: 2px; }
.notice-ok { border-color: var(--signal-edge); background: var(--signal-tint); }
.notice-ok .ico { color: var(--signal); }
.notice-err { border-color: rgba(255, 180, 168, .5); background: rgba(255, 180, 168, .08); }
.notice-err .ico { color: var(--error); }

/* component: support-info, abuse-info */
.form-aside { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.aside-h { font: 600 18px/1.25 var(--f-display); letter-spacing: -.01em; }
.aside-h + .get-list { margin-top: 0; }
.aside-line { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-3); align-items: start; line-height: 1.5; }
.aside-line .ico { color: var(--fog); }
.aside-line a { color: var(--paper); font-weight: 500; }
.aside-links { display: grid; border-top: 1px solid var(--line); }
.aside-links a { display: flex; align-items: center; gap: var(--s-3); min-height: 52px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.aside-links .ico { color: var(--fog); }
.aside-links a:hover { color: var(--signal); }
@media (min-width: 1024px) {
  .form-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-9); padding-top: var(--s-7); align-items: start; }
  .form-aside { position: sticky; top: calc(var(--hd-h) + 24px); padding-top: var(--s-1); }
}

/* Slip: the address/email images are light text on the dark slot panel colour. */
.slip {
  display: grid; gap: 18px; justify-items: start; padding: 18px 20px 20px; border-radius: var(--r-panel);
  border: 1px solid var(--line); background: var(--slot-panel); color: var(--paper); box-shadow: 0 1px 1px rgba(0, 0, 0, .4), 0 16px 30px -18px rgba(0, 0, 0, .9);
}
.slip-row { display: grid; gap: var(--s-2); }
.slip-row + .slip-row { padding-top: 16px; border-top: 1px dashed var(--line-2); justify-self: stretch; }
.slip-h { color: var(--fog); font-size: 16px; font-weight: 600; }
.slip img { max-width: 100%; height: auto; }
.slot-inline { display: inline-block; max-width: 100%; margin: 2px 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--slot-panel); vertical-align: middle; line-height: 0; }
.slot-inline img { max-width: 100%; height: auto; }

/* ---- component: terms-toc, terms-body (long-form reading) ---- */
.doc-layout { padding-top: var(--s-5); }
.toc { display: none; }
.toc-m { margin-bottom: var(--s-2); border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
.toc-m summary { display: flex; align-items: center; gap: var(--s-3); min-height: 56px; padding: 0 var(--s-4); font-weight: 600; }
.toc-count { margin-left: auto; color: var(--fog); font-weight: 400; }
.toc-m summary .ico { color: var(--fog); transition: transform .2s var(--ease); }
.toc-m[open] summary .ico { transform: rotate(180deg); }
.toc-m .toc-list { padding: 0 var(--s-2) var(--s-3); }
.toc-list a { display: grid; grid-template-columns: 2.1em 1fr; gap: var(--s-1); align-items: baseline; padding: 9px 10px; border-radius: 8px; color: var(--fog); text-decoration: none; line-height: 1.35; }
.toc-list a:hover { color: var(--paper); background: var(--graphite-2); }
.toc-list a[aria-current] { color: var(--paper); background: var(--signal-tint); }
.toc-list a[aria-current] .toc-n { color: var(--signal); }
.toc-n { font-variant-numeric: tabular-nums; font-weight: 600; }
.doc { max-width: 70ch; min-width: 0; }
.doc-sec { padding-top: var(--s-8); }
.doc-sec:first-child { padding-top: var(--s-6); }
.doc-h { font: 600 20px/1.3 var(--f-display); letter-spacing: -.012em; text-wrap: balance; }
.doc-n { color: var(--signal); font-variant-numeric: tabular-nums; }
.doc-sub { margin-top: var(--s-5); margin-left: calc(2.6em + var(--s-2)); font-size: 1em; font-weight: 600; }
.cl { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); column-gap: var(--s-2); margin-top: var(--s-4); line-height: 1.7; }
.doc-h + .cl { margin-top: var(--s-4); }
.cl-n { padding-top: 1px; color: var(--fog); font-variant-numeric: tabular-nums; font-weight: 500; }
.cl-t { min-width: 0; overflow-wrap: anywhere; }
.cl-t a { color: var(--paper); text-decoration-color: var(--signal); text-underline-offset: 4px; }
.doc-list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.doc-list li { position: relative; padding-left: 20px; }
.doc-list li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--fog); }
.slip-block { display: inline-grid; margin-top: var(--s-3); padding: 14px 16px; }
@media (min-width: 1024px) {
  .doc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-9); padding-top: var(--s-7); align-items: start; }
  .toc-m { display: none; }
  .toc { display: block; position: sticky; top: calc(var(--hd-h) + 24px); max-height: calc(100vh - var(--hd-h) - 48px); overflow-y: auto; padding-right: var(--s-2); }
  .toc-h { margin: 0 0 var(--s-2) 10px; font: 600 14px/1.2 var(--f-display); color: var(--fog); }
  .toc-list a { padding: 7px 10px; }
  .doc { font-size: 17px; }
  .doc-sec:first-child { padding-top: 0; }
  .doc-h { font-size: 24px; }
}

/* ---- component: order-summary, security-note, pay-form, pay-notes ---- */
.pay-layout { display: grid; grid-template-areas: 'aside' 'main' 'notes'; gap: var(--s-6); padding-top: var(--s-5); }
.pay-aside { grid-area: aside; display: grid; gap: var(--s-4); align-content: start; min-width: 0; }
.pay-main { grid-area: main; min-width: 0; }
.pay-notes { grid-area: notes; display: grid; gap: var(--s-5); min-width: 0; max-width: 70ch; }
.order-box { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.order-h { font: 600 18px/1.2 var(--f-display); letter-spacing: -.01em; }
.order-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: var(--s-3); }
.order-art { border-radius: 9px; }
.order-art .art-badge { display: none; }
.order-title { font-weight: 600; line-height: 1.3; }
.order-dl { display: grid; gap: 6px; margin: var(--s-4) 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.order-dl div { display: flex; justify-content: space-between; gap: var(--s-4); }
.order-dl dt { color: var(--fog); }
.order-dl dd { margin: 0; text-align: right; font-weight: 500; }
.order-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-3); padding-top: 14px; border-top: 1px solid var(--line); }
.order-total strong { font: 700 28px/1 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.order-mail { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: var(--s-4); color: var(--fog); line-height: 1.45; }
.order-mail .ico { width: 20px; height: 20px; margin-top: 1px; }
.order-none { margin-top: var(--s-2); color: var(--fog); }
.pay-form-hd { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.pay-brands { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-brands li { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-weight: 500; }
.exp-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-2); }
.pay-note-h { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-2); font-size: 16px; font-weight: 600; }
.pay-note-h .ico { width: 20px; height: 20px; color: var(--signal); }
.pay-note p, .note-list { color: var(--fog); line-height: 1.6; }
.note-list { display: grid; gap: 6px; }
.note-list li { position: relative; padding-left: 18px; }
.note-list li::before { content: ''; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.sec-note { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-panel); }
.pay-terms { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.pay-terms .ico { width: 20px; height: 20px; color: var(--fog); }
.pay-terms a { font-weight: 600; }
@media (min-width: 640px) { .pay-form-hd { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
@media (min-width: 1024px) {
  .pay-layout { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: 'main aside' 'notes aside'; column-gap: var(--s-9); row-gap: var(--s-7); padding-top: var(--s-7); align-items: start; }
  .pay-aside { position: sticky; top: calc(var(--hd-h) + 24px); }
}

/* ---- component: not-found ---- */
.nf { display: grid; gap: var(--s-6); padding-top: var(--s-6); padding-bottom: var(--s-4); }
.nf-card { width: min(68vw, 260px); justify-self: center; transform: rotate(-6deg); animation: deal .9s var(--ease) both; }
.nf-card .art { box-shadow: 0 2px 2px rgba(0, 0, 0, .35), 0 26px 40px -18px rgba(0, 0, 0, .95); }
.nf-card .at-line { font-size: max(28px, 12cqw); }
.nf-body { min-width: 0; max-width: 600px; }
.nf .big-search { margin-top: var(--s-5); }
.nf-h { margin-top: var(--s-7); font: 600 16px/1.2 var(--f-display); }
.nf-h + .empty-chips { margin-top: var(--s-3); }
.nf-home { margin-top: var(--s-6); }
@media (min-width: 900px) {
  .nf { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; column-gap: var(--s-9); padding-top: var(--s-9); }
  .nf-card { order: 2; width: min(100%, 440px); }
}

/* ---- component: service-hero, service-about, service-features, plans, plan-card, service-nav ---- */
.svc-hero { padding-top: var(--s-5); }
.svc-hero-in { display: grid; gap: var(--s-7); margin-top: var(--s-3); }
.svc-hero-text { min-width: 0; }
.svc-h { font: 700 clamp(36px, 11vw, 76px)/1.02 var(--f-display); letter-spacing: -.035em; text-wrap: balance; }
.svc-sub { margin-top: var(--s-4); max-width: 48ch; color: var(--fog); font-size: 17px; line-height: 1.5; }
.svc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-5); }
.svc-from { color: var(--fog); }
.svc-from strong { font: 700 22px/1 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; }
.svc-card { justify-self: center; width: min(76vw, 300px); padding: 0 0 var(--s-2); }
.svc-art { transform: rotate(-5deg); animation: deal .9s var(--ease) both; box-shadow: 0 2px 2px rgba(0, 0, 0, .35), 0 22px 36px -16px rgba(0, 0, 0, .95); }
.svc-about { display: grid; gap: var(--s-4); }
.svc-about-text { display: grid; gap: var(--s-4); max-width: 66ch; line-height: 1.7; }
.svc-feats-sec { padding-top: var(--s-7); }
.svc-feats { display: grid; border-top: 1px solid var(--line); }
.svc-feats li { display: grid; align-content: start; grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc-feats .ico { grid-row: span 2; width: 24px; height: 24px; color: var(--signal); }
.svc-feats h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.svc-feats p { color: var(--fog); line-height: 1.55; }
.plans { display: grid; gap: var(--gap); }
.plan { display: grid; align-content: start; padding: 22px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--graphite); }
.plan-name { font: 600 16px/1.2 var(--f-ui); color: var(--fog); }
.plan-len { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 6px; font: 600 24px/1.15 var(--f-display); letter-spacing: -.015em; }
.plan-note { font: 400 16px/1.3 var(--f-ui); color: var(--fog); letter-spacing: 0; }
.plan-price { margin-top: var(--s-4); font: 700 44px/1 var(--f-display); color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.plan-feats { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.plan-buy { width: 100%; height: 52px; margin-top: var(--s-6); white-space: normal; text-align: center; line-height: 1.2; }
.plan-more { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-2); color: var(--fog); text-underline-offset: 4px; }
.plan-more:hover { color: var(--paper); }
.svc-pay { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
.svc-pay .ico { color: var(--fog); }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(auto-fill, minmax(300px, 380px)); } }
@media (min-width: 768px) {
  .svc-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-7); }
  .svc-pay { grid-template-columns: repeat(2, max-content); column-gap: var(--s-8); }
}
@media (min-width: 1024px) {
  .svc-hero { padding-top: var(--s-6); }
  .svc-hero-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--s-9); align-items: center; margin-top: var(--s-6); }
  .svc-card { width: 100%; max-width: 480px; justify-self: end; padding: var(--s-6) var(--s-6) var(--s-6) 0; }
  .svc-art { transform: rotate(7deg); }
  .svc-sub { font-size: 19px; }
  .svc-about { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: var(--s-9); }
  .svc-about .sec-h { font-size: 30px; }
  .svc-feats { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--s-6); }
  .svc-feats li { grid-template-columns: 1fr; row-gap: var(--s-2); padding: 22px 0 4px; border-bottom: 0; }
  .svc-feats .ico { grid-row: auto; margin-bottom: var(--s-2); }
}

/* =================================================================== 5. Utilities */

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; scroll-behavior: auto !important; }
  .art-hero { transform: none; }
}

/* =================================================================== 6. Rails app additions */

/* Flash messages (form-notice) the layout shows above the page content. */
.flash-notices { display: grid; gap: var(--s-3); padding-top: var(--s-6); }
