/* ==========================================================================
   Unboxkey — site.css (design system, shared by every page)
   Light theme only. Tokens on :root. No framework.

   CLASS INDEX (use these; do not restyle them in page CSS — extend instead)
   Layout     .container  .section  .section--white  .section--tight  .section-head
              .stack(-sm|-lg)  .cluster  .grid-2  .grid-3  .split
   Type       .h1 .h2 .h3 .eyebrow .lede .muted .small .num (tabular) .price
              .link (red underlined)  .prose (long text)
   Buttons    .btn + .btn-primary | .btn-secondary | .btn-ghost | .btn-dark
              sizes .btn-sm | .btn-lg ; .btn-block ; .icon-btn ; .is-loading
   Forms      .field > .label + .input|.select|.textarea + .hint + .field-error
              .field.is-invalid ; .input-group ; .check (checkbox/radio line)
              .radio-cards > label.radio-card > input + .radio-card-body
                 (.radio-card-title .radio-card-meta .radio-card-price)
              .copy-field (readonly value + copy button, see [data-copy] in site.js)
   Bits       .chip (.is-active | [aria-pressed=true]) .chip-row ; .badge(--yellow|--ok|--warn|--red|--dark)
              .breadcrumbs > ol > li ; .card (.card--pad-lg .card--flat) ; .alert(--info|--ok|--warn|--error)
              .steps > .step (.step-num .step-title .step-text) ; .progress > .progress-step (.is-done | aria-current=step)
              .accordion > details.acc-item > summary.acc-q + .acc-a ; .table ; .empty ; .spinner
              .kv (key/value list) ; .checklist (ticked list) ; .coin-list > .coin
   Products   .tile-grid > a.tile > .tile-card(--tile colour) > img.tile-logo(--icon|--mono) | .tile-initials, .tile-vendor
              then .tile-name .tile-meta .tile-price   (markup: docs/AGENT-BRIEF.md, UB.tile())
   Search     form.search(--hero|--header) > .search-field > input.search-input + button.search-btn ; .search-pop (listbox)
   Chrome     .site-header (.is-compact) .main-nav .nav-menu .drawer .site-footer .skip-link
   Home       .hero .unbox .how .cat-grid/.cat-card .benefits .faq-wrap .teaser .cta-band
   Utilities  .visually-hidden .hide-sm .show-sm .text-center .mt-0 .mt-1..5 .mb-0 .w-full .nowrap
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --shelf: #faf9f6;
  --white: #ffffff;
  --ink: #141414;
  --ink-2: #2e2e2b;
  --grey: #62625e;
  --rule: #e6e4de;
  --rule-2: #d6d3cb;
  --soft: #f2f0eb;
  --red: #d42a1a;
  --red-dark: #9e1b10;
  --red-tint: #fdecea;
  --yellow: #ffd23f;
  --yellow-tint: #fff5d1;
  --ok: #1f7a4d;
  --ok-tint: #e6f3ec;
  --warn: #9a5b00;
  --warn-tint: #fbf0dc;
  --info: #24527a;
  --info-tint: #e8f0f7;

  --f-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-card: 12px;
  --r-ctl: 10px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, .06), 0 1px 1px rgba(20, 20, 20, .04);
  --shadow-md: 0 4px 14px rgba(20, 20, 20, .08), 0 1px 3px rgba(20, 20, 20, .06);
  --shadow-lg: 0 18px 48px rgba(20, 20, 20, .14), 0 4px 12px rgba(20, 20, 20, .06);
  --focus: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);

  --container: 1200px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--shelf);
  color: var(--ink);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.no-scroll { overflow: hidden; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
  font-family: var(--f-head);
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}
h1, .h1 { font-size: clamp(30px, 4.4vw, 46px); }
h2, .h2 { font-size: clamp(24px, 3vw, 34px); }
h3, .h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
h4, .h4 { font-size: 17px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
.eyebrow {
  font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red);
}
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--grey); }
.small { font-size: 14px; line-height: 1.5; }
.xsmall { font-size: 13px; line-height: 1.45; }
.num, .price { font-variant-numeric: tabular-nums; }
.price { font-family: var(--f-head); font-weight: 800; font-stretch: 105%; letter-spacing: -.01em; }
.link, .prose a { color: var(--red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover, .prose a:hover { color: var(--red-dark); text-decoration-thickness: 2px; }
.prose a.btn, .prose a.tile, .prose a.tile-card, .prose a.chip { text-decoration: none; }
.prose a.tile { color: var(--ink); }
.prose a.tile-card, .prose a.btn-primary, .prose a.btn-dark { color: #fff; }
.prose a.btn-secondary, .prose a.btn-ghost, .prose a.chip { color: var(--ink); }
.hl { background: var(--yellow); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
code, kbd, samp { font-family: var(--f-mono); font-size: .92em; }
code { background: var(--soft); border: 1px solid var(--rule); border-radius: 6px; padding: .08em .35em; }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose p { text-wrap: pretty; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 28px); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose strong { color: var(--ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(32px, 4.5vw, 56px); }
.section--white { background: var(--white); border-block: 1px solid var(--rule); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head > div { display: grid; gap: 8px; max-width: 64ch; }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-sm { display: grid; gap: 8px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }
.cluster { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.grid-3 { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-h); padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r-ctl);
  font: 600 15.5px/1.2 var(--f-body); letter-spacing: .005em;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--rule-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20, 20, 20, .06); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { --btn-h: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 9px; }
.btn-lg { --btn-h: 54px; padding: 0 26px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(20, 20, 20, .2); border-top-color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: transparent; border: 0; border-radius: var(--r-ctl); color: var(--ink);
}
.icon-btn:hover { background: rgba(20, 20, 20, .06); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.label .opt { font-weight: 400; color: var(--grey); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--white); color: var(--ink);
  border: 1.5px solid var(--rule-2); border-radius: var(--r-ctl);
  font-size: 16px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6b6b66; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b6ad; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .12); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.hint { font-size: 13.5px; color: var(--grey); }
.field-error { display: none; font-size: 13.5px; font-weight: 600; color: var(--red-dark); }
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--red); }
.field.is-invalid .field-error { display: block; }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; min-width: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 20px; height: 20px; border: 1.5px solid #9d9a91; border-radius: 5px; background: var(--white);
  display: grid; place-items: center; transition: background-color .15s, border-color .15s;
}
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg);
}
.check input[type="radio"]:checked { box-shadow: inset 0 0 0 4px var(--white); }

.radio-cards { display: grid; gap: 10px; }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.radio-card-body {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center;
  padding: 14px 16px; background: var(--white);
  border: 1.5px solid var(--rule-2); border-radius: var(--r-card);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.radio-card-body::before {
  content: ""; grid-row: 1 / span 2; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #9d9a91; background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.radio-card-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.radio-card-meta { grid-column: 2; font-size: 13.5px; color: var(--grey); line-height: 1.4; }
.radio-card-price { grid-column: 3; grid-row: 1 / span 2; font-family: var(--f-head); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.radio-card:hover .radio-card-body { border-color: #b9b6ad; }
.radio-card input:checked + .radio-card-body { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fffdf6; }
.radio-card input:checked + .radio-card-body::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--white); }
.radio-card input:focus-visible + .radio-card-body { box-shadow: var(--focus); }
.radio-card input:disabled + .radio-card-body { opacity: .5; cursor: not-allowed; }
.radio-cards--compact .radio-card-body { padding: 10px 14px; }

.copy-field { display: flex; align-items: stretch; background: var(--white); border: 1.5px solid var(--rule-2); border-radius: var(--r-ctl); overflow: hidden; }
.copy-field-value {
  flex: 1; min-width: 0; padding: 11px 14px; border: 0; background: transparent;
  font-family: var(--f-mono); font-size: 14.5px; line-height: 1.45; word-break: break-all; overflow-wrap: anywhere;
}
.copy-field-value:focus, .copy-field-value:focus-visible { outline: none; box-shadow: none; }
.copy-field .btn { border-radius: 0; border: 0; border-left: 1.5px solid var(--rule-2); min-height: 0; }
.copy-field:focus-within { border-color: var(--ink); }
[data-copy].is-copied { color: var(--ok); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 15px;
  background: var(--white); color: var(--ink); border: 1.5px solid var(--rule-2); border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .count { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 719px) {
  .chip-row--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: 2px; }
  .chip-row--scroll::-webkit-scrollbar { display: none; }
}
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  background: var(--soft); color: var(--ink-2); font-size: 12.5px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; white-space: nowrap;
}
.badge--yellow { background: var(--yellow); color: var(--ink); }
.badge--ok { background: var(--ok-tint); color: var(--ok); }
.badge--warn { background: var(--warn-tint); color: var(--warn); }
.badge--red { background: var(--red-tint); color: var(--red-dark); }
.badge--dark { background: var(--ink); color: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 14px; color: var(--grey); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: ""; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid #a9a69d; border-right: 1.5px solid #a9a69d; transform: rotate(45deg);
}
.breadcrumbs a { color: var(--grey); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-sm); }
@media (min-width: 720px) { .card { padding: 24px; } }
.card--pad-lg { padding: clamp(24px, 3.5vw, 36px); }
.card--flat { box-shadow: none; }
.card-title { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; }

/* ---------- Product tiles ---------- */
.tile-grid { display: grid; gap: 22px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (min-width: 1024px) { .tile-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; } }
.tile { display: grid; gap: 4px; align-content: start; min-width: 0; text-decoration: none; color: var(--ink); border-radius: var(--r-card); }
.tile:focus-visible { box-shadow: 0 0 0 4px var(--shelf), 0 0 0 6px var(--ink); }
.tile-card {
  --tile: #333;
  position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; margin-bottom: 8px;
  background: var(--tile); border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.tile-card::before { /* gloss */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 46%);
}
.tile-card::after { /* scrim keeps the white vendor label legible on any colour */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, .12) 22%, rgba(0, 0, 0, 0) 36%);
}
.tile:hover .tile-card { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .16), 0 2px 6px rgba(0, 0, 0, .08); }
.tile-logo { width: 32%; height: 52%; object-fit: contain; margin-top: -4%; }
.tile-logo--icon { width: 34%; height: 54%; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .22)); }
.tile-logo--mono { width: 50%; height: 40%; filter: brightness(0) invert(1); }
.tile-initials {
  margin-top: -4%; color: #fff; font-family: var(--f-head); font-weight: 800; font-stretch: 110%;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1; letter-spacing: -.03em; text-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.tile-vendor {
  position: absolute; left: 10px; bottom: 8px; right: 10px;
  color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.tile-name { font-family: var(--f-head); font-weight: 700; font-size: 15.5px; line-height: 1.25; letter-spacing: -.005em; }
.tile:hover .tile-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tile-meta { font-size: 13px; color: var(--grey); line-height: 1.35; }
.tile-price { margin-top: 2px; font-family: var(--f-head); font-weight: 800; font-size: 17px; font-stretch: 105%; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .tile-name { font-size: 16px; } .tile-vendor { font-size: 12px; left: 12px; bottom: 10px; } }

/* ---------- Search ---------- */
.search { position: relative; width: 100%; }
.search-field {
  display: flex; align-items: center; background: var(--white);
  border: 1.5px solid var(--rule-2); border-radius: var(--r-ctl);
  transition: border-color .15s, box-shadow .15s;
}
.search-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 20, 20, .1); }
.search-ico { flex: none; width: 18px; height: 18px; margin-left: 12px; color: var(--grey); }
.search-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 0; background: transparent; font-size: 16px;
  -webkit-appearance: none; appearance: none;
}
.search-input:focus, .search-input:focus-visible { outline: none; box-shadow: none; }
.search-input::placeholder { color: #6b6b66; }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-btn { flex: none; }
.search--header .search-btn { display: none; }
.search--hero .search-field { border: 2px solid var(--ink); border-radius: 14px; padding: 6px; box-shadow: var(--shadow-md); }
.search--hero .search-ico { width: 22px; height: 22px; margin-left: 10px; color: var(--ink); }
.search--hero .search-input { height: 50px; font-size: 17px; padding: 0 12px; }
.search--hero .search-btn { min-height: 50px; border-radius: 10px; }
.search--hero .search-field:focus-within { box-shadow: 0 0 0 4px var(--yellow); }
.search-pop {
  position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: 6px; margin: 0; list-style: none; max-height: min(70vh, 460px); overflow-y: auto;
}
.search-opt {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 8px 10px; border-radius: 9px; cursor: pointer; text-decoration: none; color: var(--ink);
}
.search-opt[aria-selected="true"], .search-opt:hover { background: var(--soft); }
.search-opt-ico {
  --tile: #333; width: 44px; height: 30px; border-radius: 6px; background: var(--tile); display: grid; place-items: center; overflow: hidden;
}
.search-opt-ico img { width: 56%; height: 70%; object-fit: contain; }
.search-opt-ico img.tile-logo--mono { filter: brightness(0) invert(1); width: 76%; height: 56%; }
.search-opt-ico .tile-initials { font-size: 13px; margin: 0; text-shadow: none; }
.search-opt-name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.search-opt-name mark { background: var(--yellow-tint); color: inherit; border-radius: 2px; }
.search-opt-sub { display: block; font-size: 13px; color: var(--grey); line-height: 1.3; }
.search-opt-price { font-family: var(--f-head); font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-opt--all { grid-template-columns: 44px minmax(0, 1fr); border-top: 1px solid var(--rule); border-radius: 0 0 9px 9px; margin-top: 4px; padding-top: 12px; }
.search-opt--all .search-opt-ico { background: var(--soft); color: var(--ink); }
.search-opt--all .search-opt-ico svg { width: 18px; height: 18px; }
.search-empty { padding: 14px 12px; font-size: 14.5px; color: var(--grey); }

/* ---------- Accordion ---------- */
.accordion { display: grid; border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.35; letter-spacing: -.005em;
}
.acc-q::-webkit-details-marker { display: none; }
.acc-q::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23141414' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  transition: transform .2s var(--ease), background-color .15s;
}
.acc-item[open] > .acc-q::after { transform: rotate(45deg); background-color: var(--yellow); }
.acc-q:hover { color: var(--red-dark); }
.acc-q:focus-visible { box-shadow: var(--focus); }
.acc-a { padding: 0 2px 20px; color: var(--ink-2); max-width: 72ch; }
.acc-a > * + * { margin-top: .7em; }
.acc-a a { color: var(--red); text-underline-offset: 3px; }

/* ---------- Alerts ---------- */
.alert {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-ctl);
  background: var(--info-tint); color: var(--ink-2); border-left: 4px solid var(--info); font-size: 15px; line-height: 1.5;
}
.alert strong:first-child { color: var(--ink); }
.alert--ok { background: var(--ok-tint); border-left-color: var(--ok); }
.alert--warn { background: var(--warn-tint); border-left-color: var(--warn); }
.alert--error { background: var(--red-tint); border-left-color: var(--red); }

