/* Sales CY – price comparison UI.
   Near-black canvas, warm off-white type and a floating glass header (after daan1k.xyz).
   Product photos sit in light "image wells" so white-background shots look intentional;
   the only colour accent (mint) always means "cheapest / you save / freshly checked". */

@layer reset, base, layout, components, pages, utilities;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg { display: block; max-width: 100%; }
  input, button, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; width: 100%; }
  [hidden] { display: none !important; }
  dialog { padding: 0; border: 0; color: inherit; }
}

@layer base {
  :root {
    color-scheme: dark;
    --bg: #070708;
    --bg-raise: #0c0c0f;
    --surface: #111114;
    --surface-2: #17171b;
    --surface-3: #202026;
    --line: rgb(236 235 230 / .08);
    --line-2: rgb(236 235 230 / .14);
    --line-3: rgb(236 235 230 / .26);
    --text: #ecebe6;
    --muted: #a9adb3;
    --faint: #6f737a;
    --ink: #0b0b0d;
    --paper: #ecebe6;
    --well: #f4f3ef;
    --mint: #7fe0b4;
    --mint-soft: rgb(127 224 180 / .12);
    --amber: #e8b85c;
    --amber-soft: rgb(232 184 92 / .12);
    --red: #f07b6c;
    --red-soft: rgb(240 123 108 / .12);
    --radius-s: 8px;
    --radius: 14px;
    --radius-l: 22px;
    --pill: 999px;
    --wrap: 1240px;
    --gutter: clamp(16px, 3vw, 28px);
    --font: "Instrument Sans", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --script: "Allura", "Snell Roundhand", cursive;
    --t-fast: .18s;
    --t-med: .24s;
    --t-enter: .64s;
    --ease: cubic-bezier(.2, .7, .2, 1);
    --glass: linear-gradient(135deg, rgb(255 255 255 / .09), rgb(255 255 255 / .024) 48%, rgb(255 255 255 / 0)) rgb(16 16 19 / .86);
    --glass-ring: inset 0 0 0 1px rgb(255 255 255 / .09), inset 1px 1px 0 rgb(255 255 255 / .14), inset -1px -1px 0 rgb(0 0 0 / .2), 0 18px 50px -22px rgb(0 0 0 / .9);
  }
  html {
    background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 96px;
  }
  body {
    min-height: 100dvh; display: flex; flex-direction: column;
    background: radial-gradient(1100px 520px at 50% -180px, rgb(255 255 255 / .06), transparent 70%) no-repeat, var(--bg);
  }
  main { flex: 1; overflow-x: clip; } /* decorative glows never widen the page */
  h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.08; font-weight: 500; letter-spacing: -.028em; text-wrap: balance; }
  h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); line-height: 1.15; font-weight: 500; letter-spacing: -.015em; }
  h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.005em; }
  a { text-decoration: none; }
  :focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; border-radius: 4px; }
  ::selection { background: rgb(127 224 180 / .3); }
  svg:not([width]) { width: 1.15em; height: 1.15em; flex: none; }
  .skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: var(--pill); }
  .skip:focus { top: 8px; }
  #main:focus { outline: none; }
}

