@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #fcfbf8;
  --wash: #f3f1ec;
  --card: #ffffff;
  --ink: #1c1b18;
  --soft: #5e5b54;
  --line: #e2ded5;
  --accent: #0a7a43;
  --accent-wash: #e7f5ee;
  --alert: #a4460a;
  --alert-wash: #fdeeda;
  --band: #1c1b18;
  --band-ink: #efede8;
  --band-soft: #aaa69c;
  --band-line: #34322d;
  --display: "Archivo", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
}

/* Dark values: the device setting unless the visitor chose light, or the visitor's own choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151412;
    --wash: #1b1a17;
    --card: #201f1b;
    --ink: #efede8;
    --soft: #a29e94;
    --line: #322f2a;
    --accent: #4fd08a;
    --accent-wash: #12301f;
    --alert: #ffb454;
    --alert-wash: #3a2608;
    --band: #0e0d0c;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #151412;
  --wash: #1b1a17;
  --card: #201f1b;
  --ink: #efede8;
  --soft: #a29e94;
  --line: #322f2a;
  --accent: #4fd08a;
  --accent-wash: #12301f;
  --alert: #ffb454;
  --alert-wash: #3a2608;
  --band: #0e0d0c;
  color-scheme: dark;
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}

.lbl {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);
}

/* Limited-time offer badge */
.ends {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  padding: 8px 12px;
  background: var(--alert-wash);
  border-left: 4px solid var(--alert);
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--alert);
}

.ends strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ends-over {
  background: var(--wash);
  border-left-color: var(--soft);
  color: var(--soft);
}

.dealhead .ends {
  display: inline-flex;
  margin-top: 18px;
  font-size: 17px;
}

/* ---- HEADER ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  flex: 1;
}

.cats a {
  padding: 4px 0;
  font-weight: 600;
  color: var(--soft);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.cats a:hover { color: var(--ink); }

.cats a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header search: a pill with a magnifier */
.head-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 150px;
  min-width: 0;
  height: 40px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.head-search:hover, .head-search:focus-within { border-color: var(--ink); }

.head-search svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.head-search input {
  width: 100%;
  height: 100%;
  padding: 0 14px 0 38px;
  background: none;
  border: 0;
  border-radius: 20px;
  font-size: 15px;
  outline: none;
}

.head-search input::placeholder { color: var(--soft); }

/* Country picker: a pill holding a globe, the country and an arrow */
.country-pick {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
}

.country-pick:hover { border-color: var(--ink); }

