/* ==========================================================================
   Trutera Trade — site styles
   Ported from the Claude Design canvas (.design-src/Trutera Trade.dc.html).

   Tokens first, then the section-context layer, then layout primitives,
   components, and responsive rules.

   Polarity note: unlike most marketing sites this one is dark-first. The page
   base is near-black, and cream/sand sections are the exception. Rather than
   giving every component a light and a dark modifier, each section sets a
   small set of contextual variables (--cell, --fg, --fg-muted, --rule,
   --accent, --btn-*) and the components read those. A component therefore
   renders correctly on any of the three grounds without knowing which it is on.
   ========================================================================== */

:root {
  /* --- Raw palette: dark ground --------------------------------------- */
  --d-bg:       #14120E;  /* page base */
  --d-bg-2:     #100E0B;  /* ticker strip */
  --d-panel:    #1C1913;  /* raised panel (closing CTA) */
  --d-input:    #110F0C;
  --d-line:     #2E2A21;
  --d-line-2:   #241F19;
  --d-line-3:   #38322A;

  --d-fg:       #F5F1E8;
  --d-fg-hi:    #F7F3EA;
  --d-fg-2:     #E8E2D5;
  --d-fg-3:     #CFC8BA;
  --d-muted:    #A8A093;
  --d-muted-2:  #8F8878;
  --d-muted-3:  #7E7768;
  --d-muted-4:  #5E5850;

  /* --- Raw palette: cream ground -------------------------------------- */
  --c-bg:       #F5F1E8;  /* cream section */
  --c-bg-2:     #EBE5D8;  /* sand section */
  --c-cell:     #FFFDF8;  /* card on cream */
  --c-input:    #F9F6EF;
  --c-line:     #DDD5C4;
  --c-line-2:   #D3CAB6;
  --c-line-3:   #EBE4D5;

  --c-fg:       #1A1712;
  --c-muted:    #5B5548;
  --c-muted-2:  #6B6455;
  --c-muted-3:  #8A8272;
  --c-muted-4:  #9A9282;

  /* --- Brand ---------------------------------------------------------- */
  --gold:       #C08A2E;  /* accent on dark */
  --gold-hi:    #D9A244;
  --gold-dk:    #9A6E1E;  /* accent on cream — meets 4.5:1 on #F5F1E8 */
  --gold-dk-2:  #7A5511;
  --gold-line:  #DCC79C;
  --gold-tint:  #F6EBD6;
  --gold-tint-d:#241D10;

  /* --- Market direction ----------------------------------------------- */
  --up:      #8FB35F;
  --down:    #CE7052;
  --up-l:    #5C7A33;
  --down-l:  #A84E31;

  /* --- Type ----------------------------------------------------------- */
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans:  "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono:  "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- Metrics -------------------------------------------------------- */
  --wrap:     1200px;
  --gutter:   32px;
  --header-h: 72px;
  --ticker-h: 44px;
  --chrome-h: 116px;  /* header + ticker */
  --radius:    0px;   /* the design is uniformly square-cornered */
  --radius-sm: 0px;
}

/* --------------------------------------------------------------------------
   Section context

   Every ground defines the same variable names. Components below reference
   only these, never the raw palette, so they stay correct wherever they land.
   -------------------------------------------------------------------------- */

:root,
.ctx-dark {
  --ground:     var(--d-bg);
  --cell:       var(--d-bg);
  --cell-tint:  var(--d-panel);
  --input-bg:   var(--d-input);
  --fg:         var(--d-fg);
  --fg-hi:      var(--d-fg-hi);
  --fg-body:    var(--d-fg-3);
  --fg-muted:   var(--d-muted);
  --fg-faint:   var(--d-muted-3);
  --fg-faintest:var(--d-muted-4);
  --rule:       var(--d-line);
  --rule-soft:  var(--d-line-2);
  --rule-input: var(--d-line-3);
  --accent:     var(--gold);
  --accent-hi:  var(--gold-hi);
  --accent-line:var(--gold-line);
  --dir-up:     var(--up);
  --dir-down:   var(--down);

  /* On a dark ground the primary button is gold. */
  --btn-bg:       var(--gold);
  --btn-fg:       var(--d-bg);
  --btn-bg-hover: var(--gold-hi);
  --btn-fg-hover: var(--d-bg);
}

/* Cream ground. Applies to whole sections and to the cream islands that sit on
   the dark ground — the hero form card and the login panel — so their labels,
   inputs and buttons pick up light-ground colours too. */