/* ------------------------------------------------------------ layout */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

  /* floating glass header */
  .hdr { position: sticky; top: 0; z-index: 40; padding-top: 10px; }
  .hdr__bar {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
    min-height: 60px; padding: 7px 8px 7px 22px; border-radius: var(--pill);
    background: var(--glass); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: var(--glass-ring);
  }
  .hdr__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--pill); color: var(--text); }
  .hdr__icon svg { width: 22px; height: 22px; }
  .hdr__icon:hover { background: rgb(255 255 255 / .07); }
  .logo {
    justify-self: start; font-family: var(--script); font-size: 2.15rem; line-height: 1; letter-spacing: 0; color: var(--text);
    padding: 2px 6px 0 0; white-space: nowrap; transition: opacity var(--t-fast);
  }
  .logo:hover { opacity: .8; }
  .hdr__links { display: flex; align-items: center; gap: 2px; }
  .hdr__link {
    display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 14px; border-radius: var(--pill);
    color: var(--muted); font-size: .9rem; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast);
  }
  .hdr__link svg { width: 18px; height: 18px; }
  .hdr__link:hover { color: var(--text); background: rgb(255 255 255 / .06); }
  .hdr__link[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .08); }
  .hdr__lang { font-weight: 600; color: var(--text); min-width: 46px; justify-content: center; }

  .hsearch {
    position: relative; display: flex; align-items: center; height: 46px; width: 100%; max-width: 640px; justify-self: center;
    background: rgb(255 255 255 / .05); border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line-2);
    transition: box-shadow var(--t-fast), background var(--t-fast);
  }
  .hsearch:focus-within { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 4px rgb(127 224 180 / .12); }
  .hsearch__icon { width: 18px; height: 18px; margin-left: 16px; color: var(--faint); }
  .hsearch__input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; padding: 0 10px; outline: none; font-size: 16px; color: var(--text); }
  .hsearch__input::placeholder { color: var(--faint); }
  .hsearch__input::-webkit-search-cancel-button { display: none; }
  .hsearch__clear { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--pill); color: var(--muted); }
  .hsearch__clear:hover { color: var(--text); background: rgb(255 255 255 / .07); }
  .hsearch__go {
    height: 36px; margin-right: 5px; padding: 0 18px; border-radius: var(--pill); background: var(--paper); color: var(--ink);
    font-weight: 500; font-size: .9rem; letter-spacing: .01em; transition: filter var(--t-fast);
  }
  .hsearch__go:hover { filter: brightness(.92); }
  .hsearch__go--icon { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; margin-right: 4px; }
  .hsearch__go--icon svg { width: 16px; height: 16px; }

  @media (max-width: 899px) {
    .hdr { padding-top: 8px; }
    .hdr__bar { grid-template-columns: auto auto 1fr; border-radius: var(--radius-l); padding: 6px 6px 8px 6px; row-gap: 6px; }
    .logo { font-size: 1.95rem; }
    .hsearch { grid-column: 1 / -1; grid-row: 2; max-width: none; height: 44px; }
    .hdr__bar { column-gap: 8px; }
    .hdr__links { justify-self: end; gap: 0; }
    .hdr__link { padding: 0 9px; }
    .hdr__link span { display: none; }
    .hdr__lang span { display: inline; }
    .hdr__lang { min-width: 40px; }
  }
  @media (max-width: 420px) {
    .hdr__link[data-nav="stores"] { display: none; }
    .logo { font-size: 1.75rem; }
  }
  @media (max-width: 340px) {
    .logo { font-size: 1.5rem; }
    .hdr__icon { width: 38px; }
  }
  @media (min-width: 900px) { .hdr__menu { display: none; } }

  /* category rail (scrolls with the page) */
  .cats { padding: 12px 0 2px; }
  .cats__wrap { position: relative; }
  .cats__row {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 1px 6px; scroll-behavior: smooth;
    --fade-l: 0px; --fade-r: 0px;
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
  }
  .cats__row::-webkit-scrollbar { display: none; }
  .cats__row.can-back { --fade-l: 56px; }
  .cats__row.can-fwd { --fade-r: 56px; }
  @media (prefers-reduced-motion: reduce) { .cats__row { scroll-behavior: auto; } }
  .cat-link {
    flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 12px; border-radius: var(--pill);
    background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
    font-size: .875rem; white-space: nowrap; transition: color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  }
  .cat-link svg { width: 17px; height: 17px; }
  .cat-link:hover { color: var(--text); background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--line-2); }
  .cat-link[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 500; }
  .cats__arrow {
    position: absolute; top: 2px; z-index: 2; display: none; place-items: center; width: 38px; height: 38px; border-radius: var(--pill);
    background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--glass-ring); color: var(--text);
  }
  .cats__arrow svg { width: 18px; height: 18px; }
  .cats__arrow--prev { left: 0; }
  .cats__arrow--prev svg { rotate: 180deg; }
  .cats__arrow--next { right: 0; }
  @media (hover: hover) and (min-width: 700px) { .cats__arrow:not([hidden]) { display: grid; } }

  /* footer */
  .ftr { margin-top: 72px; border-top: 1px solid var(--line); background: linear-gradient(var(--bg-raise), var(--bg)); }
  .ftr__grid { display: grid; gap: 28px; padding-block: 40px 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .ftr__grid > div { display: grid; gap: 8px; align-content: start; justify-items: start; }
  .ftr__grid a:not(.logo) { color: var(--muted); font-size: .92rem; transition: color var(--t-fast); }
  .ftr__grid a:not(.logo):hover { color: var(--text); }
  .ftr__h { font-size: .95rem; font-weight: 500; color: var(--text); margin-bottom: 4px; }
  .ftr__text { color: var(--muted); font-size: .88rem; max-width: 44ch; margin-top: 6px; }
  .ftr__small { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 16px 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; }
  .ftr__by { display: inline-flex; align-items: baseline; gap: 7px; color: var(--muted); transition: color var(--t-fast); }
  .ftr__by:hover { color: var(--text); }
  .ftr__script { font-family: var(--script); font-size: 1.75rem; line-height: .8; color: var(--text); }

  .page { padding-block: 22px 24px; }
  .crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .84rem; color: var(--faint); margin-bottom: 14px; }
  .crumbs a { color: var(--muted); transition: color var(--t-fast); }
  .crumbs a:hover { color: var(--text); }
  .crumbs svg { width: 12px; height: 12px; color: var(--faint); }
  .crumbs > span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

  /* two-column: filters + content */
  .with-side { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 1000px) { .with-side { grid-template-columns: 264px minmax(0, 1fr); align-items: start; } }
  @media (min-width: 1000px) { .with-side--end { grid-template-columns: minmax(0, 1fr) 300px; } }
  .side { display: none; }
  @media (min-width: 1000px) { .side { display: block; position: sticky; top: 96px; max-height: calc(100dvh - 116px); overflow: auto; scrollbar-width: thin; } }
}

