/* finnovault: tokens, base and shared components.
   Visual language: build/DESIGN.md (ClickHouse) with spec §4's changes:
   Inter Tight + JetBrains Mono, dark only, yellow used only on the primary
   button, stat figures, the CTA band, focus rings and the terminal
   prompt/cursor. No shadows. Radius 8px on controls, 12px on cards, pills
   only on tags. Inner pages add pages.css. */

/* ---- fonts (self-hosted, OFL: /assets/fonts/OFL.txt) ---------------------- */
@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---- tokens (spec §4, exact) ---------------------------------------------- */
:root {
  --fv-canvas: #0a0a0a;
  --fv-surface-soft: #121212;
  --fv-surface-card: #1a1a1a;
  --fv-surface-elevated: #242424;
  --fv-hairline: #2a2a2a;
  --fv-hairline-strong: #3a3a3a;
  --fv-ink: #ffffff;
  --fv-body: #cccccc;
  --fv-muted: #888888;          /* AA on canvas 5.6:1, soft 5.3:1, card 4.9:1; fails on elevated (4.4:1) */
  --fv-primary: #faff69;
  --fv-primary-active: #e6eb52;
  --fv-on-primary: #0a0a0a;
  --fv-success: #22c55e;
  --fv-error: #ef4444;

  --fv-sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fv-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fv-radius-control: 8px;
  --fv-radius-card: 12px;
  --fv-radius-pill: 9999px;

  --fv-max: 1280px;
  --fv-gutter: clamp(16px, 4vw, 40px);
  --fv-section: clamp(64px, 8vw, 96px);
  --fv-header-h: 64px;
  --fv-ease: 160ms ease;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--fv-header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fv-canvas);
  color: var(--fv-body);
  font: 400 1rem/1.55 var(--fv-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { color: var(--fv-ink); text-wrap: balance; }
h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 1.6rem + 3.8vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
h2 {
  font-weight: 800;
  font-size: clamp(2rem, 1.45rem + 2.2vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h3 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h4 { font-weight: 600; font-size: 1rem; line-height: 1.4; }
p { text-wrap: pretty; }
strong, b { color: var(--fv-ink); font-weight: 600; }

ul[class], ol[class],
.fv-header ul, .fv-footer ul { list-style: none; margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
code, kbd, samp, pre { font-family: var(--fv-mono); font-size: 0.9em; }
hr { border: 0; border-top: 1px solid var(--fv-hairline); margin: 0; }
[hidden] { display: none !important; }

a {
  color: var(--fv-ink);
  text-decoration: underline;
  text-decoration-color: var(--fv-hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color var(--fv-ease), color var(--fv-ease);
}
a:hover { text-decoration-color: currentColor; }

::selection { background: var(--fv-hairline-strong); color: var(--fv-ink); }

/* Focus ring: 2px yellow with offset, on everything focusable. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--fv-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.fv-skip {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--fv-radius-control);
  background: var(--fv-ink);
  color: var(--fv-canvas);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.fv-skip:focus-visible { transform: none; }

/* ---- layout ----------------------------------------------------------------- */
.fv-wrap {
  width: min(100% - 2 * var(--fv-gutter), var(--fv-max));
  margin-inline: auto;
}
.fv-section { padding-block: var(--fv-section); }
.fv-section--soft { background: var(--fv-surface-soft); }
.fv-section--rule { border-top: 1px solid var(--fv-hairline); }
.fv-section-head {
  display: grid;
  gap: 16px;
  max-width: 48rem;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.fv-lead {
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--fv-body);
  max-width: 40rem;
}
.fv-muted { color: var(--fv-muted); }
.fv-mono { font-family: var(--fv-mono); }

.fv-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .fv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1024px) {
  .fv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .fv-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fv-hero { padding-block: clamp(48px, 7vw, 96px) var(--fv-section); }
.fv-hero h1 { max-width: 15ch; }
.fv-hero .fv-lead { margin-top: 24px; }
.fv-hero-grid {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 1100px) {
  .fv-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 38rem); }
}

/* ---- header ----------------------------------------------------------------- */
.fv-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--fv-canvas);
  border-bottom: 1px solid var(--fv-hairline);
}
.fv-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: var(--fv-header-h);
}
.fv-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  text-decoration: none;
}
.fv-logo img { height: 22px; width: auto; }
.fv-header .fv-logo { min-height: var(--fv-header-h); } /* keeps the bar 64px when the open menu wraps below it */

