/* ==========================================================================
   Quantirac — site styles
   Ported from the Claude Design canvas (Quantirac.dc.html).
   Tokens first, then layout primitives, then components, then responsive.
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:          #FAF9F7;
  --surface:     #FFFFFF;
  --surface-alt: #F2F0EC;
  --surface-tint:#FBFAF8;

  /* Ink */
  --ink:      #14161A;
  --ink-2:    #22252A;
  --muted:    #4A4E55;
  --muted-2:  #5A5E66;
  --muted-3:  #6B6F76;
  --muted-4:  #73777E;   /* 4.50:1 on --surface — was #8A8E95 (3.29:1) */
  --muted-5:  #6F737A;   /* 4.53:1 on --bg — was #9A9DA3 (2.58:1) */

  /* Lines */
  --line:     #E3E1DC;
  --line-2:   #DDDAD4;
  --line-3:   #D8D5CE;
  --line-4:   #EFEDE8;

  /* Brand */
  --green:       #0E7A5F;
  --green-dark:  #0A5B47;
  --green-tint:  #E9F2EE;
  --green-tint-2:#E6EEEA;
  --green-line:  #C6DED4;

  /* Dark surfaces */
  --dark:        #101317;
  --dark-2:      #171B20;
  --dark-3:      #15181D;
  --dark-input:  #0E1114;
  --dark-line:   #23272D;
  --dark-line-2: #262B32;
  --dark-line-3: #2C323A;
  --dark-line-4: #1C2026;
  --dark-ink:    #F4F2EE;
  --dark-muted:  #A8ADB4;
  --dark-muted-2:#8B9098;
  --dark-muted-3:#7B818A;  /* 4.55:1 on --dark — was #6E747C (3.95:1) */
  --dark-muted-4:#7B818A;  /* was #565C64 (2.76:1) */

  /* Market direction */
  --up:   #5FBF9E;
  --up-2: #7BD3B4;
  --down: #E0755A;

  /* Type */
  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --wrap:   1180px;
  --gutter: 32px;
  --header-h: 68px;
  --radius: 3px;
  --radius-sm: 2px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--bg); }

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

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap--narrow { max-width: 900px; }
.wrap--legal  { max-width: 780px; }

.section { border-bottom: 1px solid var(--line); }
.section--alt  { background: var(--surface-alt); }
.section--dark { background: var(--dark); color: var(--dark-ink); border-bottom: 0; }
.section--flush { border-bottom: 0; }

