:root {
  color-scheme: dark light;
  --bg: #0C0E13;
  --card: #171A22;
  --text: #F4F1E8;
  --soft: #D5D5D0;
  --mid: #A9AEB8;
  --dim: #8F94A1;
  --line: #1F232C;
  --edge: #3A3F4B;
  --amber: #FFB84D;
  --amber-text: #FFB84D;
  --ink: #1A1204;
  --danger: #FF9C87;
  --w: 400;
  --glow: rgba(255, 184, 77, 0.45);
  --lamp: 0 0 0.55em 0.18em rgba(255, 184, 77, 0.45);
  --wash: rgba(255, 184, 77, 0.09);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Geist', system-ui, sans-serif;
  --gutter: clamp(24px, 5vw, 72px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F4EC;
    --card: #EDE9DD;
    --text: #16140F;
    --soft: #2E2C26;
    --mid: #5C606B;
    --dim: #6A6E78;
    --line: #E3DFD2;
    --edge: #C9C4B4;
    --amber-text: #8A5200;
    --danger: #B3261E;
    --w: 500;
    --glow: rgba(255, 184, 77, 0.7);
    --lamp: 0 0 0.3em 0.05em rgba(255, 184, 77, 0.6);
    --wash: rgba(255, 184, 77, 0.2);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
b { font-weight: inherit; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
h1:focus, h2:focus { outline: none; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gutter); }

.top { display: flex; align-items: center; min-height: 88px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.mark { width: 38px; height: 16px; overflow: visible; flex: none; }
.mark circle, .mark path { fill: none; stroke: var(--text); stroke-width: 5; }
.mark .then { fill: var(--amber); stroke: none; filter: drop-shadow(0 0 7px var(--glow)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 28px;
  background: var(--text);
  color: var(--bg);
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.88; }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-line { background: transparent; border: 1px solid var(--edge); color: var(--text); font-weight: 500; }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); font-weight: 500; }
.btn-quiet { min-height: 44px; background: transparent; color: var(--mid); font-size: 15px; font-weight: 500; }

.link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 500 14px/1.3 var(--sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.link-btn:disabled { color: var(--mid); font-weight: 400; cursor: default; }

.inline-link { padding-block: 0.8em; text-underline-offset: 3px; }

.display {
  font: 300 clamp(2.375rem, 1.9rem + 2.4vw, 4rem)/1.08 var(--serif);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.label { font-size: 13px; font-weight: 500; color: var(--mid); }

.rule {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--dim);
}
.rule b, .rule em { font-weight: var(--w); color: var(--text); }

.band { padding-block: clamp(64px, 9vw, 128px); }

.lamp {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: var(--lamp);
  animation: lamp-on 1.8s var(--ease) both;
}

@keyframes lamp-on {
  from { opacity: 0.25; box-shadow: 0 0 0 0 transparent; }
}

.hero { padding-block: clamp(32px, 7vw, 88px) clamp(48px, 7vw, 96px); }

.hero h1 {
  max-width: 12.5em;
  font: 300 clamp(3.25rem, 1.75rem + 6.6vw, 7.25rem)/1.03 var(--serif);
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lede {
  max-width: 36rem;
  margin-top: clamp(20px, 3vw, 32px);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--mid);
}

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: clamp(28px, 4vw, 40px); }
.cta span { font-size: 14px; color: var(--mid); }

.demo-h { margin-bottom: clamp(32px, 5vw, 64px); }

.demo { display: grid; gap: 48px; align-items: start; }

.words-stack { display: grid; }
.compose, .reading { grid-area: 1 / 1; min-width: 0; transition: opacity 0.45s, visibility 0.45s; }

.compose { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; opacity: 0; visibility: hidden; }
[data-step='noisy'] .compose, [data-step='typing'] .compose { opacity: 1; visibility: visible; }
[data-step='noisy'] .reading, [data-step='typing'] .reading { opacity: 0; visibility: hidden; }

.typed {
  min-height: 2.4em;
  font: 300 clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem)/1.2 var(--serif);
  letter-spacing: -0.015em;
}
.typed-rest { visibility: hidden; }

.caret {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-right: -2px;
  vertical-align: -0.12em;
  background: var(--text);
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { from { opacity: 1; } to { opacity: 0; } }

.read-it {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}

.reading { display: flex; flex-direction: column; gap: 16px; }
.wrote { font-size: 14px; color: var(--dim); }

.rule-big {
  font-size: clamp(2.125rem, 1.8rem + 1.5vw, 3.125rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.rule-big b, .rule-big em { transition: color 0.5s 0.15s; }
.rule-big b:nth-of-type(2) { transition-delay: 0.35s; }
.rule-big b:nth-of-type(3) { transition-delay: 0.55s; }
.rule-big em { transition-delay: 0.75s; }
[data-step='noisy'] .rule-big :is(b, em), [data-step='typing'] .rule-big :is(b, em) { color: var(--dim); }

.after { max-width: 28rem; font-size: 15px; color: var(--mid); }

.again { margin-top: 8px; }
.demo:not([data-step='quiet']) .again { visibility: hidden; }

.shade { min-width: 0; }

.shade-title { display: grid; margin-bottom: 18px; font: 300 clamp(1.75rem, 1.55rem + 0.8vw, 2.375rem)/1.15 var(--serif); letter-spacing: -0.015em; }
.shade-title span { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.demo:is([data-step='noisy'], [data-step='typing'], [data-step='read']) .t-noisy,
.demo[data-step='ran'] .t-ran,
.demo[data-step='judged'] .t-judged,
.demo[data-step='quiet'] .t-quiet { opacity: 1; visibility: visible; }

.n {
  display: grid;
  grid-template-rows: 1fr;
  margin-bottom: 8px;
  transition: grid-template-rows 0.55s var(--ease), margin 0.55s var(--ease), opacity 0.3s, transform 0.55s var(--ease), visibility 0.55s;
}

.n-card {
  display: flex;
  gap: 12px;
  min-height: 0;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  transition: padding 0.55s var(--ease);
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin: 5px 3px 0;
  border-radius: 50%;
  background: var(--edge);
  transition: background 0.5s, box-shadow 0.5s;
}

.n-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.n-app { font-size: 13px; color: var(--mid); }
.n-text { font-size: 15px; font-weight: 500; line-height: 1.35; transition: color 0.5s; }
.n-lit { color: var(--amber-text); opacity: 0; transition: opacity 0.5s; }

.demo:is([data-step='ran'], [data-step='judged'], [data-step='quiet']) .n[data-by='when'],
.demo:is([data-step='judged'], [data-step='quiet']) .n[data-by='judge'] {
  grid-template-rows: 0fr;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
}
.demo:is([data-step='ran'], [data-step='judged'], [data-step='quiet']) .n[data-by='when'] .n-card,
.demo:is([data-step='judged'], [data-step='quiet']) .n[data-by='judge'] .n-card { padding-block: 0; }

.demo:is([data-step='judged'], [data-step='quiet']) .n-first .dot { background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.demo:is([data-step='judged'], [data-step='quiet']) .n-first .n-lit { opacity: 1; }
.demo:is([data-step='judged'], [data-step='quiet']) .n:not(.n-first) .n-text { color: var(--mid); font-weight: 400; }

[data-step='noisy'] .n { animation: buzz 0.09s linear 4 alternate; }
[data-step='noisy'] .n:nth-child(2) { animation-delay: 0.14s; }
[data-step='noisy'] .n:nth-child(3) { animation-delay: 0.28s; }
[data-step='noisy'] .n:nth-child(4) { animation-delay: 0.42s; }
[data-step='noisy'] .n:nth-child(5) { animation-delay: 0.56s; }
[data-step='noisy'] .n:nth-child(6) { animation-delay: 0.7s; }
@keyframes buzz { from { transform: translateX(-2px); } to { transform: translateX(2px); } }

.hidden-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 10px 16px 0 44px;
  font-size: 13px;
  color: var(--dim);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.hidden-row b { font-weight: 500; }
.demo[data-step='quiet'] .hidden-row { opacity: 1; visibility: visible; }

@media (min-width: 900px) {
  .demo { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(48px, 7vw, 112px); }
}

.steps { margin-top: clamp(32px, 5vw, 64px); }

.step {
  display: grid;
  gap: 24px;
  padding-block: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.step h3 {
  font: 300 clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem)/1.14 var(--serif);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.step-text p { max-width: 30rem; margin-top: 12px; font-size: 15px; color: var(--mid); }

.rows li { padding-block: 14px; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }

.rule-row { font-size: 22px; line-height: 1.28; }

.ladder li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 15px; }
.ladder span:last-child { flex: none; font-size: 13px; }
.ladder .hide { color: var(--dim); }
.ladder .show { color: var(--soft); }
.ladder .lit { color: var(--text); font-weight: 500; }
.ladder .lit span:last-child { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-text); font-weight: 500; }
.ladder .lit i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }

.stays li { font: 300 22px/1.28 var(--serif); color: var(--text); }

@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(48px, 7vw, 112px); }
}

.promise {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
  font: 300 clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem)/1.14 var(--serif);
  letter-spacing: -0.015em;
}
.promise i {
  flex: none;
  width: 0.28em;
  height: 0.28em;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0.5em 0.1em var(--glow);
  transform: translateY(-0.12em);
}

.sub { max-width: 36rem; margin-top: 14px; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem); color: var(--mid); }

