/* HonestSums site styles. One stylesheet, self-hosted fonts only (brand v3), no inline styles
   (the Content-Security-Policy in _headers allows styles from this file only).

   Look: full-width colour bands that alternate (deep teal hero, cream and sand
   content, one ink band for emphasis), large light Georgia headlines, a small
   clean sans-serif body, coral-dot eyebrow labels and 1px hairline dividers.
   Calculator inputs keep the spreadsheet colours: pale yellow = what you type,
   green tint = the worked-out totals, coral = the one headline answer. */

:root {
  /* Brand palette (build/DESIGN.md) */
  --ink: #22333B;
  --deep: #2F5D62;
  --deeper: #1F3F43;
  --sage: #A7C4BC;
  --mist: #EAF2EF;
  --sand: #F4EDE4;
  --cream: #FAF6F0;
  --paper: #FFFDF9;
  --coral: #E07A5F;
  --coral-text: #B5503A;    /* coral dark enough for text and focus rings on light bands (5:1) */
  --gold: #E9C46A;
  --pill: #E9DCCB;
  --pill-hover: #DCC8B0;

  /* Text and lines */
  --text: var(--ink);
  --muted: #56656A;          /* 5.6:1 on cream */
  --line: rgba(34, 51, 59, 0.14);
  --line-strong: rgba(34, 51, 59, 0.28);
  --line-dark: rgba(234, 242, 239, 0.18);

  /* Spreadsheet cell colours */
  --input-fill: #FFF6D6;
  --input-line: #CDB866;
  --input-text: #0B3A8C;
  --result-fill: #E3F1EA;
  --result-line: #A9CDB8;
  --error: #A4161A;

  --focus: var(--coral-text);
  --radius: 6px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --band-pad: clamp(56px, 8vw, 112px);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--deeper); text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--pill);
  color: var(--ink);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 20;
}
.skip-link:focus { top: 0; color: var(--ink); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------------------- bands */
.band { padding: var(--band-pad) 0; }
.band-cream { background: var(--cream); }
.band-sand { background: var(--sand); }
.band-mist { background: var(--mist); }
.band-cream + .band-cream { border-top: 1px solid var(--line); }

/* Dark bands: deep teal (hero, header, footer) and ink (emphasis). */
.band-deep,
.band-ink,
.site-header,
.site-footer {
  --focus: var(--sand);
  --muted: #B9CFC9;          /* 6:1 on deep teal */
  color: var(--sand);
}
.band-deep { background: var(--deeper); }
.band-ink { background: var(--ink); }
.band-deep a:not(.button),
.band-ink a:not(.button),
.site-footer a { color: var(--sand); }
.band-deep a:not(.button):hover,
.band-ink a:not(.button):hover,
.site-footer a:hover { color: #fff; }
.band-deep h1, .band-deep h2, .band-deep h3,
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--cream); }

/* ---------------------------------------------------------------- type */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 18em;
}
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0 0 18px; }
h3 { font-size: 1.35rem; line-height: 1.3; margin: 32px 0 8px; }
h4 { font-size: 1.2rem; line-height: 1.3; margin: 0 0 8px; }

p { margin: 0 0 16px; }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 40em;
}
.band-deep .lede, .band-ink .lede { color: #D5E3DF; }

.prose { max-width: 42em; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 1.2em; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.small { font-size: 0.92rem; color: var(--muted); }

/* Small uppercase label with a coral dot: "• FREE CALCULATORS". */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
.band-deep .eyebrow, .band-ink .eyebrow, .site-footer .eyebrow { color: var(--sage); }

/* A big serif sentence under an eyebrow. */
.statement {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 22em;
}
.band-deep .statement, .band-ink .statement { color: var(--cream); }

/* Section intro: statement on the left, supporting text on the right. */
.intro {
  display: grid;
  gap: 8px 64px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: end;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.intro .statement { margin: 0; }
.intro p:last-child { margin-bottom: 0; }
.intro .support { color: var(--muted); }

/* Heading on the left, text on the right ("How it works" bands, about, privacy). */
.split {
  display: grid;
  gap: 24px 64px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
}
.split > .prose { max-width: 44em; }

/* ---------------------------------------------------------------- header */
.site-header {
  background: var(--deeper);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  z-index: 5;
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 20px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 0;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(234, 242, 239, 0.22);
}
.brand-word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand-honest { color: var(--cream); }
.brand-sums { color: var(--coral); }
.brand:hover .brand-honest { color: #fff; }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 2vw, 28px);
}
.site-nav a {
  display: inline-block;
  padding: 24px 0 22px;
  color: #D5E3DF;
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: var(--sage); }
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--coral); }

/* Shop pill: the last thing in the header, always visible (next to Menu on phones). */
.shop-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.shop-button::after { content: "\2192"; font-weight: 400; transition: transform 0.15s ease; }
.site-header .shop-button { color: var(--ink); }
.shop-button:hover { background: var(--pill-hover); color: var(--ink); }
.shop-button:hover::after { transform: translateX(3px); }

/* Menu button: shown by site.js on narrow screens only. */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--pill-hover); }
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before,
.menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -5px; }
.menu-icon::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--pill);
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.button::after {
  content: "\2192";
  font-weight: 400;
  transition: transform 0.15s ease;
}
.button:hover { background: var(--pill-hover); border-color: var(--pill-hover); color: var(--ink); text-decoration: none; }
.button:hover::after { transform: translateX(3px); }

