/* Real Deal, Eh? — "Price report" look (chosen 2026-11-20, see docs/DESIGN.md). */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  --ground: #f2f3f5;
  --surface: #ffffff;
  --ink: #101418;
  --ink-2: #2b3138;
  --muted: #5b626b;
  --line: #dfe2e6;
  --band: #eceef1;
  --real: #0b6b37;
  --ripoff: #b42318;
  --on-verdict: #ffffff;
  --btn: #101418;
  --on-btn: #ffffff;
  --radius: 20px;
  --radius-inner: 12px;
  --display: "Schibsted Grotesk", -apple-system, "SF Pro Display", "Segoe UI Variable Display", system-ui, sans-serif;
  --text: -apple-system, "SF Pro Text", "Segoe UI Variable Text", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0c0e;
    --surface: #17191d;
    --ink: #f3f4f6;
    --ink-2: #d3d7dc;
    --muted: #a1a8b1;
    --line: #2a2e34;
    --band: #24272c;
    --real: #3fbf75;
    --ripoff: #ff6b5b;
    --on-verdict: #0b0c0e;
    --btn: #f3f4f6;
    --on-btn: #0b0c0e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.4 var(--text);
}

a { color: inherit; }

.wrap {
  max-width: 40rem;
  margin: 0 auto;
}

header.top {
  padding: 22px 16px 18px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px; /* a brand bar, so the question below is the headline */
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.lang:hover { text-decoration: underline; text-underline-offset: 3px; }

/* The question every visitor arrives with. */
.lede {
  margin: 14px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.tagline {
  margin: 8px 0 0;
  color: var(--ink-2);
  text-wrap: pretty;
}


/* Explains the chart once, instead of a caption on every card. */
.legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -12px 4px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  text-wrap: pretty;
}
.legend .swatch {
  flex-shrink: 0;
  width: 28px;
  height: 10px;
  margin-top: 4px;
  border-radius: 3px;
  margin-left: 4px;
  background: var(--band);
  /* sits on a card-coloured edge, as the band does inside a card */
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}

#channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.section-label {
  margin: 0;
  padding: 0 16px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

#deals {
  display: grid;
  gap: 28px;
  padding: 0 12px;
}

/* Category bar: sticks to the top while browsing, scrolls sideways on phones. */
.shelves {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
/* The page's one glass surface: cards slide under the bar instead of being cut off. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .shelves {
    background: color-mix(in srgb, var(--ground) 78%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
  }
}
.shelves::-webkit-scrollbar { display: none; }
.shelves[hidden] { display: none; }

.shelf-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 15px/1 var(--text);
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.shelf-chip:active { transform: scale(0.97); }
.shelf-chip .count { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }
.shelf-chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.shelf-chip[aria-pressed="true"] .count { color: inherit; opacity: 0.7; }
.shelf-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Section headings: Best deal, Shop by category, All deals. */
.sec-h {
  margin: 0;
  padding: 0 16px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.sec-sub {
  margin: 2px 16px 10px;
  font-size: 13px;
  color: var(--muted);
}
.list-h { margin: 0 0 10px; }

.best { margin-bottom: 22px; }
/* Featured deals: a sideways row that snaps card by card; the next card peeks in as the hint. */
.best-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 12px;
  padding: 2px 12px 14px; /* room for the shadow */
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.best-row::-webkit-scrollbar { display: none; }
.best-row .card {
  flex: 0 0 min(86%, 340px);
  scroll-snap-align: start;
}
.best-row .card:only-child { flex-basis: 100%; }
.card.is-featured {
  box-shadow: 0 1px 2px rgb(16 20 24 / 0.06), 0 10px 30px rgb(16 20 24 / 0.08);
}
.card.is-featured h3 { font-size: 24px; }
.card.is-featured .off-n { font-size: 40px; }
@media (prefers-color-scheme: dark) {
  .card.is-featured { box-shadow: 0 0 0 1px var(--line); }
}

/* Shop by category: big tiles, 2 across on phones, 3 when there's room. */
.cats { margin-bottom: 30px; }
.cats .sec-h { margin-bottom: 10px; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px;
}
/* A leftover tile in the last row takes the whole row instead of sitting alone. */
.cat-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tile:last-child:nth-child(odd) { grid-column: auto; }
  .cat-tile:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
.cat-tile {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  min-height: 118px;
  padding: 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.cat-tile:active { transform: scale(0.97); }
.cat-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cat-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 8px; /* concentric with the tile: 20 - 14 ≈ 6, nudged for the icon */
  background: var(--band);
  color: var(--ink-2);
}
.cat-ico svg { width: 26px; height: 26px; }
.cat-name { font-weight: 650; font-size: 17px; line-height: 1.2; text-wrap: balance; }
.cat-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.shelf-chip svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-2); }
.shelf-chip[aria-pressed="true"] svg { color: inherit; }

