/* Cheqam — shared stylesheet.
   Extracted from the inline <style> in index.html when the site gained a second
   page. One file, cached across pages; the theme still flips via data-theme on
   <html>, set by the blocking script in each page's <head>. */

/* ---- tokens ----
   The theme is driven by data-theme on <html>, which the inline script in <head>
   sets before first paint (system preference unless the visitor has chosen). Every
   colour below flips; anything that must NOT flip lives in the shared block. */
:root {
  --radius: 16px;
  --maxw: 1100px;

  /* the cheqam mark's teal — same in both themes, it is the logo */
  --brand: #33827e;

  /* per-product accents, taken from each app's own theme */
  --tf: #51aea5; /* TailoredFlow logo teal */
  --sendr: #3b82f6; /* Sendr primary blue */
  --vent: #2563eb; /* Vent primary blue */
}

/* dark — mirrors the Sendr theme (src/index.css) so the family looks related */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: hsl(222 47% 7%);
  --surface: hsl(222 40% 11%);
  --surface-hi: hsl(222 38% 14%);
  --border: hsl(222 30% 20%);
  --fg: hsl(210 40% 98%);
  --muted: hsl(215 20% 65%);
  --primary: hsl(217 91% 60%);
  --primary-soft: hsl(217 91% 60% / 0.12);
  --brand-ink: #4fa39e; /* teal lightened to stay legible on dark */
  --ink: #f4f6fa; /* line-art logos drawn in the page's foreground */
  --glow-a: hsl(217 91% 60% / 0.18);
  --glow-b: hsl(262 83% 66% / 0.14);
  --grad-a: hsl(217 91% 68%);
  --grad-b: hsl(262 83% 72%);
  /* dark leans on borders, not shadows — but keep the slots fillable so the
     hover rules below can compose without branching per theme */
  --lift: 0 0 #0000;
  --lift-hover: 0 0 #0000;
}

/* light — built on the cream from the logo lockup rather than a clinical white,
   so the teal sits on the background it was drawn for */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: hsl(41 46% 96%);
  --surface: hsl(40 50% 99%);
  --surface-hi: hsl(0 0% 100%);
  --border: hsl(38 22% 87%);
  --fg: hsl(185 25% 12%);
  --muted: hsl(190 10% 40%);
  --primary: hsl(184 46% 30%);
  --primary-soft: hsl(184 46% 30% / 0.08);
  --brand-ink: #2a6d69; /* teal darkened to stay legible on cream */
  --ink: hsl(185 25% 15%);
  --glow-a: hsl(184 45% 55% / 0.14);
  --glow-b: hsl(35 70% 60% / 0.1);
  --grad-a: hsl(184 48% 30%);
  --grad-b: hsl(206 70% 40%);
  /* cards need to lift off the cream — on dark, borders alone do that job */
  --lift:
    0 1px 2px hsl(185 25% 12% / 0.04),
    0 10px 26px -14px hsl(185 25% 12% / 0.16);
  --lift-hover:
    0 2px 4px hsl(185 25% 12% / 0.05),
    0 18px 38px -16px hsl(185 25% 12% / 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* anchored sections must clear the sticky header, or the heading lands under it */
section[id] {
  scroll-margin-top: 76px;
}

::selection {
  background: color-mix(in srgb, var(--brand) 28%, transparent);
}

/* one visible focus style for everything that isn't given its own below */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* keyboard users can jump the nav */
.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  box-shadow: var(--lift);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* two soft spotlights behind the hero */
  background-image:
    radial-gradient(60rem 40rem at 15% -10%, var(--glow-a), transparent 60%),
    radial-gradient(50rem 35rem at 90% 0%, var(--glow-b), transparent 60%);
  background-repeat: no-repeat;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- header: sticky so the nav (and the theme toggle) stay reachable on a long page.
   The hairline only appears once you have scrolled, so the top of the page stays clean. */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: 16px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

/* browsers without backdrop-filter get an opaque bar rather than unreadable text */
@supports not (backdrop-filter: blur(1px)) {
  header {
    background: var(--bg);
  }
}

header[data-stuck="true"] {
  border-bottom-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg {
  width: 30px;
  height: 30px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.925rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--fg);
}

@media (max-width: 560px) {
  .nav a.hide-sm {
    display: none;
  }
}

/* ---- theme toggle ---- */
.theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

.theme:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 25%, var(--border));
}

.theme:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.theme svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* show the icon for the theme you would switch TO */
.theme .moon {
  display: none;
}

:root[data-theme="light"] .theme .moon {
  display: block;
}

