/* AA Global FX, 2026 refresh (9 Oct 2026). Identity kept: dark indigo hero, glass stat
   cards, pill buttons, light content zone with one highlighted card. Upgraded: fluid type
   scale, 4pt spacing rhythm, hairline borders over heavy shadows, a reading measure on
   articles, and animated chart diagrams on the guides (assets/guide-viz.js).
   Mobile-first, no frameworks, one self-hosted variable font. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --hero-1: #0b0e35;
  --hero-2: #1b2070;
  --navy: #12143c;
  --blue: #4046f0;
  --blue-dark: #2f35d8;
  --blue-tint: #eceefc;
  --blue-line: #c9cdf6;
  --violet: #8a8fff;
  --ink: #161a2e;
  --ink-2: #3a4157;
  --muted: #5b6377;
  --bg: #f4f5fb;
  --card: #ffffff;
  --line: #e2e5f0;
  --line-2: #cfd4e8;
  --amber: #f0a51f;
  --amber-dark: #d98b0b;
  --green: #14915a;
  --red: #d64545;
  /* chart colours (same roles as the trading desk: liquidity blue, stops red,
     triggers amber, targets teal) */
  --c-up: #34d39a;
  --c-dn: #ff6b7d;
  --c-liq: #7f9cff;
  --c-stop: #ff5f6f;
  --c-trig: #ffc845;
  --c-tgt: #3fe0cf;
  --c-gap: #a9b0ff;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 54, .06);
  --shadow: 0 1px 2px rgba(16, 18, 54, .05), 0 10px 28px -12px rgba(16, 18, 54, .16);
  --shadow-lg: 0 2px 6px rgba(16, 18, 54, .06), 0 28px 56px -20px rgba(16, 18, 54, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --maxw: 1160px;
  --prose: 46rem;
  /* 4pt spacing scale */
  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-section: clamp(3.5rem, 8vw, 6rem);
  --gutter: clamp(1rem, 4vw, 2rem);
  /* z-index scale */
  --z-sticky: 50;
  --z-cta: 60;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe, video { max-width: 100%; border-radius: var(--radius); }
iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; }
a { color: var(--blue-dark); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; color: var(--navy); letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3rem); margin: .25em 0 .45em; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); margin: 2.2em 0 .6em; font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1.02rem + .35vw, 1.25rem); margin: 1.8em 0 .5em; font-weight: 750; letter-spacing: -.012em; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; color: var(--navy); }
blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  background: var(--blue-tint); border: 1px solid var(--blue-line);
  border-radius: var(--radius);
}
code { background: var(--blue-tint); padding: .1em .35em; border-radius: 6px; font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-7) 0; }
::selection { background: #d8dbff; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(11, 14, 53, .86);
  -webkit-backdrop-filter: saturate(150%) blur(14px); backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  color: #fff;
  padding: .7rem var(--gutter);
  position: sticky; top: 0; z-index: var(--z-sticky);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.brand { color: #fff; text-decoration: none; font-weight: 800; font-size: 1.06rem; letter-spacing: -.005em; display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand span.fx { color: var(--violet); }
.brand .logo-img { display: block; width: auto; height: 22px; border-radius: 0; }
.site-nav { display: flex; gap: .25rem; align-items: center; }
.site-nav a {
  color: #c3c8ee; text-decoration: none; font-size: .93rem; font-weight: 550; white-space: nowrap;
  padding: .45em .8em; border-radius: 999px; transition: color .2s, background .2s;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.site-nav a.nav-cta {
  background: var(--blue); color: #fff; font-weight: 700; margin-left: .4rem;
  padding: .55em 1.15em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 18px -6px rgba(64, 70, 240, .8);
}
.site-nav a.nav-cta:hover { background: #4f55ff; }

/* Reading progress on long articles: CSS scroll timeline, no JS. Browsers without it
   simply show no bar. */
@supports (animation-timeline: scroll()) {
  body:has(.takeaways) .site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transform-origin: 0 50%; transform: scaleX(0);
    animation: readbar linear both; animation-timeline: scroll(root);
  }
  @keyframes readbar { to { transform: scaleX(1); } }
}

/* ---------- Layout ---------- */
main { max-width: 50rem; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-9); }
main.full-bleed { max-width: none; padding: 0 0 var(--sp-9); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.crumb { font-size: .86rem; color: var(--muted); margin: var(--sp-2) 0 0; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--blue-dark); }
main > .crumb + h1, main > h1:first-child { margin-top: var(--sp-3); }
main > .lead, .wrap > .lead { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.18rem); max-width: 40em; line-height: 1.6; }
/* Article measure: prose never runs past ~75 characters. */
main > p, main > ul, main > ol { max-width: var(--prose); }
main > ul li, main > ol li { margin: .35em 0; }
main > h2 + p { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  text-decoration: none; text-align: center; line-height: 1.25;
  padding: .82em 1.55em; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 24px -10px rgba(64, 70, 240, .75);
}
.btn-primary:hover { background: #4b51ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 14px 30px -10px rgba(64, 70, 240, .85); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset; }
.btn-light:hover { background: #eef0ff; }
/* Telegram blue is brand-critical, but white on it is only 3.9:1. Navy label = ~5:1 (AA). */
.btn-telegram { background: #229ed9; color: var(--navy); }
.btn-telegram:hover { background: #33aee6; color: var(--navy); }
.btn-telegram .tg-ic { flex: none; width: 22px; height: 22px; }
.btn .arr { font-weight: 400; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero (dark indigo, chart-grid backdrop, glass cards) ---------- */
.hero-dark {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 90% at 70% -10%, #2a31a6 0%, var(--hero-2) 28%, var(--hero-1) 66%);
  color: #fff;
  padding: clamp(2.75rem, 7vw, 5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}
/* faint chart grid, fading out toward the edges */
.hero-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 85%);
}
.hero-dark .inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: .45em; font-size: .86rem; font-weight: 600;
  color: #d5d9ff; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  padding: .4em 1em; border-radius: 999px; margin-bottom: var(--sp-5);
  text-decoration: none; transition: background .2s, border-color .2s;
}
a.pill:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.pill b { color: var(--violet); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-up); box-shadow: 0 0 0 3px rgba(52, 211, 154, .2); }
.hero-dark h1 {
  color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.4rem); font-weight: 800;
  margin: 0 0 .3em; letter-spacing: -.035em; line-height: 1.02;
}
.hero-dark p.lead {
  color: #bcc2ea; max-width: 34em; margin: 0 auto var(--sp-6);
  font-size: clamp(1.04rem, .98rem + .3vw, 1.16rem); line-height: 1.7;
}
.hero-dark .btn { margin: .25rem .2rem; }

/* Home hero: copy left, live chart diagram right */
.hero-split .inner { display: grid; gap: clamp(2rem, 5vw, 3.5rem); text-align: left; }
.hero-split .hero-copy { max-width: 36rem; }
.hero-split p.lead { margin-left: 0; }
.hero-split .hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-split .hero-ctas .btn { margin: 0; }
.hero-note { margin: var(--sp-5) 0 0; font-size: .86rem; color: #9ea5d6; display: flex; gap: .5em; align-items: flex-start; }
.hero-note svg { flex: none; margin-top: .2em; color: var(--c-trig); }
.hero-chart { margin: 0; }
.hero-chart figcaption { font-size: .84rem; color: #9ea5d6; margin-top: var(--sp-3); }
@media (min-width: 960px) {
  .hero-split .inner { grid-template-columns: 1.08fr 1fr; align-items: center; }
  .hero-split h1 { font-size: clamp(2.6rem, 1.2rem + 3.4vw, 4.1rem); }
  .hero-split .glass-row { grid-column: 1 / -1; }
}

/* Glass stat cards row */
.glass-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--sp-4); max-width: var(--maxw); margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: left;
}
.glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-radius: var(--radius-lg); padding: var(--sp-5);
  color: #eef0ff;
}
.glass.solid { background: #fff; color: var(--ink); border-color: transparent; box-shadow: var(--shadow-lg); }
.glass .tag {
  display: inline-flex; align-items: center; gap: .3em; font-size: .74rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--violet); margin-bottom: var(--sp-2);
}
.glass.solid .tag { color: var(--blue); }
.glass .big { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.025em; }
.glass.solid .big { color: var(--navy); }
.glass small { color: #aab0dc; display: block; margin-top: var(--sp-1); font-size: .84rem; line-height: 1.45; }
.glass.solid small { color: var(--muted); }
.glass .chip {
  display: inline-flex; align-items: center; gap: .3em; background: var(--blue-tint); color: var(--blue-dark);
  font-size: .76rem; font-weight: 700; border-radius: 999px; padding: .25em .8em; margin-top: var(--sp-3);
}
.ring {
  --p: 70;
  width: 60px; height: 60px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--violet) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0);
  display: inline-flex; align-items: center; justify-content: center;
}
.ring::after {
  content: attr(data-label);
  width: 46px; height: 46px; border-radius: 50%; background: var(--hero-1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff;
}
.glass .row { display: flex; align-items: center; gap: var(--sp-4); }

/* Section header (light zone) */
.section-head { text-align: center; padding: var(--sp-section) 0 var(--sp-6); }
.section-head .pill-light {
  display: inline-block; font-size: .85rem; font-weight: 700; color: var(--blue-dark);
  background: var(--blue-tint); padding: .38em 1.1em; border-radius: 999px; margin-bottom: var(--sp-4);
}
.section-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); margin: 0 0 .35em; letter-spacing: -.03em; }
.section-head p { color: var(--ink-2); max-width: 36em; margin: 0 auto; font-size: 1.05rem; }
/* left-aligned variant with an action on the right */
.section-head.split { text-align: left; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-4) var(--sp-6); }
.section-head.split p { margin: 0; }
.section-head.split .more-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Feature cards (tools, course, us-traders pages) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-4); margin: var(--sp-6) 0; }
.card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--card); display: flex; flex-direction: column; gap: var(--sp-3);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; flex: 1; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.card .icon svg { width: 22px; height: 22px; display: block; }
.card .more { font-size: .92rem; font-weight: 700; text-decoration: none; color: var(--blue-dark); }
.card .more:hover { color: var(--blue); }
.card.highlight { background: var(--blue); border-color: var(--blue); }
.card.highlight h3, .card.highlight .more { color: #fff; }
.card.highlight p { color: #dfe1ff; }
.card.highlight .icon { background: rgba(255, 255, 255, .16); color: #fff; }
.card .btn { align-self: flex-start; padding: .6em 1.2em; font-size: .92rem; }

/* Social proof strip: real channel numbers, kept quiet */
.proof {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-5);
  padding: var(--sp-6) 0 0; margin: 0; text-align: left;
}
.proof > div { border-top: 1px solid var(--line-2); padding-top: var(--sp-4); }
.proof b { display: block; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.15; }
.proof span { font-size: .88rem; color: var(--muted); }
.proof .proof-ic { color: var(--blue); }
.proof .proof-ic svg { display: block; }

/* ---------- Motion ---------- */
/* Reveals only ever apply to items that start BELOW the fold (app.js adds .pre), so
   anything on screen at load is visible immediately, with or without JS. */
.pre { opacity: 0; transform: translateY(18px); }
.pre.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease-expo); transition-delay: calc(var(--i, 0) * 60ms); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes focusIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.hero-dark .pill         { animation: fadeUp .8s var(--ease) both; }
.hero-dark h1            { animation: fadeUp .8s var(--ease) .1s both; }
.hero-dark .lead         { animation: fadeUp .8s var(--ease) .2s both; }
.hero-dark .hero-ctas,
.hero-dark .inner > .btn { animation: fadeUp .8s var(--ease) .3s both; }
.hero-dark .hero-note    { animation: fadeUp .8s var(--ease) .38s both; }
.hero-dark .hero-chart   { animation: focusIn 1s var(--ease) .25s both; }
.hero-dark .glass-row    { animation: fadeUp .9s var(--ease) .5s both; }

/* Dark band CTA */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(100% 140% at 0% 0%, #2a31a6 0%, var(--hero-2) 30%, var(--hero-1) 75%);
  color: #fff; border-radius: var(--radius-xl); padding: clamp(2.25rem, 6vw, 3.75rem) var(--gutter);
  text-align: center; margin: var(--sp-section) 0 0;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 80%);
  mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 80%);
}
.band h2 { color: #fff; margin: 0 0 .4em; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); letter-spacing: -.03em; }
.band p { color: #bcc2ea; max-width: 34em; margin: 0 auto var(--sp-5); }

/* ---------- Takeaways box ---------- */
.takeaways {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5) var(--sp-5) var(--sp-4); margin: var(--sp-5) 0; box-shadow: var(--shadow-sm);
}
.takeaways h2 { margin: 0 0 var(--sp-3); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--blue-dark); }
.takeaways ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.takeaways li { margin: 0; font-size: .97rem; padding-left: 1.7em; position: relative; line-height: 1.55; }
.takeaways li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.05em; height: 1.05em; border-radius: 50%;
  background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f35d8' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ---------- Guide signup banner (comment-CTA landing) ---------- */
