/* =====================================================================
   UnlockBasket — Warm Sand + Ember theme
   Hand-written vanilla CSS (single source of truth for the site).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Figtree:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  --radius: 0.875rem;

  --background: #faf8f5;
  --surface: #f0ebe3;
  --ink: #1a1a1a;
  --ember: #e85d3a;
  --card: #ffffff;
  --muted-foreground: #6f6b63;

  --font-heading: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Figtree", ui-sans-serif, system-ui, sans-serif;

  /* ink/opacity helpers */
  --ink-90: rgba(26, 26, 26, 0.90);
  --ink-85: rgba(26, 26, 26, 0.85);
  --ink-80: rgba(26, 26, 26, 0.80);
  --ink-75: rgba(26, 26, 26, 0.75);
  --ink-70: rgba(26, 26, 26, 0.70);
  --ink-65: rgba(26, 26, 26, 0.65);
  --ink-60: rgba(26, 26, 26, 0.60);
  --ink-55: rgba(26, 26, 26, 0.55);
  --ink-50: rgba(26, 26, 26, 0.50);
  --ink-45: rgba(26, 26, 26, 0.45);
  --ink-40: rgba(26, 26, 26, 0.40);
  --ink-35: rgba(26, 26, 26, 0.35);
  --ink-30: rgba(26, 26, 26, 0.30);
  --ink-20: rgba(26, 26, 26, 0.20);
  --ink-12: rgba(26, 26, 26, 0.12);
  --ink-10: rgba(26, 26, 26, 0.10);
  --ink-05: rgba(26, 26, 26, 0.05);

  --ember-30: rgba(232, 93, 58, 0.30);
  --ember-40: rgba(232, 93, 58, 0.40);
  --ember-15: rgba(232, 93, 58, 0.15);
  --ember-10: rgba(232, 93, 58, 0.10);
  --ember-20: rgba(232, 93, 58, 0.20);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { font-family: var(--font-body); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  font-weight: 600;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
strong { font-weight: 600; }

::selection { background: var(--ember-20); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-5xl { max-width: 64rem; margin-inline: auto; padding-inline: 1.5rem; }
.wrap-3xl { max-width: 48rem; margin-inline: auto; }
.wrap-2xl { max-width: 42rem; margin-inline: auto; }
.text-center { text-align: center; }

/* =====================================================================
   Affiliate disclosure bar
   ===================================================================== */
.disclosure {
  background: var(--surface);
  border-bottom: 1px solid var(--ink-05);
  padding-block: 0.5rem;
  text-align: center;
}
.disclosure p {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink-60);
  padding-inline: 1rem;
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink-05);
}
.site-header__inner {
  max-width: 80rem;
  margin-inline: auto;
  height: 4rem;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__left { display: flex; align-items: center; gap: 2.5rem; }

.brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand em { color: var(--ember); font-style: normal; }

.nav { display: none; align-items: center; gap: 1.75rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-70); }
.nav a { transition: color 0.15s ease; }
.nav a:hover { color: var(--ember); }
.nav a.is-active { color: var(--ember); }

.live-pill {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-05);
}
.live-pill__dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--ember); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.live-pill__label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.025em; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (min-width: 640px) { .live-pill { display: inline-flex; } }
@media (min-width: 768px) { .nav { display: flex; } }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ink);
  color: var(--background);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.15s ease;
}
.btn-ink:hover { background: var(--ember); }

.btn-ember {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--ember);
  color: #fff;
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: filter 0.15s ease;
}
.btn-ember:hover { filter: brightness(1.1); }

.icon { width: 1rem; height: 1rem; flex: none; }
.icon-sm { width: 0.875rem; height: 0.875rem; flex: none; }
.icon-lg { width: 1.25rem; height: 1.25rem; flex: none; }

/* =====================================================================
   Hero (home)
   ===================================================================== */
.hero { padding-inline: 1.5rem; padding-top: 5rem; padding-bottom: 4rem; }
.hero__inner { max-width: 48rem; margin-inline: auto; text-align: center; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--ember-10);
  color: var(--ember);
  margin-bottom: 2rem;
}
.eyebrow-pill span { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }

.hero__title {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero__title .em { color: var(--ember); }
.hero__title br { display: none; }

.hero__lede {
  font-size: 1.125rem;
  color: var(--ink-70);
  max-width: 58ch;
  margin-inline: auto;
  margin-bottom: 1rem;
  line-height: 1.7;
}
.hero__lede .ink { color: var(--ink); font-weight: 600; }
.hero__sub {
  font-size: 1rem;
  color: var(--ink-55);
  max-width: 55ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero__sub .em { color: var(--ember); font-weight: 600; }

/* Search box */
.search {
  position: relative;
  max-width: 42rem;
  margin-inline: auto;
}
.search--narrow { max-width: 36rem; margin-top: 2.5rem; }
.search__icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--ink-40);
  pointer-events: none;
}
.search__input {
  width: 100%;
  height: 4rem;
  padding: 0 9rem 0 3.5rem;
  background: var(--card);
  border-radius: 1rem;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--ink-10), 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 1rem;
  color: var(--ink);
  transition: box-shadow 0.15s ease;
}
.search--narrow .search__input { height: 3.5rem; padding-right: 8rem; }
.search__input::placeholder { color: var(--ink-35); }
.search__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember-40); }
.search__btn {
  position: absolute;
  right: 0.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  padding-inline: 1.5rem;
}
.search--narrow .search__btn { padding-inline: 1.25rem; }

