/* One chart of deals, set like a precision instrument.
   Near-black ground, hairline rules, a lit top edge on the one raised surface, one warm accent reserved for savings.
   Mono is used only where the content is code (coupon codes). */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin-ext.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #0f1a1c;
  --field: #142326;
  --raise: #18292d;
  --raise-2: #20363b;
  --panel: #1c3035;
  --line: rgba(190, 235, 235, .12);
  --line-2: rgba(190, 235, 235, .25);
  --edge: rgba(200, 240, 240, .13);
  --frame: color-mix(in srgb, var(--accent) 72%, transparent);
  --frame-panel: color-mix(in srgb, var(--accent) 48%, transparent);
  --tick: rgba(200, 240, 240, .40);
  --track: rgba(255, 255, 255, .24);
  --ink: #f1f7f7;
  --mute: #b0c2c4;
  --dim: #8ba0a3;
  --accent: #ff6a4d;
  --on-accent: #190904;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; -webkit-text-size-adjust: 100%; scrollbar-color: #2c4a50 var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 2px; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: 28px; }
.draft { padding: 8px 20px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; text-align: center; }

/* ---- Header + hero ---- */
.field { background: var(--field); border-bottom: 1px solid var(--line); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 24px; height: 24px; color: var(--accent); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: end; padding-block: 52px 64px; }
h1 { font-size: clamp(34px, 4vw, 56px); line-height: 1.02; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 42ch; font-size: 18px; line-height: 1.5; color: var(--mute); }

/* The one raised surface: No. 1, a row of the chart at hero scale (position in the gutter, category beside the name) */
.spot { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 24px; padding: 28px 32px 32px; border: 1px solid var(--frame-panel); border-radius: 2px; background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 36px 64px -36px rgba(6, 8, 12, .9), 0 2px 0 rgba(6, 8, 12, .4);
  grid-template-areas: "pos name name" "pos desc desc" "off off side"; }
.spot-pos { grid-area: pos; margin-top: 4px; font-size: 40px; line-height: 1; font-weight: 500; font-stretch: 125%; letter-spacing: -.03em; color: var(--dim); }
.spot-pos b { font-weight: inherit; }
.spot h2 { grid-area: name; font-size: clamp(28px, 3vw, 40px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; }
.spot h2 .cat { margin-left: 8px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--dim); white-space: nowrap; }
.spot-desc { grid-area: desc; margin-top: 10px; max-width: 54ch; font-size: 15.5px; color: var(--mute); }
.spot-off { grid-area: off; align-self: end; display: block; width: max-content; margin-top: 28px; font-size: clamp(100px, 9.6vw, 140px); line-height: 1; font-weight: 650; font-stretch: 78%; letter-spacing: -.035em; white-space: nowrap; color: var(--accent); }
.spot-off small { margin-right: 10px; font-size: 18px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--mute); }
.spot-off .scale { margin-top: 14px; }
.spot-side { grid-area: side; align-self: end; display: grid; gap: 14px; min-width: 210px; padding-bottom: 3px; }
.roll { display: inline-flex; align-items: flex-start; line-height: 1; }
.dg { height: 1em; overflow: hidden; }
.dg > span { display: block; transform: translateY(calc(var(--d) * -1em)); }
/* .go is set by app.js on the first painted frame, so a page that never animates still shows the right number */
.go .dg > span { animation: roll 1.1s var(--ease) both; }
.go .dg + .dg > span { animation-duration: 1.5s; }
@keyframes roll { from { transform: translateY(0); } }

/* ---- Deal parts ---- */
.facts { display: grid; gap: 1px; font-size: 13.5px; line-height: 1.45; }
.facts b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.facts span { color: var(--dim); }
.facts .soon { color: var(--accent); font-weight: 600; }
.facts .unconf::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 0; background: var(--accent); }
.act { display: grid; gap: 8px; min-width: 0; }
.coupon { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 10px 12px 10px 14px; border: 1px solid var(--frame); border-radius: 2px; background: var(--raise-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.coupon b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: 14px; line-height: 1.25; font-weight: 600; letter-spacing: .02em; } /* long codes wrap, never truncate */
.coupon i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--mute); }
.coupon:hover { border-color: var(--ink); background: var(--raise-2); }
.coupon:hover i { color: var(--ink); }
.coupon.is-done { border-color: var(--accent); }
.coupon.is-done i { color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 20px; border-radius: 2px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--frame); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.btn svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.btn:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn:hover svg, .btn-link:hover svg { transform: translate(2px, -2px); }
.spot .btn { background: var(--ink); color: var(--bg); box-shadow: none; padding-block: 15px; font-size: 16px; }
.spot .btn:hover { background: var(--accent); color: var(--on-accent); }

