/* PropsCopilot v0.3 — Charterstone family design language (borrowed
   from charterstoneconsultancy.com: Inter + JetBrains Mono self-hosted,
   night-navy surfaces, orange #f47321 accent, soft-shadow cards). */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --night: #050c1a;
  --navy-2: #0f2347;
  --blue: #2563eb;
  --blue-brand: #1d5fa8;
  --cyan: #38bdf8;
  --accent: #f47321;
  --accent-soft: #ffedd5;
  --accent-line: #fed7aa;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --on-dark: #e2e8f0;
  --on-dark-muted: #94a3b8;
  --warn: #c0392b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px -12px rgba(15, 23, 42, .14);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65;
  color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 750; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── Header: night glass ─────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 12, 26, .9);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.head-row { display: flex; align-items: center; justify-content: space-between; padding: 15px 24px; }
.brand { color: #fff; font-size: 1.3rem; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand span { color: var(--accent); }
.site-head nav a {
  color: #cbd5e1; text-decoration: none; margin-left: 18px; font-size: .95rem; font-weight: 560;
  padding: 9px 14px; border-radius: 10px; transition: color .15s, background .15s;
}
.site-head nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-head nav a.cta { border: 1px solid rgba(244, 115, 33, .55); color: #ffb27a; }
.site-head nav a.cta:hover { background: rgba(244, 115, 33, .14); color: #fff; }

/* ── Dark hero with glows + gridlines ────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--on-dark);
  text-align: center; padding: 88px 24px 96px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; opacity: .55; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; left: -160px; top: -220px;
  background: radial-gradient(circle, rgba(37, 99, 235, .55), rgba(37, 99, 235, .16) 40%, transparent 70%); }
.hero::after { width: 520px; height: 520px; right: -140px; top: 8%;
  background: radial-gradient(circle, rgba(244, 115, 33, .35), rgba(244, 115, 33, .1) 42%, transparent 70%); }
.gridlines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.03em; margin: 18px 0 14px; }
.hero .lede { color: #b6c2d4; font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 56ch; margin: 0 auto 30px; }
.hero .lede em { color: var(--on-dark); font-style: normal; font-weight: 650; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750;
  letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; margin: 0;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .25); background: rgba(15, 23, 42, .5);
  color: #cbd5e1; font-size: .86rem; font-weight: 560;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

/* ── Buttons ─────────────────────────────────────────────────── */
.big-cta, .form button, .wait-form button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 680; font-size: 1.02rem;
  font-family: inherit; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  background: linear-gradient(180deg, #ff8a3d, var(--accent)); color: #fff;
  box-shadow: 0 10px 28px -8px rgba(244, 115, 33, .6), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .15s, box-shadow .2s, background .2s;
}
.big-cta:hover, .form button:hover, .wait-form button:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(244, 115, 33, .8), inset 0 1px 0 rgba(255,255,255,.25);
}
.big-cta-ghost {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 12px;
  font-weight: 680; font-size: 1.02rem; text-decoration: none; color: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, .3); background: rgba(255, 255, 255, .04);
  transition: border-color .2s, background .2s, color .2s;
}
.big-cta-ghost:hover { color: #fff; border-color: rgba(203, 213, 225, .6); background: rgba(255,255,255,.08); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ── Cards ───────────────────────────────────────────────────── */
main { padding-bottom: 64px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; margin: 26px auto; max-width: 780px; box-shadow: var(--shadow);
}
.waitlist { text-align: center; }
.wait-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.wait-form input {
  flex: 1 1 260px; max-width: 340px; padding: 13px 15px; font: inherit; font-size: 1rem;
  border: 1.5px solid #d6dde8; border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.wait-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.flash {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px;
  padding: 11px 15px; color: #065f46; font-weight: 650;
}

/* ── Module / result cards ───────────────────────────────────── */
#modules { padding: 40px 24px 0; }
#modules h2, .page-head h1 { text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0 10px; }
.mod {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.mod:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -18px rgba(15, 23, 42, .22); }
.mod h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--blue-brand); }
.mod p { margin: 0; color: var(--muted); font-size: .94rem; }
.mod.live { border-color: var(--accent-line); border-width: 1.5px; background: linear-gradient(#fff, #fff) padding-box; }
.mod.live h3::after {
  content: "LIVE"; margin-left: 8px; vertical-align: 2px; font-size: .62rem; font-weight: 750;
  letter-spacing: .1em; color: #c2410c; background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: 999px; padding: 2px 8px;
}
.results .mod { text-align: center; padding: 20px 16px; }
.results .big { font-size: 2rem; font-weight: 760; color: var(--ink); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.results .sub { font-size: .84rem; }
.hero-mod { border-color: rgba(244, 115, 33, .5); border-width: 1.5px; }
.hero-mod .big { color: var(--blue-brand); }
.hero-mod.warn .big { color: var(--warn); }

.page-head { text-align: center; padding: 44px 24px 0; }
.page-head h1 { margin: 0 0 8px; }
.lede { color: var(--muted); font-size: 1.06rem; max-width: 680px; margin: 0 auto 18px; }

/* ── Form ────────────────────────────────────────────────────── */
.form h2 {
  margin: 6px 0 12px; font-size: .8rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .14em; font-weight: 750;
}
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 10px; }
.fields label { font-size: .92rem; font-weight: 650; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.fields input, .fields select {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #d6dde8; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.fields input:focus, .fields select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.form button { margin-top: 16px; width: 100%; }
.hint { color: var(--muted); font-size: .87rem; margin: 12px 0 0; }
.hint a { font-weight: 650; }
.notes { padding-left: 20px; color: var(--muted); }
.notes li { margin-bottom: 10px; }
.notes strong { color: var(--ink); }
.mono { font-family: var(--mono); font-size: .9em; }

/* ── Footer: night ───────────────────────────────────────────── */
.site-foot {
  background: var(--night); color: var(--on-dark-muted); font-size: .95rem;
  padding: 56px 0 0; margin-top: 56px; border-top: 1px solid rgba(148, 163, 184, .1);
}
.site-foot .wrap { padding-bottom: 40px; }
.site-foot strong { color: #e2e8f0; }
.footer-brand { color: #fff; font-weight: 750; font-size: 1.05rem; margin-bottom: 12px; }
.footer-brand span { color: var(--accent); }
.footer-legal {
  border-top: 1px solid rgba(148, 163, 184, .1); padding: 22px 24px 32px; font-size: .84rem;
  color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 64px; }
  .head-row { flex-direction: column; gap: 10px; }
  .site-head nav a { margin: 0 10px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
