/* Pinched website. Direction A: clean, white, Pinched red. Light only on purpose. */
:root {
  --red: #ff0742;
  --red-fill: #e3063c; /* button fills: white text passes AA on this, not on --red */
  --red-dark: #c40032;
  --red-text: #b0002c;
  --ink: #1a1414;
  --body: #5e5254;
  --muted: #6f6062;
  --line: #f1e4e6;
  --tint: #faf3f4;
  --pink: #fff0f3;
  --green: #1a8a4a;
  --green-bg: #f1faf4;
  --dark-text: #cdbfc1;
  --white: #ffffff;
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-inline: 24px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.03em; font-weight: 800; line-height: 1.1; }
h3 { font-size: 21px; letter-spacing: -0.02em; }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 14px; padding: 15px 24px; font-size: 17px; border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red-fill); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { border-color: #ead9dc; color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--pink); }
.btn-small { padding: 11px 18px; font-size: 15px; border-radius: 12px; }

/* Top bar */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar nav { display: flex; align-items: center; gap: 12px 32px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.navlinks { display: flex; gap: 4px 28px; flex: 1 1 auto; font-size: 15px; font-weight: 500; flex-wrap: wrap; }
.navlinks a { text-decoration: none; padding-block: 6px; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--red-text); }
@media (max-width: 720px) {
  .topbar nav { justify-content: space-between; }
  .navlinks { order: 3; flex-basis: 100%; gap: 4px 20px; font-size: 14px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 72px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { align-self: flex-start; background: var(--pink); color: var(--red-text); font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--red-fill); }
.mark { background: linear-gradient(transparent 62%, #ffd2dc 62%, #ffd2dc 92%, transparent 92%); padding-inline: 2px; color: var(--ink); font-weight: 600; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--body); max-width: 31em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.actions small { font-size: 14px; color: var(--muted); }

/* Animated checkout demo */
.demo { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.demo-label { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.demo-stage { background: var(--tint); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.checkout { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row > span:first-child { white-space: nowrap; }
.row > span:last-child { text-align: right; }
.row.total { font-weight: 800; font-size: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.row.saving { color: var(--green); font-weight: 600; }
.code { font-family: var(--mono); font-weight: 700; }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; margin-right: 6px; }
.card { background: var(--white); border-radius: 20px; padding: 18px; box-shadow: 0 20px 44px rgba(26,20,20,0.14); display: flex; flex-direction: column; gap: 10px; align-self: flex-end; width: 100%; max-width: 360px; }
.card-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.card-head img { width: 28px; height: 28px; border-radius: 8px; }
.try { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 12px; padding: 10px 12px; border: 1px solid var(--line); font-size: 14px; }
.try .status { font-size: 13px; font-weight: 600; color: var(--muted); }
.try.fail .status { color: #a3343f; }
.try.win { background: var(--green-bg); border-color: #cfeedd; }
.try.win .status { color: var(--green); }
.card-credit { font-size: 13px; color: var(--muted); }
.card-credit strong { color: var(--ink); }
.demo [data-step] { transition: opacity .35s ease, transform .35s ease; }
.demo.is-playing [data-step].is-hidden { opacity: 0; transform: translateY(6px); }
@media (prefers-reduced-motion: reduce) { .demo [data-step] { transition: none; } }
@media (max-width: 480px) {
  .demo-stage { padding: 16px; border-radius: 22px; }
  .checkout { padding: 16px; }
  .row.total .strike { display: block; margin: 0; font-size: 14px; }
}

/* Sections */
.section { padding-block: 80px; }
.section-tint { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.section-head p { color: var(--body); margin-top: 8px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--red-text); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; padding: 0; margin: 40px 0 0; list-style: none; counter-reset: step; }
.steps li { background: var(--white); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--mono); color: var(--red); font-weight: 700; }
.steps p { color: var(--body); }

/* Search */
.search { display: flex; align-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 16px; padding: 4px 6px 4px 18px; background: var(--white); }
.search:focus-within { border-color: var(--red); }
.search svg { flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 18px; padding: 14px 0; background: transparent; color: var(--ink); }
.search button { font: inherit; font-weight: 700; background: var(--ink); color: var(--white); border: 0; padding: 12px 20px; border-radius: 11px; cursor: pointer; }
.search button:hover { background: #3a2f31; }

/* Shop tiles */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 0; margin: 20px 0 0; list-style: none; }
.shop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .15s, background .15s; }
.shop:hover { border-color: var(--ink); }
.shop-mark { width: 42px; height: 42px; border-radius: 11px; background: var(--tint); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.shop-text { display: flex; flex-direction: column; min-width: 0; }
.shop-text strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-text span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Two kinds of codes */
.kinds-sub { color: var(--body); margin-top: 10px; max-width: 40em; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-top: 32px; }
.kind { border-radius: 24px; padding: 30px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kind h3 { font-size: 28px; line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.kind-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); flex: none; }
.kind-everyday .kind-dot { background: var(--red); }
.kind .kind-lead { color: var(--ink); font-weight: 600; font-size: 18px; }
.kind > p { color: var(--body); }
.kind-creator { background: var(--tint); }
.kind-creator .names li { background: var(--white); }
.kind-everyday { background: var(--white); border: 2px dashed #e3b8c1; position: relative; }
.kind-everyday::before, .kind-everyday::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; border-radius: 50%; background: var(--white); transform: translateY(-50%); }
.kind-everyday::before { left: -14px; border-right: 2px dashed #e3b8c1; }
.kind-everyday::after { right: -14px; border-left: 2px dashed #e3b8c1; }
.coupons { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 8px 0 0; list-style: none; }
.coupons li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--tint); font-size: 15px; color: var(--muted); }
.coupons .code { color: var(--ink); font-size: 16px; letter-spacing: 0.04em; }
.kinds-foot { margin-top: 24px; font-weight: 700; font-size: 19px; }
.names { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.names li { font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; background: var(--tint); }
.names li.more { background: transparent; border: 1px dashed #d9c6ca; color: var(--muted); font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); }

/* Old way vs Pinched: a race that plays when scrolled into view */
.replay { font: inherit; font-weight: 600; font-size: 15px; background: var(--tint); color: var(--ink); border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.replay:hover { background: var(--pink); }
.race { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.lane { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lane-old { background: var(--white); border: 1px solid var(--line); }
.lane-new { background: var(--red-fill); color: var(--white); }
.lane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lane-head h3 { font-size: 24px; }
.clock { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lane-old .clock { background: var(--tint); color: #a3343f; }
.lane-new .clock { background: rgba(255,255,255,0.18); color: var(--white); }
.moves { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.moves li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; font-size: 16px; line-height: 1.4; }
.lane-old .moves li { background: var(--tint); color: var(--body); }
.lane-old .moves li.bad { background: #fdecef; color: #a3343f; font-weight: 600; }
.lane-old .moves li.end { background: var(--ink); color: var(--white); }
.lane-new .moves li { background: rgba(255,255,255,0.14); }
.lane-new .moves li.good { background: var(--white); color: var(--green); font-size: 19px; font-weight: 700; }
.lane-new .moves li.good strong { color: var(--ink); }
.ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 14px; background: rgba(26,20,20,0.07); }
.lane-new .ic { background: rgba(255,255,255,0.2); }
.lane-new .good .ic { background: var(--green-bg); }
.lane-old .end .ic { background: rgba(255,255,255,0.15); }
.moves .txt { flex: 1 1 0; min-width: 0; }
.meter { flex-basis: 100%; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.22); overflow: hidden; margin-left: 38px; }
.meter span { display: block; height: 100%; width: 100%; background: var(--white); border-radius: 4px; }
.lane-note { font-size: 16px; opacity: 0.92; margin-top: auto; }
/* Playing state (only when JS runs; without it everything shows) */
.race.is-playing [data-at] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.race.is-playing [data-at].is-in { opacity: 1; transform: none; }
.meter span { transform-origin: left; }
.race.is-playing .meter span { transform: scaleX(0); transition: transform 1s linear; }
.race.is-playing .is-in .meter span { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .race.is-playing [data-at] { opacity: 1; transform: none; transition: none; } }

/* Real savings */
.wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 0; margin: 28px 0 0; list-style: none; }
.win-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.win-amount { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--green); font-variant-numeric: tabular-nums; }
.win-shop { font-weight: 700; font-size: 17px; }
.win-meta { font-size: 14px; color: var(--muted); }
.win-meta .code { color: var(--ink); }

/* For creators */
.dark { background: var(--ink); color: var(--white); }
.for-creators { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px; align-items: start; padding-block: 88px; }
.for-creators h2 { font-size: clamp(34px, 4.5vw, 52px); line-height: 1.02; }
.for-creators .lead-dark { color: var(--dark-text); font-size: 18px; margin-top: 16px; max-width: 30em; }
.for-creators .actions { margin-top: 28px; }
.btn-ghost { border-color: #4a3c3f; color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.promises { display: flex; flex-direction: column; gap: 14px; padding: 0; margin: 0; list-style: none; }
.promises li { background: #251c1e; border-radius: 18px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.promises p { color: var(--dark-text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; padding: 20px 36px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--body); padding-bottom: 20px; max-width: 60ch; }

/* Final call */
.final { background: var(--red-fill); color: var(--white); border-radius: 28px; padding: 56px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.final h2 { max-width: 16em; }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 88px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer nav { display: flex; gap: 20px; }

/* All shops page */
.page-head { padding-block: 56px 24px; display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.035em; font-weight: 800; line-height: 1.05; }
.page-head p { color: var(--body); font-size: 18px; }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.letters a, .letters span { display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; }
.letters a { background: var(--tint); }
.letters a:hover { background: var(--ink); color: var(--white); }
.letters span { color: #cbbcbf; }
.letter-group { padding-top: 36px; scroll-margin-top: 90px; }
.letter-group h2 { font-size: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.empty { padding: 40px 0; color: var(--body); }
.result-count { font-size: 14px; color: var(--muted); margin-top: 12px; min-height: 21px; }

/* Text pages */
.prose { padding-block: 56px 0; max-width: 68ch; }
.prose h1 { font-size: clamp(36px, 5vw, 48px); letter-spacing: -0.035em; font-weight: 800; margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.prose .updated { color: var(--muted); font-size: 15px; }

/* Reassurance line, text link */
.reassure { font-size: 14px; color: var(--muted); }
.text-link { color: var(--dark-text); font-weight: 600; text-underline-offset: 3px; }
.text-link:hover { color: var(--white); }

/* Phones: shorter old-way list so the Pinched side comes into view sooner */
@media (max-width: 720px) { .moves li.extra { display: none; } }

/* "Get it on your computer" panel for phones */
.sheet { border: 0; padding: 0; border-radius: 24px; width: min(440px, calc(100% - 32px)); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(26,20,20,0.3); }
.sheet::backdrop { background: rgba(26,20,20,0.5); }
.sheet-body { position: relative; padding: 32px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.sheet h2 { font-size: 28px; padding-right: 36px; }
.sheet p { color: var(--body); }
.sheet .btn { width: 100%; }
.sheet-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tint); font-size: 16px; cursor: pointer; color: var(--ink); }
.sheet-status { font-size: 14px; font-weight: 600; color: var(--green) !important; min-height: 1px; }
.sheet-fallback { font-size: 15px; text-align: center; }

/* Creator chips: channel colour (from their YouTube picture), a topic icon, and a few signature touches */
.names li.chip { display: inline-flex; align-items: center; gap: 7px; position: relative; overflow: hidden; background: var(--c); color: var(--t); transition: transform .2s ease; }
.chip-ic { width: 15px; height: 15px; flex: none; }
.chip span { position: relative; }
.chip:hover { transform: translateY(-2px); }
.chip-badge { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.02em; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,0.2); }
/* JerryRigEverything: phone-glass sheen, and the famous "scratches at level 6" */
.sig-jerry::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 42%, transparent 50%, transparent 62%, rgba(255,255,255,0.12) 68%, transparent 74%); }
/* Mat Armstrong: rebuilt supercars */
.sig-mat .chip-badge { background: #f5c400; color: #1a1414; }
/* Unbox Therapy: a strip of parcel tape */
.sig-unbox::before { content: ""; position: absolute; top: 0; bottom: 0; left: 46%; width: 14px; background: rgba(247,165,28,0.22); }
/* Kurzgesagt: a little starfield */
.sig-kurz { background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 25%, #ffd36b 50%, transparent 51%), radial-gradient(1px 1px at 45% 85%, #9fd0ff 50%, transparent 51%); }
.sig-kurz .chip-ic { color: #ffd36b; }
/* PewDiePie: gamer glitch */
.sig-pewds span { text-shadow: 1.5px 0 rgba(0,255,255,0.55), -1.5px 0 rgba(255,255,0,0.45); }
/* Linus Tech Tips: famously drops things */
.sig-ltt:hover { transform: rotate(-6deg) translateY(3px); }
/* Markiplier: the pink moustache */
.sig-markiplier .chip-ic { color: #ff9ecb; }
/* Top Dead Center: piston pumps on hover */
.sig-tdc:hover .chip-ic { animation: piston .5s ease-in-out infinite alternate; }
@keyframes piston { to { transform: translateY(-3px); } }
.names li.more a { color: inherit; text-decoration: none; }
.names li.more:hover { border-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .chip, .chip:hover, .sig-ltt:hover { transform: none; transition: none; } .sig-tdc:hover .chip-ic { animation: none; } }

/* All creators page */
.creator-groups .names { margin-top: 14px; }
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.topic-filter button { font: inherit; font-size: 15px; font-weight: 600; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.topic-filter button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