.section__body { padding-top: 88px; padding-bottom: 88px; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.kicker--light { color: var(--up); }
.kicker--quiet { color: var(--muted-5); }

.split { display: grid; gap: 64px; align-items: start; }
.split--hero    { grid-template-columns: 1fr 470px; gap: 72px; }
.split--markets { grid-template-columns: 0.9fr 1.1fr; }
.split--steps   { grid-template-columns: 0.8fr 1.2fr; }
.split--derisk  { grid-template-columns: 0.85fr 1.15fr; }
.split--faq     { grid-template-columns: 0.7fr 1.3fr; }
.split--cta     { grid-template-columns: 1fr 470px; gap: 72px; align-items: center; }
.split--contact { grid-template-columns: 1fr 1.1fr; gap: 80px; }

.sticky-col { position: sticky; top: 100px; }

/* Hairline grids — 1px gap over a line-coloured background */
.grid-cells {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-cells > * { background: var(--bg); }

.stack-cells {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.stack-cells > * { background: var(--surface-alt); }

/* --------------------------------------------------------------------------
   Typography scale
   -------------------------------------------------------------------------- */

.h-hero {
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 24px;
}
.h-page {
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 28px;
  max-width: 16em;
}
.h-section {
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0;
}
.h-section--sm { font-size: 40px; line-height: 1.08; }
.h-section--xs { font-size: 38px; }
.h-card {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.h-sub {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 30em;
}
.lede--lg { font-size: 20px; max-width: 38em; margin-bottom: 48px; }

.body-copy {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-2);
  margin: 0 0 28px;
}
.body-copy--lg { font-size: 17px; color: var(--muted); }
.body-copy--tight { margin-bottom: 20px; }

.intro-copy {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.mono-note { font-family: var(--mono); font-size: 12px; color: var(--muted-3); }
.mono-note--faint { font-size: 11px; color: var(--muted-5); }

.measure-sm { max-width: 34em; }
.measure-md { max-width: 36em; }
.measure-lg { max-width: 38em; }

.mb-52 { margin-bottom: 52px; }
.mb-56 { margin-bottom: 56px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--green); color: var(--bg); }
.btn--mint { background: var(--up); color: var(--dark-input); }
.btn--mint:hover { background: var(--up-2); color: var(--dark-input); }
.btn--block { display: block; width: 100%; padding: 15px; }
.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--wide { padding-left: 30px; padding-right: 30px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.link-quiet { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

/* Anchor targets must clear the 69px sticky header. #register already had
   this via .form-card; the footer's #markets and #get-started did not. */
.section[id] { scroll-margin-top: 92px; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 15px; height: 15px;
  background: var(--green);
  transform: rotate(45deg);
  flex: none;
}
.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }

.nav { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav__link { font-size: 14px; font-weight: 500; color: var(--muted); }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: currentColor; }
.nav-toggle__bar + .nav-toggle__bar { margin-top: 4px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero__body { padding: 96px var(--gutter) 80px; }

.steps-inline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-left: 2px solid var(--line-2);
  padding: 0 0 0 22px;
  margin: 0 0 36px;
  max-width: 30em;
  list-style: none;
}
.steps-inline li { display: flex; gap: 14px; align-items: baseline; }
.steps-inline .num { font-family: var(--mono); font-size: 12px; color: var(--green); flex: none; }
.steps-inline .txt { font-size: 16px; color: var(--ink-2); }
.steps-inline strong { font-weight: 600; }

.trust-row {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-3);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 92px;
}
.form-card__head {
  padding: 20px 30px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-tint);
}
.form-card__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; }
.form-card__sub { font-size: 14px; color: var(--muted-3); margin: 0; }
.form-card__body { padding: 28px 30px 30px; }

.field { margin-bottom: 16px; }
.field--last { margin-bottom: 22px; }

.field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 7px;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  /* A white field on a white card was a 1.47:1 boundary — below the 3:1 that
     WCAG 1.4.11 requires to identify a component, and near-invisible on a
     phone in daylight. A tinted fill carries the affordance, not the border. */
  background: var(--surface-tint);
  border: 1px solid var(--line-3);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 12px;
  outline: none;
  transition: border-color 120ms ease;
}
.field__textarea { resize: vertical; }
.field__input:focus,
.field__select:focus,
.field__textarea:focus { border-color: var(--green); }
.field__input[aria-invalid="true"] { border-color: var(--down); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.field-row .field { margin-bottom: 0; }

/* Inline per-field validation message */
.field__msg {
  display: none;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 7px;
}
.field__msg[data-state="checking"] { display: block; color: var(--muted-3); }
.field__msg[data-state="ok"]       { display: block; color: var(--green); }
.field__msg[data-state="warn"]     { display: block; color: #A8621F; }
.field__msg[data-state="error"]    { display: block; color: #B4432B; }

.field__msg button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Honeypot — off-screen for people, inviting to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { font-size: 12px; line-height: 1.5; color: var(--muted-4); margin: 14px 0 0; }
.form-note a { text-decoration: underline; text-underline-offset: 2px; }

.form-status { display: none; margin-top: 14px; }
.form-status[data-state="ok"] {
  display: block;
  background: var(--green-tint);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--green-dark);
}
.form-status[data-state="error"] {
  display: block;
  background: #FBEDE9;
  border: 1px solid #F0CFC5;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #8F3520;
}

.turnstile-slot:not(:empty) { margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker { overflow: hidden; border-bottom: 1px solid var(--dark-line); }
.ticker__track {
  display: flex;
  width: max-content;
}
/* Animation starts only once JS has cloned the strip, so the -50% loop
   always lands on an identical frame. Without JS the strip sits still. */
.ticker__track[data-cloned="true"] { animation: qtick 42s linear infinite; }
.ticker__item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 26px;
  border-right: 1px solid var(--dark-line);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.ticker__sym   { color: var(--dark-ink); }
.ticker__price { color: var(--dark-muted-2); }
.ticker__chg--up   { color: var(--up); }
.ticker__chg--down { color: var(--down); }

@keyframes qtick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Market table
   -------------------------------------------------------------------------- */

.market-table {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.market-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  padding: 15px 20px;
  border-bottom: 1px solid var(--dark-line-4);
  align-items: baseline;
}
.market-row--head {
  padding: 12px 20px;
  border-bottom: 1px solid var(--dark-line);
  background: var(--dark-3);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark-muted-3);
}
.market-row__pair { display: flex; align-items: baseline; gap: 9px; }
.market-row__sym  { font-size: 14px; font-weight: 600; }
.market-row__name { font-size: 12px; color: var(--dark-muted-3); }
.market-row__num { text-align: right; font-family: var(--mono); font-size: 13px; }
.market-row__num--vol  { color: var(--dark-muted-2); }
.market-row__num--up   { color: var(--up); }
.market-row__num--down { color: var(--down); }
.market-table__foot {
  /* Hydrated text runs longer than the shipped string, so without a reserve
     this collapses ~13px a second after load and on every 60s repoll. */
  line-height: 1.5;
  min-height: calc(5 * 1.5em + 24px);
  padding: 12px 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dark-muted-3);
}

/* --------------------------------------------------------------------------
   Content cells
   -------------------------------------------------------------------------- */

.benefit { padding: 34px 30px 38px; }
.benefit__no { font-family: var(--mono); font-size: 11px; color: var(--green); margin-bottom: 22px; }
.benefit__body { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.step {
  padding: 30px 4px 32px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: start;
}
.step--tight { padding: 28px 4px 30px; grid-template-columns: 56px 1fr; gap: 18px; }
.step__no { font-family: var(--mono); font-size: 13px; color: var(--green); padding-top: 4px; }
.step__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; }
.step--tight .step__title { font-size: 19px; margin-bottom: 9px; }
.step__body { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; max-width: 38em; }

.asset { padding: 32px 30px 36px; }
.asset__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.asset__sym { font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--ink); }
.asset__name { font-size: 14px; color: var(--muted-3); }
.asset__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.asset__body { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.banner-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.banner-cta__text { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.banner-cta .btn { padding: 14px 26px; white-space: nowrap; }

.center-cta { margin-top: 40px; text-align: center; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials { overflow: hidden; }
.testimonials__head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 88px var(--gutter) 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.marquee { padding-bottom: 48px; }
.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 var(--gutter);
}
.marquee__track[data-cloned="true"] { animation: qscroll 70s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes qscroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.quote {
  margin: 0;
  width: 372px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
.quote__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line-4);
  padding-top: 20px;
}
.quote__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-tint-2);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  flex: none;
}
.quote__name { font-size: 14px; font-weight: 600; }
.quote__role { font-size: 13px; color: var(--muted-3); }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.faq__mark { font-family: var(--mono); font-size: 16px; color: var(--green); line-height: 1; flex: none; }
/* Driven by [open], so nothing has to keep the marker in sync with the panel
   — which is exactly what used to depend on JavaScript. */
