:root {
  --brand: #5b5bd6;
  --brand-deep: #4646b8;
  --brand-soft: #eceafc;
  --record: #d32236;
  --bg: #ffffff;
  --bg-alt: #f7f6fd;
  --ink: #1b1b2b;
  --ink-2: #4a4a5e;
  --ink-3: #7c7c92;
  --line: #e4e3f0;
  --card: #ffffff;
  --radius: 18px;
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8c8cf0;
    --brand-deep: #6f6fe0;
    --brand-soft: #23234a;
    --record: #e0424f;
    --bg: #0f0f1a;
    --bg-alt: #16162a;
    --ink: #ececf6;
    --ink-2: #b9b9cc;
    --ink-3: #8686a0;
    --line: #2a2a44;
    --card: #1a1a30;
  }
}
:root[data-theme="dark"] {
  --brand: #8c8cf0; --brand-deep: #6f6fe0; --brand-soft: #23234a; --record: #e0424f;
  --bg: #0f0f1a; --bg-alt: #16162a; --ink: #ececf6; --ink-2: #b9b9cc; --ink-3: #8686a0;
  --line: #2a2a44; --card: #1a1a30;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 14px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-3); }

/* header */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-weight: 500; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.btn { color: #fff; background: var(--brand); }
.nav-links a.btn:hover { background: var(--brand-deep); }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-weight: 600;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--brand-deep); text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.sm { padding: 8px 16px; font-size: 0.92rem; }

/* hero */
.hero {
  background: linear-gradient(160deg, #5b5bd6 0%, #4646b8 100%);
  color: #fff; overflow: hidden;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding: 72px 16px 0;
}
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: rgba(255,255,255,.86); max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.hero .btn { background: #fff; color: var(--brand-deep); }
.hero .btn:hover { background: #f1f0ff; }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: rgba(255,255,255,.12); }
.hero .pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.pill { font-size: .82rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; }
.hero-shot { justify-self: center; align-self: end; }
.phone {
  width: min(300px, 78vw); border-radius: 36px; padding: 10px;
  background: #1b1b2b; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.phone img { width: 100%; height: auto; aspect-ratio: 540 / 1170; border-radius: 27px; }
.hero .phone { border-bottom-left-radius: 0; border-bottom-right-radius: 0; padding-bottom: 0; }
.hero .phone img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .hero .lead { margin: 0 auto; }
  .hero .cta, .hero .pills { justify-content: center; }
}

/* sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 8px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.feature.flip .text { order: 2; }
.feature .shot { justify-self: center; }
.feature ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--ink-2); }
.feature li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5bd6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .text { order: 0; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--brand);
}
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); margin: 0; font-size: .95rem; }

.center { text-align: center; }
.center .lead { max-width: 640px; margin: 0 auto 8px; color: var(--ink-2); font-size: 1.1rem; }

.notes { max-width: 760px; margin: 24px auto 0; }
.notes li { margin-bottom: 8px; color: var(--ink-2); }

.cta-band { background: linear-gradient(160deg, #5b5bd6, #4646b8); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .btn { background: #fff; color: var(--brand-deep); margin-top: 8px; }
.cta-band .btn:hover { background: #f1f0ff; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .9rem; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 16px 72px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-2); }
.legal table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; font-size: .95rem; }
@media (max-width: 480px) { .legal table { display: block; overflow-x: auto; } }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); }
.legal .toc { background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin: 4px 0; }
