/* Sterlinvest tokens, copied from broker-platform (forest green, cream, lime). */
:root {
  --bg: #f5f3ec; --bg-elevated: #fff; --fg: #12241c; --fg-muted: #4f655a; --border: rgba(18, 36, 28, 0.12);
  --forest: #1f4d3a; --forest-deep: #10281e; --lime: #9be15d; --mint: #e7f3ea;
  --primary-bg: var(--forest); --primary-fg: #fff; --chip-bg: var(--mint); --chip-fg: var(--forest);
  --negative: #b42323; --positive: #1f7a4d; --ring: rgba(31, 77, 58, 0.55);
  --shadow: 0 1px 2px rgba(16, 40, 30, 0.04), 0 12px 32px rgba(16, 40, 30, 0.08);
  --orb: rgba(155, 225, 93, 0.35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
.dark {
  --bg: #0c1914; --bg-elevated: #15302a; --fg: #f5f3ec; --fg-muted: #a9bdb1; --border: rgba(245, 243, 236, 0.14);
  --mint: #1d3a2e; --primary-bg: var(--lime); --primary-fg: #10281e; --chip-bg: #24473a; --chip-fg: #c8f29f;
  --negative: #ff8a8a; --positive: #9be15d; --ring: rgba(155, 225, 93, 0.7);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.35);
  --orb: rgba(155, 225, 93, 0.14);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100dvh; font-family: var(--font); line-height: 1.55; font-size: 16px; display: flex; flex-direction: column; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -64px; background: var(--primary-bg); color: var(--primary-fg); padding: 10px 14px; border-radius: 10px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* header (static, not pinned) */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: inline-flex; align-items: center; height: 32px; }
.logo img { height: 32px; width: auto; display: block; }
.dark .logo .l, .logo .d { display: none; }
.dark .logo .d { display: block; }
.theme { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-elevated); color: var(--fg); cursor: pointer; }
.theme svg { width: 20px; height: 20px; }
.theme .sun { display: none; }
.dark .theme .sun { display: block; }
.dark .theme .moon { display: none; }

/* hero */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding: 28px 0 40px; display: grid; gap: 28px; }
.orb { position: absolute; z-index: -1; right: -120px; top: -40px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, var(--orb), transparent 68%); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-24px, 18px, 0); } }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--chip-bg); color: var(--chip-fg); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(155, 225, 93, 0.3); }
.light-only-dot { background: var(--forest); }
h1 { margin: 14px 0 12px; font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 750; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(1.05rem, 3.4vw, 1.25rem); color: var(--fg-muted); max-width: 34rem; text-wrap: pretty; }
.cur { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.cur li { border: 1px solid var(--border); background: var(--bg-elevated); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* cards + form */
.card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 4px; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p.sub { margin: 0 0 16px; color: var(--fg-muted); font-size: 15px; }
label.fl { display: block; font-weight: 650; font-size: 14px; margin-bottom: 6px; }
input[type="email"] { width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--bg); color: var(--fg); padding: 0 14px; font: inherit; font-size: 16px; }
input[type="email"]::placeholder { color: var(--fg-muted); opacity: 0.8; }
input[aria-invalid="true"] { border-color: var(--negative); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; font-size: 14px; line-height: 1.5; }
.consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--forest); }
.dark .consent input { accent-color: var(--lime); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 65px; margin: 4px 0 12px; }
.btn { width: 100%; min-height: 50px; border: 0; border-radius: 14px; background: var(--primary-bg); color: var(--primary-fg); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform 160ms var(--ease), opacity 160ms; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--border); }
.msg { margin: 12px 0 0; font-size: 14.5px; min-height: 1.5em; }
.msg.err { color: var(--negative); }
.msg.good { color: var(--positive); font-weight: 600; }
.note { margin: 10px 0 0; font-size: 12.5px; color: var(--fg-muted); }

.feats { display: grid; gap: 14px; padding: 8px 0 28px; }
.feats .card { padding: 20px; box-shadow: none; }
.feats h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feats p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.risk { border-top: 1px solid var(--border); padding: 20px 0; color: var(--fg-muted); font-size: 13.5px; max-width: 60rem; }

footer { margin-top: auto; border-top: 1px solid var(--border); padding: 20px 0 28px; font-size: 14px; color: var(--fg-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { min-height: 24px; }

/* privacy page */
.doc { max-width: 44rem; padding: 12px 0 40px; }
.doc h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.doc h2 { font-size: 1.15rem; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--fg-muted); font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--fg); }
.ph { background: var(--chip-bg); color: var(--chip-fg); border-radius: 6px; padding: 1px 6px; font-weight: 600; }

@media (min-width: 880px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; padding: 56px 0 64px; }
  .orb { width: 560px; height: 560px; right: -160px; top: -120px; }
  .feats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { padding: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