.button.secondary {
  background: transparent;
  border-color: var(--deep);
  color: var(--deep);
}
.button.secondary:hover { background: var(--deep); color: #fff; }
.band-deep .button.secondary,
.band-ink .button.secondary { border-color: rgba(244, 237, 228, 0.6); color: var(--sand); }
.band-deep .button.secondary:hover,
.band-ink .button.secondary:hover { background: var(--sand); border-color: var(--sand); color: var(--ink); }

/* Arrow link at the foot of a card. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--deep);
  text-decoration: none;
}
.arrow-link::after {
  content: "\2192";
  font-weight: 400;
  transition: transform 0.15s ease;
}
.arrow-link:hover { color: var(--deeper); text-decoration: underline; }
.arrow-link:hover::after { transform: translateX(3px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------------------------------------------------------------- home hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 12em;
  margin-bottom: 24px;
}
.hero .lede { margin-bottom: 32px; font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: #E4EEEB; }

/* The product itself: the take-home pay dashboard on a laptop and phone, on a sand card. */
.hero-product { margin: 0; }
.hero-product-media {
  display: block;
  background: linear-gradient(135deg, var(--sand), var(--mist));
  border-radius: 14px;
  padding: clamp(10px, 2vw, 22px) clamp(8px, 1.5vw, 16px) clamp(6px, 1vw, 10px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}
.hero-product-media img { display: block; width: 100%; height: auto; }
.hero-product figcaption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Bigger pill for the main buy buttons. */
.button-large { min-height: 56px; padding: 14px 26px; font-size: 1.02rem; }

/* ---------------------------------------------------------------- trust strip */
.trust {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
}
.trust-list li {
  position: relative;
  padding-left: 32px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted);
}
.trust-list li::before {
  /* a round deep-teal tick badge drawn in CSS */
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--deep);
}
.trust-list li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.trust-list strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* ---------------------------------------------------------------- inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px);
}
.page-hero .wrap { position: relative; }
.page-hero h1, .page-hero .lede, .page-hero .eyebrow { position: relative; z-index: 1; }
.page-hero .lede { margin-bottom: 0; }
/* Keep the words clear of the illustration on wide screens. */
@media (min-width: 961px) {
  .page-hero h1, .page-hero .lede { max-width: min(40em, calc(100% - 400px)); }
  .page-hero h1 { max-width: min(16em, calc(100% - 400px)); }
}
.page-hero-art {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: 360px;
  transform: translateY(-50%);
  opacity: 0.7;
  pointer-events: none;
}

/* ---------------------------------------------------------------- cards and grids */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.tool-card,
.product-card {
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}
.tool-card:hover,
.product-card:hover { border-color: var(--line-strong); }
.tool-card .num {
  flex: none;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 40px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.tool-card h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin: 0 0 12px; }
.tool-card p { margin: 0 0 24px; flex: 1; color: var(--muted); }