.fv-nav { margin-right: auto; }
.fv-nav ul { display: flex; gap: 4px; }
.fv-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--fv-radius-control);
  color: var(--fv-body);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--fv-ease), background-color var(--fv-ease);
}
.fv-nav a:hover { color: var(--fv-ink); }
.fv-nav a[aria-current] { color: var(--fv-ink); background: var(--fv-surface-card); }

.fv-header-cta { min-height: 40px; }

/* The menu button exists only once nav.js has run (it sets .fv-menu-ready on
   the header); without it the links stay visible as a list. */
.fv-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--fv-radius-control);
  background: transparent;
  color: var(--fv-ink);
  cursor: pointer;
}
.fv-menu-icon,
.fv-menu-icon::before {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform var(--fv-ease);
}
.fv-menu-icon { position: relative; transform: translateY(-4px); }
.fv-menu-icon::before { content: ""; position: absolute; top: 8px; left: 0; }
.fv-menu-btn[aria-expanded="true"] .fv-menu-icon { transform: rotate(45deg); }
.fv-menu-btn[aria-expanded="true"] .fv-menu-icon::before { transform: translateY(-8px) rotate(-90deg); }

/* Below 900px the bar is the DOM order, no CSS `order` (focus order = visual
   order): logo, menu button, CTA; the open menu wraps below them and the CTA
   follows it. Without nav.js the list stays open and the bar is not sticky. */
@media (max-width: 899px) {
  .fv-header:not(.fv-menu-ready) { position: static; }
  .fv-logo img { height: 20px; }
  .fv-header-bar { gap: 8px 12px; }
  .fv-logo { margin-right: auto; }
  .fv-header-cta { padding-inline: 14px; }
  .fv-nav { flex: 1 0 100%; margin: 0; }
  .fv-nav ul { flex-direction: column; gap: 0; }
  .fv-nav li + li { border-top: 1px solid var(--fv-hairline); }
  .fv-nav a { padding: 14px 0; border-radius: 0; font-size: 1.125rem; }
  .fv-nav a[aria-current] { background: transparent; }
  .fv-nav + .fv-header-cta { margin-bottom: 16px; }
  .fv-menu-ready .fv-menu-btn { display: inline-flex; }
  .fv-menu-ready .fv-menu-btn[aria-expanded="false"] + .fv-nav { display: none; }
  .fv-menu-ready .fv-menu-btn[aria-expanded="false"] + .fv-nav + .fv-header-cta { margin-bottom: 0; }
}

/* ---- footer ----------------------------------------------------------------- */
.fv-footer {
  margin-top: auto;
  padding-block: 64px 32px;
  border-top: 1px solid var(--fv-hairline);
  color: var(--fv-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.fv-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .fv-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .fv-footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 2fr) minmax(0, 1.25fr); }
  .fv-footer-brand { grid-column: auto; }
}
.fv-footer-brand { display: grid; gap: 16px; align-content: start; }
.fv-footer-brand .fv-logo { justify-self: start; }
.fv-footer-brand .fv-logo img { height: 28px; }
.fv-footer-brand p { color: var(--fv-body); max-width: 22rem; font-size: 0.9375rem; }
.fv-footer-nav { display: grid; gap: 40px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fv-footer-title {
  margin-bottom: 14px;
  color: var(--fv-ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.fv-footer ul { display: grid; gap: 6px; }
.fv-footer a {
  color: var(--fv-muted);
  text-decoration: none;
  transition: color var(--fv-ease);
}
.fv-footer a:hover { color: var(--fv-ink); }
.fv-footer-mail li { display: grid; gap: 0; }
.fv-footer-mail a { color: var(--fv-body); font-family: var(--fv-mono); font-size: 0.8125rem; }
.fv-footer-mail li + li { margin-top: 8px; }
.fv-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--fv-hairline);
}
.fv-footer-base ul { display: flex; gap: 24px; }

/* ---- buttons ---------------------------------------------------------------- */
.fv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--fv-hairline-strong);
  border-radius: var(--fv-radius-control);
  background: var(--fv-surface-card);
  color: var(--fv-ink);
  font: 600 0.9375rem/1 var(--fv-sans);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--fv-ease), border-color var(--fv-ease), color var(--fv-ease);
}
.fv-btn:hover { background: var(--fv-surface-elevated); }
.fv-btn--primary {
  border-color: var(--fv-primary);
  background: var(--fv-primary);
  color: var(--fv-on-primary);
}
.fv-btn--primary:hover,
.fv-btn--primary:active { border-color: var(--fv-primary-active); background: var(--fv-primary-active); }
.fv-btn:disabled,
.fv-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
.fv-btn[aria-busy="true"] { cursor: progress; opacity: 0.8; }

