/* ==========================================================================
   Rise Together FX — Draft stylesheet
   Dark premium fintech. Black / gold / white / muted grey.
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #171717;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --gold: #E5A818;          /* sampled from logo */
  --gold-2: #F4C542;        /* highlight */
  --gold-3: #D4A017;        /* deeper */
  --gold-soft: rgba(229, 168, 24, 0.12);
  --gold-line: rgba(229, 168, 24, 0.35);

  --text: #ffffff;
  --text-2: #b4b4b8;        /* muted grey */
  --text-3: #85858b;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --container: 1180px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Barlow Condensed", "Inter", system-ui, sans-serif;

  --header-h: 84px;
  --gutter: clamp(20px, 4vw, 40px);           /* side padding, fluid */
  --section-y: clamp(72px, 8vw + 20px, 112px); /* consistent vertical rhythm */
  --head-gap: clamp(36px, 4vw + 16px, 56px);   /* section heading → content */
  --tap: 44px;                                 /* minimum touch target */
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;          /* slightly larger base for 40–70+ readers */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;       /* safety net for old browsers */
  overflow-x: clip;         /* modern: no horizontal scroll, keeps position:sticky working */
}
html.nav-open { overflow: hidden; } /* scroll lock while mobile menu is open (html only, so the sticky header keeps working) */

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); }