/* ---- Filters + chart ---- */
.filters { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 10px; scrollbar-width: none; }
.filters .wrap::-webkit-scrollbar { display: none; }
.filters label { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--frame); border-radius: 2px; font-size: 13.5px; font-weight: 500; color: var(--mute); white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.filters label b { font-weight: 600; color: var(--dim); }
.filters label:hover { color: var(--ink); border-color: var(--mute); }
.filters input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters input:checked + label b { color: var(--bg); opacity: .6; }
.filters input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.chart-sec { padding-top: 56px; }
.chart-sec h2, .watch h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
.chart-head { display: grid; grid-template-columns: 76px minmax(0, 1fr) 206px 180px 250px; column-gap: 24px; margin: 28px -20px 0; padding: 0 20px 10px; font-size: 12.5px; font-weight: 500; color: var(--dim); }
.chart { list-style: none; padding: 0; margin: 0 -20px; counter-reset: pos; border-top: 1px solid var(--line-2); }
/* "All" view: No. 1 lives in the hero, so the list starts at 2 */
body:has(#f-all:checked) .chart { counter-reset: pos 1; }
body:has(#f-all:checked) .chart > li:first-child { display: none; }
.row { counter-increment: pos; display: grid; grid-template-columns: 76px minmax(0, 1fr) 206px 180px 250px; column-gap: 24px; row-gap: 4px; align-items: center;
  grid-template-areas: "pos name off facts act" "pos desc off facts act";
  padding: 26px 20px; border-bottom: 1px solid var(--line); transition: background-color .25s var(--ease); }
.row:hover { background: var(--raise); }
.row::before { content: counter(pos); grid-area: pos; font-size: 26px; line-height: 1; font-weight: 500; font-stretch: 125%; letter-spacing: -.03em; color: var(--dim); }
.r-name { grid-area: name; align-self: end; font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.r-name .cat { margin-left: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--dim); white-space: nowrap; }
.r-desc { grid-area: desc; align-self: start; max-width: 56ch; font-size: 14.5px; line-height: 1.5; color: var(--mute); }
.off { grid-area: off; text-align: right; font-size: 52px; line-height: .95; font-weight: 650; font-stretch: 78%; letter-spacing: -.035em; white-space: nowrap; color: var(--ink); }
.off small { margin-right: 6px; font-size: 13px; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--dim); }

/* 0-100% scale: the discount drawn on a hairline rule with ticks at 25/50/75; the fill is where the accent lives in the chart */
.scale { position: relative; display: block; width: 100%; height: 8px; margin-top: 12px;
  background: linear-gradient(var(--tick), var(--tick)) 25% 0 / 1px 5px no-repeat, linear-gradient(var(--tick), var(--tick)) 50% 0 / 1px 5px no-repeat, linear-gradient(var(--tick), var(--tick)) 75% 0 / 1px 5px no-repeat, linear-gradient(var(--track), var(--track)) 0 100% / 100% 1px no-repeat; }
.scale::after { content: ""; position: absolute; left: 0; bottom: 0; width: calc(var(--v) * 1%); height: 3px; border-radius: 0; background: var(--accent); }
.row .facts { grid-area: facts; }
.row .act { grid-area: act; }

/* ---- Tools with no deal yet + footer ---- */
.watch { margin-top: 88px; padding-block: 56px 40px; background: var(--field); border-top: 1px solid var(--line); box-shadow: inset 0 1px 0 var(--edge); }
.watch-lede { margin-top: 10px; max-width: 60ch; color: var(--mute); }
.watchlist { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.watchlist li { display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; align-items: center; gap: 18px; padding: 12px 0 13px; border-top: 1px solid var(--line); }
.watchlist .scale { margin: 0; }
.watchlist h3 { font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.watchlist h3 .cat { margin-left: 8px; font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--dim); }
.btn-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--mute); text-underline-offset: 4px; white-space: nowrap; transition: color .2s var(--ease); }
.btn-link svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.btn-link:hover { color: var(--accent); }
.foot { font-size: 13px; color: var(--dim); }
.foot .wrap { display: grid; gap: 8px; padding-block: 28px 56px; }
.foot p { max-width: 92ch; }

