:root {
  --bg: #fafafa; --fg: #111; --muted: #666; --line: #e6e6e6; --accent: #6366f1; --card: #fff;
  --hero-shadow: rgba(49,46,129,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif; }
.wrap { max-width: 800px; margin: 0 auto; padding: 48px 20px 80px; }

/* Header */
header { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
header img { width: 40px; height: 40px; border-radius: 10px; }
header a { color: inherit; text-decoration: none; font-weight: 700; font-size: 20px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 14px; }
nav a:hover { color: var(--fg); }

/* Hero */
h1 { font-size: 44px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 520px; }
.cta { display: inline-block; background: var(--accent); color: #fff; padding: 12px 24px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; }
.cta:hover { background: #4f46e5; }
.cta.soon { background: var(--line); color: var(--muted); pointer-events: none; }

/* Hero — video embed, bleeds wider than the text column */
.hero { display: block; margin: 40px -20px 0; }
.video-wrap { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 0; overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 840px) {
  .hero { margin-left: -60px; margin-right: -60px; }
  .video-wrap { border-radius: 16px; box-shadow: 0 24px 64px var(--hero-shadow); }
}
.hero img { width: 100%; height: auto; border-radius: 0; border: none; box-shadow: none; }
@media (min-width: 840px) {
  .hero img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 64px var(--hero-shadow); }
}

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 48px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

/* How it looks: one large screenshot per row with the explanation beside it */
h2 { font-size: 22px; margin: 44px 0 12px; letter-spacing: -.01em; }
.shots { display: flex; flex-direction: column; gap: 36px; margin: 20px 0 8px; }
.shot-row { margin: 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; }
.shot-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.shot-row:nth-child(even) img { order: 2; }
.shot-row img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(49,46,129,.10); }
.shot-row figcaption h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.01em; }
.shot-row figcaption p { margin: 0; font-size: 16px; color: var(--muted); line-height: 1.55; }
@media (min-width: 840px) { .shots { margin-left: -60px; margin-right: -60px; } }
@media (max-width: 700px) { .shot-row, .shot-row:nth-child(even) { grid-template-columns: 1fr; gap: 12px; } .shot-row:nth-child(even) img { order: 0; } .shot-row figcaption h3 { font-size: 18px; } .shot-row figcaption p { font-size: 15px; } }

/* Content */
ul { padding-left: 20px; }
li { margin: 6px 0; }
code { background: var(--line); padding: 1px 6px; border-radius: 5px; font-size: 14px; }
.small { color: var(--muted); font-size: 14px; }
footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer a { color: inherit; }

/* Nav + CTA row */
nav { margin-left: auto; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.cta.ghost:hover { background: #fff; border-color: #cfd0e6; }

/* Video: poster + loading state until the iframe fires load */
.video-wrap { background-size: cover; background-position: center; }
.video-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 600; background: rgba(17,17,17,.35); transition: opacity .3s; }
.video-loading span { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.video-wrap.loaded .video-loading { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Thank-you page */
.keybox { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 6px; }
.keybox code { font-size: 18px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; letter-spacing: .02em; word-break: break-all; }
.steps li { margin: 10px 0; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,250,250,.95); backdrop-filter: blur(10px); border-top: 1px solid var(--line); font-size: 14px; font-weight: 600; }
  .sticky-cta img { border-radius: 7px; }
  .sticky-cta span { flex: 1; }
  .sticky-cta .cta { padding: 9px 14px; font-size: 14px; }
  .wrap { padding-bottom: 96px; }
}

/* Mobile breakpoints */
@media (max-width: 600px) {
  .wrap { padding-top: 28px; }
  header { margin-bottom: 28px; }
  h1 { font-size: 32px; }
  .lead { font-size: 17px; }
  .cta { padding: 11px 18px; font-size: 14px; }
  h2 { font-size: 20px; margin-top: 36px; }
  .grid { gap: 10px; margin: 32px 0; }
  .keybox code { font-size: 15px; }
  footer { font-size: 13px; }
}

/* Thank-you page: activation guide */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 8px; }
.guide img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(49,46,129,.12); }
.guide .steps { margin: 0; padding-left: 22px; }
.guide .steps li { margin: 12px 0; line-height: 1.55; }
.guide .steps kbd { font: inherit; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
@media (max-width: 700px) { .guide { grid-template-columns: 1fr; } .guide img { max-width: 300px; } }