/* ---------- Steps (numbered how-to) ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.step { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); }
.step-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 16px;
}
.step-title { font-family: var(--f-head); font-weight: 800; font-stretch: 106%; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.step-text { color: var(--grey); font-size: 15px; line-height: 1.55; }

/* ---------- Progress (checkout: Details → Payment → License) ---------- */
.progress { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; counter-reset: prog; }
.progress-step {
  counter-increment: prog; flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding-top: 10px; border-top: 3px solid var(--rule-2); color: var(--grey); font-size: 14px; font-weight: 600;
}
.progress-step::before {
  content: counter(prog); display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft); color: var(--grey); font-size: 13px; font-weight: 700;
}
.progress-step.is-done { border-top-color: var(--ok); color: var(--ink); }
.progress-step.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.progress-step[aria-current="step"] { border-top-color: var(--red); color: var(--ink); }
.progress-step[aria-current="step"]::before { background: var(--red); color: #fff; }

/* ---------- Misc components ---------- */
.table { width: 100%; font-size: 15px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.table thead th { background: var(--soft); font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--grey); }
.kv dd { margin: 0; text-align: right; font-weight: 600; }
.checklist { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-4.8' fill='none' stroke='%231f7a4d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.coin-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.coin { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.coin img { width: 22px; height: 22px; }
/* Coin logos drawn as a bare glyph (no disc of their own) get a soft disc, so every
   coin logo reads at the same visual size. Low specificity: components may override. */
:where(img)[src$="/coins/xrp.svg"], :where(img)[src$="/coins/xlm.svg"], :where(img)[src$="/coins/ada.svg"] {
  padding: 3px; background: var(--soft); border-radius: 50%;
}
.empty { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 48px 20px; text-align: center; background: var(--white); border: 1px dashed var(--rule-2); border-radius: var(--r-card); }
.empty h3 { font-size: 19px; }
.empty p { color: var(--grey); max-width: 46ch; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--rule-2); border-top-color: var(--red); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { height: 1px; background: var(--rule); border: 0; margin: 24px 0; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-ctl);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow .2s;
  padding-top: env(safe-area-inset-top, 0px);
}
.header-row { display: flex; align-items: center; gap: 12px; height: var(--header-h); transition: height .2s var(--ease); }
.site-header.is-compact { box-shadow: 0 4px 18px rgba(20, 20, 20, .07); }
.site-header.is-compact .header-row { height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; text-decoration: none; color: var(--ink); border-radius: 8px; }
.brand-mark { width: 30px; height: 30px; transition: width .2s, height .2s; }
.brand-word { font-family: var(--f-head); font-weight: 800; font-stretch: 108%; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.is-compact .brand-mark { width: 27px; height: 27px; }
.header-search { flex: 1; max-width: 420px; margin-left: 12px; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(20, 20, 20, .06); }
.nav-link[aria-current="page"], .nav-link.is-current { box-shadow: inset 0 -2px 0 var(--red); border-radius: 8px 8px 0 0; }
.header-track[aria-current="page"] { border-color: var(--ink); }
.nav-link svg { width: 14px; height: 14px; transition: transform .15s; }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; z-index: 70; min-width: 260px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 8px;
}
.nav-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--soft); }
.nav-menu a .nm-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--soft); flex: none; }
.nav-menu a:hover .nm-ico { background: var(--white); }
.nav-menu a .nm-ico svg { width: 18px; height: 18px; }
.nav-menu hr { border: 0; height: 1px; background: var(--rule); margin: 6px 4px; }
.nav-menu .nm-all { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.header-mobile { display: none; }
.mobile-search { padding-bottom: 12px; }
@media (max-width: 1023px) {
  :root { --header-h: 60px; }
  .header-search, .main-nav, .header-track { display: none; }
  .header-mobile { display: flex; margin-left: auto; gap: 2px; }
  .site-header.is-compact .header-row { height: 54px; }
}
@media (min-width: 1024px) { .mobile-search { display: none !important; } }
@media (min-width: 1024px) and (max-width: 1180px) { .header-search { max-width: 280px; } .nav-link { padding: 0 9px; } }

/* ---------- Language switcher (header dropdown + drawer group; links filled by tools/build.mjs) ---------- */
.lang-switch { flex: none; }
.lang-btn { gap: 5px; padding: 0 10px; }
.lang-btn .lang-globe { width: 18px; height: 18px; }
.lang-btn[aria-expanded="true"] .lang-globe { transform: none; }
.lang-code { font-size: 14px; letter-spacing: .02em; }
.lang-menu { left: auto; right: -8px; min-width: 196px; }
.lang-menu a { justify-content: space-between; }
.lang-menu a[aria-current] { color: var(--red); }
.lang-check { width: 16px; height: 16px; flex: none; }
@media (max-width: 1023px) { .lang-switch { display: none; } }
@media (min-width: 1024px) and (max-width: 1180px) { .lang-btn { padding: 0 8px; } }
.drawer-langs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 2px; }
.drawer-langs a {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; border: 1.5px solid transparent;
  background: var(--soft); border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); text-align: center;
}
.drawer-langs a:hover { border-color: var(--rule-2); }
.drawer-langs a[aria-current] { background: var(--white); border-color: var(--ink); }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, .45); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw);
  display: flex; flex-direction: column; background: var(--white); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s var(--ease);
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) 0;
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 8px 0 20px; border-bottom: 1px solid var(--rule); flex: none; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 12px 24px; display: grid; gap: 8px; align-content: start; }
.drawer-label { padding: 12px 10px 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--grey); }
.drawer-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 10px; border-radius: 9px; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.drawer-link:hover { background: var(--soft); }
.drawer-link[aria-current="page"] { color: var(--red); }
.drawer-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 2px; }
.drawer-cats a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; background: var(--soft); border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.25; }
.drawer-cats a svg { width: 18px; height: 18px; flex: none; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--rule); display: grid; gap: 10px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d8d3; margin-top: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; gap: 32px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 48px 36px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-block: 56px 40px; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; } .footer-brand { grid-column: auto; } }
.footer-brand { display: grid; gap: 14px; align-content: start; max-width: 40ch; }
.footer-brand .brand { color: #fff; }
.footer-brand p { font-size: 15px; line-height: 1.55; color: #bdbcb6; }
.footer-col h2 { font-family: var(--f-head); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a3a29c; margin-bottom: 14px; font-stretch: 100%; }
.footer-col ul { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 15px; }
.footer-pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 20px; border-top: 1px solid #2c2c2a; }
.footer-pay-label { font-size: 13.5px; color: #a3a29c; margin-right: 6px; }
.footer-pay img { width: 26px; height: 26px; padding: 3px; background: #fff; border-radius: 50%; }
@media (max-width: 420px) { .footer-pay { gap: 6px; } .footer-pay-label { margin-right: 2px; } .footer-pay img { width: 24px; height: 24px; } }
.footer-legal { display: grid; gap: 10px; padding-block: 20px 28px; border-top: 1px solid #2c2c2a; font-size: 13.5px; line-height: 1.55; color: #a3a29c; }
.footer-legal p { max-width: 100ch; }

/* ==========================================================================
   Home page sections (index.html). Reusable on other pages too.
   ========================================================================== */
/* overflow stays visible so the hero search suggestions can overlay the next section */
.hero { position: relative; overflow: visible; background: var(--shelf); isolation: isolate; border-bottom: 1px solid var(--rule); }
.hero::before { /* faint shelf grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 20, 20, .07) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent);
}
.hero::after { /* warm light behind the box */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 62% at 76% 52%, rgba(255, 210, 63, .30), rgba(255, 210, 63, 0) 70%);
}
.hero-inner { position: relative; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); align-items: center; padding-block: 18px 36px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: center; min-width: 0; }
.hero h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; letter-spacing: -.03em; font-stretch: 110%; }
.hero h1 .hl { white-space: nowrap; } /* same line breaks with the fallback font: no shift on font swap */
.hero .lede { max-width: 50ch; }
.hero .search { max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--grey); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.hero-art { min-width: 0; }
@media (max-width: 719px) {
  /* phones: the box opens above the headline as a wide, short banner */
  .hero::after { background: radial-gradient(ellipse 70% 32% at 50% 17%, rgba(255, 210, 63, .34), rgba(255, 210, 63, 0) 72%); }
  .hero-art { order: -1; margin-inline: calc(-1 * var(--gutter)); }
  .hero-ctas .btn { flex: 1 1 0; padding: 0 12px; }
  .search--hero .search-btn { padding: 0 14px; }
  .search--hero .search-ico { margin-left: 6px; }
  .search--hero .search-input { padding: 0 8px; }
}
@media (max-width: 359px) { .hero-ctas .btn { flex-basis: 100%; } }
@media (min-width: 720px) {
  .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 24px; padding-block: 40px 52px; }
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; padding-block: 48px 64px; }
  .hero-copy { gap: 20px; }
}