.signup-banner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap;
  background: rgba(20, 145, 90, .06); border: 1px solid rgba(20, 145, 90, .3);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0;
}
.signup-banner-text { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 260px; }
.signup-banner-text strong { font-size: 1.02rem; }
.signup-banner-text span { font-size: .93rem; color: var(--ink-2); }
.signup-banner .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 560px) {
  .signup-banner { flex-direction: column; align-items: stretch; text-align: center; }
  /* flex-basis 260px becomes HEIGHT in column direction -> giant gap; reset it */
  .signup-banner-text { flex: 0 0 auto; }
  .signup-banner .btn { width: 100%; white-space: normal; }
}

/* ---------- Course ---------- */
.progress-wrap { background: #e1e4f3; border-radius: 999px; height: 10px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--violet));
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.progress-label { font-size: .86rem; color: var(--muted); margin: var(--sp-2) 0 var(--sp-5); }
.level {
  border: 1px solid var(--line); border-radius: var(--radius-lg); margin: var(--sp-4) 0; overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-sm);
}
.level-head { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8f9ff, #fff); }
.level-head h2 { margin: 0; font-size: 1.12rem; }
.level-head p { margin: .3em 0 0; color: var(--muted); font-size: .93rem; }
.lesson-list { list-style: none; margin: 0; padding: 0; }
.lesson-list li + li { border-top: 1px solid var(--line); }
.lesson-list a {
  display: flex; align-items: center; gap: var(--sp-3); padding: .85rem var(--sp-5);
  text-decoration: none; color: var(--ink); transition: background .15s;
}
.lesson-list a:hover { background: #f6f7fe; }
.tick { width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .78em; color: #fff; }
.done .tick { background: var(--green); border-color: var(--green); }
.done { color: var(--muted); }

/* Lesson page */
.lesson-nav { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); flex-wrap: wrap; }
.quiz { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-5); margin-top: var(--sp-6); background: var(--card); box-shadow: var(--shadow-sm); max-width: var(--prose); }
.quiz h3 { margin-top: 0; }
.quiz label { display: block; padding: .6em .8em; border-radius: 10px; cursor: pointer; transition: background .15s; }
.quiz label:hover { background: var(--blue-tint); }
.quiz .result { font-weight: 700; margin: .5em 0 0; }
.quiz .result.ok { color: var(--green); }
.quiz .result.no { color: var(--red); }
.cta-inline {
  display: block; margin: var(--sp-6) 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-lg);
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 700; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 12px 28px -12px rgba(64, 70, 240, .7);
  transition: background .2s, transform .2s var(--ease);
  max-width: var(--prose);
}
.cta-inline:hover { background: #4b51ff; transform: translateY(-1px); text-decoration: none; }
main video { display: block; width: 100%; border-radius: var(--radius-lg) !important; border: 1px solid var(--line) !important; box-shadow: var(--shadow); }

/* ---------- Sticky bottom CTA: a floating pill, not a full-width bar ---------- */
.sticky-cta {
  position: fixed; z-index: var(--z-cta);
  left: 50%; bottom: max(.75rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content; max-width: calc(100% - 1.5rem);
  background: rgba(11, 14, 53, .9); color: #fff;
  -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(11, 14, 53, .55);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-3);
  padding: .4rem .45rem .4rem 1.2rem; font-size: .92rem;
  animation: ctaIn .6s var(--ease) 1.2s both;
}
@keyframes ctaIn { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sticky-cta .msg { color: #c3c8ee; }
.sticky-cta a.btn { padding: .55em 1.15em; font-size: .9rem; white-space: nowrap; }
.sticky-cta .close {
  background: none; border: 0; color: #8d94c9; font-size: 1.35rem; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%; line-height: 1; flex: none;
}
.sticky-cta .close:hover { color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Tools ---------- */
.tool-form { display: grid; gap: var(--sp-4); max-width: 480px; }
.tool-form label { font-weight: 600; font-size: .95rem; display: block; }
.tool-form input, .tool-form select {
  width: 100%; padding: .7em .95em; font: inherit; font-size: 1rem; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(64, 70, 240, .15); }
.tool-note { font-size: .86rem; color: var(--muted); }
.result-box {
  background: var(--card); border: 1.5px solid var(--blue); border-radius: var(--radius-lg);
  padding: var(--sp-5); margin-top: var(--sp-4); font-size: 1.05rem; box-shadow: var(--shadow);
}
.result-box b { font-size: 1.5rem; color: var(--navy); }

/* Checklist */
.check-item { display: flex; gap: var(--sp-3); align-items: flex-start; padding: .85rem .4rem; border-bottom: 1px solid var(--line); }
.check-item input { width: 1.3em; height: 1.3em; margin-top: .2em; flex: none; accent-color: var(--blue); }
.check-item small { color: var(--muted); display: block; }
.banner { border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-5); text-align: center; font-weight: 800; font-size: 1.15rem; margin: var(--sp-5) 0; display: flex; align-items: center; justify-content: center; gap: .5em; }
.banner svg { flex: none; }
.banner.wait { background: #fdecec; color: #b52f2f; }
.banner.clear { background: #e4f6ec; color: #0f7a4b; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--hero-1); color: #a9afd9;
  margin-top: 0; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 7rem; font-size: .88rem;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: var(--sp-6); }
.site-footer a { color: #d3d7f6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer strong { color: #fff; }
.footer-brand { display: flex; gap: var(--sp-4); align-items: center; line-height: 1.55; }
.footer-logo-img { width: auto; height: 64px; border-radius: 0; flex: none; }
/* the link row: separators hidden, links become an even row */
.site-footer .inner > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: 0; }
.site-footer .inner > div:nth-child(2) a { font-size: .93rem; font-weight: 600; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--sp-5); font-size: .82rem; line-height: 1.6; color: #959bc8; }
.disclaimer p { margin: 0 0 var(--sp-3); max-width: 62rem; }

.video-banner {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px; color: #c6cbee;
  padding: .5rem 1.2rem; font-size: .9rem; text-align: center;
  max-width: 34em; margin: 0 auto var(--sp-5);
}
.video-banner a { color: #fff; }

/* ---------- Inline SVG icons ---------- */
svg { flex: none; }
.pill .pill-ic, .video-banner .vb-ic { vertical-align: -2px; }
.chip svg { vertical-align: -2px; }
.glass .tag svg { vertical-align: -2.5px; }
.kit-list { list-style: none; padding: 0; }
.kit-list li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; }
.kit-list .li-ic { color: var(--blue-dark); margin-top: .25em; }

/* ---------- Guide step figures (portrait video stills) ---------- */
/* The stills are 880x1059 portrait frames. Full column width made each one taller than
   a laptop screen; capped and centred they read as figures, not walls. */
.guide-step { margin: var(--sp-6) 0 var(--sp-6); }
.guide-step img {
  display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.guide-step figcaption {
  font-size: .9rem; color: var(--muted); text-align: center; max-width: 30rem;
  margin: var(--sp-3) auto 0; line-height: 1.5;
}

/* ---------- Starter kit: sectioned layout ---------- */
.kit-heading { margin-top: var(--sp-4); padding-top: var(--sp-5); }
.kit-cards { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 var(--sp-7); }
.kit-card {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
}
.kit-card .kit-ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.kit-card strong { display: block; margin-bottom: .25rem; color: var(--navy); }
.kit-card p { margin: 0; font-size: .94rem; color: var(--muted); }
.kit-get {
  background: rgba(37, 211, 102, .06); border: 1px solid rgba(20, 145, 90, .3);
  border-radius: var(--radius-lg); padding: var(--sp-5); margin: 0 0 var(--sp-5);
}
.kit-get h2 { margin: 0 0 .5rem; }
.kit-get p { margin: 0 0 var(--sp-4); }
.kit-alt {
  background: var(--blue-tint); border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-4);
}
.kit-alt p { margin: .25rem 0 0; font-size: .94rem; color: var(--ink-2); }
@media (max-width: 560px) {
  .kit-get .btn { width: 100%; }
}

/* Guide hero illustration */
.guide-hero { margin: var(--sp-5) 0; }
.guide-hero img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* Official partner promo creative */
.promo-card { max-width: 400px; margin: var(--sp-8) auto 0; text-align: center; }
.promo-card img { border-radius: var(--radius-lg); box-shadow: var(--shadow); height: auto; transition: transform .25s var(--ease); }
.promo-card a:hover img { transform: translateY(-3px); }
.promo-note { font-size: .76rem; color: var(--muted); margin-top: var(--sp-2); }

/* AMD Entry Trainer game */
.amd-scoreboard { display: flex; gap: var(--sp-4); justify-content: center; margin: var(--sp-4) 0; flex-wrap: wrap; }
.amd-scoreboard > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem 1.1rem; text-align: center; min-width: 92px; box-shadow: var(--shadow-sm); }
.amd-scoreboard b { display: block; font-size: 1.5rem; color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.amd-scoreboard span { font-size: .78rem; color: var(--muted); }
.amd-stage { margin: var(--sp-4) 0; }
.amd-phase {
  background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0;
  padding: .7rem 1rem; font-weight: 700; font-size: .98rem; text-align: center; transition: background .3s;
}
.amd-phase.amd-manip { background: #b5384a; }
.amd-phase.amd-mss { background: var(--blue-dark); }
.amd-phase.amd-entry { background: var(--amber-dark); color: #2a1c02; }
.amd-phase.amd-dist { background: #167a48; }
#amd-canvas { width: 100%; height: auto; display: block; border-radius: 0 0 var(--radius) var(--radius); background: #0c0f3a; }
#orm-canvas { width: 100%; height: auto; display: block; border-radius: 0 0 var(--radius) var(--radius); background: #ffffff; border: 1px solid var(--line); border-top: none; }
.amd-controls { display: flex; gap: .8rem; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.amd-buy { background: #2fbd6f; color: #033a20; min-width: 130px; }
.amd-buy:hover { background: #26a860; color: #fff; }
.amd-sell { background: #e05a5a; color: #fff; min-width: 130px; }
.amd-sell:hover { background: #cf4646; }
.amd-buy:disabled, .amd-sell:disabled { opacity: .45; cursor: default; }
.amd-buy.armed { animation: amdpulse 1s ease-in-out infinite; }
.amd-sell.armed { animation: amdpulseSell 1s ease-in-out infinite; }
@keyframes amdpulse { 0%,100% { transform: scale(1); box-shadow: 0 8px 20px rgba(47,189,111,.45); } 50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(47,189,111,.75); } }
@keyframes amdpulseSell { 0%,100% { transform: scale(1); box-shadow: 0 8px 20px rgba(224,90,90,.45); } 50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(224,90,90,.75); } }
.amd-msg { text-align: center; color: var(--muted); font-size: .95rem; max-width: 40em; margin: .5rem auto 0; min-height: 2.4em; }
.amd-msg.amd-good { color: var(--green); font-weight: 700; }
.amd-msg.amd-bad { color: var(--red); font-weight: 700; }
.amd-msg a { color: var(--blue-dark); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .amd-buy.armed, .amd-sell.armed { animation: none; box-shadow: 0 0 0 3px rgba(255,255,255,.4) inset; } }

/* Strategy chart diagram */
.chart-fig { margin: var(--sp-6) 0; }
.chart-fig svg { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.chart-cap { font-size: .86rem; color: var(--muted); margin-top: .6rem; line-height: 1.5; }

/* FAQ (AI-extractable Q&A) */
.faq { margin: var(--sp-7) 0; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius); margin: var(--sp-2) 0;
  background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--line-2); }
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.25rem; font-weight: 700; color: var(--navy);
  list-style: none; position: relative; padding-right: 3rem; line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 1.25rem; width: .7rem; height: .7rem;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--blue-dark); }
.faq-a { padding: 0 1.25rem 1.15rem; color: var(--ink-2); line-height: 1.7; }
.faq-a p:first-child { margin-top: 0; }
/* smooth open where the browser supports animating to auto height */
@supports (interpolate-size: allow-keywords) {
  .faq-item { interpolate-size: allow-keywords; }
  .faq-item::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-item[open]::details-content { height: auto; }
}
@media (max-width: 560px) {
  .faq-item summary { padding: 1rem; padding-right: 2.8rem; font-size: 1rem; }
  .faq-item summary::after { right: 1rem; }
  .faq-a { padding: 0 1rem 1.1rem; }
}

/* Author box (E-E-A-T) */
.author-box {
  display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-5); margin: var(--sp-6) 0; box-shadow: var(--shadow-sm); font-size: .93rem; max-width: var(--prose);
}
.author-box img { border-radius: 12px; flex: none; }
.author-box .updated { color: var(--muted); font-size: .85rem; }

/* ---------- Narrow content container ---------- */
.page-narrow {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.page-narrow > p, .page-narrow .lead, .broker p, .callout p { max-width: 68ch; }

/* ---------- Brokers page ---------- */
.brokers-page h1 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.6rem); line-height: 1.1; }
.brokers-page .lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); line-height: 1.6; color: var(--ink-2); }
.brokers-page .callout { font-size: .95rem; line-height: 1.55; }
.brokers-page > h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  margin-top: var(--sp-section); margin-bottom: var(--sp-4);
}
.brokers-page > p  { margin-bottom: var(--sp-4); }

.crumbs { font-size: .86rem; color: var(--muted); margin: var(--sp-5) 0 var(--sp-4); }
.crumbs a { color: var(--muted); }

.callout {
  border: 1px solid var(--blue-line); background: var(--blue-tint);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
}
.callout p { margin: 0; }
.callout-warn { border-color: #efd39a; background: #fdf6e8; }

.broker-list { display: grid; gap: var(--sp-5); margin: var(--sp-6) 0 var(--sp-section); }
.broker {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 3.5vw, 2.25rem);
}
.broker-feat { border: 1.5px solid var(--blue); box-shadow: var(--shadow); }
.broker-top { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.broker-rank {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 1rem;
  display: grid; place-items: center;
}
.broker-feat .broker-rank { background: var(--blue); }
.broker-top h2 { margin: 0; font-size: 1.45rem; }
.broker-name { display: flex; align-items: center; line-height: 0; }
.broker-logo { height: 30px; width: auto; display: block; border-radius: 0; }
.broker-logo--weltrade { height: 24px; }
.broker-tag {
  font-size: .78rem; font-weight: 700; color: var(--blue-dark);
  background: var(--blue-tint); padding: .4em 1em; border-radius: 999px;
}
.broker p { margin: 0 0 var(--sp-3); }
.broker p:last-of-type { margin-bottom: 0; }
.broker-specs {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--sp-4); background: var(--bg); border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0 0;
}
.spec-k {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); font-weight: 700; margin-bottom: var(--sp-1);
}
.spec-v { font-weight: 600; font-size: .95rem; color: var(--ink); line-height: 1.35; }
.broker .callout-warn { margin: var(--sp-5) 0 0; }
.broker p.broker-cta { margin: var(--sp-5) 0 0; }
.broker p.broker-code {
  font-size: .9rem; color: var(--muted); background: var(--bg);
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); margin: var(--sp-3) 0 0;
}