.text-gold {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 55%, var(--gold-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.muted { color: var(--text-3); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #000; padding: 12px 18px; border-radius: 8px; font-weight: 700;
}
.skip-link:hover { color: #000; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; text-align: center;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); letter-spacing: 0.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 15px; min-height: var(--tap); }
.btn--lg { --pad-y: 17px; --pad-x: 28px; font-size: 17px; min-height: 56px; }
.btn--block { width: 100%; }
.btn--gold, .btn--primary {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: #0a0a0a;
  box-shadow: 0 10px 30px -10px rgba(229, 168, 24, 0.6), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--gold:hover, .btn--primary:hover { color: #000; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(229, 168, 24, 0.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn--ghost { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--text); border-color: var(--gold-line); background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 15px/1 var(--font-display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px var(--gold-soft); } 50% { box-shadow: 0 0 0 8px rgba(229,168,24,0.04); } }

/* ---------- Risk bar ---------- */
.risk-bar { background: #151106; border-bottom: 1px solid var(--gold-line); color: #eee8d6; font-size: 15px; line-height: 1.55; }
.risk-bar__inner { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; }
.risk-bar__inner p { min-width: 0; overflow-wrap: anywhere; overflow-wrap: break-word; }
.risk-bar__icon {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--gold); color: #000; font-weight: 800; font-size: 14px; line-height: 1;
}
.risk-bar strong { color: #fff; }
.risk-bar a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(10, 10, 10, 0.9); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
/* Header height stays fixed on scroll (no layout shift); only the logo eases down a little. */
.brand { display: inline-flex; align-items: center; min-height: var(--tap); flex: none; }
.brand img { height: 58px; width: auto; aspect-ratio: 379 / 256; transition: transform .3s ease; transform-origin: left center; }
.site-header.is-scrolled .brand img { transform: scale(.86); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 26px; }
.nav ul a { display: inline-block; color: var(--text-2); font-size: 15px; font-weight: 500; position: relative; padding: 10px 0; transition: color .2s; }
.nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav ul a:hover, .nav ul a.is-active { color: var(--text); }
.nav ul a:hover::after, .nav ul a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; flex: none; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; position: relative; }
.nav-toggle:hover { border-color: var(--gold-line); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 6vw + 16px, 80px) 0 clamp(64px, 7vw + 20px, 100px); overflow: hidden; isolation: isolate; }
.hero__glow {
  position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229,168,24,0.22), rgba(229,168,24,0.06) 50%, transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 5vw, 64px); align-items: center; }

.hero h1 { font-size: clamp(40px, 4.4vw + 18px, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.lead { margin-top: 24px; font-size: clamp(18px, 0.6vw + 15px, 21px); color: var(--text-2); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; }
.hero__chips li { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--text-2); font-size: 16px; line-height: 1.4; }
.hero__chips svg { flex: none; margin-top: 1px; width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hero__small { margin-top: 22px; font-size: 15px; color: var(--text-2); }

/* Panel mock-up */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--line-2); border-radius: 22px; padding: 22px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(229,168,24,0.06), 0 0 80px -20px rgba(229,168,24,0.25);
  backdrop-filter: blur(8px);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .6s ease;
}
.hero__visual:hover .panel { transform: perspective(1200px) rotateY(0) rotateX(0); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.panel__dots { display: flex; gap: 6px; }
.panel__dots span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.panel__dots span:first-child { background: var(--gold); }
.panel__title { font-weight: 600; font-size: 15px; }
.panel__tag { margin-left: auto; white-space: nowrap; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); border: 1px solid var(--line-2); padding: 4px 8px; border-radius: 999px; }
.panel__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.panel__row--stack { flex-direction: column; align-items: stretch; gap: 10px; }
.panel__label { color: var(--text-2); }
.panel__label small { color: var(--text-3); }
.panel__value { font-weight: 600; text-align: right; min-width: 0; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.pill--gold { background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); }
.risk-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 12px; background: rgba(0,0,0,0.4); border: 1px solid var(--line); }
.risk-select button { border: 0; background: transparent; color: var(--text-2); font: 600 14px var(--font); padding: 9px 0; border-radius: 8px; cursor: default; transition: background .3s, color .3s; }
.risk-select button.is-active { background: var(--gold); color: #0a0a0a; }
.status { display: inline-flex; align-items: center; gap: 8px; color: #d6f5d6; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.15); display: inline-block; }
.panel__chart { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); }
.panel__chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13px; margin-bottom: 8px; font-weight: 600; }
.panel__chart-head .muted { font-weight: 400; }
.spark { display: block; width: 100%; height: 80px; }
/* Claire edits 2 (6 Oct): neutral decoration, no trend. Faint grid + thin, flat-mean gold wave; no fill, no draw-in animation. */
.spark__grid path { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spark__wave { fill: none; stroke: var(--gold); stroke-opacity: .7; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.panel__foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--text-2); }
.lock svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2; }

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { min-width: 0; padding: 26px 22px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__k { font: 700 14px/1.2 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.strip__v { font-size: 18px; font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg) 100%); border-top: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: var(--head-gap); }
.section h2 { font-size: clamp(32px, 2.6vw + 22px, 52px); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.section__sub { margin-top: 18px; color: var(--text-2); font-size: clamp(17px, 0.3vw + 16px, 18px); max-width: 62ch; }
.note { margin-top: 40px; color: var(--text-2); font-size: 16px; text-align: center; }
.note--warn { text-align: left; background: rgba(229,168,24,0.06); border: 1px solid var(--gold-line); border-radius: var(--radius-sm); padding: 18px 22px; color: #e6dcc2; }
.note--warn strong { color: var(--gold-2); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); counter-reset: s; }
.step {
  position: relative; padding: clamp(24px, 2.4vw, 30px) clamp(22px, 2.4vw, 28px) clamp(26px, 2.6vw, 32px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s;
  overflow: hidden;
}
.step::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity .3s;
}
.step:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.step:hover::before { opacity: 1; }
.step__num { position: absolute; top: 18px; right: 24px; font: 800 54px/1 var(--font-display); color: rgba(255,255,255,0.06); letter-spacing: -0.02em; }
.step__icon, .card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.step__icon svg, .card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3, .card h3 { font-size: clamp(20px, 0.4vw + 18px, 21px); font-weight: 700; margin-bottom: 10px; padding-right: 8px; }
.step p, .card p { color: var(--text-2); font-size: 16px; }

/* ---------- Split (who it's for) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 64px); align-items: start; }
.checklist { margin-top: 36px; display: grid; gap: 14px; }
.checklist li {
  position: relative; padding: 20px 22px 20px 64px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.025); border: 1px solid var(--line);
  display: grid; gap: 4px;
}
.checklist li::before {
  content: ""; position: absolute; left: 22px; top: 22px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/15px no-repeat;
}
.checklist strong { font-size: 18px; }
.checklist span { color: var(--text-2); font-size: 16px; }

.split__card { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 30px); }
.quote-card {
  padding: 36px; border-radius: 22px; position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, rgba(229,168,24,0.18), transparent 55%), var(--bg-3);
  border: 1px solid var(--gold-line);
}
.quote-card__kicker { font: 700 14px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.quote-card__text { font-size: clamp(19px, 0.5vw + 17px, 21px); line-height: 1.5; font-weight: 500; }
.quote-card__by { margin-top: 20px; color: var(--text-3); font-size: 15px; }
.mini-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--text-2); font-size: 16px; }
.mini-card__icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); font-weight: 800; }

/* ---------- Cards (why us) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 22px); }
.card { padding: clamp(24px, 2.6vw, 32px) clamp(22px, 2.4vw, 28px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); transition: border-color .3s, transform .3s, background .3s; }
.card:hover { border-color: var(--gold-line); transform: translateY(-4px); background: linear-gradient(180deg, rgba(229,168,24,0.05), var(--bg-2)); }

/* ---------- Performance ---------- */
.perf { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; }
/* Always 2 columns: "Gain (MyFXBook)" and "Maximum drawdown" share the first row at every width, so gain is never shown without drawdown beside it. */
.perf__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 16px); align-content: start; }
.perf__stat { min-width: 0; padding: clamp(16px, 2vw, 24px); border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.perf__label { font-size: 13.5px; line-height: 1.3; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-weight: 600; }
.perf__value { font: 800 clamp(32px, 2vw + 24px, 40px)/1.1 var(--font-display); color: var(--text-2); font-variant-numeric: tabular-nums; }
.perf__value--sm { font-size: clamp(20px, 0.5vw + 18px, 22px); line-height: 1.25; padding-top: 6px; }
.perf__hint { font-size: 14px; line-height: 1.35; color: var(--gold); }
/* Line label / value / hint up across each row, even when one label wraps to two lines. */
@supports (grid-template-rows: subgrid) {
  .perf__stat { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
  .perf__value { align-self: end; }
  /* Strategy tile (Claire, 6 Oct): neutral, no hint. Its value can wrap to two lines, so it spans the value + hint rows
     and starts level with "MyFXBook" in the tile beside it, instead of pushing that value down. */
  .perf__stat--neutral .perf__value { grid-row: 2 / span 2; align-self: start; }
}
.perf__chart { position: relative; min-height: 340px; border-radius: var(--radius); border: 1px dashed var(--gold-line); background: var(--bg-2); overflow: hidden; display: grid; place-items: center; }
.perf__skeleton { position: absolute; inset: auto 24px 24px 24px; height: 60%; display: flex; align-items: flex-end; gap: 10px; opacity: .5; }
.perf__skeleton span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)); animation: shimmer 2.2s ease-in-out infinite; }
.perf__skeleton span:nth-child(odd) { animation-delay: .4s; }
@keyframes shimmer { 0%,100% { opacity: .5; } 50% { opacity: 1; } }
.perf__placeholder { position: relative; z-index: 1; text-align: center; max-width: 420px; padding: 32px; background: rgba(10,10,10,0.82); border: 1px solid var(--line-2); border-radius: var(--radius); backdrop-filter: blur(6px); }
.perf__badge { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); margin-bottom: 16px; }
.perf__badge .status__dot { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.perf__placeholder h3 { font-size: 24px; margin-bottom: 10px; }
.perf__placeholder p { color: var(--text-2); font-size: 15.5px; margin-bottom: 20px; }

/* ---------- Risk ---------- */
.risk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 18px); counter-reset: risk-card; }
.risk-card { padding: 26px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.risk-card h3 { display: flex; align-items: flex-start; gap: 12px; font-size: 19px; line-height: 1.25; margin-bottom: 10px; }
/* Risk-card number badge: CSS counter (6 Oct, Elena SEO), so the number is not part of the heading text. Same look as the old .risk-card__n span.
   The "/ ''" alt text keeps the decorative number out of the accessibility tree where supported. */
.risk-card h3::before { counter-increment: risk-card; content: counter(risk-card); content: counter(risk-card) / ""; flex: none; margin-top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); font-size: 14px; font-weight: 800; }
.risk-card p { color: var(--text-2); font-size: 16px; }
.risk-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.risk-cta p { color: var(--text-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line); transition: border-color .25s; }
.faq details[open] { border-color: var(--gold-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; min-height: 64px; padding: 18px 60px 18px 24px; font-weight: 600; font-size: 18px; line-height: 1.4; position: relative; border-radius: var(--radius-sm); transition: color .2s; }
.faq summary:hover { color: var(--gold-2); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s, margin .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--text-2); max-width: 70ch; }
.faq details p.faq__subhead { padding-bottom: 6px; color: var(--text); } /* "How we're paid" bold label (not a heading) */