/* ---- Narrower screens ---- */
@media (max-width: 1140px) {
  .row { grid-template-columns: 60px minmax(0, 1fr) 196px 236px; grid-template-areas: "pos name off act" "pos desc off act" "pos facts off act"; }
  .chart-head { grid-template-columns: 60px minmax(0, 1fr) 196px 236px; }
  .chart-head span:nth-child(4) { display: none; }
  .row .facts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
  .off { font-size: 46px; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-block: 36px 48px; }
  .lede { max-width: 52ch; }
  .spot-off { font-size: clamp(100px, 16vw, 140px); }
  .spot { max-width: 760px; }
  /* chips wrap and scroll away with the page here; a one-line sticky bar would hide categories from mouse users */
}
@media (max-width: 940px) {
  html { scroll-padding-top: 64px; }
  .watchlist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .filters { position: sticky; }
  .filters .wrap { flex-wrap: nowrap; overflow-x: auto; }
  .wrap { padding-inline: 20px; }
  .top { padding-block: 14px; }
  .hero { gap: 24px; padding-block: 12px 28px; }
  h1 { font-size: 32px; }
  .lede { margin-top: 12px; font-size: 16px; }
  /* phone: position and name share a line, discount and actions follow, so Get deal stays on the first screen */
  .spot { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 12px; padding: 18px 18px 20px; border-radius: 2px; grid-template-areas: "pos name" "off off" "act act" "facts facts"; }
  .spot-side { display: contents; }
  .spot-pos { margin-top: 0; font-size: 30px; align-self: baseline; }
  .spot h2 { font-size: 26px; }
  .spot h2 .cat, .spot-desc { display: none; }
  .spot-off { margin: 0; font-size: min(22vw, 92px); }
  .spot-off small { font-size: 14px; }
  .spot-off .scale { margin-top: 10px; }
  .spot .act { grid-area: act; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .spot .facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }
  .spot .btn { padding: 12px; font-size: 15px; }
  .chart-head { display: none; }
  .chart-sec { padding-top: 36px; }
  .chart { margin-top: 18px; }
  .row { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; grid-template-areas: "pos name name" "desc desc off" "facts facts facts" "act act act"; padding-block: 14px 16px; align-items: start; }
  .row::before { font-size: 20px; line-height: 1.3; min-width: 26px; }
  .r-name { align-self: start; font-size: 19px; line-height: 1.3; }
  .r-name .cat { display: none; }
  .r-desc { margin-top: 8px; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .off { font-size: 40px; }
  .off small { margin-right: 5px; font-size: 12.5px; }
  .off .scale { margin-top: 8px; }
  .row .facts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; }
  .row .facts .nocode { display: none; }
  .row .act { margin-top: 10px; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .row .act .btn { padding: 11px 12px; }
  /* no code: the button sits beside the facts instead of taking its own line */
  .row:not(:has(.coupon)) { grid-template-areas: "pos name name" "desc desc off" "facts facts act"; }
  .row:not(:has(.coupon)) .act { grid-template-columns: auto; align-self: end; margin-top: 8px; }
  .row:not(:has(.coupon)) .act .btn { padding-inline: 20px; }
  .row:not(:has(.coupon)) .facts { display: grid; gap: 1px; align-self: end; }
  .watchlist li { grid-template-columns: minmax(0, 1fr) auto; }
  .watchlist .scale { display: none; }
  .watch { margin-top: 56px; padding-block: 40px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= Tickets: the chosen look (perforated stubs). Layered over the base above; html:root keeps the specificity the preview had. ================= */
@font-face { font-family: "Staatliches"; src: url(fonts/staatliches-latin-ext.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Staatliches"; src: url(fonts/staatliches-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

html:root {
  color-scheme: dark;
  --bg: #0b0f1f; --field: #0b0f1f; --raise: #141a33; --raise-2: #1b2342; --panel: #141a33;
  --line: rgba(190, 205, 255, .14); --line-2: rgba(190, 205, 255, .3); --edge: rgba(255, 255, 255, .07); --tick: rgba(255, 255, 255, .45); --track: rgba(255, 255, 255, .3);
  --ink: #f2f4ff; --mute: #bcc3e0; --dim: #9aa3c6; --accent: #ff6a3d; --on-accent: #1c0a03;
  --frame: rgba(190, 205, 255, .4); --frame-panel: rgba(190, 205, 255, .3);
  --paper: #e9edf5; --stub: #ff6a3d; --disp: "Staatliches", "Archivo", sans-serif; scrollbar-color: #2b3566 #0b0f1f;
}
html:root :is(h1, .brand, .off, .spot-off, .r-name, .spot h2) { font-family: var(--disp); font-stretch: 100%; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
html:root :is(.row::before, .spot-pos) { font-family: var(--disp); font-weight: 400; font-stretch: 100%; }
html:root h1 { font-size: clamp(48px, 5.2vw, 78px); line-height: .92; }
html:root .brand { font-size: 26px; }
html:root .hero { align-items: stretch; padding-block: 40px 48px; }
html:root .chart { margin: 0; border-top: 0; }
html:root .chart-head { display: none; }
html:root :is(.row, .spot) {
  --ink: #11131c; --mute: #3a3f55; --dim: #555b75; --accent: #b8340f; --line: rgba(17, 19, 28, .22); --track: rgba(17, 19, 28, .38); --tick: rgba(17, 19, 28, .55); --frame: #11131c;
  position: relative; color: #11131c; border: 0; border-radius: 0;
  background:
    radial-gradient(circle 10px at calc(100% - var(--sw)) 0, var(--bg) 96%, transparent 100%),
    radial-gradient(circle 10px at calc(100% - var(--sw)) 100%, var(--bg) 96%, transparent 100%),
    repeating-linear-gradient(to bottom, rgba(17, 19, 28, .55) 0 6px, transparent 6px 12px) calc(100% - var(--sw)) 0 / 2px 100% no-repeat,
    linear-gradient(var(--stub), var(--stub)) right / var(--sw) 100% no-repeat, var(--paper);
}
html:root .row { --sw: 250px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 190px 250px; grid-template-areas: "pos name off act" "pos desc off act" "pos facts off act"; column-gap: 20px; row-gap: 3px; align-items: center; margin: 0 0 14px; padding: 20px 0 20px 18px; transition: transform .2s ease-out; }
html:root .row:hover { background:
    radial-gradient(circle 10px at calc(100% - var(--sw)) 0, var(--bg) 96%, transparent 100%),
    radial-gradient(circle 10px at calc(100% - var(--sw)) 100%, var(--bg) 96%, transparent 100%),
    repeating-linear-gradient(to bottom, rgba(17, 19, 28, .55) 0 6px, transparent 6px 12px) calc(100% - var(--sw)) 0 / 2px 100% no-repeat,
    linear-gradient(var(--stub), var(--stub)) right / var(--sw) 100% no-repeat, #fff; transform: translateY(-2px); }
html:root .row::before { font-size: 36px; color: rgba(17, 19, 28, .62); }
html:root .r-name { font-size: 30px; line-height: 1; }
html:root :is(.r-name .cat, .spot h2 .cat) { font-family: "Archivo", sans-serif; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
html:root .off { font-size: 70px; line-height: .9; letter-spacing: 0; color: #11131c; }
html:root .row .act { padding: 0 22px; }
html:root :is(.row, .spot) .act { --ink: #11131c; }
html:root :is(.row, .spot) .coupon { background: rgba(255, 255, 255, .45); border: 2px dashed #11131c; border-radius: 0; color: #11131c; }
html:root :is(.row, .spot) .coupon:hover { background: #fff; }
html:root :is(.row, .spot) .coupon i { color: #11131c; }
html:root :is(.row, .spot) .btn { background: #11131c; color: #fff; border-radius: 0; box-shadow: none; font-weight: 700; letter-spacing: .04em; }
html:root :is(.row, .spot) .btn:hover { background: #fff; color: #11131c; }
html:root .spot { --sw: 232px; grid-template-columns: 52px minmax(0, 1fr) var(--sw); grid-template-areas: "pos name side" "pos desc side" "off off side"; column-gap: 16px; padding: 28px 0 28px 30px; box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8); }
html:root .spot { --nm: clamp(40px, 4vw, 58px); }
html:root .spot h2 { font-size: var(--nm); line-height: .95; }
html:root .spot h2 .cat { display: block; margin: 8px 0 0; }
html:root .spot { grid-template-rows: auto auto 1fr; }
html:root .spot-off { align-self: end; }
html:root .spot { container-type: inline-size; }
/* The numeral fills the paper part of the ticket at any window size: 100cqi (the ticket) minus the stub (--sw) and the gap.
   With tight tracking a rolling digit is about .5em and the minus and % about 1.1em together. "UP TO" sits above it, at the left edge. */
html:root .spot-off { --num: clamp(64px, calc((100cqi - var(--sw) - 16px) / 2.12), 230px); position: relative; justify-self: stretch; width: auto; font-size: var(--num); color: var(--accent); }
@media (min-width: 721px) { html:root .spot-off:has(.dg:nth-child(3)) { --num: clamp(64px, calc((100cqi - var(--sw) - 16px) / 2.64), 230px); } }
html:root .spot-off .roll { letter-spacing: -.02em; }
/* Staatliches digits leave about .12em empty above and .16em below inside their 1em box. "UP TO" sits in that top band,
   over the minus sign and level with the tops of the digits, so it adds no height; margins trim both bands. */
html:root .spot-off:has(.roll) { position: relative; margin-top: calc(24px - var(--num) * .12); }
html:root .spot-off small { position: absolute; left: 0; top: calc(var(--num) * .125); margin: 0; font-size: clamp(11px, calc(var(--num) * .08), 15px); line-height: 1; }
html:root .spot-off:has(.roll) .scale { margin-top: calc(16px - var(--num) * .15); }
html:root .spot-side { align-self: center; padding: 0 22px; }
html:root .spot-side { --ink: #11131c; --mute: #11131c; --dim: #11131c; --accent: #11131c; } /* text on the orange stub must be dark: the ticket-paper greys fail there */
html:root .spot-side .act { padding: 0; }
html:root .filters label { border-radius: 0; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; font-weight: 600; }
html:root .watch { background: var(--raise); }


@media (max-width: 720px) {
  html:root :is(.row, .spot) { background: var(--paper); padding: 16px 16px 0; }
  html:root .row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pos name name" "desc desc off" "facts facts facts" "act act act"; column-gap: 12px; }
  html:root .spot { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "pos name" "off off" "facts facts" "act act"; padding: 18px 18px 0; }
  html:root .spot-side { display: contents; padding: 0; }
  html:root :is(.row, .spot) .act { background: var(--stub); margin: 12px -16px 0; padding: 16px; border-top: 2px dashed #11131c; }
  html:root .spot .act { margin-inline: -18px; padding-inline: 18px; }
  html:root .off { font-size: 50px; }
  html:root h1 { font-size: 42px; }
  html:root .lede { font-size: 15px; margin-top: 10px; }
  html:root .hero { padding-block: 10px 24px; gap: 20px; }
  html:root .spot { --nm: 38px; }
  html:root .spot h2 .cat { display: none; }
  html:root .spot-off { --num: min(36vw, 150px); }
  html:root .spot-off:has(.dg:nth-child(3)) { --num: min(29vw, 120px); }
  html:root .spot-off:has(.roll) { margin-top: calc(10px - var(--num) * .12); }
  /* the stub is a bar under the ticket here: hover (a tap on phones) only lightens the paper, it must not paint the desktop stub */
  html:root .row:hover { background: #fff; }
  html:root .spot { row-gap: 8px; padding-top: 14px; }
}

/* ================= Template parts: language menu, deal pages, modal, FAQ, footer, empty and ended states ================= */
/* Language menu: a native <details>, so it opens without JS and with the keyboard */
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--frame); list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--ink); transition: border-color .2s var(--ease); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { border-color: var(--ink); }
.lang-menu summary svg { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; list-style: none; background: var(--raise-2); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.lang-menu li > * { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; font-size: 14px; color: var(--mute); text-decoration: none; text-transform: capitalize; }
.lang-menu li b { min-width: 24px; font-size: 12px; letter-spacing: .06em; color: var(--dim); }
.lang-menu li i { margin-left: auto; font-style: normal; font-size: 11.5px; text-transform: none; color: var(--dim); }
.lang-menu a:hover { background: var(--raise); color: var(--ink); }
.lang-menu a[aria-current] { color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.lang-menu span[aria-disabled] { opacity: .75; cursor: default; }

/* category pages: chips are links */
.filters a.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border: 1px solid var(--frame); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); text-decoration: none; white-space: nowrap; transition: color .2s var(--ease), border-color .2s var(--ease); }
.filters a.chip b { color: var(--dim); }
.filters a.chip:hover { color: var(--ink); border-color: var(--mute); }
.filters a.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters a.chip[aria-current] b { color: var(--bg); opacity: .6; }
/* category pages also show No. 1 in the hero */
.chart-cat { counter-reset: pos 1; }
.chart-cat > li:first-child { display: none; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin-bottom: 18px; font-size: 13px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .6; }
.crumbs a { color: var(--mute); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }

/* the whole row opens the modal; the name stays a real link for crawlers, new tabs and no-JS */
:is(.row, .watchlist li, .spot[data-id]) { cursor: pointer; }
.r-link { text-decoration: none; }
.r-link:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* deals that are not a percentage, and tools without one */
html:root .off.off-text { font-size: 32px; line-height: 1; white-space: normal; text-align: right; }
html:root .spot-off.off-text { max-width: 12ch; font-size: clamp(56px, 5.4vw, 84px); line-height: .92; white-space: normal; }
.off-none { grid-area: off; align-self: end; margin-top: 24px; font-size: 15px; font-weight: 600; color: var(--dim); }
html:root .spot-off.off-none { width: auto; font: 600 17px/1.4 var(--font); letter-spacing: 0; text-transform: none; color: #3a3f55; }
html:root .off.off-none { margin: 0; font: 600 14px/1.3 var(--font); letter-spacing: 0; text-transform: none; color: #3a3f55; }
.price s { color: var(--dim); }
.price b { font-size: 14.5px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--dim); }
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-active { color: #2f9e57; }
.state-ended { text-decoration: line-through; }
.watchlist .state { justify-self: start; }

/* empty chart: the ticket stays, saying there is nothing on sale yet */
html:root .spot-empty { grid-template-areas: "pos name side" "pos desc side" ". . side"; }
html:root .spot-empty h2 { font-size: clamp(38px, 3.6vw, 52px); }
html:root .spot-empty .spot-desc { color: #3a3f55; }

/* Season over: app.js adds .bw-ended once the end time has passed, even on an old build */
.ended-note { display: none; padding: 10px 20px; background: var(--paper, #e9edf5); color: #11131c; font-size: 14px; font-weight: 600; text-align: center; }
.bw-ended .ended-note { display: block; }

/* ---- Deal page and modal share .deal ---- */
.deal-page { padding-block: 32px 72px; }
.deal-h1 { margin-bottom: 22px; font-family: var(--disp); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: .95; text-transform: uppercase; letter-spacing: .02em; }
.deal-page > .lede { margin-bottom: 28px; }
.deal { display: grid; gap: 28px; }
.deal-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.terms { display: grid; grid-template-columns: minmax(0, 10em) minmax(0, 1fr); gap: 10px 24px; margin: 0; padding: 22px 24px; border: 1px solid var(--line-2); background: var(--raise); align-content: start; }
.terms dt { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.terms dd { margin: 0; font-size: 15px; color: var(--ink); }
.code-inline { font-family: var(--mono); font-size: 14px; padding: 1px 6px; border: 1px dashed var(--line-2); }
.how h3, .related h2, .browse h2, .submit h2 { font-family: var(--disp); font-weight: 400; text-transform: uppercase; letter-spacing: .03em; }
.how h3 { font-size: 28px; line-height: 1; }
.how ol { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; color: var(--mute); }
.how li::marker { font-weight: 700; color: var(--accent); }
.fine { margin-top: 14px; max-width: 64ch; font-size: 13px; color: var(--dim); }
.related { margin-top: 56px; }
.related h2 { margin-bottom: 18px; font-size: 32px; }
.related .row::before { visibility: hidden; }
.back { margin-top: 32px; }

/* the modal: the same deal block, over the list; the URL bar shows the deal page while it is open */
.modal { width: min(1080px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.modal::backdrop { background: rgba(5, 7, 15, .72); backdrop-filter: blur(3px); }
.modal-body { padding: 56px 32px 32px; }
.modal-close { position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: 8px 8px -52px 0; border: 1px solid var(--line-2); background: var(--raise-2); color: var(--ink); cursor: pointer; }
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal .spot { cursor: auto; }
.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise .28s var(--ease); }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---- FAQ, submit, footer navigation ---- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); }
.foot .wrap { gap: 12px; padding-top: 44px; }
.submit { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "h btn" "p btn"; gap: 6px 32px; align-items: center; margin-bottom: 32px; padding: 26px 28px; background: var(--raise); border: 1px solid var(--line-2); }
.submit h2 { grid-area: h; font-size: 30px; line-height: 1; color: var(--accent); }
.submit p { grid-area: p; font-size: 14.5px; color: var(--mute); }
.submit .btn { grid-area: btn; }
.browse { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 40px; margin-bottom: 28px; }
.browse h2 { margin-bottom: 12px; font-size: 22px; color: var(--ink); }
.browse ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.browse-all { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
.browse a { color: var(--mute); text-decoration: none; }
.browse a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 940px) {
  .deal-more { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .browse { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .modal { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; }
  .modal-body { padding: 60px 16px 24px; }
  html:root .off.off-text { font-size: 24px; }
  html:root .spot-off.off-text { font-size: 48px; }
  html:root .spot-empty { grid-template-areas: "pos name" "desc desc" "act act"; }
  html:root .spot-empty .spot-desc { display: block; }
  .deal-page { padding-block: 20px 48px; }
  .terms { padding: 18px; gap: 8px 16px; }
  .submit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "p" "btn"; padding: 20px; }
  .browse-all { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* a deal whose end date passed after the last build (app.js) */
.is-gone :is(.off, .spot-off) { opacity: .45; text-decoration: line-through; text-decoration-thickness: 4px; }
.is-gone .coupon { display: none; }
.is-gone [data-ends] { font-weight: 700; color: var(--ink); }

/* when the deals were last checked: shown on every screen size */
.fresh { margin-top: 14px; font-size: 13.5px; font-weight: 500; color: var(--accent); }
@media (max-width: 720px) { .fresh { margin-top: 10px; font-size: 13px; } }

/* ended deals: what they offered, struck through */
.was { display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 600; color: var(--mute); white-space: nowrap; }
.was s { text-decoration-thickness: 2px; }
.was small { font-size: 12.5px; font-weight: 500; color: var(--dim); }
.off-none s { margin-left: 2px; }
.watch + .watch { margin-top: 0; border-top: 1px solid var(--line); }
.after { margin-top: 28px; }

/* compact rows for ended deals and tools without one: name, what it was, link; the description underneath */
.watchlist li { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name info link" "desc desc desc"; row-gap: 2px; }
.watchlist h3 { grid-area: name; }
.watchlist .was { grid-area: info; }
.watchlist .btn-link { grid-area: link; }
.w-desc { grid-area: desc; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
@media (max-width: 720px) {
  .watchlist li { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name link" "info info" "desc desc"; column-gap: 12px; }
  .watchlist h3 .cat { display: none; }
  .watchlist .was { white-space: normal; flex-wrap: wrap; }
}

/* one list: the compact rows (ended deals, then tools without a discount) continue under the tickets */
.chart-sec .watchlist { grid-template-columns: minmax(0, 1fr); margin-top: 6px; }
.chart-sec .watchlist li { padding: 14px 18px; border-top: 1px solid var(--line); }
.chart-sec .watchlist li:first-child { border-top: 0; }
.was.none { color: var(--dim); font-size: 18px; }
a.cat { color: inherit; text-decoration: none; }
a.cat:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .was.none { display: none; } }

/* footer: who we are, site links, feeds */
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; padding-bottom: 28px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-family: var(--disp); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink); }
.foot-brand .mark { width: 22px; height: 22px; }
.foot-about p:last-child { max-width: 44ch; font-size: 14px; color: var(--mute); }
.foot-cols h2 { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.foot-cols ul { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.foot-cols a { color: var(--mute); text-decoration: none; }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; } .foot-about { grid-column: 1 / -1; } }

/* How we check / Privacy */
.info section { max-width: 68ch; margin-top: 28px; }
.info h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.info section p { margin-top: 10px; color: var(--mute); }
.info mark.todo { padding: 0 4px; background: var(--accent); color: var(--on-accent); } /* preview only: STRICT builds refuse a missing operator */
.info section a { color: var(--ink); text-underline-offset: 3px; }
.foot-updated { color: var(--accent); }
.foot-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
.foot-cats span { margin-left: 4px; font-size: 12px; color: var(--dim); }
@media (max-width: 720px) { .foot-cols nav:has(.foot-cats) { grid-column: 1 / -1; } }

/* contact form */
.contact-form { display: grid; gap: 18px; max-width: 640px; margin-top: 28px; }
.field-row { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field-row small { font-weight: 500; color: var(--dim); }
.contact-form :is(input, select, textarea) { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 0; background: var(--raise); color: var(--ink); font: 400 16px/1.4 var(--font); }
.contact-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { resize: vertical; }
.contact-form .btn { justify-self: start; border: 0; background: var(--accent); color: var(--on-accent); box-shadow: none; font: inherit; font-weight: 700; cursor: pointer; }
.contact-form .btn:hover { background: var(--ink); color: var(--bg); }
.contact-form .fine a { color: var(--mute); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { display: none; max-width: 640px; margin-top: 22px; padding: 14px 16px; border: 1px solid rgba(47, 158, 87, .6); background: var(--raise); color: var(--ink); }
.status-bad { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.status:target { display: block; }
/* the "before you buy" note on every deal: a summary, never the vendor's terms */
.disclaimer { margin-top: 18px; padding: 12px 14px; border: 1px solid var(--line-2); color: var(--mute); }
.disclaimer b { color: var(--ink); }
/* deal details (modal and deal page) always say what the tool is, also on phones where the hero ticket hides it */
@media (max-width: 720px) {
  html:root .deal .spot { grid-template-areas: "pos name" "desc desc" "off off" "facts facts" "act act"; }
  html:root .deal .spot-desc { display: block; margin-top: 0; font-size: 14.5px; color: #3a3f55; }
}
/* "What is X?" in deal details */
.about-tool { max-width: 72ch; }
.about-tool h3 { font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.about-tool p { margin-top: 10px; color: var(--mute); }

/* "Only live deals": hides ended deals and tools without one (works with the category chips, no JS) */
body:has(#f-live:checked) #others { display: none; }
.chart-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
/* pill switch */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--mute); cursor: pointer; user-select: none; }
.switch-track { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: var(--raise-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mute); transition: transform .2s var(--ease), background-color .2s var(--ease); }
#f-live:checked + .switch, #f-ai:checked + .switch { color: var(--ink); }
#f-live:checked + .switch .switch-track, #f-ai:checked + .switch .switch-track { background: var(--accent); box-shadow: none; }
#f-live:checked + .switch .switch-track::after, #f-ai:checked + .switch .switch-track::after { transform: translateX(20px); background: var(--on-accent); }
:is(#f-live, #f-ai):focus-visible + .switch .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* tools without a live deal: slim tickets on the same paper, with a grey stub (orange stays for live deals) */
html:root .chart-sec .watchlist { gap: 10px; margin-top: 14px; }
html:root .chart-sec .watchlist li {
  --sw: 190px; --ink: #11131c; --mute: #3a3f55; --dim: #555b75;
  position: relative; grid-template-columns: minmax(0, 1fr) auto var(--sw); grid-template-areas: "name info link" "desc desc link";
  column-gap: 20px; row-gap: 4px; align-items: center; padding: 14px 0 14px 20px; border: 0; color: #11131c;
  background:
    radial-gradient(circle 8px at calc(100% - var(--sw)) 0, var(--bg) 96%, transparent 100%),
    radial-gradient(circle 8px at calc(100% - var(--sw)) 100%, var(--bg) 96%, transparent 100%),
    repeating-linear-gradient(to bottom, rgba(17, 19, 28, .45) 0 5px, transparent 5px 10px) calc(100% - var(--sw)) 0 / 2px 100% no-repeat,
    linear-gradient(#cdd4e2, #cdd4e2) right / var(--sw) 100% no-repeat, var(--paper);
  transition: transform .2s ease-out;
}
html:root .chart-sec .watchlist li:hover { transform: translateY(-2px); }
html:root .chart-sec .watchlist h3 { font-family: var(--disp); font-weight: 400; font-size: 24px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
html:root .chart-sec .watchlist h3 .cat { font-family: "Archivo", sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #555b75; }
html:root .chart-sec .watchlist .w-desc { color: #3a3f55; }
html:root .chart-sec .watchlist .was { color: #3a3f55; }
html:root .chart-sec .watchlist .was :is(small, .none) { color: #555b75; }
html:root .chart-sec .watchlist .btn-link { justify-self: center; color: #11131c; font-weight: 700; }
html:root .chart-sec .watchlist .btn-link:hover { color: #11131c; text-decoration-thickness: 2px; }
@media (max-width: 720px) {
  html:root .chart-sec .watchlist li { --sw: 0px; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name link" "info info" "desc desc"; padding: 12px 14px; background: var(--paper); }
  html:root .chart-sec .watchlist h3 { font-size: 21px; }
}
/* a ticket without a live deal gets the grey stub: orange is only for live deals */
html:root .spot-none { --stub: #cdd4e2; }

/* filter counts are tools per section; sections without a live deal dim while "Only live deals" is on */
body:has(#f-live:checked) .filters .no-live { opacity: .45; }

/* lists show 20 at a time (app.js); the rest stay in the page for search engines */
.more-hidden { display: none !important; }
.show-more { display: block; width: 100%; margin-top: 18px; padding: 18px; border: 2px solid var(--accent); background: transparent; color: var(--accent); font: 700 16px/1.2 var(--font); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.show-more:hover { background: var(--accent); color: var(--on-accent); }
.show-more[hidden] { display: none; }
@media (max-width: 720px) { .foot-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lede .num { font-weight: 700; color: var(--accent); }
/* Terms and privacy: two parts on one page */
.info .part { margin-top: 36px; }
.info .part > h2 { font-family: var(--disp); font-weight: 400; font-size: 32px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; color: var(--accent); }
.info .part h3 { font-size: 20px; line-height: 1.25; font-weight: 600; }

/* "AI only" (on by default): hides tools without meaningful AI; chips then count AI tools */
body:has(#f-ai:checked) #chart [data-ai="no"] { display: none; }
body:has(#f-ai:checked) :is(.filters, .lede) .n-all, body:not(:has(#f-ai:checked)) :is(.filters, .lede) .n-ai { display: none; }
/* two No. 1 tickets on the home page: the biggest AI deal while "Only AI tools" is on, the overall No. 1 otherwise */
body:has(#f-ai:checked) .hero .spot-all, body:not(:has(#f-ai:checked)) .hero .spot-ai { display: none; }
body:has(#f-ai:checked) .filters .no-ai { opacity: .45; }
.switches { display: flex; flex-wrap: wrap; gap: 10px 22px; }

/* tidy layout: section chips in an even grid (name left, count right), switches on the heading's line, space before the list */
@media (min-width: 721px) {
  .filters .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 6px; }
  .filters label, .filters a.chip { justify-content: space-between; min-width: 0; }
}
.chart-title { align-items: flex-end; margin-bottom: 22px; }
.chart-title h2 { line-height: 1; }
.switches { padding-bottom: 2px; }

/* phone: a slimmer stub (smaller button on the right, code beside it) so the deal text leads, not the orange strip */
@media (max-width: 720px) {
  html:root :is(.row, .spot) .act { margin-top: 10px; padding: 10px 14px; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  html:root :is(.row, .spot):not(:has(.coupon)) .act { grid-template-columns: auto; justify-content: end; }
  html:root :is(.row, .spot) .act .btn { padding: 9px 16px; font-size: 14px; }
  html:root :is(.row, .spot) .act .coupon { padding: 7px 10px; }
  html:root .spot .act { margin-inline: -18px; padding-inline: 18px; }
  .chart-title { gap: 10px; margin-bottom: 16px; }
  .chart-title h2 { font-size: 24px; }
  .switches { gap: 8px 18px; }
  .switch { font-size: 13px; }
}

/* tool card: quick facts, key features, alternatives */
.tool-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 16px 0 0; }
.tool-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.tool-facts dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.about-tool h4 { margin-top: 18px; font-size: 15px; font-weight: 700; color: var(--ink); }
.tool-features { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--mute); }
.tool-features li::marker { color: var(--accent); }
.alternatives h3 { font-family: var(--disp); font-weight: 400; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.alt-lede { margin-top: 8px; color: var(--mute); }
.alternatives ul { list-style: none; padding: 0; margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.alternatives a { display: grid; gap: 4px; height: 100%; padding: 14px 16px; background: var(--paper, #e9edf5); color: #11131c; text-decoration: none; transition: transform .2s ease-out; }
.alternatives a:hover { transform: translateY(-2px); background: #fff; }
.alternatives b { font-family: var(--disp); font-weight: 400; font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.alt-deal { font-size: 13px; font-weight: 700; color: #b8340f; }
.alt-desc { font-size: 13.5px; line-height: 1.4; color: #3a3f55; }

/* Tool icon: one 40px tile left of every tool name (list, hero, deal page, alternatives); a letter when there is no icon */
.logo { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; margin-right: 12px; vertical-align: -9px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px rgba(17, 19, 28, .12); overflow: hidden; }
.logo img { width: 32px; height: 32px; object-fit: contain; }
.logo-mono { font: 700 19px/1 "Archivo", sans-serif; letter-spacing: 0; text-transform: uppercase; color: #b8340f; }
.alternatives a { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-content: start; }
.alternatives a > :not(.logo) { grid-column: 2; }
.alternatives a .logo { margin: 0; }
.spot h2 { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.spot h2 .logo { margin: 0; }
html:root .spot h2 .cat { grid-column: 2; }
:is(.r-name, .watchlist h3) { display: flex; align-items: center; }
:is(.r-name, .watchlist h3) .r-link { min-width: 0; }
/* A section picked on the home page: the script's hero (that section's No. 1) replaces the overall one, and its row leaves the list */
.hero-pick .hero .spot:not(.spot-pick) { display: none; }
.hero-pick .chart { counter-reset: pos 1; }
.chart > li.in-hero { display: none; }

/* Icon tile and name share one centre line: the first line of the name (a long name wraps under itself, not under the tile) */
:is(.r-name, .watchlist h3) { align-items: flex-start; }
.spot h2 { align-items: start; }
:is(.r-name, .watchlist h3, .spot h2) > .logo { margin-top: max(0px, calc((1lh - 40px) / 2)); }
:is(.r-name, .watchlist h3, .spot h2) > :not(.logo) { margin-top: max(0px, calc((40px - 1lh) / 2)); }
.alternatives a > b { margin-top: max(0px, calc((40px - 1lh) / 2)); }
/* the rank sits on the same centre line as the tile and the first line of the name */
html:root .spot-pos { align-self: start; display: flex; align-items: center; height: max(40px, calc(var(--nm) * .95)); margin: 0; }
@media (max-width: 720px) { html:root .row::before { align-self: start; line-height: 40px; } }
.spot-empty h2 { display: block; }

/* Translations: long words (German compounds) may break in headings, and the "no deal yet" sentence wraps instead of running off a phone screen */
h1, .deal-h1 { overflow-wrap: break-word; hyphens: auto; }
.spot-off.off-none { white-space: normal; width: auto; }
