/* Undue landing. Tokens from the final brand kit (direction 1c). */
:root {
  color-scheme: light dark;
  --accent: #CD6E4C;
  --accent: oklch(0.64 0.13 40);
  --brick-hi: #E4896A;
  --brick-hi: oklch(0.72 0.12 40);
  --brick-lo: #AB5637;
  --brick-lo: oklch(0.55 0.12 40);
  --bg: #FBFAF8;
  --page: #ECEAE6;
  --ink: #1D1B18;
  --ink-2: #77716A;
  --on-accent: #1D1B18;

  --t1: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --t2: color-mix(in srgb, var(--ink) 9%, var(--bg));
  --t3: color-mix(in srgb, var(--ink) 15%, var(--bg));
  --t4: color-mix(in srgb, var(--ink) 30%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 14%, var(--bg));

  --font: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1040px;
  --gutter: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #D9805D;
    --accent: oklch(0.68 0.13 40);
    --brick-hi: #EC9677;
    --brick-hi: oklch(0.76 0.11 40);
    --brick-lo: #8E4A30;
    --brick-lo: oklch(0.50 0.11 40);
    --bg: #171513;
    --page: #0F0E0D;
    --ink: #F3F0EB;
    --ink-2: #A39D95;
    --on-accent: #171513;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 8vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 3.4vw, 1.3125rem); color: var(--ink); }
.muted { color: var(--ink-2); }

/* header */
.top { padding: 22px 0 0; }
.lockup { display: block; width: 132px; height: auto; }

/* hero */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 44px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-copy .lede { max-width: 34rem; }
.fine { font-size: 0.875rem; color: var(--ink-2); }
.hero-art { justify-self: center; width: 100%; max-width: 460px; }
.hero-art svg { display: block; width: 100%; height: auto; }

/* form */
.waitlist { display: grid; gap: 6px; max-width: 30rem; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.waitlist input[type="email"] {
  font: inherit;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--t4);
  border-radius: 14px;
}
.waitlist input[type="email"]::placeholder { color: var(--ink-2); opacity: 1; }
.waitlist input[type="email"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn {
  font: inherit;
  font-weight: 700;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: opacity 120ms ease, transform 120ms ease;
}
.btn:active { opacity: 0.85; transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: default; }
.form-msg { min-height: 0; margin: 0; font-size: 0.9375rem; color: var(--ink); }

.done { display: none; align-items: center; gap: 16px; min-height: 52px; }
.done p { font-size: 1.25rem; font-weight: 700; }
.waitlist-wrap.is-done .waitlist { display: none; }
.waitlist-wrap.is-done .done { display: flex; }
.brick-stack { width: 76px; flex: none; }
.brick-stack svg { display: block; width: 100%; height: auto; overflow: visible; }
.brick-drop { animation: drop 700ms cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes drop {
  0%   { transform: translateY(-46px); opacity: 0; }
  55%  { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--t1); }
.section .wrap { display: grid; gap: 18px; }
.narrow { max-width: 40rem; }
.narrow p { color: var(--ink); }
.kicker { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }

.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--t2); color: var(--ink); font-weight: 700; font-size: 0.9375rem;
}
.steps p { color: var(--ink-2); }

.town { margin-top: 6px; }
.town svg { display: block; width: 100%; height: auto; border-radius: 24px; }

/* final */
.final { text-align: center; }
.final .wrap { justify-items: center; gap: 26px; }
.final h2 { max-width: 22ch; }
.final .waitlist, .final .done { margin: 0 auto; }
.final .waitlist-wrap { width: 100%; display: grid; justify-items: center; }

/* footer */
.foot { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 0.9375rem; color: var(--ink-2); }
.foot svg { width: 26px; height: auto; display: block; }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* privacy */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 40rem; display: grid; gap: 20px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 10px; }

/* scroll-in */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row .btn { flex: none; }
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .lockup { width: 150px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .section { padding: 104px 0; }
}
@media (min-width: 900px) {
  .hero { padding: 72px 0 112px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .brick-drop { animation: none; }
  .btn { transition: none; }
}

/* illustration palette (tokens only) */
.a-bg { fill: var(--bg); }
.a-t1 { fill: var(--t1); }
.a-t2 { fill: var(--t2); }
.a-t3 { fill: var(--t3); }
.a-t4 { fill: var(--t4); }
.a-ink { fill: var(--ink); }
.a-ink2 { fill: var(--ink-2); }
.a-hi { fill: var(--brick-hi); }
.a-lo { fill: var(--brick-lo); }
.a-acc { fill: var(--accent); }
.s-line { stroke: var(--line); stroke-width: 2; }
.ring-t { fill: none; stroke: var(--t3); stroke-width: 9; }
.ring-i { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; }