/* ---- cards and tags --------------------------------------------------------- */
.fv-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--fv-hairline);
  border-radius: var(--fv-radius-card);
  background: var(--fv-surface-card);
  color: var(--fv-body);
}
a.fv-card {
  text-decoration: none;
  transition: border-color var(--fv-ease);
}
a.fv-card:hover { border-color: var(--fv-hairline-strong); }
.fv-card h3,
.fv-card-title { color: var(--fv-ink); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.fv-card-media {
  margin: calc(-1 * clamp(24px, 2.5vw, 32px)) calc(-1 * clamp(24px, 2.5vw, 32px)) 8px;
  border-bottom: 1px solid var(--fv-hairline);
  border-radius: var(--fv-radius-card) var(--fv-radius-card) 0 0;
  overflow: hidden;
}
.fv-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fv-card-foot { margin-top: auto; padding-top: 8px; }

.fv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fv-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--fv-hairline-strong);
  border-radius: var(--fv-radius-pill);
  color: var(--fv-body);
  font: 400 0.75rem/1.5 var(--fv-mono);
}

/* ---- stat tiles ------------------------------------------------------------- */
.fv-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 640px) { .fv-stats { gap: 12px; } }
.fv-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  border: 1px solid var(--fv-hairline);
  border-radius: var(--fv-radius-card);
  background: var(--fv-surface-card);
}
@media (min-width: 640px) { .fv-stat { padding: 20px 22px 22px; } }
.fv-stat-value {
  display: block;
  color: var(--fv-primary);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.fv-stat-label { color: var(--fv-muted); font-size: 0.8125rem; line-height: 1.35; }
@media (min-width: 640px) { .fv-stat-label { font-size: 0.875rem; } }

/* ---- terminal (the request form drawn as a terminal window) ----------------- */
.fv-term {
  border: 1px solid var(--fv-hairline);
  border-radius: var(--fv-radius-card);
  background: var(--fv-surface-card);
  color: var(--fv-body);
  font: 400 0.875rem/1.7 var(--fv-mono);
  overflow: hidden;
}
.fv-term-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--fv-hairline);
  background: var(--fv-surface-soft);
}
.fv-term-bar::before { /* three window dots, drawn */
  content: "";
  flex: none;
  width: 44px;
  height: 10px;
  background: radial-gradient(circle at 5px 5px, var(--fv-hairline-strong) 4.5px, transparent 5px) 0 0 / 17px 10px repeat-x;
}
.fv-term-title { color: var(--fv-muted); font-size: 0.75rem; line-height: 1; }
.fv-term-body { padding: clamp(18px, 2.5vw, 28px); }
.fv-term-line { /* every line is indented 2ch; the prompt hangs into it, so wrapped flags line up */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding-left: 2ch;
}
.fv-term-line + .fv-term-line { margin-top: 10px; }
.fv-term-prompt { margin-left: -2ch; color: var(--fv-primary); font-weight: 600; user-select: none; }
.fv-term-cmd { color: var(--fv-ink); font-weight: 600; }
.fv-term-arg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.fv-term-arg--wide { flex: 1 1 18rem; min-width: 0; }
.fv-term-flag { color: var(--fv-body); white-space: nowrap; cursor: pointer; }
.fv-term select,
.fv-term input[type="email"],
.fv-term input[type="text"] {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--fv-hairline-strong);
  border-radius: var(--fv-radius-control);
  background-color: var(--fv-canvas);
  color: var(--fv-ink);
  font: inherit;
  line-height: 1.4;
  transition: border-color var(--fv-ease);
}
.fv-term select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23888888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 10px 6px;
  cursor: pointer;
}
.fv-term-arg--wide input { flex: 1 1 12rem; min-width: 0; width: 100%; }
.fv-term select:hover,
.fv-term input:hover { border-color: var(--fv-muted); }
.fv-term select:focus-visible,
.fv-term input:focus-visible { border-color: var(--fv-primary); outline-offset: 2px; }
.fv-term input::placeholder { color: var(--fv-muted); opacity: 1; }
.fv-term [aria-invalid="true"] { border-color: var(--fv-error); }
.fv-term .fv-error { flex-basis: 100%; font-family: var(--fv-mono); }
.fv-term-status {
  display: block;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--fv-hairline-strong);
  color: var(--fv-body);
}
.fv-term-ok { color: var(--fv-success); }
.fv-term-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: var(--fv-primary);
  animation: fv-blink 1.1s steps(1, end) infinite;
}
@keyframes fv-blink { 50% { opacity: 0; } }
.fv-term-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 20px;
  font-family: var(--fv-sans);
}
.fv-term .fv-check { font-family: var(--fv-sans); }
.fv-term-comment { margin-bottom: 14px; color: var(--fv-muted); }
.fv-term-mark { color: var(--fv-muted); }
.fv-term-consent { display: grid; gap: 6px; margin-top: 20px; }
.fv-term-consent .fv-error { font-family: var(--fv-sans); padding-left: 32px; }
.fv-term .fv-captcha { margin-top: 16px; }
.fv-term .fv-status { margin-top: 16px; }
.fv-term .fv-status:focus-visible { outline: none; } /* focused by script to be read out; not in the tab order */
.fv-term-arg--wide .fv-term-flag { min-width: 7ch; } /* --email and --note inputs start in one column */
.fv-term .fv-note { margin-top: 16px; font-family: var(--fv-sans); }
.fv-btn-icon { flex: none; width: 16px; height: 16px; }
@media (max-width: 767px) {
  /* 16px keeps iOS from zooming into a focused field */
  .fv-term select,
  .fv-term input[type="email"],
  .fv-term input[type="text"] { font-size: 1rem; min-height: 44px; }
}