/* Sort / filter row: native selects styled as pills, with a drawn chevron. */
.filters {
  display: flex;
  gap: 8px;
  margin: -4px 0 18px;
  padding: 2px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.pick { position: relative; display: inline-flex; flex-shrink: 0; }
.pick::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 11px;
  height: 7px;
  margin-top: -3px;
  background: var(--muted);
  clip-path: polygon(0 0, 50% 100%, 100% 0, 82% 0, 50% 62%, 18% 0);
  pointer-events: none;
}
.pick select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  max-width: 100%;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.2 var(--text); /* 16px keeps iOS from zooming in */
  cursor: pointer;
}
.pick select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.result {
  margin: -10px 16px 16px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.result:empty { display: none; }

/* Today vs the usual price, the number the chart below proves. */
.off {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 -4px;
}
.off-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.off-l { font-size: 14px; color: var(--muted); }
.off.is-weak .off-n { font-size: 22px; color: var(--ink-2); }

.empty .see-all { margin-top: 12px; padding: 0 18px; }

.shelf {
  display: grid;
  gap: 12px;
}
.shelf-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.see-all {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-inner);
  background: transparent;
  color: var(--ink);
  font: 600 16px/1.2 var(--text);
  cursor: pointer;
  transition: transform 120ms var(--ease-out);
}
.see-all:active { transform: scale(0.98); }
.see-all:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .see-all:hover { background: var(--surface); }
}
.shelf-h .count {
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-margin-top: 76px; /* clears the sticky category bar */
}
.card:target { outline: 2px solid var(--ink); outline-offset: 2px; }

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.meta .num { font-weight: 700; color: var(--ink); }
.meta .store { margin-right: auto; font-weight: 700; color: var(--ink); }
/* Where the price history comes from, for cards that aren't from camelcamelcamel. */
.note { margin: 0; font-size: 13px; color: var(--muted); }

/* Icon tile + product name. The tile is a neutral "shelf slot", never a verdict colour. */
.head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tile {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--band);
  color: var(--ink-2);
}
.tile svg { display: block; width: 28px; height: 28px; }
/* A real photo replaces the icon: a bit bigger so the product is recognisable, white mat in both themes. */
.tile.is-photo { width: 72px; height: 72px; overflow: hidden; background: #fff; }
.tile.is-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.credit a { color: inherit; }

.card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.verdict {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-2);
}
.badge {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 1px 8px;
  border-radius: 6px;
  color: var(--on-verdict);
}
.is-real .badge { background: var(--real); }
.is-ripoff .badge { background: var(--ripoff); }

.chart { margin: 4px 0 0; }
.chart svg { display: block; width: 100%; height: auto; max-height: 96px; overflow: visible; }
.chart .band { fill: var(--band); }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .now { stroke: none; }
.is-real .chart .now { fill: var(--real); }
.is-ripoff .chart .now { fill: var(--ripoff); }
.chart .spike { fill: none; stroke: var(--ripoff); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.alt {
  border-top: 1px solid var(--band);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alt p { margin: 0; font-size: 15px; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-inner);
  background: var(--btn);
  color: var(--on-btn);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 120ms var(--ease-out), opacity 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { opacity: 0.88; }
}

.us {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--muted);
}

a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

