:root {
  color-scheme: light dark;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f2f3f7;
  --ink: #0d1226;
  --ink-2: #4a5170;
  --line: #e3e5ee;
  --accent: #3b4cf0;
  --accent-ink: #ffffff;
  --accent-soft: #e8eaff;
  --good: #0f8a5f;
  --bad: #c0352b;
  --shadow: 0 1px 2px rgb(13 18 38 / 6%), 0 12px 32px -12px rgb(13 18 38 / 18%);
  --radius: 16px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e1c;
    --surface: #131730;
    --surface-2: #1a1f3d;
    --ink: #eef0fb;
    --ink-2: #a3a9c7;
    --line: #262c52;
    --accent: #7c89ff;
    --accent-ink: #0b0e1c;
    --accent-soft: #1f2556;
    --good: #43d19e;
    --bad: #ff8178;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 16px 40px -16px rgb(0 0 0 / 60%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -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, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(1.4) blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo svg { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--accent-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; background: var(--surface-2); }
.btn-lg { padding: 1.05rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60rem; height: 40rem; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1.1fr .9fr; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.4rem; }
h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 36rem; margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .93rem; color: var(--ink-2); }

/* illustration card */
.demo { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 1.4rem; }
.demo-tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; margin-bottom: 1rem; }
.bubble { background: var(--surface-2); border-radius: 14px; padding: .9rem 1rem; font-size: .95rem; }
.bubble + .bubble { margin-top: .7rem; }
.bubble.q { background: var(--accent-soft); font-weight: 600; }
.rank { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .4rem; font-size: .93rem; }
.rank li { display: flex; align-items: center; gap: .6rem; }
.rank .n { width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--line); }
.rank .you { font-weight: 700; color: var(--accent); }
.rank .you .n { background: var(--accent); color: var(--accent-ink); }
.meter { margin-top: 1.1rem; }
.meter-row { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.meter-bar { height: .6rem; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter-bar i { display: block; height: 100%; width: 62%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #22d3ee)); }

/* ---------- sections ---------- */
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; }
.section-head p { color: var(--ink-2); margin-top: 1rem; font-size: 1.15rem; }
.alt { background: var(--surface-2); }

.steps { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 1rem; }
.steps h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.steps p { color: var(--ink-2); font-size: 1rem; }

.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card .ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ico svg { width: 1.4rem; height: 1.4rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.card p { color: var(--ink-2); font-size: 1rem; }

.honest { margin-top: 2rem; display: flex; gap: 1rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 1.2rem 1.4rem; color: var(--ink-2); }
.honest strong { color: var(--ink); }

/* ---------- order ---------- */
.order-grid { display: grid; gap: 2.5rem; grid-template-columns: .85fr 1.15fr; align-items: start; }
.price-card { position: sticky; top: 6rem; background: var(--ink); color: var(--bg); border-radius: 22px; padding: 2rem; }
.price-card h3 { font-size: 1.2rem; opacity: .8; font-weight: 600; }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -0.04em; margin: .6rem 0 .2rem; line-height: 1; }
.price small { font-size: 1.1rem; font-weight: 600; opacity: .7; letter-spacing: 0; }
.price-card .once { opacity: .7; font-size: .95rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; font-size: 1rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; }
.ticks svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; color: #7be0b5; }
@media (prefers-color-scheme: dark) { .price-card { background: var(--surface); border: 1px solid var(--line); color: var(--ink); } .ticks svg { color: var(--good); } }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; font-weight: 800; }
.form-card > p { color: var(--ink-2); margin: .5rem 0 1.6rem; }
.fields { display: grid; gap: 1.05rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--bad); }
.hint { font-size: .85rem; color: var(--ink-2); }
.err { font-size: .88rem; color: var(--bad); font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--accent); flex: none; }
.consent[data-invalid] { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: .9rem; margin-top: .4rem; }
.form-status { font-weight: 600; }
.form-status.error { color: var(--bad); }
.fineprint { font-size: .86rem; color: var(--ink-2); text-align: center; }

.success { text-align: center; padding: 1.5rem 0; }
.success[hidden], form[hidden] { display: none; }
.ref[hidden] { display: none; }
.success .check { width: 4rem; height: 4rem; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); display: grid; place-items: center; margin: 0 auto 1.2rem; }
.success .check { font-size: 2rem; font-weight: 800; line-height: 1; }
.success h2 { margin-bottom: .6rem; }
.success p { color: var(--ink-2); }
.ref { display: inline-block; margin-top: 1rem; font: 700 1.1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: .6rem 1rem; border-radius: 10px; letter-spacing: .06em; color: var(--ink); }

/* ---------- faq ---------- */
.faq { max-width: 48rem; display: grid; gap: .8rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.3rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1.2rem; }

/* ---------- footer / simple pages ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3rem; color: var(--ink-2); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer a { color: var(--ink-2); }
.page { padding: clamp(3rem, 6vw, 5rem) 0; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.2rem; }
.page h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 1.2rem; }
.page .btn { margin-top: 2rem; }
.center { text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .order-grid { grid-template-columns: 1fr; }
  .steps, .cards { grid-template-columns: 1fr; }
  .price-card { position: static; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  .cta-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