.card.product-card { padding: 0 0 20px; overflow: hidden; }
.product-card > h4, .product-card > p, .product-card > .buy-row { margin-left: 22px; margin-right: 22px; }
.product-card h4 { font-size: 1.12rem; margin-top: 18px; margin-bottom: 8px; }
.product-card > p { margin-top: 0; margin-bottom: 16px; font-size: 0.93rem; color: var(--muted); flex: 1; }
.product-card-media, .shop-card-media { display: block; background: var(--sand); border-bottom: 1px solid var(--line); }
.product-card-media img, .shop-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
/* In the full list, show the top of each listing image (its headline and the start of the sheet) to keep cards short. */
.product-card-media img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

/* Price and buy link along the foot of a card. */
.buy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.price {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Featured spreadsheets: bigger cards with the listing image on top. */
.shop-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.card.shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.shop-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(34, 51, 59, 0.10); }
.shop-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.shop-card h3 { font-size: 1.3rem; margin: 0 0 8px; }
.shop-card-body > p { margin: 0 0 18px; color: var(--muted); font-size: 0.97rem; flex: 1; }
.button-buy { min-height: 44px; padding: 10px 20px; font-size: 0.92rem; }
.see-all { margin-top: 36px; display: flex; justify-content: center; }

/* Money kits: the saving line sits above the price on each kit card. */
.shop-card-body > p.kit-saving { flex: none; margin: -6px 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 0.9rem; }
.kit-saving strong { color: var(--coral-text); }

/* "Full spreadsheet £8.99 on Etsy" under a free calculator card. */
.tool-card p.tool-upsell {
  flex: none;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.tool-upsell a { font-weight: 600; }

/* ---------------------------------------------------------------- how it works steps */
.steps {
  list-style: none;
  margin: 8px 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 40px;
}
.steps li { border-top: 1px solid var(--line-dark); padding-top: 20px; }
.steps .step-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--coral);
  margin: 0 0 16px;
}
.steps h3 { margin: 0 0 8px; font-size: 1.35rem; }
.steps p { color: #D5E3DF; margin: 0; }

/* ---------------------------------------------------------------- closing band */
.closing-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 24px 48px;
  align-items: end;
}
.closing { border-bottom: 1px solid var(--line-dark); }
.closing .support { color: #D5E3DF; max-width: 36em; margin: 0; }
.closing .statement { margin-bottom: 14px; }

/* ---------------------------------------------------------------- calculator pages: reminder strip */
.promo-strip {
  background: var(--sand);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.promo-strip .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 36px; }
.promo-link {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 8px;
  padding: 11px 0;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}
.promo-buy { font-weight: 700; color: var(--deep); text-decoration: underline; text-underline-offset: 3px; }
.promo-buy::after { content: " \2192"; }
.promo-link:hover { color: var(--ink); }
.promo-link:hover .promo-buy { color: var(--deeper); text-decoration-thickness: 2px; }

/* ---------------------------------------------------------------- calculator pages: the full-spreadsheet offer */
.offer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  background: var(--paper);
  color: var(--ink);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  --focus: var(--coral-text);
  --muted: #56656A;
}
.offer-card-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; }
.offer-media { display: block; background: var(--sand); }
.offer-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.offer-card-wide .offer-media { display: flex; align-items: center; }
.offer-body { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; }
.offer .offer-card .eyebrow { color: var(--deep); margin-bottom: 14px; }
.offer .offer-card a:not(.button) { color: var(--deep); }
.offer .offer-card .offer-title { color: var(--ink); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 14px; }
.offer .offer-pair .offer-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.offer-lead { color: var(--muted); margin-bottom: 10px; }
.ticks { list-style: none; margin: 0 0 24px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--line); }
.ticks li:first-child { border-top: 1px solid var(--line); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mist);
  border: 1px solid var(--sage);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  width: 5px;
  height: 9px;
  border: solid var(--deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.offer-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: auto; }