.table-wrap { overflow-x: auto; margin: 0 0 var(--sp-2); -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); }
.cmp { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .94rem; background: var(--card); }
.cmp th, .cmp td { border-bottom: 1px solid var(--line); padding: var(--sp-3) var(--sp-4); text-align: left; }
.cmp thead th { background: var(--navy); color: #fff; font-weight: 700; border-bottom: 0; }
.cmp tbody tr:nth-child(even) { background: #f8f9fd; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { font-weight: 600; color: var(--ink); }
.cmp .yes { color: var(--green); font-weight: 700; }
.cmp .no { color: var(--muted); }

.choose { display: grid; gap: var(--sp-2); margin: 0 0 var(--sp-5); }
.choose-row {
  display: grid; grid-template-columns: minmax(140px, 200px) 1fr; gap: var(--sp-4);
  align-items: baseline; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-3) var(--sp-4);
}
.choose-if { font-weight: 700; color: var(--blue-dark); font-size: .95rem; }
.choose-then { color: var(--ink); }
@media (max-width: 560px) {
  .choose-row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .broker-top h2 { font-size: 1.25rem; }
  .callout { padding: var(--sp-3) var(--sp-4); margin: var(--sp-4) 0; }
  .brokers-page h1 { margin-bottom: var(--sp-2); }
}

/* ---------- Soft capture on guides ---------- */
.soft-capture {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0;
}
.soft-capture > div { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 260px; }
.soft-capture strong { font-size: 1.02rem; }
.soft-capture span { font-size: .93rem; color: var(--ink-2); }
.soft-capture .btn { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 560px) {
  .soft-capture { flex-direction: column; align-items: stretch; text-align: center; }
  .soft-capture > div { flex: 0 0 auto; }
}

/* =====================================================================
   Home page
   ===================================================================== */
.home-sec { padding-top: var(--sp-section); }
.home-sec > .section-head { padding-top: 0; }

/* Bento: varied tile sizes, each tile shows its real content instead of an icon */
.bento { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.tile h3 { margin: 0; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
.tile h3 a { color: inherit; text-decoration: none; }
/* whole tile is the link target */
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile p { margin: 0; color: var(--muted); font-size: .97rem; }
.tile .go { margin-top: auto; padding-top: var(--sp-2); font-weight: 700; font-size: .92rem; color: var(--blue-dark); }
.tile .go::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .2s var(--ease); }
.tile:hover .go::after { transform: translateX(3px); }
.tile .k { font-size: .8rem; font-weight: 700; color: var(--blue-dark); }
.tile-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; position: relative; z-index: 1; }
.tile-links a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: .6rem .75rem; margin: 0 -.75rem; border-radius: 10px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.tile-links a:hover { background: var(--blue-tint); color: var(--blue-dark); }
.tile-links small { color: var(--muted); font-weight: 500; }

/* the highlighted course tile (the comp's one blue card) */
.tile.feature {
  background: var(--blue); border-color: var(--blue); color: #fff; overflow: hidden;
  background-image: radial-gradient(120% 90% at 100% 0%, #6a6fff 0%, transparent 55%);
}
.tile.feature h3, .tile.feature .go, .tile.feature .k { color: #fff; }
.tile.feature p { color: #e1e3ff; }
.ladder { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: 6px; }
.ladder li {
  display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: var(--sp-3);
  font-size: .9rem; color: #e9eaff;
}
.ladder b { font-size: .78rem; font-weight: 700; color: #c5c8ff; text-transform: uppercase; letter-spacing: .04em; }
.ladder span {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px; padding: .45rem .7rem; width: var(--w, 100%);
}
.tile-broker-row { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; padding: var(--sp-2) 0; }
.tile-broker-row img { height: 20px; width: auto; border-radius: 0; opacity: .9; }
.tile-broker-row img.wt { height: 17px; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.feature { grid-row: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile.feature { grid-column: span 3; grid-row: span 2; }
  .tile.half { grid-column: span 3; }
}

/* FAQ in two columns on wide screens */
.faq-split { display: grid; gap: var(--sp-5) var(--sp-8); padding-top: var(--sp-section); }
.faq-split h2 { margin: 0 0 var(--sp-3); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); letter-spacing: -.03em; }
.faq-split .faq { margin: 0; }
.faq-split .faq-intro p { color: var(--ink-2); margin: 0 0 var(--sp-4); max-width: 26rem; }
@media (min-width: 960px) {
  .faq-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); align-items: start; }
  .faq-split .faq-intro { position: sticky; top: 6rem; }
}

/* =====================================================================
   Guides library: animated diagram cards
   ===================================================================== */
.lib-hero { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-6) var(--gutter) 0; }
.lib-hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.035em; line-height: 1.04; margin: var(--sp-3) 0 var(--sp-4); max-width: 15ch; }
.lib-hero .lead { color: var(--ink-2); font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); max-width: 38rem; margin: 0; }
.lib-jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: var(--sp-6) 0 0; padding: 0; list-style: none; }
.lib-jump a {
  display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--navy); font-weight: 650; font-size: .92rem;
  text-decoration: none; transition: border-color .2s, background .2s;
}
.lib-jump a:hover { border-color: var(--blue); }
.lib-jump small { color: var(--muted); font-weight: 600; }
.lib-sec { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-section) var(--gutter) 0; }
.lib-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-6); margin-bottom: var(--sp-5); }
.lib-head h2 { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -.03em; }
.lib-head p { margin: 0; color: var(--muted); max-width: 34rem; }

