:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1f24;
  --muted: #5f6470;
  --line: #e4e1da;
  --accent: #2f5bd8;
  --accent-ink: #ffffff;
  --accent-soft: #e9eefc;
  --ok: #1d7a3f;
  --ok-soft: #e5f4ea;
  --warn: #8a5a00;
  --warn-soft: #fbf1dc;
  --bad: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 30, .05), 0 8px 24px rgba(20, 22, 30, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --surface: #1b1d22;
    --ink: #eceef2;
    --muted: #a0a6b3;
    --line: #2c2f37;
    --accent: #7c9cff;
    --accent-ink: #0f1220;
    --accent-soft: #232a42;
    --ok: #6fd295;
    --ok-soft: #1b2e23;
    --warn: #f0c46a;
    --warn-soft: #2f2716;
    --bad: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--accent-soft); padding: .1em .35em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 .6rem; }
h3 { font-size: 1.08rem; margin: 0 0 .3rem; }
[hidden] { display: none !important; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.top nav { display: flex; align-items: center; gap: 1.2rem; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: .75rem 1.35rem; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, opacity .12s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, .choice:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-small { padding: .45rem .95rem; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: .3rem; text-decoration: underline; text-underline-offset: 3px; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px) clamp(32px, 6vw, 72px); max-width: 1180px; margin: 0 auto; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 .6rem; font-size: .95rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 36rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin: 0 0 .8rem; }
.cta .btn { font-size: 1.08rem; padding: .9rem 1.6rem; }
.fine { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.flow { margin: 0; display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: center; }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.node .ico { font-size: 1.8rem; }
.node strong { font-size: .95rem; }
.node small { color: var(--muted); font-size: .82rem; }
.node.relay { border-color: var(--accent); background: var(--accent-soft); }
.pipe { height: 3px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.pipe span { position: absolute; inset: 0; width: 40%; background: var(--accent); border-radius: 2px; animation: flow 1.6s linear infinite; }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@media (prefers-reduced-motion: reduce) { .pipe span { animation: none; width: 100%; opacity: .5; } .btn { transition: none; } }

/* sections */
.band { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); }
.section-lead { color: var(--muted); max-width: 46rem; margin: 0 0 2rem; font-size: 1.05rem; }
.steps3 { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps3 li, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.steps3 p, .card p { margin: 0; color: var(--muted); }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: .7rem; }
.center { text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .steps3, .grid3 { grid-template-columns: 1fr; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: .35rem 0 .35rem 1.9rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .35rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; max-width: 52rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: .6rem 0 0; }

/* wizard */
.wizard { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px); display: grid; grid-template-columns: 230px 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.rail { position: sticky; top: 84px; }
.rail ol { list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: s; }
.rail li { counter-increment: s; display: flex; align-items: center; gap: .7rem; padding: .5rem 0; color: var(--muted); font-size: .95rem; }
.rail li::before { content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--surface); }
.rail li.current { color: var(--ink); font-weight: 600; }
.rail li.current::before { border-color: var(--accent); color: var(--accent); }
.rail li.done::before { content: "✓"; background: var(--ok); border-color: var(--ok); color: #fff; }
@media (max-width: 800px) {
  .wizard { grid-template-columns: 1fr; }
  .rail { position: static; }
  .rail ol { display: flex; gap: 6px; margin: 0; }
  .rail li { font-size: 0; padding: 0; gap: 0; }
  .rail li.current { font-size: .9rem; gap: .5rem; }
  #restart { display: none; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); min-width: 0; }
.panel h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.2rem 0; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; transition: border-color .12s, transform .12s; }
.choice:hover, .choice.selected { border-color: var(--accent); }
.choice:hover { transform: translateY(-1px); }
.choice .ico { font-size: 1.8rem; }
.choice small { color: var(--muted); }
.todo { padding-left: 1.3rem; margin: 1rem 0 1.4rem; }
.todo > li { margin-bottom: 1.4rem; padding-left: .3rem; }
.todo > li::marker { font-weight: 700; color: var(--accent); }
.todo p { margin: .3rem 0; }
.todo.live > li.ok::marker { content: "✓  "; color: var(--ok); }
.note { background: var(--accent-soft); border-radius: 12px; padding: 4px 18px; margin: 1rem 0; }
.note.warn { background: var(--warn-soft); }
.confirm { display: flex; align-items: center; gap: .6rem; font-weight: 600; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; margin-top: .5rem; }
.confirm input { width: 20px; height: 20px; accent-color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1rem; margin: 1.4rem 0 0; }
.codebox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: .4rem; }
#code { font: 700 2rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; width: 11ch; padding: .45rem .6rem; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); }
#code:focus { border-color: var(--accent); }
.status { font-size: .95rem; color: var(--muted); }
.status.ok { color: var(--ok); font-weight: 600; }
.status.warn { color: var(--warn); font-weight: 600; }
.status.bad { color: var(--bad); font-weight: 600; }
code.big { font-size: 1.1em; font-weight: 700; letter-spacing: .06em; }
.pwbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: .6rem 0 .8rem; }
#pw { font-size: 1.05rem; padding: .45rem .7rem; }
.inline input, #domain { font: inherit; padding: .4rem .6rem; border: 1.5px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: min(22rem, 100%); }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; text-align: center; padding: 28px 16px 40px; }
.foot p { margin: .3rem 0; }

/* "What happens with my data" */
.deep { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.deep > summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; display: flex; flex-direction: column; gap: 2px; }
.deep > summary::-webkit-details-marker { display: none; }
.deep > summary span { font-weight: 700; font-size: 1.12rem; }
.deep > summary small { color: var(--muted); }
.deep > summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; }
.deep[open] > summary::after { content: "–"; }
.deep-body { padding: 0 22px 22px; max-width: 52rem; }
.deep-body h3 { margin: 1.4rem 0 .35rem; }
.deep-body p, .deep-body li { color: var(--muted); }
.deep-body strong, .deep-body b { color: var(--ink); }
.deep-body ul { padding-left: 1.2rem; margin: .3rem 0; }
.deep-body li { margin: .25rem 0; }
.kept { width: 100%; border-collapse: collapse; font-size: .93rem; margin: .5rem 0; }
.kept th, .kept td { text-align: left; vertical-align: top; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.kept th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kept td { color: var(--muted); }
@media (max-width: 640px) {
  .kept thead { display: none; }
  .kept tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .kept td { display: block; border: 0; padding: .1rem 0; }
  .kept td:first-child { color: var(--ink); font-weight: 600; }
}

/* legal pages */
.legal { max-width: 46rem; margin: 0 auto; padding: clamp(32px, 6vw, 64px) clamp(16px, 4vw, 48px); }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 1rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .4rem; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--ink); }
.legal address { font-style: normal; line-height: 1.7; color: var(--ink); }
.note ol { margin: .3rem 0 .6rem; padding-left: 1.3rem; }
