/*
 * Suppose — marketing site styles.
 *
 * The palette, radii, and spacing are lifted directly from the app
 * (theme/colors.ts, theme/theme.ts) so the site and the product read as one
 * thing. If a colour changes in the app, change it here too.
 *
 * Type mirrors the app: Georgia for display/serif, the system sans for UI. No
 * webfonts — nothing here makes a network request, which keeps the site fast
 * and the Cloudflare config trivial.
 */

/* ── tokens ────────────────────────────────────────────────────────────── */

:root {
  /* light — theme/colors.ts lightColors */
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-alt: #eef4f2;
  --border: #dce6e3;
  --text: #0e1614;
  --muted: #5a6864;
  --faint: #9ba8a4;
  --accent: #0f6e56;
  --accent-deep: #0f6e56;
  --accent-soft: rgba(15, 110, 86, 0.12);
  --on-accent: #ffffff;
  --amber: #f5a623;
  --positive: #0f8a5f;
  --negative: #c6472e;
  --slider-false: #6e7b78;
  --slider-mid: #ffffff;
  --slider-true: #0f6e56;
  --slider-border: #cbd8d4;
  --grid-line: #e4ebe9;
  --reference-line: #c2d2cd;
  --shadow: 0 1px 2px rgba(14, 22, 20, 0.04), 0 8px 24px rgba(14, 22, 20, 0.06);
  --shadow-lg: 0 2px 4px rgba(14, 22, 20, 0.05), 0 24px 60px rgba(14, 22, 20, 0.12);

  /* theme/theme.ts */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --page: 1120px;
  --gutter: 24px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
  }
}

/* dark — theme/colors.ts darkColors. Applied by media query and by the
   explicit toggle, which wins in both directions. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0f0e;
    --surface: #121817;
    --surface-alt: #182120;
    --border: #243230;
    --text: #f2f5f4;
    --muted: #9daba8;
    --faint: #5c6a67;
    --accent: #1d9e75;
    --accent-deep: #0f6e56;
    --accent-soft: rgba(29, 158, 117, 0.16);
    --positive: #3fcf98;
    --negative: #e8735b;
    --slider-false: #404b49;
    --slider-mid: #e9efed;
    --slider-true: #1d9e75;
    --slider-border: #2a3634;
    --grid-line: #1e2a28;
    --reference-line: #39514c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f0e;
  --surface: #121817;
  --surface-alt: #182120;
  --border: #243230;
  --text: #f2f5f4;
  --muted: #9daba8;
  --faint: #5c6a67;
  --accent: #1d9e75;
  --accent-deep: #0f6e56;
  --accent-soft: rgba(29, 158, 117, 0.16);
  --positive: #3fcf98;
  --negative: #e8735b;
  --slider-false: #404b49;
  --slider-mid: #e9efed;
  --slider-true: #1d9e75;
  --slider-border: #2a3634;
  --grid-line: #1e2a28;
  --reference-line: #39514c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* ── base ──────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  /* clear the sticky header when jumping to a section */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Several components below set `display`, which would otherwise beat [hidden]. */
[hidden] {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

h1 {
  /* Capped so the hero headline's second sentence sits on one line at the
     1120px layout — see the &nbsp; in index.html for the narrow-width case. */
  font-size: clamp(2.1rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ── layout ────────────────────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow {
  max-width: 760px;
}

section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.band {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}

.section-head {
  max-width: 66ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  margin-top: 16px;
}

/* ── header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

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

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand .mark {
  width: 22px;
  color: var(--accent);
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav + .header-actions {
  margin-left: 8px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  padding: 0;
}

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

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

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

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

/* ── buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn--primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, black);
}

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

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

.btn--sm {
  padding: 10px 16px;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  cursor: default;
}

/* Placeholder for the official App Store badge — swap once the app is live.
   See web/README.md. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  border-radius: var(--r-md);
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--text);
}

.store-badge__lines {
  display: grid;
  gap: 1px;
  line-height: 1.15;
  text-align: left;
}

.store-badge__small {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.store-badge__big {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(40px, 6vw, 76px);
  padding-bottom: clamp(48px, 7vw, 92px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  /* a single soft teal wash behind the hero — the only decoration on the page */
  content: "";
  position: absolute;
  inset: -30% 40% 30% -20%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 430px);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

@media (max-width: 940px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lede {
  margin-top: 22px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--faint);
}

/* ── cards ─────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.step {
  display: grid;
  gap: 10px;
  align-content: start;
}

.step__n {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
}

.step p,
.card p {
  color: var(--muted);
}

.card h3 + p {
  margin-top: 8px;
}

/* ── the demo ──────────────────────────────────────────────────────────── */

.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3.4vw, 30px);
  display: grid;
  gap: 18px;
}

.demo__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600;
}

.demo__claim {
  font-family: var(--serif);
  font-size: clamp(1.28rem, 2.4vw, 1.5rem);
  line-height: 1.32;
  margin: 0;
  min-height: 3.9em;
}

.readout {
  text-align: center;
}

.readout__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.readout__value {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 9vw, 4.9rem);
  line-height: 1.05;
  color: var(--accent);
  display: block;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}

.readout__value[data-side="false"] {
  color: var(--text);
}

.readout__value[data-side="even"] {
  color: var(--muted);
}

.readout__pct {
  font-size: 0.45em;
  color: var(--faint);
}

.readout__foot {
  color: var(--muted);
  font-size: 0.95rem;
  min-height: 1.6em;
}