/* ---- forms ------------------------------------------------------------------ */
.fv-field { display: grid; gap: 8px; }
.fv-field + .fv-field { margin-top: 20px; }
.fv-field label,
.fv-label { color: var(--fv-ink); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.fv-field input,
.fv-field select,
.fv-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fv-hairline-strong);
  border-radius: var(--fv-radius-control);
  background-color: var(--fv-surface-card);
  color: var(--fv-ink);
  font: 400 1rem/1.5 var(--fv-sans);
  transition: border-color var(--fv-ease);
}
.fv-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23888888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
  cursor: pointer;
}
.fv-field textarea { min-height: 9.5rem; resize: vertical; }
.fv-field input::placeholder,
.fv-field textarea::placeholder { color: var(--fv-muted); opacity: 1; }
.fv-field input:hover,
.fv-field select:hover,
.fv-field textarea:hover { border-color: var(--fv-muted); }
.fv-field input:focus-visible,
.fv-field select:focus-visible,
.fv-field textarea:focus-visible { border-color: var(--fv-primary); outline-offset: 2px; }
.fv-field [aria-invalid="true"] { border-color: var(--fv-error); }
.fv-hint { color: var(--fv-muted); font-size: 0.8125rem; line-height: 1.45; }

.fv-error {
  color: var(--fv-error);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
}
.fv-error:empty { display: none; }

