/* BadHop website — shares the app's colour tokens (badhop/web/style.css) so
   the site and the product read as one thing. Light by default, dark when the
   visitor's system is dark, exactly as the app follows Windows. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-VariableFont_wght.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --font-ui:   'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-hd:   'Space Grotesk', var(--font-ui);
  --font-mono: Consolas, 'SFMono-Regular', Menlo, monospace;

  /* App light theme */
  --bg:        #eef0f5;
  --surface:   #ffffff;
  --surface2:  #eef1f8;
  --border:    #dde1ee;
  --border2:   #c8cde0;
  --text:      #0f1524;
  --text2:     #5c6278;
  --text3:     #9298ae;
  --accent:    #1d6ff3;
  --accent-lt: #e8f0fe;
  --good:      #0a8f5c;
  --warn:      #c47d0a;
  --bad:       #d03030;
  --shadow:    0 18px 50px rgba(15,21,36,.14), 0 4px 12px rgba(15,21,36,.06);
  --radius:    13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* App dark theme */
    --bg:        #0d1117;
    --surface:   #161b22;
    --surface2:  #1c2128;
    --border:    #2d333b;
    --border2:   #3a424d;
    --text:      #e6edf3;
    --text2:     #8b949e;
    --text3:     #6e7781;
    --accent:    #4d8ef0;
    --accent-lt: rgba(77,142,240,.13);
    --good:      #3fb950;
    --warn:      #d29922;
    --bad:       #f85149;
    --shadow:    0 18px 60px rgba(0,0,0,.55), 0 4px 12px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--font-mono); font-size: .92em; }

.wrap      { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1240px; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 40px; height: 32px; overflow: visible; }
.logo-name { font: 800 21px/1 var(--font-ui); letter-spacing: -.4px; }
@media (prefers-color-scheme: dark) { .logo .logo-fill { display: none; } }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--text2); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 15px/1 var(--font-ui);
  padding: 11px 18px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; transition: filter .15s, background .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff;
  box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; box-shadow: none; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; text-align: center; overflow: hidden; }
.eyebrow {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  color: var(--accent); background: var(--accent-lt); border-radius: 999px;
}
h1, h2, h3 { font-family: var(--font-hd); letter-spacing: -.02em; }
h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05; font-weight: 700;
  margin: 0 auto 20px; max-width: 16ch;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--text2); max-width: 44em; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.proof {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; color: var(--text2);
}
.proof li::before { content: "✓"; color: var(--good); font-weight: 700; margin-right: 7px; }

.shot { margin: 52px 0 0; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--border2);
  box-shadow: var(--shadow);
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 12px; font-weight: 700; }
.section-lede { color: var(--text2); font-size: 18px; margin: 0 0 44px; max-width: 40em; }
.muted { color: var(--text2); }
.small { font-size: 14px; }

/* ── Features ────────────────────────────────────────────────────────── */
.features {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 22px 20px;
}
.feature h3 { font-size: 18px; margin: 14px 0 8px; }
.feature p  { margin: 0; color: var(--text2); font-size: 15px; }
.f-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; background: var(--accent-lt);
}
.f-icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--accent);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Pricing ─────────────────────────────────────────────────────────── */
.tiers { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.tier {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.tier-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tier h3 { font-size: 20px; margin: 0 0 10px; }
.price { margin: 0 0 14px; color: var(--text2); font-size: 15px; }
.price .amount { font: 700 38px/1 var(--font-hd); color: var(--text); margin-right: 6px; }
.price .tbc { font-size: 13px; font-weight: 600; color: var(--warn); }
.tier-body { color: var(--text2); font-size: 15px; flex: 1; margin: 0 0 22px; }
.tier .btn { width: 100%; }
.fineprint { margin: 28px 0 0; font-size: 14px; color: var(--text2); max-width: 52em; }

/* ── Download ────────────────────────────────────────────────────────── */
.download { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.download .section-lede { margin-bottom: 12px; }
.download-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.download-card .btn { width: 100%; }
.download-card p { margin: 12px 0 0; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq h2 { margin-bottom: 28px; }
.faq details { max-width: 820px; }
details { border-bottom: 1px solid var(--border); padding: 4px 0; }
summary {
  cursor: pointer; list-style: none; padding: 16px 30px 16px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 12px;
  font-size: 22px; font-weight: 400; color: var(--text3);
}
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--text2); }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); text-align: left; margin: 0 0 8px; max-width: none; }
.doc .meta { color: var(--text2); margin: 0 0 36px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text2); }
.doc pre.legal {
  white-space: pre-wrap; word-wrap: break-word;
  font: 14px/1.65 var(--font-mono); color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.draft-banner {
  margin: 0 0 28px; padding: 12px 16px; border-radius: 9px; font-size: 14px;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  color: var(--text);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 14px; color: var(--text2); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { color: var(--text2); }

/* ── Small screens ───────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .tiers, .download { grid-template-columns: 1fr; }
  .tier-featured { order: -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 48px; }
  .section { padding: 64px 0; }
}
