/* =========================================================
   Good Footcare — site styles
   Warm blue and white, built for easy reading at any age.
   ========================================================= */

:root {
  /* Colour */
  --ink: #13223B;        /* headings and body text */
  --soft: #46546B;       /* secondary text, still 7:1 on white */
  --blue: #2F5FAE;       /* primary */
  --blue-dark: #224C93;  /* hover */
  --mist: #EEF3FA;       /* pale blue panels */
  --sky: #E3EDFA;        /* soft glow */
  --line: #DDE5F0;
  --white: #FFFFFF;
  --care: #A8402A;       /* "see someone" warnings */
  --care-bg: #FBEFEA;

  /* Type */
  --f-head: "Lexend", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
  font-size: 125%;       /* 20px base: fixed larger text for easy reading */
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }

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

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

/* ---------- Layout helpers ---------- */
.gutter {
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.inner { max-width: 1200px; margin: 0 auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 0; border-radius: 14px;
  background: var(--blue); color: var(--white);
  font: 600 1.02rem/1 var(--f-head);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--blue-dark); color: var(--white); }

/* ---------- Header ---------- */
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  padding-block: 18px;
}
.logo {
  margin-right: auto;
  font: 600 1.45rem/1 var(--f-head);
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.logo span { color: var(--blue); }
.logo:hover { color: var(--ink); }

.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 16px; border-radius: 12px;
  color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 0.95rem;
  text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { background: var(--mist); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--mist); color: var(--blue); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 85% 10%, var(--sky) 0, rgba(227, 237, 250, 0) 70%),
    radial-gradient(600px 400px at 0% 100%, #F3F7FC 0, rgba(243, 247, 252, 0) 70%),
    var(--white);
}
.hero .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
  padding-block: 32px 64px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--blue); }
.hero .lede {
  margin-top: 22px; max-width: 38ch;
  font-size: 1.2rem; color: var(--soft);
}

.search {
  display: flex; align-items: center; gap: 8px;
  max-width: 560px; margin-top: 32px; padding: 8px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 50px -30px rgba(19, 34, 59, 0.35);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--sky); }
.search input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 12px;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 1.05rem;
}
.search input::placeholder { color: #6A778A; }
.search input:focus { outline: none; }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; color: var(--soft); font-size: 1rem; font-weight: 500;
}
.trust span { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 22px; height: 22px; flex: none; }

/* ---------- Foot map ---------- */
.hero-stage { position: relative; }
/* The circle sits behind the foot drawing only, so the message below can change without resizing it */
.hero-stage > [data-foot] { position: relative; }
.hero-stage > [data-foot]::before {
  content: ""; position: absolute; inset: 2% 13% 0; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--white) 0, #E8F0FB 72%);
}
.hero-stage svg {
  position: relative; z-index: 1; display: block;
  width: 100%; max-width: 100%; height: auto; max-height: 520px; margin: 0 auto;
}
/* Fixed-height message area: the page doesn't move when the text changes */
.hero-stage p {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 3.6rem; margin-top: 32px; padding-inline: 12px;
  text-align: center; font-size: 1.05rem; line-height: 1.5; color: var(--soft);
}
.hero-stage p.is-picked { color: var(--blue); font-weight: 600; }
.hero-stage p.is-picked b { color: inherit; font-weight: inherit; }