/* the slider: a range input dressed as the app's gradient track */
.track {
  display: grid;
  gap: 6px;
}

.track input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.track input[type="range"]::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 9px;
  border: 1px solid var(--slider-border);
  background: linear-gradient(90deg, var(--slider-false), var(--slider-mid) 50%, var(--slider-true));
}

.track input[type="range"]::-moz-range-track {
  height: 18px;
  border-radius: 9px;
  border: 1px solid var(--slider-border);
  background: linear-gradient(90deg, var(--slider-false), var(--slider-mid) 50%, var(--slider-true));
}

.track input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.track input[type="range"]::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.track input[type="range"]:disabled {
  opacity: 0.5;
  cursor: default;
}

.track__ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.reveal-slot {
  min-height: 132px;
  display: flex;
}

/* Sits in the reserved slot until there's a reveal to put there. */
.reveal-hint {
  margin: auto;
  text-align: center;
  max-width: 32ch;
  color: var(--faint);
  font-size: 0.9rem;
}

.reveal {
  width: 100%;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.reveal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reveal__verdict {
  font-family: var(--serif);
  font-size: 1.15rem;
}

.reveal__points {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.reveal__points[data-sign="pos"] {
  color: var(--positive);
}

.reveal__points[data-sign="neg"] {
  color: var(--negative);
}

.reveal__points[data-sign="zero"] {
  color: var(--muted);
}

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

.demo__dots {
  display: flex;
  gap: 6px;
}

.demo__dots span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.demo__dots span[data-on="true"] {
  background: var(--accent);
}

/* ── the scoring table ─────────────────────────────────────────────────── */

.formula {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-align: center;
  overflow-x: auto;
  white-space: nowrap;
}

.scoreboard {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.scoreline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.scoreline strong {
  font-weight: 600;
}

.scoreline span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 2px;
}

.scoreline b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.scoreline b[data-sign="pos"] {
  color: var(--positive);
}

.scoreline b[data-sign="neg"] {
  color: var(--negative);
}

.scoreline b[data-sign="zero"] {
  color: var(--muted);
}

/* ── charts / figures ──────────────────────────────────────────────────── */

.figure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 26px);
}

.figure figcaption {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 14px;
}

.curve {
  width: 100%;
  height: auto;
  display: block;
}

/* Screenshot slots. Deliberately obvious until the real captures land. */
.shot {
  aspect-ratio: 9 / 19.5;
  border: 1.5px dashed var(--reference-line);
  border-radius: var(--r-lg);
  background: var(--surface-alt);
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  padding: 20px;
  color: var(--faint);
  font-size: 0.85rem;
}

.shot strong {
  display: block;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.shot code {
  font-family: var(--mono);
  font-size: 0.75rem;
  word-break: break-all;
}

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  /* phone aspect gets tall fast — keep the row from dominating the section */
  max-width: 860px;
}

/* ── chips ─────────────────────────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.92rem;
}

.chips li span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ── pricing ───────────────────────────────────────────────────────────── */

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

.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.plan__name {
  font-family: var(--serif);
  font-size: 1.35rem;
}

.badge {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: var(--r-pill);
}

.plan__price {
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
}

.plan__price small {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 6px;
}

.plan__alt {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: -8px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 0.97rem;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ticks li::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-top: 6px;
  background: var(--accent);
  border-radius: 50%;
  /* a checkmark punched out of the dot */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm4.03 5.97l-4.8 5.2a1 1 0 01-1.44.03L3.3 8.7a1 1 0 111.4-1.42l1.75 1.74 4.11-4.45a1 1 0 011.47 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 100 16A8 8 0 008 0zm4.03 5.97l-4.8 5.2a1 1 0 01-1.44.03L3.3 8.7a1 1 0 111.4-1.42l1.75 1.74 4.11-4.45a1 1 0 011.47 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── honesty band ──────────────────────────────────────────────────────── */

.plain {
  max-width: 60ch;
}

.plain h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
}

.plain p {
  color: var(--muted);
  margin-top: 16px;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

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

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 40px 20px 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  position: relative;
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq details > div {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
  display: grid;
  gap: 12px;
}

/* ── closing CTA ───────────────────────────────────────────────────────── */

.closer {
  text-align: center;
}

.closer .wrap {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.closer .mark {
  width: 46px;
  color: var(--accent);
}

.closer p {
  color: var(--muted);
  max-width: 48ch;
}

/* ── footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  background: var(--surface-alt);
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}

.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-about p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 34ch;
}

.colophon {
  color: var(--faint);
  font-size: 0.85rem;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── inner pages (support / legal) ─────────────────────────────────────── */

.page-head {
  padding: clamp(48px, 7vw, 84px) 0 clamp(24px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
}

.page-head p {
  margin-top: 16px;
}

.prose {
  padding: clamp(36px, 6vw, 64px) 0 clamp(48px, 8vw, 88px);
}

.prose h2 {
  font-size: 1.55rem;
  margin: 44px 0 14px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 28px 0 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
}

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

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 12px 0;
}

.prose li {
  margin: 8px 0;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  padding: 20px 22px;
  margin: 28px 0;
  display: grid;
  gap: 10px;
}

.callout p {
  margin: 0;
}

.contact-card {
  display: grid;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  margin: 24px 0 8px;
}

.contact-card a.email {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  word-break: break-word;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

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

.meta-table th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 34%;
}

.meta-table td {
  color: var(--muted);
}

.toc {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc a {
  display: inline-block;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.toc a:hover {
  color: var(--text);
  border-color: var(--faint);
}