/* ------------------------------------------------------------ components */
@layer components {
  /* search suggestions */
  .suggest {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 60; max-height: min(70dvh, 500px); overflow: auto;
    background: var(--surface); border-radius: var(--radius); padding: 6px;
    box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -18px rgb(0 0 0 / .9);
  }
  .suggest__group { padding: 10px 10px 4px; font-size: .76rem; color: var(--faint); font-weight: 500; }
  .suggest__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 6px 10px; border-radius: 10px; }
  .suggest__item--text { grid-template-columns: 1fr; }
  .suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--surface-3); }
  .suggest__img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: var(--well); padding: 3px; mix-blend-mode: normal; }
  .suggest__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
  .suggest__meta { font-size: .78rem; color: var(--muted); }
  .suggest__price { font-weight: 600; color: var(--text); white-space: nowrap; font-size: .93rem; font-variant-numeric: tabular-nums; }

  /* prices */
  .price { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.015em; }
  .price--lg { font-size: 1.7rem; line-height: 1.05; }
  .price--md { font-size: 1.2rem; line-height: 1.15; }
  .price--sm { font-size: 1rem; }
  .price--ink { color: var(--text); }
  .price--best { color: var(--mint); }
  .from { color: var(--faint); font-size: .82rem; font-weight: 400; margin-right: 5px; }
  .was { color: var(--faint); text-decoration: line-through; font-size: .84rem; font-variant-numeric: tabular-nums; }

  /* buttons: light pill = primary action, dark pill = secondary */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px;
    border-radius: var(--pill); font-weight: 500; font-size: .93rem; white-space: nowrap; letter-spacing: .005em;
    background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2);
    transition: background var(--t-fast), box-shadow var(--t-fast), filter var(--t-fast), transform var(--t-fast);
  }
  .btn:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-3); }
  .btn:active { transform: translateY(1px); }
  .btn svg { width: 16px; height: 16px; }
  .btn--shop, .btn--primary { background: var(--paper); color: var(--ink); box-shadow: none; min-width: 148px; }
  .btn--shop:hover, .btn--primary:hover { background: var(--paper); filter: brightness(.9); box-shadow: none; }
  .btn--ghost { background: transparent; }
  .btn--sm { min-height: 36px; padding: 0 14px; font-size: .86rem; }
  .btn--block { width: 100%; }
  .link { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
  .link:hover { text-decoration-color: var(--text); }
  .more { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .92rem; white-space: nowrap; transition: color var(--t-fast); }
  .more svg { width: 15px; height: 15px; transition: translate var(--t-fast); }
  .more:hover { color: var(--text); }
  .more:hover svg { translate: 2px 0; }

  /* badges */
  .badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--pill); font-size: .75rem; font-weight: 500;
    line-height: 1.6; white-space: nowrap; background: rgb(255 255 255 / .05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line);
  }
  .badge svg { width: 12px; height: 12px; }
  .badge--ok { background: var(--mint-soft); color: var(--mint); box-shadow: none; }
  .badge--warn { background: var(--amber-soft); color: var(--amber); box-shadow: none; }
  .badge--bad { background: var(--red-soft); color: var(--red); box-shadow: none; }
  .badge--best { background: var(--mint); color: var(--ink); box-shadow: none; font-weight: 600; }
  .badge--deal { background: var(--paper); color: var(--ink); box-shadow: none; font-weight: 600; }
  .badge--navy { background: rgb(255 255 255 / .08); color: var(--text); box-shadow: none; }
  .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
  .dot--fresh { background: var(--mint); box-shadow: 0 0 0 3px rgb(127 224 180 / .14); }
  .dot--aging { background: var(--amber); }
  .dot--stale, .dot--expired { background: var(--red); }
  .when { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; white-space: nowrap; }

  /* form controls */
  .field, .select {
    height: 40px; padding: 0 14px; border: 0; border-radius: var(--pill); background: rgb(255 255 255 / .05); color: var(--text);
    box-shadow: inset 0 0 0 1px var(--line-2); font-size: .93rem; min-width: 0; transition: box-shadow var(--t-fast);
  }
  .field::placeholder { color: var(--faint); }
  .select {
    padding-right: 34px; appearance: none; cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23a9adb3' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center / 15px, rgb(255 255 255 / .05);
  }
  .select option { background: var(--surface); color: var(--text); }
  .field:focus, .select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 4px rgb(127 224 180 / .12); }

  /* segmented toggle */
  .seg {
    display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--pill); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line);
    max-width: 100%; overflow-x: auto; scrollbar-width: none;
  }
  .seg a, .seg button {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: var(--pill); font-size: .87rem; color: var(--muted);
    white-space: nowrap; transition: color var(--t-fast), background var(--t-fast);
  }
  .seg a:hover, .seg button:hover { color: var(--text); }
  .seg svg { width: 16px; height: 16px; }
  .seg [aria-current="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }

  /* filter sidebar */
  .filters { background: var(--surface); border-radius: var(--radius); padding: 4px 16px 12px; box-shadow: inset 0 0 0 1px var(--line); }
  .fgroup { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .fgroup:last-child { border-bottom: 0; }
  .fgroup h3 { font-size: .9rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
  .fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .89rem; color: var(--muted); transition: color var(--t-fast); }
  .fopt:hover { color: var(--text); }
  .fopt:hover .fopt__box { box-shadow: inset 0 0 0 1.5px var(--line-3); }
  .fopt__box { width: 18px; height: 18px; flex: none; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; transition: background var(--t-fast); }
  .fopt__box svg { width: 13px; height: 13px; color: var(--ink); opacity: 0; }
  .fopt__box > span { background: var(--ink) !important; }
  .fopt[aria-checked="true"] { color: var(--text); }
  .fopt[aria-checked="true"] .fopt__box { background: var(--mint); box-shadow: none; }
  .fopt[aria-checked="true"] .fopt__box svg { opacity: 1; }
  .fopt--radio .fopt__box { border-radius: 50%; }
  .fopt__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fopt__n { color: var(--faint); font-size: .8rem; font-variant-numeric: tabular-nums; }
  .fmore summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .86rem; padding: 6px 0 2px; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .fmore summary:hover { color: var(--text); }
  .fmore summary::-webkit-details-marker { display: none; }
  .frange { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
  .frange .field { width: 100%; padding: 0 12px; }
  .frange .btn { min-height: 40px; padding: 0 14px; }

  /* toolbar above results */
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
  .toolbar__left, .toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .toolbar label, .toolbar .muted { font-size: .88rem; }
  .count { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
  .filters-btn { display: inline-flex; }
  @media (min-width: 1000px) { .filters-btn { display: none; } }

  /* chips (category shortcuts, active filters) */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .chips--scroll::-webkit-scrollbar { display: none; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: var(--pill); font-size: .86rem;
    white-space: nowrap; color: var(--muted); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line);
    transition: color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  }
  .chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
  .chip svg { width: 15px; height: 15px; }
  .chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: none; }
  .chip__n { color: var(--faint); font-size: .78rem; font-variant-numeric: tabular-nums; }
  .chip[aria-pressed="true"] .chip__n { color: #55565c; }
  .chip--remove { color: var(--text); background: rgb(255 255 255 / .08); box-shadow: none; }

  /* product card */
  .pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 214px), 1fr)); gap: 12px; }
  @media (max-width: 559px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
  .pcard {
    position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 8px 8px 14px;
    background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); color: var(--text);
    transition: box-shadow var(--t-fast), background var(--t-fast);
  }
  .pcard:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); }
  .pcard__img { position: relative; flex: none; aspect-ratio: 1; width: 100%; border-radius: 10px; background: var(--well); overflow: hidden; margin-bottom: 6px; isolation: isolate; }
  .pcard__img img { position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: scale var(--t-med) var(--ease); }
  .pcard:hover .pcard__img img { scale: 1.035; }
  .pcard__img .imgph { position: absolute; inset: 0; width: auto; height: auto; }
  .pcard__deal { position: absolute; top: 16px; left: 16px; z-index: 2; }
  .pcard__deal.badge--deal { background: var(--ink); color: var(--paper); font-size: .78rem; padding: 3px 10px; }
  .pcard__cat, .pcard__cat-name { padding-inline: 6px; font-size: .76rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pcard__title { padding-inline: 6px; font-weight: 500; font-size: .94rem; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pcard:hover .pcard__title { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .pcard__spec { padding-inline: 6px; font-size: .8rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; min-height: 1.2em; }
  .pcard__spec:empty { display: none; }
  .pcard__foot { margin-top: auto; padding: 8px 6px 0; display: grid; gap: 1px; }
  .pcard__offers { font-size: .78rem; color: var(--muted); }
  .pcard__shop { font-size: .78rem; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .imgph { width: 100%; height: 100%; display: grid; place-items: center; color: #b4b3ad; background: var(--well); }
  .imgph svg { width: 34%; height: 34%; max-width: 72px; max-height: 72px; }

  /* alert + share actions, dialogs (share.js) */
  .prod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .prod-actions .btn[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--mint); color: var(--mint); }
  .sheet { max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; }
  .sheet::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(2px); }
  .sheet__panel {
    position: fixed; left: 50%; top: 50%; translate: -50% -50%; width: min(calc(100vw - 24px), 440px); max-height: calc(100dvh - 24px); overflow: auto;
    border-radius: var(--radius-l); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--glass-ring);
  }
  .sheet[open] .sheet__panel { animation: sheet-in var(--t-med) var(--ease); }
  @keyframes sheet-in { from { opacity: 0; scale: .97; } }
  @media (prefers-reduced-motion: reduce) { .sheet[open] .sheet__panel { animation: none; } }
  @media (max-width: 559px) {
    .sheet__panel { top: auto; bottom: 8px; translate: -50% 0; }
    @keyframes sheet-in { from { opacity: 0; translate: -50% 14px; } }
  }
  .sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .sheet__body { padding: 16px 20px 20px; display: grid; gap: 14px; }
  .sheet__copy { display: flex; gap: 8px; }
  .sheet__copy .field { flex: 1; min-width: 0; }
  .sheet__apps { display: flex; flex-wrap: wrap; gap: 8px; }
  .alert-form { display: grid; gap: 12px; }
  .alert-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
  .alert-opt:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--mint); background: var(--mint-soft); }
  .alert-opt input[type="radio"] { accent-color: var(--mint); width: 18px; height: 18px; margin: 0; }
  .alert-price { display: inline-flex; align-items: center; gap: 6px; }
  .alert-price .field { width: 110px; }
  .hdr__alerts { position: relative; }
  .hdr__count {
    position: absolute; top: 3px; left: 24px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill);
    background: var(--mint); color: var(--ink); font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center;
  }
  .alert-list { display: grid; gap: 10px; }
  .alert-card { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .alert-card--hit { box-shadow: inset 0 0 0 1.5px var(--mint); }
  .alert-card__img { position: relative; aspect-ratio: 1; border-radius: 10px; background: var(--well); overflow: hidden; isolation: isolate; }
  .alert-card__img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
  .alert-card__img .imgph { position: absolute; inset: 0; }
  .alert-card__body { display: grid; gap: 3px; min-width: 0; }
  .alert-card__title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @media (max-width: 559px) { .alert-card { grid-template-columns: 56px minmax(0, 1fr); } .alert-card .btn { grid-column: 1 / -1; } }

  /* shopping malls (pages/malls.js) */
  .mall-filter { margin-bottom: 20px; }
  .mall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; align-items: start; }
  .mall { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px 18px 16px; border-radius: var(--radius-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
  .mall__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
  .mall__name { display: grid; gap: 3px; min-width: 0; }
  .mall__name h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
  .mall__name .xsmall { display: inline-flex; align-items: center; gap: 5px; }
  .mall__name .xsmall svg { width: 13px; height: 13px; flex: none; }
  .mall__count { flex: none; font-size: .8rem; color: var(--muted); padding: 4px 10px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
  .mall__count:empty { display: none; }
  .mall__shops { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
  .mall__shops li { max-width: 100%; min-width: 0; display: flex; }
  .mall-shop { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-height: 32px; padding: 4px 11px 4px 9px; border-radius: var(--pill); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .84rem; }
  .mall-shop span:not(.dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .mall-shop svg { width: 15px; height: 15px; flex: none; }
  .mall-shop .slogo { flex: none; }
  .mall-shop--known { color: var(--text); padding-left: 5px; transition: box-shadow var(--t-fast), background var(--t-fast); }
  .mall-shop--known:hover { background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px var(--line-3); }
  .mall-shop .dot { flex: none; }
  .mall__more summary { cursor: pointer; color: var(--muted); font-size: .86rem; margin-bottom: 8px; width: fit-content; }
  .mall__more summary:hover { color: var(--text); }
  .mall-shop__soon { flex: none; font-size: .7rem; font-weight: 500; color: var(--amber, #e9c46a); padding: 1px 7px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px currentColor; }
  .mall__eat p { line-height: 1.6; }
  .mall__source { margin-top: -4px; }
  .mall__source:empty { display: none; }
  .mall-gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
  .mall-gaps li { padding: 14px 16px; border-radius: var(--radius); background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px var(--line); }
  .mall-gaps p { margin-top: 4px; }
  .mall__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
  .mall__links .link { display: inline-flex; align-items: center; gap: 6px; }
  .mall__links svg { width: 15px; height: 15px; }

  /* install the app (install.js) */
  .ftr__install { margin-top: 10px; }
  .ftr__install svg { width: 18px; height: 18px; }
  .install-slot { margin-top: 36px; }
  .install-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border-radius: var(--radius-l); background: var(--glass); box-shadow: var(--glass-ring); }
  .install-card img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
  .install-card__text { display: grid; gap: 2px; flex: 1 1 180px; min-width: 0; }
  .install-card__go { display: flex; gap: 8px; flex-wrap: wrap; }
  .install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
  .install-steps li { display: flex; align-items: center; gap: 12px; }
  .install-steps__ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--surface-2, rgb(255 255 255 / .06)); box-shadow: inset 0 0 0 1px var(--line); }
  .install-steps__ico svg { width: 20px; height: 20px; }

  /* price-over-time charts (public/assets/chart.js) */
  .chart-card { margin-top: 36px; padding: 18px 20px 14px; border-radius: var(--radius-l); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .chart-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
  .chart-card__head h2 { font-size: 1.3rem; }
  .chart-card__head p { margin-top: 4px; }
  .tchart { display: grid; gap: 12px; }
  .tchart__controls { display: flex; flex-wrap: wrap; gap: 8px; }
  .seg--sm a, .seg--sm button { padding: 5px 12px; font-size: .82rem; }
  .tchart__plot { position: relative; min-height: 200px; border-radius: 10px; outline-offset: 4px; touch-action: pan-y; }
  .tchart__svg { display: block; width: 100%; overflow: visible; }
  .tchart__grid line { stroke: rgb(236 235 230 / .07); stroke-width: 1; shape-rendering: crispEdges; }
  .tchart__grid text { fill: var(--faint); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
  .tchart__hair { stroke: rgb(236 235 230 / .35); stroke-width: 1; shape-rendering: crispEdges; }
  .tchart__tip {
    position: absolute; top: 8px; z-index: 3; min-width: 170px; max-width: 280px; padding: 10px 12px; border-radius: 12px; pointer-events: none;
    background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 32px -12px rgb(0 0 0 / .8); display: grid; gap: 6px; font-size: .82rem;
  }
  .tchart__tipdate { color: var(--muted); font-size: .76rem; }
  .tchart__tiprow { display: grid; grid-template-columns: 14px auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .tchart__tiprow b { font-weight: 600; font-variant-numeric: tabular-nums; }
  .tchart__tiprow span:last-child { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tchart__line { display: inline-block; width: 14px; height: 2px; border-radius: 2px; }
  .tchart__legend { display: flex; flex-wrap: wrap; gap: 6px; }
  .tchart__legend:empty { display: none; }
  .tchart__key {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: var(--pill); font-size: .82rem; color: var(--muted);
    box-shadow: inset 0 0 0 1px var(--line); transition: color var(--t-fast), box-shadow var(--t-fast), opacity var(--t-fast);
  }
  .tchart__key b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
  .tchart__key:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
  .tchart__key[aria-pressed="false"] { opacity: .45; }
  .tchart__note:empty { display: none; }
  .tchart__table summary { cursor: pointer; color: var(--muted); font-size: .84rem; width: fit-content; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .tchart__table summary:hover { color: var(--text); }
  .tchart__table[open] summary { margin-bottom: 10px; }
  .tchart__table .table { max-height: 320px; overflow: auto; display: block; }
  .tchart__table .table thead, .tchart__table .table tbody { display: table; width: 100%; table-layout: fixed; }

  /* shop logos: the shop's own icon on a white tile, or a monogram */
  .slogo {
    flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; overflow: hidden;
    background: #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); vertical-align: middle;
  }
  .slogo img { width: 80%; height: 80%; object-fit: contain; }
  .slogo--s { width: 20px; height: 20px; border-radius: 6px; }
  .slogo--l { width: 64px; height: 64px; border-radius: 16px; }
  .slogo--mono {
    background: hsl(var(--hue, 200) 28% 20%); color: hsl(var(--hue, 200) 55% 82%); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
    font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1;
  }
  .slogo--s.slogo--mono { font-size: 8.5px; }
  .slogo--l.slogo--mono { font-size: 22px; }
  .shopname { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
  .shopname > b, .shopname > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pcard .shopname { display: flex; }
  .store-head { gap: 16px; }
  .store-head h1 { min-width: 0; }
  .suggest__item .shopname { vertical-align: middle; }
  .table .shopname { color: var(--text); }
  .table .shopname:hover b { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }

  /* panels, sections */
  .panel { background: var(--surface); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); }
  .section { margin-top: 56px; }
  .section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 18px; }
  .section__head > :first-child { min-width: 0; }
  @media (max-width: 559px) { .section__head .more { white-space: normal; } }
  .section__head p { margin-top: 6px; }
  .band { background: var(--bg-raise); border-block: 1px solid var(--line); padding-block: 40px 44px; margin-top: 56px; }
  .note {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / .03);
    box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .87rem;
  }
  .note svg { width: 18px; height: 18px; flex: none; color: var(--text); margin-top: 2px; }
  .note--warn { background: var(--amber-soft); box-shadow: none; color: #e9d3a8; }
  .note--warn svg { color: var(--amber); }
  .note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .empty { text-align: center; padding: 56px 16px; display: grid; justify-items: center; gap: 12px; color: var(--muted); }
  .empty svg { width: 40px; height: 40px; color: var(--faint); }
  .empty h2 { color: var(--text); }
  .empty p { max-width: 56ch; }
  .muted { color: var(--muted); }
  .small { font-size: .87rem; }
  .xsmall { font-size: .79rem; }

  /* tables */
  .table-wrap { overflow-x: auto; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: .9rem; }
  .table th { color: var(--faint); font-size: .78rem; font-weight: 500; white-space: nowrap; }
  .table tr:last-child td, .table tr:last-child th { border-bottom: 0; }
  .table tbody tr { transition: background var(--t-fast); }
  .table tbody tr:hover { background: rgb(255 255 255 / .025); }
  .table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .table .err { color: var(--muted); font-size: .8rem; max-width: 46ch; }

  /* skeletons */
  .sk { background: linear-gradient(90deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%) 0 0 / 300% 100%; border-radius: var(--radius); animation: sk 1.4s linear infinite; }
  @keyframes sk { to { background-position: -150% 0; } }
  @media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

  .toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); translate: -50% 0; z-index: 90; width: max-content; max-width: min(calc(100vw - 32px), 440px); text-align: center; background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 18px; font-size: .9rem; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .8); }

  /* drawers (categories, mobile filters) */
  .drawer { max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; }
  .drawer::backdrop { background: rgb(0 0 0 / .6); backdrop-filter: blur(2px); }
  .drawer__panel {
    position: fixed; inset: 8px auto 8px 8px; width: min(calc(100vw - 16px), 380px); display: flex; flex-direction: column;
    border-radius: var(--radius-l); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: var(--glass-ring); overflow: hidden;
  }
  .drawer[open] .drawer__panel { animation: drawer-in var(--t-med) var(--ease); }
  .drawer--right .drawer__panel { inset: 8px 8px 8px auto; }
  @keyframes drawer-in { from { opacity: 0; translate: -12px 0; } }
  .drawer--right[open] .drawer__panel { animation-name: drawer-in-r; }
  @keyframes drawer-in-r { from { opacity: 0; translate: 12px 0; } }
  @media (prefers-reduced-motion: reduce) { .drawer[open] .drawer__panel { animation: none; } }
  .drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .drawer__close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--pill); }
  .drawer__close:hover { background: rgb(255 255 255 / .07); }
  .drawer__close svg { width: 20px; height: 20px; }
  .drawer__body { overflow: auto; padding: 6px 16px 20px; flex: 1; }
  .drawer__foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
  .drawer__body .filters { background: none; padding: 0; box-shadow: none; }
  .drawer-cat { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
  .drawer-cat svg { width: 20px; height: 20px; color: var(--muted); }
}

/* ------------------------------------------------------------ pages */
@layer pages {
  /* home */
  .home-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 34px 8px; align-items: center; }
  @media (min-width: 1100px) { .home-hero { grid-template-columns: minmax(0, 1fr) 400px; gap: 56px; } }
  .hero__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }

  /* hero: a real comparison, tilted like a device on a desk */
  .spot {
    position: relative; display: grid; gap: 16px; padding: 18px; border-radius: var(--radius-l); color: var(--text);
    background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: var(--glass-ring);
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg); transition: transform var(--t-enter) var(--ease);
  }
  .spot::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; background: radial-gradient(closest-side, rgb(127 224 180 / .13), transparent 72%); pointer-events: none; }
  .spot:hover { transform: none; }
  @media (max-width: 1099px) { .spot { transform: none; max-width: 520px; } }
  @media (prefers-reduced-motion: reduce) { .spot, .spot:hover { transform: none; } }
  .spot__top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; }
  .spot__img { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--well); overflow: hidden; isolation: isolate; }
  .spot__img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
  .spot__head { display: grid; gap: 3px; min-width: 0; }
  .spot__k { font-size: .76rem; color: var(--mint); }
  .spot__title { font-weight: 500; font-size: 1.05rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .spot__list { list-style: none; padding: 0; display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
  .spot__list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: .92rem; }
  .spot__list li.is-best { background: var(--mint-soft); }
  .spot__list li.is-best .price { color: var(--mint); }
  .spot__rank { color: var(--faint); font-variant-numeric: tabular-nums; font-size: .82rem; }
  .spot__shop { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
  .is-best .spot__shop { color: var(--text); }
  .spot__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
  .hero__by { color: var(--muted); font-size: .95rem; }
  .hero__script { font-family: var(--script); font-weight: 400; font-size: clamp(4.5rem, 2.6rem + 9vw, 9.5rem); line-height: .82; letter-spacing: 0; margin: 4px 0 -2px -4px; background: linear-gradient(180deg, #f6f5f1 20%, #9c9ea3 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .home-hero h1 { max-width: 19ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
  .home-hero p { color: var(--muted); max-width: 58ch; font-size: clamp(1rem, .95rem + .3vw, 1.12rem); }
  .hero__search { display: flex; align-items: center; gap: 8px; max-width: 680px; height: 60px; padding: 0 7px 0 22px; margin-top: 10px; border-radius: var(--pill); background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast); }
  .hero__search:focus-within { box-shadow: inset 0 0 0 1px var(--line-3), 0 0 0 5px rgb(127 224 180 / .1); }
  .hero__search svg { width: 20px; height: 20px; color: var(--faint); }
  .hero__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 1.05rem; color: var(--text); }
  .hero__search input::placeholder { color: var(--faint); }
  .hero__search .btn { min-height: 46px; padding: 0 24px; }
  .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 40%), 1fr)); gap: 18px 28px; max-width: 860px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
  .stat { display: grid; gap: 2px; }
  .stat b { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
  .stat span { color: var(--faint); font-size: .86rem; }
  .stat--live b { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; height: 2.4rem; color: var(--muted); }
  @media (prefers-reduced-motion: no-preference) {
    .hero__main > *, .spot { animation: rise var(--t-enter) var(--ease) both; }
    .hero__main > :nth-child(2) { animation-delay: 60ms; }
    .hero__main > :nth-child(3) { animation-delay: 120ms; }
    .hero__main > :nth-child(4) { animation-delay: 180ms; }
    .hero__main > :nth-child(5) { animation-delay: 240ms; }
    .hero__main > :nth-child(6) { animation-delay: 300ms; }
    .spot { animation-delay: 380ms; }
  }
  @keyframes rise { from { opacity: 0; translate: 0 16px; } }

  .circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 48px; }
  @media (min-width: 1100px) { .circles { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
  @media (max-width: 699px) { .circles { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 132px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; } .circles::-webkit-scrollbar { display: none; } }
  .circle {
    display: grid; gap: 14px; padding: 16px 16px 14px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
    font-size: .9rem; color: var(--muted); transition: background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
  }
  .circle__ring { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgb(255 255 255 / .06); color: var(--text); }
  .circle__ring svg { width: 20px; height: 20px; }
  .circle:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-3); color: var(--text); }
  .two-col { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
  @media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
  .mini-table td, .mini-table th { padding: 12px 16px; }
  .mini-table a { color: var(--text); }
  .mini-table a:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .steps { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .step { padding: 22px; display: grid; gap: 8px; align-content: start; }
  .step__n { font-size: 2.6rem; font-weight: 400; line-height: 1; letter-spacing: -.03em; color: var(--faint); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
  .step p { color: var(--muted); font-size: .92rem; }

  /* search results */
  .res-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
  .res-head h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); }
  .res-head h1 small { font-size: .95rem; font-weight: 400; color: var(--faint); margin-left: 8px; letter-spacing: 0; white-space: nowrap; }
  .res-head > p { color: var(--muted); max-width: 70ch; }
  .fuel-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 16px; margin-bottom: 16px; }
  .fuel-strip a { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text); }

  /* product page */
  .prod-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
  @media (min-width: 900px) { .prod-top { grid-template-columns: 320px minmax(0, 1fr); } }
  @media (min-width: 1200px) { .prod-top { grid-template-columns: 380px minmax(0, 1fr); gap: 40px; } }
  .prod-img { position: relative; aspect-ratio: 1; border-radius: var(--radius-l); background: var(--well); overflow: hidden; isolation: isolate; }
  .prod-img img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
  .prod-img .imgph { position: absolute; inset: 0; }
  @media (max-width: 899px) { .prod-img { max-width: 300px; width: 100%; justify-self: center; } }
  .prod-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; container-type: inline-size; }
  .prod-info h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
  .facts { display: flex; flex-wrap: wrap; gap: 6px; }
  /* lowest price | how it compares | shop button; stacked when the column is narrow */
  .summary {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px 26px; padding: 20px 22px; border-radius: var(--radius-l);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2);
  }
  .summary__facts { display: grid; gap: 2px; min-width: 0; }
  @container (max-width: 620px) {
    .summary { grid-template-columns: minmax(0, 1fr); }
    .summary .btn--shop { width: 100%; }
  }
  .summary__best { display: grid; gap: 4px; min-width: 0; }
  .summary__best .price { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.7rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; }
  .summary__label { font-size: .82rem; color: var(--mint); font-weight: 500; display: inline-flex; align-items: center; gap: 7px; }
  .summary__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgb(127 224 180 / .14); }
  .summary .btn--shop { min-height: 48px; padding: 0 26px; font-size: 1rem; }
  .save { color: var(--mint); font-weight: 500; }
  .variants { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .variant { flex: none; min-width: 124px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 2px; font-size: .85rem; color: var(--text); transition: box-shadow var(--t-fast); }
  .variant:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
  .variant[aria-current="true"] { box-shadow: inset 0 0 0 1.5px var(--paper); }
  .variant .price { font-size: .95rem; }
  .history { padding: 18px; display: grid; gap: 10px; align-content: start; }
  .history h2 { font-size: .95rem; font-weight: 500; }
  .spark { width: 100%; height: 110px; }
  .spark .line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .spark .area { fill: rgb(127 224 180 / .1); }
  .spark text { fill: var(--faint); font-size: 11px; font-family: var(--font); }

  .cmp { margin-top: 36px; border-radius: var(--radius-l); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 96px; }
  .cmp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .cmp__head h2 { font-size: 1.3rem; }
  .cmp__head h2 .muted { font-size: .9rem; letter-spacing: 0; color: var(--faint); }
  @media (max-width: 599px) {
    .cmp__head { padding: 16px 14px; }
    .cmp__head .row { width: 100%; min-width: 0; }
    .cmp__head .seg { display: flex; width: 100%; }
    .cmp__head .seg a { flex: 1 1 0; justify-content: center; text-align: center; white-space: normal; padding: 7px 8px; line-height: 1.2; }
  }
  .cmp__cols { display: none; }
  @media (min-width: 900px) {
    .cmp__cols, .offer { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(150px, 1.2fr) minmax(0, 1.5fr) minmax(0, 1.3fr) 168px; gap: 18px; align-items: center; }
    .cmp__cols { padding: 10px 20px; font-size: .76rem; color: var(--faint); border-bottom: 1px solid var(--line); }
  }
  .offer { position: relative; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background var(--t-fast); }
  .offer:last-child { border-bottom: 0; }
  .offer:hover { background: rgb(255 255 255 / .02); }
  .offer--best { background: linear-gradient(90deg, rgb(127 224 180 / .07), transparent 60%); }
  .offer--best::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--mint); }
  .offer--suspect { opacity: .6; }
  .offer__title a { font-weight: 500; color: var(--text); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .offer__title a:hover { text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
  .offer__title .facts { margin-top: 8px; }
  .offer__price { display: grid; gap: 3px; justify-items: start; }
  .offer__price .price { font-size: 1.4rem; }
  .offer--best .offer__price .price { color: var(--mint); }
  .offer__fee { font-size: .8rem; color: var(--muted); }
  .offer__avail { display: grid; gap: 5px; font-size: .84rem; }
  .offer__avail .row { display: flex; align-items: center; gap: 6px; }
  .offer__avail svg { width: 15px; height: 15px; color: var(--muted); }
  .offer__shop { display: grid; gap: 3px; }
  .offer__shop b { font-size: .96rem; font-weight: 600; color: var(--text); }
  .offer__shop a { color: var(--muted); font-size: .8rem; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
  .offer__shop a:hover { color: var(--text); }
  .offer__go { display: grid; gap: 4px; justify-items: stretch; }
  @media (max-width: 899px) {
    .offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; padding: 16px 14px; }
    .offer__title { grid-column: 1 / -1; order: 2; }
    .offer__shop { order: 0; }
    .offer__price { order: 1; justify-items: end; text-align: right; }
    .offer__avail { order: 3; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; }
    .offer__go { order: 4; grid-column: 1 / -1; }
  }

  /* fuel */
  .fuel-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 16px; }
  .kpis { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .kpi { padding: 16px 18px; display: grid; gap: 4px; }
  .kpi span { font-size: .8rem; color: var(--faint); }
  .kpi b, .kpi .price { font-size: 1.7rem; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
  .kpi:first-child .price { color: var(--mint); }
  .brand-tag { display: inline-block; padding: 1px 8px; border-radius: var(--pill); background: rgb(255 255 255 / .08); color: var(--text); font-size: .72rem; font-weight: 600; letter-spacing: .03em; margin-right: 8px; }
  .rank { font-weight: 500; color: var(--faint); font-variant-numeric: tabular-nums; }
  tr:first-child .rank { color: var(--mint); }
  @media (max-width: 699px) {
    .table--stack thead { display: none; }
    .table--stack tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .table--stack td { padding: 0; border: 0; }
    .table--stack td[data-col="rank"] { grid-row: span 3; align-self: center; }
    .table--stack td[data-col="price"] { grid-row: span 3; align-self: center; text-align: right; }
    .table--stack td[data-col="addr"], .table--stack td[data-col="when"] { grid-column: 2; }
    .table--list, .table--list tbody { display: block; }
    .table--list thead { display: none; }
    .table--list tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .table--list tr:last-child { border-bottom: 0; }
    .table--list td { padding: 0; border: 0; text-align: left; }
    .table--list td:first-child, .table--list td.err { flex: 1 1 100%; max-width: none; }
    .table--list td:empty { display: none; }
    .table--list td[data-label]::before { content: attr(data-label) " "; color: var(--faint); font-size: .76rem; }
  }
  .district-bars { display: grid; gap: 10px; }
  .dbar { display: grid; grid-template-columns: 7rem 1fr auto; gap: 12px; align-items: center; font-size: .87rem; color: var(--muted); transition: color var(--t-fast); }
  .dbar:hover { color: var(--text); }
  .dbar b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
  .dbar__track { display: block; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .06); overflow: hidden; }
  .dbar__fill { display: block; height: 100%; background: var(--paper); opacity: .7; border-radius: 3px; }

  /* stores, coverage */
  .tabs { display: flex; gap: 4px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: var(--pill); background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; max-width: 100%; }
  .tabs a { padding: 8px 16px; border-radius: var(--pill); color: var(--muted); white-space: nowrap; font-size: .92rem; transition: color var(--t-fast), background var(--t-fast); }
  .tabs a:hover { color: var(--text); }
  .tabs a[aria-current="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
  .status { display: inline-flex; align-items: center; gap: 7px; font-size: .83rem; white-space: nowrap; color: var(--muted); }
  .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
  .status--live { color: var(--text); }
  .status--live::before { background: var(--mint); box-shadow: 0 0 0 3px rgb(127 224 180 / .14); }
  .status--stale::before { background: var(--amber); }
  .status--error::before, .status--blocked::before { background: var(--red); }
  .status--directory::before { background: #55585e; }
  .bars { display: grid; gap: 14px; }
  .bar { display: grid; gap: 6px; }
  .bar__head { display: flex; justify-content: space-between; font-size: .88rem; }
  .bar__track { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: rgb(255 255 255 / .06); }
  .bar__track i { display: block; height: 100%; }
  .s-live { background: var(--mint); }
  .s-stale { background: var(--amber); }
  .s-error { background: var(--red); }
  .s-blocked { background: #a3473c; }
  .s-planned { background: #4a4d53; }
  .s-directory { background: #34363b; }
  .legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .79rem; color: var(--muted); }
  .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .prose { max-width: 72ch; display: grid; gap: 14px; color: var(--muted); }
  .prose h2, .prose h3, .prose strong, .prose b { color: var(--text); }
  .prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
  .prose a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
}

@layer utilities {
  .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .spread { justify-content: space-between; }
  .stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mt-s { margin-top: 8px; }
  .mt-m { margin-top: 18px; }
  .nowrap { white-space: nowrap; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