.try-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.try-row__label { color: var(--ink-45); margin-right: 0.25rem; }
.chip {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-70);
  font-size: 0.75rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--ink-05);
  transition: box-shadow 0.15s ease, color 0.15s ease;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-20); color: var(--ink); }

@media (min-width: 768px) {
  .hero__title { font-size: 4.5rem; }
  .hero__title br { display: inline; }
  .hero__lede { font-size: 1.25rem; }
  .hero__sub { font-size: 1.125rem; }
}

/* =====================================================================
   Trust strip
   ===================================================================== */
.trust { border-top: 1px solid var(--ink-05); border-bottom: 1px solid var(--ink-05); background: rgba(240, 235, 227, 0.6); }
.trust__inner {
  max-width: 64rem;
  margin-inline: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.flag-group { display: flex; align-items: center; gap: 1rem; }
.flag-stack { display: flex; }
.flag-stack > * + * { margin-left: -0.5rem; }
.flag-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--background);
  box-shadow: 0 0 0 2px var(--surface);
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.trust__text { font-size: 0.875rem; font-weight: 500; color: var(--ink-75); }

.stat-group { display: flex; gap: 2.5rem; }
.stat__value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
.stat__value--ember { color: var(--ember); }
.stat__label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-45); margin-top: 0.125rem; }

@media (min-width: 768px) {
  .trust__inner { flex-direction: row; gap: 4rem; }
  .stat-group { gap: 3.5rem; }
  .stat__value { font-size: 1.875rem; }
}

/* =====================================================================
   Deals section
   ===================================================================== */
.section { padding-inline: 1.5rem; padding-block: 6rem; }
.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: 3rem;
  max-width: 42rem;
  margin-inline: auto;
}
.live-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; }
.live-eyebrow__dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--ember); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.live-eyebrow__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ember); }

.section__title { font-size: 1.875rem; font-weight: 600; }
.section__lede { color: var(--ink-60); }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ember);
  transition: gap 0.15s ease;
}
.view-all:hover { gap: 0.625rem; }

@media (min-width: 768px) { .section__title { font-size: 2.25rem; } }

/* Deal grid */
.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .deal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .deal-grid { grid-template-columns: repeat(4, 1fr); } }

/* Deals page grid: 1 / 2 / 3 / 4 */
.deal-grid--page { grid-template-columns: 1fr; }
@media (min-width: 640px) { .deal-grid--page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .deal-grid--page { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .deal-grid--page { grid-template-columns: repeat(4, 1fr); } }

/* Deal card */
.deal {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--ink-05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.deal:hover { transform: translateY(-0.25rem); box-shadow: inset 0 0 0 1px var(--ink-20); }

/* Deal type tag (UK deal vs EU import deal) */
.deal__tag {
  display: flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5rem 1rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--ink-05);
}
.deal__tag-dot { width: 0.4375rem; height: 0.4375rem; border-radius: 999px; background: currentColor; }
.deal__tag--import { color: var(--ember); background: var(--ember-10); }
.deal__tag--uk { color: var(--ink-70); background: var(--surface); }

.deal__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.deal__save {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--ember);
  color: #fff;
  padding: 0.25rem 0.625rem 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.deal__pct {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--ink-85);
  backdrop-filter: blur(4px);
  color: var(--background);
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.deal__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.deal__cat { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-40); margin-bottom: 0.375rem; }
.deal__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.375;
  margin-bottom: 1rem;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal__foot { margin-top: auto; }
.deal__pricelabel { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: var(--ink-40); margin-bottom: 0.25rem; }
.deal__prices { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.25rem; }
.deal__now { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
.deal__was { font-size: 0.875rem; color: var(--ink-40); text-decoration: line-through; }
.deal__meta { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--ink-55); margin-bottom: 1rem; }
.deal__flag {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  background: var(--surface);
  font-size: 0.5rem;
  font-weight: 700;
}
.deal__buy { width: 100%; padding-block: 0.625rem; }

@media (min-width: 640px) { .deal__title { font-size: 1rem; } }

/* =====================================================================
   How it works
   ===================================================================== */