.faq__mark::after { content: "+"; }
.faq[open] .faq__mark::after { content: "–"; }
.faq__a p {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
  margin: 0;
  padding: 0 60px 26px 0;
  max-width: 44em;
}

/* --------------------------------------------------------------------------
   Dark sections
   -------------------------------------------------------------------------- */

.section--dark .h-section { color: var(--dark-ink); }
.section--dark .body-copy,
.section--dark .lede,
.section--dark .intro-copy { color: var(--dark-muted); }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.about__body { padding: 88px var(--gutter) 104px; }
.value { padding: 30px 26px; }
.value h3 { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.value p { font-size: 15px; line-height: 1.6; color: var(--muted-2); margin: 0; }

.placeholder-box {
  border: 1px dashed #C9C6BF;
  background: repeating-linear-gradient(135deg, #F4F2EE, #F4F2EE 8px, #EDEAE4 8px, #EDEAE4 16px);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #7A7E85;
}

/* --------------------------------------------------------------------------
   Login page
   -------------------------------------------------------------------------- */

.login { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.login__form { display: flex; align-items: center; justify-content: center; padding: 64px var(--gutter); }
.login__inner { width: 100%; max-width: 380px; }
.login__title { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 8px; }
.login__sub { font-size: 15px; color: var(--muted-3); margin: 0 0 32px; }
.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.login__check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.login__foot { font-size: 14px; color: var(--muted-3); margin: 24px 0 0; text-align: center; }
.login__aside {
  background: var(--dark);
  color: var(--dark-ink);
  display: flex;
  align-items: center;
  padding: 64px 56px;
}
.login__aside-inner { max-width: 30em; }
.login__aside h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 18px;
}
.login__aside p { font-size: 16px; line-height: 1.6; color: var(--dark-muted); margin: 0 0 28px; }
.security-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dark-muted-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */

.contact__body { padding: 88px var(--gutter) 104px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.contact-details dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-5);
  margin-bottom: 6px;
}
.contact-details dd { font-size: 16px; margin: 0; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal__body { padding: 88px var(--gutter) 104px; }
.legal__title {
  font-size: 42px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 12px;
}
.legal__meta { font-family: var(--mono); font-size: 12px; color: var(--muted-5); margin: 0 0 48px; }
.legal-section { margin-bottom: 34px; }
.legal-section h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; }
.legal-section p { font-size: 16px; line-height: 1.68; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--dark); color: var(--dark-muted); border-top: 1px solid var(--dark-line); }
.footer__cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--dark-ink);
}
.footer__brand:hover { color: var(--dark-ink); }
.footer__mark { width: 13px; height: 13px; background: var(--up); transform: rotate(45deg); flex: none; }
.footer__name { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.footer__blurb { font-size: 14px; line-height: 1.6; margin: 0; max-width: 26em; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted-3);
  margin-bottom: 3px;
}
.footer__col a { font-size: 14px; color: var(--dark-muted); }
.footer__col a:hover { color: var(--dark-ink); }
.footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 44px; }
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: var(--dark-muted-3);
  margin: 0 0 18px;
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
}
.footer__copy { font-family: var(--mono); font-size: 11px; color: var(--dark-muted-4); }

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound { padding: 120px var(--gutter); text-align: center; }
.notfound__code {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}
.notfound .lede { margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .h-hero    { font-size: 52px; }
  .h-page    { font-size: 44px; }
  .h-section { font-size: 36px; }
  .h-section--sm, .h-section--xs { font-size: 34px; }

  .split--hero,
  .split--markets,
  .split--steps,
  .split--derisk,
  .split--faq,
  .split--cta,
  .split--contact {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .sticky-col { position: static; }

  /* Once these grids collapse to one column the form would otherwise
     stretch the full content width — a 900px+ registration card on a
     tablet. This cap was lost when dead CSS was removed by line range. */
  .split--hero .form-card,
  .split--cta .form-card,
  .split--contact .form-card {
    max-width: 470px;
    margin-inline: auto;
  }
}

@media (max-width: 900px) {
  .grid-cells { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .login { grid-template-columns: 1fr; min-height: 0; }
  .login__aside { padding: 56px var(--gutter); }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: block; }
  .header__inner { gap: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 16px; }

  .h-hero    { font-size: 38px; }
  .h-page    { font-size: 34px; }
  .h-section { font-size: 30px; }
  .h-section--sm, .h-section--xs { font-size: 28px; }
  .h-sub { font-size: 24px; }
  .legal__title { font-size: 32px; }
  .login__title { font-size: 30px; }
  .lede { font-size: 17px; }
  .lede--lg { font-size: 18px; }

  .hero__body { padding: 56px var(--gutter); }
  .section__body { padding-top: 56px; padding-bottom: 56px; }
  .about__body, .contact__body, .legal__body { padding: 56px var(--gutter) 72px; }
  .testimonials__head { padding: 56px var(--gutter) 32px; }
  .notfound { padding: 72px var(--gutter); }

  .grid-cells { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .field-row .field { margin-bottom: 16px; }

  .form-card__head { padding: 18px 20px; }
  .form-card__body { padding: 22px 20px 24px; }
  .contact-form { padding: 24px 20px; }

  .market-row, .market-row--head { grid-template-columns: 1.3fr 1fr 0.8fr; padding-left: 14px; padding-right: 14px; }
  .market-row > :nth-child(4), .market-row--head > :nth-child(4) { display: none; }
  .market-row__name { display: none; }

  .quote { width: 300px; padding: 26px 22px; }
  .faq__q { font-size: 16px; }
  .faq__a p { padding-right: 0; }
  .banner-cta { flex-direction: column; align-items: flex-start; }
  .banner-cta .btn { width: 100%; }
  .trust-row { gap: 16px; }
  .step, .step--tight { grid-template-columns: 1fr; gap: 10px; }
}

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

@media print {
  .header, .footer, .ticker, .marquee, .form-card { display: none; }
}

/* --------------------------------------------------------------------------
   Country field
   -------------------------------------------------------------------------- */

/* The country picker is a full-width row of its own rather than a narrow box
   wedged beside the number. It used to be a 92px cell showing a bare "+27",
   which asked the visitor to know their dial code by heart and scan a column
   of 64 unlabelled numbers to find it. It now carries flag, country name and
   code, which does not fit in 92px and should not have to. */
.field__select--country {
  /* The flag glyphs sit on the emoji font; the rest stays on the UI stack. */
  font-family: var(--sans), "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  /* Long names ("Vereinigtes Konigreich +44") must not push the closed
     control wider than its card. */
  text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */

.breadcrumb { margin: 0 0 24px; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-5);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-2);
}
.breadcrumb a { color: var(--muted-3); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* --------------------------------------------------------------------------
   Long-form content
   -------------------------------------------------------------------------- */

.prose { margin-bottom: 48px; }
.prose:last-child { margin-bottom: 0; }
.prose p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 40em;
}
.prose p:last-child { margin-bottom: 0; }
.prose .h-sub { margin-top: 0; }

.prose-list {
  margin: 0 0 32px;
  padding-left: 22px;
  max-width: 40em;
}
.prose-list li {
  font-size: 16px;
  line-height: 1.68;
  color: var(--muted);
  margin-bottom: 10px;
  padding-left: 4px;
}
.prose-list li::marker { color: var(--green); }

/* Inline links inside body copy need to read as links, not as decoration. */
.prose a,
.prose-list a,
.body-copy a,
.step__body a,
.value p a,
.banner-cta__text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover,
.prose-list a:hover,
.body-copy a:hover,
.step__body a:hover,
.value p a:hover,
.banner-cta__text a:hover { color: var(--green-dark); }

.login .breadcrumb { margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Footer language links

   Plain anchors, not a <select> — they work with JavaScript disabled and give
   every locale a crawlable inbound link.
   -------------------------------------------------------------------------- */

.lang-links {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
}
.lang-links__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-muted-3);
}
.lang-links__list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.lang-links__link {
  font-size: 14px;
  color: var(--dark-muted);
  /* 44px minimum touch target, extended without visual bulk. */
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
}
.lang-links__link:hover { color: var(--dark-ink); background: var(--dark-2); }
.lang-links__link--current {
  color: var(--dark-ink);
  background: var(--dark-2);
  cursor: default;
}

