/* Bunk waitlist. Tokens from the Bunk design system (Foundations board):
   warm charcoal, cream text, one marigold accent, sage for "good". */
:root {
  --bg: #12100d;
  --surface-1: #1a1714;
  --surface-2: #221e1a;
  --hairline: #2e2924;
  --hairline-soft: #26221e;
  --text: #faf7f2;
  --text-2: #ada59a;
  --text-3: #7d756c;
  --marigold: #f5b544;
  --on-marigold: #1a1206;
  --sage: #7bd389;
  --red: #f87171;
  --dot: 255 236 214;
  --radius-input: 12px;
  --radius-card: 16px;
  --radius-sheet: 24px;
  --font: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; } /* headings focused for screen readers */
.num { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

/* Dot patterns: a separate layer, never under body text */
.dots { position: absolute; inset: 0; pointer-events: none; }
.dots-hero {
  background-image: radial-gradient(rgb(var(--dot) / .09) 1px, transparent 1.3px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
}
.dots-band {
  background-image: radial-gradient(rgb(var(--dot) / .22) 1.2px, transparent 1.5px);
  background-size: 12px 12px;
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
}
.dotted-rule {
  height: 2px;
  background-image: radial-gradient(circle, #4a4238 1px, transparent 1.3px);
  background-size: 8px 2px;
}
.dotted-rule.faded {
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

/* Header */
.site-header { border-bottom: 1px solid var(--hairline-soft); position: relative; z-index: 1; }
.header-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.header-link {
  min-height: 44px; display: flex; align-items: center; padding: 0 12px;
  font-size: 15px; color: var(--text-2); text-decoration: none; border-radius: 999px;
}
.header-link:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline-soft); }
.hero-grid {
  position: relative; display: grid; gap: 64px;
  padding-top: 64px; padding-bottom: 80px;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 460px; align-items: center; padding-top: 120px; padding-bottom: 120px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.pill {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--bg); font-size: 13px; color: var(--text-2);
}
.pill-dot { width: 6px; height: 6px; border-radius: 9px; background: var(--marigold); }
h1 {
  font-size: 40px; line-height: 1.1; letter-spacing: -.035em; font-weight: 600; max-width: 720px;
  text-wrap: balance;
}
@media (min-width: 768px) { h1 { font-size: 64px; line-height: 1; letter-spacing: -.045em; } }
@media (min-width: 1280px) { h1 { font-size: 76px; line-height: .98; letter-spacing: -.05em; } }
.lede { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 540px; }
@media (min-width: 768px) { .lede { font-size: 19px; } }

/* Join card */
.join-card {
  margin-top: 8px; max-width: 560px; padding: 20px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-sheet);
}
@media (min-width: 768px) { .join-card { padding: 24px; } }
.join-form { display: flex; flex-direction: column; gap: 16px; }
.segmented {
  margin: 0; padding: 3px; border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--bg); display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 40px; padding: 0 6px; border-radius: 999px;
  font-size: 14px; color: var(--text-2); line-height: 1.25;
}
.segmented input:checked + span { background: var(--marigold); color: var(--on-marigold); font-weight: 600; }
.segmented input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.field-row { display: flex; flex-direction: column; gap: 10px; }
.field-row input {
  flex: none; width: 100%; min-width: 0; height: 52px; padding: 0 16px;
  background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--radius-input);
  font-size: 16px; outline: none;
}
.field-row input::placeholder { color: var(--text-3); }
.field-row input:focus-visible { border-color: var(--text-2); outline: 2px solid #fff; outline-offset: 2px; }
.field-row input[aria-invalid="true"] { border-color: var(--red); }
@media (min-width: 560px) {
  .field-row { flex-direction: row; }
  .field-row input { flex: 1; width: auto; }
}

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--marigold); color: var(--on-marigold);
  font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn-primary:hover { background: #f8c463; }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 1px solid #4d463d; border-radius: 999px;
  background: none; font-size: 15px; font-weight: 500; cursor: pointer;
}
.btn-secondary:hover { background: var(--surface-2); }

.form-note { font-size: 13px; color: var(--text-2); }
.form-error { font-size: 14px; color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.join-done { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.join-done[hidden], .join-form[hidden] { display: none; }
.join-done h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; }
.join-done p { margin-top: 4px; color: var(--text-2); }
.done-art { margin-left: -12px; }

.checks {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--text-2);
}
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 16px; height: 16px; fill: none; stroke: var(--sage); stroke-width: 1.5; flex-shrink: 0; }
.count { font-size: 14px; color: var(--text-2); }
.count strong { color: var(--text); font-weight: 600; }

/* Hero art: listing preview */
.hero-art { position: relative; width: 100%; max-width: 460px; height: 440px; justify-self: center; }
@media (max-width: 1023px) { .hero-art { display: none; } }
.orbit { position: absolute; width: 640px; height: 640px; left: 50%; top: 50%; transform: translate(-46%, -52%); }
.glow {
  position: absolute; right: -80px; top: -60px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 181, 68, .24), transparent 65%);
}
.photo {
  position: absolute; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 196, 120, .22), transparent 45%),
    linear-gradient(160deg, #3b3027, #1f1b16);
}
.photo-back { left: 0; top: 110px; width: 210px; height: 158px; border-radius: var(--radius-card); opacity: .75; }
.photo-main { right: 0; top: 10px; width: 340px; height: 255px; border-radius: 20px; border: 1px solid var(--hairline); }
.shade { position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, .65), transparent); }
.badge {
  position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(18, 15, 12, .8); border: 1px solid #3d372f;
}
.photo-caption { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.photo-caption .t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.photo-caption .m { font-size: 13px; color: var(--text-2); }
.photo-caption .p { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cost-card {
  position: absolute; left: 24px; bottom: 8px; width: 280px; padding: 16px 18px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-card);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px;
}
.cost-row { display: flex; justify-content: space-between; color: var(--text-2); }
.cost-row.total { color: var(--text); font-weight: 600; font-size: 15px; }
.cost-row.total .num { color: var(--marigold); }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--text-2); }
.section-title {
  margin-top: 12px; max-width: 680px;
  font-size: 32px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; text-wrap: balance;
}
@media (min-width: 768px) { .section-title { font-size: 44px; line-height: 1.08; letter-spacing: -.035em; } }

.features { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 64px; } }
.feature {
  padding: 28px; background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-sheet);
  display: flex; flex-direction: column; gap: 12px;
}
.feature-art { margin: -8px 0 12px -10px; opacity: .92; }
.feature h3 { font-size: 18px; line-height: 1.33; letter-spacing: -.015em; font-weight: 600; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--text-2); }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; } }
.steps li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--marigold); }
.steps h3 { font-size: 18px; line-height: 1.33; letter-spacing: -.015em; font-weight: 600; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--text-2); max-width: 340px; }

.broker-band {
  position: relative; overflow: hidden; padding: 40px 24px;
  background: var(--surface-1); border: 1px solid var(--hairline); border-radius: var(--radius-sheet);
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
@media (min-width: 900px) { .broker-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 64px; } }
.broker-copy { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.broker-band h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.03em; font-weight: 600; }
@media (min-width: 768px) { .broker-band h2 { font-size: 40px; line-height: 1.1; } }
.broker-band p { color: var(--text-2); font-size: 16px; line-height: 1.625; }
.broker-band .btn-primary { position: relative; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline-soft); }
.footer-row {
  min-height: 96px; padding-top: 24px; padding-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  font-size: 14px; color: var(--text-2);
}