.how { background: rgba(240, 235, 227, 0.7); border-top: 1px solid var(--ink-05); border-bottom: 1px solid var(--ink-05); padding-inline: 1.5rem; padding-block: 6rem; }
.how__head { max-width: 42rem; margin-inline: auto; text-align: center; margin-bottom: 3.5rem; }
.how__eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ember); margin-bottom: 0.75rem; }
.how__title { font-size: 1.875rem; font-weight: 600; margin-bottom: 1rem; }
.how__title br { display: none; }
.how__lede { color: var(--ink-65); font-size: 1.125rem; line-height: 1.7; }

.how-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.how-card {
  background: var(--card);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px var(--ink-05);
  transition: box-shadow 0.15s ease;
}
.how-card:hover { box-shadow: inset 0 0 0 1px var(--ember-40); }
.how-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.how-card__icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--ember); color: #fff; }
.how-card__num { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 600; color: var(--ink-30); }
.how-card__title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.how-card__body { color: var(--ink-60); line-height: 1.7; }

.how__cta { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; }
.how__note { font-size: 0.875rem; color: var(--ink-50); }

@media (min-width: 768px) {
  .how__title { font-size: 2.25rem; }
  .how__title br { display: inline; }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { padding-inline: 1.5rem; padding-block: 4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand { grid-column: span 2; }
.footer-brand__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; display: block; margin-bottom: 0.75rem; }
.footer-brand__name em { color: var(--ember); font-style: normal; }
.footer-brand__text { color: var(--ink-55); font-size: 0.875rem; max-width: 20rem; line-height: 1.7; }
.footer-flags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.footer-flag { padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--surface); font-size: 0.625rem; font-weight: 600; letter-spacing: 0.025em; color: var(--ink-60); }

.footer-col__label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; color: var(--ink-45); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.footer-col a { transition: color 0.15s ease; }
.footer-col a:hover { color: var(--ember); }

.footer-legal {
  padding-top: 2rem;
  border-top: 1px solid var(--ink-05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.6875rem;
  color: var(--ink-45);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-legal { flex-direction: row; }
}

/* =====================================================================
   Deals page
   ===================================================================== */
.hero--deals { padding-top: 4rem; padding-bottom: 2.5rem; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 500; color: var(--ink-50); margin-bottom: 1.5rem; }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb__current { color: var(--ink-80); }

.eyebrow-pill--deals { margin-bottom: 1.5rem; }
.eyebrow-pill--deals .live-eyebrow__dot { width: 0.375rem; height: 0.375rem; }
.eyebrow-pill--deals span { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.18em; }

.hero__title--deals { font-size: 3rem; line-height: 1.05; margin-bottom: 1.25rem; }
.hero__lede--deals { font-size: 1.125rem; color: var(--ink-65); max-width: 55ch; margin-inline: auto; line-height: 1.7; }
@media (min-width: 768px) { .hero__title--deals { font-size: 3.75rem; } }

/* Filters strip */
.filters {
  border-top: 1px solid var(--ink-05);
  border-bottom: 1px solid var(--ink-05);
  background: rgba(240, 235, 227, 0.6);
  position: sticky;
  top: 4rem;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.filters__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* On mobile the chips live on a single, swipeable line rather than wrapping
   into a messy multi-row block. Desktop reverts to wrapping below. */
.filters__bar { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex: 1 1 auto; }
.filters__chips {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.filters__chips::-webkit-scrollbar { display: none; }

.cat-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--background);
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--ink-10);
  transition: box-shadow 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.cat-chip:hover { box-shadow: inset 0 0 0 1px var(--ink-30); color: var(--ink); }
.cat-chip.is-active { background: var(--ink); color: var(--background); box-shadow: none; }
.cat-chip svg { width: 0.8125rem; height: 0.8125rem; }

/* Dropdown (server-rendered with <details>) */
.dropdown { position: relative; }
.dropdown__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--background);
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--ink-10);
  transition: box-shadow 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.dropdown__btn:hover { box-shadow: inset 0 0 0 1px var(--ink-30); color: var(--ink); }
.dropdown__chevron { width: 0.875rem; height: 0.875rem; transition: transform 0.2s ease; }

.dropdown__panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: min(92vw, 720px);
  background: var(--card);
  border-radius: 1rem;
  box-shadow: inset 0 0 0 1px var(--ink-10), 0 25px 50px -12px rgba(26, 26, 26, 0.10);
  padding: 1.5rem;
  z-index: 50;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}
.dropdown__group-label { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ember); margin-bottom: 0.625rem; }
.dropdown__group ul { display: flex; flex-direction: column; gap: 0.25rem; }
.dropdown__item { display: block; width: 100%; text-align: left; font-size: 0.875rem; padding-block: 0.25rem; color: var(--ink-75); transition: color 0.15s ease; }
.dropdown__item:hover { color: var(--ink); }
.dropdown__item.is-active { color: var(--ember); font-weight: 600; }

@media (min-width: 768px) { .dropdown__panel { grid-template-columns: repeat(3, 1fr); } }