.price-big {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink);
}
.price-note { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin-top: 6px; letter-spacing: 0.02em; }
.offer-small { margin: 18px 0 0; font-size: 0.88rem; color: var(--muted); }
.offer-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.offer-pair .offer-card { grid-template-rows: auto 1fr; }
.offer-also { margin: 28px 0 0; color: #D5E3DF; }
.offer .statement { margin-bottom: 28px; }

/* Product groups: eyebrow heading over each grid. */
.group + .group { margin-top: 56px; }
.group-head { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.shop-lines { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.shop-lines p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- emphasis band with illustration */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.feature-art img { display: block; width: 100%; max-width: 480px; margin-left: auto; }
.feature .support { color: #D5E3DF; max-width: 36em; }

/* ---------------------------------------------------------------- calculator layout */
.calc {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.calc .card { padding: clamp(20px, 3vw, 36px); }
.panel-head {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.field { margin: 0 0 20px; }
.field > label,
.field > .label,
fieldset legend {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}
.hint { display: block; font-size: 0.9rem; color: var(--muted); margin: 0 0 8px; line-height: 1.5; }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
fieldset legend { margin-bottom: 10px; }

input[type="text"],
input[type="date"],
select {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  padding: 10px 14px;
  border: 1px solid var(--input-line);
  border-radius: var(--radius);
  background-color: var(--input-fill);
  color: var(--input-text);
  min-height: 48px;
}
select { padding-right: 10px; }
input[type="text"] { text-align: right; font-variant-numeric: tabular-nums; }
input[type="text"]:hover, input[type="date"]:hover, select:hover { border-color: #A8923F; }
input[aria-invalid="true"] { border: 2px solid var(--error); }

.inline-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.inline-fields .field { margin-bottom: 0; }

/* Debt payoff: one fieldset per debt, three boxes in a row */
.inline-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.debt-set { padding: 16px 0 4px; border-top: 1px solid var(--line); }
.debt-set legend { float: left; width: 100%; margin-bottom: 10px; }
.debt-set legend + * { clear: both; }
.debt-set legend .hint { display: inline; margin: 0 0 0 4px; font-weight: 400; }
.debt-set .field > label { font-weight: 400; font-size: 0.92rem; }
.debt-set .inline-fields .field { display: flex; flex-direction: column; justify-content: flex-end; }

/* Long payday plans scroll inside the results card */
.plan-scroll { max-height: 340px; overflow-y: auto; margin-top: 16px; }
.plan-scroll table { margin: 0; }

.check, .radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 12px;
  font-weight: 400;
  cursor: pointer;
}
.radio {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.radio:hover { border-color: var(--line-strong); }
.check input, .radio input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--deep);
}

.error { color: var(--error); font-size: 0.92rem; font-weight: 700; margin: 6px 0 0; }

.calc-submit {
  margin-top: 4px;
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.calc-submit::after { content: none; }
.calc-submit:hover { background: var(--deeper); border-color: var(--deeper); color: #fff; }

/* The one headline answer: Georgia, coral, on a deep tile (coral on deep teal is 3.9:1, above AA for large text). */
.headline {
  background: var(--deeper);
  color: #D5E3DF;
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  margin: 0 0 24px;
}
.headline .big {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.headline .sub { font-size: 0.97rem; }

.is-stale .headline,
.is-stale table { opacity: 0.45; }

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

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  font-size: 0.97rem;
}
caption {
  text-align: left;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  padding: 0 0 10px;
}
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  border-bottom-color: var(--line-strong);
}
thead th:first-child { text-align: left; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody th { text-align: left; font-weight: 400; }
td { text-align: right; white-space: nowrap; }
tr.total th, tr.total td {
  font-weight: 700;
  background: var(--result-fill);
  border-bottom: 1px solid var(--result-line);
}
tr.total th:first-child { padding-left: 10px; }
tr.total td:last-child { padding-right: 10px; }

.result-list { margin: 20px 0 0; }
.result-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.result-list dt { margin: 0; }
.result-list dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.result-list div.key {
  background: var(--result-fill);
  padding: 10px;
  border-bottom-color: var(--result-line);
}
.headline + .result-list { margin-top: 0; }

.note {
  background: #FBF1DC;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 18px 0 0;
  font-size: 0.95rem;
}

.disclaimer {
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.disclaimer strong { color: var(--ink); }

/* ---------------------------------------------------------------- call to action band (ink) */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.cta h2 { max-width: 20em; }
.cta p { max-width: 42em; }
.cta ul {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  max-width: 42em;
  border-top: 1px solid var(--line-dark);
}
.cta li {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--line-dark);
}
.cta li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}
/* Space between a button row and whatever follows it (another offer or a note). */
.cta .actions + *, .cta [data-product-card] + * { margin-top: 28px; }
.cta [data-product-card] {
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}
.cta .actions + [data-product-card] { margin-top: 32px; }
.cta-art img { display: block; width: 100%; max-width: 420px; margin-left: auto; }

/* ---------------------------------------------------------------- about and privacy */
.faq h3 {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.faq h3 + p { margin-top: 8px; }
.faq p { margin-bottom: 24px; }
.signoff { margin-top: 40px; color: var(--muted); }

.link-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 36em; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.link-list a::after { content: "\2192"; font-family: var(--sans); color: var(--deep); transition: transform 0.15s ease; }
.link-list a:hover { color: var(--deep); }
.link-list a:hover::after { transform: translateX(3px); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--deeper);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-size: 0.93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-tagline {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin: 24px 0 0;
  max-width: 14em;
}
.footer-nav {
  display: grid;
  /* Calculators, Guides, HonestSums, then Contact sized to fit the email address on one line. */
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 28px;
}
.footer-nav h2 { margin: 6px 0 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 0 0 10px; }
.footer-nav a { text-decoration: none; color: #D5E3DF; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-base p { margin: 0; }
.footer-base .notes p + p { margin-top: 4px; }

/* ---------------------------------------------------------------- medium screens */
@media (max-width: 960px) {
  .hero-grid,
  .closing-inner,
  .offer-card-wide,
  .feature,
  .cta-grid,
  .intro,
  .split,
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  /* On tablets and phones the headline and buttons lead; the line drawings are desktop-only decoration.
     The hero product image stays: it shows what HonestSums sells. */
  .feature-art { display: none; }
  .hero-product { max-width: 640px; }
  .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .offer-pair { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .offer-card-wide { max-width: 680px; }
  .cta-art { display: none; }
  .intro { gap: 16px; }
  .page-hero-art { display: none; }
  .calc { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}

/* Narrow header: the nav collapses behind the Menu button (only once site.js has run;
   without JavaScript the links simply wrap under the logo). */
@media (max-width: 1040px) {
  .site-header.has-menu .brand { margin-right: auto; }
  .site-header.has-menu .shop-button { order: 1; }
  .site-header.has-menu .menu-toggle { display: inline-flex; order: 2; margin-left: 10px; }
  .site-header.has-menu .site-nav { order: 3; }
  .site-header.has-menu .site-nav { display: none; flex-basis: 100%; }
  .site-header.has-menu.is-open .site-nav { display: block; }
  .site-header.has-menu .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 4px 0 20px;
    border-top: 1px solid var(--line-dark);
  }
  .site-header.has-menu .site-nav li { border-bottom: 1px solid var(--line-dark); }
  .site-header.has-menu .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 0;
  }
  .site-header.has-menu .site-nav a[aria-current="page"] { color: #fff; }
  .site-header.has-menu .site-nav a[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin: 0 10px 2px 0;
    border-radius: 50%;
    background: var(--coral);
  }
  .site-header:not(.has-menu) .site-nav a { padding: 8px 0; }
  .site-header:not(.has-menu) .header-inner { padding-bottom: 8px; }
}

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 760px) {
  .card { padding: 22px; }
  .footer-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero .actions .button, .cta .actions .button, .closing .actions .button { width: 100%; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li:last-child { grid-column: 1 / -1; }
  .offer-buy .button { width: 100%; }
  .price-big { flex-direction: row; align-items: baseline; gap: 12px; }
  .promo-strip { font-size: 0.9rem; }
  .page-hero-art { display: none; }
  .tool-card .num { margin-bottom: 24px; }
}

/* Phones: Shop and Menu sit beside the logo, so Menu becomes an icon button
   (its label stays for screen readers) and the logo shrinks a little. */
@media (max-width: 480px) {
  .header-inner { gap: 0 12px; }
  .site-header.has-menu .menu-toggle { width: 44px; padding: 0; justify-content: center; margin-left: 8px; }
  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .shop-button { padding: 0 16px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 0 8px; }
  .brand { gap: 8px; }
  .site-header .brand-word { font-size: 1.1rem; }
  .site-header .brand-mark { width: 28px; height: 28px; }
  .shop-button { padding: 0 16px; }
  .shop-button::after { content: none; }
  .site-header.has-menu .menu-toggle { margin-left: 0; }
}

@media (max-width: 400px) {
  .brand-word { font-size: 1.25rem; }
  .brand-mark { width: 32px; height: 32px; }
  .menu-toggle { padding: 0 14px; }
  .inline-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .inline-fields .field { margin-bottom: 16px; }
  td { white-space: normal; }
  table { font-size: 0.9rem; }
  th, td { padding: 9px 4px; }
}

/* Phones: the full list of 20 uses compact cards (small image beside the name) so it stays a short scroll. */
@media (max-width: 560px) {
  .card.product-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 14px;
    padding: 16px;
    align-items: center;
  }
  .product-card-media { grid-column: 1; grid-row: 1; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
  .product-card-media img { aspect-ratio: 4 / 3; }
  .product-card > h4, .product-card > p, .product-card > .buy-row { margin-left: 0; margin-right: 0; }
  .product-card h4 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.02rem; }
  .product-card > p { grid-column: 1 / -1; margin: 12px 0 12px; font-size: 0.9rem; }
  .product-card > .buy-row { grid-column: 1 / -1; padding-top: 10px; }
  .product-card .price { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ================================================================ brand v3: Smiley sum (10 November 2026)
   Cosy, friendly everyday-money look (build/DESIGN.md v3). This block re-points the palette and type tokens and
   restyles the bands; it sits after the v2 rules so it wins without editing them, and before the print rules. */
@font-face {
  font-family: "Fredoka";
  src: url("/assets/fonts/fredoka.ttf?v=2ba02e68b1") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.ttf?v=bb55a5ca5c") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --sun: #FFC845;
  --sun-deep: #F5B417;
  --navy: #1E2A4A;
  --navy-soft: #2D3C63;
  --tomato: #F2603F;
  --candy: #F9C4CF;
  --mint-fill: #BFE6D3;
  --butter: #FFF1C9;

  --ink: var(--navy);
  --deep: var(--navy);
  --deeper: var(--navy);
  --sage: var(--mint-fill);
  --mist: #EEF8F2;
  --sand: var(--butter);
  --cream: #FFFCF4;
  --paper: #FFFFFF;
  --coral: var(--tomato);
  --coral-text: #B5381B;     /* tomato dark enough for text and focus rings on paper (5.6:1) */
  --gold: var(--sun);
  --pill: var(--sun);
  --pill-hover: var(--sun-deep);
  --muted: #5B6478;          /* 6.4:1 on paper */
  --line: rgba(30, 42, 74, 0.12);
  --line-strong: rgba(30, 42, 74, 0.26);
  --radius: 14px;
  --serif: "Fredoka", "Nunito", "Segoe UI", system-ui, sans-serif;
  --sans: "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
body { font-size: 1.04rem; }
h1, h2, h3, h4, .statement, .footer-tagline, .brand-word, .steps .step-num { font-weight: 600; letter-spacing: -0.005em; }
h1 { letter-spacing: -0.01em; }

/* Header: light and friendly, logo on paper. */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); color: var(--navy); --focus: var(--coral-text); --muted: var(--muted); }
.brand-mark { border-radius: 0; box-shadow: none; width: 40px; height: 40px; }
.brand-honest, .brand:hover .brand-honest { color: var(--navy); }
.brand-sums { color: var(--tomato); }
.site-nav a { color: var(--navy); font-weight: 700; }
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--sun); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--tomato); }
.site-header .shop-button, .shop-button { background: var(--sun); color: var(--navy); }
.shop-button:hover { background: var(--sun-deep); color: var(--navy); }
.menu-toggle { background: var(--sun); color: var(--navy); }

/* Buttons: navy pills with sunshine text; sunshine pills on navy bands. */
.button { background: var(--navy); border-color: var(--navy); color: var(--sun); font-weight: 800; }
.button:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--sun); }
.button.secondary { background: transparent; border-color: var(--navy); color: var(--navy); }
.button.secondary:hover { background: var(--navy); color: var(--sun); }

/* The happy band (hero, closing): sunshine with navy text. */
.band-deep { background: var(--sun); color: var(--navy); --focus: var(--navy); --muted: #3A4566; }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep .statement { color: var(--navy); }
.band-deep .lede, .hero .lede, .closing .support { color: #2E3A5C; }
.band-deep .eyebrow { color: var(--navy); }
.band-deep a:not(.button), .band-deep a:not(.button):hover { color: var(--navy); }
.band-deep .button.secondary { border-color: var(--navy); color: var(--navy); }
.band-deep .button.secondary:hover { background: var(--navy); border-color: var(--navy); color: var(--sun); }
.hero-product-media { background: linear-gradient(135deg, var(--cream), var(--candy)); box-shadow: 0 24px 48px rgba(30, 42, 74, 0.22); border-radius: 22px; }
.hero-product figcaption { color: #3A4566; }
.closing { border-bottom: 0; }

/* The navy band and footer: paper text, sunshine accents. */
.band-ink, .site-footer { background: var(--navy); color: var(--cream); --focus: var(--sun); --muted: #C9CFDD; }
.band-ink .eyebrow, .site-footer .eyebrow { color: var(--sun); }
.band-ink .lede, .steps p { color: #DCE1EC; }
.band-ink .button { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.band-ink .button:hover { background: var(--sun-deep); border-color: var(--sun-deep); color: var(--navy); }
.band-ink .button.secondary { background: transparent; border-color: rgba(255, 252, 244, 0.6); color: var(--cream); }
.site-footer .brand-honest { color: var(--cream); }
.site-footer .brand-sums { color: var(--sun); }
.footer-nav a { color: #DCE1EC; }
.footer-tagline { color: var(--cream); }
.steps .step-num { color: var(--sun); }

/* Soft cards and pills get rounder, friendlier corners. */
.card, .shop-card, .offer-card, .tool-card, .guide-card { border-radius: 18px; }
.eyebrow { font-weight: 800; }
.promo-strip { background: var(--butter); }

.page-hero .updated, .band-deep .updated { color: #3A4566; }
.band-deep .offer-also, .band-deep .feature .support, .band-deep .steps p { color: #2E3A5C; }

@media print {
  body { background: #fff; }
  .band-deep, .band-ink, .site-header, .site-footer { background: #fff; color: var(--ink); }
  .band-deep h1, .band-deep .lede, .band-deep .eyebrow { color: var(--ink); }
  .site-nav, .menu-toggle, .shop-button, .cta, .offer, .promo-strip, .skip-link, .calc-submit, .page-hero-art { display: none; }
}

/* Policy pages: smaller section headings with a hairline above each. */
.policy h2 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  margin: 0 0 10px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.policy h2:first-child { padding-top: 0; border-top: 0; }
.policy p { margin-bottom: 28px; }

/* Phones: a tighter hero so the headline, buttons and product all show early. */
@media (max-width: 760px) {
  .hero { padding-top: 28px; padding-bottom: 40px; }
  .hero-grid { gap: 28px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .lede { margin-bottom: 24px; }
}
@media (max-width: 760px) {
  .footer-nav > div:last-child { grid-column: 1 / -1; }
  .feature { gap: 24px; }
  .feature-art img { max-width: 260px; }
}

/* ---------------------------------------------------------------- guides */
/* "On this page" list beside the guide text; it stays in view on wide screens. */
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--deep); text-decoration: underline; }
@media (min-width: 961px) {
  .toc { position: sticky; top: 24px; }
}
.page-hero .updated { position: relative; z-index: 1; margin: 18px 0 0; font-size: 0.9rem; color: var(--sage); }
.answer {
  background: var(--result-fill);
  border-left: 3px solid var(--deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 0 0 40px;
}
.answer p:last-child { margin-bottom: 0; }
.prose h2 { scroll-margin-top: 16px; }
.prose .table-scroll { margin: 8px 0 24px; }
.text-table td { text-align: left; white-space: normal; }
.text-table th[scope="row"] { font-weight: 600; }
.text-table .num { text-align: right; white-space: nowrap; }
.prose ol { padding-left: 1.4em; }
.sources { font-size: 0.93rem; }
.sources li { margin-bottom: 8px; }
.headline .big-words { font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.2; }
.text-table thead th { text-align: left; }
.text-table thead th.num { text-align: right; }

/* Sinking funds calculator: the goal name box holds words, so it reads left to right */
input.input-words { text-align: left; font-variant-numeric: normal; }
.inline-fields.goal { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) {
  .inline-fields.goal { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
  .inline-fields.goal .field { margin-bottom: 12px; }
  .inline-fields.goal .field:first-child { grid-column: 1 / -1; }
}

/* "From our videos" page (/links): phone-first list, picture left, words right, big buy button. */
.links-wrap { max-width: 720px; }
.links-page h1 { margin: 6px 0 10px; }
.vid-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.link-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.link-card-media { display: block; border-radius: 10px; overflow: hidden; background: var(--sand); }
.link-card-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.link-card-body h2 { font-size: 1.12rem; margin: 2px 0 4px; }
.link-card-short { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--coral-text); }
.link-card-line { margin: 0 0 10px; font-size: 0.92rem; color: var(--muted); }
.link-card-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.link-card-buy .price { font-weight: 700; font-size: 1.05rem; }
.links-more { margin: 28px 0 8px; text-align: center; }
.links-free { text-align: center; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 420px) {
  .link-card { grid-template-columns: 88px 1fr; gap: 12px; }
  .link-card-buy .button-buy { flex: 1 1 100%; text-align: center; }
}

/* Shop reviews (assets/reviews.js, rendered by site.js) */
.review-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0 12px; }
.review-card { margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.review-stars { margin: 0 0 6px; color: #E0A100; font-size: 1.15rem; letter-spacing: 2px; }
.review-card blockquote { margin: 0 0 10px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; color: var(--ink); }
.review-card figcaption { color: var(--muted); font-size: 0.9rem; }
.review-more-row { margin: 0; }
/* Bank switching offers page (bank-switching-offers.html, built by build/make_switch_offers_page.py) */
.sw-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 20px 0 28px; }
.sw-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.sw-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sw-card h3 { margin: 0; font-size: 1.25rem; }
.sw-account { display: block; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.sw-bonus { margin: 0; font-family: var(--serif); font-size: 2rem; color: var(--ink); white-space: nowrap; }
.sw-extra { margin: 4px 0 0; color: var(--muted); font-size: 0.95rem; }
.sw-facts { margin: 12px 0; }
.sw-facts div { padding: 8px 0; border-top: 1px solid var(--line); }
.sw-facts dt { font-weight: 700; font-size: 0.9rem; }
.sw-facts dd { margin: 2px 0 0; font-size: 0.95rem; }
.sw-facts ul { margin: 0; padding-left: 18px; }
.page-hero .sw-updated { color: var(--ink); opacity: 0.85; }

/* 15 Nov 2026: "Our two favourites" spotlight under the hero, and the hero note */
.spotlight-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.spotlight .shop-card h3 { font-size: 1.5rem; }
.spotlight-tag { margin: 0 0 6px; font-weight: 800; font-size: 0.85rem; color: var(--navy-soft); }
.spotlight .buy-row { flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 12px; font-size: 0.95rem; opacity: 0.9; }

/* 20 Nov 2026 (CR-039): header Shop button says "Shop on Etsy" where there is room; on phones "on Etsy" stays for
   screen readers only. Footer sub-lists (Tax and pay calculators, Tax guides, Contact) under a column's main list. */
@media (max-width: 480px) {
  .shop-button-more { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
.footer-nav .footer-sub { margin: 22px 0 14px; }
/* Home page groups (CR-039): small text-only cards for the six starter challenges, and the free things list. */
.starter-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.card.starter-card { display: flex; flex-direction: column; padding: 20px 22px; }
.starter-card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.starter-card > p { margin: 0 0 14px; color: var(--muted); font-size: 0.93rem; flex: 1; }
.starter-card .price { font-size: 1.25rem; }
.offer .offer-card .button.secondary { border-color: var(--deep); color: var(--deep); }
.offer .offer-card .button.secondary:hover { background: var(--deep); color: #fff; }
.free-grid { margin-top: 48px; align-items: start; }
.free-grid .link-list { margin: 0; border-top: 0; }
.calc-sub { margin-top: 32px; }
.calc-sub + .link-list { border-top: 0; }
/* Phones: product cards in .compact-cards sections show a small image beside the name (as the old full list did), so
   the home page and the savings challenges hub stay a short scroll. */
@media (max-width: 560px) {
  .compact-cards .card.shop-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; padding: 16px; align-items: center; }
  .compact-cards .shop-card-media { grid-column: 1; grid-row: 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .compact-cards .shop-card-body { display: contents; }
  .compact-cards .shop-card h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.08rem; }
  .compact-cards .shop-card-body > p { grid-column: 1 / -1; margin: 12px 0; font-size: 0.92rem; }
  .compact-cards .shop-card-body > p.kit-saving { margin: 0 0 12px; }
  .compact-cards .buy-row { grid-column: 1 / -1; }
  .compact-cards .shop-card .price { font-size: 1.3rem; }
}