/* ---------- Apply ---------- */
.apply { overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.apply__glow { position: absolute; z-index: -1; left: -200px; bottom: -300px; width: 800px; height: 800px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229,168,24,0.16), transparent 70%); }
.apply__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px); align-items: start; }
.apply__points { margin-top: 28px; display: grid; gap: 12px; }
.apply__points li { position: relative; padding-left: 32px; color: var(--text-2); }
.apply__points li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.apply__points li::after { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.apply__alt { margin-top: 28px; color: var(--text-2); font-size: 16px; overflow-wrap: anywhere; }
.apply__fca { margin-top: 14px; color: var(--text-2); font-size: 15px; }

.apply-form { min-width: 0; padding: clamp(20px, 3vw, 32px); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)); border: 1px solid var(--line-2); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 16px; font-weight: 600; line-height: 1.35; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45); color: var(--text); font: 400 17px/1.4 var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E5A818' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field select option { background: #111; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field.is-invalid input, .field.is-invalid select { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,0.18); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; color: var(--text-2); cursor: pointer; line-height: 1.55; padding: 4px 0; }
.check input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--gold); cursor: pointer; }
.check input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.check.is-invalid span { color: #fca5a5; }
.form-status { font-size: 16px; text-align: center; min-height: 1.2em; color: var(--text-2); }
.form-status.is-ok { color: var(--gold-2); }
.form-status.is-err { color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { background: #060606; border-top: 1px solid var(--line); padding: clamp(56px, 5vw + 24px, 72px) 0 32px; font-size: 16px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer__brand img { height: 74px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--text-2); max-width: 36ch; }
.footer__heading,
.footer__nav h4, .footer__risk h4 { font: 700 15px/1.1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer__nav ul { display: grid; gap: 2px; }
.footer__nav a { color: var(--text-2); display: inline-flex; align-items: center; min-height: var(--tap); padding-block: 4px; }
.footer__nav a:hover { color: var(--text); }
.footer__risk { padding: 36px 0; border-bottom: 1px solid var(--line); display: grid; gap: 14px; }
.footer__risk p { color: #9d9da3; font-size: 15px; line-height: 1.7; }
.footer__risk p strong { color: var(--text-2); }
.footer__placeholder { font-style: italic; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; color: var(--text-3); font-size: 15px; }

/* ---------- Risk page ---------- */
.legal { padding: clamp(48px, 5vw + 24px, 80px) 0 var(--section-y); counter-reset: legal-sec; }
.legal h1 { font-size: clamp(38px, 3vw + 26px, 56px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 18px; }
.legal__intro { color: var(--text-2); font-size: clamp(18px, 0.3vw + 17px, 19px); margin-bottom: clamp(32px, 4vw, 48px); max-width: 62ch; }
.legal__box { padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.6vw, 28px); border-radius: var(--radius); background: rgba(229,168,24,0.06); border: 1px solid var(--gold-line); margin-bottom: 48px; }
.legal__box p { color: #eee4c8; font-size: 17px; }
.legal h2 { font-size: clamp(23px, 0.8vw + 20px, 26px); font-weight: 700; line-height: 1.2; margin: clamp(36px, 3vw + 24px, 44px) 0 14px; padding-top: 8px; scroll-margin-top: calc(var(--header-h) + 16px); }
/* Section numbers via CSS counter (6 Oct, Elena SEO v2): "1. " etc. are not in the heading text, and sections renumber themselves when one is added or removed. */
.legal h2::before { counter-increment: legal-sec; content: counter(legal-sec) ". "; }
.legal p, .legal li { color: var(--text-2); max-width: 70ch; }
.legal p + p { margin-top: 14px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.legal__updated { margin-top: 56px; font-size: 15px; color: var(--text-3); }
.back-link { display: flex; width: fit-content; align-items: center; gap: 8px; min-height: var(--tap); margin-bottom: 24px; font-weight: 600; }
/* Visible breadcrumb (6 Oct, Elena SEO v2): same spacing and tap height as the old back link */
.breadcrumb { display: flex; flex-wrap: wrap; width: fit-content; align-items: center; gap: 8px; min-height: var(--tap); margin-bottom: 24px; font-weight: 600; color: var(--text-3); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: var(--tap); }
.breadcrumb [aria-current="page"] { color: var(--text-2); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal--delay { transition-delay: .15s; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Breakpoints: ≤1080 tighten nav · ≤980 tablet (burger menu, 2-col grids, stacked hero) · ≤640 phone (1-col) · ≤400 small phone */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .nav ul { gap: 18px; }
  .nav ul a { font-size: 15px; }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .brand img { height: 46px; }
  .site-header.is-scrolled .brand img { transform: none; }

  /* Mobile/tablet menu: drops down directly under the sticky header. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 18px;
    max-height: calc(100vh - var(--nav-top, 140px));
    max-height: calc(100dvh - var(--nav-top, 140px));
    overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 28px; background: #0a0a0a; border-bottom: 1px solid var(--line-2);
    box-shadow: 0 24px 48px -12px rgba(0,0,0,0.7);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .22s ease, transform .22s ease, visibility 0s; }
  /* Dimmed page behind the open menu (tap it to close). */
  .site-header::after {
    content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 100vh; z-index: 98;
    background: rgba(0,0,0,0.6); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
  }
  html.nav-open .site-header::after { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease, visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: flex; align-items: center; min-height: 56px; padding: 12px 4px; font-size: 19px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav ul a.is-active { color: var(--gold-2); }
  .nav ul a::after { display: none; }
  .nav__cta { width: 100%; --pad-y: 15px; font-size: 18px; min-height: 56px; }
  .site-header { background: rgba(10, 10, 10, 0.92); }

  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__copy { max-width: 640px; }
  .panel { transform: none; max-width: 540px; margin-inline: auto; }
  .hero__visual:hover .panel { transform: none; }
  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item { border-left: 0; padding: 22px 16px 22px 0; border-top: 1px solid var(--line); }
  .strip__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; padding-right: 0; }
  .strip__item:nth-child(-n+2) { border-top: 0; }
  .steps, .cards, .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .apply__inner, .perf { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split__card { position: static; grid-template-columns: minmax(0, 1fr); }
  .perf__chart { min-height: 0; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .risk-bar { font-size: 14.5px; }
  .risk-bar__inner { gap: 10px; padding: 10px 0; }
  .brand img { height: 42px; }
  .btn { white-space: normal; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__chips { flex-direction: column; gap: 10px; }
  .panel { padding: 18px; border-radius: 18px; }
  .panel__row { font-size: 15px; }
  .steps, .cards, .risk-grid { grid-template-columns: minmax(0, 1fr); }
  .step__num { font-size: 46px; top: 16px; right: 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .quote-card { padding: 26px 22px; }
  .checklist li { padding: 18px 18px 18px 58px; }
  .checklist li::before { left: 18px; top: 20px; }
  .checklist strong { font-size: 17.5px; line-height: 1.35; }
  .risk-cta { flex-direction: column; align-items: stretch; padding: 22px; }
  .risk-cta .btn { width: 100%; }
  .perf__live .btn { width: 100%; }
  .faq summary { padding: 16px 52px 16px 18px; font-size: 17.5px; }
  .faq summary::after { right: 20px; }
  .faq details p { padding: 0 18px 20px; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 400px) {
  .strip__item { padding-right: 10px; }
  .strip__item:nth-child(even) { padding-left: 14px; }
  .strip__v { font-size: 17px; }
  .perf__stat { padding: 14px; }
  .perf__label { font-size: 13px; letter-spacing: .06em; }
  .panel__dots { display: none; } /* simplify the mock-up on very small screens */
}

/* Hover-lift only where a real hover exists (avoids "stuck" lifted cards on touch). */
@media (hover: none) {
  .step:hover, .card:hover, .btn--gold:hover, .btn--primary:hover, .btn--ghost:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal.is-visible { opacity: 1; transform: none; }
  .panel, .hero__visual:hover .panel { transform: none; }
  .step:hover, .card:hover, .btn:hover { transform: none; }
}

/* Live MyFXBook performance */
/* Gain and drawdown get equal prominence (Atlas, 6 Oct): same size/weight (from .perf__value), same white colour, same tile. */
.perf__value--gain, .perf__value--dd { color: var(--text); }
.perf__chart--live {
  border-style: solid;
  border-color: var(--gold-line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212,175,55,0.08), transparent 55%),
    var(--bg-2);
}
.perf__live {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 440px;
  padding: clamp(28px, 3vw, 36px) clamp(20px, 3vw, 28px);
}
.perf__live h3 { font-size: 24px; margin-bottom: 10px; }
.perf__live p { color: var(--text-2); font-size: 16px; margin-bottom: 20px; }
.perf__asof { font-size: 14px; color: var(--text-2); margin-top: 16px; margin-bottom: 0 !important; }
a.perf__badge { text-decoration: none; min-height: var(--tap); } /* now a link: keep the site 44px tap-target rule */

/* 12 Oct 2026 figures: avg-monthly tile matches gain/drawdown size */
.perf__value--avg { color: var(--text); }
.perf__stat--wide { grid-column: 1 / -1; }

/* 12 Oct 2026: live MyFXBook gain chart inside the track-record card */
.perf__live:has(.perf__chartlink) { max-width: 100%; width: 100%; }
.perf__chartlink { display: block; margin: 0 0 22px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--gold-line); background: #111111; transition: border-color .2s ease, box-shadow .2s ease; }
.perf__chartlink:hover, .perf__chartlink:focus-visible { border-color: var(--gold); box-shadow: 0 10px 30px -14px rgba(229,168,24,.6); }
.perf__chartimg { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; }
/* 12 Oct 2026 (v4): heading + intro removed from the track-record card; chart fills the card */
.perf__live:has(.perf__chartlink) { padding: clamp(18px, 2vw, 24px) clamp(14px, 1.6vw, 20px); }
.perf__live:has(.perf__chartlink) .perf__chartlink { margin-bottom: 18px; }
/* 12 Oct 2026 (v5): white chart, no button; card hugs its content (badge, chart, as-of) */
.perf__chart--live:has(.perf__chartlink) { min-height: 0; align-self: stretch; }
.perf__live:has(.perf__chartlink) .perf__badge { margin-bottom: 14px; }
.perf__live:has(.perf__chartlink) .perf__chartlink { margin-bottom: 0; background: #FFFFFF; }
.perf__live:has(.perf__chartlink) .perf__asof { margin-top: 14px; }
/* 12 Oct 2026 (v6): under-tile lines removed; chart card matches tile-column height; Important note sits one gap (22px, = .perf gap) below */
#performance .perf + .note--warn { margin-top: 22px; }

/* ---------- Client track records (12 Oct 2026) ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.client-card { padding: clamp(18px, 2vw, 24px); border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: border-color .2s ease; }
.client-card:hover { border-color: var(--gold-line); }
.client-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.client-card__broker { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--gold-line); }
.client-card__days { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.client-card__id { font: 700 22px/1.2 var(--font-display); color: var(--text); margin: 0; }
.client-card__rows { margin: 0; display: flex; flex-direction: column; }
.client-card__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.client-card__rows dt { color: var(--text-2); }
.client-card__rows dd { margin: 0; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.client-card__rows dd.client-card__gold { color: var(--gold); }
.clients__note { margin-top: 22px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); max-width: 90ch; }
@media (max-width: 960px) { .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .clients-grid { grid-template-columns: minmax(0, 1fr); } }

/* Application form (12 Oct 2026): required marker, honeypot, privacy line */
.req { color: var(--gold); font-weight: 700; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.apply-form__privacy { font-size: 13.5px; line-height: 1.5; color: var(--text-2); margin: 4px 0 14px; }
.apply-form__privacy a { color: var(--gold); }
.apply-form { position: relative; }
