:root {
  --paper: #eef1f7;
  --surface: #ffffff;
  --ink: #18213a;
  --muted: #566079;
  --line: #cfd5e3;
  --indigo: #21306b;
  --indigo-soft: #dfe4f5;
  --amber: #f2b134;
  --amber-ink: #3b2a00;
  --wedge: #f9fafd;
  --wedge-line: #c3cadb;
  --focus: #3b5bdb;
  --measure: 34rem;
  --radius-control: 999px;
  --radius-panel: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121726;
    --surface: #1b2133;
    --ink: #e9ecf5;
    --muted: #a3abc2;
    --line: #2f3750;
    --indigo: #9fb0ff;
    --indigo-soft: #232c4a;
    --wedge: #20273b;
    --wedge-line: #39425f;
    --focus: #9fb0ff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #121726;
  --surface: #1b2133;
  --ink: #e9ecf5;
  --muted: #a3abc2;
  --line: #2f3750;
  --indigo: #9fb0ff;
  --indigo-soft: #232c4a;
  --wedge: #20273b;
  --wedge-line: #39425f;
  --focus: #9fb0ff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, .stage:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Header */

.site-header { padding-block: 1.25rem; }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.125rem; text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; font-size: .9375rem; }
.site-nav a:not(.button) { text-decoration: none; color: var(--muted); }
.site-nav a:not(.button):hover { color: var(--ink); }

/* Buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: .55rem 1.25rem;
  border-radius: var(--radius-control); border: 1.5px solid var(--indigo);
  background: var(--indigo); color: var(--paper);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { filter: brightness(1.12); }
.button.quiet { background: transparent; color: var(--indigo); }
.button.small { min-height: 2.25rem; padding: .35rem 1rem; font-size: .9375rem; }

/* Hero */

.hero { padding-block: 2.5rem 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 11ch;
}
.hero p.lede { margin: 0 0 2rem; max-width: var(--measure); font-size: 1.1875rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.fine { margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }

/* The live Menu */

.stage {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--surface);
  border: 1px solid var(--line);
  overflow: hidden; cursor: crosshair; touch-action: manipulation;
}
.stage-hint { position: absolute; left: 1rem; bottom: .85rem; margin: 0; font-size: .875rem; color: var(--muted); pointer-events: none; }
.stage-result {
  position: absolute; right: 1rem; bottom: .75rem; margin: 0;
  padding: .3rem .8rem; border-radius: var(--radius-control);
  background: var(--amber); color: var(--amber-ink); font-size: .875rem; font-weight: 600;
  opacity: 0; transition: opacity .2s;
}
.stage-result.shown { opacity: 1; }
.ring { position: absolute; width: min(66%, 380px); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); pointer-events: none; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring.opening { animation: ring-open .22s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes ring-open { from { transform: translate(-50%, -50%) scale(.55); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.ring path { fill: var(--wedge); stroke: var(--wedge-line); stroke-width: 1; transition: fill .12s; }
.ring path.selected { fill: var(--amber); stroke: var(--amber); }
.ring text { fill: var(--ink); font-size: 11.5px; font-weight: 600; text-anchor: middle; dominant-baseline: central; }
.ring text.selected { fill: var(--amber-ink); }
.ring .hub { fill: var(--indigo); }
.ring .hub-label { fill: var(--paper); font-size: 11px; font-weight: 600; }

/* Sections */

section { padding-block: 4rem; }
section h2 { margin: 0 0 .75rem; font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
section .intro { margin: 0 0 2.5rem; max-width: var(--measure); color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--indigo); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 2.25rem; font-weight: 800; line-height: 1; color: var(--indigo); margin-bottom: .75rem; }
.steps h3, .features h3 { margin: 0 0 .35rem; font-size: 1.125rem; letter-spacing: -.01em; }
.steps p, .features p { margin: 0; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 3rem; max-width: 60rem; }

/* Pricing */

.pricing { background: var(--indigo-soft); }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.price { margin: 0; font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: .4rem; }
.offer ul { margin: 1.5rem 0 2rem; padding-left: 1.2rem; }
.offer li { margin-bottom: .45rem; }
.offer .fine { margin-top: 1rem; }
.free-path { padding: 1.5rem 1.75rem; border-radius: var(--radius-panel); background: var(--surface); border: 1px solid var(--line); }
.free-path h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
.free-path p { margin: 0 0 .75rem; color: var(--muted); }
.free-path p:last-child { margin-bottom: 0; }

/* Questions */

.faq > * { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.0625rem; }
.faq details p { margin: .65rem 0 0; color: var(--muted); max-width: var(--measure); }

/* Footer */

.site-footer { padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: baseline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer .copyright { margin: 0 auto 0 0; }

/* Legal pages */

.legal { padding-block: 2rem 4rem; }
.legal article { max-width: 42rem; }
.legal h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; line-height: 1.1; }
.legal .updated { margin: 0 0 2.5rem; color: var(--muted); }
.legal h2 { margin: 2.25rem 0 .5rem; font-size: 1.25rem; letter-spacing: -.01em; }
.legal p, .legal li { color: var(--ink); }
.legal li { margin-bottom: .4rem; }

.recover { margin: 0 0 2rem; }
.recover label { display: block; font-weight: 600; margin-bottom: .4rem; }
.recover-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.recover input {
  flex: 1 1 16rem; min-height: 2.75rem; padding: .5rem .9rem;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit;
}
.recover input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }

[data-todo] { background: var(--amber); color: var(--amber-ink); padding: 0 .25em; border-radius: 4px; }

@media (max-width: 860px) {
  .hero .wrap, .offer { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 1rem; }
  .stage { max-width: 34rem; }
  .steps, .features { grid-template-columns: minmax(0, 1fr); }
  .site-nav a.hide-small { display: none; }
}

@media (max-width: 420px) {
  .ring { width: 78%; }
  .site-nav { gap: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ring.opening { animation: none; }
  .ring path, .stage-result { transition: none; }
}