/* --------------------------------------------------------------------------
   Mobile conversion fixes

   From the specialist review: iOS zooms the viewport whenever a focused input
   is under 16px and never zooms back out, which on a four-field form means the
   visitor fights the layout at exactly the moment they are converting.
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .field__input,
  .field__select,
  .field__textarea {
    font-size: 16px;
    min-height: 48px;
  }

  /* Every interactive control clears the 44x44 guideline. */
  .nav-toggle { padding: 12px 13px; min-width: 44px; min-height: 44px; }
  .faq__q { padding-top: 18px; padding-bottom: 18px; min-height: 56px; }
  .btn { min-height: 48px; }
  .login__check input[type="checkbox"] { width: 20px; height: 20px; }
}

/* A register CTA inside the first viewport on a phone. The header button sits
   inside the collapsed nav, so on mobile there was no visible call to action
   above the fold at all. */
.hero-cta-mobile { display: none; }

@media (max-width: 760px) {
  .hero-cta-mobile { display: block; margin: 0 0 28px; }
  .hero-cta-mobile .btn { width: 100%; }
  .split--hero { gap: 32px; }
  .lang-links { padding-bottom: 4px; }
}

/* --------------------------------------------------------------------------
   Company identity (footer)

   Legal name, registered office, company number and regulatory status. This is
   an <address> element, so it is deliberately not italicised.
   -------------------------------------------------------------------------- */

.company {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
  margin-bottom: 18px;
}
.company__name { font-weight: 600; color: var(--dark-ink); }

/* The disclaimer sits directly below and already has its own rule; drop its
   duplicate border so the two blocks read as one legal footer. */
.company + .footer__disclaimer { border-top: 0; padding-top: 0; }

/* --------------------------------------------------------------------------
   Footer navigation touch targets

   Below 760px the header nav is hidden, so these eight links ARE the site
   navigation — and they were 15px tall with an 11px gap. Highest
   accidental-tap risk on the site. Same technique as .lang-links__link:
   a 44px hit box with no added visual bulk.
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
  .footer__col { gap: 2px; }
  .footer__col a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .lang-links__list { gap: 8px; }

  /* The home link in the sticky header was 109x21. */
  .brand { min-height: 44px; }
}