/* Sort */
.sort { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.sort__icon { width: 1rem; height: 1rem; color: var(--ink-40); flex-shrink: 0; }
.sort__label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-45); flex-shrink: 0; }
.sort__chips {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  gap: 0.375rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.sort__chips::-webkit-scrollbar { display: none; }
.sort-chip { flex-shrink: 0; scroll-snap-align: start; white-space: nowrap; padding: 0.375rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: var(--ink-55); transition: color 0.15s ease, background-color 0.15s ease; }
.sort-chip:hover { color: var(--ink); }
.sort-chip.is-active { background: var(--ember-15); color: var(--ember); }

@media (min-width: 1024px) {
  .filters__inner { flex-direction: row; align-items: center; }
  /* Back to a calm wrapped layout on the desktop where there's room. */
  .filters__chips,
  .sort__chips { flex-wrap: wrap; overflow: visible; }
  .sort { flex-shrink: 0; }
}

/* Results meta */
.results-meta {
  max-width: 80rem;
  margin-inline: auto;
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.results-meta__count { font-size: 0.875rem; color: var(--ink-55); }
.results-meta__count strong { font-weight: 600; color: var(--ink); }
.results-meta__avg { display: none; font-size: 0.75rem; color: var(--ink-45); }
.results-meta__avg .em { color: var(--ember); font-weight: 600; }
@media (min-width: 640px) { .results-meta__avg { display: block; } }

/* Pagination */
.pagination {
  max-width: 80rem;
  margin-inline: auto;
  padding: 0 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.pagination__row { display: flex; align-items: center; gap: 0.375rem; }
.page-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-60);
  transition: color 0.15s ease, background-color 0.15s ease;
}
.page-btn:hover { color: var(--ink); background: var(--surface); }
.page-btn.is-active { background: var(--ink); color: var(--background); }
.page-btn--nav { color: var(--ink-40); }
.page-btn--nav:hover { color: var(--ink); }
.page-btn--disabled { opacity: 0.35; pointer-events: none; }
.pagination__ellipsis { padding-inline: 0.5rem; color: var(--ink-40); }
.pagination__note { font-size: 0.75rem; color: var(--ink-45); }

/* CTA band */
.cta-band { background: rgba(240, 235, 227, 0.7); border-top: 1px solid var(--ink-05); border-bottom: 1px solid var(--ink-05); padding-inline: 1.5rem; padding-block: 4rem; }
.cta-band__inner { max-width: 42rem; margin-inline: auto; text-align: center; }
.cta-band__title { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.cta-band__text { color: var(--ink-60); margin-bottom: 2rem; }
@media (min-width: 768px) { .cta-band__title { font-size: 1.875rem; } }

/* =====================================================================
   404
   ===================================================================== */
.notfound { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding-inline: 1rem; }
.notfound__inner { max-width: 28rem; text-align: center; }
.notfound__code { font-size: 4.5rem; font-weight: 700; }
.notfound__title { margin-top: 1rem; font-size: 1.25rem; font-weight: 600; }
.notfound__text { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.notfound__action { margin-top: 1.5rem; }
.btn-ink--sm { padding: 0.5rem 1rem; }

/* =====================================================================
   PHP integration — shared chrome the static extraction omits
   (legacy container, mobile menu, auth state, <details> dropdown,
   real product images, empty states)
   ===================================================================== */

/* width helper used by not-yet-ported pages */
.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 1.5rem; }

/* header right-hand cluster */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.auth-link { font-size: 0.875rem; font-weight: 600; color: var(--ink-70); transition: color 0.15s ease; }
.auth-link:hover { color: var(--ember); }

.auth-pill { display: none; align-items: center; gap: 0.5rem; background: var(--surface); padding: 0.375rem 0.375rem 0.375rem 0.75rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink-05); }
.auth-pill__dot { width: 0.375rem; height: 0.375rem; border-radius: 999px; background: var(--ember); }
.auth-pill__email { font-size: 0.75rem; font-weight: 600; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-pill__form { display: inline; }
.auth-pill__out { font-size: 0.6875rem; font-weight: 600; color: var(--ink-50); padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--background); transition: color 0.15s ease; }
.auth-pill__out:hover { color: var(--ember); }
@media (min-width: 640px) { .auth-pill { display: inline-flex; } }

/* mobile menu */
.menu-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; color: var(--ink-70); }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--ink-05); background: var(--background); }
.mobile-nav.open { display: block; }
.mobile-nav__inner { display: flex; flex-direction: column; gap: 0.25rem; padding-block: 1rem; }
.mobile-nav a, .mobile-nav button { text-align: left; padding: 0.625rem 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink-75); transition: color 0.15s ease; }
.mobile-nav a:hover, .mobile-nav button:hover { color: var(--ember); }
@media (min-width: 768px) { .mobile-nav { display: none !important; } }

/* deals search clear button */
.search__clear { position: absolute; right: 5.5rem; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 999px; color: var(--ink-40); transition: color 0.15s ease, background-color 0.15s ease; }
.search__clear:hover { color: var(--ink); background: var(--surface); }
.search__clear svg { width: 1rem; height: 1rem; }

/* category dropdown driven by <details> (no JS) */
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown[open] .dropdown__btn { background: var(--ember-15); color: var(--ember); box-shadow: inset 0 0 0 1px var(--ember-30); }
.dropdown[open] .dropdown__panel { display: grid; }
.dropdown[open] .dropdown__chevron { transform: rotate(180deg); }

/* real product images inside the deal media well */
.deal__img { width: 100%; height: 100%; object-fit: contain; padding: 12%; transition: transform 0.5s ease; }
.deal:hover .deal__img { transform: scale(1.03); }

/* empty state */
.empty-state { text-align: center; padding-block: 4rem; }
.empty-state h2 { font-size: 1.5rem; margin-top: 0.5rem; }
.empty-state p { color: var(--ink-55); margin-top: 0.5rem; }

/* =====================================================================
   Inner pages — search, compare, how-it-works, about, contact, alerts,
   login, extension, privacy. Styled in the Warm Sand + Ember language.
   ===================================================================== */

/* typography + width helpers */
.font-display { font-family: var(--font-heading); }
.font-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.container.narrow { max-width: 768px; }
.container.wide-narrow { max-width: 1024px; }

/* page hero + section heads */
.page-hero { padding-inline: 1.5rem; padding-block: 3.5rem 1.5rem; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-block: 0.75rem; letter-spacing: -0.025em; }
.page-hero__desc { color: var(--ink-65); font-size: 1.0625rem; line-height: 1.7; max-width: 60ch; margin-top: 0.5rem; }
.eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ember); }
.breadcrumb .current { color: var(--ink-80); }

.center-head { max-width: 42rem; margin-inline: auto; text-align: center; }
.center-head__eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-45); }
.center-head__eyebrow--signal { color: var(--ember); }
.center-head__eyebrow svg { width: 0.875rem; height: 0.875rem; }
.center-head__title { margin-top: 0.5rem; font-family: var(--font-heading); font-weight: 600; font-size: 1.875rem; letter-spacing: -0.02em; }
.center-head__sub { margin-top: 0.75rem; color: var(--ink-60); line-height: 1.6; }
.section-head__title { font-family: var(--font-heading); font-weight: 600; font-size: 1.875rem; letter-spacing: -0.02em; }

/* buttons (legacy --modifier names) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.875rem; padding: 0.625rem 1rem; transition: background-color 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease; }
.btn svg { width: 1rem; height: 1rem; }
.btn--ink { background: var(--ink); color: var(--background); }
.btn--ink:hover { background: var(--ember); }
.btn--signal { background: var(--ember); color: #fff; }
.btn--signal:hover { filter: brightness(1.1); }
.btn--ghost { background: var(--surface); color: var(--ink-70); box-shadow: inset 0 0 0 1px var(--ink-10); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-30); }
.btn--lg { padding: 0.875rem 1.5rem; }
.btn--block { width: 100%; }

/* form controls */
.field-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-50); margin-bottom: 0.375rem; }
.input-pill { width: 100%; height: 3rem; padding-inline: 1rem; background: var(--card); border-radius: 0.75rem; box-shadow: inset 0 0 0 1px var(--ink-10); font-size: 1rem; transition: box-shadow 0.15s ease; }
.input-pill:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember-40); }
.input-pill--narrow { max-width: 10rem; }
.textarea { width: 100%; padding: 0.875rem 1rem; background: var(--card); border-radius: 0.75rem; box-shadow: inset 0 0 0 1px var(--ink-10); font-size: 1rem; line-height: 1.6; resize: vertical; transition: box-shadow 0.15s ease; }
.textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ember-40); }
.sort-btn { font-size: 0.8125rem; font-weight: 600; color: var(--ink-60); }
.sort-btn:hover { color: var(--ink); }

