:root {
  --soft-text: #c9ccd6;
  --accent-text: #c8f43c;
  color-scheme: dark;
  --bg: #0d0e12;
  --panel: #16181f;
  --panel-2: #1e212a;
  --line: #2a2e3a;
  --text: #f2f3f5;
  --muted: #8b90a0;
  --accent: #c8f43c;
  --accent-ink: #11140a;
  --bad: #f87171;
  --memory: #7cc4ff;
  --reasoning: #ffb547;
  --expression: #e58cff;
  --focus: #5eead4;
  --debate: #ff7a7a;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f0;
    --panel: #ffffff;
    --panel-2: #eceee6;
    --line: #dcdfd4;
    --text: #14160f;
    --muted: #5b6155;
    --accent-text: #3f6212;
    --soft-text: #3a3f35;
    --bad: #b91c1c;
    --memory: #1d6fb8;
    --reasoning: #b45309;
    --expression: #a21caf;
    --focus: #0f766e;
    --debate: #be123c;
    color-scheme: light;
  }
  .logo-mark-img { content: url("/brand/logo-mark-ink.svg"); }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); }
h1, h2, h3, p { margin: 0; }
h1, h2 { letter-spacing: -0.03em; line-height: 1.05; font-weight: 900; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.stack > * + * { margin-top: 14px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
main > section.wrap { padding-top: 72px; padding-bottom: 72px; }

.nav { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.15rem; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav-link:hover { color: var(--accent-text); }

.hero { text-align: center; padding-top: 64px !important; }
.eyebrow { color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; font-weight: 800; }
.hero h1 { font-size: clamp(3rem, 10vw, 6.5rem); margin: 18px 0 22px; }
.hero h1 span { color: var(--accent-text); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--soft-text); max-width: 640px; margin: 0 auto 32px; }

.waitlist { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.waitlist input {
  flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); color: var(--text);
  border-radius: 14px; padding: 16px 18px; font: inherit; outline: none;
}
.waitlist input:focus { border-color: var(--accent); }
.waitlist button, .btn {
  border: 0; border-radius: 14px; padding: 16px 22px; font: inherit; font-weight: 800; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); white-space: nowrap; text-decoration: none; display: inline-block; text-align: center;
}
.waitlist button:disabled { opacity: 0.5; }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.form-msg { color: var(--bad); min-height: 1.4em; margin-top: 10px; font-size: 0.9rem; }
.joined { font-weight: 800; color: var(--accent-text); font-size: 1.1rem; }

.analogy { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.big-quote { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; }
.analogy p:not(.big-quote) { color: var(--soft-text); font-size: 1.08rem; }

.section-sub { margin-bottom: 32px; font-size: 1.05rem; }
.muscle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.m { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 18px; padding: 22px; }
.m .m-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); }
.m .m-icon .mg-icon { width: 26px; height: 26px; }
.mi { display: inline-flex; vertical-align: -0.12em; }
.mi .mg-icon { width: 0.95em; height: 0.95em; }
.m h3 { margin: 10px 0 6px; color: var(--c); }
.m p { color: var(--muted); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.steps > div { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); margin-bottom: 14px; }
.steps p { color: var(--muted); margin-top: 6px; }

.honest p { max-width: 720px; color: var(--soft-text); font-size: 1.1rem; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; max-width: 760px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan.pro { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent-text) inset; }
.amount { font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan ul { margin: 0; padding-inline-start: 20px; color: var(--soft-text); flex: 1; }
.plan li + li { margin-top: 6px; }

.final { text-align: center; }
.final h2 { margin-bottom: 28px; }

.footer { display: flex; justify-content: space-between; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.footer a { color: var(--muted); }

@media (max-width: 760px) {
  main > section.wrap { padding-top: 56px; padding-bottom: 56px; }
  .split, .steps, .plans { grid-template-columns: 1fr; gap: 18px; }
  .waitlist { flex-direction: column; }
}

/* Nav + language */
.nav-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.nav-link.on { color: var(--accent-text); }
.lang-select {
  background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 10px; font: inherit; font-size: 0.85rem;
}
.text-link { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Science page */
.sci-hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
.sci-section { border-top: 1px solid var(--line); }
.studies { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.study { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.study h3 { font-size: 1rem; line-height: 1.35; }
.study p { color: var(--soft-text); font-size: 0.95rem; }
.study .use { color: var(--accent-text); }
.study .venue { color: var(--muted); font-size: 0.82rem; font-style: italic; margin-top: -6px; }
.study .text-link { margin-top: auto; font-size: 0.9rem; }
.study-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; }
.kind { font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.kind.experiment { color: var(--memory); }
.kind.meta { color: var(--focus); }
.kind.review { color: var(--reasoning); }
.kind.survey, .kind.theory { color: var(--expression); }
.kind.preprint { color: var(--debate); }
.experts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.expert { margin: 0; background: var(--panel); border-inline-start: 3px solid var(--accent); border-radius: 14px; padding: 18px 20px; }
.expert p { font-size: 1.02rem; color: var(--text); }
.expert cite { display: block; margin-top: 10px; color: var(--muted); font-style: normal; font-size: 0.88rem; }

/* Scripts that break with negative letter-spacing */
:lang(ar) h1, :lang(ar) h2, :lang(ar) .big-quote, :lang(hi) h1, :lang(hi) h2, :lang(hi) .big-quote,
:lang(zh) h1, :lang(zh) h2, :lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; }
:lang(ar) body { line-height: 1.8; }
:lang(ar) .eyebrow { letter-spacing: 0; }
@media (max-width: 760px) { .nav-links { gap: 12px; } .nav { flex-wrap: wrap; gap: 12px; } }

.plan .yearly { margin: -6px 0 12px; font-size: 0.9rem; font-weight: 600; color: var(--accent-text); }

.logo-mark-img { width: 34px; height: 20px; flex-shrink: 0; }

/* Privacy and support pages */
.legal { max-width: 720px; padding-top: 32px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.legal h3 { font-size: 1.05rem; margin: 20px 0 6px; }
.legal p, .legal li { color: var(--soft-text, #c9ccd6); line-height: 1.65; }
.legal ul { padding-inline-start: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent-text, #d4ff3f); }