.country-pick svg {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.country-pick .country-pick-arrow {
  left: auto;
  right: 10px;
  width: 16px;
  height: 16px;
}

.country-pick select {
  appearance: none;
  -webkit-appearance: none;
  height: 100%;
  padding: 0 32px 0 38px;
  background: none;
  border: 0;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.country-pick option {
  background: var(--card);
  color: var(--ink);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle[data-theme-now="dark"] .theme-moon,
.theme-toggle[data-theme-now="light"] .theme-sun { display: none; }

.theme-toggle:hover { border-color: var(--ink); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; }

.btn-big {
  padding: 14px 22px;
  font-size: 18px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* ---- HERO ---- */
.hero {
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.hero-small { padding: 36px 0 44px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

h1 {
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.08;
}

.hero-small h1 { font-size: clamp(30px, 4vw, 46px); }

.hero-lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 20px;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---- HERO PANEL: TOP DEALS ---- */
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}

.panel-lead {
  --logo: 72px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.panel-name {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

.panel-name:hover { text-decoration: underline; }

.panel-cat {
  font-size: 14px;
  color: var(--soft);
}

.panel-reward {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.panel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.panel-row:last-child { padding-bottom: 0; }

.panel-row-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.panel-row-text span {
  font-size: 15px;
  color: var(--soft);
}

.panel-row-go {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.panel-row:hover .panel-row-go { color: var(--accent); }

/* ---- SECTIONS ---- */
.band { padding: 64px 0; }

.band-wash {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band h2 {
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.15;
  margin-bottom: 22px;
}

.band .band-lead {
  max-width: 44em;
  margin: -14px 0 28px;
  font-size: 19px;
  color: var(--soft);
}

/* ---- CATEGORY CARDS ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.cat-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.cat-card:hover { border-color: var(--ink); }

.logo-stack {
  --logo: 52px;
  display: flex;
  margin-bottom: 10px;
}

.stack-item {
  position: relative;
  display: flex;
  margin-right: -12px;
}

/* Until the script has picked the logos for the visitor's country, show the first few */
.logo-stack:not(.stack-ready) .stack-item:nth-child(n+5) { display: none; }

.cat-card strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
}

.cat-names {
  flex: 1;
  font-size: 15px;
  color: var(--soft);
}

.cat-go {
  margin-top: 8px;
  font-weight: 700;
  color: var(--accent);
}

/* ---- DEAL GRID ---- */
.region-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 16px;
}

.region-title small {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0;
  margin-left: 6px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.deal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}

/* A bank's offer card: a deal card whose long conditions are cut short (the offer's own page has them in full) */
.offer .deal-sum {
  flex: 0 0 auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer span.deal-cat:hover { color: var(--soft); }

/* The two things people compare cards on: what you get, and what it costs */
.offer-key {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-key div {
  display: flex;
  flex-direction: column;
}

.offer-key dt {
  font-size: 14px;
  color: var(--soft);
}

.offer-key dd {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.offer-key .offer-headline {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.offer .deal-actions { margin-top: auto; }

/* "+ Compare" / "✓ Comparing" */
.compare-toggle {
  padding: 10px 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.compare-toggle:hover { border-color: var(--ink); }

.compare-toggle[aria-pressed="true"] {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent);
}

.compare-toggle:disabled {
  opacity: 0.45;
  cursor: default;
}

.deal:hover { border-color: var(--ink); }

/* The whole card opens the deal page: the name link is stretched over it,
   and the card's own controls sit above that. */
.deal-name a::after,
.panel-name::after {
  content: "";
  position: absolute;
  inset: 0;
}

.deal .btn, .deal button.code, .deal .deal-cat, .deal .compare-toggle,
.panel-lead .btn, .panel-lead button.code {
  position: relative;
  z-index: 1;
}

.deal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  --logo: 64px;
}

.deal-logo { display: flex; }

.deal-cat {
  font-size: 14px;
  text-decoration: none;
  color: var(--soft);
}

.deal-cat:hover { color: var(--ink); }

.deal-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

/* "UK only" etc.: shown where deals from several countries are listed together */
.deal-where {
  display: none;
  padding: 2px 10px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--soft);
}

#deal-grid .deal-where, .finance-scope .deal-where { display: inline; }
#deal-grid.one-country .deal-where, .finance-scope.one-country .deal-where { display: none; }

.pick {
  padding: 2px 10px;
  background: var(--accent-wash);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.deal-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Tile height comes from --logo, set by whatever holds the logo */
.logo {
  width: var(--logo, 44px);
  height: var(--logo, 44px);
  flex-shrink: 0;
  border-radius: calc(var(--logo, 44px) * 0.2);
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
}

/* Logos with their own opaque background: no white tile behind them */
.logo-solid { background: none; }

/* Wordmarks */
.logo-wide {
  width: calc(var(--logo, 44px) * 1.6);
  border-radius: calc(var(--logo, 44px) * 0.1);
}

/* Card art photographed on a solid background: a tile at the image's own shape */
.logo-card-tile {
  width: auto;
  border-radius: calc(var(--logo, 44px) * 0.1);
}

/* Credit card art: the bare card at its own shape, no tile behind it */
.logo-card {
  width: auto;
  background: none;
  border: 0;
  border-radius: 0;
  filter: drop-shadow(0 2px 5px rgba(20, 24, 31, 0.3));
}

.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash);
  font-family: var(--display);
  font-weight: 700;
}

.deal-name {
  font-weight: 700;
  font-size: 21px;
}

.deal-name a { text-decoration: none; }
.deal-name a:hover { text-decoration: underline; }

.deal-reward {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
}

.deal-sum {
  flex: 1;
  margin: 0;
  font-size: 15px;
  color: var(--soft);
}

.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: var(--wash);
  border: 1px dashed var(--soft);
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.code-label {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.code-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.code-list .lbl { margin-bottom: 3px; }

.code-none {
  justify-content: flex-start;
  padding: 0;
  background: none;
  border: 0;
  cursor: default;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--soft);
}

/* On cards the link carrying the offer goes without saying */
.deal .code-plain, .panel .code-plain { display: none; }

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

.more {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.more:hover { text-decoration: underline; }

.empty {
  margin: 0;
  padding: 40px 0 0;
  color: var(--soft);
}

/* ---- BANK OFFERS ---- */
/* Equal tiles in a grid: logo above the name */
.bank-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.bank-tile {
  --logo: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 104px;
  padding: 12px 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bank-tile:hover { border-color: var(--ink); }

.bank-tile[aria-current="page"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* Kind-of-offer filter on the credit card pages */
.card-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The Finance sections as large tabs: you are always in exactly one */
.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tabs a {
  padding: 12px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.section-tabs a:hover { border-color: var(--ink); }

.section-tabs a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter-block {
  margin-top: 22px;
  padding: 4px 20px 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.filter-label {
  margin: 16px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}

.scope-note {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--soft);
}

.offer-grid { margin-top: 26px; }
.bank-block .offer-grid { margin-top: 0; }

/* Finance hub: one large card per section */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
}

.section-card:hover { border-color: var(--ink); }

.section-card strong {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.section-links {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.section-links a { text-underline-offset: 3px; }

.card-filters a {
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.card-filters a:hover { border-color: var(--ink); }

.card-filters a[aria-current="page"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}



.compare-art {
  display: block;
  height: 84px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.bank-block { margin-top: 44px; }

.bank-head {
  --logo: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.band .bank-head h2 {
  margin: 0;
  font-size: 28px;
}

.bank-head h2 a { text-decoration: none; }
.bank-head h2 a:hover { text-decoration: underline; }

.bank-head p {
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--soft);
}

.bank-block .grid + .region-title { margin-top: 30px; }
.bank-block > .fine { margin-top: 20px; }

.bank-note {
  max-width: 62em;
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.fact-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fact-list div {
  display: flex;
  gap: 16px;
}

.fact-list dt {
  flex: 0 0 60px;
  font-weight: 700;
}

.fact-list dd { margin: 0; color: var(--soft); }

/* ---- OFFER COMPARISON ---- */
.compare-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: calc(100% - 24px);
  padding: 10px 12px 10px 20px;
  background: var(--band);
  color: var(--band-ink);
  border: 1px solid var(--band-line);
  border-radius: 50px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  white-space: nowrap;
}

.compare-bar .btn {
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: var(--band);
  border-radius: 50px;
}

.compare-clear {
  background: none;
  border: 0;
  padding: 6px 8px;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.compare-scroll { overflow-x: auto; }

.compare-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-grid th, .compare-grid td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-grid th {
  width: 120px;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}

.compare-grid td {
  min-width: 220px;
  border-left: 1px solid var(--line);
}

.compare-bank {
  --logo: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 19px;
}

.compare-product {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.compare-actions .btn { white-space: normal; }

/* ---- HOW IT WORKS ---- */
.how-text {
  max-width: 40em;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.how-text p { margin: 0; }
.how-text .fine { font-size: 16px; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 860px; }

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 14px 0;
  font-weight: 700;
  cursor: pointer;
}

.faq-list p {
  margin: 0;
  padding: 0 0 16px;
  color: var(--soft);
}

/* ---- DEAL PAGE ---- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--soft);
}

.crumbs a { text-underline-offset: 3px; }

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

.deal-art {
  --logo: 150px;
  flex-shrink: 0;
}

.deal-art .logo { border: 1px solid var(--line); }

.deal-art .logo-card {
  box-shadow: none;
  filter: drop-shadow(0 16px 26px rgba(20, 24, 31, 0.32));
}

.deal-art .logo-fallback { font-size: 60px; }

.dealgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 72px;
  align-items: start;
}

.dealmain {
  display: flex;
  flex-direction: column;
  gap: 34px;
  max-width: 68ch;
}

.dealmain h2 {
  font-weight: 700;
  font-size: 23px;
  margin-bottom: 10px;
}

.dealmain p, .dealmain dd {
  margin: 0;
  color: var(--soft);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--soft);
}

.steps li {
  counter-increment: step;
  display: flex;
  gap: 14px;
}

.steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.faq {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq dt {
  font-weight: 700;
  margin-top: 10px;
}

.faq ol {
  margin: 0;
  padding-left: 22px;
}

.dealmain .terms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
}

/* The offer slip, with a perforated top edge */
.slip {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 26px 26px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-top: 0;
}

.slip::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 7px;
  background: radial-gradient(circle at 7px 0, var(--paper) 5px, transparent 5.5px) repeat-x;
  background-size: 14px 7px;
}

.slip-you {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.slip .btn {
  padding: 14px 16px;
  font-size: 18px;
  white-space: normal;
}

/* Long deal names must wrap inside the hero panel's button on phones */
.panel-lead .btn { white-space: normal; }

.fine {
  margin: 0;
  font-size: 14px;
  color: var(--soft);
}

/* Email-me-the-link form (requestByEmail deals) */
.request {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.request input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.request input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.request .btn { cursor: pointer; }
.request .btn:disabled { opacity: 0.6; cursor: wait; }

/* Honeypot: hidden from people, filled in by form-spamming bots */
.request-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.request-msg {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.request-msg:empty { display: none; }
.request-ok { color: var(--accent); }
.request-error { color: var(--ink); }

.slip-facts {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}

.slip-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.slip-facts dt { color: var(--soft); }
.slip-facts dd { margin: 0; font-weight: 600; }

/* ---- FLYBUYS PAGE (/flybuys/, written by the savings sidecar) ---- */
.fb-narrow { max-width: 860px; }

.fb-dates {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--soft);
}

.fb-headline {
  font-size: 21px;
  line-height: 1.25;
}

.fb-offer .deal-sum { flex: 0 0 auto; }

.fb-limits {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  color: var(--soft);
}

.fb-offer .more { margin-top: auto; }

.fb-sub {
  margin: 30px 0 14px;
  font-size: 19px;
}

.band h2 + .fb-sub { margin-top: 0; }

/* Account offers read as one statement: HOW MANY (the badge, like Flybuys' "10x" tag), ON WHAT, WHERE */
.fb-key {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.fb-key-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.fb-on {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.fb-at {
  margin: 0;
  font-size: 18px;
  color: var(--soft);
}

.fb-at b { color: var(--ink); font-weight: 700; }

.fb-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 88px;
  height: 88px;
  padding: 0 10px;
  background: var(--accent);
  color: var(--paper);
  border-radius: 14px;
  line-height: 1;
}

.fb-badge b {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fb-badge small {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.fb-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.fb-retailer {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.fb-left {
  padding: 2px 8px;
  background: var(--alert-wash);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--alert);
  white-space: nowrap;
}

.fb-left:empty { display: none; }
.fb-left.fb-soon { background: var(--accent-wash); color: var(--accent); }

.fb-empty {
  margin: 0;
  font-size: 18px;
  color: var(--soft);
}

.fb-narrow > p { margin: 0 0 14px; color: var(--soft); }

.fb-promo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.fb-promo p { margin: 0; color: var(--soft); }

.fb-history {
  width: 100%;
  border-collapse: collapse;
}

.fb-history td {
  padding: 10px 16px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.fb-history td.fb-dates { width: 13em; }

/* Home page teaser, inside the hero */
.fb-teaser {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 34em;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  text-decoration: none;
}

.fb-teaser:hover { border-color: var(--ink); border-left-color: var(--accent); }
.fb-teaser-label { font-size: 14px; color: var(--soft); }
.fb-teaser-go { font-size: 15px; font-weight: 700; color: var(--accent); }

/* ---- FOOTER ---- */
.site-foot {
  background: var(--band);
  color: var(--band-soft);
  padding: 56px 0 28px;
  font-size: 15px;
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
}

.site-foot .brand { color: var(--band-ink); }
.foot-about p { max-width: 34em; margin: 14px 0 0; }

.site-foot h2 {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  color: var(--band-ink);
  margin-bottom: 12px;
}

.site-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-foot ul.foot-deals {
  display: block;
  columns: 2;
}

.foot-deals li { margin-bottom: 8px; }

.site-foot li a { text-decoration: none; }
.site-foot li a:hover { color: var(--band-ink); text-decoration: underline; }

.foot-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--band-line);
  font-size: 14px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .wrap { padding: 0 18px; }

  /* Brand and theme switch on one line, categories in a scrolling row below */
  .head-row { justify-content: space-between; }

  .cats {
    order: 3;
    flex: 0 0 100%;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .cats::-webkit-scrollbar { display: none; }

  /* Finger-sized category buttons */
  .cats a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 22px;
    font-size: 16px;
  }

  .cats a[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
  }

  .cat-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .logo-stack { --logo: 40px; }
}

@media (max-width: 520px) {
  /* Header row: logo, search taking the free width, globe, sun/moon */
  .site-head .brand-name { display: none; }
  .head-row { gap: 8px 12px; }
  .head-tools { flex: 1; min-width: 0; }
  .head-search { flex: 1; width: auto; }

  /* Category cards: one per row, logos beside the text */
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }

  .cat-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 0;
    padding: 14px 16px;
  }

  .cat-card .logo-stack {
    grid-row: span 2;
    margin: 0 12px 0 0;
  }

  .cat-card strong { font-size: 18px; }
  /* Long lists of names stay on two lines */
  .cat-names {
    grid-column: 2;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cat-card .logo-stack {
    max-width: 76px;
    overflow: hidden;
  }

  .cat-go {
    grid-column: 3;
    grid-row: 1 / span 2;
    margin: 0;
    white-space: nowrap;
  }

  .bank-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .bank-tile { min-height: 92px; font-size: 14px; }

  /* Globe-only country picker so it fits beside the brand; tapping still opens the list */
  .country-pick { width: 40px; }
  .country-pick .country-pick-arrow { display: none; }

  .country-pick svg { left: 10px; }

  .country-pick select {
    width: 40px;
    padding: 0;
    color: transparent;
  }
}

@media (max-width: 900px) {
  .hero { padding: 40px 0; }
  .hero-small { padding: 22px 0 30px; }
  .band { padding: 44px 0; }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .dealgrid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .slip {
    position: relative;
    top: 0;
    order: -1;
  }

  .dealhead {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 22px;
  }

  .deal-art { --logo: 96px; }

  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
