/* SuperQuant public site: landing, sign-in, reset and verify pages. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f4;
  --ink: #0b1215;
  --text: #36414a;
  --muted: #5d6974;
  --subtle: #8a949e;
  --line: #e5e8eb;
  --line-strong: #d3d8dd;
  --lime: #c4ec81;
  --lime-bright: #a9dc5b;
  --lime-soft: #eef8de;
  --lime-deep: #3f6212;
  --eyebrow: #4d7c0f;
  --green: #0b8043;
  --green-bright: #16a34a;
  --green-soft: #e7f6ec;
  --red: #d4373c;
  --red-soft: #fdeceb;
  --amber: #d98a06;
  --amber-soft: #fdf3e1;
  --violet: #6d5fd0;
  --chart-fast: #5c9e14;
  --chart-slow: #7c6cf0;
  --candle-up: #12a37f;
  --candle-down: #ef5350;
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, .06), 0 1px 1px rgba(15, 23, 32, .03);
  --shadow-md: 0 12px 28px -14px rgba(15, 23, 32, .22), 0 2px 6px rgba(15, 23, 32, .05);
  --shadow-lg: 0 44px 80px -36px rgba(15, 23, 32, .34), 0 14px 32px -18px rgba(15, 23, 32, .16);
  --radius-lg: 18px;
  --sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--lime); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.shell { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .2s ease; }
.skip-link:focus { transform: translateY(0); }
.pos { color: var(--green) !important; }
.neg { color: var(--red) !important; }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid transparent; background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 23, 32, .45); }
.header-inner { display: flex; height: 72px; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.brand-icon { display: grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 4px 10px -4px rgba(11, 18, 21, .5); }
.brand-icon svg { width: 24px; height: 24px; }
.brand-dot { color: var(--chart-fast); }
.desktop-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.desktop-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease, background .15s ease; }
.desktop-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.social-x-link { display: inline-flex; height: 34px; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
.social-x-link .x-logo { width: 13px; height: 13px; fill: currentColor; }
.social-x-link:hover { border-color: var(--line-strong); background: var(--bg-soft); }
.social-x-link { animation: header-widget-bounce 5s ease-in-out infinite; will-change: transform; }
.social-x-link { animation-delay: 2.5s; }
.social-x-link:hover { animation-play-state: paused; }
.text-link { color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color .15s ease; }
.text-link:hover { color: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.menu-toggle > span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; border-radius: 2px; background: var(--ink); transition: transform .2s ease; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-3px) rotate(-45deg); }
.mobile-nav { display: none; }

/* Buttons */
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.005em; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary, .button-accent { background: var(--ink); color: #fff; box-shadow: 0 1px 2px rgba(11, 18, 21, .2), 0 10px 22px -12px rgba(11, 18, 21, .6); }
.button-primary:hover, .button-accent:hover { background: #1f2a31; }
.button-secondary, .button-outline, .button-quiet { border-color: var(--line-strong); background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.button-secondary:hover, .button-outline:hover, .button-quiet:hover { border-color: #b7c0c8; background: var(--bg-soft); }
.button-ghost { border-color: rgba(11, 18, 21, .3); background: transparent; color: var(--ink); }
.button-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .4); }
.button-large { min-height: 54px; padding: 0 26px; border-radius: 12px; font-size: 16px; }
.button-small { min-height: 38px; padding: 0 15px; border-radius: 9px; font-size: 14px; }
.button-full { width: 100%; }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
.button:hover .btn-arrow { transform: translateX(3px); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 104px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid-lines { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(11, 18, 21, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(11, 18, 21, .06) 1px, transparent 1px); background-position: center top; background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 62% 28%, #000 18%, transparent 74%); mask-image: radial-gradient(ellipse 72% 70% at 62% 28%, #000 18%, transparent 74%); }
.hero-glow { position: absolute; top: -18%; right: -12%; width: 74%; height: 100%; background: radial-gradient(closest-side, rgba(196, 236, 129, .62), rgba(196, 236, 129, 0)); }
.hero-glow::after { position: absolute; right: 18%; bottom: -8%; width: 58%; height: 60%; background: radial-gradient(closest-side, rgba(124, 108, 240, .16), rgba(124, 108, 240, 0)); content: ""; }
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 56px; }
.hero-copy { max-width: 570px; }
.hero-pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 7px 15px 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); color: var(--ink); font-size: 14px; font-weight: 600; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chart-fast); box-shadow: 0 0 0 4px rgba(92, 158, 20, .18); }
.hero h1 { font-size: clamp(40px, 4.6vw, 62px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.hero h1 mark, .auth-intro h1 em { padding: 0 .05em; background: linear-gradient(180deg, transparent 60%, var(--lime) 60%, var(--lime) 93%, transparent 93%); color: inherit; font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero-lede { max-width: 530px; margin: 24px 0 34px; color: var(--text); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg, .check-dot { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--lime-soft); fill: none; stroke: var(--lime-deep); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Product mockups */
.hero-visual { position: relative; padding: 22px 0 104px; }
.mock-window { position: relative; overflow: hidden; border: 1px solid rgba(11, 18, 21, .09); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.mock-bar { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fafbf9; color: var(--muted); font-size: 12.5px; }
.mock-crumbs { display: flex; min-width: 0; align-items: center; gap: 8px; overflow: hidden; white-space: nowrap; }
.mock-crumbs strong { color: var(--ink); font-weight: 600; }
.mock-logo { display: grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: var(--ink); color: var(--lime); }
.mock-logo svg { width: 16px; height: 16px; }
.crumb-sep { color: var(--subtle); }
.mock-badge { flex: none; padding: 3px 9px; border: 1px solid #ecdcb8; border-radius: 999px; background: #fdf6e7; color: #8a5a00; font-size: 11px; font-weight: 600; }
.badge-violet { border-color: #dcd6fb; background: #f3f1fe; color: #5446b8; }
.mock-muted { flex: none; color: var(--subtle); font-size: 12px; }
.mock-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px 12px; }
.mock-ticker { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; white-space: nowrap; }
.mock-ticker strong { font-weight: 700; }
.coin { display: inline-grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.coin-btc { background: #f7931a; }
.coin-sol { background: linear-gradient(135deg, #9945ff, #19d58f); font-size: 11px; }
.mock-price { font-family: var(--mono); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mock-change { color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.mock-chip { padding: 2px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 11px; font-weight: 600; }
.mock-run { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1); }
.mock-run svg { width: 11px; height: 11px; fill: currentColor; }
.mock-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fcfcfb; }
.mock-stats div { padding: 11px 16px 12px; }
.mock-stats div + div { border-left: 1px solid var(--line); }
.mock-stats small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
.mock-stats strong { color: var(--ink); font-size: 19px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.mock-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 14px; height: 3px; border-radius: 2px; }
.lg-fast { background: var(--chart-fast); }
.lg-slow { background: var(--chart-slow); }
.lg-entry, .lg-exit { width: 0; height: 0; border-radius: 0; border-right: 5px solid transparent; border-left: 5px solid transparent; }
.lg-entry { border-bottom: 8px solid var(--green-bright); }
.lg-exit { border-top: 8px solid var(--red); }
.candle-chart { width: 100%; height: auto; }
.candle-chart .grid { fill: none; stroke: #edf0f2; stroke-width: 1; }
.candle-chart .axis-text { fill: var(--subtle); font-family: var(--mono); font-size: 10px; }
.candle-chart .wick { fill: none; stroke-width: 1.2; }
.candle-chart .wick-up { stroke: var(--candle-up); }
.candle-chart .wick-down { stroke: var(--candle-down); }
.candle-chart .body-up { fill: var(--candle-up); }
.candle-chart .body-down { fill: var(--candle-down); }
.candle-chart .vol-up { fill: rgba(18, 163, 127, .2); }
.candle-chart .vol-down { fill: rgba(239, 83, 80, .18); }
.candle-chart .ma { fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.candle-chart .ma-fast { stroke: var(--chart-fast); }
.candle-chart .ma-slow { stroke: var(--chart-slow); stroke-width: 1.8; opacity: .85; }
.hero-candles .ma { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-line 1.9s cubic-bezier(.3, .6, .2, 1) .3s forwards; }
.hero-candles .ma-slow { animation-delay: .5s; }
.candle-chart .mk-long path { fill: var(--green-bright); }
.candle-chart .mk-exit path { fill: var(--red); }
.candle-chart .price-tag-line { fill: none; stroke: var(--candle-up); stroke-width: 1; stroke-dasharray: 3 3; opacity: .75; }
.candle-chart .price-tag rect { fill: var(--candle-up); }
.candle-chart .price-tag text { fill: #fff; font-family: var(--mono); font-size: 10.5px; font-weight: 600; }
.float-card { position: absolute; z-index: 2; padding: 14px 16px 12px; border: 1px solid rgba(11, 18, 21, .08); border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 28px 50px -24px rgba(15, 23, 32, .4), 0 6px 14px -6px rgba(15, 23, 32, .1); }
.float-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.float-title span { padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.rules-card { bottom: 0; left: -18px; width: 292px; animation: float-y 7s ease-in-out infinite; }
.stress-card { right: -10px; bottom: 14px; width: 248px; animation: float-y 8s ease-in-out -3s infinite; }
.rule-list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rule-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 12.5px; line-height: 1.45; }
.rule-tag { flex: none; width: 42px; padding: 2px 0; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.tag-in { background: var(--green-soft); color: var(--green); }
.tag-out { background: var(--red-soft); color: var(--red); }
.tag-risk { background: #f0edfd; color: var(--violet); }
.stress-mini, .mini-checks { margin: 0; padding: 0; list-style: none; }
.stress-mini li, .mini-checks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--text); font-size: 12.5px; }
.stress-mini li + li, .mini-checks li + li { border-top: 1px solid #f0f2f3; }
.stress-mini b, .mini-checks b { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot-ok { background: var(--green-bright); box-shadow: 0 0 0 3px var(--green-soft); }
.dot-warn { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }

/* Stats band */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 16px; padding: 30px 26px; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { color: var(--ink); font-family: var(--display); font-size: 46px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.stat span { max-width: 190px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* Shared section styles */
.section { padding: 112px 0; }
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head h2, .feature-copy h2, .safety-copy h2, .faq-intro h2 { font-size: clamp(32px, 3.7vw, 48px); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
.eyebrow { margin: 0 0 16px; color: var(--eyebrow); font-size: 13.5px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.section-head-split { display: grid; max-width: none; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; gap: 56px; text-align: left; }
.section-head-split .section-sub { margin: 0 0 6px; font-size: 18px; }
.icon-box { display: grid; flex: none; width: 46px; height: 46px; place-items: center; border-radius: 13px; }
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-box circle { fill: currentColor; stroke: none; }
.icon-red { background: var(--red-soft); color: var(--red); }
.icon-amber { background: var(--amber-soft); color: #b56d00; }
.icon-violet { background: #f0edfd; color: var(--violet); }
.icon-lime { background: var(--lime-soft); color: var(--lime-deep); }

/* Problem */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.problem-card h3 { margin: 22px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.problem-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.problem-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 44px; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.problem-bridge a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-deep); font-size: 15px; transition: background .15s ease; }
.problem-bridge a:hover { background: #e2f3c6; }

/* How it works */
.how-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; padding: 16px 16px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.step h3, .step p { padding-inline: 6px; }
.step-visual { display: grid; height: 160px; margin-bottom: 20px; padding: 14px; place-items: center; overflow: hidden; border: 1px solid #ebeee6; border-radius: 12px; background: linear-gradient(180deg, #f8faf5, #eff3ea); }
.step-num { display: grid; width: 30px; height: 30px; margin: 0 6px 14px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 13px; font-weight: 700; }
.step h3 { margin-bottom: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.mini-rules { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.mini-chip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: var(--shadow-sm); color: var(--text); font-size: 12px; font-weight: 500; white-space: nowrap; }
.mini-chip b { color: var(--ink); font-weight: 700; }
.chip-lime { border-color: #cfe8a6; background: var(--lime-soft); }
.mini-result, .mini-checks { width: 100%; max-width: 230px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.mini-checks { padding-block: 6px; }
.mini-result-head { display: flex; align-items: baseline; justify-content: space-between; }
.mini-result-head small { color: var(--muted); font-size: 11.5px; }
.mini-result-head strong { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.mini-result svg { width: 100%; height: 46px; margin: 6px 0; }
.spark-line { fill: none; stroke: var(--chart-fast); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark-area { fill: rgba(124, 184, 47, .16); }
.mini-result-foot { display: flex; justify-content: space-between; color: var(--subtle); font-size: 11px; }
.mini-replay { width: 100%; max-width: 230px; }
.mini-replay-chart { display: flex; height: 78px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.mini-bars { display: flex; flex: 1; align-items: center; justify-content: space-around; padding: 0 8px; }
.mini-bars i { display: block; width: 7px; border-radius: 2px; background: var(--candle-up); }
.mini-bars i:nth-child(1) { height: 18px; transform: translateY(12px); }
.mini-bars i:nth-child(2) { height: 24px; transform: translateY(6px); background: var(--candle-down); }
.mini-bars i:nth-child(3) { height: 14px; transform: translateY(10px); }
.mini-bars i:nth-child(4) { height: 26px; transform: translateY(-2px); }
.mini-bars i:nth-child(5) { height: 12px; transform: translateY(-6px); background: var(--candle-down); }
.mini-bars i:nth-child(6) { height: 22px; transform: translateY(-10px); }
.mini-bars i:nth-child(7) { height: 18px; transform: translateY(-18px); }
.mini-hidden { display: grid; width: 38%; place-items: center; border-left: 1px dashed #cfc7fa; background: repeating-linear-gradient(45deg, #f5f3ff, #f5f3ff 5px, #ece8fd 5px, #ece8fd 10px); color: var(--violet); font-size: 24px; font-weight: 700; }
.mini-replay-actions { display: flex; gap: 6px; margin-top: 10px; }
.mini-replay-actions span { flex: 1; padding: 7px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 11.5px; font-weight: 600; text-align: center; }
.mini-replay-actions .pick { border-color: var(--green-bright); background: var(--green-soft); color: var(--green); }

/* Feature sections */
.feature-section { overflow: hidden; }
.feature-alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.feature-layout { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: 72px; }
.feature-layout-reverse { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.feature-layout-reverse > .feature-copy { order: 2; }
.feature-lede { margin: 20px 0 28px; color: var(--text); font-size: 18px; line-height: 1.65; }
.feature-lede b { color: var(--ink); font-weight: 650; }
.check-list { display: grid; gap: 14px; margin: 0 0 32px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 34px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.check-list li::before { position: absolute; top: 1px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--lime-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%233f6212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; content: ""; }
.check-list strong { color: var(--ink); font-weight: 600; }
.text-cta { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 3px; border-bottom: 2px solid var(--lime-bright); color: var(--ink); font-size: 16px; font-weight: 600; }
.text-cta span { transition: transform .15s ease; }
.text-cta:hover span { transform: translateX(3px); }

/* Backtest report */
.report { margin: 0; }
.state-chip { padding: 2px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 600; }
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.report-stats div { min-width: 0; padding: 16px 18px; }
.report-stats div + div { border-left: 1px solid var(--line); }
.report-stats small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.report-stats strong { display: block; margin: 4px 0 2px; color: var(--ink); font-size: 25px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report-stats span { color: var(--subtle); font-size: 11.5px; }
.chart-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; }
.tab-list { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.chart-tab { padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; transition: color .15s ease, background .15s ease, box-shadow .15s ease; }
.chart-tab:hover { color: var(--ink); }
.chart-tab.is-active { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 32, .14), 0 0 0 1px rgba(15, 23, 32, .04); color: var(--ink); }
.chart-status { display: inline-flex; align-items: center; gap: 6px; color: var(--subtle); font-size: 12px; font-weight: 500; }
.chart-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.chart-panel { padding: 10px 18px 0; }
.chart-panel:focus-visible { outline-offset: -2px; }
.chart-plot { position: relative; padding-right: 50px; }
.research-chart { width: 100%; height: auto; overflow: visible; color: var(--chart-fast); }
.large-grid { fill: none; stroke: #eceff1; stroke-width: 1; vector-effect: non-scaling-stroke; }
.large-area { transition: d .45s ease; }
.large-line { fill: none; stroke: var(--chart-fast); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: d .45s ease, stroke .3s ease; }
.large-point { fill: #fff; stroke: var(--chart-fast); stroke-width: 3; vector-effect: non-scaling-stroke; transition: cy .45s ease, stroke .3s ease; }
.y-labels { position: absolute; inset: 0; pointer-events: none; }
.y-labels span { position: absolute; right: 0; width: 44px; color: var(--subtle); font-family: var(--mono); font-size: 11px; line-height: 1; text-align: right; transform: translateY(-50%); }
.y-labels span:nth-child(1) { top: 10%; }
.y-labels span:nth-child(2) { top: 36.667%; }
.y-labels span:nth-child(3) { top: 63.333%; }
.y-labels span:nth-child(4) { top: 90%; }
.axis-labels { display: flex; justify-content: space-between; padding: 8px 50px 0 0; color: var(--subtle); font-family: var(--mono); font-size: 11px; }
.report figcaption { margin-top: 16px; padding: 16px 18px 18px; border-top: 1px solid var(--line); background: #fafbf9; }
.waterfall { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.waterfall span { display: grid; gap: 2px; }
.waterfall small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.waterfall b { color: var(--ink); font-family: var(--mono); font-size: 15px; font-weight: 600; }
.waterfall i { color: var(--subtle); font-size: 17px; font-style: normal; }
.waterfall-total { padding: 7px 12px; border-radius: 10px; background: var(--green-soft); }
.chart-caption { margin-top: 12px; color: var(--muted); font-size: 12.5px; }

/* Stress test */
.stress-window { padding-bottom: 28px; }
.stress-list { margin: 0; padding: 4px 18px 0; list-style: none; }
.stress-list li { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(56px, 1fr) 62px 112px; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid #f0f2f3; font-size: 13.5px; }
.stress-list li:last-child { border-bottom: 0; }
.st-name { overflow: hidden; color: var(--ink); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.st-bar { height: 8px; overflow: hidden; border-radius: 999px; background: #edf0f2; }
.st-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a6dc6b, #4f9e1b); }
.st-bar-neg i { background: linear-gradient(90deg, #f6aaa7, var(--red)); }
.st-bar-split { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; background: transparent; }
.st-bar-split .up { background: #6cb52e; }
.st-bar-split .down { background: var(--red); }
.st-val { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.st-pill { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-warn { background: var(--amber-soft); color: #975800; }
.pill-bad { background: var(--red-soft); color: #b3262b; }
.heatmap-card { position: relative; width: 360px; max-width: 100%; margin: -34px -10px 0 auto; }
.heatmap { display: grid; grid-template-columns: 58px repeat(3, 1fr); gap: 4px; font-size: 11px; }
.hm-col { padding-bottom: 2px; color: var(--muted); font-weight: 600; text-align: center; white-space: nowrap; }
.hm-row { display: flex; align-items: center; color: var(--muted); font-weight: 600; white-space: nowrap; }
.hm { display: grid; height: 38px; place-items: center; border-radius: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.hm-5 { background: #4a9f22; color: #fff; }
.hm-4 { background: #93d35c; color: #1c3a09; }
.hm-3 { background: #d4efb2; color: #2c4d10; }
.hm-1 { background: #f5b1ad; color: #8e1c20; }
.hm-base { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

/* Practice */
.replay-candles .hidden-zone { fill: #f6f4ff; stroke: #d7d0fb; stroke-dasharray: 4 4; }
.replay-candles .stripe { stroke: #ebe7fd; stroke-width: 5; }
.replay-candles .hidden-label circle { fill: #fff; stroke: #d0c8fa; stroke-width: 1.5; }
.replay-candles .hidden-label text { fill: var(--violet); font-family: var(--sans); font-size: 21px; font-weight: 700; }
.replay-candles .hidden-label .hidden-caption { fill: #5446b8; font-size: 12px; font-weight: 600; }
.replay-actions { padding: 16px 18px 40px; border-top: 1px solid var(--line); }
.replay-actions > p:first-child { margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 600; }
.decision-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.decision { padding: 9px 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-size: 13px; font-weight: 600; text-align: center; }
.decision.is-picked { border-color: var(--green-bright); background: var(--green-soft); box-shadow: 0 0 0 3px rgba(22, 163, 74, .12); color: var(--green); }
.decision-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: 13px; }
.decision-note span { color: var(--muted); font-weight: 600; }
.paper-card { position: relative; width: 272px; margin: -30px auto 0 -12px; }
.paper-balance { color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.paper-balance b { margin-left: 4px; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0; }
.paper-card svg { width: 100%; height: 48px; margin: 8px 0 10px; }
.positions { display: grid; gap: 7px; margin: 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; }
.positions li { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.positions .coin { width: 20px; height: 20px; font-size: 11px; }
.positions em { color: var(--muted); font-size: 11.5px; font-style: normal; font-weight: 500; }
.positions b { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 600; }

/* Diary Passport decision-learning loop */
.diary-loop-section { border-top: 1px solid var(--line); background: linear-gradient(180deg, #f8faf6 0%, #fff 100%); }
.diary-loop-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(44px, 7vw, 96px); }
.diary-loop-copy { max-width: 540px; }
.diary-loop-copy h2 { margin: 0 0 18px; color: var(--ink); font-size: clamp(34px, 4vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1.07; }
.diary-loop-copy > p:not(.eyebrow):not(.diary-loop-note) { color: var(--muted); font-size: 17px; line-height: 1.7; }
.diary-loop-steps { display: grid; gap: 0; margin: 28px 0 26px; padding: 0; list-style: none; }
.diary-loop-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); }
.diary-loop-steps li > span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #cfe5ae; border-radius: 50%; background: #f3f9ea; color: var(--lime-deep); font: 12px var(--mono); }
.diary-loop-steps strong, .diary-loop-steps small { display: block; }
.diary-loop-steps strong { margin: 1px 0 3px; color: var(--ink); font-size: 15px; font-weight: 650; }
.diary-loop-steps small { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.diary-loop-copy > .button { min-height: 48px; }
.diary-loop-note { margin-top: 13px; color: var(--subtle); font-size: 12px; }
.diary-loop-visual { display: grid; gap: 14px; min-width: 0; }
.diary-loop-card { padding: clamp(20px, 3.2vw, 34px); border: 1px solid #dce5d5; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.diary-loop-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.diary-loop-card-head > span { display: inline-flex; align-items: center; gap: 8px; color: var(--lime-deep); font-size: 11px; font-weight: 750; letter-spacing: .09em; }
.diary-loop-card-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px var(--green-soft); }
.diary-loop-card-head small { color: var(--muted); font-size: 11px; }
.diary-loop-card h3 { margin: 20px 0 8px; font-size: 23px; font-weight: 650; letter-spacing: -.025em; }
.diary-pattern { max-width: 480px; color: var(--text); font-size: 17px; font-weight: 550; line-height: 1.5; }
.diary-evidence-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.diary-evidence-counts span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fafbf9; color: var(--muted); font-size: 12px; }
.diary-evidence-counts strong { color: var(--ink); font-family: var(--mono); }
.diary-evidence-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }
.evidence-marker { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 8px; font-size: 15px; font-weight: 700; }
.evidence-support { background: var(--green-soft); color: var(--green); }
.evidence-counter { background: #f2effe; color: var(--violet); }
.diary-evidence-row strong, .diary-evidence-row small { display: block; }
.diary-evidence-row strong { color: var(--ink); font-size: 12.5px; font-weight: 600; }
.diary-evidence-row small { margin-top: 3px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.evidence-result { padding: 4px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); font-size: 10px; font-weight: 650; }
.diary-review-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.diary-review-actions span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); font-size: 11px; font-weight: 550; }
.diary-review-actions span:first-child { border-color: #cce4b1; background: #f4f9ed; color: var(--lime-deep); }
.diary-example-disclosure { margin-top: 15px; color: var(--subtle); font-size: 10.5px; }
.diary-privacy-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; gap: 12px; padding: 17px 19px; border: 1px solid #dce5d5; border-radius: 14px; background: rgba(255, 255, 255, .85); }
.diary-privacy-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--lime-soft); color: var(--lime-deep); font-size: 23px; line-height: 1; }
.diary-privacy-card strong, .diary-privacy-card small { display: block; }
.diary-privacy-card strong { margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.diary-privacy-card small { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Toolkit bento */
.toolkit-section { border-top: 1px solid var(--line); background: var(--bg-soft); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tile-quant { grid-column: span 2; flex-direction: row; }
.tile-copy { padding: 28px 28px 22px; }
.tile-quant .tile-copy { flex: 0 0 40%; align-self: center; padding: 32px; }
.tile-kicker { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-deep); font-size: 12px; font-weight: 700; }
.tile h3 { margin-bottom: 8px; font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.tile-copy p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.tile-visual { margin: auto 20px 20px; padding: 16px; border: 1px solid #ebeee6; border-radius: 14px; background: linear-gradient(180deg, #f8faf5, #f0f4eb); }
.tile-quant .tile-visual { flex: 1; margin: 20px 20px 20px 0; }
.chat { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.bubble { max-width: 90%; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.bubble-user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--ink); color: #f3f6f1; }
.bubble-bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: #fff; box-shadow: var(--shadow-sm); }
.bot-head { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; }
.bot-avatar { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: var(--lime); color: var(--ink); font-size: 11px; font-weight: 800; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.bot-chips span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-soft); color: var(--text); font-size: 12px; font-weight: 500; }
.bot-action { color: var(--lime-deep); font-size: 12.5px; font-weight: 700; }
.lev-head { margin-bottom: 8px; color: var(--ink); font-size: 12.5px; font-weight: 600; }
.lev-row { display: grid; grid-template-columns: 30px 1fr 78px; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; }
.lev-row > span:first-child { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.lev-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e7eaec; }
.lev-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f7b8b5, var(--red)); }
.lev-row b { color: var(--red); font-family: var(--mono); font-weight: 600; text-align: right; }
.lev-liq .lev-bar i { background: repeating-linear-gradient(45deg, var(--red), var(--red) 6px, #b92d32 6px, #b92d32 12px); }
.lev-liq b { justify-self: end; padding: 2px 7px; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--sans); font-size: 11px; }
.diary-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 12.5px; }
.diary-example-label { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.diary-when { flex: none; width: 44px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.mood { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.mood-calm { background: #e5f2fa; color: #1b6690; }
.mood-rush { background: var(--amber-soft); color: #975800; }
.diary-text { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.diary-insight { margin-top: 2px; padding: 10px 12px; border-radius: 10px; background: #f1effe; color: #3a2f8f; font-size: 12.5px; line-height: 1.5; }
.news-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.news-row:last-child { margin-bottom: 0; }
.news-tag { flex: none; padding: 3px 7px; border-radius: 6px; font-family: var(--mono); font-size: 11px; font-weight: 700; }
.tag-btc { background: #fff1e0; color: #a65800; }
.tag-sol { background: #f1eafe; color: #6537c9; }
.tag-eth { background: #eaf0fe; color: #3552c4; }
.news-text { display: grid; min-width: 0; flex: 1; gap: 1px; }
.news-text b { overflow: hidden; color: var(--ink); font-size: 12.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.news-text small { color: var(--muted); font-size: 11px; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.file-ic { display: grid; flex: none; width: 34px; height: 40px; place-items: center; border-radius: 6px; background: var(--ink); color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.file-chip b { display: block; color: var(--ink); font-size: 13px; }
.file-chip small { color: var(--muted); font-size: 11.5px; }
.file-ok { display: grid; width: 24px; height: 24px; margin-left: auto; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 700; }
.data-checks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.data-checks span { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green); font-size: 11.5px; font-weight: 600; }

/* Academy */
.academy-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stage { position: relative; padding: 26px 22px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.stage::before { position: absolute; top: -1px; right: 22px; left: 22px; height: 4px; border-radius: 0 0 4px 4px; background: var(--stage-color); content: ""; }
.stage-1 { --stage-color: #7cb82f; }
.stage-2 { --stage-color: #7c6cf0; }
.stage-3 { --stage-color: #e0a100; }
.stage-4 { --stage-color: #14a3a3; }
.stage-num { margin-bottom: 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stage h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.stage-sub { margin: 6px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stage ol { display: grid; gap: 9px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; counter-reset: lesson; }
.stage li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; counter-increment: lesson; }
.stage li::before { display: grid; flex: none; width: 22px; height: 22px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--bg-soft); color: var(--muted); content: counter(lesson); font-size: 11px; font-weight: 700; }

/* Safety */
.safety-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.safety-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 72px; }
.safety-copy > p:not(.eyebrow) { max-width: 470px; margin: 18px 0 30px; color: var(--text); font-size: 18px; line-height: 1.65; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.safety-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.safety-card h3 { margin: 16px 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.safety-card p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: start; gap: 72px; }
.faq-intro { position: sticky; top: 108px; }
.faq-intro > p:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; color: var(--ink); cursor: pointer; font-size: 18px; font-weight: 600; letter-spacing: -.015em; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' fill='none' stroke='%230b1215' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; content: ""; transition: transform .2s ease, background-color .2s ease; }
.faq-list details[open] summary::after { background-color: var(--lime); transform: rotate(45deg); }
.faq-list summary:hover { color: #26343b; }
.faq-list details p { max-width: 680px; padding: 0 48px 24px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Final call to action */
.cta-band { padding: 0 0 112px; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; padding: 60px 64px; border-radius: 28px; background: var(--lime); }
.cta-inner::after { position: absolute; top: 50%; right: -30px; width: 340px; height: 340px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 20v-7m4.5 10V9m4.5 11v-8m4.5 12V8m4.5 11v-6' fill='none' stroke='%230b1215' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; content: ""; opacity: .07; pointer-events: none; transform: translateY(-50%); }
.cta-copy { position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; }
.cta-copy p { margin-top: 12px; color: #2c3b14; font-size: 18px; }
.cta-actions { position: relative; z-index: 1; display: flex; flex: none; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; }
.footer-brand p { max-width: 280px; margin-top: 14px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.footer-label { margin-bottom: 14px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.footer-col a { display: block; width: fit-content; margin-bottom: 10px; color: var(--muted); font-size: 14.5px; transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { padding: 24px 0 32px; border-top: 1px solid var(--line); }
.footer-legal > p { max-width: 920px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; color: var(--muted); font-size: 13px; }

/* Auth pages */
.auth-page { background: var(--bg-soft); }
.auth-page::before { position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(to right, rgba(11, 18, 21, .05) 1px, transparent 1px), linear-gradient(to bottom, rgba(11, 18, 21, .05) 1px, transparent 1px); background-size: 56px 56px; content: ""; -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 60% at 30% 30%, #000 10%, transparent 72%); pointer-events: none; }
.auth-header { border-color: var(--line); }
.auth-main { min-height: calc(100vh - 72px); padding-top: 80px; padding-bottom: 72px; }
.auth-layout { display: grid; max-width: 1060px; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); align-items: center; gap: 96px; margin: 0 auto; }
.auth-intro .eyebrow { display: inline-flex; align-items: center; }
.status-dot { display: inline-block; flex: none; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--chart-fast); box-shadow: 0 0 0 4px rgba(92, 158, 20, .18); }
.auth-intro h1 { font-size: clamp(40px, 4.8vw, 60px); font-weight: 700; letter-spacing: -.045em; line-height: 1.04; }
.auth-lede { max-width: 460px; margin-top: 20px; color: var(--text); font-size: 18px; line-height: 1.65; }
.auth-promises { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--text); font-size: 15px; }
.auth-promises li { display: flex; align-items: center; gap: 10px; }
.auth-promises span { display: grid; flex: none; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--lime-soft); color: var(--lime-deep); font-size: 13px; font-weight: 700; }
.auth-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.auth-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.card-index { margin: 0 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.auth-mark { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 800; }
.auth-mark svg { width: 26px; height: 26px; }
.mode-switch { display: flex; gap: 4px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mode-switch a { flex: 1; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; text-align: center; transition: color .15s ease, background .15s ease; }
.mode-switch a:hover { color: var(--ink); }
.mode-switch a[aria-selected="true"] { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 32, .14), 0 0 0 1px rgba(15, 23, 32, .04); color: var(--ink); }
.notice { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; line-height: 1.5; }
.notice-info { border-color: #cddffb; background: #f2f7ff; color: #1d4f9c; }
.notice-error { border-color: #f3c1bf; background: var(--red-soft); color: #a3262b; }
.notice-success { border-color: #bde4ca; background: var(--green-soft); color: var(--green); }
.auth-form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field-label-row label { color: var(--ink); font-size: 14px; font-weight: 600; }
.field-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.password-rule { color: var(--muted); font-size: 12.5px; }
.field input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; outline: 0; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.field input:hover { border-color: #b7c0c8; }
.field input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(196, 236, 129, .6); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-legal { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.auth-switch { margin-top: 20px; color: var(--muted); font-size: 14.5px; text-align: center; }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime-bright); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.auth-recovery { margin: 14px 0 0; font-size: 14px; text-align: right; }
.auth-recovery a { color: var(--muted); font-weight: 500; }
.auth-recovery a:hover { color: var(--ink); }
.button-spinner { display: none; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .button-spinner { display: inline-block; }
.button.is-loading { opacity: .8; pointer-events: none; }
.signed-in-panel .eyebrow { margin-bottom: 10px; }
.signed-in-panel h2 { margin-bottom: 10px; font-size: 24px; }
.signed-in-panel p:not(.eyebrow) { margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.auth-footnote { max-width: 640px; margin: 56px auto 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }

/* Motion */
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes header-widget-bounce {
  0%, 45%, 100% { transform: translateY(0); }
  48% { transform: translateY(-4px); }
  51% { transform: translateY(0); }
  54% { transform: translateY(-2px); }
  57% { transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1180px) {
  .header-inner { gap: 16px; }
  .desktop-nav { margin-left: 4px; }
  .desktop-nav a { padding: 8px 9px; font-size: 14.5px; }
  .social-x-link { width: 34px; justify-content: center; padding: 0; }
  .social-x-link span { display: none; }
  .hero-layout, .feature-layout, .safety-layout { gap: 48px; }
  .stat { padding: 26px 20px; }
  .stat strong { font-size: 40px; }
  .stress-list li { grid-template-columns: minmax(0, 1.6fr) minmax(40px, .8fr) 58px 108px; gap: 10px; }
}

@media (max-width: 1024px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: grid; gap: 2px; padding: 8px 24px 20px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 24px 30px -24px rgba(15, 23, 32, .4); }
  .mobile-nav > a { padding: 13px 2px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; font-weight: 500; }
  .mobile-nav .mobile-social-x-link { color: var(--lime-deep); }
  .mobile-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 16px; }
  .hero { padding-top: 48px; }
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 680px; }
  .hero-visual { width: min(100%, 700px); margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:first-child { padding: 24px 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .feature-layout, .safety-layout { grid-template-columns: 1fr; gap: 48px; }
  .diary-loop-layout { grid-template-columns: 1fr; gap: 38px; }
  .diary-loop-copy { max-width: 700px; }
  .diary-loop-visual { width: min(100%, 700px); margin-inline: auto; }
  .feature-layout-reverse > .feature-copy { order: 0; }
  .feature-copy, .safety-copy { max-width: 680px; }
  .report, .stress-visual, .practice-visual { width: min(100%, 700px); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-quant { grid-column: 1 / -1; }
  .academy-track { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .faq-intro { position: static; max-width: 640px; }
  .section-head-split { grid-template-columns: 1fr; gap: 16px; }
  .cta-inner { padding: 48px 44px; }
  .auth-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 56px; }
}

@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .auth-layout { grid-template-columns: 1fr; max-width: 520px; gap: 40px; }
  .auth-main { padding-top: 48px; }
}

@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { height: 64px; gap: 10px; }
  .wordmark { gap: 9px; font-size: 18px; }
  .brand-icon { width: 32px; height: 32px; }
  .nav-signin, .nav-cta { display: none; }
  .header-actions { gap: 8px; }
  .social-x-link { width: 32px; height: 32px; }
  .menu-toggle { width: 40px; height: 40px; }
  .mobile-nav { padding: 6px 16px 18px; }
  .mobile-nav-actions { grid-template-columns: 1fr; }
  .mobile-nav-actions .button { min-height: 48px; }
  .hero { padding: 36px 0 64px; }
  .hero-pill { margin-bottom: 20px; font-size: 13px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .hero-lede { margin: 18px 0 26px; font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-trust { flex-direction: column; gap: 10px; margin-top: 24px; }
  .hero-visual { padding: 8px 0 0; }
  .mock-bar { min-height: 42px; padding: 0 12px; font-size: 12px; }
  .mock-crumbs > span:not(.mock-logo):not(.crumb-sep), .mock-crumbs .crumb-sep { display: none; }
  .mock-toolbar { padding: 11px 12px 10px; }
  .mock-chip, .mock-change { display: none; }
  .mock-stats { grid-template-columns: repeat(2, 1fr); }
  .mock-stats div { padding: 10px 12px; }
  .mock-stats div:nth-child(3) { border-left: 0; }
  .mock-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .mock-stats strong { font-size: 17px; }
  .mock-legend { padding: 10px 12px 0; gap: 4px 12px; }
  .candle-chart .axis-text { display: none; }
  .rules-card { position: relative; left: auto; bottom: auto; width: auto; margin: -22px 10px 0; }
  .stress-card { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 14px 22px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .stat strong { font-size: 36px; }
  .stat span { font-size: 13.5px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; text-align: left; }
  .section-sub { font-size: 17px; }
  .problem-card { padding: 24px 22px; }
  .problem-bridge { justify-content: flex-start; font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .step-visual { height: 150px; }
  .feature-lede { font-size: 17px; }
  .diary-loop-layout { gap: 30px; }
  .diary-loop-copy h2 { font-size: clamp(32px, 9vw, 42px); }
  .diary-loop-copy > p:not(.eyebrow):not(.diary-loop-note) { font-size: 16px; }
  .diary-loop-steps { margin: 22px 0; }
  .diary-loop-steps small { font-size: 13px; }
  .diary-loop-copy > .button { width: 100%; }
  .diary-loop-card { padding: 20px 17px; border-radius: 15px; }
  .diary-loop-card h3 { font-size: 21px; }
  .diary-pattern { font-size: 15px; }
  .diary-evidence-row { grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
  .diary-evidence-row .evidence-result { grid-column: 2; justify-self: start; }
  .diary-evidence-row strong { font-size: 12px; }
  .diary-evidence-row small { font-size: 10.5px; }
  .diary-privacy-card { padding: 15px; }
  .check-list li { font-size: 15.5px; }
  .report-stats { grid-template-columns: repeat(2, 1fr); }
  .report-stats div { padding: 14px; }
  .report-stats div:nth-child(3) { border-left: 0; }
  .report-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .report-stats strong { font-size: 22px; }
  .chart-toolbar { padding: 14px 14px 6px; }
  .chart-tab { padding: 6px 11px; }
  .chart-panel { padding: 8px 14px 0; }
  .report figcaption { padding: 14px; }
  .waterfall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .waterfall i { display: none; }
  .waterfall .waterfall-total { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; }
  .stress-list { padding: 2px 14px 0; }
  .stress-list li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 11px 0; }
  .st-bar { display: none; }
  .st-name { grid-column: 1 / -1; font-size: 13px; }
  .st-val { text-align: left; }
  .heatmap-card, .paper-card { width: auto; margin: 14px 0 0; }
  .replay-candles .hidden-label text { font-size: 24px; }
  .replay-candles .hidden-label .hidden-caption { font-size: 17px; }
  .replay-actions { padding: 14px 14px 18px; }
  .decision { font-size: 12px; }
  .bento, .academy-track, .safety-grid { grid-template-columns: 1fr; }
  .tile-quant { flex-direction: column; }
  .tile-quant .tile-copy { padding: 26px 24px 18px; }
  .tile-copy { padding: 26px 24px 18px; }
  .tile-quant .tile-visual, .tile-visual { margin: 0 16px 16px; }
  .faq-list summary { padding: 18px 0; font-size: 16.5px; }
  .faq-list details p { padding-right: 0; font-size: 15.5px; }
  .cta-band { padding-bottom: 72px; }
  .cta-inner { padding: 36px 24px; border-radius: 22px; }
  .cta-inner::after { top: 24px; right: -36px; width: 180px; height: 180px; transform: none; }
  .cta-copy p { font-size: 16.5px; }
  .cta-actions { width: 100%; flex-direction: column; }
  .cta-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 44px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .back-link { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 15px; }
  .back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .auth-main { padding-top: 28px; padding-bottom: 48px; }
  .auth-layout { gap: 36px; }
  .auth-card { order: -1; padding: 24px 20px; border-radius: 18px; }
  .auth-intro h1 { font-size: 38px; }
  .auth-lede { font-size: 16px; }
  .auth-footnote { margin-top: 40px; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 17px; }
  .mock-legend span:nth-child(n + 3) { display: none; }
}

/* The host injects a StonkBuilder-branded contact card; SuperQuant already links to X in its header. */
html body.sq-site #stonkbuilder-x-contact { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
