:root {
  --bg: #f6f7fd;
  --surface: #ffffff;
  --text: #121536;
  --muted: #5b6182;
  --line: #e3e6f4;
  --accent: #4f46e5;
  --accent-2: #0ea5a4;
  --accent-soft: #eceaff;
  --shadow: 0 18px 50px rgba(40, 40, 120, .14);
  --radius: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e22;
    --surface: #15183a;
    --text: #eef0ff;
    --muted: #9aa0c8;
    --line: #262a55;
    --accent: #8b85ff;
    --accent-soft: #23265a;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }

.wrap { width: calc(100% - 60px); margin-inline: auto; }   /* full width with a 30px margin on each side, at every screen size */

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: .95rem; }
nav.site a:hover { color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary {
  border: 0; color: #fff;
  background: linear-gradient(135deg, #4f46e5, #0ea5a4);
  box-shadow: 0 10px 28px rgba(79, 70, 229, .38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(79, 70, 229, .45); }
.btn.small { padding: 9px 18px; border-radius: 11px; font-size: .92rem; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; z-index: -1; }
.hero::before { width: 420px; height: 420px; background: #6366f1; top: -140px; left: -120px; }
.hero::after { width: 380px; height: 380px; background: #0ea5a4; bottom: -160px; right: -100px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.02em; }
h1 .grad { background: linear-gradient(135deg, #6366f1, #0ea5a4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fineprint { color: var(--muted); font-size: .88rem; margin-top: 14px; }

.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow);
}
.mock .banner { border-radius: 18px; padding: 22px; color: #fff; background: linear-gradient(135deg, #4338ca, #0ea5a4); display: flex; gap: 16px; align-items: center; }
.mock .banner img { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,.18); padding: 8px; }
.mock .banner b { font-size: 1.25rem; display: block; }
.mock .banner span { font-size: .9rem; opacity: .9; }
.mock .drop { margin-top: 16px; border: 2px dashed var(--line); border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); }
.mock .drop strong { display: block; color: var(--text); font-size: 1.05rem; }
.mock .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.mock .tiles div { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 6px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.alt .step, section.alt .card { background: var(--bg); }
.num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #4f46e5, #0ea5a4); margin-bottom: 14px; }
.step h3, .card h3 { margin: 0 0 6px; font-size: 1.2rem; }
.step p, .card p { margin: 0; color: var(--muted); }

.section-head.sub { margin-top: 72px; }
.section-head.sub h2 { font-size: 1.8rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; font-size: 1.4rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.list { margin: 14px 0 0; padding: 0; list-style: none; }
.list li { padding-left: 28px; position: relative; margin: 8px 0; color: var(--muted); }
.list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--accent-2); border-bottom: 3px solid var(--accent-2); transform: rotate(-45deg) translateY(-4px); }

/* ---------- download ---------- */
.download { text-align: center; }
.download .box { background: linear-gradient(135deg, #3730a3, #0f766e); color: #fff; border-radius: 30px; padding: 56px 28px; box-shadow: var(--shadow); }
.download .box p { color: rgba(255,255,255,.85); max-width: 36em; margin: 0 auto 26px; font-size: 1.1rem; }
.download .btn.primary { background: #fff; color: #312e81; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.download .meta { margin-top: 16px; font-size: .9rem; color: rgba(255,255,255,.75); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.faq details:hover { border-color: var(--accent); }
.faq details[open] { border-color: var(--accent); box-shadow: 0 10px 30px rgba(79, 70, 229, .12); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; line-height: 1.4; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.4rem; font-weight: 500; line-height: 1; transition: background .15s, color .15s; }
.faq details[open] summary::after { content: "\2212"; background: var(--accent); color: #fff; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }

/* ---------- download help ---------- */
.help { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; text-align: left; align-items: stretch; }
.help-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.help-card h3 { margin: 0 0 14px; font-size: 1.2rem; color: var(--text); }
.help-card p { margin: 0; color: var(--muted); }
.help-card .tag { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.help-card.note { border-left: 4px solid var(--accent-2); }
.stepslist { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.stepslist li { counter-increment: step; position: relative; padding: 4px 0 0 48px; margin: 0 0 20px; min-height: 34px; color: var(--muted); }
.stepslist li:last-child { margin-bottom: 0; }
.stepslist li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #4f46e5, #0ea5a4); }
.stepslist strong, .help-card p strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.chips span { padding: 8px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: .95rem; }
.chips .arrow { padding: 0; background: none; color: var(--muted); }
code { background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 6px; font-size: .92em; }

/* ---------- footer ---------- */
footer.site { padding: 36px 0 48px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer.site a { color: var(--muted); margin-left: 18px; }

/* ---------- legal pages ---------- */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.5rem; margin-top: 40px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); }
.doc td, .doc th, .doc code, .doc p, .doc li { overflow-wrap: anywhere; }
@media (max-width: 600px) { .doc th, .doc td { padding: 8px 6px; font-size: .88rem; } }
.callout { background: var(--accent-soft); border-radius: 16px; padding: 18px 22px; color: var(--text); margin: 22px 0; }
.callout p { color: var(--text); margin: 0; }

@media (max-width: 860px) {
  .hero .wrap, .split, .steps, .grid, .faq, .help { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  nav.site a:not(.btn) { display: none; }
  .mock .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn.primary { transition: none; }
}
