:root {
  color-scheme: dark;
  --bg: #0E0F13;
  --panel: #17181C;
  --ink: #F1F2F4;
  --muted: #A2A6B0;
  --line: #2B2C32;
  --grid: #1D1E23;
  --accent: #E23B49;
  --accent-ink: #FFFFFF;
  --accent-soft: #472025;
  --topbar: #0B0C0F;
  --topbar-ink: #F1F2F4;
  --sel: #221619;
  --hover: #1D1E23;
  --scrim: rgba(0, 0, 0, .6);
  --logo-accent: #E23B49;
  --font-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", "Arial Black", system-ui, -apple-system, "Segoe UI", sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
svg { display: block; flex: none; }

/* ---------- Shell ---------- */
.app { height: 100%; display: none; flex-direction: column; min-height: 0; }
.topbar {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: var(--topbar);
  color: var(--topbar-ink);
  border-bottom: 1px solid var(--accent-soft);
}
.back, .side-back { color: inherit; text-decoration: none; }
.back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  padding: 6px 8px; margin-left: -8px; border-radius: 6px;
}
.back:hover { background: rgba(255,255,255,.1); }
.menu-btn { display: none; padding: 6px; margin-left: -6px; border-radius: 6px; }
.menu-btn:hover { background: rgba(255,255,255,.1); }
.brand {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800; font-stretch: 125%;
  font-size: 14px; letter-spacing: .14em;
}
.brand svg { color: var(--ink); }

.workspace {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
}

/* ---------- Sidebar ---------- */
.sidebar { overflow-y: auto; padding: 16px 10px 48px 10px; background: var(--bg); overscroll-behavior: contain; }
.course-card {
  background: var(--panel);
  border-radius: 6px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
}
.course-card h1 {
  margin: 0 0 16px;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 26px; font-weight: 800; font-stretch: 125%; letter-spacing: .06em; line-height: 1.1;
}
.course-card h1 svg { color: var(--ink); }
.bar { height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .35s ease; }
.pct { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.pct b { color: var(--ink); font-weight: 600; }

.side-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px 0 14px 6px; font-size: 13px; color: var(--muted);
}
.side-back:hover { color: var(--ink); }