.ctx-cream,
.section--light,
.section--sand,
.form-card,
.login__form {
  --ground:     var(--c-bg);
  --cell:       var(--c-cell);
  --cell-tint:  var(--c-bg);
  --input-bg:   var(--c-input);
  --fg:         var(--c-fg);
  --fg-hi:      var(--c-fg);
  --fg-body:    var(--c-muted);
  --fg-muted:   var(--c-muted);
  --fg-faint:   var(--c-muted-3);
  --fg-faintest:var(--c-muted-4);
  --rule:       var(--c-line);
  --rule-soft:  var(--c-line-3);
  --rule-input: var(--c-line-2);
  --accent:     var(--gold-dk);
  --accent-hi:  var(--gold-dk-2);
  --accent-line:var(--gold-line);
  --dir-up:     var(--up-l);
  --dir-down:   var(--down-l);

  /* On cream the primary button is near-black, going gold on hover. */
  --btn-bg:       var(--d-bg);
  --btn-fg:       var(--d-fg);
  --btn-bg-hover: var(--gold);
  --btn-fg-hover: var(--d-bg);
}

/* Sand is cream with a deeper ground; cells lift to plain cream. */
.ctx-sand,
.section--sand {
  --ground: var(--c-bg-2);
  --cell:   var(--c-bg);
  --rule:   var(--c-line-2);
}

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

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

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

h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 400; }
p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--d-bg); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--gold);
  color: var(--d-bg);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus { left: 0; color: var(--d-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; background: var(--d-bg); }
.main { flex: 1; }

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

/* Sections carry their own ground and context. */
.section { background: var(--ground); color: var(--fg); }
.section--light { background: var(--ground); color: var(--fg); }
.section--sand  { background: var(--ground); color: var(--fg); }
.section--top-rule { border-top: 1px solid var(--d-line); }

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

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.kicker--quiet { color: var(--fg-faintest); }

.split { display: grid; gap: 68px; align-items: start; }
.split--hero    { grid-template-columns: 1fr 460px; gap: 76px; }
.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 460px; gap: 76px; align-items: center; }
.split--contact { grid-template-columns: 1fr 1.1fr; gap: 84px; }

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

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

/* Rule-separated rows sitting directly on the section ground. */
.stack-cells { border-top: 1px solid var(--rule); }
.stack-cells > * { border-bottom: 1px solid var(--rule); }

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

.h-hero {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1.0;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 26px;
  color: var(--fg-hi);
}
.h-page {
  font-family: var(--serif);
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 30px;
  max-width: 16em;
  color: var(--fg-hi);
}
.h-section {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.03;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: var(--fg-hi);
}
.h-section--sm { font-size: 46px; line-height: 1.05; }
.h-section--xs { font-size: 44px; line-height: 1.05; }
.h-card {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--fg);
}
.h-sub {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--fg-hi);
}

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

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

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

.mono-note { font-family: var(--mono); font-size: 12px; color: var(--fg-faint); }
.mono-note--faint { font-size: 11px; color: var(--fg-faintest); }

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

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

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

   One primary button whose colours come from the section context, so it flips
   automatically between gold-on-dark and near-black-on-cream.
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  padding: 16px 30px;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover); }
.btn--block { display: block; width: 100%; padding: 16px; }
.btn--sm { font-size: 14px; padding: 11px 20px; }
.btn--wide { padding-left: 32px; padding-right: 32px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

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

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

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 18, 14, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--d-line);
  color: var(--d-fg);
}
.header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Wordmark: a small outlined square holding a solid gold pip. */
.brand { display: flex; align-items: center; gap: 11px; color: var(--d-fg); }
.brand:hover { color: var(--d-fg); }
.brand__mark {
  width: 26px; height: 26px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand__mark::after { content: ""; width: 8px; height: 8px; background: var(--gold); }
.brand__name {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.brand__name em { font-style: normal; color: var(--gold); }

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

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

/* --------------------------------------------------------------------------
   Ticker — site-wide, directly beneath the header
   -------------------------------------------------------------------------- */

.ticker {
  overflow: hidden;
  background: var(--d-bg-2);
  border-bottom: 1px solid var(--d-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 simply sits still. */
.ticker__track[data-cloned="true"] { animation: ttick 46s linear infinite; }
.ticker__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 26px;
  border-right: 1px solid var(--d-line-2);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.ticker__sym   { color: var(--d-fg-2); }
.ticker__price { color: var(--d-muted-3); }
.ticker__chg--up   { color: var(--up); }
.ticker__chg--down { color: var(--down); }

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

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

.hero__body { padding: 92px var(--gutter) 88px; }

/* Numbered rule-separated list under the hero lede. */
.steps-inline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
  margin: 0 0 36px;
  padding: 0;
  max-width: 32em;
  list-style: none;
}
.steps-inline li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.steps-inline .num { font-family: var(--mono); font-size: 12px; color: var(--accent); flex: none; }
.steps-inline .txt { font-size: 16px; color: var(--fg-body); }
.steps-inline strong { font-weight: 500; color: var(--fg); }

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

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

/* The hero form card is a cream island on the dark ground, so it carries the
   cream context rather than inheriting the section's. */
.form-card {
  /* The design fills the hero card's inputs with the card white rather than
     the slightly warmer tone the contact form uses. */
  --input-bg: var(--c-cell);
  background: var(--ground);
  color: var(--fg);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 100px;
}
.form-card__head {
  padding: 22px 30px;
  border-bottom: 1px solid var(--rule);
}
.form-card__title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 3px;
  color: var(--c-fg);
}
.form-card__sub { font-size: 14px; color: var(--fg-muted); margin: 0; }
.form-card__body { padding: 28px 30px 30px; }

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

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--rule-input);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg);
  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(--gold); }
