:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --panel: #151518;
  --line: #2a2a30;
  --text: #f3f1ec;
  --dim: #a9a6a0;
  --tint: #b98a5a;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--sans); }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px var(--round); text-decoration: none; }
.brand svg { width: 40px; height: 20px; }
header.top nav a { color: var(--dim); text-decoration: none; font-size: 15px; margin-left: 18px; }
header.top nav a:hover { color: var(--text); }

h1, h2, h3 { font-family: var(--round); line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.4vw, 66px); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 620; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
.lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 34em; margin-top: 18px; }
.eyebrow { color: var(--tint); font: 600 13px var(--sans); letter-spacing: 0.09em; text-transform: uppercase; transition: color .25s; }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
.hero h1 { margin-top: 14px; }

form.join { margin-top: 28px; max-width: 460px; }
.row { display: flex; gap: 8px; }
input[type=email], textarea {
  flex: 1; min-width: 0; width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; font: inherit;
}
input[type=email]:focus, textarea:focus { outline: 2px solid var(--tint); outline-offset: 1px; }
button.go {
  background: var(--text); color: #111; border: 0; border-radius: 12px; padding: 13px 18px; font: 600 16px var(--sans);
  cursor: pointer; white-space: nowrap;
}
button.go:hover { background: #fff; }
button.go:disabled { opacity: .6; cursor: default; }
label.check { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 15px; margin-top: 12px; cursor: pointer; }
label.check input { width: 17px; height: 17px; accent-color: var(--tint); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.note { color: var(--dim); font-size: 14px; margin-top: 10px; min-height: 1.5em; }
.note.ok { color: #9fd6a6; }
.note.bad { color: #f0a59a; }

/* Demo */
.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.stage { border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #f1ede6, #dcd6cc); }
.stage svg { display: block; width: 100%; height: auto; }
.readout { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 4px 10px; }
.readout strong { font: 600 18px var(--round); }
.readout span { color: var(--dim); font-size: 14px; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px; }
.chip {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.chip[aria-pressed=true] { border-color: var(--text); }
.ctl { display: flex; align-items: center; gap: 12px; margin: 14px 4px 4px; color: var(--dim); font-size: 14px; }
.ctl input[type=range] { flex: 1; accent-color: var(--tint); }
.ctl label.check { margin: 0; font-size: 14px; }

section { padding: 64px 0; border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card .n { font: 600 14px var(--round); color: var(--tint); transition: color .25s; }
.card h3 { margin: 8px 0 8px; }
.card p, .two p, .prose p, .prose li { color: var(--dim); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.two h2 { margin-bottom: 14px; }
.two p + p { margin-top: 12px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
ul.plain li:first-child { padding-top: 0; }
ul.plain li b { color: var(--text); font-weight: 600; }

.prose { max-width: 700px; padding: 32px 0 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); margin-bottom: 8px; }
.prose h2 { font-size: 23px; margin: 34px 0 10px; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; margin: 10px 0; }
.prose li { margin: 6px 0; }
.prose form { margin-top: 20px; max-width: 520px; }
.prose textarea { min-height: 150px; margin-top: 10px; resize: vertical; }
.prose button.go { margin-top: 12px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--dim); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--dim); margin-left: 16px; }
footer a:first-child { margin-left: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 20px 0 52px; }
  .steps { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 48px 0; }
}
@media (max-width: 430px) {
  .wrap { padding: 0 16px; }
  .row { flex-direction: column; }
  header.top nav a { margin-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