/* Unboxing illustration: back layer (svg) → tiles (html) → front layer (svg).
   Tiles sit at --x/--y (centre, unitless % of the art box) tilted by --r. On load
   they pop out of the box mouth (--mx/--my) one after another, then float. The pop
   uses transforms only (container units), so it never counts as a layout shift.
   --ar = art height / width. Phones use a wider, shorter art box: the svg layers
   keep their proportions (centred) and the tiles fan wider. */
.unbox {
  --mx: 50; --my: 63; --tw: 34; --ar: .9615;
  position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 520 / 500;
  container-type: inline-size;
}
.unbox-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.unbox-tiles { position: absolute; inset: 0; }
.unbox-tile {
  --x: 50; --y: 50; --r: 0deg; --s: 1; --d: 0s; --i: 0;
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: calc(var(--tw) * 1%);
  transform: translate(-50%, -50%) translate(0px, 0px) rotate(var(--r)) scale(var(--s));
  animation: ub-pop .95s cubic-bezier(.2, 1.3, .35, 1) calc(.12s + var(--i) * .11s) both;
}
.unbox-tile .tile-card { margin: 0; box-shadow: 0 18px 34px rgba(70, 12, 0, .28), 0 2px 6px rgba(0, 0, 0, .14); animation: ub-float 6s ease-in-out var(--d) infinite; }
.unbox-tile .tile-initials { font-size: clamp(18px, 3.2vw, 34px); }
.unbox-tile .tile-vendor { font-size: clamp(8.5px, 1vw, 11.5px); }
/* the two lower tiles stand inside the mouth (x 124-396 of 520): only a corner dips behind the rim */
.unbox-tile--el { --x: 37.5; --y: 52.5; --r: -9deg;  --d: -2.3s; --i: 0; --s: .8; }
.unbox-tile--er { --x: 62.5; --y: 51.5; --r: 9deg;   --d: -4.6s; --i: 1; --s: .8; }
.unbox-tile--l  { --x: 20;   --y: 33; --r: -15deg; --d: -1.2s; --i: 2; }
.unbox-tile--r  { --x: 80;   --y: 31; --r: 14deg;  --d: -3.4s; --i: 3; }
.unbox-tile--t  { --x: 50.5; --y: 15; --r: -3deg;  --d: -.4s;  --i: 4; --s: .96; }
.unbox-tile--el .tile-card, .unbox-tile--er .tile-card { animation-name: ub-rise; }
.unbox-back, .unbox-front { transform-origin: 50% 84%; animation: ub-box .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.unbox-glow { animation: ub-glow 5.5s ease-in-out infinite; transform-origin: 50% 64%; }
.unbox-rays { transform-box: view-box; transform-origin: 260px 300px; animation: ub-sway 9s ease-in-out infinite; }
.unbox-spark { animation: ub-twinkle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.unbox-spark:nth-of-type(2) { animation-delay: -1.2s; }
.unbox-spark:nth-of-type(3) { animation-delay: -2.4s; }
.unbox-spark:nth-of-type(4) { animation-delay: -.6s; }
.unbox-spark:nth-of-type(5) { animation-delay: -1.8s; }
@media (max-width: 959px) { .unbox { max-width: 440px; } }
@media (max-width: 719px) {
  .unbox { --my: 62; --tw: 29; --ar: .6923; max-width: 420px; aspect-ratio: 39 / 27; }
  .unbox-tile--el { --x: 38; --y: 50; }
  .unbox-tile--er { --x: 62; --y: 49; }
  .unbox-tile--l  { --x: 19; --y: 33; --r: -13deg; }
  .unbox-tile--r  { --x: 81; --y: 31; --r: 12deg; }
  .unbox-tile--t  { --x: 50; --y: 16; }
  .unbox-tile .tile-vendor { left: 7px; bottom: 5px; }
}
@keyframes ub-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(calc((var(--mx) - var(--x)) * 1cqw), calc((var(--my) - var(--y)) * var(--ar) * 1cqw)) rotate(0deg) scale(.35);
  }
  18% { opacity: 1; }
}
@keyframes ub-box { 0% { transform: scale(1.04, .9); } 100% { transform: none; } }
@keyframes ub-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes ub-rise { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ub-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes ub-sway { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes ub-twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }

/* How it works strip */
.how .step { padding: 24px; }
.how-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); }
.how-ico svg { width: 24px; height: 24px; }
.how-head { display: flex; align-items: center; justify-content: space-between; }
.how .step-num { background: var(--ink); width: 28px; height: 28px; font-size: 14px; }