.search { position: relative; margin: 0 0 14px; }
.search input {
  width: 100%; height: 42px;
  padding: 0 40px 0 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 4px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.no-match { padding: 18px 10px; color: var(--muted); font-size: 14px; }

/* Sections */
.sec + .sec { border-top: 1px solid var(--line); }
.sec-h { margin: 0; }
.sec-btn {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 16px 12px 16px 6px;
  border-radius: 4px;
}
.sec-btn:hover { background: var(--hover); }
.sec-title { flex: 1; font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.005em; }
.sec-count { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chev { color: var(--muted); transition: transform .2s ease; }
.sec-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sec.first-open .sec-btn { border-bottom: 1px solid var(--ink); border-radius: 4px 4px 0 0; }

.tick {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  border: 2px solid var(--accent-soft);
  color: transparent;
}
.tick.sm { width: 18px; height: 18px; border-width: 2px; }
.tick.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.lessons { list-style: none; margin: 0; padding: 0; }
.lesson { display: flex; align-items: flex-start; gap: 4px; border-radius: 0; }
.lesson:hover { background: var(--hover); }
.lesson.is-current { background: var(--sel); box-shadow: inset 3px 0 0 var(--accent); }
.l-check { padding: 15px 4px 15px 12px; }
.l-main { flex: 1; min-width: 0; padding: 12px 12px 12px 8px; display: block; }
.l-title { display: block; font-size: 15.5px; line-height: 1.35; }
.lesson.is-current .l-title { font-weight: 600; }
.l-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px;
  margin-top: 5px; font-size: 12px; color: var(--muted);
}
.l-meta .dot { opacity: .7; }

/* ---------- Lesson pane ---------- */
.pane { overflow-y: auto; background: var(--panel); border-left: 1px solid var(--line); min-width: 0; }
.pane-h {
  position: sticky; top: 0; z-index: 2;
  background: var(--panel);
  padding: 18px 32px 16px;
  border-bottom: 1px solid var(--line);
}
.pane-h .crumb { font-size: 12.5px; color: var(--muted); margin: 0 0 3px; }
.pane-h h2 { margin: 0; font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: -.005em; }

.pane-body { max-width: 940px; margin: 0 auto; padding: 28px 32px 64px; }

/* Media / content slot */
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  display: grid; place-items: center;
}
/* price-axis strip down the right edge */
.stage::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0; width: 46px;
  background-color: var(--panel);
  border-left: 1px solid var(--line);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, var(--line) 43px, var(--line) 44px);
  background-size: 10px 100%;
  background-repeat: no-repeat;
  background-position: left top;
}
.stage-msg { position: relative; z-index: 1; text-align: center; padding: 20px 60px 20px 20px; max-width: 420px; }
.play {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--panel); color: var(--accent);
  border: 2px solid var(--accent-soft);
}
.stage-msg strong { display: block; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.stage-msg span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

.stage.doc { aspect-ratio: auto; min-height: 320px; padding: 36px; align-items: start; justify-items: start; background-image: none; }
.stage.doc::after { display: none; }
.stage.doc .stage-msg { text-align: left; padding: 0; max-width: 520px; }
.lines { display: grid; gap: 12px; margin-top: 22px; width: min(520px, 100%); }
.lines i { display: block; height: 10px; border-radius: 5px; background: var(--grid); }
.lines i:nth-child(1) { width: 92%; }
.lines i:nth-child(2) { width: 100%; }
.lines i:nth-child(3) { width: 78%; }
.lines i:nth-child(4) { width: 96%; }
.lines i:nth-child(5) { width: 54%; }

/* Tabs */
.tabs { display: flex; gap: 26px; margin: 30px 0 0; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 0; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { padding: 22px 0 0; }
.empty {
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 28px 24px; color: var(--muted); font-size: 14.5px;
}
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

/* Lesson nav */
.lesson-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 6px;
  font-weight: 500; font-size: 14.5px; white-space: nowrap;
  background: var(--panel);
}
.btn:hover:not(:disabled) { background: var(--hover); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(1.08); }
.btn.primary.is-done { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }

.scrim { display: none; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .brand { display: none; }
  .topbar { padding: 0 14px; }
  .sidebar {
    position: fixed; z-index: 20;
    top: calc(54px + env(safe-area-inset-top, 0px));
    bottom: env(safe-area-inset-bottom, 0px);
    left: 0; width: min(380px, 88vw);
    transform: translateX(-102%);
    transition: transform .25s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 10; background: var(--scrim);
  }
  .side-back { display: none; }
  .pane { border-left: 0; }
  .pane-h { padding: 14px 18px 12px; }
  .pane-body { padding: 20px 18px 48px; }
  .stage::after { width: 30px; }
  .stage-msg { padding-right: 44px; }
  .stage.doc { padding: 22px; }
  .lesson-nav { flex-wrap: wrap; }
  .lesson-nav .btn.primary { order: -1; width: 100%; justify-content: center; }
  .lesson-nav .btn:not(.primary) { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Coming-soon gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  overflow: hidden;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  color: #F3F3F4;
  background:
    radial-gradient(85% 70% at 92% 0%, rgba(160, 14, 28, .5) 0%, transparent 60%),
    radial-gradient(60% 55% at 0% 100%, rgba(96, 8, 18, .4) 0%, transparent 60%),
    linear-gradient(120deg, #050506 0%, #0B0709 55%, #16060A 100%);
}
html[data-view="site"] .gate { display: none; }
.gate canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.gate-inner { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: center; }

.gate canvas.prism {
  inset: auto; left: 50%; top: 50%;
  width: min(640px, 120vw); height: auto; aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.wm { position: relative; display: flex; flex-direction: column; align-items: flex-end; }
.wm-row { display: flex; align-items: center; gap: 8px; }
.wm-mark { flex: none; width: clamp(50px, 11.5vw, 86px); height: clamp(50px, 11.5vw, 86px); }
.wm-name {
  font-family: var(--font-head);
  font-size: clamp(40px, 11.5vw, 82px);
  font-weight: 800; font-stretch: 125%;
  line-height: 1; letter-spacing: .03em; color: #fff;
}
.wm-tag { font-size: clamp(16px, 3.4vw, 22px); font-weight: 400; line-height: 1.2; margin-top: 8px; color: rgba(243, 243, 244, .85); }
.wm-tag em { font-style: normal; font-weight: 600; color: #FF3B4A; }
.wm-tag .d { color: #FF3B4A; animation: dot-pulse 1.8s ease-in-out infinite; }
.wm-tag .d:nth-of-type(2) { animation-delay: .25s; }
.wm-tag .d:nth-of-type(3) { animation-delay: .5s; }
@keyframes dot-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.gate-card {
  position: relative;
  width: min(360px, 100%);
  margin-top: 44px;
  padding: 16px 18px 14px;
  background: rgba(8, 8, 9, .9);
  border: 1px solid rgba(255, 255, 255, .13);
  border-top: 2px solid #E5202F;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .55);
  font-size: 13.5px; line-height: 1.6;
}
.gc-body { margin: 0 0 14px; color: rgba(243, 243, 244, .86); font-size: 14px; }
.gate :focus-visible { outline-color: #FF5A67; }
.interest { display: flex; flex-wrap: wrap; gap: 8px; }
.interest input[type="email"] {
  flex: 1 1 100%; min-width: 0; height: 40px; padding: 0 12px;
  font: inherit; font-size: 13.5px; color: #fff;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px;
}
.interest input[type="email"]::placeholder { color: rgba(243, 243, 244, .5); }
.interest .go {
  flex: 1 1 100%; height: 40px; padding: 0 14px; border-radius: 6px; text-align: center;
  font-size: 14px; font-weight: 600; color: #fff; background: #D41B2A; white-space: nowrap;
}
.interest .go:hover:not(:disabled) { background: #E5202F; }
.interest .go:disabled { opacity: .6; cursor: default; }
#interestMsg:empty { display: none; }
#interestMsg { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.4; color: #FF9B93; }
#interestMsg.ok { color: rgba(243, 243, 244, .9); font-size: 13.5px; font-weight: 500; }
.interest.is-done input, .interest.is-done .go { display: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Site navigation & pages ---------- */
.page-block { display: none; }
body[data-page="home"] #page-home,
body[data-page="landing"] #page-landing,
body[data-page="investing"] #page-investing,
body[data-page="trading"] #page-trading,
body[data-page="edgehub"] #page-edgehub,
body[data-page="course"] #page-course,
body[data-page="lesson"] #page-lesson,
body[data-page="psych"] #page-psych,
body[data-page="risk"] #page-risk,
body[data-page="edgelocked"] #page-edgelocked,
body[data-page="contact"] #page-contact { display: block; }

/* ---------- Technical Trading: course hub ---------- */
.course-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.course-head h1 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 4.4vw, 36px); }
.course-progress { min-width: 220px; }
.course-progress .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.course-progress .bar > span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .35s ease; }
.course-progress .pct { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.course-progress .pct b { color: var(--ink); font-weight: 700; }
.course-search { position: relative; margin-bottom: 24px; max-width: 360px; }
.course-search input {
  width: 100%; height: 42px; padding: 0 40px 0 16px;
  font: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.course-search input::placeholder { color: var(--muted); }
.course-search svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.no-match { padding: 14px 2px; color: var(--muted); font-size: 14px; }

.sec-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.sec-card-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.sec-card-head:hover { background: var(--hover); }
.sec-card-head .tick { flex: none; }
.sec-card-head .sec-title { flex: 1; font-weight: 700; font-family: var(--font-head); font-size: 15.5px; }
.sec-card-head .sec-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-card-head svg.chev { color: var(--muted); transition: transform .2s ease; flex: none; }
.sec-card-head[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.sec-lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sec-lessons li { border-top: 1px solid var(--line); }
.sec-lessons li:first-child { border-top: 0; }
.sec-lessons button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 20px; text-align: left; }
.sec-lessons button:hover { background: var(--hover); }
.sec-lessons .tick.sm { flex: none; }
.sec-lessons .l-title { flex: 1; font-size: 14.5px; }
.sec-lessons .l-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); flex: none; }

/* ---------- Technical Trading: lesson view ---------- */
.lesson-head { margin-bottom: 22px; }
.lesson-head .crumb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lesson-head .crumb-back { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.lesson-head .crumb-back:hover { color: var(--ink); }
.lesson-head .crumb-sec { font-size: 13px; color: var(--muted); }
.lesson-head h1 { margin: 0; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 4vw, 30px); }
.tv-chart-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #131722; height: 520px; }
.tv-chart-wrap .tv-fallback { height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-size: 13.5px; }

@media (max-width: 720px) {
  .tv-chart-wrap { height: 360px; }
  .course-head { flex-direction: column; align-items: flex-start; }
}

.site-nav {
  display: flex;
  align-items: center; gap: 20px;
  height: 64px; padding: 0 28px;
  background: var(--topbar); color: var(--topbar-ink);
  border-bottom: 1px solid var(--accent-soft);
  position: sticky; top: 0; z-index: 5;
}
.site-nav .brand2 {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 800; font-stretch: 125%;
  font-size: 14px; letter-spacing: .14em;
}
.site-nav .brand2 svg { color: var(--ink); }
.site-nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; overflow-x: auto; max-width: 100%; }
.site-nav-links button {
  display: inline-flex; align-items: center; gap: 6px; flex: none; white-space: nowrap;
  height: 36px; padding: 0 14px; border-radius: 6px;
  font-size: 13.5px; font-weight: 500; color: var(--topbar-ink); opacity: .75;
}
.site-nav-links button:hover { background: rgba(255,255,255,.1); opacity: 1; }
.site-nav-links button.is-active { opacity: 1; background: rgba(255,255,255,.14); }
.site-nav-links button.edge-link.is-unlocked { color: var(--accent); opacity: 1; }

.page-wrap { max-width: 980px; margin: 0 auto; padding: 56px 24px 90px; }

/* Landing */
.landing-hero { text-align: center; padding: 70px 24px 10px; }
.landing-hero svg.mark { width: 56px; height: 56px; margin-bottom: 18px; color: var(--accent); }
.landing-hero h1 {
  margin: 0; font-family: var(--font-head); font-weight: 800; font-stretch: 125%;
  font-size: clamp(30px, 6vw, 44px); letter-spacing: .01em;
}
.landing-hero p { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.choice-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 880px; margin: 44px auto 0; padding: 0 24px 80px;
}
.choice-card {
  display: block; width: 100%; text-align: left;
  padding: 34px 30px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
}
.choice-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.choice-card .cc-icon {
  width: 44px; height: 44px; border-radius: 10px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.choice-card h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 21px; font-weight: 700; }
.choice-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.choice-card .cc-go { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

.page-head { margin-bottom: 30px; }
.page-head h1 { margin: 0 0 8px; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 4.4vw, 36px); }
.page-head p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 640px; line-height: 1.65; }

.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.list-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px 26px 12px; }
.list-card h3 { margin: 0 0 4px; font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.list-card .lc-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list .rk { flex: none; width: 22px; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 13px; }
.rank-list .rk-name { flex: 1; color: var(--ink); font-weight: 500; }

.asset-row { border-top: 1px solid var(--line); }
.asset-row:first-child { border-top: 0; }
.asset-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 4px; text-align: left; }
.asset-btn:hover { background: var(--hover); }
.asset-btn svg.chev { flex: none; color: var(--muted); transition: transform .2s ease; }
.asset-btn[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.asset-detail { padding: 4px 4px 20px 38px; }
.asset-chart { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #131722; height: 320px; margin-bottom: 12px; }
.asset-chart .tv-fallback { height: 100%; display: grid; place-items: center; text-align: center; padding: 18px; color: var(--muted); font-size: 13px; }
.asset-blurb { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 520px; }

@media (max-width: 720px) {
  .asset-chart { height: 240px; }
  .asset-detail { padding-left: 4px; }
}

.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.market-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.market-card h4 { margin: 0 0 6px; font-family: var(--font-head); font-size: 15.5px; font-weight: 700; }
.market-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.empty-note { border: 1px dashed var(--line); border-radius: 8px; padding: 16px 18px; color: var(--muted); font-size: 13.5px; }

.edge-panel { margin-top: 56px; padding: 38px 34px; border-radius: 18px; background: linear-gradient(160deg, var(--sel), var(--panel)); border: 1px solid var(--line); }
.edge-panel .ep-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.edge-panel h2 { margin: 6px 0 10px; font-family: var(--font-head); font-weight: 800; font-size: clamp(22px, 4vw, 28px); }
.edge-panel > p { margin: 0 0 24px; color: var(--muted); font-size: 15px; max-width: 560px; line-height: 1.65; }
.pillars { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.pillar { flex: 1 1 160px; display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.pillar svg { flex: none; color: var(--accent); }
.pillar span { font-size: 13.5px; font-weight: 600; }
.edge-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.edge-price { font-family: var(--font-head); font-size: 26px; font-weight: 800; }
.edge-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.edge-note:empty { display: none; }
.edge-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.hub-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: block; width: 100%; text-align: left; }
.hub-card.is-live:hover { border-color: var(--accent); }
.hub-card .hc-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.hub-card h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.hub-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.hub-card .hc-tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 5px; }
.hub-card.is-live .hc-tag { background: var(--accent-soft); color: var(--accent); }
.hub-card.is-soon .hc-tag { background: var(--hover); color: var(--muted); }

@media (max-width: 720px) {
  .choice-grid { grid-template-columns: 1fr; }
  .list-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .page-wrap { padding: 40px 18px 70px; }
  .edge-cta { flex-direction: column; align-items: flex-start; }
  .site-nav { padding: 0 12px; gap: 6px; }
  .site-nav .brand2 span, .site-nav .brand2 { font-size: 11.5px; letter-spacing: .08em; }
  .site-nav .brand2 svg { width: 18px; height: 18px; }
  .site-nav-links { gap: 0; }
  .site-nav-links button { padding: 0 6px; font-size: 11px; gap: 3px; }
  .site-nav-links button svg { width: 11px; height: 11px; }
}
@media (max-width: 400px) {
  .site-nav .brand2 { display: none; }
}

/* ---------- Homepage ---------- */
.home-hero {
  position: relative; overflow: hidden;
  padding: 84px 24px 72px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(160, 14, 28, .38) 0%, transparent 62%),
    radial-gradient(40% 50% at 0% 100%, rgba(96, 8, 18, .22) 0%, transparent 60%),
    var(--bg);
}
.home-prism {
  position: absolute; top: -40px; right: -30px;
  width: clamp(220px, 34vw, 440px); height: auto; aspect-ratio: 1;
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; }
.home-wm { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.home-wm svg { width: clamp(34px, 5vw, 46px); height: clamp(34px, 5vw, 46px); }
.home-wm span {
  font-family: var(--font-head); font-weight: 800; font-stretch: 125%;
  font-size: clamp(26px, 4.4vw, 38px); letter-spacing: .04em; line-height: 1;
}
.home-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.home-hero h1 {
  margin: 0; max-width: 700px;
  font-family: var(--font-head); font-weight: 800; font-stretch: 112%;
  font-size: clamp(34px, 6.4vw, 60px); line-height: 1.04; letter-spacing: -.01em;
  text-wrap: balance;
}
.home-hero h1 em { font-style: normal; color: var(--accent); }
.home-lede { margin: 22px 0 0; max-width: 580px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-ctas .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.btn.ghost { background: transparent; color: var(--ink); text-decoration: none; }
.btn.ghost:hover { background: var(--hover); }

/* moving logo banner */
.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--topbar); }
.ticker-track { display: flex; width: max-content; animation: ticker 150s linear infinite; will-change: transform; }
.ticker-set { display: flex; align-items: center; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 22px; padding: 15px 0 15px 22px;
  font-family: var(--font-head); font-weight: 700; font-stretch: 125%;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--muted);
}
.ticker-item svg { width: 16px; height: 16px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.home-sec { max-width: 980px; margin: 0 auto; padding: 76px 24px 0; }
.home-sec:last-of-type { padding-bottom: 90px; }
#traits { scroll-margin-top: 72px; }
.home-sec h2 {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; font-stretch: 112%;
  font-size: clamp(24px, 4vw, 34px); line-height: 1.12; text-wrap: balance;
}
.home-sec .sec-lede { margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 620px; }

.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.about-grid p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-grid p b { color: var(--ink); font-weight: 600; }

.do-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.do-card {
  display: flex; flex-direction: column; width: 100%; text-align: left;
  padding: 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s ease, transform .15s ease;
}
.do-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.do-card .hc-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.do-card h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.do-card p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; line-height: 1.6; flex: 1; }
.do-card .cc-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

.traits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.trait { padding: 24px 24px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trait svg { color: var(--accent); margin-bottom: 14px; }
.trait h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 16px; font-weight: 700; }
.trait p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.not-for {
  margin-top: 22px; padding: 20px 22px; border-radius: 10px;
  background: var(--sel); border: 1px solid var(--accent-soft);
  display: flex; gap: 14px; align-items: flex-start;
}
.not-for svg { color: var(--accent); margin-top: 2px; }
.not-for b { display: block; margin-bottom: 4px; font-weight: 600; }
.not-for p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding-top: 18px; border-top: 2px solid var(--line); }
.steps li:first-child { border-top-color: var(--accent); }
.steps .step-n { font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.steps h3 { margin: 6px 0 6px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

.home-final {
  margin-top: 76px; padding: 40px 34px; border-radius: 18px;
  background: linear-gradient(160deg, var(--sel), var(--panel)); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.home-final h2 { margin: 0 0 6px; }
.home-final p { margin: 0; color: var(--muted); font-size: 15px; }
.home-disclaimer { margin: 30px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 720px; }

@media (max-width: 860px) {
  .do-grid, .steps { grid-template-columns: 1fr; }
  .traits { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 560px) {
  .home-hero { padding: 56px 18px 52px; }
  .home-prism { top: -20px; right: -50px; opacity: .8; }
  .home-sec { padding: 56px 18px 0; }
  .traits { grid-template-columns: 1fr; }
  .home-final { padding: 28px 22px; }
  .home-ctas .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
/* ---------- Trading Edge members' area ---------- */
.edge-shell { display: none; }
body[data-area="edge"] .site-nav { display: none; }
body[data-area="edge"] .edge-shell { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.edge-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 14px 18px;
  background: var(--topbar); border-right: 1px solid var(--accent-soft);
}
.es-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.es-brand b { display: block; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: 14px; letter-spacing: .14em; line-height: 1.2; }
.es-brand span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.es-nav { display: flex; flex-direction: column; gap: 2px; }
.es-nav button, .es-exit {
  display: flex; align-items: center; gap: 11px; width: 100%;
  height: 42px; padding: 0 10px; border-radius: 7px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.es-nav button:hover, .es-exit:hover { background: var(--hover); color: var(--ink); }
.es-nav button.is-active { background: var(--sel); color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.es-nav button.is-active svg { color: var(--accent); }
.es-label { flex: 1; white-space: nowrap; }
.es-meta { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.es-soon { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: var(--hover); }
.es-exit { margin-top: auto; font-size: 13px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 14px; height: auto; padding-bottom: 4px; }
.edge-main { min-width: 0; }

.edge-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.edge-h2 { margin: 40px 0 14px; font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.resume {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: 16px;
  background: linear-gradient(160deg, var(--sel), var(--panel)); border: 1px solid var(--accent-soft);
}
.resume .r-label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.resume h2 { margin: 0 0 4px; font-family: var(--font-head); font-size: 22px; font-weight: 800; }
.resume p { margin: 0; color: var(--muted); font-size: 14px; }
.resume .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.stat { padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.part-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.part-card { display: flex; flex-direction: column; width: 100%; text-align: left; padding: 24px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .15s ease; }
.part-card:hover { border-color: var(--accent); }
.part-card .hc-icon { width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.part-card .pc-n { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.part-card h3 { margin: 4px 0 6px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.part-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; }
.part-card .bar { height: 5px; }
.part-card .pc-foot { margin-top: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.part-card .hc-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 5px; background: var(--hover); color: var(--muted); }

.soon-hero .hc-icon { width: 48px; height: 48px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.soon-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 5px; background: var(--hover); color: var(--muted); }
.soon-hero h1 { margin: 12px 0 8px; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 4.4vw, 36px); }
.soon-hero p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 600px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 640px; }
.soon-list li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--panel); font-size: 15px; }
.soon-list svg { color: var(--accent); }
.soon-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.soon-foot p { margin: 0; color: var(--muted); font-size: 14.5px; }

@media (max-width: 860px) {
  body[data-area="edge"] .edge-shell { grid-template-columns: minmax(0, 1fr); }
  .edge-side {
    position: sticky; top: 0; z-index: 5; height: auto;
    flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 8px; padding: 12px 12px 0;
    border-right: 0; border-bottom: 1px solid var(--accent-soft);
  }
  .es-meta { display: none; }
  .es-brand { padding: 0; }
  .es-nav { order: 3; flex: 1 1 100%; flex-direction: row; overflow-x: auto; }
  .es-nav button { width: auto; flex: none; height: 42px; padding: 0 10px; font-size: 13px; border-radius: 0; }
  .es-nav button svg { display: none; }
  .es-label[data-short] { font-size: 0; }
  .es-label[data-short]::after { content: attr(data-short); font-size: 13px; }
  .es-nav button.is-active { background: transparent; box-shadow: inset 0 -2px 0 var(--accent); }
  .es-exit { margin: 0; width: auto; flex: none; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; height: 34px; font-size: 12.5px; gap: 6px; }
  .part-grid, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .resume { padding: 22px; }
  .resume .btn { width: 100%; justify-content: center; }
}
/* ---------- Trading page diagrams ---------- */
.trading-intro { margin: 0; max-width: 680px; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.tr-h2 { margin: 48px 0 14px; font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.tr-lede { margin: -4px 0 0; color: var(--muted); font-size: 15px; max-width: 620px; }
.dg-fig { margin: 0; padding: 22px 22px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.dg-scroll { overflow-x: auto; }
.dg { display: block; width: 100%; min-width: 560px; height: auto; color: var(--ink); }
.dg-fig figcaption { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.65; }
.dg-fig figcaption b { color: var(--ink); font-weight: 600; }
.dg-grid { stroke: var(--line); stroke-width: 1; }
.dg-axis { fill: var(--muted); font-size: 12px; font-family: var(--font-ui); font-variant-numeric: tabular-nums; }
.dg-price { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.dg-profit-area { fill: #2FBF7A; fill-opacity: .12; }
.dg-profit-fill { fill: #2FBF7A; }
.dg-bracket { stroke: #2FBF7A; stroke-width: 2; }
.dg-profit-t { fill: #3FD68C; font-size: 15px; font-weight: 700; font-family: var(--font-head); }
.dg-entry { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.dg-dot { fill: var(--accent); stroke: var(--panel); stroke-width: 3; }
.dg-step { fill: var(--ink); font-size: 13.5px; font-weight: 600; font-family: var(--font-ui); }
.dg-n { fill: var(--accent); font-weight: 800; font-family: var(--font-head); }
.dg-axisline { stroke: var(--muted); stroke-width: 1.5; }
.dg-tick { stroke: var(--muted); stroke-width: 1.5; }
.dg-br-trade { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.dg-br-trade-t { fill: var(--accent); font-size: 14px; font-weight: 700; font-family: var(--font-head); }
.dg-br-swing { fill: none; stroke: #F2C94C; stroke-width: 2.5; }
.dg-br-swing-t { fill: #F2C94C; font-size: 14px; font-weight: 700; font-family: var(--font-head); }
.dg-long { fill: var(--muted); font-weight: 500; }
.dg-br-invest { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.dg-br-invest-t { fill: var(--muted); font-size: 14px; font-weight: 700; font-family: var(--font-head); }
.market-grid { margin-top: 16px; }
@media (max-width: 560px) { .dg-fig { padding: 16px 14px 14px; } }
.page-head .edge-kicker { margin: 0 0 8px; font-size: 12.5px; color: var(--accent); }
.list-grid { align-items: start; }

/* ---------- Investing diagram ---------- */
.dg-grow { fill: none; stroke: #2FBF7A; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dg-grow-area { fill: #2FBF7A; fill-opacity: .1; }
.dg-grow-dot { fill: #2FBF7A; stroke: var(--panel); stroke-width: 3; }
.dg-val { fill: #3FD68C; font-size: 14px; font-weight: 700; font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.dg-cash { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 6 5; }
.dg-cash-t { fill: var(--muted); font-size: 12.5px; font-weight: 600; font-family: var(--font-ui); }
.dg-note { fill: var(--muted); font-size: 12.5px; font-style: italic; font-family: var(--font-ui); }
.dg-small { display: block; margin-top: 8px; font-size: 12.5px; opacity: .85; }
.inv-fig { margin-bottom: 8px; }
.dg-lead { stroke: var(--muted); stroke-width: 1; }

/* ---------- Pricing + payment methods ---------- */
.pay-methods { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pay-methods li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.2); font-size: 13px; font-weight: 500; color: var(--ink); }
.pay-methods svg { color: var(--muted); }

/* ---------- Locked Trading Edge page ---------- */
.lock-hero { max-width: 680px; }
.lock-badge { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.lock-hero h1 { margin: 0 0 12px; font-family: var(--font-head); font-weight: 800; font-stretch: 112%; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; text-wrap: balance; }
.lock-hero > p:last-child { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.lock-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 40px; }
.lock-parts { display: grid; gap: 12px; }
.lock-part { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.lock-part .hc-icon { flex: none; width: 40px; height: 40px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.lock-part .pc-n { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lock-part h3 { margin: 3px 0 4px; font-family: var(--font-head); font-size: 17px; font-weight: 700; }
.lock-part p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lock-outline { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lock-outline li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--panel); border-top: 1px solid var(--line); font-size: 14.5px; }
.lock-outline li:first-child { border-top: 0; }
.lock-outline .lo-n { width: 22px; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lock-outline .lo-t { flex: 1; font-weight: 500; }
.lock-outline .lo-c { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lock-outline svg { color: var(--muted); }
.lock-card { position: sticky; top: 88px; padding: 26px 24px 22px; border-radius: 18px; background: linear-gradient(160deg, var(--sel), var(--panel)); border: 1px solid var(--accent-soft); }
.lock-card .r-label { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.lock-price { display: flex; align-items: flex-end; gap: 10px; }
.lock-price > span { font-family: var(--font-head); font-weight: 800; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.lock-price small { font-size: 12.5px; line-height: 1.35; color: var(--muted); padding-bottom: 4px; }
.lock-gets { list-style: none; margin: 20px 0 22px; padding: 0; display: grid; gap: 10px; }
.lock-gets li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.lock-gets svg { flex: none; margin-top: 2px; color: var(--accent); }
.lock-btn { width: 100%; justify-content: center; height: 48px; font-size: 15.5px; }
.pay-label { margin: 20px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lock-card .pay-methods { margin-top: 10px; gap: 6px; }
.lock-card .pay-methods li { height: 30px; padding: 0 9px; font-size: 12.5px; }
.lock-fine { margin: 16px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .lock-grid { grid-template-columns: minmax(0, 1fr); }
  .lock-card { position: static; order: -1; }
}
.lock-gets b { font-weight: 600; }
.pillars .pillar { flex: 1 1 140px; }
.lock-gets .gets-discord { margin-top: 4px; padding: 12px; border-radius: 10px; background: rgba(88,101,242,.12); border: 1px solid rgba(88,101,242,.35); align-items: center; }
.gd-badge { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #5865F2; color: #fff; }
.lock-gets .gets-discord svg { margin-top: 0; color: #fff; }
.site-nav-links button.edge-link-locked { color: var(--ink); opacity: .9; }
.site-nav-links button.edge-link-locked.is-active { opacity: 1; }

/* Locked page outline: expandable sections */
.lock-outline li.lo-sec { display: block; padding: 0; }
.lo-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 18px; text-align: left; font-size: 14.5px; }
.lo-head:hover { background: var(--hover); }
.lo-head svg.chev { color: var(--muted); transition: transform .2s ease; }
.lo-head[aria-expanded="true"] svg.chev { transform: rotate(180deg); }
.lo-lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); background: var(--bg); }
.lock-outline .lo-lessons li.lo-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 52px; border-top: 1px solid var(--line); background: transparent; font-size: 14px; }
.lock-outline .lo-lessons li.lo-lesson:first-child { border-top: 0; }
.lo-lesson .l-title { flex: 1; color: var(--muted); }
.lo-lesson .l-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.lo-lesson .l-title { font-size: 14px; }

/* Locked outline: hidden sections */
.lo-hidden .lo-head { cursor: default; }
.lo-hidden .lo-head:hover { background: transparent; }
.lo-hidden .lo-t { display: flex; align-items: center; }
.lo-redact { display: block; height: 11px; border-radius: 6px; background: linear-gradient(90deg, var(--line), var(--hover)); filter: blur(.4px); }
.lo-hidden .lo-n { opacity: .6; }
.lo-hidden .lo-c { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lo-more { display: flex; align-items: center; gap: 10px; margin: 12px 2px 0; font-size: 13.5px; color: var(--muted); }
.lo-more svg { flex: none; color: var(--accent); }
.lo-soon { margin-top: 6px; }
.lo-plus { flex: none; width: 14px; text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 16px; line-height: 1; color: var(--accent); }
.lock-outline .lo-head { cursor: default; }
.lock-outline .lo-head:hover { background: transparent; }
.lock-outline .lo-head svg { color: var(--muted); }

/* ---------- Membership plans ---------- */
.plans { margin-top: 36px; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 18px; }
.plan-basic { background: linear-gradient(160deg, var(--sel), var(--panel)); border: 1px solid var(--accent-soft); }
.plan-pro { --gold: #F2C94C; background: linear-gradient(160deg, rgba(242,201,76,.10), var(--panel) 60%); border: 1px solid rgba(242,201,76,.45); }
.plan-name { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.plan-pro .plan-name, .plan-pro .lock-price > span, .plan-pro .plan-plus { color: var(--gold); }
.plan-pro .lock-gets svg { color: var(--gold); }
.plan-lede { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.plan-plus { margin: 18px 0 -8px; font-size: 13px; font-weight: 600; }
.plan .lock-gets { flex: 1; margin-bottom: 22px; }
.plan .lock-gets b { font-weight: 600; }
.plan-tag { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #1A1405; background: var(--gold); }
.pro-btn { background: var(--gold); border-color: var(--gold); color: #1A1405; font-weight: 600; }
.pro-btn:hover { filter: brightness(1.06); background: var(--gold); }
.plans-foot { margin-top: 18px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.plans-foot .pay-label { margin: 0; }
.plans-foot .pay-methods { margin: 0; gap: 6px; }
.plans-foot .pay-methods li { height: 30px; padding: 0 9px; font-size: 12.5px; }
.plans-foot .lock-fine { flex-basis: 100%; margin: 6px 0 0; }
#lockNote { margin-top: 12px; }
.lock-body { margin-top: 44px; max-width: 760px; }
.lock-body .lock-parts { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) {
  .plan-grid, .lock-body .lock-parts { grid-template-columns: 1fr; }
}

/* Trading page: membership tiers */
.edge-tiers { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.tier { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 190px; padding: 12px 16px; border-radius: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--accent-soft); }
.tier-name { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.tier-price { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tier-price b { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--ink); margin-right: 2px; }
.tier-adv { border-color: rgba(242,201,76,.45); background: rgba(242,201,76,.07); }
.tier-adv .tier-name { color: #F2C94C; font-weight: 800; }
.tier-adv .tier-price b { color: var(--ink); }
.tier-btn { align-self: center; height: 46px; padding: 0 20px; font-size: 15px; }
@media (max-width: 600px) { .tier { flex: 1 1 100%; } .tier-btn { width: 100%; justify-content: center; } }
.plan-pro .plan-name { font-weight: 800; font-size: 13.5px; }


/* ---------- Contact ---------- */
.site-nav-links button.contact-link { opacity: .9; border: 1px solid var(--line); margin-left: 6px; }
.site-nav-links button.contact-link.is-active { background: rgba(255,255,255,.14); }
.contact-box { max-width: 620px; }
.contact-box h1 { margin: 0 0 10px; font-family: var(--font-head); font-weight: 800; font-stretch: 112%; font-size: clamp(30px, 5vw, 42px); }
.contact-box > p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.contact-email { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.contact-email svg { flex: none; color: var(--accent); }
.email-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 3vw, 22px); color: var(--ink); user-select: all; -webkit-user-select: all; word-break: break-all; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
#copyNote { margin-top: 10px; }

.site-footer { border-top: 1px solid var(--line); background: var(--topbar); padding: 28px 24px 32px; }
body[data-area="edge"] .site-footer { display: none; }
.sf-inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; }
.sf-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 800; font-stretch: 125%; font-size: 13px; letter-spacing: .14em; }
.sf-h { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.sf-contact .email-text { margin: 0; font-size: 15px; }
.sf-fine { margin: 0; flex-basis: 100%; font-size: 12px; color: var(--muted); }
.es-contact { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 7px; text-align: left; }
.es-contact:hover { background: var(--hover); }
.es-email { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.es-contact + .es-exit { margin-top: 6px; }
@media (max-width: 860px) { .es-contact { display: none; } }
.contact-box > .edge-kicker { margin: 0 0 8px; font-size: 12.5px; color: var(--accent); }

/* Keep the Join buttons their own colour on hover */
.pro-btn:hover:not(:disabled) { background: var(--gold); border-color: var(--gold); color: #1A1405; filter: brightness(1.06); }
.lock-btn.primary:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }

/* ---------- Accounts ---------- */
.site-nav-links button.account-link { opacity: .95; }
.link-btn { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { filter: brightness(1.15); }
.member-signin { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); }
.member-none { color: var(--ink); }
.es-account { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-top: 1px solid var(--line); }
.es-account + .es-contact { margin-top: 0; }
.es-acc-name { font-size: 13.5px; font-weight: 600; word-break: break-all; }
.es-acc-tier { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.es-acc-tier.is-adv { color: #F2C94C; }
.es-account .link-btn { align-self: flex-start; margin-top: 4px; font-size: 12.5px; }
@media (max-width: 860px) { .es-account { display: none; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 14px; }
.lesson-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.lesson-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