/* search page — trending tags + category grid */
.trending { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.trending__label { color: var(--ink-45); font-size: 0.875rem; margin-right: 0.25rem; }
.tag { display: inline-flex; align-items: center; padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--surface); color: var(--ink-70); font-size: 0.8125rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--ink-05); transition: box-shadow 0.15s ease, color 0.15s ease; }
.tag:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-20); }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card { display: flex; flex-direction: column; background: var(--card); border-radius: 1rem; padding: 1rem; box-shadow: inset 0 0 0 1px var(--ink-05); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cat-card:hover { transform: translateY(-0.25rem); box-shadow: inset 0 0 0 1px var(--ink-20); }
.cat-card__image { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 10%; background: var(--surface); border-radius: 0.75rem; margin-bottom: 0.75rem; }
.cat-card__name { font-weight: 600; font-size: 0.9375rem; }
.cat-card__count { font-size: 0.75rem; color: var(--ink-45); margin-top: 0.125rem; }

/* about — stats, story, team */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--ink-05); text-align: center; }
.stat-card__v { font-family: var(--font-heading); font-weight: 600; font-size: 1.75rem; color: var(--ink); }
.stat-card__l { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-45); margin-top: 0.375rem; }
.story { max-width: 42rem; margin-top: 3rem; display: flex; flex-direction: column; gap: 1.25rem; color: var(--ink-70); font-size: 1.0625rem; line-height: 1.8; }
.story .quote { border-left: 3px solid var(--ember); padding-left: 1.25rem; color: var(--ink); font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; }
.team-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { background: var(--card); border-radius: 1rem; padding: 1.75rem; box-shadow: inset 0 0 0 1px var(--ink-05); text-align: center; }
.team-card__emoji { font-size: 2rem; }
.team-card__name { font-weight: 600; margin-top: 0.5rem; }
.team-card__role { font-size: 0.8125rem; color: var(--ink-50); margin-top: 0.125rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; } }
.contact-card { display: flex; align-items: center; gap: 0.875rem; background: var(--card); border-radius: 1rem; padding: 1.25rem; box-shadow: inset 0 0 0 1px var(--ink-05); margin-bottom: 1rem; transition: box-shadow 0.15s ease; }
.contact-card:hover { box-shadow: inset 0 0 0 1px var(--ember-40); }
.contact-card__icon { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; background: var(--ember-10); color: var(--ember); flex: none; }
.contact-card__title { font-weight: 600; }
.contact-card__sub { font-size: 0.875rem; color: var(--ink-55); }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 560px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }

/* alerts */
.alert-card { background: var(--card); border-radius: 1rem; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--ink-05); }
.new-alert-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-top: 1rem; }
@media (min-width: 560px) { .new-alert-grid { grid-template-columns: 1fr auto auto; } }
.alert-row { background: var(--card); border-radius: 1rem; padding: 1.25rem; box-shadow: inset 0 0 0 1px var(--ink-05); }
.alert-row__head { display: flex; align-items: center; gap: 0.75rem; }
.alert-row__icon { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.625rem; background: var(--ember-10); color: var(--ember); flex: none; }
.alert-row__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-row__meta { font-size: 0.8125rem; color: var(--ink-55); display: flex; align-items: center; gap: 0.375rem; margin-top: 0.125rem; }
.alert-row__meta svg { width: 0.875rem; height: 0.875rem; }
.alert-row__status { margin-left: auto; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember); background: var(--ember-10); padding: 0.25rem 0.625rem; border-radius: 999px; }
.alert-row__bar { margin-top: 0.875rem; height: 0.375rem; border-radius: 999px; background: var(--surface); overflow: hidden; }
.alert-row__bar-fill { height: 100%; background: var(--ember); border-radius: 999px; }

/* how it works — shield banner, steps, faq */
.shield-banner { display: flex; align-items: flex-start; gap: 1rem; background: var(--ember-10); border-radius: 1rem; padding: 1.5rem; margin-top: 2rem; }
.shield-banner svg { color: var(--ember); flex: none; width: 1.5rem; height: 1.5rem; }
.shield-banner h3 { font-size: 1.0625rem; }
.shield-banner p { color: var(--ink-65); margin-top: 0.25rem; line-height: 1.6; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: var(--card); border-radius: 1rem; padding: 1.75rem; box-shadow: inset 0 0 0 1px var(--ink-05); transition: box-shadow 0.15s ease; }
.step-card:hover { box-shadow: inset 0 0 0 1px var(--ember-40); }
.step-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.step-card__icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--ember); color: #fff; }
.step-card__num { font-family: var(--font-heading); font-weight: 600; color: var(--ink-30); }
.step-card h3 { font-size: 1.125rem; }
.step-card p { color: var(--ink-60); margin-top: 0.5rem; line-height: 1.6; }
.faq { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.faq details { background: var(--card); border-radius: 0.875rem; box-shadow: inset 0 0 0 1px var(--ink-05); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { color: var(--ember); font-size: 1.25rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { padding: 0 1.25rem 1.25rem; color: var(--ink-65); line-height: 1.7; }

/* extension */
.ext-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.ext-preview { margin-top: 3rem; display: flex; justify-content: center; }
.ext-preview__inner { width: 100%; max-width: 28rem; background: var(--card); border-radius: 1.25rem; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--ink-05), 0 25px 50px -12px rgba(26, 26, 26, 0.12); }
.ext-preview__eyebrow { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ember); }
.ext-preview__eyebrow svg { width: 0.875rem; height: 0.875rem; }
.ext-preview h3 { margin-top: 0.75rem; font-size: 1.25rem; }
.ext-preview__compare { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.ext-preview__current-label, .ext-preview__cheaper-label { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-45); }
.ext-preview__current { font-family: var(--font-heading); font-size: 1.5rem; color: var(--ink-40); text-decoration: line-through; }
.ext-preview__cheaper-side { text-align: right; }
.ext-preview__cheaper { font-family: var(--font-heading); font-size: 1.5rem; color: var(--ember); font-weight: 600; }
.ext-preview__inner button { margin-top: 1.25rem; width: 100%; padding-block: 0.75rem; border-radius: 0.75rem; background: var(--ink); color: var(--background); font-weight: 600; transition: background-color 0.15s ease; }
.ext-preview__inner button:hover { background: var(--ember); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card { background: var(--card); border-radius: 1rem; padding: 1.75rem; box-shadow: inset 0 0 0 1px var(--ink-05); }
.feature-card__icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: var(--ember-10); color: var(--ember); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.125rem; }
.feature-card p { color: var(--ink-60); margin-top: 0.5rem; line-height: 1.6; }

/* privacy */
.privacy-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.75rem; }
.privacy-list h2 { font-size: 1.125rem; }
.privacy-list p { color: var(--ink-65); margin-top: 0.5rem; line-height: 1.8; }

