:root {
  --bg: #f7f5f1;
  --panel: #ffffff;
  --ink: #1d2433;
  --muted: #5d6476;
  --line: #e2ddd5;
  --accent: #7a3b69;
  --accent-ink: #ffffff;
  --accent-soft: #f3e8f0;
  --warn: #b8392a;
  --ok: #2f7a4f;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161b; --panel: #1d2028; --ink: #eef0f4; --muted: #a3a9b6; --line: #2e323c;
    --accent: #c98bb6; --accent-ink: #1a1016; --accent-soft: #2c2029;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font-body); }
a { color: var(--accent); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 22px var(--font-display); color: var(--ink); text-decoration: none; margin-right: auto; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.menu { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; color: var(--ink); font: inherit; }
@media (max-width: 760px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--panel); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 16px var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--panel); }
.btn.small { padding: 8px 16px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }

/* sections */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
h3 { font-size: 20px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
section { padding: 72px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* hero */
.hero { padding: 64px 0 40px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.video { margin-top: 44px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 16 / 9; position: relative; }
.video video { width: 100%; height: 100%; object-fit: contain; background: #14161b; }
.video .placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--muted); background: repeating-linear-gradient(45deg, var(--accent-soft) 0 14px, transparent 14px 28px); padding: 20px; }
.video .placeholder strong { display: block; color: var(--ink); font: 700 22px var(--font-display); }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 32px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; font-size: 22px; }

/* pricing */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 36px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.plan.best { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.price { font: 700 42px var(--font-display); margin: 6px 0 2px; }
.price small { font: 500 16px var(--font-body); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.plan li { padding: 6px 0 6px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.toggle { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-top: 20px; }
.toggle button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 600 15px var(--font-body); color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 18px; margin-top: 32px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 24px 76px; position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 24px; top: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 17px var(--font-display); }
.step p { margin: 0; color: var(--muted); }

/* forms */
.auth { max-width: 420px; margin: 56px auto; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs button { flex: 1; background: none; border: 0; padding: 12px; font: 600 16px var(--font-body); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--accent); border-color: var(--accent); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: 15px; }
.field input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg); color: var(--ink); }
.note { font-size: 14px; color: var(--muted); }
.msg { font-size: 15px; min-height: 1.4em; margin: 6px 0 12px; }
.msg.err { color: var(--warn); }
.msg.ok { color: var(--ok); }
.banner { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; font-size: 15px; margin-bottom: 18px; }

/* about */
.about { display: grid; gap: 40px; grid-template-columns: 1fr 1.4fr; align-items: center; }
.portrait { aspect-ratio: 4 / 5; border-radius: 20px; background: var(--accent-soft); display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; margin-left: 18px; }
.band { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* text beside a video */
.feature { display: grid; gap: 40px; grid-template-columns: 1fr 2.4fr; align-items: center; max-width: 1360px; }
.feature .video { margin-top: 0; }
.feature .btn { margin-top: 12px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 24px; } }
@media (min-width: 861px) { .feature.flip { grid-template-columns: 2.4fr 1fr; } .feature.flip > .video { order: -1; } }
