:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #8b93a3;
  --accent: #6ea8fe;
  --accent-2: #4b7bec;
  --good: #48c78e;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand .logo { width: 27px; height: 27px; display: block; }

/* Headings use the display font */
h1, h2, h3, .plan .price { font-family: "Space Grotesk", -apple-system, sans-serif; }

/* Material Symbols defaults */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  font-size: 1.25em;
  vertical-align: -0.22em;
  color: var(--accent);
}
.card .icon .material-symbols-rounded { font-size: 30px; }
.feature-row h3 .material-symbols-rounded { font-size: 1.15em; margin-right: 2px; }
.shot .bubble .material-symbols-rounded { font-size: 1.1em; color: var(--muted); }
.nav a.link { color: var(--muted); font-size: 0.92rem; }
.nav a.link:hover { color: var(--text); text-decoration: none; }
.nav a.link.active { color: var(--text); font-weight: 600; }

.btn {
  display: inline-block;
  background: var(--accent-2);
  color: #fff;
  border: 1px solid var(--accent-2);
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); text-decoration: none; }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.big { padding: 13px 26px; font-size: 1rem; border-radius: 11px; }

/* ---- Mobile nav (checkbox toggle, no JS) ---- */
.nav-links { display: contents; }
.nav-burger { display: none; }

/* ---- Hero ---- */
.hero { padding: 84px 24px 60px; text-align: center; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .sub {
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.1rem;
}
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 18px;
}

/* ---- Sections ---- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2.section-title { font-size: 1.7rem; margin: 0 0 8px; text-align: center; letter-spacing: -0.01em; }
p.section-sub { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 40px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3, .grid2 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
section.block.alt .card { background: var(--panel-2); }
.card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 22px 22px 22px 24px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 1rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ---- Feature rows ---- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; gap: 16px; } }
.feature-row h3 { font-size: 1.25rem; margin: 0 0 10px; }
.feature-row p { color: var(--muted); margin: 0 0 10px; }
.feature-row ul { color: var(--muted); margin: 0; padding-left: 20px; font-size: 0.95rem; }
.feature-row li { margin-bottom: 6px; }
.shot {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 0.88rem;
  color: var(--muted);
}
.shot .fake-title { color: var(--text); font-weight: 600; margin-bottom: 10px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.shot .bubble { background: var(--panel-2); border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; }
.shot .bubble.hint { border-left: 3px solid var(--accent); }
.shot .bubble.q { border-left: 3px solid var(--good); }
.shot strong { color: var(--accent); }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--accent); position: relative; }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-2); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 12px;
}
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 2rem; font-weight: 800; margin: 8px 0 2px; }
.plan .price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan .blurb { color: var(--muted); font-size: 0.9rem; margin: 0 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan li { padding: 6px 0; font-size: 0.92rem; color: var(--text); }
.plan li::before { content: "✓  "; color: var(--good); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "—  "; color: var(--muted); }

/* ---- FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px;
  margin-bottom: 10px;
}
summary { cursor: pointer; font-weight: 600; padding: 12px 0; font-size: 0.98rem; }
details p { color: var(--muted); margin: 0 0 14px; font-size: 0.93rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
form label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
form input, form textarea, form select {
  width: 100%;
  margin-top: 5px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
}
form input:focus, form textarea:focus, form select:focus { outline: none; border-color: var(--accent); }

/* ---- CTA band ---- */
.cta-band { text-align: center; padding: 70px 0; }
.cta-band h2 { font-size: 1.9rem; margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 0 26px; }

/* ---- Footer ---- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

.note {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}


/* ---------------------------------------------------------------
   Mobile. The nav was the worst offender: brand + 5 links + a CTA
   in one fixed-height flex row overflowed every phone width. It now
   wraps to two rows (brand + CTA, then the links).
   --------------------------------------------------------------- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }

  /* height must become min-height here: the open menu wraps onto a second
     row, and a fixed 62px box lets it overflow past .nav's background —
     the links then sit on top of page content with nothing behind them. */
  .nav .wrap { flex-wrap: wrap; gap: 0; height: auto; min-height: 62px; }
  .brand { font-size: 1rem; }

  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
  }
  .nav-burger .material-symbols-rounded { color: var(--text); }
  .nav-toggle:checked ~ .nav-burger { border-color: var(--accent); }

  /* Collapsed by default; the checkbox reveals it as a full-width panel
     below the bar, so the top row is always a single line. */
  .nav-links {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 12px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-links a.link { padding: 10px 2px; font-size: 0.95rem; }
  .nav-links .btn { margin-top: 8px; text-align: center; }

  .hero { padding: 48px 20px 36px; }
  .hero .sub { font-size: 1rem; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .btn.big { padding: 12px 20px; text-align: center; }

  section.block { padding: 38px 0; }
  .cta-band { padding: 46px 0; }
  .cta-band h2 { font-size: 1.5rem; }
  h2.section-title { font-size: 1.35rem; }

  .card, .step, .plan { padding: 18px; }
  .feature-row { padding: 24px 0; }

  /* 3-column processor table can't fit a phone — let it scroll rather
     than forcing the whole page sideways. */
  .policy table { display: block; overflow-x: auto; }
  .policy h2 { font-size: 1.05rem; margin-top: 26px; }

  footer.site .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  footer.site nav { gap: 14px; }
}

@media (max-width: 400px) {
  .nav .wrap { gap: 6px 12px; }
  .nav a.link { font-size: 0.8rem; }
  .brand .logo { width: 24px; height: 24px; }
}

/* Same guard for policy links and pasted URLs in copy. */
body { overflow-wrap: break-word; }
.policy td, .policy a { overflow-wrap: anywhere; }