.field__input[aria-invalid="true"] { border-color: var(--dir-down); }
.field__input::placeholder { color: var(--fg-faintest); }

.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(--fg-faint); }
.field__msg[data-state="ok"]       { display: block; color: var(--dir-up); }
.field__msg[data-state="warn"]     { display: block; color: var(--gold-dk-2); }
.field__msg[data-state="error"]    { display: block; color: var(--dir-down); }

.field__msg button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent);
  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.55; color: var(--fg-faint); margin: 16px 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(--gold-tint);
  border-left: 2px solid var(--gold);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #6B4E13;
}
.form-status[data-state="error"] {
  display: block;
  background: #F7E4DE;
  border-left: 2px solid var(--down-l);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #8F3520;
}

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

/* Dark form variant — the closing CTA panel. */
.form-dark .form-status[data-state="ok"] {
  background: var(--gold-tint-d);
  border-left-color: var(--gold);
  color: #DFC28A;
}
.form-dark .form-status[data-state="error"] {
  background: #2A1A16;
  border-left-color: var(--down);
  color: var(--down);
}

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

.market-table {
  border: 1px solid var(--rule);
  background: var(--cell);
  border-radius: var(--radius);
  overflow: hidden;
}
.market-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr 1fr;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule-soft);
  align-items: baseline;
}
.market-row--head {
  padding: 13px 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.market-row__pair { display: flex; align-items: baseline; gap: 10px; }
.market-row__sym  { font-size: 14px; font-weight: 500; }
.market-row__name { font-size: 12px; color: var(--fg-faint); }
.market-row__num { text-align: right; font-family: var(--mono); font-size: 13px; }
.market-row__num--vol  { color: var(--fg-faint); }
.market-row__num--up   { color: var(--dir-up); }
.market-row__num--down { color: var(--dir-down); }
.market-table__foot {
  padding: 13px 22px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--fg-faintest);
  margin: 0;
}

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

.benefit { padding: 36px 32px 40px; }
.benefit__no { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 24px; }
.benefit__body { font-size: 15px; line-height: 1.65; color: var(--fg-muted); margin: 0; }

.step {
  padding: 32px 0 34px;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  align-items: start;
}
.step--tight { padding: 30px 0 32px; grid-template-columns: 56px 1fr; gap: 18px; }
.step__no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 8px;
}
.step--tight .step__no { font-size: 13px; padding-top: 7px; }
.step__title {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  color: var(--fg);
}
.step--tight .step__title { font-size: 24px; margin-bottom: 9px; }
.step__body { font-size: 16px; line-height: 1.65; color: var(--fg-muted); margin: 0; max-width: 38em; }
.step--tight .step__body { font-size: 15px; }

.asset { padding: 34px 32px 38px; }
.asset__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.asset__sym { font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--fg); }
.asset__name { font-size: 14px; color: var(--fg-faint); }
.asset__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dk-2);
  border: 1px solid var(--accent-line);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.asset__body { font-size: 15px; line-height: 1.65; color: var(--fg-muted); 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(--rule);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.banner-cta__text {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--fg);
}
.banner-cta .btn { padding: 14px 28px; 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: 92px var(--gutter) 44px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.marquee { padding-bottom: 52px; }
.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 var(--gutter);
}
.marquee__track[data-cloned="true"] { animation: tscroll 70s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

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

.quote {
  margin: 0;
  width: 384px;
  flex: none;
  background: var(--cell);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.quote__text {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--fg);
}
.quote__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--rule-soft);
  padding-top: 20px;
}
.quote__avatar {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  flex: none;
}
.quote__name { font-size: 14px; font-weight: 500; }
.quote__role { font-size: 13px; color: var(--fg-faint); }

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

