:root {
  --bg: #0b1020; --bg-soft: #11182e; --card: #151d36; --line: #243054;
  --ink: #e7ecf5; --muted: #9aa7c4; --brand: #5b8cff; --brand-ink: #fff;
  --accent: #4fd1c5; --warn: #f6c177; --radius: 14px; --max: 1080px;
}
@view-transition { navigation: auto; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  margin: 0; background: radial-gradient(1200px 600px at 70% -10%, #1a2547 0, var(--bg) 55%);
  color: var(--ink); font: 17px/1.6 -apple-system, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.nav { view-transition-name: site-nav; }
::view-transition-old(site-nav), ::view-transition-new(site-nav) {
  animation: none; mix-blend-mode: normal;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 22px 0; row-gap: 12px; }
.nav > div { display: flex; flex-wrap: wrap; align-items: center; column-gap: 22px; row-gap: 10px; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--ink); }
.brand span { color: var(--brand); }
.nav a.link { color: var(--muted); margin-left: 0; font-size: 15px; }
#signInPanel.open { display: block !important; }
.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink) !important;
  padding: 12px 20px; border-radius: 10px; font-weight: 650; border: 0; cursor: pointer;
  font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.hero { padding: 70px 0 50px; }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
.hero p.lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 6px 0 8px; font-size: 18px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }
.section { padding: 56px 0; }
.section h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 8px; }
.section .sub { color: var(--muted); margin: 0 0 28px; max-width: 620px; }
table.cmp { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; }
table.cmp th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cmp td.y { color: var(--accent); font-weight: 600; }
table.cmp td.n { color: var(--muted); }
.agenda { counter-reset: step; display: grid; gap: 10px; }
.agenda li { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 56px; position: relative; }
.agenda li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: var(--brand); color: #fff; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.agenda b { display: block; }
.agenda small { color: var(--muted); }
.kit-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.kit-list li { font-size: 14.5px; color: var(--ink); }
.kit-list b { font-weight: 600; }
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.lead-form input { flex: 1; min-width: 220px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 15px; }
.note { font-size: 12.5px; color: var(--muted); }
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 30px 0 50px; color: var(--muted); font-size: 14px; }
footer .disclaimer { margin-top: 14px; font-size: 12.5px; opacity: .8; max-width: 760px; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.screenshots { overflow: hidden; }
.shot-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.shot-tab { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .15s; }
.shot-tab:hover { color: var(--ink); border-color: var(--brand); }
.shot-tab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.shot-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 80px rgba(0,0,0,.4); position: relative; }
.shot { display: none; width: 100%; height: auto; vertical-align: top; }
.shot.active { display: block; }

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  /* Re-flow the nav as two tidy rows — brand + sign-in/CTA on top, page links
     below — instead of three uneven wrapped rows. display:contents flattens
     the link/auth group so the ::after break element can split the rows. */
  .nav { padding: 16px 0; justify-content: flex-start; gap: 10px 16px; }
  .nav > div { display: contents; }
  .nav .brand { order: 0; }
  .nav #navAuth, .nav > div > .btn { order: 1; margin-left: auto; }
  .nav #navAuth { display: flex; align-items: center; gap: 14px; }
  .nav #navAuth .btn { margin-left: 0 !important; }
  .nav::after { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .nav > div > a.link { order: 3; } /* page links only — not the Sign in link inside #navAuth */
  .nav a.link, .nav .btn { font-size: 14px; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  table.cmp { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.cmp th, table.cmp td { white-space: nowrap; }
  /* Full-screen dim overlay with the card centered near the top, so the
     on-screen keyboard can't cover the email field when it's focused. */
  #signInPanel {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    background: rgba(2, 6, 20, .66) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 300 !important;
  }
  #signInPanel.open { display: flex !important; align-items: flex-start; justify-content: center; }
  #sip-card {
    position: relative;
    margin-top: 13vh;
    width: min(360px, calc(100vw - 36px));
    max-height: 74vh;
    overflow: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  }
  #sip-close { display: flex !important; align-items: center; justify-content: center; }
}