.plans { display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); }

.plan { display: flex; flex-direction: column; gap: 20px; padding: 28px 24px; border-radius: 24px; background: var(--card); }
.plan-name { font: 300 clamp(2.125rem, 1.9rem + 1vw, 2.75rem)/1.08 var(--serif); letter-spacing: -0.02em; }
.plan-price { margin-top: 8px; font-size: 16px; font-weight: 500; line-height: 1.4; }
.plan li { padding-block: 11px; border-top: 1px solid var(--edge); font-size: 15px; line-height: 1.4; }
.plan-note { font-size: 13px; color: var(--mid); }

.promises { display: grid; gap: 24px; margin-top: 40px; }
.promises h3 { font-size: 15px; font-weight: 600; }
.promises p { margin-top: 4px; font-size: 15px; color: var(--mid); }

@media (min-width: 760px) {
  .plans, .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan { padding: 32px; }
}

.reach { display: grid; gap: 16px; margin-top: clamp(28px, 4vw, 48px); }
.reach-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; border-radius: 20px; background: var(--card); }
.reach-card h3 { font-size: 15px; font-weight: 600; }
.reach-card h4 { margin: 0; font-size: 13px; font-weight: 500; color: var(--mid); }
.reach-card p { margin-top: 2px; font-size: 15px; line-height: 1.45; }

