:root {
  color-scheme: light dark;
  --bg: #fbf9f7;
  --bg-tint: #f4f0ec;
  --surface: #ffffff;
  --ink: #17141c;
  --ink-soft: #57515f;
  --line: #e4ded8;
  --accent: #c2185b;
  --accent-ink: #ffffff;
  --grad: linear-gradient(100deg, #d2441a 0%, #cf1763 45%, #7a2bd9 100%);
  --btn-grad: linear-gradient(100deg, #cf1763 0%, #7a2bd9 100%);
  --kbd-bg: #ffffff;
  --kbd-line: #cfc7c0;
  --shadow: 0 1px 2px rgba(23, 20, 28, .06), 0 12px 32px -12px rgba(23, 20, 28, .18);
  --radius: 14px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131117;
    --bg-tint: #1a171f;
    --surface: #201c26;
    --ink: #f3eff6;
    --ink-soft: #b3abbd;
    --line: #322c3a;
    --accent: #ff7fb0;
    --grad: linear-gradient(100deg, #ff9a62 0%, #ff6fa5 45%, #b99aff 100%);
    --kbd-bg: #2a2531;
    --kbd-line: #4a4254;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: .1em .45em;
  border: 1px solid var(--kbd-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--kbd-bg);
  color: var(--ink);
  font: 600 .85em/1.4 var(--mono);
  text-align: center;
  white-space: nowrap;
}

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .65rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--btn-grad);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(160, 30, 140, .6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(160, 30, 140, .7); }
.btn:active { transform: translateY(0); }
.btn-large { min-height: 56px; padding: .9rem 1.75rem; font-size: 1.125rem; }
.btn-small { min-height: 38px; padding: .45rem 1rem; font-size: .9375rem; box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 8px; }
.nav { display: none; gap: 1.5rem; margin-left: auto; }
.nav a { color: var(--ink-soft); font-size: .9375rem; text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.site-header .btn { margin-left: auto; }
@media (min-width: 820px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 0; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
}
.eyebrow {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { max-width: 34rem; margin-top: 1.25rem; color: var(--ink-soft); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.cta-note { color: var(--ink-soft); font-size: .9375rem; }
.works-on { max-width: 34rem; margin-top: 1.75rem; color: var(--ink-soft); font-size: .9375rem; }
.works-on strong { color: var(--ink); font-weight: 650; }

.demo-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #0f0d13;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}
.demo-frame video { width: 100%; height: 100%; object-fit: contain; }
.demo-toggle {
  position: absolute;
  left: .75rem;
  top: .75rem;
  min-height: 36px;
  padding: .35rem .9rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(15, 13, 19, .78);
  color: #fff;
  font: 600 .8125rem/1 var(--font);
  cursor: pointer;
}
.demo-toggle:hover { background: rgba(15, 13, 19, .95); }
.demo-toggle:focus-visible { outline-color: #fff; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section-lede { max-width: 40rem; margin-top: .75rem; color: var(--ink-soft); }

.steps { display: grid; gap: 1.25rem; margin-top: 2.5rem; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-num {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--btn-grad);
  color: #fff;
  font-weight: 800;
}
.steps p { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

.sites { display: grid; gap: 1rem; margin-top: 2.5rem; }
@media (min-width: 560px) { .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sites { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.site-card {
  padding: 1.25rem 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.aka { color: var(--ink-soft); font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem; }
.tags li {
  padding: .2rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: .875rem;
}
.site-note { margin-top: .75rem; color: var(--ink-soft); font-size: .875rem; }

.keys { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 760px) { .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.key-group {
  padding: 1.25rem 1.25rem .75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.key-group h3 {
  margin-bottom: .5rem;
  color: var(--ink-soft);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.key-group dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.key-group dl > div:first-child { border-top: 0; }
.key-group dt { order: 2; flex: none; }
.key-group dd { order: 1; }

.plans { display: grid; gap: 1.25rem; margin-top: 2.5rem; max-width: 820px; }
@media (min-width: 700px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.plan-pro { position: relative; border: 2px solid var(--accent); box-shadow: var(--shadow); }

/* Early-bird sale (hidden by main.js after the deadline) */
.sale-ribbon {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  margin: 0; padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
  background: var(--btn-grad); color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .02em;
  box-shadow: 0 6px 18px -6px rgba(207, 23, 99, .6);
}
.was { color: var(--ink-soft); font-size: 1.35rem; font-weight: 600; text-decoration-thickness: 2px; text-decoration-color: var(--accent); }
.sale-save {
  margin-top: .75rem; display: inline-block; padding: .4rem .7rem; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--ink); font-size: .9375rem;
}
.sale-save strong { color: var(--accent); }
.sale-chip {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-top: 1rem;
  padding: .45rem .8rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: .9375rem; text-decoration: none;
}
.sale-chip:hover { border-color: var(--accent); }
.sale-chip s { color: var(--ink-soft); }
.sale-chip strong { color: var(--accent); }
.sale-chip-tag { padding: .2rem .55rem; border-radius: 999px; background: var(--btn-grad); color: #fff; font-size: .75rem; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: .5rem; margin-top: .75rem; }
.amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.per { color: var(--ink-soft); }
.price-note { margin-top: .5rem; color: var(--ink-soft); font-size: .9375rem; }
.plan-list { display: grid; gap: .55rem; margin: 1.5rem 0 1.75rem; }
.plan-list li { position: relative; padding-left: 1.6rem; }
.plan-list li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .5em;
  width: .7rem;
  height: .38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: .85rem; color: var(--ink-soft); font-size: .875rem; text-align: center; }

.faq { max-width: 820px; margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-weight: 650;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .6rem;
  height: .6rem;
  margin-right: .3rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { max-width: 44rem; padding-bottom: 1.1rem; color: var(--ink-soft); }
.faq details p + p { margin-top: -.35rem; }

.closing { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); background: var(--bg-tint); text-align: center; }
.closing img { margin: 0 auto 1.25rem; border-radius: 16px; }
.closing h2 { max-width: 22ch; margin: 0 auto 1.75rem; }
.closing .cta-note { margin-top: 1rem; }

.site-footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9375rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.disclaimer { flex-basis: 100%; font-size: .8125rem; }

@media (max-width: 420px) {
  .wrap { width: calc(100% - 2rem); }
  .cta-row .btn-large { width: 100%; }
  .brand span { font-size: .9375rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }
