/*
  Mentioned — shared design system.
  No build step in this repo (static Worker assets), so every page links
  this file directly instead of importing a component framework.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter:ital,wght@0,400;0,600&display=swap');

:root {
  --bg: #fbfaf8;
  --bg-raised: #ffffff;
  --fg: #17141f;
  --muted: #6b6572;
  --muted-2: #8b8590;
  --border: #e7e3dc;
  --border-strong: #d8d3c9;

  --accent: #6d28d9;
  --accent-hover: #5b21b6;
  --accent-soft: #f3f0fb;
  --accent-fg: #ffffff;
  --accent-2: #db2777;

  --hit: #15803d;
  --hit-soft: #eafaf0;
  --miss: #b3423a;
  --miss-soft: #fdf1ef;

  --chip: #f3f0fb;
  --shadow-sm: 0 1px 2px rgba(23, 20, 31, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(23, 20, 31, 0.12);
  --shadow-lg: 0 20px 48px -16px rgba(109, 40, 217, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1120px;
  --container-narrow: 720px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100e17;
    --bg-raised: #17141f;
    --fg: #f3f1f7;
    --muted: #a9a3b3;
    --muted-2: #837c8d;
    --border: #2a2534;
    --border-strong: #372f45;

    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --accent-soft: #241d38;
    --accent-fg: #17141f;
    --accent-2: #f472b6;

    --hit: #4ade80;
    --hit-soft: #132a1c;
    --miss: #f87171;
    --miss-soft: #2c1817;

    --chip: #241d38;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 48px -16px rgba(167, 139, 250, 0.28);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 620px; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  background: linear-gradient(155deg, #7c3aed, #5b21b6);
  box-shadow: 0 4px 12px -4px rgba(109, 40, 217, 0.55);
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.94rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 650; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Sections / layout ---------- */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.stat-row { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { min-width: 120px; }
.stat .n { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; display: block; }
.stat .l { color: var(--muted); font-size: 0.88rem; }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; }
.price-card.highlight { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.price-card .badge {
  position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-fg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.price-card .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 4px; }
.price-card .amount span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card ul { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; }
.price-card li svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ---------- Forms ---------- */
label { font-size: 0.85rem; font-weight: 650; display: block; margin-bottom: 6px; }
input[type="text"], input[type="email"] {
  width: 100%; padding: 12px 14px; font-size: 1rem; color: var(--fg); font-family: inherit;
  background: var(--bg-raised); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 14px; }
.field-inline { display: flex; gap: 10px; }
.field-inline input { flex: 1; }
.hint { font-size: 0.8rem; color: var(--muted-2); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq details {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 10px; background: var(--bg-raised);
}
.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); margin: 10px 0 0; font-size: 0.94rem; }

/* ---------- Chips / badges ---------- */
.chip { background: var(--chip); border: 1px solid var(--border); padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Footer ---------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--border); padding-top: 24px; font-size: 0.85rem; color: var(--muted-2); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Prose (about/legal pages) ---------- */
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--fg); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose { max-width: var(--container-narrow); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge-soft {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 650;
  background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: var(--radius-pill);
}
