/* ==========================================================================
   Always First Capital — components & layout
   Composed entirely from tokens.css. No raw hex below this line.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-6));
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

/* A `display` rule would otherwise beat the [hidden] attribute's own display:none. */
[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; }

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

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

::selection { background: var(--accent); color: var(--text-invert); }

/* ---- Layout primitives -------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--sp-24); }
.section--tight { padding-block: var(--sp-16); }
.section--surface { background: var(--surface); }

.section__head { max-width: 62ch; margin-inline: auto; text-align: center; margin-bottom: var(--sp-12); }
.section__head p { color: var(--text-muted); font-size: var(--fs-md); margin-top: var(--sp-4); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: var(--sp-4);
  transform: translateY(-400%);
  z-index: 100;
  background: var(--accent);
  color: var(--text-invert);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-medium);
  transition: transform var(--dur-base) var(--ease);
}
.skip-link:focus { transform: translateY(0); color: var(--text-invert); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--accent); color: var(--text-invert); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-hover); color: var(--text-invert); box-shadow: var(--shadow-md); }

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

.btn--on-ink { background: transparent; color: var(--on-ink); border-color: color-mix(in srgb, var(--on-ink) 45%, transparent); }
.btn--on-ink:hover { background: color-mix(in srgb, var(--on-ink) 12%, transparent); color: var(--on-ink); border-color: var(--on-ink); }

.btn[aria-disabled="true"], .btn:disabled { opacity: .5; pointer-events: none; }

/* ---- Header ------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--text);
  flex: 0 0 auto;
}
.brand__mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-base);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand__name span { display: block; font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: var(--sp-6); list-style: none; }
.nav__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-decoration: none;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.nav__link:hover { color: var(--text); border-bottom-color: var(--gold); }

.header__cta { flex: 0 0 auto; }
.nav__cta { display: none; }        /* desktop uses .header__cta instead */

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,
              color-mix(in srgb, var(--ink) 88%, transparent) 0%,
              color-mix(in srgb, var(--ink) 70%, transparent) 52%,
              color-mix(in srgb, var(--ink) 30%, transparent) 100%);
}
.hero .container { padding-block: var(--sp-24); }
.hero__copy { max-width: 44rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(2.25rem, 5vw, var(--fs-4xl)); }
.hero__lede {
  margin-top: var(--sp-6);
  font-size: var(--fs-md);
  color: var(--on-ink-muted);
  max-width: 58ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__licence {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-8);
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid color-mix(in srgb, var(--on-ink) 25%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--on-ink) 8%, transparent);
  font-size: var(--fs-sm);
  color: var(--on-ink-muted);
}
.hero__licence strong { color: var(--on-ink); font-weight: var(--fw-bold); }
.hero__licence-sep { opacity: .5; }
.hero__licence svg { flex: 0 0 auto; }

/* ---- Trust strip -------------------------------------------------------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  padding-block: var(--sp-12);
}
.trust__item { display: flex; gap: var(--sp-3); }
.trust__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold-ink); margin-top: 2px; }
.trust__item h3 { font-size: var(--fs-sm); letter-spacing: 0; }
.trust__item p { margin-top: var(--sp-1); font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }

/* ---- Loan cards --------------------------------------------------------- */
.loans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }

.loan-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease), transform var(--dur-base) var(--ease), border-color var(--dur-base) var(--ease);
}
.loan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--border-strong); }
.loan-card__media { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; }
.loan-card__body { padding: var(--sp-8); display: flex; flex-direction: column; flex: 1; }
.loan-card h3 { font-size: var(--fs-xl); }
.loan-card__tag {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.loan-card h4 {
  margin-top: var(--sp-6);
  font-size: var(--fs-xs);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.checklist { list-style: none; margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.checklist li {
  position: relative;
  padding-left: var(--sp-8);
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23123a63' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.checklist strong { color: var(--text); font-weight: var(--fw-medium); }
.loan-card .btn { margin-top: var(--sp-8); align-self: flex-start; }

/* ---- Quantum table ------------------------------------------------------ */
.quantum { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--sp-16); align-items: start; }
.quantum__note {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
caption { text-align: left; padding: var(--sp-4) var(--sp-6); font-weight: var(--fw-bold); font-family: var(--font-display); border-bottom: 1px solid var(--border); }
th, td { text-align: left; padding: var(--sp-4) var(--sp-6); border-bottom: 1px solid var(--border); }
thead th { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); background: var(--surface); }
tbody th { font-weight: var(--fw-medium); color: var(--text); }
td { color: var(--text-muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.row-group th {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Contact ------------------------------------------------------------ */
.contact { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--sp-12); align-items: start; }
.contact__list { margin: 0 0 var(--sp-8); display: grid; gap: var(--sp-6); }
.contact__list dt { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); font-family: var(--font-display); font-weight: var(--fw-bold); }
.contact__list dd { margin: var(--sp-1) 0 0; font-size: var(--fs-md); color: var(--text); }
.contact__list dd a { font-weight: var(--fw-medium); }
.contact__map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

/* ---- FAQ ---------------------------------------------------------------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-6) var(--sp-2);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.faq__q:hover { color: var(--accent); }
.faq__q[aria-expanded="true"] { color: var(--accent); }
.faq__icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--gold-ink); transition: transform var(--dur-base) var(--ease); }
.faq__q[aria-expanded="true"] .faq__icon { transform: rotate(45deg); }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-base) var(--ease); }
.faq__a[data-open="true"] { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p, .faq__a ul { color: var(--text-muted); font-size: var(--fs-sm); max-width: 68ch; }
.faq__a > div > *:first-child { padding-top: var(--sp-1); }
.faq__a > div > *:last-child { padding-bottom: var(--sp-8); }
.faq__a p + p, .faq__a p + ul, .faq__a ul + p { margin-top: var(--sp-4); }
.faq__a ul { list-style: none; display: grid; gap: var(--sp-3); }
.faq__a li { position: relative; padding-left: var(--sp-6); line-height: 1.6; }
.faq__a li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.faq__a .note {
  color: var(--text);
  background: var(--surface-2);
  border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-3) var(--sp-4);
}

/* ---- Callout band ------------------------------------------------------- */
.callout {
  background: var(--accent);
  color: var(--on-ink);
}
.callout__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-12);
  padding-block: var(--sp-16);
}
.callout h2 { font-size: var(--fs-2xl); }
.callout p { margin-top: var(--sp-3); color: var(--on-ink-muted); max-width: 52ch; }
.callout .btn--primary { background: var(--bg); color: var(--accent); }
.callout .btn--primary:hover { background: var(--surface); color: var(--accent-hover); }

/* ---- Footer ------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--on-ink-muted); }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding-block: var(--sp-12);
}
.footer .brand { color: var(--on-ink); }
.footer .brand__name span { color: var(--on-ink-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-6); list-style: none; }
.footer__links a { color: var(--on-ink-muted); font-size: var(--fs-sm); text-decoration: none; }
.footer__links a:hover { color: var(--on-ink); text-decoration: underline; }
.footer__legal {
  border-top: 1px solid color-mix(in srgb, var(--on-ink) 15%, transparent);
  padding-block: var(--sp-8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  line-height: 1.6;
}
.footer__legal p { max-width: 70ch; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 960px) {
  :root { --sp-24: 4rem; --sp-16: 3rem; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .quantum, .contact { grid-template-columns: 1fr; gap: var(--sp-8); }
  .loans { gap: var(--sp-6); }
  .callout__inner { flex-direction: column; align-items: flex-start; gap: var(--sp-6); }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: var(--sp-2) var(--gutter) var(--sp-6); }
  .nav__cta { display: block; }
  .nav__link { display: block; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
  .nav__link:hover { border-bottom-color: var(--border); }
  .nav__cta { margin-top: var(--sp-4); }
  .nav__cta .btn { width: 100%; }
  .loans { grid-template-columns: 1fr; }
  .hero .container { padding-block: var(--sp-16); }
}

@media (max-width: 560px) {
  :root { --gutter: var(--sp-4); }
  .trust__grid { grid-template-columns: 1fr; }
  .loan-card__body { padding: var(--sp-6); }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { flex: 1 1 auto; }
  /* Stack the licence badge instead of leaving a dangling separator. */
  .hero__licence { align-items: flex-start; flex-wrap: wrap; row-gap: var(--sp-1); }
  .hero__licence-sep { display: none; }
  .hero__licence strong { flex-basis: 100%; }
}

@media print {
  .header, .nav-toggle, .callout, .hero__actions { display: none; }
  .faq__a { grid-template-rows: 1fr; }
}

/* ---- Simple prose pages (terms, privacy) -------------------------------- */
.prose { max-width: 68ch; margin-inline: auto; }
.prose h1 { font-size: var(--fs-3xl); }
.prose h2 { font-size: var(--fs-lg); margin-top: var(--sp-12); }
.prose p, .prose li { color: var(--text-muted); font-size: var(--fs-base); }
.prose p { margin-top: var(--sp-4); }
.prose ul { margin-top: var(--sp-4); list-style: none; display: grid; gap: var(--sp-3); }
.prose li { position: relative; padding-left: var(--sp-6); }
.prose li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.prose__meta { color: var(--text-faint); font-size: var(--fs-sm); margin-top: var(--sp-4); }

/* ---- Enquiry form ------------------------------------------------------- */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
}
.field { margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.field--wide { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
}
.req { color: var(--gold-ink); }
.field__hint { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--text-faint); }
.field__count { align-self: flex-end; font-variant-numeric: tabular-nums; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
.field select {
  appearance: none;
  padding-right: var(--sp-12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352627a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 16px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input:disabled, .field select:disabled, .field textarea:disabled {
  background: var(--surface); color: var(--text-faint); cursor: not-allowed;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--danger);
}
.field__error::before {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  margin-top: 2px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* Error state is signalled by colour, an icon and text — never colour alone. */
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--danger); }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.field--check input {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field--check label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
  line-height: 1.5;
  cursor: pointer;
}
#e-consent { margin-top: var(--sp-2); }

/* Visible to bots reading the DOM, never to a person. */
.honeypot {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}
.form-card__note { font-size: var(--fs-xs); color: var(--text-faint); flex: 1 1 16rem; line-height: 1.5; }

.spinner { animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-strong);
  background: var(--surface);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.form-status--success { border-left-color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--bg)); color: var(--text); }