@media (min-width: 760px) {
  .reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.plain { max-width: 40rem; margin-top: 24px; color: var(--mid); }

.link-rows { max-width: 40rem; margin-top: 24px; }
.link-rows a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.link-rows a:last-child { border-bottom: 1px solid var(--line); }
.link-rows a:hover { text-decoration: underline; text-underline-offset: 3px; }

.early { background: radial-gradient(70% 90% at 50% 0%, var(--wash), transparent 75%); border-top: 1px solid var(--line); }
.early-in { max-width: 40rem; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--mid); }

input.text {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font: 400 17px/1.2 var(--sans);
}
input.text::placeholder { color: var(--dim); opacity: 1; }
input.text:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }

.early-form { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.early-form .help { font-size: 13px; line-height: 1.45; color: var(--dim); }
.early-row { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 560px) {
  .early-row { flex-direction: row; align-items: flex-end; }
  .early-row .field { flex: 1; min-width: 0; }
}

.note-line { font-size: 15px; line-height: 1.45; }
.note-line:empty { display: none; }
.note-bad { color: var(--danger); }
.sent { margin-top: 28px; font: 300 clamp(1.75rem, 1.5rem + 1.1vw, 2.5rem)/1.14 var(--serif); letter-spacing: -0.015em; }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 24px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--mid); text-decoration: none; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