/* =====================================================================
   Compare page
   ===================================================================== */
.compare-hero { padding-inline: 1.5rem; padding-block: 3.5rem 2rem; }
.compare-hero__inner { max-width: 48rem; margin-inline: auto; text-align: center; }
.compare-hero__breadcrumb { justify-content: center; }
.compare-hero__eyebrow { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; color: var(--ember); }
.compare-hero__title { margin-top: 0.75rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.025em; }
.compare-hero__lede { margin-top: 1rem; color: var(--ink-65); font-size: 1.0625rem; line-height: 1.7; max-width: 55ch; margin-inline: auto; }
.compare-form { margin-top: 2rem; }
.compare-url-pill { position: relative; display: flex; align-items: center; background: var(--card); border-radius: 1rem; box-shadow: inset 0 0 0 1px var(--ink-10); padding: 0.5rem 0.5rem 0.5rem 3rem; }
.compare-url-pill:focus-within { box-shadow: inset 0 0 0 2px var(--ember-40); }
.compare-url-pill__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-40); }
.compare-url-pill__icon svg { width: 1.125rem; height: 1.125rem; }
.compare-url-pill__input { flex: 1; min-width: 0; height: 3rem; border: 0; background: none; font-size: 0.9375rem; }
.compare-url-pill__input:focus { outline: none; }
.compare-url-pill__paste { padding-inline: 0.875rem; font-size: 0.8125rem; font-weight: 600; color: var(--ink-55); }
.compare-url-pill__paste:hover { color: var(--ink); }
.compare-url-pill__submit { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.75rem 1.25rem; border-radius: 0.75rem; background: var(--ink); color: var(--background); font-weight: 600; font-size: 0.875rem; transition: background-color 0.15s ease; }
.compare-url-pill__submit:hover { background: var(--ember); }
.compare-url-pill__submit svg { width: 1rem; height: 1rem; }
.compare-examples { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.compare-examples__label { font-size: 0.8125rem; color: var(--ink-45); }
.compare-examples__list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.compare-example-btn { padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--surface); font-size: 0.75rem; font-weight: 500; color: var(--ink-70); box-shadow: inset 0 0 0 1px var(--ink-05); transition: box-shadow 0.15s ease, color 0.15s ease; }
.compare-example-btn:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-20); }
.compare-features { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; font-size: 0.8125rem; color: var(--ink-60); }
.compare-features li { display: inline-flex; align-items: center; gap: 0.5rem; }
.compare-features__icon { color: var(--ember); display: inline-flex; }
.compare-features__icon svg { width: 1rem; height: 1rem; }

.compare-results { padding-inline: 1.5rem; padding-bottom: 5rem; }
.compare-results__inner { max-width: 64rem; margin-inline: auto; }
.compare-demo-note { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--ink-50); margin-bottom: 1.5rem; }
.compare-demo-note__dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--ember); animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.compare-product { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; background: var(--card); border-radius: 1.25rem; padding: 1.5rem; box-shadow: inset 0 0 0 1px var(--ink-05); }
@media (min-width: 768px) { .compare-product { grid-template-columns: auto 1fr auto; } }
.compare-product__media { width: 100%; max-width: 8rem; aspect-ratio: 1 / 1; background: var(--surface); border-radius: 1rem; overflow: hidden; }
.compare-product__img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.compare-product__asin { font-size: 0.6875rem; color: var(--ink-40); letter-spacing: 0.08em; }
.compare-product__title { margin-top: 0.25rem; font-size: 1.125rem; }
.compare-product__rating { margin-top: 0.5rem; display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--ink-60); }
.compare-product__stars { color: var(--ember); }
.compare-product__reviews { color: var(--ink-45); }
.compare-product__save { text-align: center; background: var(--ember-10); border-radius: 1rem; padding: 1rem 1.25rem; }
.compare-product__save-label { display: block; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ember); }
.compare-product__save-amount { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 1.875rem; color: var(--ember); }
.compare-product__save-pct { display: block; font-size: 0.75rem; color: var(--ink-55); }