.faq-list { border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq__q {
  display: flex;
  gap: 20px;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.faq__mark { font-family: var(--mono); font-size: 16px; color: var(--accent); line-height: 1; flex: none; }
.faq__a { display: none; }
.faq__q[aria-expanded="true"] + .faq__a { display: block; }
.faq__a p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-muted);
  margin: 0;
  padding: 0 60px 28px 0;
  max-width: 44em;
}

/* --------------------------------------------------------------------------
   Closing CTA panel
   -------------------------------------------------------------------------- */

.cta-panel {
  background: var(--cell-tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 32px;
}
.cta-panel__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.cta-panel__sub { font-size: 14px; color: var(--fg-faint); margin: 0 0 26px; }

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

.about__body { padding: 92px var(--gutter) 108px; }
.value { padding: 32px 28px; }
.value h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--fg);
}
.value p { font-size: 15px; line-height: 1.65; color: var(--fg-muted); margin: 0; }

.placeholder-box {
  border: 1px dashed #C9BFA8;
  background: repeating-linear-gradient(135deg, #EFEADD, #EFEADD 8px, #E7E0D0 8px, #E7E0D0 16px);
  border-radius: var(--radius);
  padding: 60px 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: #7A7364;
}

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

/* The sticky header and the ticker strip beneath it both sit above this
   split, so the viewport allowance has to cover the pair. */
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--chrome-h)); }
.login__form {
  background: var(--c-bg);
  color: var(--c-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 68px var(--gutter);
}
.login__inner { width: 100%; max-width: 380px; }
.login__title {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 8px;
}
.login__sub { font-size: 15px; color: var(--fg-muted); margin: 0 0 34px; }
.login__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.login__check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-muted); }
.login__foot { font-size: 14px; color: var(--fg-muted); margin: 26px 0 0; text-align: center; }
.login__aside {
  display: flex;
  align-items: center;
  padding: 68px 60px;
  border-left: 1px solid var(--d-line);
}
.login__aside-inner { max-width: 30em; }
.login__aside h2 {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 20px;
  color: var(--d-fg-hi);
}
.login__aside p { font-size: 16px; line-height: 1.65; color: var(--d-muted); margin: 0 0 30px; }
.security-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--d-muted-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.contact__body { padding: 92px var(--gutter) 108px; }
.contact-details { display: flex; flex-direction: column; gap: 26px; margin: 0; }
.contact-details dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 7px;
}
.contact-details dd { font-size: 16px; margin: 0; }
.contact-form {
  background: var(--cell);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 38px;
}

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

.legal__body { padding: 92px var(--gutter) 108px; }
.legal__title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 0 0 14px;
}
.legal__meta { font-family: var(--mono); font-size: 12px; color: var(--fg-faintest); margin: 0 0 52px; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.legal-section p { font-size: 16px; line-height: 1.75; color: var(--fg-muted); margin: 0; }

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

.footer { border-top: 1px solid var(--d-line); color: var(--d-muted); background: var(--d-bg); }
.footer__cols {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  color: var(--d-fg);
}
.footer__brand:hover { color: var(--d-fg); }
.footer__mark {
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.footer__mark::after { content: ""; width: 7px; height: 7px; background: var(--gold); }
.footer__name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.footer__name em { font-style: normal; color: var(--gold); }
.footer__blurb { font-size: 14px; line-height: 1.65; margin: 0; max-width: 26em; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--d-muted-3);
  margin-bottom: 3px;
}
.footer__col a { font-size: 14px; color: var(--d-muted); }
.footer__col a:hover { color: var(--d-fg); }
.footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 48px; }
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.65;
  color: var(--d-muted-3);
  margin: 0 0 20px;
  border-top: 1px solid var(--d-line);
  padding-top: 26px;
}
.footer__copy { font-family: var(--mono); font-size: 11px; color: var(--d-muted-4); }

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

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

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

@media (max-width: 1080px) {
  .h-hero    { font-size: 56px; }
  .h-page    { font-size: 48px; }
  .h-section { font-size: 42px; }
  .h-section--sm, .h-section--xs { font-size: 38px; }

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

@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); border-left: 0; border-top: 1px solid var(--d-line); }
}

