:root {
  --ground: #eef1ef;
  --surface: #ffffff;
  --ink: #12201a;
  --muted: #3e4f47;
  --line: #d3dad6;
  --accent: #1f7a4c;
  --accent-dark: #155a37;
  --accent-light: #cfebdb;
  --panel: #12201a;
  --panel-2: #0f1a15;
  --panel-card: #1a2c24;
  --hl: #6fd3a0;
  --panel-text: #e6eee9;
  --panel-muted: #a9bdb3;
  --amber: #fbe3cc;
  --clay: #f6d2c4;
  --lilac: #e3e0f3;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
a {
  color: var(--accent-dark);
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.label {
  font: 500 0.78rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  background: var(--surface);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 9;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(238, 241, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 1.15rem var(--display);
  color: var(--ink);
  text-decoration: none;
}
nav.links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
nav.links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}
nav.links a:hover {
  color: var(--ink);
  background: var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 1rem var(--body);
  text-decoration: none;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn.ghost {
  background: transparent;
  color: var(--accent-dark);
}
.btn.ghost:hover {
  background: var(--accent-light);
}
.btn[aria-disabled='true'] {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero {
  padding: 56px 0 72px;
}
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 40ch;
  margin-top: 20px;
}
.hero .cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.trust li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.phone {
  background: var(--panel-2);
  color: var(--panel-text);
  border-radius: 28px;
  padding: 24px;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 24px 60px -24px rgba(18, 32, 26, 0.5);
}
.phone .meta {
  display: flex;
  justify-content: space-between;
  font: 500 0.75rem var(--mono);
  color: var(--panel-muted);
  letter-spacing: 0.06em;
}
.phone .big {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  border: 2px solid #3a5446;
  background: #16251e;
  margin: 28px auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 0 12px #13211b;
  font: 600 1.6rem var(--display);
}
.phone .big small {
  font: 400 0.8rem var(--body);
  color: var(--panel-muted);
}
.phone .stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.phone .stats div {
  background: var(--panel-card);
  border-radius: 14px;
  padding: 10px 12px;
  font: 600 1.2rem var(--display);
}
.phone .stats span {
  display: block;
  font: 400 0.72rem var(--body);
  color: var(--panel-muted);
}
.phone .window {
  text-align: center;
  color: #e8a060;
  font-size: 0.85rem;
}

section {
  padding: 72px 0;
}
section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
section.dark {
  background: var(--panel);
  color: var(--panel-text);
}
section.dark .label {
  color: var(--hl);
}
section.dark p {
  color: var(--panel-muted);
}
.head {
  max-width: 640px;
  margin-bottom: 40px;
}
.head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.1rem;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: s;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.steps .when {
  font: 500 0.8rem var(--mono);
  color: var(--accent-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.steps h3 {
  margin: 8px 0;
}
.steps p {
  color: var(--muted);
  font-size: 0.98rem;
}
.steps li.end {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

.grid {
  display: grid;
  gap: 16px;
}
.card {
  border-radius: 20px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.card.amber {
  background: var(--amber);
  border-color: var(--amber);
}
.card.clay {
  background: var(--clay);
  border-color: var(--clay);
}
.card.lilac {
  background: var(--lilac);
  border-color: var(--lilac);
}
.card.green {
  background: var(--accent-light);
  border-color: var(--accent-light);
}
.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.98rem;
}
.card.amber p,
.card.clay p,
.card.lilac p,
.card.green p {
  color: #2b3a33;
}
.dark .card {
  background: var(--panel-card);
  border-color: #22362c;
}
.dark .card p {
  color: var(--panel-muted);
}
.dark .card h3 {
  color: #fff;
}
.note {
  background: var(--panel-card);
  border-left: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font: 500 0.95rem var(--mono);
  color: var(--hl);
  margin-top: 24px;
}

.clock {
  display: flex;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  margin: 28px 0 10px;
  font: 500 0.78rem/44px var(--mono);
  text-align: center;
}
.clock span {
  white-space: nowrap;
  overflow: hidden;
}
.clock .a {
  flex: 7;
  background: var(--accent-light);
  color: var(--ink);
}
.clock .b {
  flex: 83;
  background: var(--amber);
  color: var(--ink);
}
.clock .c {
  flex: 30;
  background: var(--clay);
  color: var(--ink);
}
.clock-legend {
  color: var(--muted);
  font-size: 0.9rem;
}

.steps-setup {
  counter-reset: n;
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}
.steps-setup li {
  counter-increment: n;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px 18px 64px;
  position: relative;
}
.steps-setup li::before {
  content: counter(n);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 600 1rem/32px var(--display);
  text-align: center;
}
.page {
  padding: 56px 0 80px;
}
.page .wrap {
  max-width: 760px;
}
.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 20px;
}
.page h2 {
  font-size: 1.4rem;
  margin: 32px 0 10px;
}
.page ul {
  padding-left: 1.2em;
}
.page li {
  margin: 6px 0;
}
.status {
  background: var(--amber);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 20px 0;
}

footer {
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: grid;
  gap: 14px;
}
footer .disclaimer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
  color: var(--ink);
}
footer nav {
  display: flex;
  gap: 6px 18px;
  flex-wrap: wrap;
}

@media (min-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1.15fr 0.85fr;
  }
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }
  .grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.mt12 {
  margin-top: 12px;
}
.mt14 {
  margin-top: 14px;
}
.mt24 {
  margin-top: 24px;
}
.mt28 {
  margin-top: 28px;
}
.on-dark {
  color: #fff;
}
nav.links a.nav-cta {
  min-height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
}
nav.links a.nav-cta:hover {
  color: #fff;
  background: var(--accent-dark);
}

.lead-sm {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.privacy-line {
  background: var(--accent-light);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 18px 0 26px;
}
.field {
  display: block;
  font-weight: 600;
  margin: 18px 0 6px;
}
.field .hint {
  display: block;
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--muted);
}
textarea,
input[type='password'],
input[type='text'] {
  width: 100%;
  font: 400 1rem/1.5 var(--mono);
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.msg {
  min-height: 1.6em;
  margin-top: 14px;
}
.msg.bad {
  color: #8a2d12;
  font-weight: 600;
}
.result pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font: 400 1rem/1.6 var(--body);
  margin: 8px 0 0;
}

.guide {
  list-style: none;
  counter-reset: g;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 18px;
}
.guide > li {
  counter-increment: g;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 22px 22px 72px;
  position: relative;
}
.guide > li::before {
  content: counter(g);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 600 1.05rem/36px var(--display);
  text-align: center;
}
.guide h2 {
  font-size: 1.25rem;
  margin: 0 0 8px;
}
.guide p {
  margin-top: 8px;
}
.guide .two {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.guide .card h3 {
  margin-bottom: 6px;
}
.hint-line {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 12px;
}
.explain,
.qa {
  background: var(--ground);
  border-radius: 14px;
  padding: 4px 16px;
  margin: 12px 0;
}
.explain summary,
.qa summary {
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 10px 0;
}
.qa p,
.qa ul {
  margin: 0 0 14px;
  color: var(--muted);
}
.qa ul {
  padding-left: 1.2em;
}
.perms,
.roles {
  padding-left: 1.2em;
}
.perms li,
.roles li {
  margin: 6px 0;
}
.licence {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  font: 400 0.9rem/1.6 var(--mono);
}
.note-box {
  background: #eaf3ee;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}
@media (min-width: 860px) {
  .guide .two {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .guide > li {
    padding: 20px 16px 20px 16px;
  }
  .guide > li::before {
    position: static;
    display: block;
    margin-bottom: 10px;
  }
}

/* ---- illustrated walkthroughs ---- */
.story {
  margin: 22px 0 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.story-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px 8px;
}
.story-count {
  font: 500 0.78rem var(--mono);
  color: var(--muted);
  letter-spacing: 0.06em;
}
.story-stage .scene {
  padding: 0 12px;
}
.story-stage .scene svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.scene-cap {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 8px 6px 18px;
}
.story-cap {
  display: none;
}
.story-ctl {
  display: none;
}
.story.live .scene {
  display: none;
}
.story.live .scene.on {
  display: block;
}
.story.live .scene-cap {
  display: none;
}
.story.live .story-cap {
  display: block;
  margin: 8px 18px 4px;
  min-height: 3.2em;
  font-size: 1.02rem;
  color: var(--ink);
}
.story.live .story-ctl {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 14px 16px;
}
.story-btn {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent-dark);
  font: 600 0.95rem var(--body);
  cursor: pointer;
}
.story-btn.story-play {
  background: var(--accent);
  color: #fff;
  min-width: 84px;
}
.story-dots {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.story-dot {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.story-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--line);
}
.story-dot[aria-current='true']::after {
  background: var(--accent);
}
.why-hero {
  margin-top: 8px;
}
.facts {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}
.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 18px;
}
.facts li b {
  display: block;
  margin-bottom: 4px;
}
@media (min-width: 760px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.page .facts {
  padding-left: 0;
}
@media (max-width: 560px) {
  nav.links a:not(.nav-cta) {
    display: none;
  }
}

/* ---- setup wizard ---- */
.wizard {
  margin-top: 26px;
}
.wiz-top,
.wiz-nav,
.wiz-hint {
  display: none;
}
.wizard.live .wiz-top {
  display: block;
}
.wizard.live .wiz-nav {
  display: flex;
}
.wizard.live .wiz-hint {
  display: block;
}
.wizard:not(.live) .wiz-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  margin-bottom: 18px;
}
.wizard.live .wiz-step {
  display: none;
}
.wizard.live .wiz-step.on {
  display: block;
}
.wiz-count {
  font: 600 0.95rem var(--display);
  color: var(--ink);
  margin-bottom: 8px;
}
.wiz-bar {
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.wiz-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.25s ease;
}
.wiz-list {
  display: flex;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  overflow-x: auto;
}
.wiz-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.wiz-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font: 600 1rem var(--display);
  cursor: pointer;
}
.wiz-item.done .wiz-dot {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--accent-dark);
}
.wiz-item.now .wiz-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.wiz-dot:disabled {
  cursor: default;
  opacity: 0.55;
}
.wiz-label {
  display: none;
}
.wiz-body {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
.page .wiz-step h2 {
  font-size: 1.5rem;
  margin: 0 0 10px;
}
.wiz-step h2:focus {
  outline: none;
}
.wiz-step p {
  margin-top: 10px;
}
.know {
  background: var(--accent-light);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 18px;
  color: var(--ink);
  font-size: 0.97rem;
}
.wiz-nav {
  position: sticky;
  bottom: 0;
  z-index: 4;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0 14px;
  background: linear-gradient(to bottom, rgba(238, 241, 239, 0), var(--ground) 30%);
}
.wiz-nav .btn {
  flex: 1 1 0;
}
.wiz-nav .btn:last-child:not(:first-child) {
  flex: 2 1 0;
}
.wiz-hint {
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.92rem;
}
.wiz-body .story {
  margin-top: 16px;
}
@media (min-width: 860px) {
  .wiz-list {
    gap: 14px;
  }
  .wiz-nav .btn {
    flex: 0 1 auto;
    min-width: 150px;
  }
  .wiz-nav .btn:last-child:not(:first-child) {
    margin-left: auto;
  }
}

.wiz-nav [hidden] {
  display: none;
}

.wiz-step {
  padding: 0;
}
.wiz-nav .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