/* Category shortcuts */
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } }
.cat-card {
  display: grid; gap: 10px; align-content: start; padding: 18px; min-height: 132px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-card);
  text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .2s, transform .2s var(--ease);
}
.cat-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.cat-card:hover .cat-ico { background: var(--yellow); }
.cat-ico svg { width: 22px; height: 22px; }
.cat-name { font-family: var(--f-head); font-weight: 800; font-stretch: 106%; font-size: 17px; line-height: 1.2; }
.cat-desc { font-size: 13.5px; color: var(--grey); line-height: 1.4; }
.cat-grid--last-wide > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 559px) {
  /* phones: one compact row per category (icon, name + description, chevron) */
  .cat-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .cat-card {
    position: relative; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; align-items: center;
    min-height: 64px; padding: 10px 40px 10px 12px;
  }
  .cat-card::after {
    content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
    border-top: 2px solid var(--grey); border-right: 2px solid var(--grey); transform: rotate(45deg);
  }
  .cat-ico { grid-row: 1 / span 2; width: 40px; height: 40px; }
  .cat-name { font-size: 16px; }
  .cat-desc { font-size: 13.5px; }
}
@media (min-width: 720px) { .cat-grid--last-wide > :last-child:nth-child(odd) { grid-column: auto; } }

/* Benefits strip */
.section--follow { padding-top: 0; }
.benefits { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; }
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefit { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--white); }
.benefit-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red-tint); color: var(--red-dark); margin-bottom: 4px; }
.benefit-ico svg { width: 20px; height: 20px; }
.benefit h3 { font-size: 17px; }
.benefit p { font-size: 14.5px; color: var(--grey); line-height: 1.5; }

