/* Paper theme, from design/tokens.json */
:root {
  --bg: #f7f1e6;
  --bg-alt: #e9e1d3;
  --ink: #1f1a14;
  --ink-2: #5b5145;
  --coral: #ff6b4a;
  --yellow: #ffcf4a;
  --mint: #7bd3c0;
  --lilac: #b9a6ff;
  --border: 3px;
  --shadow: 5px;
  --btn-radius: 8px;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--yellow); border: var(--border) solid var(--ink); padding: 8px 12px; font-weight: 700; z-index: 10;
}
.skip:focus { top: 16px; }

/* Cards and buttons: hard border, offset shadow, no blur */
.card {
  background: var(--bg);
  border: var(--border) solid var(--ink);
  box-shadow: var(--shadow) var(--shadow) 0 var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  background: var(--coral); color: var(--ink);
  border: var(--border) solid var(--ink); border-radius: var(--btn-radius);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { background: var(--bg-alt); cursor: progress; transform: none; box-shadow: 4px 4px 0 var(--ink); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; text-decoration: none; letter-spacing: -0.02em; }
.wordmark-sm { font-size: 1.5rem; }
.top-link { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 24px; padding-bottom: 72px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr 0.9fr; padding-top: 40px; padding-bottom: 96px; } }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--yellow); border: 2px solid var(--ink); padding: 4px 10px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.75rem, 9vw, 5.25rem); margin-bottom: 20px; }
.lede { font-size: 1.1875rem; max-width: 34em; margin-bottom: 32px; }

/* Waitlist form */
.join, .joined { padding: 24px; max-width: 560px; }
@media (min-width: 720px) { .join, .joined { padding: 28px 32px 32px; } }
.join-title { font-size: 1.75rem; margin-bottom: 6px; }
.join-sub { color: var(--ink-2); margin-bottom: 20px; }

.row { display: grid; gap: 0 16px; }
@media (min-width: 540px) { .row { grid-template-columns: 1fr 1fr; } }

.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }

input[type="email"], input[type="text"], select {
  width: 100%; min-height: 50px; padding: 10px 14px;
  font: 400 1.0625rem/1.3 var(--body); color: var(--ink);
  background: #fffaf1; border: var(--border) solid var(--ink); border-radius: var(--btn-radius);
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--coral); }

.field-error, .status-error {
  margin-top: 8px; font-weight: 700; color: var(--ink);
  padding-left: 12px; border-left: 4px solid var(--coral);
}
.status { margin-top: 14px; min-height: 1.55em; }
.status:empty { margin-top: 0; min-height: 0; }

.join .btn { width: 100%; margin-top: 4px; }
@media (min-width: 540px) { .join .btn { width: auto; } }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined { background: var(--yellow); }
.joined:focus { outline: none; }
.joined:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.joined-burst { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.joined-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }

/* Hero illustration: two phones meeting */
.hero-art { position: relative; height: 380px; max-width: 420px; width: 100%; margin: 0 auto; }
@media (min-width: 960px) { .hero-art { height: 480px; } }
.phone {
  position: absolute; top: 20px; width: 52%; height: 88%;
  background: var(--ink); border-radius: 28px; padding: 9px;
  box-shadow: var(--shadow) var(--shadow) 0 rgba(31, 26, 20, 0.25);
}
.phone-left { left: 2%; transform: rotate(-8deg); }
.phone-right { right: 2%; transform: rotate(8deg); animation: nudge 3.2s ease-in-out infinite; }
.screen {
  height: 100%; border-radius: 20px; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 16px; position: relative;
}
.screen-hot { background: var(--coral); }
.screen-mark { position: absolute; top: 18px; font-family: var(--display); font-weight: 800; font-size: 1.125rem; }
.screen-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 4.5vw, 1.75rem); line-height: 1.05; }
.screen-hint { font-size: 0.8125rem; color: var(--ink-2); }
.dots { display: flex; }
.dots i { width: 34px; height: 34px; border-radius: 50%; border: var(--border) solid var(--ink); margin-left: -8px; }
.dots i:first-child { margin-left: 0; background: var(--yellow); }
.dots i:nth-child(2) { background: var(--mint); }
.dots i:nth-child(3) { background: var(--lilac); }
.spark {
  position: absolute; left: 50%; top: 42%; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: var(--yellow); border: var(--border) solid var(--ink);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes nudge {
  0%, 70%, 100% { transform: rotate(8deg) translateX(0); }
  78% { transform: rotate(8deg) translateX(-10px); }
  86% { transform: rotate(8deg) translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .phone-right { animation: none; } }

/* Sections */
section h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 16px; }
.section-lede { font-size: 1.1875rem; max-width: 36em; margin-bottom: 32px; }

.how { background: var(--bg-alt); border-top: var(--border) solid var(--ink); border-bottom: var(--border) solid var(--ink); padding: 72px 0; }
.how h2 { margin-bottom: 32px; }
.steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 24px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; }
.step h3, .promise h3, .group h3 { font-size: 1.5rem; margin-bottom: 8px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 16px;
  border: var(--border) solid var(--ink); border-radius: 50%; background: var(--yellow);
  font-family: var(--display); font-weight: 800; font-size: 1.375rem;
}
.step:nth-child(2) .step-n { background: var(--mint); }
.step:nth-child(3) .step-n { background: var(--coral); }
.group { padding: 24px; background: var(--yellow); }
.group p { max-width: 44em; }

.privacy { padding-top: 72px; padding-bottom: 72px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
@media (min-width: 720px) { .promises { grid-template-columns: repeat(2, 1fr); } }
.promise { padding: 24px; border-left-width: 12px; }
.promise:nth-child(1) { border-left-color: var(--coral); }
.promise:nth-child(2) { border-left-color: var(--yellow); }
.promise:nth-child(3) { border-left-color: var(--mint); }
.promise:nth-child(4) { border-left-color: var(--lilac); }
.promise p, .step p { color: var(--ink-2); }

.cta { text-align: center; padding-top: 24px; padding-bottom: 88px; }
.cta h2 { margin-bottom: 24px; }

/* Footer */
.foot { border-top: var(--border) solid var(--ink); padding: 28px 0; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { font-weight: 500; text-underline-offset: 4px; }

/* Simple text pages (terms, privacy) */
.page { padding-top: 24px; padding-bottom: 88px; max-width: 720px; }
.page h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); margin-bottom: 20px; }
.page p { margin-bottom: 16px; }