.hs { cursor: pointer; outline: none; }
.hs .hit { fill: transparent; }
.hs .halo { fill: var(--blue); opacity: 0.16; transition: opacity 0.2s; }
.hs .dot { fill: var(--white); stroke: var(--blue); stroke-width: 4; transition: fill 0.15s; }
.hs .lead { stroke: #A9BAD3; stroke-width: 1.5; }
.hs .lbl { font: 600 18px var(--f-body); fill: var(--ink); }
.hs:hover .halo, .hs:focus-visible .halo { opacity: 0.34; }
.hs:focus-visible .dot { stroke-width: 6; }
.hs[aria-pressed="true"] .dot { fill: var(--blue); }
.hs[aria-pressed="true"] .halo { opacity: 0.3; }
.hs[aria-pressed="true"] .lbl { fill: var(--blue); }
.hs[aria-pressed="true"] .lead { stroke: var(--blue); stroke-width: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero .inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .search { flex-wrap: wrap; }
  .search .btn { width: 100%; }
}
@media (max-width: 760px) {
  /* Logo on its own line, menu underneath as three equal buttons */
  .site-header .inner { padding-block: 14px 12px; }
  .main-nav { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .main-nav a { justify-content: center; padding: 0 8px; background: var(--mist); font-size: 0.85rem; white-space: normal; text-align: center; line-height: 1.2; }
}

/* =========================================================
   Section 2 — The answer (floating card)
   ========================================================= */
.answer { background: linear-gradient(var(--white) 0, var(--white) 50%, var(--mist) 50%); }
.answer .inner { padding-block: 8px 64px; }
.answer-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(24px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line); border-radius: 32px;
  box-shadow: 0 40px 80px -50px rgba(19, 34, 59, 0.45);
}
.answer-where { color: var(--blue); font-weight: 700; font-size: 1.05rem; }
.answer-card h2 { margin-top: 6px; font-size: clamp(2rem, 3.6vw, 2.8rem); }
.answer-feels { margin-top: 14px; max-width: 52ch; font-size: 1.15rem; color: var(--soft); }
.answer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.answer-stack { display: flex; flex-direction: column; gap: 16px; }
.answer-box { padding: 24px 26px; border-radius: 22px; }
.answer-box h3 { margin-bottom: 16px; font-size: 1.2rem; }
.answer-box.try { background: var(--mist); }
.answer-box.see { background: var(--care-bg); }
.answer-box.see h3 { color: var(--care); }

.btn.ghost { background: var(--white); color: var(--blue); border: 2px solid var(--blue); }
.btn.ghost:hover { background: var(--mist); color: var(--blue-dark); }

/* Tick and warning lists */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 24px; height: 24px; margin-top: 0.12em; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.4l3.2 3.2L17 8.8' fill='none' stroke='%232F5FAE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ticks.warn li::before {
  background: #F6DDD4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='10.8' y='6' width='2.4' height='8' rx='1.2' fill='%23A8402A'/%3E%3Ccircle cx='12' cy='17.4' r='1.4' fill='%23A8402A'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.fade-in { animation: gf-rise 0.35s ease both; }
@keyframes gf-rise { from { opacity: 0.4; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .answer-card { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   Section 3 — Recommended products (top pick + two alternatives)
   ========================================================= */
.products { background: var(--mist); }
.products .inner { padding-block: 8px 72px; }

.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head p { margin-top: 10px; max-width: 44ch; font-size: 1.08rem; color: var(--soft); }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.product-img {
  display: grid; place-items: center; max-width: 100%;
  border-radius: 22px; background: var(--c, var(--sky));
}
.product-img svg { width: 36%; max-width: 120px; height: auto; }
.price { font: 600 1.4rem/1 var(--f-head); font-variant-numeric: tabular-nums; color: var(--ink); }

.products-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }

.top-pick {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 20px; background: var(--white); border-radius: 32px;
}
.top-pick .product-img { aspect-ratio: 4 / 5; }
.top-pick .product-img svg { width: 44%; }
.top-pick-label { color: var(--blue); font-weight: 700; }
.top-pick h3 { margin-top: 6px; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.top-pick blockquote {
  margin: 16px 0 20px; padding-left: 16px;
  border-left: 3px solid var(--blue); font-size: 1.1rem; color: var(--ink);
}
.top-pick .buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.alternatives { display: flex; flex-direction: column; gap: 24px; }
.alt-pick {
  flex: 1; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 16px; background: var(--white); border-radius: 28px;
}
.alt-pick .product-img { aspect-ratio: 1 / 1; }
.alt-pick h3 { font-size: 1.15rem; }
.alt-pick p { margin: 4px 0 10px; color: var(--soft); }
.alt-pick .buy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

.products-note { margin-top: 24px; font-size: 0.95rem; color: var(--soft); }

@media (max-width: 1000px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .top-pick { grid-template-columns: minmax(0, 1fr); }
  .top-pick .product-img { aspect-ratio: 4 / 3; }
  .alt-pick { grid-template-columns: 96px minmax(0, 1fr); }
}

/* =========================================================
   Section 4 — Guides shelf
   ========================================================= */
.guides .inner { padding-block: 80px; }
.guides .section-head { margin-bottom: 28px; }

.shelf-arrows { display: flex; gap: 10px; }
.shelf-arrows button {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  cursor: pointer; transition: background 0.15s, color 0.15s;
}
.shelf-arrows button:hover { background: var(--ink); color: var(--white); }
.shelf-arrows svg { width: 22px; height: 22px; }

.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; scrollbar-width: thin;
}
.shelf-item {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 12px;
  color: var(--ink); text-decoration: none;
}
.shelf-item .cover-wrap { aspect-ratio: 4 / 5; transition: transform 0.3s, box-shadow 0.3s; }
.shelf-item:hover .cover-wrap { transform: translateY(-6px); box-shadow: 0 30px 50px -30px rgba(19, 34, 59, 0.55); }
.shelf-item h3 { font-size: 1.3rem; line-height: 1.25; }
.shelf-item:hover h3 { color: var(--blue); }
.guide-topic { color: var(--blue); font-weight: 700; font-size: 0.98rem; }
.guide-time { color: var(--soft); font-size: 0.98rem; }

/* Illustrated covers (drawn by js/main.js) */
.cover-wrap { max-width: 100%; overflow: hidden; border-radius: 24px; background: var(--sky); }
.cover { display: block; width: 100%; height: 100%; }

@media (max-width: 720px) {
  .shelf { grid-auto-columns: 80%; }
}

/* =========================================================
   Section 5 — Trust band
   ========================================================= */
.trust-band { background: var(--white); border-top: 1px solid var(--line); }
.trust-band .inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-block: 64px;
}
.trust-band .trust-lead {
  font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.25 var(--f-head);
  letter-spacing: -0.02em; color: var(--ink);
}
.trust-band .trust-lead span { color: var(--blue); }
.trust-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.trust-points li {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.trust-points b { display: block; font: 600 1.12rem/1.3 var(--f-head); }
.trust-points span { color: var(--soft); }
.icon-tile {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 18px; background: var(--sky);
}
.icon-tile svg { width: 28px; height: 28px; }

@media (max-width: 1000px) {
  .trust-band .inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #C9D5E6; }
.site-footer .inner { padding-block: 72px 40px; }
.footer-top {
  display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.footer-logo { font: 600 1.45rem/1 var(--f-head); letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.footer-logo span { color: #9DC0F0; }
.footer-logo:hover { color: var(--white); }
.footer-about p { margin-top: 16px; max-width: 34ch; }
.footer-col h3 { margin-bottom: 10px; font-size: 1.05rem; color: var(--white); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; color: #C9D5E6; text-decoration: none; }
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-small {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}
.footer-small b { color: var(--white); }
.footer-copy { margin-top: 28px; font-size: 0.92rem; color: #9AAAC2; }
.site-footer :focus-visible { outline-color: #9DC0F0; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-small { grid-template-columns: minmax(0, 1fr); }
}

/* Search "no match" message */
.search-msg {
  max-width: 560px; margin-top: 14px; padding: 14px 18px;
  background: var(--mist); border-radius: 14px; color: var(--ink); font-size: 1rem;
}
.search-msg a { font-weight: 700; }

/* =========================================================
   Condition pages (e.g. conditions/heel-pain.html)
   ========================================================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.98rem; color: var(--soft); }
.crumbs a { color: var(--soft); }
.crumbs a:hover { color: var(--blue); }

.cond-hero {
  background:
    radial-gradient(800px 460px at 90% 0%, var(--sky) 0, rgba(227, 237, 250, 0) 70%),
    var(--white);
}
.cond-hero .inner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
  gap: 48px; align-items: center; padding-block: 24px 56px;
}
.cond-hero h1 { margin-top: 18px; font-size: clamp(2.6rem, 6vw, 4.4rem); letter-spacing: -0.03em; }
.cond-hero .sub { margin-top: 14px; max-width: 46ch; font-size: 1.2rem; color: var(--soft); }
.cond-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; color: var(--soft); font-size: 0.98rem; }
.cond-meta b { color: var(--ink); }

.short-version {
  margin-top: 28px; padding: 24px 26px;
  background: var(--white); border: 2px solid var(--blue); border-radius: 24px;
  box-shadow: 0 24px 50px -36px rgba(19, 34, 59, 0.45);
}
.short-version h2 { margin-bottom: 14px; font-size: 1.25rem; color: var(--blue); }

.cond-foot { position: relative; }
.cond-foot::before {
  content: ""; position: absolute; inset: 4% 6%; z-index: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--white) 0, #E5EEFA 72%);
}
.cond-foot svg { position: relative; z-index: 1; display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }

.cond-body .inner {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px; align-items: start; padding-block: 24px 80px;
}
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px); }
.toc h2 { margin-bottom: 10px; font-size: 1rem; color: var(--soft); font-family: var(--f-body); font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: flex; align-items: center; min-height: 44px; margin-left: -2px; padding-left: 16px;
  border-left: 2px solid transparent; color: var(--ink); font-weight: 600; text-decoration: none;
}
.toc a:hover { color: var(--blue); border-left-color: var(--blue); }

.cond-article { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.cond-section h2 { margin-bottom: 18px; font-size: clamp(1.7rem, 3vw, 2.2rem); scroll-margin-top: 24px; }
.cond-section > p { max-width: 64ch; font-size: 1.12rem; }
.cond-section > p + p { margin-top: 14px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px;
  padding: 22px 24px; background: var(--mist); border-radius: 22px;
}
.steps li::before {
  content: counter(step);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font: 600 1.15rem/44px var(--f-head); text-align: center;
}
.steps h3 { font-size: 1.2rem; }
.steps p { margin-top: 6px; color: var(--soft); font-size: 1.05rem; }

.product-detail {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px;
  padding: 22px; border: 1px solid var(--line); border-radius: 28px; background: var(--white);
}
.product-detail + .product-detail { margin-top: 18px; }
.product-detail.first { border: 2px solid var(--blue); }
.product-detail .product-img { aspect-ratio: 1 / 1; align-self: start; }
.product-detail .label { color: var(--blue); font-weight: 700; }
.product-detail h3 { margin-top: 4px; font-size: 1.45rem; }
.product-detail .does { margin-top: 10px; font-size: 1.1rem; }
.product-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.product-facts div { padding: 16px 18px; background: var(--mist); border-radius: 16px; }
.product-facts b { display: block; margin-bottom: 4px; font-family: var(--f-head); font-weight: 600; }
.product-facts p { color: var(--soft); }
.product-detail .buy-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 20px; }

.see-box { padding: 28px 30px; background: var(--care-bg); border-radius: 26px; }
.see-box h2 { color: var(--care); }

.other-areas { background: var(--mist); }
.other-areas .inner { padding-block: 72px; }
.area-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.area-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 72px; padding: 0 22px; background: var(--white); border-radius: 20px;
  color: var(--ink); font: 600 1.1rem/1.2 var(--f-head); text-decoration: none;
  border: 2px solid transparent; transition: border-color 0.15s;
}
.area-links a::after { content: "→"; color: var(--blue); }
.area-links a:hover { border-color: var(--blue); }

@media (max-width: 1000px) {
  .cond-hero .inner { grid-template-columns: minmax(0, 1fr); }
  .cond-foot { display: none; }
  .cond-body .inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; }
  .area-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .product-detail { grid-template-columns: minmax(0, 1fr); }
  .product-detail .product-img { aspect-ratio: 16 / 10; }
  .product-facts { grid-template-columns: minmax(0, 1fr); }
  .area-links { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   "Where it hurts" overview page (where-it-hurts.html)
   ========================================================= */
.page-head {
  background: radial-gradient(800px 420px at 90% 0%, var(--sky) 0, rgba(227, 237, 250, 0) 70%), var(--white);
}
.page-head .inner { padding-block: 28px 48px; }
.page-head h1 { margin-top: 0; font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
.page-head .sub { margin-top: 14px; max-width: 52ch; font-size: 1.2rem; color: var(--soft); }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
  background: var(--white); border: 2px solid var(--line); border-radius: 14px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.jump-links a:hover { border-color: var(--blue); color: var(--blue); }

.area-band:nth-child(odd) { background: var(--mist); }
.area-band .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px; align-items: center; padding-block: 72px;
}
.area-band:nth-child(even) .area-art { order: 2; }
.area-band h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; scroll-margin-top: 24px; }
.area-band .quote { margin-top: 14px; max-width: 40ch; font-size: 1.25rem; color: var(--ink); }
.area-band .causes { margin-top: 12px; font-size: 1.05rem; color: var(--soft); }
.area-band .causes b { color: var(--ink); }

.area-art {
  width: 100%; overflow: hidden;
  border-radius: 28px; background: var(--mist);
}

.featured-label { margin-top: 30px; font-family: var(--f-head); font-weight: 600; font-size: 1.1rem; }
.featured { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.featured-item {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.area-band:nth-child(odd) .featured-item { border-color: transparent; }
.featured-item:hover { border-color: var(--blue); box-shadow: 0 20px 40px -30px rgba(47, 95, 174, 0.6); }
.featured-item .product-img { aspect-ratio: 4 / 3; border-radius: 14px; }
.featured-item .product-img svg { width: 30%; }
.featured-item b { font: 600 1.05rem/1.25 var(--f-head); }
.featured-item small { font-size: 0.95rem; color: var(--soft); }
.featured-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.featured-item .row span { font: 600 1.15rem/1 var(--f-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.featured-item .row em { font-style: normal; font-weight: 700; color: var(--blue); }
.area-band .see-all { margin-top: 28px; }

@media (max-width: 1000px) {
  .area-band .inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .area-band:nth-child(even) .area-art { order: 0; }
  .area-art { max-width: 520px; }
}
@media (max-width: 640px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 4px 14px; }
  .featured-item .product-img { grid-row: span 3; aspect-ratio: 1; }
  .area-band .see-all { width: 100%; }
}

/* Logo images */
.logo img { display: block; width: auto; height: 72px; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: auto; height: 50px; }
@media (max-width: 720px) {
  .logo img { height: 58px; }
}

/* =========================================================
   Area pages (where-it-hurts/*.html)
   Built from data/area-pages.json by tools/build-area-pages.py
   ========================================================= */
.area-hero {
  background: radial-gradient(800px 420px at 90% 0%, var(--sky) 0, rgba(227, 237, 250, 0) 70%), var(--white);
}
.area-hero .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px; align-items: start; padding-block: 24px 56px;
}
/* Area photos are 4:3 files; the ratio lives on the img so every browser agrees.
   Slightly taller 5:4 frame on desktop so the photo balances the text beside it. */
.area-gallery {
  max-width: 100%; overflow: hidden; border-radius: 28px; background: var(--mist);
  /* Stays in view while the text column scrolls past it (desktop only) */
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 24px);
}
.area-gallery img, .area-art img {
  display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover;
}
@media (max-width: 1000px) {
  .area-gallery img, .area-art img { aspect-ratio: 4 / 3; }
}
.area-hero h1 { margin-top: 0; font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: -0.03em; }
.area-feels { margin-top: 12px; max-width: 44ch; font-size: 1.2rem; }
.area-causes { margin-top: 10px; font-size: 1.05rem; color: var(--soft); }
.area-causes b { color: var(--ink); }
.area-by { margin-top: 18px; font-size: 0.98rem; color: var(--soft); }
.area-by b { color: var(--ink); }

.buybox {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px;
  margin-top: 26px; padding: 22px;
  background: var(--white); border: 2px solid var(--blue); border-radius: 28px;
  box-shadow: 0 30px 60px -45px rgba(19, 34, 59, 0.6);
}
.buybox .product-img { aspect-ratio: 1; }
.buybox-label { color: var(--blue); font-weight: 700; }
.buybox h2 { margin-top: 2px; font-size: 1.4rem; }
.buybox p { margin-top: 6px; color: var(--soft); }
.buybox .buy-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.buybox .btn { flex: 1; min-width: 180px; }

.step-route { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.step-route a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px 0 8px;
  background: var(--white); border: 2px solid var(--line); border-radius: 14px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.step-route a:hover { border-color: var(--blue); }
.step-route span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white); font: 600 1rem/1 var(--f-head);
}

.stage:nth-of-type(odd) { background: var(--mist); }
.stage .inner { padding-block: 56px; }
.stage-head { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 26px; }
.stage-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--blue); color: var(--white); font: 600 1.4rem/56px var(--f-head); text-align: center;
}
.stage-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); scroll-margin-top: 20px; }
.stage-head p { margin-top: 6px; font-size: 1.08rem; color: var(--soft); }
.stage-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.free-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: var(--white); border: 2px dashed #B7CBE8; border-radius: 24px;
}
.free-card h3 { font-size: 1.2rem; }
.free-card .price { color: var(--blue); }

.step-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
}
.stage:nth-of-type(odd) .step-card { border-color: transparent; }
.stage .step-card.first { border: 2px solid var(--blue); }
.first-flag { display: block; padding: 11px 16px; background: var(--blue); color: var(--white); font: 600 0.95rem/1 var(--f-head); }
.step-card .product-img { aspect-ratio: 16 / 10; border-radius: 0; }
.step-card .card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.product-type { color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.step-card h3 { font-size: 1.2rem; }
.step-card .what { font-size: 1.05rem; }
.step-card .what b { display: block; margin-bottom: 2px; font: 600 0.95rem/1.3 var(--f-head); color: var(--blue); }
.step-card .buy-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }
.step-card .btn { min-height: 48px; padding: 0 18px; font-size: 0.98rem; }

.compare .inner { padding-block: 56px 64px; }
.compare h2 { margin-bottom: 20px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1.02rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare th { background: var(--mist); font-family: var(--f-head); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.compare td a { font-weight: 700; white-space: nowrap; }

.advice .inner { padding-block: 8px 72px; }
.advice-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.advice-panels > div { padding: 28px 30px; border-radius: 26px; }
.advice-panels .try { background: var(--mist); }
.advice-panels .see { background: var(--care-bg); }
.advice-panels h2 { margin-bottom: 16px; font-size: 1.4rem; }
.advice-panels .see h2 { color: var(--care); }

.elsewhere .inner { padding-block: 56px 72px; border-top: 1px solid var(--line); }
.elsewhere h2 { margin-bottom: 18px; font-size: 1.5rem; }
.elsewhere-links { display: flex; flex-wrap: wrap; gap: 10px; }
.elsewhere-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 2px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 700; text-decoration: none;
}
.elsewhere-links a::after { content: "→"; color: var(--blue); }
.elsewhere-links a:hover { border-color: var(--blue); }

@media (max-width: 1000px) {
  .area-hero .inner { grid-template-columns: minmax(0, 1fr); }
  .area-gallery { max-width: 520px; position: static; }
  .stage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .buybox { grid-template-columns: minmax(0, 1fr); }
  .buybox .product-img { aspect-ratio: 16 / 9; }
  .stage-cards, .advice-panels { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================
   About page (about.html)
   ========================================================= */
.about-letter-wrap { background: var(--mist); }
.about-letter-wrap .inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 32px; align-items: start; padding-block: 64px 80px;
}
.letter {
  padding: clamp(28px, 5vw, 56px);
  background: var(--white); border-radius: 32px;
  box-shadow: 0 40px 80px -60px rgba(19, 34, 59, 0.5);
}
.letter h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.letter p { max-width: 60ch; margin-top: 18px; font-size: 1.18rem; line-height: 1.75; }
.letter .signature { margin-top: 28px; font: 600 1.4rem/1.2 var(--f-head); }
.letter .signature-role { margin-top: 4px; font-size: 1rem; color: var(--soft); }

.about-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: flex; flex-direction: column; gap: 16px; }
.side-box { padding: 26px; background: var(--white); border-radius: 26px; }
.side-box h3 { margin-bottom: 12px; font-size: 1.2rem; }
.side-box p { color: var(--soft); }
.side-box.dark { background: var(--ink); color: #E6EDF7; }
.side-box.dark h3 { color: var(--white); }
.side-box.dark p { color: #C9D5E6; }

.map-frame {
  overflow: hidden; margin: 4px 0 14px;
  aspect-ratio: 4 / 3; max-width: 100%;
  border-radius: 18px; background: var(--sky); border: 1px solid var(--line);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.email-address { font: 600 1.2rem/1.2 var(--f-head); color: inherit; word-break: break-all; }
.side-box.dark .email-address { color: var(--white); }
.copy-btn {
  min-height: 48px; padding: 0 18px; border-radius: 12px;
  border: 2px solid currentColor; background: transparent; color: inherit;
  font: 600 1rem/1 var(--f-head); cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.1); }

.about-principles .inner { padding-block: 72px; }
.about-principles h2 { margin-bottom: 28px; font-size: clamp(1.7rem, 3vw, 2.3rem); scroll-margin-top: 20px; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.principle { display: flex; flex-direction: column; gap: 12px; }
.principle h3 { font-size: 1.2rem; }
.principle p { color: var(--soft); }

@media (max-width: 1000px) {
  .about-letter-wrap .inner, .principles { grid-template-columns: minmax(0, 1fr); }
  .about-side { position: static; }
}

/* Approximate 7.5-mile radius drawn over the Farndon map (Google zoom 9, ~53°N, about 184 m per pixel) */
.map-frame { position: relative; }
.map-radius {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: 132px; height: 132px; transform: translate(-50%, -50%);
  border: 3px solid var(--blue); border-radius: 50%;
  background: rgba(47, 95, 174, 0.12);
  pointer-events: none;
}

/* =========================================================
   Guides page (guides.html) and guide articles (guides/*.html)
   Built from data/guides.json by tools/build-guides.py
   ========================================================= */
.guide-card { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.guide-card .cover-wrap { aspect-ratio: 16 / 10; transition: transform 0.3s, box-shadow 0.3s; }
.guide-card:hover .cover-wrap { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(19, 34, 59, 0.55); }
.guide-card h3 { font-size: 1.25rem; line-height: 1.28; }
.guide-card:hover h3 { color: var(--blue); }
.guide-card p { color: var(--soft); }

.featured-guide-wrap .inner { padding-block: 8px 48px; }
.featured-guide {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  padding: 20px; background: var(--mist); border-radius: 32px; color: var(--ink); text-decoration: none;
}
.featured-guide .cover-wrap { aspect-ratio: 16 / 11; }
.featured-guide .txt { display: flex; flex-direction: column; gap: 12px; padding-right: 20px; }
.featured-guide h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.featured-guide p { font-size: 1.12rem; color: var(--soft); }
.featured-guide:hover h2 { color: var(--blue); }

.guide-library .inner { padding-block: 8px 80px; }
.library-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.library-bar h2 { font-size: 1.7rem; }
.topic-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--mist); border-radius: 14px; }
.topic-filter button {
  min-height: 48px; padding: 0 16px; border: 0; border-radius: 11px;
  background: transparent; color: var(--ink); font: 600 1rem/1 var(--f-head); cursor: pointer;
}
.topic-filter button[aria-pressed="true"] { background: var(--white); color: var(--blue); box-shadow: 0 4px 14px -6px rgba(19, 34, 59, 0.3); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }

/* Article */
.article-head .inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px; align-items: center; padding-block: 28px 40px;
}
.article-head h1 { margin-top: 10px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
.article-head .standfirst { margin-top: 14px; font-size: 1.2rem; color: var(--soft); }
.article-head .cover-wrap { aspect-ratio: 4 / 3; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 0.98rem; color: var(--soft); }
.article-meta b { color: var(--ink); }

.article-body .inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px; align-items: start; padding-block: 8px 72px;
}
.prose { min-width: 0; }
.prose h2 { margin: 48px 0 16px; font-size: clamp(1.6rem, 2.8vw, 2.1rem); scroll-margin-top: 20px; }
.prose p { max-width: 66ch; font-size: 1.15rem; line-height: 1.75; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 16px; }
.prose .ticks { max-width: 66ch; font-size: 1.1rem; }
.prose .compare-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 66ch; margin-top: 18px; }
.prose .compare-pair div { padding: 18px 20px; background: var(--mist); border-radius: 18px; }
.prose .compare-pair b { display: block; font: 600 1.6rem/1 var(--f-head); color: var(--blue); }
.prose .compare-pair span { display: block; margin-top: 6px; }
.short-version-box { max-width: 66ch; margin-top: 28px; padding: 22px 26px; background: var(--white); border: 2px solid var(--blue); border-radius: 24px; }
.short-version-box h2 { margin: 0 0 12px; font-size: 1.25rem; color: var(--blue); }
.red-flags { max-width: 66ch; margin-top: 40px; padding: 26px 28px; background: var(--care-bg); border-radius: 24px; }
.red-flags h2 { margin: 0 0 14px; font-size: 1.4rem; color: var(--care); }

.article-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); display: flex; flex-direction: column; gap: 18px; }
.side-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; }
.side-card h2 { margin-bottom: 12px; font-size: 1.15rem; }
.side-product { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.side-product .product-img { aspect-ratio: 1; border-radius: 12px; }
.side-product .product-img svg { width: 44%; }
.side-product b { display: block; font: 600 1rem/1.3 var(--f-head); }
.side-product small { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.4; color: var(--soft); }
.side-product .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.side-product .row span { font: 600 1.05rem/1 var(--f-head); }
.side-product .row a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; }
.side-product .first-choice { color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.side-card .side-note { margin-top: 10px; font-size: 0.88rem; color: var(--soft); }
.toc-card ol { list-style: none; margin: 0; padding: 0; }
.toc-card a { display: flex; align-items: center; min-height: 44px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.toc-card a:hover { color: var(--blue); }

.related-guides .inner { padding-block: 64px 80px; border-top: 1px solid var(--line); }
.related-guides h2 { margin-bottom: 24px; font-size: 1.7rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

@media (max-width: 1000px) {
  .guide-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-guide, .article-head .inner, .article-body .inner { grid-template-columns: minmax(0, 1fr); }
  .featured-guide .txt { padding: 0 8px 8px; }
  .article-side { position: static; }
}
@media (max-width: 640px) {
  .guide-grid, .related-grid, .prose .compare-pair { grid-template-columns: minmax(0, 1fr); }
}
.guide-card .guide-topic, .featured-guide .guide-topic, .article-head .guide-topic { color: var(--blue); font-weight: 700; font-size: 0.95rem; }
.guide-card .guide-time, .featured-guide .guide-time { color: var(--soft); font-size: 0.95rem; }

/* Menu now has four links: 2 x 2 on phones */
@media (max-width: 760px) {
  .main-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Our products page (products.html)
   Built from data/area-pages.json by tools/build-area-pages.py
   ========================================================= */
.choose-band { background: var(--mist); }
.choose-band .inner { padding-block: 56px 64px; }
.choose-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); scroll-margin-top: 20px; }
.choose-intro { max-width: 62ch; margin: 14px 0 32px; font-size: 1.12rem; color: var(--soft); }
.principles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.choose-band .principle { padding: 24px; background: var(--white); border-radius: 24px; }

.product-jump { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.product-jump .inner { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding-block: 12px; }
.product-jump p { font-weight: 700; }
.product-jump-links { display: flex; flex-wrap: wrap; gap: 8px; }
.product-jump-links a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border: 2px solid var(--line); border-radius: 12px;
  color: var(--ink); font: 600 0.92rem/1.2 var(--f-head); text-decoration: none;
}
.product-jump-links a:hover { border-color: var(--blue); color: var(--blue); }
.product-jump-links small { color: var(--soft); font-weight: 500; }

.product-group .inner { padding-block: 56px; }
.product-group + .product-group .inner { border-top: 1px solid var(--line); }
.product-group h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.product-group-head {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; margin-bottom: 28px;
}
.product-group-head p { margin-top: 6px; font-size: 1.08rem; color: var(--soft); }
.product-group-foot {
  display: grid; place-items: center; width: 120px; aspect-ratio: 1; padding: 12px;
  border-radius: 50%; background: radial-gradient(circle at 50% 45%, var(--white) 0, #DCE7F7 75%);
}
.product-group-foot > div { height: 100%; }
.product-group-foot svg { height: 100%; width: auto; }
.product-group-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 16px; }
.product-group-links .btn { min-height: 48px; font-size: 0.95rem; }
.product-group { scroll-margin-top: 90px; }

.product-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 22px;
}
.product-row.first { border: 2px solid var(--blue); }
.product-row .product-img { aspect-ratio: 1; border-radius: 14px; }
.product-row .product-img svg { width: 40%; }
.product-row h4 { margin: 2px 0 4px; font: 600 1.08rem/1.3 var(--f-head); }
.product-row p { font-size: 0.98rem; line-height: 1.5; color: var(--soft); }
.product-row .first-choice { color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.product-row .product-type { font-size: 0.9rem; }
.product-row-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.product-row-buy .btn { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }

@media (max-width: 1100px) {
  .principles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-rows { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .principles-4 { grid-template-columns: minmax(0, 1fr); }
  .product-jump { position: static; }
  .product-group-head { grid-template-columns: minmax(0, 1fr); }
  .product-group-foot { width: 96px; }
  .product-row { grid-template-columns: 76px minmax(0, 1fr); }
  .product-row-buy { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* Products page: centred foot icons and square product tiles */
.product-group-foot { display: flex; align-items: center; justify-content: center; padding: 0; }
.product-group-foot > div { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-group-foot svg { display: block; width: auto; height: 82%; margin: 0 auto; }

.product-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-tile:hover { transform: translateY(-3px); box-shadow: 0 24px 46px -34px rgba(19, 34, 59, 0.55); }
.product-tile.first { border: 2px solid var(--blue); }
.product-tile .product-img { aspect-ratio: 1 / 1; border-radius: 0; }
.product-tile .product-img svg { width: 34%; }
.product-tile-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; }
.product-tile .product-type { font-size: 0.88rem; }
.product-tile h3 { font: 600 1.08rem/1.3 var(--f-head); }
.product-tile p { font-size: 0.96rem; line-height: 1.5; color: var(--soft); }
.product-tile-buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 10px; }
.product-tile-buy .btn { min-height: 46px; padding: 0 18px; font-size: 0.95rem; }

@media (max-width: 1100px) { .product-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .product-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .product-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Menu has five links: on phones, three on the first row and two on the second */
@media (max-width: 760px) {
  .main-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .main-nav a { grid-column: span 2; }
  .main-nav a:nth-child(4), .main-nav a:nth-child(5) { grid-column: span 3; }
}

/* =========================================================
   Sticky header (every page)
   js/main.js keeps --header-h equal to the header's height,
   so other sticky parts and jump links sit just below it.
   ========================================================= */
:root { --header-h: 0px; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.site-header .inner { transition: padding 0.2s; }
.site-header .logo img { transition: height 0.2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px -20px rgba(19, 34, 59, 0.45); }
.site-header.is-scrolled .inner { padding-block: 10px; }
.site-header.is-scrolled .logo img { height: 52px; }

/* Everything else that sticks now sits below the header */
.toc, .area-gallery, .about-side, .article-side { top: calc(var(--header-h) + 20px); }
.product-jump { top: var(--header-h); z-index: 40; }
.product-group { scroll-margin-top: 90px; }

@media (max-width: 760px) {
  /* Keep the sticky header compact on phones */
  .site-header .logo img { height: 46px; }
  .site-header.is-scrolled .logo img { height: 38px; }
  .site-header.is-scrolled .inner { padding-block: 8px; gap: 8px; }
  .site-header .main-nav a { min-height: 42px; }
  .site-header.is-scrolled .main-nav a { min-height: 38px; }
}

/* =========================================================
   Phone menu (three-line "Menu" button, added by js/main.js)
   ========================================================= */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .site-header.has-menu-toggle .inner { flex-wrap: wrap; }
  .site-header.has-menu-toggle .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 16px;
    border: 2px solid var(--line); border-radius: 14px;
    background: var(--white); color: var(--ink);
    font: 600 0.95rem/1 var(--f-head); cursor: pointer;
  }
  .site-header.has-menu-toggle .menu-toggle:hover { border-color: var(--blue); }
  .menu-icon { position: relative; display: inline-block; width: 22px; height: 16px; }
  .menu-icon i {
    position: absolute; left: 0; width: 22px; height: 2.5px; border-radius: 2px;
    background: currentColor; transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  .menu-icon i:nth-child(1) { top: 0; }
  .menu-icon i:nth-child(2) { top: 6.75px; }
  .menu-icon i:nth-child(3) { top: 13.5px; }
  .menu-open .menu-icon i:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
  .menu-open .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-open .menu-icon i:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }
  .menu-open .menu-toggle { border-color: var(--blue); color: var(--blue); }

  /* Links hidden until the menu is opened, then one per line */
  .site-header.has-menu-toggle .main-nav { display: none; }
  .site-header.has-menu-toggle.menu-open .main-nav {
    display: flex; flex-direction: column; gap: 0; width: 100%;
    margin-top: 6px; border-top: 1px solid var(--line);
  }
  .site-header.has-menu-toggle.menu-open .main-nav a {
    justify-content: flex-start; min-height: 56px; padding: 0 8px;
    background: none; border-bottom: 1px solid var(--line); border-radius: 0;
    font-size: 1.05rem; text-align: left;
  }
  .site-header.has-menu-toggle.menu-open .main-nav a[aria-current="page"] { color: var(--blue); }
  .site-header.has-menu-toggle.menu-open .main-nav a::after { content: "→"; margin-left: auto; color: var(--blue); }
}

/* =========================================================
   Audit fixes (phone layout)
   ========================================================= */
/* Long button labels wrap onto two lines on small screens instead of running off the edge */
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; max-width: 100%; }
}
/* Keeps the hidden "Link" label inside the comparison table's scroll area */
.table-wrap { position: relative; }
/* Email address is a comfortable tap target */
.email-address { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Scroll reveal ----------
   js/main.js adds data-reveal to elements, then .is-in as each scrolls into view,
   and removes both once the element has played. Without the script, or with
   reduced motion, nothing here applies and the page shows as normal. */
[data-reveal] {
  transition-property: opacity, transform, clip-path, stroke-dashoffset, background-color;
  transition-duration: var(--rt, 600ms);
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--rd, 0ms);
}
[data-reveal="rise"]:not(.is-in)  { opacity: 0; transform: translateY(24px); }
[data-reveal="fade"]:not(.is-in)  { opacity: 0; }
[data-reveal="right"]:not(.is-in) { opacity: 0; transform: translateX(48px); }
[data-reveal="scale"]:not(.is-in) { opacity: 0; transform: scale(0.94); }
[data-reveal="wash"]:not(.is-in)  { background-color: var(--white); transform: translateY(12px); }
/* Map radius keeps its centring transform while it opens out */
[data-reveal="ring"] { transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1); }
[data-reveal="ring"]:not(.is-in) { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
/* Icon and tick outlines trace themselves (the script sets pathLength="1") */
[data-reveal="draw"] { stroke-dasharray: 1 1; transition-timing-function: cubic-bezier(0.45, 0, 0.25, 1); }
[data-reveal="draw"]:not(.is-in) { stroke-dashoffset: 1; }
/* Headline slides up word by word */
[data-reveal="mask"] .mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
[data-reveal="mask"] .mw > span {
  display: inline-block;
  transition: transform var(--rt, 700ms) cubic-bezier(0.2, 0.7, 0.2, 1) calc(var(--rd, 0ms) + var(--wd, 0ms));
}
[data-reveal="mask"]:not(.is-in) .mw > span { transform: translateY(110%); }
/* Product group headings draw their underline */
[data-reveal="line"]::after { transition: transform var(--rt, 600ms) cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0ms); }
[data-reveal="line"]:not(.is-in)::after { transform: scaleX(0); }

.product-group h2 { position: relative; padding-bottom: 12px; }
.product-group h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 48px; height: 4px; border-radius: 4px;
  background: var(--blue); transform-origin: left;
}

@media print {
  [data-reveal], [data-reveal] .mw > span { opacity: 1 !important; transform: none !important; }
  [data-reveal="draw"] { stroke-dashoffset: 0 !important; }
}
/* Bigger foot labels on phones (the drawing shrinks, so the text needs to grow) */
@media (max-width: 760px) {
  .hero-stage svg { overflow: visible; }
  .hs .lbl { font-size: 21px; }
}

/* =========================================================
   Phone layout pass (from the mobile review, 15 Nov 2026)
   Thinner, more uniform layouts at phone width. Desktop is unchanged.
   ========================================================= */
@media (max-width: 640px) {
  /* Equal-size jump buttons in a tidy two-column grid (Where it hurts, Products, "Pain somewhere else?") */
  .jump-links, .product-jump-links, .elsewhere-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .jump-links a, .product-jump-links a, .elsewhere-links a {
    justify-content: center; text-align: center; min-height: 52px; padding: 6px 10px;
    font-size: 0.95rem; line-height: 1.2;
  }

  /* Home: recommended products as three compact rows (no big image, no quote) */
  .products .section-head { margin-bottom: 18px; }
  .products .section-head p, .guides .section-head p { display: none; }
  .products-layout, .alternatives { gap: 12px; }
  .top-pick, .alt-pick {
    grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center;
    padding: 12px; border-radius: 20px;
  }
  .top-pick { border: 2px solid var(--blue); }
  .top-pick .product-img, .alt-pick .product-img { aspect-ratio: 1 / 1; border-radius: 14px; }
  .top-pick .product-img svg { width: 40%; }
  .top-pick-label { font-size: 0.88rem; }
  .top-pick h3, .alt-pick h3 { margin-top: 2px; font-size: 1.1rem; }
  .top-pick blockquote, .alt-pick p { display: none; }
  .top-pick .buy-row, .alt-pick .buy-row { margin-top: 6px; gap: 12px; justify-content: space-between; }
  .top-pick .buy-row .btn { min-height: 42px; padding: 0 14px; font-size: 0.92rem; }
  .price { font-size: 1.2rem; }
  .products-note { margin-top: 16px; font-size: 0.85rem; }
  /* Home: guide shelf is swiped, so the arrow buttons go */
  .shelf-arrows { display: none; }

  /* Products page: drop the "Our products" header (kept for screen readers) and lead with "How I choose" */
  .page-head:has(+ .choose-band) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .choose-band .inner { padding-block: 28px 32px; }
  .choose-intro { display: none; }
  .choose-band h2 { margin-bottom: 16px; }
  .choose-band .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .choose-band .principle { gap: 8px; padding: 14px; border-radius: 18px; }
  .choose-band .principle h3 { font-size: 1rem; line-height: 1.25; }
  .choose-band .principle p { display: none; }
  .choose-band .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
  .choose-band .icon-tile svg { width: 22px; height: 22px; }

  /* Products page: simpler group headings */
  .product-group .inner { padding-block: 36px; }
  .product-group-head { gap: 0; margin-bottom: 18px; }
  .product-group-foot { display: none; }
  .product-group-links { margin-top: 8px; }
  .product-group-links .text-link { display: none; }
  .product-group-links .btn.ghost {
    min-height: 0; padding: 0; border: 0; background: none; font-size: 1rem; text-decoration: underline; text-underline-offset: 0.2em;
  }

  /* Product tiles and step cards become compact rows: small image left, details right */
  .product-tiles, .stage-cards { gap: 12px; }
  .product-tile, .step-card {
    display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 0 14px; align-items: start;
    padding: 12px; border-radius: 20px;
  }
  .product-tile:hover { transform: none; }
  .product-tile .first-flag, .step-card .first-flag { grid-column: 1 / -1; margin: -12px -12px 12px; padding: 9px 14px; font-size: 0.88rem; }
  .product-tile .product-img, .step-card .product-img { aspect-ratio: 1 / 1; border-radius: 14px; }
  .product-tile .product-img svg, .step-card .product-img svg { width: 40%; }
  .product-tile-body, .step-card .card-body { padding: 0; gap: 4px; }
  .product-tile .product-type, .step-card .product-type { font-size: 0.85rem; }
  .product-tile h3, .step-card h3 { font-size: 1.05rem; line-height: 1.25; }
  .product-tile p, .step-card .what {
    font-size: 0.92rem; line-height: 1.45; color: var(--soft);
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
  .step-card .what b { display: none; }
  .product-tile-buy, .step-card .buy-row { padding-top: 8px; }
  .product-tile-buy .btn, .step-card .btn { min-height: 42px; padding: 0 16px; font-size: 0.92rem; }

  /* Area pages: each step opens with a solid blue heading bar, so steps are clearly separate */
  .stage .inner { padding-block: 28px 36px; }
  .stage-head {
    grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center;
    margin-bottom: 16px; padding: 12px 14px; border-radius: 18px;
    background: var(--blue); color: var(--white);
  }
  .stage-num { width: 44px; height: 44px; background: var(--white); color: var(--blue); font-size: 1.2rem; line-height: 44px; }
  .stage-head h2 { font-size: 1.3rem; color: var(--white); }
  .stage-head p { margin-top: 2px; font-size: 0.95rem; color: var(--white); opacity: 0.88; }
  .free-card { padding: 18px; }
}

/* Area pages: the comparison table is too wide for a phone; the step cards above already cover it */
@media (max-width: 720px) {
  .compare { display: none; }
}

/* =========================================================
   Phone layout, second pass: less repetition on small screens
   ========================================================= */
@media (max-width: 760px) {
  /* Home: the foot map comes straight after the headline. Tapping an area opens
     its own page (js/main.js), so the answer and product panels aren't needed here. */
  .hero .inner { gap: 0; padding-block: 20px 36px; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; font-size: 2.2rem; }
  .hero .lede { display: none; }
  .hero-stage { order: 2; margin-top: 12px; }
  .hero-stage svg { max-height: 400px; }
  .hero-stage p { min-height: 0; margin-top: 8px; }
  .hero form.search { order: 3; margin-top: 20px; }
  .hero .search-msg { order: 4; }
  .hero .trust { order: 5; margin-top: 18px; gap: 6px 18px; font-size: 0.92rem; }
  .answer, #products { display: none; }

  /* Guide articles: "On this page" sits at the top, where it's useful */
  .article-body .inner { gap: 28px; }
  .article-side { display: contents; }
  .toc-card { order: -1; }
}

@media (max-width: 640px) {
  /* Where it hurts: a short list of areas, each with a small photo, its quote and one link */
  .page-head .jump-links { display: none; }
  .area-band .inner {
    grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: start; padding-block: 20px;
  }
  .area-band:nth-child(even) .area-art { order: 0; }
  .area-art { aspect-ratio: 1; border-radius: 16px; }
  .area-art img { width: 100%; height: 100%; object-fit: cover; }
  .area-band h2 { font-size: 1.45rem; }
  .area-band .quote { margin-top: 6px; font-size: 1rem; line-height: 1.5; }
  .area-band .causes, .area-band .featured-label, .area-band .featured { display: none; }
  .area-band .see-all {
    width: auto; min-height: 0; margin-top: 8px; padding: 0; background: none; color: var(--blue);
    font-size: 1rem; text-decoration: underline; text-underline-offset: 0.2em; justify-content: flex-start;
  }

  /* Area pages: no separate "first choice" box at the top (it opens step 1 just below),
     and the three step buttons are equal sizes */
  .area-hero .buybox { display: none; }
  .step-route { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .step-route a {
    flex-direction: column; justify-content: center; gap: 6px; min-height: 92px; padding: 10px 6px;
    text-align: center; font-size: 0.88rem; line-height: 1.25;
  }
  .step-route span { width: 30px; height: 30px; font-size: 0.9rem; }

  /* Guides library: topic filter as one swipeable row of chips */
  .library-bar { margin-bottom: 18px; }
  .topic-filter {
    display: flex; flex-wrap: nowrap; gap: 8px; width: 100%; padding: 0 0 4px;
    overflow-x: auto; background: none; border-radius: 0; scrollbar-width: none;
  }
  .topic-filter::-webkit-scrollbar { display: none; }
  .topic-filter button {
    flex: none; min-height: 44px; padding: 0 14px; white-space: nowrap;
    border: 2px solid var(--line); border-radius: 999px; font-size: 0.92rem;
  }
  .topic-filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: none; }

  /* Footer: the menu already lists every page, so keep it to the essentials */
  .site-footer .inner { padding-block: 36px 28px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .footer-top .footer-col:nth-child(2), .footer-top .footer-col:nth-child(3) { display: none; }
  .footer-col h3 { display: none; }
  .footer-col ul { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .footer-small { gap: 12px; margin-top: 20px; padding-top: 18px; font-size: 0.85rem; }
  .footer-copy { margin-top: 16px; }
}
@media (max-width: 640px) {
  .area-band .see-all:hover { background: none; color: var(--blue-dark); }
}

/* The hidden attribute always wins (the guides topic filter relies on it) */
[hidden] { display: none !important; }

@media (max-width: 640px) {
  /* "See everything for …" reads as a left-aligned link under the quote */
  .area-band .see-all { display: inline-block; text-align: left; line-height: 1.4; }
}

@media (max-width: 640px) {
  /* Area pages: the home tips already open step 1, so the second copy lower down is hidden on phones */
  .advice-panels .try { display: none; }
  /* Guides: the featured guide sits above the grid, so its copy in "All guides" is hidden on phones */
  .guide-grid:not(.is-filtered) .guide-card[data-featured] { display: none; }
}

/* =========================================================
   Footer: copyright line and the "Powered by [RIZER-STUDIO]" tag
   The .rz* rules below are copied unchanged from rizer-studio-tag.html.
   ========================================================= */
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 24px; margin-top: 28px;
}
.footer-bottom .footer-copy { margin-top: 0; }
@media (max-width: 640px) { .footer-bottom { margin-top: 16px; } }
/* Keep the tag in the footer's own text colour (the site's link colours don't apply to it) */
.site-footer .rz, .site-footer .rz:hover { color: inherit; }

.rz{
  --rz-orange:#E2571F;
  --rz-cream:#F2EFE9;
  --rz-ink:#161513;
  --rz-swap:.34s;

  display:inline-flex;
  align-items:baseline;
  gap:.45em;

  font-family:"Space Grotesk",ui-sans-serif,system-ui,sans-serif;
  font-weight:500;
  font-size:.8125rem;
  line-height:1.4;
  letter-spacing:.02em;

  /* inherits the host site's text colour until hovered */
  color:currentColor;
  opacity:.7;

  text-decoration:none;
  white-space:nowrap;
  cursor:pointer;

  /* stable hitbox — grows the target without shifting the text */
  padding:.4em .55em;
  margin:-.4em -.55em;
  transition:opacity .28s ease;
}
.rz:hover,.rz:focus-visible{opacity:1;outline:none}
.rz:focus-visible .rz__mark{outline:2px solid var(--rz-orange);outline-offset:3px}

.rz__mark{display:inline-flex;align-items:baseline;font-weight:700;letter-spacing:.055em}
.rz__br{display:inline-block;color:inherit;transition:color var(--rz-swap) ease}
.rz:hover .rz__br,.rz:focus-visible .rz__br{color:var(--rz-orange)}
/* tuck the closer so the gap stays even at any line length */
.rz__br--r{margin-left:-.055em}

/* the slot resizes to whichever line is lit */
.rz__slot{
  position:relative;
  display:inline-block;
  overflow:hidden;
  vertical-align:bottom;
  width:var(--rz-w-1,auto);
  transition:width var(--rz-swap) cubic-bezier(.65,0,.35,1);
}
.rz__line{
  display:block;
  transition:transform var(--rz-swap) cubic-bezier(.65,0,.35,1),
             opacity calc(var(--rz-swap) * .6) ease;
}
.rz__line--2,.rz__line--3{position:absolute;inset:0 auto 0 0;width:max-content}

.rz__line--1{transform:translateY(0);opacity:1}
.rz__line--2{transform:translateY(-105%);opacity:0;color:var(--rz-cream)}
.rz__line--3{transform:translateY(-105%);opacity:0;color:var(--rz-cream)}

.rz[data-beat="2"] .rz__slot{width:var(--rz-w-2,auto)}
.rz[data-beat="2"] .rz__line--1{transform:translateY(105%);opacity:0}
.rz[data-beat="2"] .rz__line--2{transform:translateY(0);opacity:1}

.rz[data-beat="3"] .rz__slot{width:var(--rz-w-3,auto)}
.rz[data-beat="3"] .rz__line--1{transform:translateY(105%);opacity:0}
.rz[data-beat="3"] .rz__line--2{transform:translateY(105%);opacity:0}
.rz[data-beat="3"] .rz__line--3{transform:translateY(0);opacity:1}

.rz__arrow{
  display:inline-block;
  margin-left:.3em;
  color:var(--rz-orange);
  transform:translateX(-.22em);
  opacity:0;
  transition:transform .3s cubic-bezier(.2,.9,.25,1) .06s,opacity .3s ease .06s;
}
.rz[data-beat="3"] .rz__arrow{transform:translateX(0);opacity:1}

/* light backgrounds */
.rz--light .rz__line--2,.rz--light .rz__line--3{color:var(--rz-ink)}

@media (prefers-reduced-motion:reduce){
  .rz__slot,.rz__line,.rz__arrow{transition-duration:.01ms}
}

/* =========================================================
   Privacy page (privacy.html)
   ========================================================= */
.policy-body .inner { padding-block: 8px 72px; }
.policy h2 { margin-top: 44px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { margin: 26px 0 8px; font-size: 1.25rem; }
.policy ul { max-width: 66ch; margin: 14px 0 0; padding-left: 1.3em; font-size: 1.15rem; line-height: 1.75; }
.policy li + li { margin-top: 8px; }
.policy p + ul, .policy ul + p, .policy .table-wrap + .cookie-choice { margin-top: 16px; }
.policy .table-wrap { max-width: 860px; margin-top: 18px; }
.policy-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; }
.policy-table th, .policy-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.policy-table th { background: var(--mist); font-family: var(--f-head); font-weight: 600; }
.policy-table tr:last-child td { border-bottom: 0; }
.cookie-choice {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  max-width: 860px; margin-top: 18px; padding: 18px 20px; background: var(--mist); border-radius: 18px;
}
.cookie-choice p { font-size: 1.05rem; }

/* =========================================================
   Cookie banner (added by js/main.js until a choice is made)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; pointer-events: none;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}
.cookie-card {
  pointer-events: auto; max-width: 560px; padding: 22px 24px;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 70px -28px rgba(19, 34, 59, 0.5);
}
.cookie-card h2 { margin-bottom: 8px; font-size: 1.2rem; }
.cookie-card h2:focus { outline: none; }
.cookie-card p { color: var(--soft); font-size: 1rem; line-height: 1.55; }
.cookie-card p a { font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* Accept and reject look the same, so saying no is as easy as saying yes */
.cookie-actions .btn { flex: 1 1 150px; min-height: 50px; }
@media (max-width: 640px) {
  .cookie-banner { padding: 0; }
  .cookie-card {
    max-width: none; border-radius: 22px 22px 0 0; border-bottom: 0;
    padding: 18px max(16px, env(safe-area-inset-left, 0px)) calc(18px + env(safe-area-inset-bottom, 0px));
  }
}

/* About page: Google's map only loads after a tap, because Google may set cookies */
.map-consent {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px; text-align: center;
}
.map-consent p { max-width: 26ch; font-size: 0.95rem; color: var(--ink); }
.map-consent .btn { min-height: 46px; padding: 0 20px; font-size: 0.95rem; }
.map-consent a { font-size: 0.9rem; font-weight: 600; }
.map-frame:not(.is-loaded) .map-radius { display: none; }
.map-frame.is-loaded .map-consent { display: none; }
@media (max-width: 640px) {
  /* Privacy page: each cookie becomes a small card instead of a wide table */
  .policy .table-wrap { overflow: visible; border: 0; border-radius: 0; }
  .policy-table { min-width: 0; }
  .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; }
  .policy-table tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; }
  .policy-table tr + tr { margin-top: 10px; }
  .policy-table td { padding: 4px 0; border: 0; }
  .policy-table td[data-label]::before {
    content: attr(data-label); display: block; margin-top: 6px;
    font: 600 0.85rem/1.3 var(--f-head); color: var(--soft);
  }
  .policy-table tr:last-child td { border-bottom: 0; }
}

/* =========================================================
   404 page (404.html)
   ========================================================= */
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.notfound-areas .inner { padding-block: 8px 80px; }
.notfound-areas h2 { margin-bottom: 4px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
