/* ============================================================
   VowCode — styles. One file, tokens on :root, light page with
   a dark hero/code band. No external CDNs.
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2?v=20261112") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%;
}

:root {
  --accent: #6C5CE7;
  --accent-600: #5546D6;
  --accent-soft: #EEEBFF;
  --ink: #12141A;
  --ink-2: #3D4250;
  --ink-3: #6B7080;
  --line: #E6E7EC;
  --paper: #FFFFFF;
  --paper-2: #F6F7FA;
  --night: #0E1116;
  --night-2: #171B23;
  --night-ink: #E7E9EF;
  --night-ink-2: #A3A9B8;
  --mint: #4FD1A5;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Liberation Mono", monospace;

  --fs-h1: clamp(2.25rem, 1.3rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-lead: clamp(1.05rem, 1rem + .3vw, 1.25rem);
  --radius: 14px;
  --gutter: 16px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); background: var(--paper);
}
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent-600); }
a:hover { color: var(--accent); }
code { font-family: var(--mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 650; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); color: #fff; }
.btn-small { padding: .45em 1em; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,17,22,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.15rem; }
.brand b { color: var(--mint); font-weight: 700; }
.brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { color: var(--night-ink-2); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:not(.btn):hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(108,92,231,.35), transparent 60%),
    radial-gradient(700px 360px at 0% 110%, rgba(79,209,165,.18), transparent 60%),
    var(--night);
  color: var(--night-ink-2);
  padding: clamp(64px, 10vw, 128px) 0 clamp(64px, 9vw, 112px);
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--mint); }
.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: .3em .9em; border-radius: 999px;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mint); background: rgba(79,209,165,.1); border: 1px solid rgba(79,209,165,.3);
}
.lead { font-size: var(--fs-lead); max-width: 720px; color: var(--night-ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-dark { background: var(--night); color: var(--night-ink-2); }
.section-dark h2 { color: #fff; }
.section-dark code { color: var(--mint); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px; color: var(--accent); background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(108,92,231,.18);
}
.card-icon.ic-mint { color: #1A9A72; background: #E3F7EF; box-shadow: inset 0 0 0 1px rgba(79,209,165,.35); }
.card { transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(18,20,26,.25); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--night-ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700; }

.code {
  margin: 0; padding: 24px; overflow-x: auto; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid rgba(255,255,255,.08);
  color: var(--night-ink); font-family: var(--mono); font-size: .95rem; line-height: 1.7;
}
.code code { color: inherit; font-size: inherit; }
.code .k { color: #fff; font-weight: 700; }
.code .m { color: #B7AEFF; }

/* ---------- Review effort stats ---------- */
.stats { display: flex; align-items: stretch; gap: 16px; margin: 28px 0 8px; flex-wrap: wrap; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; padding: 20px 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line); }
.stat-num { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat-text { color: var(--ink-3); font-size: .95rem; }
.stat-total { background: var(--accent); border-color: var(--accent); }
.stat-total .stat-num { color: #fff; }
.stat-num small { font-size: .4em; font-weight: 600; letter-spacing: 0; vertical-align: middle; opacity: .85; }
.stat-total .stat-text { color: rgba(255,255,255,.85); }
.stat-op { align-self: center; font-size: 1.75rem; font-weight: 700; color: var(--ink-3); }
@media (max-width: 760px) { .stat-op { display: none; } .stat { flex-basis: 100%; } }

/* ---------- "Can't be written" ---------- */
.kicker { margin: 0 0 8px; font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.section-lead { font-size: var(--fs-lead); max-width: 760px; }
.nogo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 32px; align-items: start; }
.nogo h3 { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nogo h3 .card-icon { margin: 0; flex: none; }
.nogo-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.nogo-list li { position: relative; padding-left: 30px; line-height: 1.45; }
.nogo-list li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%;
  background: #FDECEC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D64545' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.nogo-list code { font-size: .85em; padding: .1em .35em; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line); }

/* ---------- Inner pages ---------- */
.hero-compact { padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.hero .lead em { font-style: normal; color: #fff; }
.section-soft { background: var(--paper-2); }
.section-soft .card { background: var(--paper); }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700;
}

.compare { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; margin-top: 32px; }
.card-accent { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ticks-light { margin: 12px 0 0; }
.ticks-light li { color: var(--ink-2); }
.ticks-light li::before { color: var(--accent); }

.legend { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 20px 0 24px; }
.legend dt { color: #fff; }
.legend dd { margin: 0; color: var(--night-ink); }

.btn-outline { background: transparent; color: var(--accent-600); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-600); }

/* Legal text */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.muted { color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .92rem; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand b { color: var(--accent); }
.footer-brand p { margin: 12px 0 0; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .steps, .compare, .nogo { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .code { font-size: .85rem; padding: 18px; }
  .footer-brand p br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  .card:hover { transform: none; }
}