/* The one line of evidence for why the site exists, under the tagline. */
.study {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--band);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.study a { display: inline-block; padding: 4px 0; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

footer {
  padding: 20px 16px 40px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
footer p { margin: 0 0 6px; }
footer .assoc { color: var(--ink-2); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .btn, .shelf-chip, .see-all, .cat-tile { transition: none; }
  .btn:active, .shelf-chip:active, .see-all:active, .cat-tile:active { transform: none; }
}

/* ===========================================================================
   Larger screens (2026-11-21). The phone layout above is untouched: everything
   below only applies from 768 px. Tablet: wider gutters, 2-up cards, a bigger
   question. Desktop (1024+): the question beside the study, the three best deals
   side by side above the fold, category tiles in one row, and a sticky side rail
   (categories + "Sale ends soon") next to a grid of deals.
   =========================================================================== */
@media (min-width: 768px) {
  .wrap { max-width: none; }
  header.top { padding: 28px 28px 24px; }
  .lede { margin-top: 18px; font-size: 44px; }
  .tagline { max-width: 38em; font-size: 18px; }
  .study { max-width: 52em; }

  .sec-h { padding: 0 28px; font-size: 26px; }
  .sec-sub { margin: 4px 28px 14px; font-size: 14px; }
  .list-h { margin-bottom: 12px; }

  /* Two full cards and a peek of the third; the row still snaps card by card. */
  .best { margin-bottom: 30px; }
  .best-row { gap: 16px; padding: 2px 24px 16px; scroll-padding: 0 24px; }
  .best-row .card { flex-basis: calc(50% - 40px); }

  .cats { margin-bottom: 36px; }
  .cats .sec-h { margin-bottom: 14px; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 24px; }
  .cat-tile:last-child:nth-child(odd),
  .cat-tile:last-child:nth-child(3n + 1) { grid-column: auto; }

  .shelves { padding: 8px 24px; }
  .filters { padding: 2px 24px; }
  .result { margin: -10px 28px 16px; }
  .legend { margin: -12px 4px 0; }

  /* Deals two across. Cards in a row share a height and their buttons line up. */
  #deals { gap: 36px; padding: 0 24px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
  .shelf > .shelf-h { grid-column: 1 / -1; font-size: 22px; }
  .shelf:has(> .see-all) > .shelf-h { grid-column: 1 / -2; }
  /* "See all" moves up beside the shelf name, so the grid ends on cards. */
  .shelf > .see-all {
    grid-row: 1;
    grid-column: -2 / -1;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 6px 0 12px;
    border: 0;
    font-size: 15px;
  }
  .shelf > .see-all::after {
    content: "";
    width: 7px;
    height: 11px;
    background: currentColor;
    clip-path: polygon(0 0, 100% 50%, 0 100%, 0 82%, 62% 50%, 0 18%);
  }
  .card > .btn, .card > .alt { margin-top: auto; }
  .card > .btn ~ .us { margin-top: -6px; }

  footer { padding: 28px 28px 48px; }
  footer p { max-width: 46em; }

  @media (hover: hover) and (pointer: fine) {
    .cat-tile:hover { box-shadow: inset 0 0 0 1px var(--line); }
    .shelf > .see-all:hover { background: transparent; text-decoration: underline; text-underline-offset: 3px; }
  }
}

@media (min-width: 1024px) {
  .wrap { max-width: 80rem; padding: 0 24px; }

  /* The question on the left, the study that motivates it on the right. */
  header.top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
    column-gap: 48px;
    align-items: end;
    padding: 28px 4px 36px;
  }
  header.top > .bar, #channels { grid-column: 1 / -1; }
  .lede { grid-column: 1; margin-top: 28px; font-size: 54px; }
  .tagline { grid-column: 1; font-size: 19px; }
  .study { grid-column: 2; grid-row: 2 / span 2; margin: 0; padding: 14px 16px; }

  .sec-h { padding: 0 4px; }
  .sec-sub { margin: 4px 4px 16px; }

  /* Best deals: all three side by side, buttons above the fold at 1280 x 800. */
  .best { margin-bottom: 40px; }
  .best-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    overflow: visible;
    padding: 0;
  }
  .best-row .card { min-width: 0; }
  .best-row .card:only-child { grid-column: 1 / -1; }

  .cats { margin-bottom: 44px; }
  .cat-grid { padding: 0; }

  /* Rail + deals. #shelves is wrapped in .rail by site.js at this width only. */
  main {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    column-gap: 32px;
  }
  main > .best, main > .cats, main > #all-h { grid-column: 1 / -1; }
  main > .rail {
    grid-column: 1;
    grid-row: span 3;
    align-self: start;
    position: sticky;
    top: 16px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
    display: grid;
    gap: 24px;
    padding-bottom: 8px;
  }
  main > .filters, main > .result, main > #deals { grid-column: 2; }
  #all-h { padding: 0 4px; margin-bottom: 16px; }

  /* The chip bar becomes a plain list: solid, not glass, nothing slides under it. */
  .rail .shelves {
    position: static;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .rail .shelf-chip {
    width: 100%;
    gap: 10px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
  }
  .rail .shelf-chip > span:not(.count) { flex: 1; min-width: 0; }
  .rail .shelf-chip[aria-pressed="true"] { background: var(--btn); }
  .rail .shelf-chip:not([aria-pressed="true"]) svg { color: var(--muted); }

  .rail-h {
    margin: 0 0 6px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
  }
  .soon { display: grid; gap: 2px; }
  .soon a {
    display: grid;
    gap: 2px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    text-decoration: none;
  }
  .soon .soon-name { font-size: 15px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
  .soon .soon-when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

  .filters { flex-wrap: wrap; margin: 0 0 16px; padding: 0; overflow: visible; }
  .result { margin: -6px 4px 16px; }
  #deals { padding: 0; }
  .card { scroll-margin-top: 16px; }

  footer { padding: 32px 4px 56px; }

  @media (hover: hover) and (pointer: fine) {
    .rail .shelf-chip:not([aria-pressed="true"]):hover,
    .soon a:hover { background: var(--surface); }
  }
}

/* Category tiles in one row once there is room for all of them. */
@media (min-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(var(--cats, 4), minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