.form-status--error   { border-left-color: var(--danger);  background: color-mix(in srgb, var(--danger) 8%, var(--bg));  color: var(--text); }
.form-status strong { display: block; font-family: var(--font-display); }

@media (max-width: 960px) {
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-card { padding: var(--sp-6); }
  .field-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .form-card__actions .btn { width: 100%; }
}

/* ---- Legal pages -------------------------------------------------------- */
.prose h2 {
  font-size: var(--fs-lg);
  margin-top: var(--sp-12);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: var(--fs-base); margin-top: var(--sp-8); }
.prose ol { margin-top: var(--sp-4); padding-left: var(--sp-6); display: grid; gap: var(--sp-3); }
.prose ol li { padding-left: var(--sp-2); }
.prose ol li::before { content: none; }
.prose__updated {
  display: inline-block;
  margin-top: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.prose__toc {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  background: var(--surface);
  border-radius: var(--radius-lg);
}
.prose__toc h2 { font-size: var(--fs-sm); margin: 0 0 var(--sp-4); border: 0; padding: 0; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }
.prose__toc ol { columns: 2; column-gap: var(--sp-12); gap: 0; display: block; }
.prose__toc li { margin-bottom: var(--sp-2); padding-right: var(--sp-4); break-inside: avoid; }
.prose__callout {
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  border-left: 3px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose__callout p { margin-top: 0; color: var(--text); }
.prose__callout p + p { margin-top: var(--sp-3); }
@media (max-width: 640px) { .prose__toc ol { columns: 1; } }