/* Consent and other checkboxes: monochrome, white when checked. */
.fv-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--fv-body);
  font-size: 0.875rem;
  line-height: 1.45;
}
.fv-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--fv-hairline-strong);
  border-radius: 4px;
  background: var(--fv-canvas) center / 12px 10px no-repeat;
  cursor: pointer;
}
.fv-check input:checked {
  border-color: var(--fv-ink);
  background-color: var(--fv-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230a0a0a' stroke-width='2'/%3E%3C/svg%3E");
}
.fv-check input[aria-invalid="true"] { border-color: var(--fv-error); }

/* Honeypot: off-screen, out of the tab order (tabindex="-1" in markup). */
.fv-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fv-captcha { min-height: 65px; }
/* Turnstile needs scripts; without them the <noscript> note takes its place. */
@media (scripting: none) { .fv-captcha { display: none; } }

/* Status region (aria-live). While empty it stays rendered, so it is in the
   accessibility tree before its first message, but takes no space. */
.fv-status {
  padding: 12px 16px;
  border: 1px solid var(--fv-hairline-strong);
  border-left-width: 3px;
  border-radius: var(--fv-radius-control);
  background: var(--fv-surface-soft);
  color: var(--fv-ink);
  font: 400 0.9375rem/1.5 var(--fv-sans);
}
.fv-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.fv-status[data-state="ok"] { border-color: var(--fv-hairline-strong); border-left-color: var(--fv-success); }
.fv-status[data-state="error"] { border-color: var(--fv-hairline-strong); border-left-color: var(--fv-error); }

.fv-note { color: var(--fv-muted); font-size: 0.875rem; line-height: 1.5; }

/* ---- tables (figures in mono) ---------------------------------------------- */
.fv-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.fv-table th,
.fv-table td {
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--fv-hairline);
  text-align: left;
  vertical-align: top;
}
.fv-table th { color: var(--fv-body); font-weight: 400; }
.fv-table thead th { color: var(--fv-muted); font-size: 0.8125rem; font-weight: 600; }
.fv-table td { color: var(--fv-ink); font-family: var(--fv-mono); font-size: 0.875rem; }

/* ---- CTA band (yellow) ------------------------------------------------------ */
.fv-band {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(32px, 6vw, 64px);
  border-radius: var(--fv-radius-card);
  background: var(--fv-primary);
  color: var(--fv-on-primary);
}
@media (min-width: 768px) {
  .fv-band { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
}
.fv-band h2 {
  max-width: 22ch;
  color: var(--fv-on-primary);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.035em;
}
.fv-band p { color: var(--fv-on-primary); }
.fv-band a:not(.fv-btn) { color: var(--fv-on-primary); text-decoration-color: currentColor; }
.fv-band :focus-visible { outline-color: var(--fv-on-primary); }
.fv-band .fv-btn {
  border-color: var(--fv-on-primary);
  background: var(--fv-on-primary);
  color: var(--fv-ink);
}
.fv-band .fv-btn:hover,
.fv-band .fv-btn:active { border-color: var(--fv-surface-elevated); background: var(--fv-surface-elevated); }

/* ---- FAQ (<details>) -------------------------------------------------------- */
.fv-faq { max-width: 56rem; border-top: 1px solid var(--fv-hairline); }
.fv-faq details { border-bottom: 1px solid var(--fv-hairline); }
.fv-faq summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  color: var(--fv-ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.fv-faq summary::-webkit-details-marker { display: none; }
.fv-faq summary::after { /* plus; minus when open */
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  transition: transform var(--fv-ease);
}
.fv-faq details[open] > summary::after {
  background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat;
  transform: rotate(180deg);
}
.fv-faq summary:hover { color: var(--fv-body); }
.fv-faq details > :not(summary) { max-width: 65ch; padding-bottom: 24px; color: var(--fv-body); }
.fv-faq details > :not(summary):not(:last-child) { padding-bottom: 12px; }

/* ---- labelled example block ------------------------------------------------- */
.fv-example {
  padding: clamp(24px, 3vw, 40px);
  border: 1px dashed var(--fv-hairline-strong);
  border-radius: var(--fv-radius-card);
}
.fv-example > * + * { margin-top: 12px; }
.fv-example-label {
  display: table;
  margin-bottom: 20px;
  padding: 5px 12px;
  border-radius: var(--fv-radius-pill);
  background: var(--fv-surface-elevated);
  color: var(--fv-ink);
  font: 600 0.75rem/1.4 var(--fv-sans);
  letter-spacing: 0.02em;
}

/* ---- home sections ---------------------------------------------------------- */
.fv-section--flush-top { padding-top: 0; }
.fv-section-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

.fv-hero .fv-hero-stats { margin-top: clamp(32px, 4vw, 48px); max-width: 40rem; }

/* Role cards: the whole card is the link; the stack sits at the foot. */
.fv-roles > li { display: flex; }
.fv-role { flex: 1; }
.fv-role p { color: var(--fv-body); }
.fv-role .fv-card-foot { margin-top: auto; } /* ul[class] resets margins with higher specificity */

/* How it works: five steps as a day timeline. Rows on small screens,
   five columns on a rule from 1024px. */
.fv-steps { display: grid; margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--fv-hairline); }
.fv-step {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 6px;
  padding-block: 20px;
  border-top: 1px solid var(--fv-hairline);
}
.fv-step > :not(.fv-step-day) { grid-column: 2; }
.fv-step-day { grid-row: 1 / span 2; color: var(--fv-ink); font: 600 0.875rem/1.6 var(--fv-mono); white-space: nowrap; }
.fv-step-title { font-size: 1.0625rem; }
.fv-step p:not(.fv-step-day) { color: var(--fv-body); font-size: 0.9375rem; }
@media (min-width: 1024px) {
  .fv-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; border-bottom: 0; }
  .fv-step {
    position: relative;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    row-gap: 10px;
    padding-block: 24px 0;
    border-top-color: var(--fv-hairline-strong);
  }
  .fv-step > :not(.fv-step-day) { grid-column: auto; }
  .fv-step-day { grid-row: auto; }
  .fv-step::before { /* a short white tick on the rule marks where each step begins */
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--fv-ink);
  }
}