@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(--d-bg);
    border-bottom: 1px solid var(--d-line);
    padding: 8px var(--gutter) 20px;
  }
  .nav[data-open="true"] { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--d-line); font-size: 16px; }
  .nav .btn { margin-top: 16px; }

  .h-hero    { font-size: 40px; }
  .h-page    { font-size: 36px; }
  .h-section { font-size: 32px; }
  .h-section--sm, .h-section--xs { font-size: 30px; }
  .h-sub { font-size: 26px; }
  .legal__title { font-size: 34px; }
  .login__title { font-size: 32px; }
  .lede { font-size: 17px; }
  .lede--lg { font-size: 18px; }
  .banner-cta__text { font-size: 19px; }
  .faq__q { font-size: 18px; }
  .quote__text { font-size: 18px; }
  .step__title { font-size: 22px; }
  .step--tight .step__title { font-size: 20px; }

  .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; }
  .cta-panel { padding: 24px 20px; }
  .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__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; }
  .step__no, .step--tight .step__no { padding-top: 0; }
}

@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, .cta-panel { display: none; }
}

/* --------------------------------------------------------------------------
   Country + phone fields

   The country select used to be a 92px column beside the number, showing the
   dial code alone ("+27") with the country name hidden in an aria-label. That
   is unusable for a sighted visitor — nobody knows their own dial code — and
   it broke type-ahead, since the option text began with "+". It is now a
   full-width field of its own, labelled, listing "South Africa +27".
   -------------------------------------------------------------------------- */

.field__select {
  /* Leave room for the native dropdown arrow at every width. */
  padding-right: 32px;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* The option list is painted by the OS, not the page, so it does not inherit
   the section context. Set both halves explicitly or a dark-ground select
   renders light text on a light list in some browsers. */
.field__select option { background: var(--c-cell); color: var(--c-fg); }
.form-dark .field__select option { background: var(--d-panel); color: var(--d-fg); }

/* --------------------------------------------------------------------------
   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(--fg-faintest);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--rule);
}
.breadcrumb a { color: var(--fg-faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--fg); }

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

.prose { margin-bottom: 48px; }
.prose:last-child { margin-bottom: 0; }
.prose p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-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.75;
  color: var(--fg-muted);
  margin-bottom: 10px;
  padding-left: 4px;
}
.prose-list li::marker { color: var(--accent); }

/* 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,
.form-note a,
.banner-cta__text a {
  color: var(--accent);
  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(--accent-hi); }

.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(--d-muted-3);
}
.lang-links__list { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.lang-links__link {
  font-size: 14px;
  color: var(--d-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(--d-fg); background: var(--d-panel); }
.lang-links__link--current {
  color: var(--d-fg);
  background: var(--d-panel);
  cursor: default;
}

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

   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: 900px) {
  .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; }
}

/* --------------------------------------------------------------------------
   Cookie consent

   Revealed by site.js only when no choice has been recorded. Both buttons are
   real buttons of equal weight — a prominent "Accept" beside a hidden or
   greyed-out "Decline" is a dark pattern, and consent obtained that way is not
   freely given.
   -------------------------------------------------------------------------- */

/* A compact card in the bottom-left, not a full-width bar — it should sit
   beside the page rather than barricade it. */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  width: 380px;
  max-width: calc(100vw - (var(--gutter) * 2));
  padding: 20px 22px 18px;
  background: var(--d-panel);
  border: 1px solid var(--d-line-3);
  color: var(--d-fg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.consent[hidden] { display: none; }

.consent__close {
  position: absolute;
  top: 8px;
  right: 8px;
  /* 32px box around a 12px glyph — small on the page, still a real target. */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--d-muted-3);
  cursor: pointer;
  transition: color 120ms ease;
}
.consent__close:hover { color: var(--d-fg); }

.consent__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--d-muted);
  margin: 0 24px 16px 0; /* clears the close button */
}
.consent__text a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.consent__text a:hover { color: var(--gold-hi); }

.consent__actions { display: flex; gap: 10px; }
.consent__actions .btn { flex: 1; }

/* Decline carries the same size and weight as Accept — a prominent Accept
   beside a faint Decline is a dark pattern, and consent collected that way is
   not freely given. */
.consent__decline {
  background: transparent;
  color: var(--d-fg);
  border: 1px solid var(--d-line-3);
}
.consent__decline:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

@media (max-width: 760px) {
  .consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   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(--d-muted);
  border-top: 1px solid var(--d-line);
  padding-top: 24px;
  margin-bottom: 18px;
}
.company__name { font-weight: 500; color: var(--d-fg); }

/* 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; }