.doc { max-width: 42rem; padding-block: clamp(24px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.doc h1 { font: 300 clamp(2.875rem, 2.2rem + 3.4vw, 4.75rem)/1.04 var(--serif); letter-spacing: -0.025em; }
.doc-date { margin-top: 12px; font-size: 14px; color: var(--mid); }
.doc-lede { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); line-height: 1.5; color: var(--soft); }
.doc-lede + .doc-lede { margin-top: 14px; }
.doc .reach { grid-template-columns: minmax(0, 1fr); }
.doc h2 {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font: 300 clamp(1.75rem, 1.6rem + 0.7vw, 2.25rem)/1.14 var(--serif);
  letter-spacing: -0.015em;
}
.doc-body p, .doc-body li { font-size: 16px; line-height: 1.6; color: var(--soft); }
.doc-body p { margin-top: 14px; }
.doc-body ul { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.doc-body li { position: relative; padding-left: 18px; }
.doc-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--edge);
}
.doc-body strong { font-weight: 500; color: var(--text); }

.flow { max-width: 30rem; padding-block: clamp(8px, 3vw, 40px) 48px; }
.flow-view { display: flex; flex-direction: column; gap: 24px; }
.flow-head { display: flex; flex-direction: column; gap: 10px; }
.flow h1 { font: 300 38px/1.08 var(--serif); letter-spacing: -0.02em; }
.flow-sub { font-size: 15px; line-height: 1.45; color: var(--mid); }
.flow form { display: flex; flex-direction: column; gap: 16px; }
.flow .btn { width: 100%; }
.flow .help { font-size: 13px; line-height: 1.45; color: var(--dim); }
.facts { display: flex; flex-direction: column; gap: 16px; }
.facts h2 { font-size: 15px; font-weight: 600; }
.facts p { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--mid); }
.flow-foot { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--mid); }

.cells-wrap { position: relative; }
.cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  border: 1px solid var(--edge);
  border-radius: 14px;
  font: 400 28px/1 var(--serif);
}
.cells-wrap:focus-within .cell-now { border: 1.5px solid var(--text); }
.code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  font-size: 16px;
  opacity: 0;
}

.flow-links { display: flex; flex-direction: column; }

.card-note { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; border-radius: 20px; background: var(--card); }
.card-note h2 { font-size: 15px; font-weight: 600; }
.card-note p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--mid); }
.card-note .btn { min-height: 48px; font-size: 15px; }

dialog.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 100dvh;
  margin: auto 0 0;
  padding: 10px 24px 20px;
  border: 0;
  border-radius: 28px 28px 0 0;
  background: var(--card);
  color: var(--text);
}
dialog.sheet::backdrop { background: rgba(4, 5, 8, 0.66); }
@media (prefers-color-scheme: light) {
  dialog.sheet::backdrop { background: rgba(22, 20, 15, 0.38); }
}
dialog.sheet[open] { animation: sheet-up 0.35s var(--ease); }
@keyframes sheet-up { from { transform: translateY(32px); opacity: 0; } }

.sheet-in { display: flex; flex-direction: column; gap: 18px; }
.grab { align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--edge); }
.sheet h1 { font: 300 30px/1.15 var(--serif); letter-spacing: -0.01em; }
.sheet-head { display: flex; flex-direction: column; gap: 8px; }
.sheet-head p { font-size: 15px; line-height: 1.45; color: var(--mid); }
.sheet-head .who { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
.sheet-head .link-btn { font-size: 15px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.sheet-plus { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--edge); }
.sheet-plus h2 { font-size: 15px; font-weight: 600; }
.sheet-plus p { font-size: 14px; line-height: 1.45; color: var(--mid); }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; }
.sheet-actions .btn { width: 100%; }

@media (min-width: 640px) {
  dialog.sheet { max-width: 30rem; margin: auto; padding: 28px; border-radius: 28px; }
  .grab { display: none; }
}

.lost { padding-block: clamp(48px, 10vw, 120px); }
.lost p { margin-top: 16px; color: var(--mid); }
.lost .btn { margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
