/* Kingdom Capital Pro — implemented from "Kingdom Capital Pro.dc.html" */

:root {
  --bg: #0A0907;
  --bg-2: #0D0B08;
  --bg-3: #0E0C09;
  --bg-4: #100E0A;
  --bg-hover: #13110C;
  --ink: #F4EFE4;
  --ink-2: #BDB4A2;
  --ink-3: #A79F8E;
  --ink-4: #8C8475;
  --gold: #D4AF5A;
  --gold-light: #F0D78C;
  --gold-dark: #8A6A22;
  --green: #6FCF97;
  --red: #E57373;
  --line: rgba(212, 175, 90, 0.2);
  --line-soft: rgba(212, 175, 90, 0.12);
  --gold-grad: linear-gradient(135deg, #F0D78C, #C9A24B 55%, #9C7A2E);
  --serif: 'Libre Bodoni', Georgia, serif;
  --sans: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
input::placeholder { color: #6E675A; }
button { font: inherit; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 500; }
p { margin: 0; }
em, .it { font-style: italic; }
.gold { color: var(--gold); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.up { color: var(--green); }
.down { color: var(--red); }

@keyframes kcp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kcp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes kcp-shine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.app { min-height: 100vh; position: relative; overflow-x: hidden; }
.wrap { max-width: 1280px; margin: 0 auto; }
.view[hidden] { display: none !important; }

/* ---------- Shared bits ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.32em; color: var(--gold); font-weight: 600; }
.eyebrow.dark { color: var(--gold-dark); font-weight: 700; }
.label { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); }
.lead { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 480px; text-wrap: pretty; }
.h-section { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 18px 30px; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; white-space: nowrap; border: 0; font-family: var(--sans);
  transition: filter .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold-grad); color: var(--bg); font-weight: 700; }
.btn-gold:hover { filter: brightness(1.08); color: var(--bg); }
.btn-ghost { border: 1px solid rgba(212, 175, 90, 0.5); color: var(--ink); font-weight: 600; background: transparent; }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.link-cta { cursor: pointer; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; color: var(--gold); text-transform: uppercase; }
.link-cta:hover { color: var(--gold-light); }

.diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); flex: none; }

.cell-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

.check-row { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.check-row .mark { color: var(--gold); }
.check-row .mark.x { color: var(--red); font-family: var(--mono); }

.placeholder-img { position: relative; display: grid; place-items: center; border: 1px solid #C9A24B; }
.placeholder-img::before { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(212, 175, 90, 0.4); }
.placeholder-img span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; text-align: center; padding: 24px; }

.note { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 9, 7, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 90, 0.16);
}
.site-header .wrap { padding: 16px var(--gutter); display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; cursor: pointer; }
.brand img { height: 100px; width: auto; display: block; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.main-nav a {
  padding: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.header-cta { padding: 11px 20px; font-size: 12px; letter-spacing: 0.14em; }

/* ---------- Home ---------- */
.hero {
  position: relative; padding: 96px var(--gutter) 72px;
  background:
    radial-gradient(1100px 520px at 78% 10%, rgba(212, 175, 90, 0.16), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(212, 175, 90, 0.07), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(212, 175, 90, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 90, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: center; }
.hero-copy { animation: kcp-rise .9s ease both; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.hero-kicker .rule { width: 44px; height: 1px; background: var(--gold); flex: none; }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); line-height: 0.98; letter-spacing: -0.02em; text-wrap: balance; }
.shine {
  font-style: italic;
  background: linear-gradient(100deg, #9C7A2E, #F0D78C 30%, #C9A24B 50%, #F6E3A6 70%, #9C7A2E);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: kcp-shine 6s linear infinite;
}
.hero-copy p { margin-top: 32px; max-width: 520px; font-size: 18px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.hero-copy .btn-row { margin-top: 40px; }

.pl-card-wrap { position: relative; animation: kcp-rise 1.1s .15s ease both; }
.pl-card {
  position: relative; background: linear-gradient(180deg, #15120D, #0E0C09);
  border: 1px solid rgba(212, 175, 90, 0.3); padding: 32px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 175, 90, 0.08);
}
.pl-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pl-head .label { font-size: 11px; letter-spacing: 0.28em; font-weight: 600; }
.pl-net { font-family: var(--serif); font-size: 52px; margin-top: 10px; color: var(--gold-light); }
.pl-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.badge-win { padding: 6px 10px; border: 1px solid rgba(111, 207, 151, 0.4); color: var(--green); font-family: var(--mono); font-size: 12px; }
.pl-meta .count { font-size: 12px; color: var(--ink-3); }
.pl-chart { width: 100%; height: 220px; margin-top: 24px; display: block; }
.pl-stats { grid-template-columns: repeat(3, 1fr); margin-top: 24px; background: rgba(212, 175, 90, 0.15); border-color: rgba(212, 175, 90, 0.15); }
.pl-stats > div { background: var(--bg-4); padding: 16px; }
.pl-stats .v { font-family: var(--mono); margin-top: 6px; font-size: 15px; }

.ticker-band { border-top: 1px solid rgba(212, 175, 90, 0.18); border-bottom: 1px solid rgba(212, 175, 90, 0.18); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; gap: 56px; width: max-content; animation: kcp-marquee 48s linear infinite; font-family: var(--mono); font-size: 13px; }
.ticker-item { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
.ticker-item .sym { color: var(--gold); font-weight: 500; }
.ticker-item .ct { color: var(--ink-3); }
.ticker-item .sep { color: #3A342A; }

.section { padding: 120px var(--gutter); }
.section-narrow { max-width: 1280px; margin: 0 auto; }

.pillars { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 64px; }
.pillar { cursor: pointer; background: var(--bg); padding: 44px 36px 40px; display: flex; flex-direction: column; gap: 20px; min-height: 340px; transition: background .3s; color: var(--ink); }
.pillar:hover { background: var(--bg-hover); color: var(--ink); }
.pillar .num { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.pillar .title { font-family: var(--serif); font-size: 32px; line-height: 1.1; }
.pillar .body { font-size: 15px; line-height: 1.7; color: var(--ink-3); flex: 1; }

.recent-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.recent-head h2 { font-size: clamp(32px, 3.6vw, 48px); margin-top: 16px; }
.trade-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.trade-card { background: linear-gradient(180deg, #13110C, #0D0B08); border: 1px solid rgba(212, 175, 90, 0.18); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.trade-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.trade-card .sym { display: flex; align-items: baseline; gap: 10px; }
.trade-card .sym .t { font-family: var(--serif); font-size: 30px; }
.trade-card .sym .c { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.trade-card .pct { font-family: var(--mono); font-size: 18px; }
.trade-card .nums { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.trade-card .nums .mono { margin-top: 6px; }

.light-band { position: relative; padding: 120px var(--gutter); background: var(--ink); color: var(--bg); overflow: hidden; }
.light-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 72px; align-items: center; }
.light-band .placeholder-img { aspect-ratio: 4 / 5; background: #1A1712; }
.quote { font-family: var(--serif); font-size: clamp(32px, 3.8vw, 52px); line-height: 1.15; font-weight: 500; text-wrap: pretty; margin-top: 24px; }
.principles { margin-top: 48px; }
.principle { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid rgba(10, 9, 7, 0.15); }
.principle .num { font-family: var(--mono); font-size: 13px; color: var(--gold-dark); padding-top: 3px; }
.principle .t { font-weight: 700; font-size: 17px; }
.principle .b { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #4A443A; }

.final-cta { padding: 140px var(--gutter); text-align: center; background: radial-gradient(800px 400px at 50% 100%, rgba(212, 175, 90, 0.18), transparent 70%); }
.final-cta .inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final-cta .vline { width: 1px; height: 64px; background: linear-gradient(var(--bg), var(--gold)); }
.final-cta h2 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.02; text-wrap: balance; }
.final-cta p { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 560px; }
.final-cta .btn-row { justify-content: center; margin-top: 12px; }

/* ---------- Record pages ---------- */
.record { padding: 80px var(--gutter) 120px; }
.record.short { background: radial-gradient(900px 400px at 85% 0%, rgba(212, 175, 90, 0.12), transparent 60%); }
.record.long { background: radial-gradient(900px 400px at 15% 0%, rgba(212, 175, 90, 0.12), transparent 60%); }
.record .eyebrow { margin-bottom: 20px; }
.record .split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.record h1 { font-size: clamp(44px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.02em; }
.record .lead { font-size: 16px; }

.kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 56px; }
.kpis > div { background: var(--bg-3); padding: 28px; }
.kpis .label { font-size: 11px; letter-spacing: 0.24em; }
.kpis .v { font-family: var(--serif); font-size: 40px; margin-top: 10px; }
.kpis .v.gold-v { color: var(--gold-light); }

.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 56px 0 20px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  cursor: pointer; padding: 9px 16px; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(212, 175, 90, 0.25); color: var(--ink-2); background: transparent; font-family: var(--sans);
}
.filter:hover { border-color: var(--gold); }
.filter[aria-pressed="true"] { border-color: var(--gold); color: var(--bg); background: var(--gold); }

.table-scroll { border: 1px solid var(--line); overflow-x: auto; background: var(--bg-2); }
.trade-table { min-width: 880px; }
.trade-row { display: grid; grid-template-columns: 110px 1.1fr 1.4fr 1fr 1fr 0.7fr 1fr 1fr; gap: 16px; padding: 20px 24px; border-bottom: 1px solid rgba(212, 175, 90, 0.08); align-items: center; font-family: var(--mono); font-size: 14px; }
.trade-row:not(.head):hover { background: #14110C; }
.trade-row.head { padding: 16px 24px; border-bottom-color: var(--line); font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); font-weight: 600; }
.trade-row .date { color: var(--ink-3); font-size: 13px; }
.trade-row .sym { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.trade-row .pos { display: flex; gap: 8px; align-items: center; }
.trade-row .pos .tag { padding: 3px 8px; font-size: 11px; border: 1px solid; }
.trade-row .pos .ct { color: var(--ink-2); font-size: 13px; }
.trade-row .held { color: var(--ink-3); }
.trade-row .r { text-align: right; }
.empty-row { padding: 32px 24px; color: var(--ink-3); font-size: 14px; }

.long-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; margin-top: 64px; }
.long-card { position: relative; background: linear-gradient(180deg, #14110C, #0C0A07); border: 1px solid var(--line); padding: 36px; display: flex; flex-direction: column; gap: 24px; transition: border-color .2s; }
.long-card:hover { border-color: rgba(240, 215, 140, 0.55); }
.long-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.long-card .sym { font-family: var(--serif); font-size: 40px; line-height: 1; }
.long-card .name { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.long-card .status { padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; border: 1px solid; }
.long-card .thesis { font-size: 15px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.bar { height: 4px; background: var(--line-soft); position: relative; }
.bar > div { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #9C7A2E, #F0D78C); }
.long-card .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; font-family: var(--mono); }
.long-card .nums .v { margin-top: 6px; font-size: 14px; }

/* ---------- Training ---------- */
.t-hero { padding: 100px var(--gutter) 72px; text-align: center; background: radial-gradient(900px 500px at 50% 0%, rgba(212, 175, 90, 0.18), transparent 65%); }
.t-hero .inner { max-width: 960px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.t-hero .eyebrow { margin-bottom: 24px; }
.t-hero h1 { font-size: clamp(46px, 6.2vw, 92px); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.t-hero p { margin: 32px auto 0; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }
.t-hero .btn-row { justify-content: center; margin-top: 40px; }
.t-hero .btn { padding: 18px 32px; }
.hero-checks { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; margin-top: 36px; }
.hero-checks div { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }

.brokers { border-top: 1px solid rgba(212, 175, 90, 0.15); border-bottom: 1px solid rgba(212, 175, 90, 0.15); background: var(--bg-2); padding: 28px var(--gutter); }
.brokers .wrap { display: flex; align-items: center; justify-content: center; gap: 16px 48px; flex-wrap: wrap; }
.brokers .label { font-size: 11px; letter-spacing: 0.28em; font-weight: 600; }
.brokers .b { font-family: var(--serif); font-size: 22px; }

.problems { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); margin-top: 56px; }
.problems > div { background: var(--bg); padding: 44px 40px; }
.problems .t { font-family: var(--serif); font-size: 30px; }
.problems .list { margin-top: 24px; }
.problems .check-row { padding: 14px 0; border-top: 1px solid rgba(212, 175, 90, 0.1); }
.better { margin-top: 40px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--gold); }

.center-head { text-align: center; margin-bottom: 56px; }
.center-head .eyebrow { margin-bottom: 20px; }
.center-head p { margin-top: 20px; font-size: 17px; color: var(--ink-2); }

.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.sys-card { background: linear-gradient(180deg, #15120D, #0D0B08); border: 1px solid rgba(212, 175, 90, 0.28); padding: 44px 40px; }
.sys-card .num { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.sys-card .t { font-family: var(--serif); font-size: 34px; margin-top: 14px; }
.sys-card .list { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }

.light-band.strategy .wrap { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.light-band.strategy .placeholder-img { aspect-ratio: 4 / 3; background: var(--bg); }
.light-band.strategy .placeholder-img::before { border-color: rgba(212, 175, 90, 0.35); }
.light-band.strategy .eyebrow { margin-bottom: 20px; }
.light-band.strategy h2 { font-size: clamp(40px, 4.8vw, 64px); line-height: 1; }
.light-band.strategy .sub { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--gold-dark); margin-top: 10px; }
.spx-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px; margin-top: 44px; }
.spx-cols .ct { font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 2px solid var(--bg); }
.spx-cols .check-row { grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(10, 9, 7, 0.12); line-height: 1.55; color: #2E2A23; }
.spx-cols .check-row .mark { color: var(--gold-dark); }

.perf { background: radial-gradient(900px 400px at 80% 0%, rgba(212, 175, 90, 0.12), transparent 60%); }
.perf .split { margin-bottom: 56px; }
.perf .eyebrow { margin-bottom: 20px; }
.perf-main { border: 1px solid rgba(212, 175, 90, 0.3); background: linear-gradient(180deg, #15120D, #0D0B08); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.perf-main > div { padding: 44px 40px; border-right: 1px solid rgba(212, 175, 90, 0.15); }
.perf-main > div:last-child { border-right: 0; background: rgba(212, 175, 90, 0.06); }
.perf-main .label { font-size: 11px; letter-spacing: 0.24em; }
.perf-main .v { font-family: var(--serif); font-size: 56px; margin-top: 12px; }
.perf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; margin-top: 16px; }
.perf-stats > div { background: var(--bg); border: 1px solid rgba(212, 175, 90, 0.18); padding: 28px 32px; }
.perf-stats .v { font-family: var(--mono); font-size: 22px; }
.perf-stats .l { font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); margin-top: 8px; text-transform: uppercase; }
.disclaimer { margin-top: 20px; font-size: 13px; font-style: italic; color: var(--ink-3); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step { background: var(--bg-2); border: 1px solid rgba(212, 175, 90, 0.22); padding: 40px 32px; display: flex; flex-direction: column; gap: 16px; }
.step .n { font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--gold); }
.step .t { font-weight: 700; font-size: 18px; }
.step .b { font-size: 15px; line-height: 1.65; color: var(--ink-3); }

.pricing { padding: 120px var(--gutter) 140px; background: radial-gradient(800px 460px at 50% 100%, rgba(212, 175, 90, 0.2), transparent 70%); }
.pricing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.price-card { position: relative; margin-top: 56px; width: 100%; max-width: 480px; border: 1px solid var(--gold); background: linear-gradient(180deg, #1A160E, #0D0B08); padding: 52px 44px; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(212, 175, 90, 0.12); }
.price-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-top: 16px; }
.price .amt { font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--gold-light); }
.price .per { font-size: 18px; color: var(--ink-2); }
.price-list { margin: 36px 0; text-align: left; }
.price-list .check-row { padding: 14px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.price-card .btn { position: relative; width: 100%; padding: 18px 32px; }

/* ---------- Members ---------- */
.login { min-height: calc(100vh - 133px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }
.login-aside { position: relative; padding: 80px 56px; background: radial-gradient(700px 500px at 30% 30%, rgba(212, 175, 90, 0.2), transparent 65%), var(--bg-2); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; border-right: 1px solid rgba(212, 175, 90, 0.15); }
.login-aside .h { font-family: var(--serif); font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.perks { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.perks div { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--ink-2); }
.login-aside .fine { font-size: 12px; color: var(--ink-3); }
.login-main { padding: 80px 56px; display: flex; align-items: center; justify-content: center; }
.login-form { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.login-form .h { font-family: var(--serif); font-size: 36px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field span { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-3); font-weight: 600; }
.field input { background: var(--bg-2); border: 1px solid rgba(212, 175, 90, 0.3); color: var(--ink); padding: 16px 18px; font-size: 15px; font-family: var(--sans); outline: none; border-radius: 0; }
.field input:focus { border-color: var(--gold-light); }
.login-form .row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.login-form .row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.login-form .row input { accent-color: var(--gold); }
.login-form .btn { padding: 18px; letter-spacing: 0.16em; }
.login-form .alt { text-align: center; font-size: 14px; color: var(--ink-3); }

.dash-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.dash-head .h { font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); margin-top: 14px; }
.signout { cursor: pointer; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); text-transform: uppercase; background: none; border: 0; padding: 0; }
.signout:hover { color: var(--gold-light); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; margin-top: 48px; }
.dash-card { border: 1px solid var(--line); background: var(--bg-2); padding: 36px; }
.dash-card.feature { border-color: rgba(212, 175, 90, 0.3); background: linear-gradient(180deg, #15120D, #0D0B08); }
.dash-card .label { font-size: 11px; letter-spacing: 0.24em; }
.dash-card .t { font-family: var(--serif); font-size: 30px; margin-top: 14px; }
.dash-card .s { font-size: 15px; color: var(--ink-2); margin-top: 8px; }
.dash-card .bar { margin-top: 28px; }
.dash-card .progress-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; font-family: var(--mono); color: var(--ink-3); }
.dash-card .btn { margin-top: 28px; padding: 14px 24px; font-size: 12px; }
.alerts-head { display: flex; justify-content: space-between; align-items: center; }
.live { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--green); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.alert-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(212, 175, 90, 0.1); }
.alert-row .sym { font-family: var(--serif); font-size: 20px; }
.alert-row .txt { font-size: 14px; color: var(--ink-2); }
.alert-row .time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

/* ---------- Portal ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.portal-loading { min-height: calc(100vh - 133px); display: grid; place-items: center; }
.portal-loading .vline { width: 1px; height: 64px; background: linear-gradient(var(--bg), var(--gold)); animation: kcp-pulse 1.2s ease-in-out infinite alternate; }
@keyframes kcp-pulse { from { opacity: .25; } to { opacity: 1; } }
.portal-loading[hidden], .login[hidden], .portal[hidden] { display: none; }

.form-msg { padding: 14px 16px; border: 1px solid rgba(229, 115, 115, 0.45); background: rgba(229, 115, 115, 0.08); color: var(--ink); font-size: 14px; line-height: 1.6; }
.form-msg.ok { border-color: rgba(111, 207, 151, 0.45); background: rgba(111, 207, 151, 0.08); }
.form-msg[hidden] { display: none; }
.login-form .btn:disabled, .portal .btn:disabled, .newsletter .btn:disabled { opacity: .6; cursor: wait; }
.login-sent { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.login-sent[hidden], .login-form[hidden] { display: none; }
.login-sent .h { font-family: var(--serif); font-size: 44px; line-height: 1.05; }
.login-sent p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.login-sent p strong { color: var(--ink); font-weight: 600; word-break: break-all; }
.login-sent .fine { font-size: 14px; color: var(--ink-3); }
.text-btn { background: none; border: 0; padding: 0; color: var(--gold); cursor: pointer; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--gold-light); }

.portal { padding: 64px var(--gutter) 120px; background: radial-gradient(900px 420px at 85% 0%, rgba(212, 175, 90, 0.1), transparent 60%); }
.portal-banner { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 18px 22px; border: 1px solid rgba(229, 160, 122, 0.5); background: rgba(229, 160, 122, 0.08); font-size: 15px; line-height: 1.5; }
.portal-banner[hidden] { display: none; }
.portal-banner .btn { padding: 12px 20px; font-size: 12px; }
.portal-nav { display: flex; gap: 4px; margin-top: 40px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.portal-nav::-webkit-scrollbar { display: none; }
.portal-nav a { padding: 14px 18px; margin-bottom: -1px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-nav a:hover { color: var(--gold-light); }
.portal-nav a.active { color: var(--gold-light); border-bottom-color: var(--gold); }
.portal-body { margin-top: 8px; }
.portal-body > .dash-grid { margin-top: 40px; }
.portal-empty { padding: 40px; border: 1px dashed var(--line); color: var(--ink-3); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.portal .filter-bar { margin-top: 40px; }
.portal .note a { text-decoration: underline; text-underline-offset: 3px; }

.dash-card { display: flex; flex-direction: column; align-items: flex-start; }
.dash-card > .bar, .dash-card > .progress-meta, .dash-card .alert-list, .dash-card .alerts-head, .dash-card .mini-stats, .dash-card .kv { align-self: stretch; }
.card-note { margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.card-link { margin-top: 20px; }
.alert-list { margin-top: 12px; }
a.alert-row { color: var(--ink); }
a.alert-row:hover { color: var(--ink); background: var(--bg-hover); }
.alert-row .sub { display: block; margin-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.pill { display: inline-block; padding: 4px 8px; font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; border: 1px solid rgba(212, 175, 90, 0.3); color: var(--ink-2); }
.pill.open { color: var(--gold-light); border-color: rgba(240, 215, 140, 0.5); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.mini-stats .v { font-family: var(--serif); font-size: 34px; margin-bottom: 8px; }

.alert-cards { display: grid; gap: 16px; }
.alert-card { border: 1px solid var(--line); background: linear-gradient(180deg, #13110C, #0D0B08); padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; }
.alert-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.alert-card .when { font-size: 12px; color: var(--ink-3); }
.alert-card .title { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); margin-top: 8px; line-height: 1.15; }
.alert-card .res .mono { font-size: 20px; }
.alert-card .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); padding: 1px 0 0 1px; }
.alert-card .grid > div { background: var(--bg-2); padding: 14px 16px; border: 1px solid var(--line-soft); margin: -1px 0 0 -1px; }
.alert-card .grid .v { font-family: var(--mono); font-size: 15px; margin-top: 6px; }
.alert-card .reason { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.alert-card .reason .label { display: block; margin-bottom: 6px; }
.alert-card .outcome { font-size: 12px; color: var(--ink-3); padding-top: 16px; border-top: 1px solid var(--line-soft); }
.alert-email { border-top: 1px solid var(--line-soft); padding-top: 4px; margin-top: -10px; }
.alert-email summary { cursor: pointer; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); list-style: none; }
.alert-email summary::-webkit-details-marker { display: none; }
.alert-email summary::before { content: '+ '; font-family: var(--mono); }
.alert-email[open] summary::before { content: '– '; }
.alert-email summary:hover { color: var(--gold-light); }
.email-body { max-width: 720px; display: flex; flex-direction: column; gap: 12px; padding: 8px 0 12px; }
.email-body p { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.email-body h4 { margin: 10px 0 0; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.email-body .when { font-size: 12px; color: var(--ink-3); }
.alert-card.note .title { font-size: clamp(20px, 2.2vw, 26px); }

.academy-head { margin-top: 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid rgba(212, 175, 90, 0.3); background: linear-gradient(180deg, #15120D, #0D0B08); }
.academy-head > div { flex: 1 1 320px; }
.academy-head .bar { margin-top: 16px; }
.academy-head .progress-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; font-family: var(--mono); color: var(--ink-3); }
.academy-head .btn { padding: 14px 24px; font-size: 12px; white-space: normal; text-align: left; }
.modules { margin-top: 24px; display: grid; gap: 24px; }
.module { border: 1px solid var(--line); background: var(--bg-2); }
.module-head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line); }
.module-head .num { font-size: 13px; color: var(--gold); }
.module-head h2 { font-size: 28px; }
.module-head .count { font-size: 13px; color: var(--ink-3); }
.lesson-row { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 16px; padding: 16px 28px; border-bottom: 1px solid rgba(212, 175, 90, 0.08); color: var(--ink); font-size: 15px; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: var(--bg-hover); color: var(--gold-light); }
.lesson-row .check { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid rgba(212, 175, 90, 0.45); font-size: 12px; color: var(--bg); }
.lesson-row.done .check { background: var(--gold); border-color: var(--gold); }
.lesson-row.done .lt { color: var(--ink-2); }
.lesson-row .dur { font-size: 12px; color: var(--ink-3); }

.back { display: inline-block; margin-top: 32px; }
.lesson { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.lesson-video { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.lesson-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lesson-video .placeholder-img { width: 100%; height: 100%; background: var(--bg-2); border-color: var(--line); }
.lesson-side { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.lesson-side h1 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -0.01em; }
.lesson-side p { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.lesson-side .btn { padding: 14px 24px; font-size: 12px; }
.lesson-nav { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.lesson-nav a { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.lesson-nav a:hover { color: var(--gold-light); }
.lesson-nav a.next { text-align: right; grid-column: 2; }

.kv { margin-top: 20px; display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg-2); font-size: 14px; }
.kv > div span:last-child { text-align: right; word-break: break-all; }
.dash-card .btn + .card-note { margin-top: 16px; }

/* Newsletter (footer) */
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.newsletter { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.nl-row { display: flex; }
.nl-row input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid rgba(212, 175, 90, 0.3); border-right: 0; color: var(--ink); padding: 14px 16px; font-size: 15px; font-family: var(--sans); outline: none; border-radius: 0; }
.nl-row input:focus { border-color: var(--gold-light); }
.nl-row .btn { padding: 14px 20px; font-size: 12px; }
.nl-msg { min-height: 1.4em; font-size: 13px; color: var(--ink-3); }

@media (max-width: 860px) {
  .portal { padding-top: 40px; }
  .lesson { grid-template-columns: 1fr; gap: 28px; }
  .alert-card { padding: 22px; }
  .module-head, .lesson-row { padding-left: 18px; padding-right: 18px; }
  .academy-head { padding: 22px; }
  .foot-side { align-items: stretch; }
  .nl-row input { font-size: 16px; }
  .portal-nav a { min-height: 44px; display: flex; align-items: center; padding: 10px 14px; }
}
@media (max-width: 480px) {
  .mini-stats .v { font-size: 26px; }
  .dash-card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-loading .vline { animation: none; }
}

/* ---------- Order ---------- */
/* Light scheme: header & footer stay dark, the order and thank-you pages invert */
.order, .welcome {
  --bg: #FFFFFF;
  --bg-2: #FAF7F0;
  --ink: #0A0907;
  --ink-2: #4A443A;
  --ink-3: #6B6458;
  --ink-4: #8C8475;
  --gold: #A8842F;
  --gold-light: #8A6A22;
  --line: rgba(138, 106, 34, 0.25);
  --line-soft: rgba(138, 106, 34, 0.15);
  color: var(--ink);
}
.order { padding: 72px var(--gutter) 120px; background: radial-gradient(900px 500px at 15% 0%, rgba(212, 175, 90, 0.12), transparent 65%), var(--bg); }
.order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.order-aside .eyebrow { margin-bottom: 20px; }
.order-aside h1 { font-size: clamp(44px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.02em; }
.order-aside .lead { margin-top: 24px; font-size: 16px; }

.plans { border: 0; padding: 0; margin: 40px 0 0; display: grid; gap: 12px; min-width: 0; }
.plans legend { padding: 0; margin-bottom: 14px; font-size: 11px; letter-spacing: 0.24em; }
.plans-loading { padding: 28px; border: 1px dashed var(--line); color: var(--ink-3); font-size: 14px; }
.plan { position: relative; display: block; cursor: pointer; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-body { display: grid; gap: 8px; padding: 22px 24px 22px 56px; border: 1px solid rgba(138, 106, 34, 0.28); background: var(--bg); transition: border-color .2s, background .2s; }
.plan-body::before { content: ''; position: absolute; left: 22px; top: 26px; width: 16px; height: 16px; border: 1px solid rgba(138, 106, 34, 0.6); border-radius: 50%; transition: box-shadow .2s, background .2s; }
.plan:hover .plan-body { border-color: rgba(138, 106, 34, 0.6); }
.plan input:checked + .plan-body { border-color: var(--gold); background: linear-gradient(180deg, #FBF5E6, #FFFFFF); box-shadow: 0 10px 40px rgba(138, 106, 34, 0.12); }
.plan input:checked + .plan-body::before { background: var(--gold); box-shadow: inset 0 0 0 3px var(--bg); }
.plan input:focus-visible + .plan-body { outline: 2px solid var(--gold-light); outline-offset: 2px; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.plan-tag { padding: 4px 8px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; color: var(--ink); background: var(--gold-grad); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold-light); }
.plan-price .per { font-size: 15px; color: var(--ink-2); }
.plan-note { font-size: 13px; color: var(--ink-3); }

.order-includes { margin-top: 40px; }
.order-includes .label { font-size: 11px; letter-spacing: 0.24em; margin-bottom: 8px; }
.order-includes .check-row { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.order-trust { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: var(--ink-3); }
.order-trust div { display: flex; align-items: center; gap: 10px; }

.order-pay { position: sticky; top: 156px; border: 1px solid var(--gold); background: var(--bg); padding: 32px; box-shadow: 0 30px 80px rgba(10, 9, 7, 0.1), 0 0 60px rgba(212, 175, 90, 0.12); }
.order-pay-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.order-pay-head .label { font-size: 11px; letter-spacing: 0.24em; font-weight: 600; }
.order-total { font-family: var(--serif); font-size: 28px; color: var(--gold-light); }
.checkout-frame { min-height: 520px; background: #fff; color: var(--ink); }
.checkout-msg { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px; text-align: center; font-size: 15px; color: var(--ink-2); background: var(--bg-2); }
.checkout-msg .err { color: #8A2E2E; max-width: 360px; line-height: 1.6; }
.checkout-msg .btn-ghost { color: var(--ink); border-color: var(--gold-dark); padding: 14px 24px; }
.checkout-msg .btn-ghost:hover { color: var(--gold-dark); }
.order-pay .disclaimer { font-size: 12px; line-height: 1.6; }

.price-alt { display: inline-block; position: relative; margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }

/* ---------- Welcome / thank you ---------- */
.welcome { min-height: calc(100vh - 133px); display: grid; place-items: center; padding: 96px var(--gutter); text-align: center; background: radial-gradient(800px 460px at 50% 0%, rgba(212, 175, 90, 0.16), transparent 70%), var(--bg); }
.welcome .btn-gold, .welcome .btn-gold:hover { color: #0A0907; }
.welcome .inner { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.welcome .vline { width: 1px; height: 64px; background: linear-gradient(var(--bg), var(--gold)); }
.welcome h1 { font-size: clamp(48px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.welcome p { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.welcome p strong { color: var(--ink); font-weight: 600; }
.welcome .btn-row { justify-content: center; margin-top: 8px; }
.welcome .order-summary { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 8px; }
.welcome .order-summary > div { background: var(--bg-2); padding: 16px 24px; display: grid; gap: 6px; text-align: left; min-width: 180px; flex: 1; }
.welcome .order-summary .label { font-size: 10px; }
.welcome .order-summary .val { font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.welcome .order-summary .val.up { color: #2E7D4F; }
.next-steps { width: 100%; max-width: 640px; margin-top: 16px; text-align: left; border: 1px solid var(--gold); background: var(--bg); box-shadow: 0 30px 80px rgba(10, 9, 7, 0.08), 0 0 60px rgba(212, 175, 90, 0.1); }
.next-steps .label { padding: 20px 28px; font-size: 11px; letter-spacing: 0.24em; font-weight: 600; border-bottom: 1px solid var(--line); }
.next-step { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 28px; border-bottom: 1px solid var(--line-soft); }
.next-step:last-child { border-bottom: 0; }
.next-step .n { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: 16px; }
.next-step h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
.welcome .next-step p { font-size: 14px; line-height: 1.65; max-width: none; }
.welcome .fine { font-size: 13px; color: var(--ink-3); }

@media (max-width: 980px) {
  .order-grid { grid-template-columns: 1fr; gap: 48px; }
  .order-pay { position: static; }
}
@media (max-width: 860px) {
  .order { padding-top: 48px; }
  .order-pay { padding: 20px; margin: 0 calc(var(--gutter) * -0.5); }
  .plan-price .amt { font-size: 34px; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(212, 175, 90, 0.18); background: #070605; padding: 64px var(--gutter) 40px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 360px; }
.foot-brand img { height: 110px; width: auto; display: block; margin-bottom: 8px; }
.foot-brand p { margin-top: 14px; font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.foot-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.foot-nav a { color: var(--ink-2); }
.foot-nav a:hover { color: var(--gold-light); }
.legal { border-top: 1px solid var(--line-soft); padding-top: 24px; font-size: 12px; line-height: 1.7; color: var(--ink-4); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --gutter: 20px; }
  .site-header .wrap { gap: 12px 20px; }
  .brand img { height: 64px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 8px 6px; font-size: 12px; white-space: nowrap; }
  .header-cta { margin-left: auto; }
  .hero { padding-top: 64px; }
  .section, .light-band { padding-top: 88px; padding-bottom: 88px; }
  .login-aside, .login-main { padding: 56px 24px; }
  .problems > div, .sys-card, .perf-main > div { padding: 36px 28px; }
  .perf-main > div { border-right: 0; border-bottom: 1px solid rgba(212, 175, 90, 0.15); }
  .price-card { padding: 44px 28px; }
  .price .amt { font-size: 72px; }
  .long-card { padding: 28px; }
  .long-card .nums { grid-template-columns: repeat(2, 1fr); }
  .foot-brand img { height: 80px; }
}
@media (max-width: 480px) {
  .pl-card { padding: 22px; }
  .pl-net { font-size: 40px; }
  .pl-stats > div { padding: 12px; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .shine, .hero-copy, .pl-card-wrap { animation: none; }
}

/* Gilded edge behind the hero P/L card */
.pl-card-wrap::before { content: ''; position: absolute; inset: -1px; background: linear-gradient(160deg, rgba(240, 215, 140, 0.6), rgba(212, 175, 90, 0.05) 40%, rgba(212, 175, 90, 0.35)); }

/* ---------- Phone refinements ---------- */
@media (max-width: 860px) {
  /* Shorter sticky header: ~100px instead of ~140px */
  .site-header .wrap { padding-top: 10px; padding-bottom: 0; row-gap: 4px; }
  .brand img { height: 52px; }
  .header-cta { padding: 12px 16px; min-height: 44px; font-size: 11px; }

  /* Comfortable tap targets (44px) */
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
  .filter { min-height: 44px; }
  .link-cta, .login-form .row a, .login-form .alt a { display: inline-block; padding: 12px 0; }
  .login-form .row { align-items: center; }
  .login-form .row input[type="checkbox"] { width: 20px; height: 20px; }
  .foot-nav a { display: inline-block; padding: 10px 0; }

  /* 16px inputs stop iOS Safari zooming in on focus */
  .field input { font-size: 16px; }

  /* Slightly larger micro-labels */
  .label, .trade-row.head { font-size: 11px; }
  .long-card .status { font-size: 11px; }
}

/* Trade record: table becomes stacked cards on phones (no sideways swiping) */
@media (max-width: 640px) {
  .table-scroll { overflow: visible; border: 0; background: none; }
  .trade-table { min-width: 0; }
  .trade-row.head { display: none; }
  .trade-row {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas: "sym sym ret ret" "pos pos pos date" "entry exit held pl";
    gap: 14px 10px; padding: 20px;
    border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 12px; font-size: 13px;
  }
  .trade-row .sym { grid-area: sym; }
  .trade-row .ret { grid-area: ret; text-align: right; font-size: 16px; }
  .trade-row .pos { grid-area: pos; }
  .trade-row .date { grid-area: date; text-align: right; font-size: 12px; }
  .trade-row .entry { grid-area: entry; }
  .trade-row .exit { grid-area: exit; }
  .trade-row .held { grid-area: held; }
  .trade-row .pl { grid-area: pl; }
  .trade-row [data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 6px;
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  }
  .trade-row .pos { padding-top: 14px; border-top: 1px solid var(--line-soft); }
  .trade-row .date { padding-top: 14px; border-top: 1px solid var(--line-soft); margin-left: -10px; padding-left: 10px; }
  .empty-row { border: 1px solid var(--line); background: var(--bg-2); }
}
