/* EagleFX website: the Midnight brand look and the layout every page shares (nav, sections, page header, footer).
   Load after eagle.css. Only the website loads this file, so the client area and the trader keep eagle.css as it is.
   Brand colours come from the EagleFX Instagram and the old website. Since the Nov 2026 sign-up redesign the look is
   calmer: white paper, deep navy bands with only a trace of the brand's plum (no red), and pink kept for one thing,
   the sign-up button. To bring the stronger navy-to-red sweep back, change --brand-sweep and --brand-sweep-flat. */

:root {
  /* Brand */
  --brand-midnight: #0e1527;
  --brand-indigo: #1c184b;
  --brand-plum: #3a114a;
  --brand-wine: #600a37;
  --brand-pink: #c81d5a;          /* main buttons; passes AA with white text and on the paper */
  --brand-pink-hover: #b0184f;
  --brand-pink-soft: #f27aa6;     /* text and lines on dark backgrounds only */
  --brand-line: linear-gradient(90deg, #011955, #2b2360 55%, #6a2a6e);
  --brand-wash: linear-gradient(90deg, rgba(1, 25, 85, .05), rgba(43, 35, 96, .03) 50%, rgba(90, 40, 110, .05));
  --brand-sweep:
    radial-gradient(60% 130% at 100% 100%, rgba(92, 46, 128, .34), transparent 70%),
    radial-gradient(50% 110% at 0% 0%, rgba(1, 25, 85, .50), transparent 70%),
    linear-gradient(90deg, #0e1527 0%, #121a3a 42%, #1a1c48 72%, #261c4c 100%);
  --brand-sweep-flat: linear-gradient(90deg, #0e1527 0%, #121a3a 40%, #1a1c48 72%, #261c4c 100%);
  --brand: var(--brand-midnight);

  /* Paper: cool mist instead of eagle.css's warm grey; ink: midnight navy */
  --bg-canvas: #eceff5;
  --bg-default: #fbfcfe;
  --bg-card: #f3f5f9;
  --bg-raised: #ffffff;
  --bg-tint: #e6e9f1;
  --bg-tint-strong: #d6dae6;
  --bg-inverse: var(--brand-midnight);
  --bg-inverse-hover: var(--brand-indigo);
  --text-primary: var(--brand-midnight);
  --text-secondary: #434a5e;
  --text-tertiary: #686e83;
  --text-faint: #a2a8b9;
  --text-inverse: #f6f7fa;
  --border-subtle: #e3e6ee;
  --border-default: #cfd3de;
  --border-strong: #9ba1b4;
  --shadow-pop: 0 8px 28px rgba(14, 21, 39, .10), 0 1px 2px rgba(14, 21, 39, .06);

  --wrap: 1240px;
  --gutter: 32px;
  --section: 104px;
}

body { background: var(--bg-default); font-size: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; }
h1, h2, h3 { letter-spacing: -0.03em; margin: 0; font-weight: 600; }
h2 { font-size: 44px; line-height: 1.05; }
.lede { font-size: 18px; color: var(--text-secondary); line-height: 1.6; max-width: 34em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--brand-line); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.sec-head h2 { margin-top: 14px; max-width: 640px; }
.sec-head .lede { max-width: 420px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bg-inverse); color: var(--text-inverse); padding: 8px 12px; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand-pink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ---- */
.btn-brand { background: var(--brand-pink); color: #fff; border-color: var(--brand-pink); }
.btn-brand:hover { background: var(--brand-pink-hover); border-color: var(--brand-pink-hover); }
.btn-light { background: var(--bg-card); color: var(--brand-midnight); border-color: var(--bg-card); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: inherit; border-color: var(--border-strong); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); border-color: currentColor; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ---- Dark brand bands: white type on the sweep. Anything inside reads its colours from these variables ---- */
.on-dark {
  --text-primary: #fff; --text-secondary: rgba(255, 255, 255, .74); --text-tertiary: rgba(255, 255, 255, .58);
  --border-subtle: rgba(255, 255, 255, .10); --border-default: rgba(255, 255, 255, .18); --border-strong: rgba(255, 255, 255, .4);
  --positive: #3cc994; --negative: #f3846f; --brand: #fff;
  --bg-inverse: var(--bg-card); --bg-inverse-hover: #fff; --text-inverse: var(--brand-midnight);
  color: var(--text-primary);
}
.on-dark .eyebrow::before { background: linear-gradient(90deg, #8ea2ff, var(--brand-pink-soft)); }
.sweep { background: var(--brand-sweep); }
.sweep-flat { background: var(--brand-sweep-flat); }
.paper {
  --text-primary: var(--brand-midnight); --text-secondary: #434a5e; --text-tertiary: #686e83;
  --border-subtle: #dde0e9; --border-default: #c9cdda; --border-strong: #9ba1b4;
  --positive: #0f7655; --negative: #b8442f; --brand: var(--brand-midnight);
  --bg-inverse: var(--brand-midnight); --bg-inverse-hover: var(--brand-indigo); --text-inverse: #f6f7fa;
  color: var(--text-primary);
}

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--brand-line) bottom / 100% 2px no-repeat, rgba(251, 252, 254, .92); backdrop-filter: saturate(1.4) blur(10px); }
.nav .wrap { display: flex; align-items: center; gap: 36px; height: 64px; }
.nav .logo-link { display: flex; }
.nav nav { display: flex; gap: 30px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text-primary); }
.nav nav .nav-only-menu { display: none; }
.nav .right { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.nav .right .nav-login { font-size: 14px; color: var(--text-secondary); }
.nav .right .nav-login:hover { color: var(--text-primary); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-default); border-radius: var(--radius-sm); background: var(--bg-raised); padding: 0; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 16px; height: 1.5px; background: var(--text-primary); position: relative; transition: transform .15s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---- Inner-page header: a band of the sweep ---- */
.page-hero { padding: 72px 0 64px; }
.page-hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.04em; margin: 18px 0 0; max-width: 820px; }
.page-hero .lede { margin-top: 18px; color: var(--text-secondary); max-width: 640px; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-tertiary); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text-primary); }
.crumbs span[aria-hidden] { opacity: .6; }
.page-hero .facts { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-default); }
.page-hero .facts b { display: block; font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.page-hero .facts span { font-size: 12px; color: var(--text-tertiary); }

/* Header art: a glass object (images/art/) floating on the right of the band. It must be the wrap's first child so it can float on phones */
.page-hero.has-art { overflow: hidden; }
.page-hero.has-art .wrap { position: relative; min-height: 300px; padding-right: calc(var(--gutter) + 420px); }
.hero-art { position: absolute; right: var(--gutter); top: 50%; height: min(400px, 100%); width: auto; aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; user-select: none; filter: drop-shadow(0 30px 50px rgba(5, 4, 20, .45)); animation: hero-float 9s ease-in-out infinite; }
@keyframes hero-float { 50% { transform: translateY(calc(-50% - 10px)); } }
@media (prefers-reduced-motion: reduce) { .hero-art { animation: none; } }

/* Glass icons (images/icons/, 128 px files): 56 px on tiles, smaller inline */
.gi { display: block; width: 56px; height: 56px; }
.gi-sm { display: inline-block; width: 28px; height: 28px; vertical-align: middle; }

/* EagleFX Trader on a laptop, on a dark band */
.laptop-shot { display: block; width: min(100%, 1040px); height: auto; margin: 40px auto 0; filter: drop-shadow(0 40px 60px rgba(5, 4, 20, .5)); }
/* Platform cards: the web platform and the three desktop apps */
.plat-cards .tag { align-self: flex-start; }
.plat-cards p { flex: 1; }
/* MQL sample in a dark editor window */
.code-win { background: #0b1020; border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px rgba(5, 4, 20, .22); min-width: 0; }
.code-win .bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 12px var(--font-mono); color: #9aa3bd; }
.code-win .bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.code-win .bar span { margin-left: 8px; }
.code-win pre { margin: 0; padding: 20px 22px; overflow-x: auto; font: 13px/1.7 var(--font-mono); color: #d8dcea; tab-size: 3; }
.code-win pre:focus-visible { outline: 2px solid var(--brand-pink); outline-offset: -2px; }
.code-win .c { color: #7d86a3; } .code-win .k { color: #f27aa6; } .code-win .t { color: #a9b6ff; } .code-win .s { color: #9fe0c0; } .code-win .n { color: #ffc98a; }
.list-rows .gi-sm { margin-top: -2px; }

/* ---- Building blocks for inner pages ---- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.mt-48 { margin-top: 48px; }
.tile { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile h3 { font-size: 19px; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.tile .btn { align-self: flex-start; margin-top: auto; }
.tile-head { display: flex; align-items: center; gap: 12px; }
.tile-head .ico, .tile-head > .gi { flex: none; width: 52px; height: 52px; margin: -6px 0 -6px -6px; }
.tile-head .gi { width: 52px; height: 52px; }
.tile-head h3, .tile-head h2 { margin: 0; }
.tile.dark { border-color: transparent; }

.panel { background: var(--brand-wash), var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-wide { grid-template-columns: 1.2fr 1fr; }

.list-rows { border-top: 1px solid var(--border-default); }
.list-rows > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border-default); }
.list-rows .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); padding-top: 3px; }
.list-rows b { display: block; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 6px; }
.list-rows span { color: var(--text-secondary); font-size: 14px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }
.ticks li::before { content: "→"; color: var(--brand-pink); font-family: var(--font-mono); }
.on-dark .ticks li::before { color: #f27aa6; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border-default); }
.steps > div { padding: 28px 28px 0 0; }
.steps .n { font-family: var(--font-mono); font-size: 13px; color: var(--text-tertiary); }
.steps h3 { font-size: 20px; margin: 12px 0 8px; }
.steps p { color: var(--text-secondary); margin: 0; font-size: 14px; max-width: 320px; }

.callout { border-left: 2px solid var(--brand-pink); background: var(--bg-card); padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-secondary); font-size: 14px; }
.callout b { color: var(--text-primary); }
.placeholder { display: grid; place-items: center; text-align: center; min-height: 220px; padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg-raised); color: var(--text-tertiary); font-size: 13px; }

/* Tables: wrap in .table-wrap so wide tables scroll sideways on a phone */
.table-wrap { position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); overflow-x: auto; }
.table-wrap .table td { font-size: 14px; padding: 13px 18px; }
.table-wrap .table th { padding: 12px 18px; }
.table-wrap .table td.wrap-ok { white-space: normal; }

/* ---- Long documents (legal, affiliate terms, guides): contents list on the left, text on the right ---- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; }
.doc-toc { position: sticky; top: 88px; font-size: 13px; max-height: calc(100vh - 110px); overflow: auto; }
.doc-toc b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); font-weight: 500; margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border-default); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-secondary); }
.doc-toc a:hover { color: var(--text-primary); border-left-color: var(--brand-pink); }
.prose { max-width: 42em; font-size: 16px; line-height: 1.75; color: var(--text-secondary); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 26px; line-height: 1.2; color: var(--text-primary); margin: 48px 0 14px; scroll-margin-top: 88px; }
.prose h3 { font-size: 18px; line-height: 1.3; color: var(--text-primary); margin: 32px 0 10px; letter-spacing: -0.02em; scroll-margin-top: 88px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--brand-pink); text-underline-offset: 3px; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.prose th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); font-weight: 500; }
.doc-meta { font-size: 13px; color: var(--text-tertiary); margin-bottom: 28px; }

/* ---- FAQ: native <details>, so it works without JavaScript ---- */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: 26px; margin-bottom: 16px; scroll-margin-top: 88px; }
.faq { border-top: 1px solid var(--border-default); }
.faq details { border-bottom: 1px solid var(--border-default); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: 20px; color: var(--text-tertiary); flex: none; }
.faq details[open] summary::after { content: "–"; color: var(--brand-pink); }
.faq .a { padding: 0 0 22px; color: var(--text-secondary); line-height: 1.7; max-width: 42em; }
.faq .a p { margin: 0 0 12px; }
.faq .a ul, .faq .a ol { margin: 0 0 12px; padding-left: 22px; }
.faq .a a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--brand-pink); text-underline-offset: 3px; }

