:root {
  --bg: #0c0c0d;
  --bg-2: #131315;
  --card: #17171a;
  --line: #26262b;
  --text: #ededee;
  --muted: #9a9aa3;
  --accent: #c8f169;
  --accent-ink: #14180a;
  --med: #e9c46a;
  --low: #6f6f78;
  --radius: 14px;
  --maxw: 1120px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafaf8;
    --bg-2: #f1f1ee;
    --card: #ffffff;
    --line: #e3e3de;
    --text: #151517;
    --muted: #62626b;
    --accent: #4d7c0f;
    --accent-ink: #ffffff;
    --med: #a16207;
    --low: #9a9aa3;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 650; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 1.2em; margin: 0 0 .8em; }
li { margin-bottom: .35em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.eyebrow { font: 500 .78rem/1.4 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: .6em; }
.fineprint { font-size: .8rem; color: var(--muted); }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; white-space: nowrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent); }
.nav { display: flex; gap: 18px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  padding: 11px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem;
}
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-small { padding: 6px 12px; font-size: .82rem; white-space: nowrap; }

/* hero */
.hero { padding-top: 88px; padding-bottom: 40px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); max-width: 680px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 20px; border-right: 1px solid var(--line); background: var(--bg-2); }
.stat:last-child { border-right: 0; }
.stat-n { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-l { color: var(--muted); font-size: .85rem; }

/* sections */
.section { padding-top: 80px; padding-bottom: 16px; }
.section-head { display: grid; grid-template-columns: 56px 1fr; gap: 12px; margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 760px; }
.num { font: 500 .9rem "JetBrains Mono", monospace; color: var(--accent); padding-top: 10px; }
.sub { margin-top: 40px; }

/* filters + table */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
#search { margin-left: auto; min-width: 220px; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .88rem; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.accounts { width: 100%; border-collapse: collapse; font-size: .9rem; }
.accounts th { text-align: left; font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; padding: 12px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; }
.accounts td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.accounts tbody tr { cursor: pointer; }
.accounts tbody tr:hover, .accounts tbody tr:focus { background: var(--bg-2); outline: none; }
.accounts tbody tr:last-child td { border-bottom: 0; }
.co { font-weight: 600; display: block; }
.sub-co { display: block; color: var(--muted); font-size: .8rem; }
.why { color: var(--muted); max-width: 300px; }
.num-col { text-align: right; }
.score { display: inline-block; min-width: 38px; text-align: center; padding: 2px 8px; border-radius: 999px; font: 600 .85rem "JetBrains Mono", monospace; }
.score.high { background: var(--accent); color: var(--accent-ink); }
.score.med { background: color-mix(in srgb, var(--med) 22%, transparent); color: var(--med); }
.score.low { background: var(--bg-2); color: var(--low); border: 1px solid var(--line); }
.angle-tag { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); font: 600 .72rem "JetBrains Mono", monospace; color: var(--text); margin-right: 4px; }

.method { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.method summary { padding: 14px 18px; cursor: pointer; font-weight: 600; }
.method-body { padding: 0 18px 18px; }
table.mini { width: 100%; border-collapse: collapse; font-size: .86rem; margin: 10px 0 14px; }
.mini th, .mini td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini th { color: var(--muted); font-weight: 500; }

/* cards */
.cards { display: grid; gap: 14px; margin-bottom: 14px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: .93rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.proof-line { border-top: 1px dashed var(--line); padding-top: 10px; color: var(--accent); font-size: .85rem; }
.proof .big { display: block; font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.plan .target { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 600; color: var(--accent); }

/* timeline */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.timeline li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: .88rem; margin: 0; }
.t-day { display: block; font: 600 .8rem "JetBrains Mono", monospace; color: var(--accent); }
.t-ch { display: block; font-weight: 600; margin-bottom: 6px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.checks li::before { content: "→ "; color: var(--accent); }

/* channel mix */
.mix { margin-bottom: 22px; }
.mix-row { display: grid; grid-template-columns: 170px 1fr 48px; gap: 12px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.mix-bar { height: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.mix-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.mix-pct { font-family: "JetBrains Mono", monospace; text-align: right; }

/* panels */
.panel { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: var(--bg-2); padding: 28px; margin-top: 28px; }
.panel.slim { padding: 22px; }
.panel-head { max-width: 760px; margin-bottom: 18px; }
.panel-head p:last-child { color: var(--muted); }
.invite { margin-top: 10px; font-size: .92rem; }

/* calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; margin-bottom: 12px; }
.calc-inputs label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.calc-inputs input[type=number], .calc-inputs input[type=text], .calc-inputs select {
  display: block; width: 100%; margin-top: 4px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .95rem;
}
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
legend { font-size: .82rem; color: var(--muted); padding: 0 6px; }
.tool { display: grid !important; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; color: var(--text) !important; margin-bottom: 6px !important; font-size: .88rem !important; }
.tool-price { color: var(--muted); font: .78rem "JetBrains Mono", monospace; text-align: right; }
.custom-tool { display: grid; grid-template-columns: 1.4fr .8fr .8fr auto; gap: 6px; margin-top: 8px; align-items: center; }
.custom-tool input, .custom-tool select { margin-top: 0 !important; }
.calc-out { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; position: sticky; top: 80px; }
.out-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.out-row strong { font-family: "JetBrains Mono", monospace; }
.out-row.total { font-size: 1.05rem; }
.out-row.total strong { color: var(--accent); font-size: 1.2rem; }
.out-row.alt { border-bottom: 0; color: var(--muted); }

/* pulse */
.pulse-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.pulse-n { font: 500 .9rem "JetBrains Mono", monospace; color: var(--muted); padding-top: 3px; }
.fact { font-size: 1.02rem; }
.pulse-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pulse-grid p { font-size: .9rem; color: var(--muted); margin: 0; }
.lbl { display: block; font: 500 .72rem "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 2px; }
.qs li { color: var(--muted); }

/* zero flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; font-size: .88rem; position: relative; }
.flow-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 .8rem "JetBrains Mono", monospace; margin-bottom: 10px; }
.feature { color: var(--accent); font-size: .8rem; font-family: "JetBrains Mono", monospace; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 100%); background: var(--bg-2); border-left: 1px solid var(--line);
  z-index: 50; padding: 28px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.drawer.open { transform: translateX(0); visibility: visible; transition: transform .25s ease; }
.drawer-close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.drawer h4 { margin-top: 20px; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.d-grid div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.d-grid span { display: block; font-size: .75rem; color: var(--muted); }
.msg { margin: 0 0 8px; padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 0 10px 10px 0; font-size: .92rem; }

.footer { padding-top: 64px; padding-bottom: 48px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin-top: 72px; }
.footer p { max-width: 760px; margin-top: 20px; }

/* responsive */
@media (max-width: 960px) {
  .cards-4, .flow { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .hide-md { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar { padding: 10px 16px; gap: 12px; }
  .nav { display: none; }
  .brand { flex: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards-2, .cards-3, .cards-4, .flow, .timeline, .checks, .pulse-grid { grid-template-columns: 1fr; }
  .section-head, .pulse-item { grid-template-columns: 1fr; gap: 4px; }
  .num, .pulse-n { padding-top: 0; }
  #search { margin-left: 0; width: 100%; }
  .hide-sm { display: none; }
  .mix-row { grid-template-columns: 110px 1fr 40px; }
  .custom-tool { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
}