.lib-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 720px) { .gcard.wide { grid-column: span 2; } }

.gcard {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.gcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.gcard-body { padding: var(--sp-4) var(--sp-3) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.gcard-meta { margin: 0; font-size: .8rem; font-weight: 650; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35em .9em; }
.gcard-meta .vid { color: var(--blue-dark); display: inline-flex; align-items: center; gap: .3em; }
.gcard h3 { margin: 0; font-size: 1.18rem; line-height: 1.25; }
.gcard h3 a { color: var(--navy); text-decoration: none; }
.gcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.gcard:hover h3 a { color: var(--blue-dark); }
.gcard-body p:not(.gcard-meta) { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.gcard .read { margin-top: auto; padding-top: var(--sp-2); font-size: .9rem; font-weight: 700; color: var(--blue-dark); }
.gcard .read::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .2s var(--ease); }
.gcard:hover .read::after { transform: translateX(3px); }
.gcard .num { font-variant-numeric: tabular-nums; color: var(--blue-dark); }
/* wide card: diagram beside the text once there is room */
@media (min-width: 900px) {
  .gcard.wide { flex-direction: row; align-items: stretch; }
  .gcard.wide .viz { flex: 1.35; }
  .gcard.wide .gcard-body { flex: 1; padding: var(--sp-5) var(--sp-5) var(--sp-4); justify-content: center; }
  .gcard.wide h3 { font-size: 1.5rem; }
}

/* Deposit feature: one panel, four countries */
.dep {
  display: grid; gap: var(--sp-5); align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 8px; box-shadow: var(--shadow-sm);
}
.dep-copy { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
.dep-copy p { color: var(--ink-2); margin: 0 0 var(--sp-4); }
.dep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dep-list a {
  display: block; position: relative;
  padding: .7rem 2.4rem .7rem .8rem; border-radius: 12px; text-decoration: none; color: var(--navy); font-weight: 700;
  transition: background .2s;
}
.dep-list a small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.dep-list a::after { content: "\2192"; position: absolute; right: .9rem; top: 50%; margin-top: -.75em; color: var(--blue-dark); transition: transform .2s var(--ease); }
.dep-list a:hover { background: var(--blue-tint); }
.dep-list a:hover::after { transform: translateX(3px); }
.dep-list a.cur { background: var(--blue-tint); }
@media (min-width: 900px) { .dep { grid-template-columns: 1.4fr 1fr; } }

.soon { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-4); }
.soon li { padding: .45em .95em; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .92rem; }

/* ---------- The diagram panel ---------- */
.viz {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 16px; color: #e8eaff;
  background: radial-gradient(130% 120% at 0% 0%, #20267e 0%, #10134a 45%, #0a0c30 100%);
  display: flex; flex-direction: column;
}
.viz::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.viz-stage { flex: 1; display: flex; align-items: center; }
.viz-stage svg { display: block; width: 100%; height: auto; max-height: 380px; overflow: visible; }
.viz-tag {
  position: absolute; top: 12px; left: 14px; z-index: 1;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #9ea5d6; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: .2em .7em;
}
.viz-bar { display: flex; gap: 4px; padding: 0 14px; }
.viz-bar i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); position: relative; overflow: hidden; }
.viz-bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.viz-bar i.done::after { transform: scaleX(1); }
.viz-bar i.cur::after { transform: scaleX(1); transition: transform var(--d, 2s) linear; }
.viz-steps { margin: 0; padding: 10px 14px 14px 2.2em; font-size: .9rem; line-height: 1.4; color: #dfe2ff; font-weight: 550; }
.viz-steps li { margin: .2em 0; }
/* playing: one step at a time, stacked in the same grid cell so the panel never jumps */
.vz-ready:not(.vz-static) .viz-steps { display: grid; list-style: none; padding-left: 14px; }
.vz-ready:not(.vz-static) .viz-steps li {
  grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(5px);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.vz-ready:not(.vz-static) .viz-steps li.cur { opacity: 1; transform: none; }
.vz-static .viz-bar { display: none; }
.viz:not(.vz-ready) .viz-bar { display: none; }
.viz:not(.vz-ready) .viz-steps { padding-top: 16px; }

/* SVG scene vocabulary */
.viz svg text { font-family: "Schibsted Grotesk", system-ui, sans-serif; font-size: 10.5px; font-weight: 650; fill: #c9cdf6; }
.viz svg .big { font-size: 15px; font-weight: 800; fill: #fff; }
.viz svg .huge { font-size: 26px; font-weight: 800; fill: #fff; letter-spacing: -.02em; }
.viz svg .sm { font-size: 9.5px; font-weight: 600; }
.viz svg .dim { fill: #8f96c8; }
.viz svg .bold { font-size: 11px; font-weight: 800; }
.viz svg text { stroke: none !important; }
.vz { opacity: 0; transition: opacity .4s var(--ease), transform .5s var(--ease), fill .4s, stroke .4s; }
.vz.on { opacity: 1; }
.vz-c { transform: translateY(5px); transform-box: fill-box; transform-origin: 50% 100%; }
.vz-c.on { transform: none; }
.vz-c line { stroke-width: 1; }
.vz-c.up rect { fill: var(--c-up); } .vz-c.up line { stroke: var(--c-up); }
.vz-c.dn rect { fill: var(--c-dn); } .vz-c.dn line { stroke: var(--c-dn); }
.vz-c.hot rect { stroke: #fff; stroke-width: 1.2; }
.vz-c.ghost { filter: saturate(.2); }
.vz-c.ghost.on { opacity: .35; }
.vz-l { fill: none; stroke: #c9cdf6; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .8s var(--ease), opacity .3s, stroke .4s; }
.vz-l.on { stroke-dashoffset: 0; }
.vz-l.dash { stroke-dasharray: 3 3; stroke-dashoffset: 0; }
.vz-l.thick { stroke-width: 2; }
.vz-b { fill: rgba(169, 176, 255, .16); stroke: rgba(169, 176, 255, .6); stroke-width: 1; }
.vz-b.range { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .3); stroke-dasharray: 3 3; }
.vz-d { transform: scale(.4); transform-box: fill-box; transform-origin: 50% 50%; }
.vz-d.on { transform: none; }
.vz-t { transform: translateY(3px); }
.vz-t.on { transform: none; }
.chip circle { fill: rgba(127, 156, 255, .2); stroke: var(--c-liq); stroke-width: 1; }
.viz svg .chip text { font-size: 7.5px; font-weight: 800; fill: var(--c-liq); }
.viz .liq { stroke: var(--c-liq); fill: var(--c-liq); }
.viz .stop { stroke: var(--c-stop); fill: var(--c-stop); }
.viz .trig { stroke: var(--c-trig); fill: var(--c-trig); }
.viz .tgt { stroke: var(--c-tgt); fill: var(--c-tgt); }
.viz .up-c { stroke: var(--c-up); fill: var(--c-up); }
.viz .wh { stroke: #fff; fill: #fff; }
.viz .mut { stroke: #6f76ad; fill: #8f96c8; }
.viz .vz-l.liq, .viz .vz-l.stop, .viz .vz-l.trig, .viz .vz-l.tgt, .viz .vz-l.wh, .viz .vz-l.mut, .viz .vz-l.up-c { fill: none; }
.viz .spent { stroke: #5d6499 !important; }
.viz text.spent { fill: #6f76ad !important; stroke: none !important; }
.viz .vz-b.gap { fill: rgba(169, 176, 255, .2); stroke: var(--c-gap); }
.viz .vz-b.tgt-z { fill: rgba(63, 224, 207, .12); stroke: rgba(63, 224, 207, .5); }
.viz .vz-b.stop-z { fill: rgba(255, 95, 111, .12); stroke: rgba(255, 95, 111, .5); }
.viz .panel { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.viz .panel-solid { fill: #f4f5fb; stroke: none; }
.viz svg .ink { fill: #12143c; }
.viz .field { fill: #fff; stroke: #cfd4e8; stroke-width: 1; }
.viz .btn-f { fill: var(--blue); }
.viz .band-a { fill: rgba(169, 140, 255, .14); }
.viz .band-l { fill: rgba(127, 156, 255, .14); }
.viz .band-n { fill: rgba(63, 224, 207, .12); }
.viz .band-o { fill: rgba(255, 200, 69, .12); }
/* flash: a quick glow when something important lands */
.vz.flash.on { animation: vzflash .9s var(--ease); }
@keyframes vzflash { 0% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } 30% { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); } 100% { filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); } }
/* reset between loops */
.viz.vz-out .viz-stage { opacity: 0; transition: opacity .4s var(--ease); }
.viz.vz-instant .vz, .viz.vz-instant .viz-bar i::after, .viz.vz-instant .viz-steps li { transition: none !important; animation: none !important; }
.viz-stage { transition: opacity .4s var(--ease); }

/* hero-sized panel */
.viz--hero { border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset; background: radial-gradient(130% 120% at 0% 0%, rgba(42, 49, 166, .55) 0%, rgba(11, 14, 53, .7) 60%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viz--hero .viz-steps { font-size: .98rem; padding: 12px 18px 18px; }
.viz--hero .viz-bar { padding: 0 18px; }

/* ---------- Mobile ---------- */
@media (min-width: 721px) and (max-width: 960px) {
  .site-nav a { padding: .45em .6em; font-size: .9rem; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Header: two compact rows, links scroll sideways; it scrolls away with the page and
     the floating bottom CTA stays as the persistent action. */
  .site-header { position: static; padding: .6rem 0 .5rem; }
  .site-header .inner { flex-direction: column; align-items: stretch; gap: .45rem; }
  .brand { padding: 0 var(--gutter); }
  .site-nav {
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding: 0 var(--gutter) .1rem; gap: .2rem;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: .55em .85em; white-space: nowrap; background: rgba(255, 255, 255, .05); }
  .site-nav a.nav-cta { margin-left: .2rem; }
  .sticky-cta { font-size: .85rem; padding: .35rem .35rem .35rem .4rem; }
  .sticky-cta .msg { display: none; }
  .glass-row { grid-template-columns: 1fr; }
  .hero-dark .btn { width: 100%; }
  .hero-split .hero-ctas { flex-direction: column; }
  .section-head { padding-bottom: var(--sp-5); }
  .viz-steps { font-size: .88rem; }
  .ladder span { width: auto; }
}

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}
.gcard h3 a:focus-visible, .tile h3 a:focus-visible { outline: none; }
.gcard:has(h3 a:focus-visible), .tile:has(h3 a:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .pre { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Inner pages, 2026 refresh (brokers, tools, starter kit, course):
   all reuse .hero-dark.hero-split; only the pieces below are new.
   ===================================================================== */
.hero-dark .crumb, .hero-dark .crumb a { color: #9ea5d6; }
.hero-dark .crumb { margin: 0 0 var(--sp-4); }
.hero-dark .crumb a:hover { color: #fff; }
.hero-note a, .hero-note strong { color: #fff; }
/* framed illustration on the right of a split hero */
.hero-figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

/* Brokers: "at a glance" panel */
.glance-panel { text-align: left; }
.glance { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: grid; gap: var(--sp-2); }
.glance a {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); border-radius: var(--radius); text-decoration: none; color: inherit;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s;
}
.glance a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.glance-rk { font-weight: 800; color: var(--violet); font-variant-numeric: tabular-nums; width: 1ch; }
.glance-logo { background: #fff; border-radius: 10px; width: 7.5rem; height: 2.5rem; display: grid; place-items: center; }
.glance-logo img { height: 18px; width: auto; max-width: 6.2rem; border-radius: 0; }
.glance-txt b { display: block; color: #fff; font-size: .95rem; line-height: 1.3; }
.glance-txt small { margin: 2px 0 0; }
.brokers-page .broker-list { margin-top: var(--sp-section); }
@media (max-width: 420px) {
  .glance a { grid-template-columns: auto 1fr; }
  .glance-txt { grid-column: 2; }
}

/* Tools: zigzag of wide and narrow diagram cards */
.tool-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.gcard .btn { align-self: flex-start; margin-top: auto; padding: .6em 1.2em; font-size: .92rem; }
.gcard.wide .btn { margin-top: var(--sp-3); }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tool-grid { grid-template-columns: repeat(3, 1fr); } }

/* Starter kit: one divided panel instead of a card grid */
.kit-sec h2.kit-heading { margin: 0 0 var(--sp-5); padding-top: var(--sp-section); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: -.03em; }
.kit-sec .kit-cards { gap: 0; margin: 0 0 var(--sp-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.kit-sec .kit-card { background: none; border: 0; border-radius: 0; box-shadow: none; gap: var(--sp-3); }
.kit-sec .kit-card + .kit-card { border-top: 1px solid var(--line); }
.kit-sec .kit-card .kit-ic { width: auto; height: auto; background: none; margin-top: 2px; }
.kit-pair { display: grid; gap: var(--sp-4); }
.kit-pair .kit-get, .kit-pair .kit-alt { margin: 0; }
@media (min-width: 820px) {
  .kit-sec .kit-cards { grid-template-columns: repeat(3, 1fr); }
  .kit-sec .kit-card { flex-direction: column; }
  .kit-sec .kit-card + .kit-card { border-top: 0; border-left: 1px solid var(--line); }
  .kit-pair { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

/* Course: progress in the hero, levels as a numbered path */
.hero-progress { max-width: 26rem; margin: 0 0 var(--sp-5); }
.hero-dark .progress-wrap { background: rgba(255, 255, 255, .14); }
.hero-dark .progress-label { color: #9ea5d6; margin-bottom: 0; }
.course-path { padding-top: var(--sp-section); }
.path { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: var(--sp-5); }
.path::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--blue-line); }
.path-step { position: relative; padding-left: 56px; }
.path-num {
  position: absolute; left: 0; top: var(--sp-4); width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 6px var(--bg);
}
/* a level turns green once every lesson in it is ticked (app.js adds .done) */
.path-step:not(:has(.lesson-list li:not(.done))) .path-num { background: var(--green); }
.path-step .level { margin: 0; }
.level-head .level-count { font-size: .84rem; font-weight: 700; color: var(--blue-dark); margin-top: var(--sp-3); }
@media (min-width: 820px) {
  .path-step .level { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .path-step .level-head { border-bottom: 0; border-right: 1px solid var(--line); padding: var(--sp-5); }
  .path-step .level-head h2 { font-size: 1.25rem; }
}
