/* Deepline - deeplinechess.com
   Layout: one 1200px column; dark brand page (Night background, Lime accent), sections separated by hairlines. */
:root {
  /* brand palette (Deepline brand sheet) */
  --night: #0F1412;
  --mist: #ECEFEA;
  --lime: #A8E06A;
  --lime-hover: #C7F09A;
  --deep-green: #4F8A1E;
  --teal: #2A7F6F;
  --navy: #0B1B3A;

  /* page tokens (the site is dark by design) */
  --bg: var(--night);
  --surface: #18201C;
  --line: #2A3530;
  --line-strong: #3A4842;
  --text: var(--mist);
  --muted: #B4BEB8;
  --faint: #9AA59F;

  --font-ui: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--text); }
a:hover { color: var(--lime-hover); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } body { font-size: 17px; } }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; font-size: 16px; }
.nav a { text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; font-weight: 700; padding: 15px 24px; border-radius: 6px;
  border: 1.5px solid transparent; font-family: inherit; font-size: 17px; cursor: pointer;
}
.btn-primary { background: var(--lime); color: var(--night); }
.btn-primary:hover { background: var(--lime-hover); color: var(--night); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--lime); }
.btn-small { padding: 11px 18px; font-size: 15px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* type */
.eyebrow { margin: 0 0 18px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; color: var(--lime); }
h1 { margin: 0 0 22px; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.03; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h3 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.lede { max-width: 34em; font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* sections */
.section { padding-block: 72px; border-top: 1px solid var(--line); }
.section-intro { margin-bottom: 40px; max-width: 46em; display: grid; gap: 6px; }
.section-intro p { color: var(--muted); }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 64px 88px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: grid; gap: 30px; }
.hero-copy h1, .hero-copy .lede { margin: 0; }
.free-hook { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 16px; }
.free-hook .dot { width: 9px; height: 9px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.18); flex: none; }
.free-hook b { color: var(--text); }

.meter {
  flex: 1 1 320px; min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; font-family: var(--font-mono); font-size: 15px;
}
.meter-top { display: flex; justify-content: space-between; color: var(--faint); margin-bottom: 18px; }
.meter-top .on { color: var(--lime); }
.meter-speed { font-size: 44px; font-weight: 700; color: var(--lime); line-height: 1; font-variant-numeric: tabular-nums; }
.meter-sub { color: var(--faint); margin: 6px 0 24px; }
.meter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.meter-grid .k { color: var(--faint); }
.meter-grid .v { font-size: 20px; font-variant-numeric: tabular-nums; }

/* comparison */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.compare .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.compare .box.ours { border: 2px solid var(--lime); }
.compare .who { color: var(--faint); margin-bottom: 10px; }
.compare .ours .who { color: var(--lime); font-weight: 700; }
.compare .num { font-family: var(--font-mono); font-size: 48px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.compare .note { color: var(--faint); }

/* steps: a real sequence, so numbered */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: step; }
.step { display: grid; gap: 8px; align-content: start; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); color: var(--lime); font-size: 28px; font-weight: 700; }
.step h3, .step p { margin: 0; }
.step p { color: var(--muted); }

/* features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; align-content: start; }
.feature h3, .feature p { margin: 0; }
.feature p { color: var(--muted); }
.feature .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--lime); background: var(--surface); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-family: var(--font-mono); font-size: 40px; font-weight: 700; line-height: 1.1; }
.plan .price small { font-size: 18px; color: var(--faint); font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 2px; background: var(--lime); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 20px; color: var(--faint); font-size: 15px; }

/* download + beta */
.download { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.download-copy { flex: 999 1 480px; min-width: 0; display: grid; gap: 22px; }
.qr { flex: 0 0 200px; width: 200px; height: 200px; border: 2px dashed var(--line-strong); border-radius: var(--radius); display: grid; place-items: center; text-align: center; color: var(--faint); font-size: 14px; padding: 16px; background: transparent; }
.qr.ready { border: 0; background: #FFFFFF; padding: 12px; }
.qr img, .qr canvas { width: 100%; height: auto; }
.status { font-family: var(--font-mono); font-size: 13px; color: var(--faint); letter-spacing: .03em; }

.beta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; max-width: 640px; }
.beta h3 { margin: 0; }
.beta p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 88px; resize: vertical; }
.hidden { display: none; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px 48px; }
.faq h3 { font-size: 20px; }
.faq p { color: var(--muted); }

/* footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 40px 56px; border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--lime-hover); }

/* simple text pages (privacy, terms, thanks) */
.doc { max-width: 760px; padding-block: 40px 80px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 40px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; }
.draft { border: 1px dashed var(--line-strong); border-radius: 8px; padding: 14px 16px; color: var(--faint); font-size: 15px; margin-bottom: 28px; }