/* Terms: two spec tables side by side from 1024px; on phones each row stacks.
   Stacking changes the rows' display, which some browsers (WebKit) take as a
   reason to drop table semantics, so the markup states the roles explicitly. */
.fv-spec { display: grid; gap: 40px; }
@media (min-width: 1024px) { .fv-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.fv-spec-table caption {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fv-hairline-strong);
  color: var(--fv-ink);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
}
.fv-spec-table th { width: 40%; }
.fv-spec-table td { padding-right: 0; }
@media (max-width: 639px) {
  .fv-spec-table tr { display: grid; padding-block: 12px; border-bottom: 1px solid var(--fv-hairline); }
  .fv-spec-table th,
  .fv-spec-table td { width: auto; padding: 0; border: 0; }
  .fv-spec-table th { padding-bottom: 4px; color: var(--fv-muted); font-size: 0.875rem; }
}

/* Security strip: four cells divided by hairlines. */
.fv-trust {
  display: grid;
  gap: 1px;
  border: 1px solid var(--fv-hairline);
  border-radius: var(--fv-radius-card);
  background: var(--fv-hairline);
  overflow: hidden;
}
@media (min-width: 640px) { .fv-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fv-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fv-trust > li { display: grid; gap: 8px; align-content: start; padding: clamp(20px, 2.5vw, 28px); background: var(--fv-surface-card); }
.fv-trust h3 { font-size: 1.125rem; }
.fv-trust p { color: var(--fv-body); font-size: 0.9375rem; }

/* Example month: four weeks in a grid inside the dashed example block. */
.fv-weeks { display: grid; gap: 28px; }
@media (min-width: 768px) { .fv-weeks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; } }
@media (min-width: 1200px) { .fv-weeks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fv-weeks > li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid var(--fv-hairline); }
.fv-weeks h3 { font-size: 1.0625rem; }
.fv-weeks p { color: var(--fv-body); font-size: 0.9375rem; }
.fv-weeks .fv-week-num { color: var(--fv-ink); font: 600 0.875rem/1.6 var(--fv-mono); }
.fv-example .fv-note { margin-top: 28px; }

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

/* role page hero image */
.fv-role-hero { margin-top: clamp(8px, 2vw, 24px); }
.fv-role-hero img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--fv-hairline); border-radius: var(--fv-radius-card); }