/* ---- Forms: markup and validation only; how they send is still to be decided ---- */
.form { display: grid; gap: 18px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form textarea.input { height: auto; min-height: 140px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.form select.input { appearance: none; background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23434a5e' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center / 12px no-repeat; padding-right: 34px; }
.form .hint { font-size: 12px; color: var(--text-tertiary); }
.form .err { font-size: 12px; color: var(--negative); display: none; }
.form .field.invalid .input { border-color: var(--negative); }
.form .field.invalid .err { display: block; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-secondary); }
.form .check input { margin-top: 3px; accent-color: var(--brand-midnight); }
.form-note { display: none; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--positive-subtle); color: var(--positive); font-size: 14px; }
.form-note.show { display: block; }
.form-note.form-fail { background: var(--negative-subtle); color: var(--negative); }
.form-note a { text-decoration: underline; }
/* Spam trap: a field people never see and bots fill in */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.input:focus { border-color: var(--brand-midnight); box-shadow: 0 0 0 3px rgba(14, 21, 39, .08); }

/* ---- Sign-up: the one-field email form on every page (tools/sync-nav-footer.py writes its markup; shared/site.js
   sends it and offers the optional name step). It takes its colours from where it sits: paper or a dark band. ---- */
.join { display: grid; gap: 14px; max-width: 560px; scroll-margin-top: 96px; }
#join { scroll-margin-top: 96px; }   /* the nav's Sign up button jumps here; keep it clear of the sticky nav */
.join-row { display: flex; gap: 8px; padding: 6px; background: #fff; border: 1px solid var(--border-default); border-radius: 12px; box-shadow: 0 1px 2px rgba(14, 21, 39, .05); transition: border-color .15s, box-shadow .15s; }
.join-row:focus-within { border-color: var(--brand-midnight); box-shadow: 0 0 0 4px rgba(14, 21, 39, .08); }
.on-dark .join-row { border-color: transparent; box-shadow: 0 18px 50px rgba(5, 4, 20, .35); }
.on-dark .join-row:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .22), 0 18px 50px rgba(5, 4, 20, .35); }
.join-row .input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; box-shadow: none; font-size: 16px; color: var(--brand-midnight); padding: 0 12px; }
.join-row .input::placeholder { color: #686e83; }
.join-row .input:focus { box-shadow: none; outline: none; }
.join-row .btn { height: 48px; padding: 0 22px; font-size: 15px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.join-row.two .input { border-right: 1px solid var(--border-subtle); border-radius: 0; }
.join-err { margin: -4px 0 0; font-size: 13px; color: var(--negative); }
.join-err[hidden] { display: none; }
.join-done { margin: 0; display: flex; gap: 10px; align-items: baseline; font-size: 16px; font-weight: 600; color: var(--text-primary); }
.join-done::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--positive); color: #fff; font-size: 13px; transform: translateY(-1px); }
.on-dark .join-done::before { color: var(--brand-midnight); }
.join-done:focus { outline: none; }
.join-next { margin: 0; font-size: 14px; color: var(--text-secondary); }
.join-small { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-tertiary); max-width: 46em; text-wrap: pretty; }
.join-small a { text-decoration: underline; text-underline-offset: 2px; }
.join[aria-busy="true"] .btn { opacity: .6; pointer-events: none; }
/* The reassurances beside a sign-up field: confirmed facts only */
.assure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 7px 28px; font-size: 13px; color: var(--text-secondary); }
.assure li { display: flex; align-items: center; gap: 7px; }
.assure li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--positive) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.on-dark .assure li::before { background-color: #2fae80; }
/* The sign-up in a page header, and the closing sign-up band at the foot of every page */
.page-hero .join { margin-top: 30px; }
.join-band { border-radius: var(--radius-lg); padding: 72px 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: 48px; }
.join-band h2 { font-size: 40px; line-height: 1.08; max-width: 14em; text-wrap: balance; }
.join-band p.lede { margin: 16px 0 0; font-size: 17px; max-width: 30em; }
.join-band.center { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
.join-band.center .join { width: 100%; }
.join-band.center .assure { justify-content: center; }
.join-band.center .join { margin-inline: auto; }
.join-band.center .join-small { margin-inline: auto; }
/* A quiet secondary action: a text link with a hairline under it (never a button, so it doesn't compete with sign-up) */
.quiet-link { display: inline-block; margin-top: 28px; font-weight: 600; font-size: 15px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
/* Short, calm reading blocks: one idea, one line length the eye can follow (about 60 characters) */
.read { max-width: 36em; }
.read h2 { font-size: 36px; line-height: 1.1; text-wrap: balance; }
.read p { margin: 16px 0 0; font-size: 17px; line-height: 1.65; color: var(--text-secondary); }
.calm { background: var(--bg-card); }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
.points > div b, .points > div h3 { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 14px 0 8px; }
.points > div p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.6; max-width: 30em; }
.points.two { grid-template-columns: repeat(2, 1fr); }

/* ---- Closing banner ---- */
.cta { border-radius: var(--radius-lg); padding: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.cta h2 { font-size: 48px; }
.cta p { color: var(--text-secondary); font-size: 17px; margin: 14px 0 0; }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---- Footer ---- */
footer { padding: 0 0 40px; margin-top: var(--section); }
footer::before { content: ""; display: block; height: 2px; margin-bottom: 64px; background: var(--brand-line); }
footer { background: radial-gradient(45% 90% at 100% 100%, rgba(92, 46, 128, .22), transparent 70%), linear-gradient(90deg, #0e1527 45%, #151a3a 78%, #1f1b44); }
.foot { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px; }
.foot h4 { margin: 0 0 14px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-tertiary); font-weight: 500; }
.foot a { display: block; font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
.foot a:hover { color: var(--text-primary); }
.foot .about p { font-size: 14px; color: var(--text-secondary); max-width: 260px; margin-top: 14px; }
.risk { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--text-tertiary); line-height: 1.65; max-width: 76em; }
.risk p { margin: 0 0 10px; }
.risk b { color: var(--text-secondary); }
.risk a { text-decoration: underline; }

/* ---- Screenshot in a browser frame (home page, platform page). Keeps the trader's own colours ---- */
.browser { margin-top: 48px; border-radius: var(--radius-lg); overflow: hidden; background: #f2f1ee; box-shadow: 0 30px 90px rgba(5, 4, 20, .45); }
.browser .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #e2e1da; background: #f7f6f4; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2d1c9; }
.browser .bar .url { margin: 0 auto; font-size: 12px; color: #85857a; background: #f2f1ee; border: 1px solid #e2e1da; padding: 3px 60px; border-radius: var(--radius-sm); }
.browser img { width: 100%; height: auto; display: block; }

/* ---- Section sub-navigation under a page header (the affiliate pages) ---- */
.subnav { background: var(--bg-card); border-bottom: 1px solid var(--border-subtle); }
.subnav .wrap { display: flex; flex-wrap: wrap; gap: 0 28px; }
.subnav a { padding: 16px 0 14px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: var(--text-secondary); white-space: nowrap; }
.subnav a:hover { color: var(--text-primary); }
.subnav a[aria-current="page"] { color: var(--text-primary); border-bottom-color: var(--brand-pink); }

/* ---- Legal documents: long words and URLs wrap; the "other documents" row under each one ---- */
.prose { overflow-wrap: anywhere; }
.prose ul.bare { list-style: none; padding-left: 0; }
.prose p.sub { padding-left: 24px; }
.doc-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 28px; border-top: 1px solid var(--border-default); }
.doc-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Guides: a vertical numbered list of steps (number, title, text, screenshot) ---- */
.g-steps { list-style: none; margin: 0; padding: 0; }
.g-steps > li { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 24px; padding-bottom: 48px; scroll-margin-top: 88px; }
.g-steps > li::before { content: ""; position: absolute; left: 24px; top: 58px; bottom: 10px; width: 1px; background: var(--border-default); }
.g-steps > li:last-child { padding-bottom: 0; }
.g-steps > li:last-child::before { display: none; }
.g-steps .n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-wash), var(--bg-card); box-shadow: inset 0 0 0 1px var(--border-default); color: #1b2a6b; font-family: var(--font-mono); font-size: 14px; font-weight: 600; }
.g-steps h3 { font-size: 20px; letter-spacing: -0.02em; margin: 12px 0 8px; }
.g-steps p { margin: 0 0 18px; color: var(--text-secondary); max-width: 640px; }
.g-steps .placeholder { min-height: 240px; max-width: 760px; }
.g-part { font-size: 26px; line-height: 1.2; margin: 0 0 28px; scroll-margin-top: 88px; }
.g-body > .g-part:not(:first-child) { margin-top: 64px; }
.g-intro { color: var(--text-secondary); max-width: 640px; margin: -12px 0 28px; }
.g-intro p { margin: 0 0 12px; }
.g-body .callout { margin: 40px 0 0 72px; max-width: 760px; }
.g-body .callout p { margin: 0; }
.g-body .callout p + p { margin-top: 10px; }
.g-toc li:not(.g-toc-part) a { padding-left: 26px; }
.g-toc .g-toc-part a { color: var(--text-primary); font-weight: 600; }
.g-help { margin: 32px 0 0; color: var(--text-secondary); }
.g-steps p a, .g-intro a, .g-body .callout a, .g-help a { color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--brand-pink); text-underline-offset: 3px; }

/* ---- Form pages: the form in a card beside short copy ---- */
.form-card { padding: 36px; }
.form .btn[type="submit"] { justify-self: start; }
.form .small { font-size: 12px; color: var(--text-tertiary); margin: 0; }
.form .small a, .aside-copy .callout a { text-decoration: underline; text-decoration-color: var(--brand-pink); text-underline-offset: 3px; }
.aside-copy .ticks { margin-top: 28px; }
.aside-copy .callout { margin-top: 28px; }

/* ---- Responsive: tablet (≤ 1024 px and ≤ 768 px) and phone (≤ 600 px) ---- */
@media (max-width: 1100px) {
  .join-band { grid-template-columns: 1fr; gap: 28px; }
  .nav nav { gap: 18px; }
  .foot { grid-template-columns: repeat(5, 1fr); }
  .foot .about { grid-column: 1 / -1; }
  .doc { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 960px) {
  :root { --gutter: 24px; --section: 76px; }
  h2 { font-size: 36px; }
  .nav .wrap { gap: 16px; }
  .nav-toggle { display: grid; }
  .nav .right .nav-login { display: none; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--bg-default); border-bottom: 1px solid var(--border-default); box-shadow: 0 20px 40px rgba(14, 21, 39, .12); font-size: 16px; }
  .nav nav a { padding: 13px 0; border-bottom: 1px solid var(--border-subtle); }
  .nav nav .nav-only-menu { display: block; }
  .nav.open nav { display: flex; }
  .sec-head { flex-direction: column; align-items: start; gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split-wide { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div { padding: 24px 0; border-bottom: 1px solid var(--border-default); }
  .doc { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; max-height: none; padding: 18px 20px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
  .page-hero h1 { font-size: 44px; }
  .page-hero.has-art .wrap { min-height: 0; padding-right: calc(var(--gutter) + 220px); }
  .hero-art { height: min(220px, 100%); }
  .cta { grid-template-columns: 1fr; padding: 44px; }
  .join-band { grid-template-columns: 1fr; padding: 48px 40px; gap: 28px; }
  .join-band h2 { font-size: 34px; }
  .points, .points.two { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta h2 { font-size: 38px; }
  .panel { padding: 36px; }
  .browser .bar .url { padding: 3px 24px; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; --section: 56px; }
  body { font-size: 16px; }
  h2 { font-size: 30px; }
  .lede { font-size: 16px; }
  .nav .right .btn-brand { height: 34px; padding: 0 12px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 44px; }
  .page-hero h1 { font-size: 36px; }
  .page-hero.has-art .wrap { padding-right: var(--gutter); }
  .hero-art { position: static; float: right; width: 104px; height: auto; margin: -8px -6px 8px 12px; transform: none; animation: none; }
  .crumbs { margin-bottom: 20px; }
  .tile { padding: 22px; }
  .panel { padding: 24px; }
  .cta { padding: 32px 24px; }
  .join-band { padding: 36px 22px; }
  .join-band h2, .read h2 { font-size: 28px; }
  .points, .points.two { grid-template-columns: 1fr; gap: 26px; }
  .join-row { flex-direction: column; padding: 8px; }
  .join-row .btn { width: 100%; }
  .join-row.two .input { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .assure { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; }
  .cta h2 { font-size: 30px; }
  .form .row-2 { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; gap: 24px; }
  .prose h2 { font-size: 22px; }
  .browser { margin-top: 36px; }
  .browser .bar .url { display: none; }
  .subnav .wrap { gap: 0 18px; }
  .subnav a { font-size: 13px; padding: 13px 0 11px; }
  .form-card { padding: 22px; }
  .g-steps > li { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 36px; }
  .g-steps > li::before { left: 18px; top: 44px; }
  .g-steps .n { width: 36px; height: 36px; font-size: 12px; }
  .g-steps h3 { font-size: 18px; margin-top: 7px; }
  .g-steps .placeholder { min-height: 180px; }
  .g-body .callout { margin-left: 50px; }
}