:root[data-theme="light"] .theme .sun {
  display: none;
}

/* ---- hero ---- */
.hero {
  padding-block: 72px 56px;
  max-width: 46rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--fg);
  font-size: 0.8rem;
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(142 71% 45%);
}

h1 {
  margin: 22px 0 0;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h1 .grad {
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 20px;
  font-size: clamp(1.02rem, 2.2vw, 1.16rem);
  color: var(--muted);
  max-width: 39rem;
}

/* ---- hero actions ---- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.94rem;
  font-weight: 560;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--lift);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--brand) 86%, #000);
  box-shadow: var(--lift-hover);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--fg) 28%, var(--border));
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---- scroll reveal ----
   The .reveal class is added by JS, never in the markup — if the script fails
   or is blocked, nothing is left stuck at opacity 0. */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---- product cards ---- */
section {
  padding-block: 8px 44px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head span {
  color: var(--muted);
  font-size: 0.875rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--lift);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 12px 32px -12px color-mix(in srgb, var(--accent) 60%, transparent),
    var(--lift-hover);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* each card carries its product's own accent */
.card--tf {
  --accent: var(--tf);
}
.card--sendr {
  --accent: var(--sendr);
}
.card--vent {
  --accent: var(--vent);
}

/* the logo tile holds each app's real mark, unmodified */
.mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  margin-bottom: 18px;
  overflow: hidden;
}

.mark svg {
  width: 30px;
  height: 30px;
  display: block;
}

/* Sendr and Vent marks are self-contained rounded squares — let them fill the tile */
.mark--full svg {
  width: 100%;
  height: 100%;
}

.card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.card .kicker {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
}

/* the product accents are tuned for dark cards; on cream the lighter two
   (TailoredFlow's teal especially) fall under 3:1, so deepen them */
:root[data-theme="light"] .card .kicker {
  color: color-mix(in srgb, var(--accent) 68%, hsl(185 40% 8%));
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.885rem;
  color: var(--muted);
}

.points li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.points li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 10px;
}

.go {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 550;
  color: var(--accent);
}

.go-spacer {
  margin-top: 22px;
}

.go .host {
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.card:hover .arrow {
  transform: translateX(3px);
}

.arrow {
  transition: transform 0.18s ease;
}

/* ---- "who it's for" strip ---- */
.who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 0.86rem;
  color: var(--muted);
}

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

.reason h4 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

.reason p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.reason .num {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

/* ---- contact ---- */
.ways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.way {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--lift);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

a.way:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: var(--lift-hover);
}

a.way:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.way .mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  margin-bottom: 16px;
}


.way .mark svg {
  width: 19px;
  height: 19px;
  stroke: var(--brand-ink);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.way h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.way p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.way .value {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--brand-ink);
  font-variant-numeric: tabular-nums;
}

/* WhatsApp keeps its own green rather than the brand teal — people scan
   for that colour, and it is the one card here that opens another app. */
.way-whatsapp .mark {
  background: color-mix(in srgb, #25d366 14%, transparent);
  border-color: color-mix(in srgb, #25d366 34%, var(--border));
}

.way-whatsapp .mark svg {
  stroke: #1da851;
}

.way-whatsapp .value {
  color: #1da851;
}

a.way-whatsapp:hover {
  border-color: color-mix(in srgb, #25d366 55%, transparent);
}

/* ---- enquiry form ---- */
.enquiry {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--lift);
}

.enquiry-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.enquiry-head p {
  margin: 7px 0 22px;
  color: var(--muted);
  font-size: 0.9rem;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field > span {
  font-size: 0.85rem;
  font-weight: 550;
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.field textarea {
  resize: vertical;
  min-height: 104px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-note {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  min-height: 1.2em;
}

.enquiry-note[data-state='error'] {
  color: #d9534f;
}

.enquiry-note[data-state='ok'] {
  color: #1da851;
}

.enquiry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.enquiry-alt {
  color: var(--muted);
  font-size: 0.85rem;
}

/* .btn was written for anchors, so a real button element needs the font
   said out loud or it falls back to the UA's. */
.enquiry .btn {
  font-family: inherit;
}

.enquiry button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.enquiry button[disabled]:hover {
  transform: none;
}

/* ---- floating whatsapp ---- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 999px;
  background: #25d366;
  color: #05261a;
  font-size: 0.9rem;
  font-weight: 620;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.6);
}

.wa-float:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

.wa-float svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 560px) {
  /* The label doubles the pill's width on a phone and the glyph already
     reads as WhatsApp, so only the icon survives. */
  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 14px;
    right: 16px;
    bottom: 16px;
  }
}

/* ---- footer ---- */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-block: 30px 44px;
  color: var(--muted);
  font-size: 0.875rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: var(--fg);
}

.foot .contact {
  display: grid;
  gap: 3px;
  text-align: right;
}

/* Social row in the footer. Sits under the email/phone in the same right-hand
   column, so it inherits .contact's alignment flip on narrow screens. */
.foot .social {
  display: flex;
  /* One straight row: 5 x 34px + 4 x 6px = 194px, which fits the footer
     column at every width the layout produces. Only a genuinely small
     screen is allowed to wrap it. */
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 8px;
}

.foot .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.foot .social a:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.foot .social svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 560px) {
  .foot .contact {
    text-align: left;
  }

  .foot .social {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.chip {
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.chip:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

/* ---- small screens ---- */
@media (max-width: 640px) {
  .hero {
    padding-block: 44px 36px;
  }

  section {
    padding-block: 8px 34px;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .card,
  .way {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- product pages (/tailoredflow) ----
   Only the pieces the hub page has no equivalent for: the prose blocks, the
   pricing pair and the FAQ. Everything else reuses the classes above. */

.prose {
  max-width: 46rem;
}

.prose p {
  color: var(--muted);
  margin: 0 0 14px;
}

.prose h3 {
  margin: 26px 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}

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

.price {
  --accent: var(--tf);
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface));
  box-shadow: var(--lift);
}

.price--featured {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.price h3 {
  margin: 0;
  font-size: 1.05rem;
}

.price .amount {
  margin: 10px 0 2px;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.price .amount span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.price .billed {
  font-size: 0.86rem;
  color: var(--muted);
}

.price .points {
  flex: 1;
}

.price .btn {
  margin-top: 20px;
}

/* Android download. One card rather than a pricing-style grid — there is only
   ever one build, so a column layout would just leave a hole beside it. */
.download {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

.download-body {
  flex: 1 1 22rem;
  min-width: 0;
  max-width: 42rem;
}

.download-body h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.download-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.download-body p:last-child {
  margin-bottom: 0;
}

.download-note {
  font-size: 0.9rem;
}

.download-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Answers stay in the markup and are only collapsed visually — a crawler (and
   the FAQPage JSON-LD) needs to see the text whether or not it is open. */
.faq {
  display: grid;
  gap: 12px;
  max-width: 46rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--brand-ink);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.crumbs {
  padding-top: 22px;
  font-size: 0.85rem;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
}

/* ---- Legal pages (privacy, terms, cookies) -------------------------------
   Generated by scripts/generate-legal-pages.py. A two-column reading layout:
   a sticky table of contents beside the document on a wide screen, stacked
   above it on anything narrower. */
.legal-head {
  padding-top: 30px;
}

.legal-head h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.legal-head .lede {
  max-width: 46rem;
}

.legal-updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Switcher between the three documents. Someone who lands on the cookie
   policy from a footer link is one tap from the other two. */
.legal-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.legal-switch a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.legal-switch a:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.legal-switch a[aria-current='page'] {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--brand) 55%, var(--border));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.legal-body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.legal-toc {
  position: sticky;
  top: 90px;
  font-size: 0.875rem;
}

.legal-toc h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 7px;
}

.legal-toc a {
  color: var(--muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--fg);
}

.legal-doc {
  max-width: 46rem;
}

.legal-section {
  scroll-margin-top: 90px;
  margin-bottom: 34px;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--fg);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.legal-doc ul {
  margin: 0 0 14px;
  padding-left: 1.15rem;
  color: var(--muted);
}

.legal-doc li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.legal-doc strong {
  color: var(--fg);
}

.legal-doc a {
  color: var(--brand);
}

/* Placeholders the company still has to fill in. Loud on purpose: these must
   not survive to a published page unnoticed. The generator also prints a
   count of them at the end of every run. */
.todo {
  background: #fde68a;
  color: #713f12;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
}

/* Table of stored keys in the cookie policy. Scrolls inside its own box so a
   narrow phone never widens the page. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 14px;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  color: var(--fg);
  font-weight: 600;
  white-space: nowrap;
}

.legal-table td {
  color: var(--muted);
  line-height: 1.55;
}

.legal-table code {
  font-size: 0.85em;
  color: var(--fg);
  word-break: break-word;
}

@media (max-width: 900px) {
  .legal-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .legal-toc {
    position: static;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
  }
}

/* Legal links in the footer, under the contact details. */
.foot .foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .foot .foot-legal {
    justify-content: flex-start;
  }
}