/* FAQ block */
.faq-wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 56px; } }
.faq-aside { display: grid; gap: 14px; align-content: start; }

/* Teaser / CTA */
.teaser { display: grid; gap: 20px; align-items: center; grid-template-columns: minmax(0, 1fr); padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--rule); border-radius: 16px; }
@media (min-width: 820px) { .teaser { grid-template-columns: minmax(0, 1fr) auto; } }
.teaser-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cta-band { position: relative; overflow: hidden; display: grid; gap: 22px; padding: clamp(32px, 5vw, 56px); background: var(--red); color: #fff; border-radius: 18px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-top: 8px; }
.cta-band .btn-light { background: #fff; color: var(--ink); }
.cta-band .btn-light:hover { background: var(--yellow); }
.cta-band .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.cta-band .btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.cta-band-art { position: absolute; right: -40px; top: -50px; width: 260px; opacity: .12; pointer-events: none; }
.cta-band > :not(.cta-band-art) { position: relative; }

/* ---------- Utilities ---------- */
.visually-hidden, .sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
@media (max-width: 719px) { .hide-sm { display: none !important; } }
@media (min-width: 720px) { .show-sm { display: none !important; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .unbox-tile, .unbox-tile .tile-card, .unbox-back, .unbox-front, .unbox-glow, .unbox-rays, .unbox-spark { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .drawer, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* ---------- Touch targets: 44px minimum on touch screens ---------- */
@media (pointer: coarse) {
  .chip { min-height: 44px; }
  .footer-col ul { gap: 0; }
  .footer-col li a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn-sm { --btn-h: 44px; }
  .brand { min-height: 44px; }
  .breadcrumbs a { display: inline-block; padding-block: 11px; margin-block: -11px; }
}

/* ---------- Phone breadcrumbs: one line, long current page truncated ---------- */
@media (max-width: 599px) {
  .breadcrumbs { min-width: 0; max-width: 100%; }
  .breadcrumbs ol { flex-wrap: nowrap; }
  .breadcrumbs li { flex: none; }
  .breadcrumbs li + li::before { flex: none; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; }
  .breadcrumbs li:last-child [aria-current="page"] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
