:root {
  --blue: #1f6feb;
  --blue-dark: #1558c7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f5f8fc;
  --card: #ffffff;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8edf5;
    --muted: #9aa8bc;
    --line: #243044;
    --bg: #0b1220;
    --soft: #111a2c;
    --card: #131d31;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top a { color: var(--muted); text-decoration: none; margin-left: 22px; font-size: 15px; }
nav.top a:hover { color: var(--ink); }
@media (max-width: 640px) { nav.top a.hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; }
.ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; transition: transform .1s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); color: #fff; }
.btn.ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn.ghost:hover { border-color: var(--muted); color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn small { display: block; font-weight: 500; font-size: 12px; opacity: .8; line-height: 1.1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.soon { cursor: default; opacity: .75; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Illustration */
.scene { margin: 56px auto 0; max-width: 760px; }
.scene svg { width: 100%; height: auto; display: block; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 4vw, 36px); margin: 0 0 12px; letter-spacing: -0.01em; text-align: center; }
p.sub { color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 44px; font-size: 17px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue);
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: s; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { position: relative; padding: 24px; padding-top: 64px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 20px; left: 24px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700;
}

.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.apps span { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }

.privacy-box { display: flex; gap: 24px; align-items: center; max-width: 820px; margin: 0 auto; }
.privacy-box .icon { width: 72px; height: 72px; border-radius: 20px; flex: none; }
.privacy-box .icon svg { width: 38px; height: 38px; }
.privacy-box h2 { text-align: left; }
.privacy-box p { color: var(--muted); margin: 0; }
@media (max-width: 640px) { .privacy-box { flex-direction: column; text-align: center; } .privacy-box h2 { text-align: center; } }

details { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 16px 20px; margin: 0 auto 12px; max-width: 760px; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Legal / text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; letter-spacing: -0.01em; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { text-align: left; font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .summary { background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 10px; padding: 16px 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.doc code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .92em; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer.site nav a { color: var(--muted); text-decoration: none; margin-right: 18px; }
footer.site nav a:hover { color: var(--ink); }