.compare-best { display: flex; flex-direction: column; gap: 1rem; justify-content: space-between; background: var(--ink); color: var(--background); border-radius: 1.25rem; padding: 1.5rem; margin-top: 1.25rem; }
@media (min-width: 640px) { .compare-best { flex-direction: row; align-items: center; } }
.compare-best__eyebrow { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(250, 248, 245, 0.6); }
.compare-best__price { font-family: var(--font-heading); font-weight: 600; font-size: 2rem; margin-top: 0.25rem; }
.compare-best__meta { font-size: 0.875rem; font-weight: 400; color: rgba(250, 248, 245, 0.6); }
.compare-best__sub { font-size: 0.875rem; color: rgba(250, 248, 245, 0.7); margin-top: 0.25rem; }
.compare-best__cta { flex: none; }

.compare-table-wrap { margin-top: 1.25rem; overflow-x: auto; }
.compare-table { min-width: 560px; background: var(--card); border-radius: 1.25rem; box-shadow: inset 0 0 0 1px var(--ink-05); overflow: hidden; }
.compare-table__head { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 0.8fr; gap: 1rem; padding: 0.875rem 1.25rem; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-45); background: var(--surface); }
.compare-table__row { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr 0.8fr; gap: 1rem; padding: 1rem 1.25rem; align-items: center; border-top: 1px solid var(--ink-05); }
.compare-table__row--best { background: var(--ember-10); }
.compare-table__cell { font-size: 0.875rem; }
.compare-table__cell--store { display: flex; align-items: center; gap: 0.5rem; }
.compare-table__flag { font-size: 1rem; }
.compare-table__store-name { font-weight: 600; }
.compare-table__store-name:hover { color: var(--ember); }
.compare-table__badge { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: var(--ember); padding: 0.125rem 0.5rem; border-radius: 999px; }
.compare-table__local { font-weight: 500; }
.compare-table__prime { margin-left: 0.375rem; font-size: 0.625rem; font-weight: 700; color: var(--ember); }
.compare-table__gbp { font-family: var(--font-heading); font-weight: 600; font-size: 1.125rem; }
.compare-table__open { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--ember); }
.compare-table__open svg { width: 0.875rem; height: 0.875rem; }
.compare-footnote { margin-top: 1.25rem; font-size: 0.75rem; color: var(--ink-45); line-height: 1.7; }

/* =====================================================================
   Deal Alerts opt-in (PWA web push)
   ===================================================================== */
/* Hero "Enable deal alerts" button (revealed by js/deal-alerts.js) */
.hero__notify {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-75);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--ink-12);
  cursor: pointer;
  transition: color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.hero__notify:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-30); }
.hero__notify svg { width: 1.0625rem; height: 1.0625rem; color: var(--ember); }
.hero__notify.is-on { color: var(--ember); box-shadow: inset 0 0 0 1px var(--ember-30); cursor: default; }
.hero__notify:disabled { cursor: default; }

.dealalerts {
  margin: 3rem auto;
  max-width: 48rem;
  background: var(--card);
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px var(--ink-10);
  overflow: hidden;
}
.dealalerts__inner { padding: 1.75rem; }
@media (min-width: 640px) { .dealalerts__inner { padding: 2.25rem; } }
.dealalerts__head { display: flex; align-items: flex-start; gap: 1rem; }
.dealalerts__icon {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.875rem;
  background: var(--ember-10);
  color: var(--ember);
}
.dealalerts__icon svg { width: 1.375rem; height: 1.375rem; }
.dealalerts__title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }
.dealalerts__lede { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--ink-60); }

.dealalerts__state { margin-top: 1.5rem; }
.dealalerts__muted { font-size: 0.875rem; color: var(--ink-55); line-height: 1.6; }
.dealalerts__instructions {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-75);
  background: var(--surface);
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
}
.dealalerts__instructions strong { color: var(--ink); }
.dealalerts__share { font-weight: 700; color: var(--ember); }

.dealalerts__btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.dealalerts__btn svg { width: 1.125rem; height: 1.125rem; }
.dealalerts__btn:disabled { opacity: 0.55; cursor: default; }

.dealalerts__ok {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ember);
}
.dealalerts__ok svg { width: 1.125rem; height: 1.125rem; }

.dealalerts__cats { margin-top: 1.5rem; border-top: 1px solid var(--ink-05); padding-top: 1.25rem; }
.dealalerts__cats-title { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-45); margin-bottom: 0.75rem; }
.dealalerts__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dealalerts__chip { position: relative; }
.dealalerts__chip input { position: absolute; opacity: 0; pointer-events: none; }
.dealalerts__chip span {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-70);
  background: var(--background);
  box-shadow: inset 0 0 0 1px var(--ink-10);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.dealalerts__chip span:hover { box-shadow: inset 0 0 0 1px var(--ink-30); color: var(--ink); }
.dealalerts__chip input:checked + span { background: var(--ember); color: #fff; box-shadow: none; }
.dealalerts__chip input:focus-visible + span { outline: 2px solid var(--ember); outline-offset: 2px; }
