/* ==========================================================================
   Haven — landing page
   Tokens and scale follow DESIGN-HANDOFF.md. Desktop is the base;
   the mobile layout takes over below 900px.
   ========================================================================== */

/* Tokens live in tokens.css, shared with the member portal. */


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--terracotta); }

img { max-width: 100%; }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.spacer { flex: 1; }

.frame { margin: 0; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- Shared type ---------------------------------------------------------- */

.eyebrow {
  margin: 0 0 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-lg { font-size: 13px; margin-bottom: 26px; }
.eyebrow.on-green { color: var(--on-green-label); }

.h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.008em;
}

.body { margin: 0; font-size: 16.5px; line-height: 1.65; }
.muted-body { color: var(--warm-gray); }
.on-green-body { color: var(--on-green-body); }

.caption { font-size: 12.5px; color: var(--muted); }

.clamp-14 { max-width: 14ch; }
.clamp-15 { max-width: 15ch; }
.clamp-16 { max-width: 16ch; }
.clamp-30 { max-width: 30ch; }
.clamp-34 { max-width: 34ch; }
.clamp-36 { max-width: 36ch; }
.clamp-52 { max-width: 52ch; text-wrap: pretty; }

.col-copy { flex: 1; min-width: 380px; }

.btn {
  display: inline-block;
  padding: 15px 32px;
  border-radius: 11px;
  background: var(--green);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease;
}
.btn:hover { background: var(--green-hover); color: var(--cream); }

/* --- Nav ------------------------------------------------------------------ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.nav.is-scrolled:not(.is-solid) {
  background: rgba(28, 26, 22, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.nav.is-solid {
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule-light);
}

.nav-inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 30px var(--gutter);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mark {
  width: 23px;
  height: 29px;
  border-radius: 11px 11px 3px 3px;
  background: var(--cream);
  transition: background .35s ease;
}
.nav.is-solid .nav-mark { background: var(--green); }

.nav-word {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
  color: var(--cream);
  transition: color .35s ease;
}
.nav.is-solid .nav-word { color: var(--ink); }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-bottom: 4px;
  color: var(--cream);
  border-bottom: 1px solid rgba(250, 247, 242, 0.45);
  transition: color .35s ease, border-color .35s ease, background .35s ease;
}
.nav-link:hover { color: var(--cream); }
.nav.is-solid .nav-link {
  color: var(--green);
  border-bottom-color: rgba(47, 93, 80, 0.45);
}
.nav.is-solid .nav-link:hover { color: var(--terracotta); }
.nav-link-mobile { display: none; }

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  width: 100%;
  height: 820px;
  overflow: hidden;
  animation: rise .35s ease both;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(28, 26, 22, 0.56) 0%,
    rgba(28, 26, 22, 0.46) 40%,
    rgba(28, 26, 22, 0.50) 100%);
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--gutter);
}
.hero-content h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 74px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--cream);
}
.hero-content p {
  margin: 0 0 36px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  color: #F2EFE9;
  max-width: 30ch;
  text-wrap: pretty;
}

/* Ticker */
.ticker {
  position: absolute;
  left: 0; right: 0;
  bottom: 118px;
  height: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.ticker-track {
  display: flex;
  gap: 14px;
  align-items: center;
  height: 48px;
  will-change: transform;
  transition: transform 1.5s cubic-bezier(.33, .68, .35, 1);
}
.ticker-track.no-anim { transition: none; }

.pill {
  flex: none;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 0 10px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: .82;
  transition: background .6s ease, border-color .6s ease, opacity .6s ease;
}
.pill.is-active {
  background: rgba(250, 247, 242, 0.14);
  border-color: rgba(250, 247, 242, 0.30);
  opacity: 1;
}
.pill.is-done { opacity: .6; }

.pill-mark {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(250, 247, 242, 0.30);
  color: transparent;
  transform: scale(.92);
  transition: background .45s ease, border-color .45s ease, color .45s ease,
              transform .45s cubic-bezier(.34, 1.56, .64, 1);
}
.pill.is-done .pill-mark {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
  transform: scale(1);
}

.pill-icon {
  flex: none;
  display: flex;
  /* The SVGs stroke with currentColor, so this is what makes them white */
  color: var(--cream);
  opacity: 1;
  transition: opacity .5s ease;
}
.pill-icon svg { display: block; width: 20px; height: 20px; }
.pill.is-done .pill-icon { opacity: .6; }

.pill-label {
  font-size: 19px;
  line-height: 1;
  letter-spacing: -0.004em;
  white-space: nowrap;
  color: var(--cream);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: transparent;
  transition: color .5s ease, text-decoration-color .5s ease;
}
.pill.is-done .pill-label {
  color: rgba(242, 239, 233, 0.62);
  text-decoration-color: rgba(143, 176, 164, 0.9);
}

/* --- What is Haven -------------------------------------------------------- */

.section-intro { padding-top: 76px; }
.lead {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  max-width: 640px;
  text-wrap: pretty;
}

/* --- Pillars -------------------------------------------------------------- */

.pillars {
  padding-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}
.pillar { border-top: 1px solid var(--rule); padding-top: 26px; }
.pillar-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
}
.pillar-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 28ch;
  text-wrap: pretty;
}

/* --- Green bands ---------------------------------------------------------- */

.band {
  margin-top: 112px;
  background: var(--green);
  color: var(--cream);
}
.band-todo { margin-top: 132px; }
.band-inner {
  padding-top: 112px;
  padding-bottom: 112px;
  display: flex;
  gap: 96px;
  align-items: center;
  flex-wrap: wrap;
}

/* Concierge thread */
.thread {
  flex: none;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.thread-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--green-hairline);
}
.avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
}
.thread-name { margin: 0; font-size: 15px; }
.thread-caption { margin: 0; font-size: 12.5px; color: var(--on-green-label); }
.thread-body { display: flex; flex-direction: column; gap: 14px; }

.row-left { display: flex; justify-content: flex-start; }
.row-right { display: flex; justify-content: flex-end; }

.bubble {
  max-width: 82%;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.bubble.you {
  border-radius: 14px 14px 4px 14px;
  background: var(--cream);
  color: var(--ink);
}
.bubble.them {
  border-radius: 14px 14px 14px 4px;
  background: rgba(250, 247, 242, 0.12);
  color: var(--on-green-list);
}

/* --- Credits -------------------------------------------------------------- */

.split {
  padding-top: 132px;
  display: flex;
  gap: 96px;
  align-items: center;
  flex-wrap: wrap;
}
.mb-credits { margin-bottom: 40px; }
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule-light);
}
.service-name { flex: 1; font-size: 15px; }
.service-credits { flex: none; font-size: 14px; color: var(--green); }
.caption-credits { margin: 22px 0 0; }

.credits-images {
  flex: none;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.frame-credit { height: 280px; }

/* --- To-do list ----------------------------------------------------------- */

.mb-todo { margin-bottom: 40px; }
.todo-list { display: flex; flex-direction: column; max-width: 440px; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--green-hairline);
}
.dot {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.dot.done { background: var(--cream); color: var(--green); }
.dot.open { border: 1px solid rgba(250, 247, 242, 0.35); color: transparent; }
.todo-task { flex: 1; font-size: 15px; line-height: 1.5; color: var(--on-green-list); }
.todo-status { flex: none; font-size: 12.5px; color: var(--on-green-label); }

.frame-arch { flex: none; width: 380px; height: 560px; }

/* --- Member offers -------------------------------------------------------- */

.offers { padding-top: 132px; }
.nowrap-desktop { white-space: nowrap; }
.mb-offers { margin-bottom: 56px; }
.frame-neighborhood { height: 460px; margin-bottom: 56px; }
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.offer { border-top: 1px solid var(--rule); padding-top: 22px; }
.offer-name { margin: 0 0 7px; font-size: 15.5px; font-weight: 600; }
.offer-perk { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--warm-gray); }

/* --- Image pair ----------------------------------------------------------- */

.pair {
  margin-top: 132px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}
.frame-pair { height: 420px; }

/* --- Membership ----------------------------------------------------------- */

.join-wrap { padding-top: 132px; }
.join {
  display: flex;
  gap: 96px;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  padding-top: 56px;
}
.join .col-copy { min-width: 340px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.price {
  font-family: var(--serif);
  font-size: 80px;
  letter-spacing: -0.005em;
  line-height: 1;
}
.price-unit { font-size: 15px; color: var(--muted); }
.mb-join { margin-bottom: 34px; font-size: 16px; }

.includes { flex: 1; min-width: 320px; display: flex; flex-direction: column; }
.include {
  padding: 15px 0;
  border-bottom: 1px solid var(--rule-light);
  font-size: 15px;
  line-height: 1.5;
}

/* --- Footer --------------------------------------------------------------- */

.footer { margin-top: 120px; border-top: 1px solid var(--rule-light); }
.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-mark {
  width: 15px;
  height: 19px;
  border-radius: 8px 8px 2px 2px;
  background: var(--green);
}
.footer-word { font-family: var(--serif); font-size: 19px; line-height: 1; }
.footer-tagline { font-size: 12.5px; color: var(--muted); }

/* --- Sticky CTA bar (mobile only) ----------------------------------------- */

.sticky-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 29;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .4s cubic-bezier(.33, .68, .35, 1), opacity .3s ease;
}
.sticky-bar.is-visible { transform: translateY(0); opacity: 1; }
.sticky-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px calc(26px + env(safe-area-inset-bottom));
  background: rgba(250, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule-light);
}
.sticky-copy { flex: 1; min-width: 0; }
.sticky-price { margin: 0; font-size: 15px; font-weight: 600; }
.sticky-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.btn-sticky { flex: none; padding: 14px 22px; font-size: 14.5px; }

/* ==========================================================================
   Mobile — below 900px
   ========================================================================== */

@media (max-width: 899px) {
  :root { --gutter: 22px; }

  .h2 { font-size: 38px; margin-bottom: 14px; }
  .body { font-size: 16px; }
  .col-copy { min-width: 0; width: 100%; }
  .clamp-14, .clamp-15, .clamp-16, .clamp-30, .clamp-34, .clamp-36, .clamp-52 { max-width: none; }
  .nowrap-desktop { white-space: normal; }
  .eyebrow, .eyebrow-lg { font-size: 11px; margin-bottom: 18px; }

  /* The sticky bar carries the same CTA on mobile, so the inline one is dropped */
  .btn-join { display: none; }

  /* Nav */
  .nav { z-index: 30; }
  .nav-inner { padding: 16px var(--gutter); gap: 9px; }
  .nav-mark { width: 18px; height: 23px; }
  .nav-word { font-size: 25px; }
  .nav-link-desktop { display: none; }
  .nav-link-mobile { display: inline; }
  .nav-link {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(250, 247, 242, 0.45);
    background: rgba(250, 247, 242, 0.14);
  }
  .nav.is-solid .nav-link {
    background: var(--green);
    border-color: var(--green);
    color: var(--cream);
  }
  .nav.is-scrolled:not(.is-solid) { background: rgba(28, 26, 22, 0.10); }

  /* Hero */
  .hero { height: 640px; }
  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(28, 26, 22, 0.52) 0%,
      rgba(28, 26, 22, 0.42) 38%,
      rgba(28, 26, 22, 0.58) 100%);
  }
  .hero-content { padding: 0 26px 90px; }
  .hero-content h1 { font-size: 46px; line-height: 1.05; margin-bottom: 16px; white-space: normal; }
  .hero-content p { font-size: 17px; max-width: 26ch; margin-bottom: 0; }

  .ticker {
    bottom: 72px;
    height: 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }
  .ticker-track { gap: 10px; height: 40px; }
  .pill { height: 40px; gap: 10px; padding: 0 18px 0 8px; }
  .pill-mark { width: 24px; height: 24px; font-size: 12px; }
  .pill-icon svg { width: 17px; height: 17px; }
  .pill-label { font-size: 15.5px; }

  /* Intro + pillars */
  .section-intro { padding-top: 52px; }
  .lead { font-size: 19px; }
  .pillars { padding-top: 40px; grid-template-columns: 1fr; gap: 30px; }
  .pillar { padding-top: 20px; }
  .pillar-title { font-size: 24px; margin-bottom: 9px; }
  .pillar-body { font-size: 15px; line-height: 1.65; max-width: none; }

  /* Bands */
  .band, .band-todo { margin-top: 72px; }
  .band-inner {
    padding-top: 64px;
    padding-bottom: 64px;
    display: block;
  }
  .band-todo .band-inner { padding-bottom: 56px; }

  .thread { width: 100%; margin-top: 36px; }
  .thread-head { gap: 11px; padding-bottom: 16px; }
  .avatar { width: 36px; height: 36px; font-size: 16px; }
  .thread-caption { font-size: 12px; }
  .thread-body { gap: 12px; padding-top: 16px; }
  .bubble { max-width: 84%; }

  /* Credits */
  .split { padding-top: 64px; display: block; }
  .mb-credits { margin-bottom: 26px; }
  .service-row { padding: 15px 0; gap: 14px; }
  .service-credits { font-size: 13.5px; }
  .caption-credits { margin-top: 18px; }
  .credits-images {
    width: 100%;
    flex-direction: row;
    gap: 12px;
    margin-top: 32px;
  }
  .credits-images .frame { flex: 1; }
  .frame-credit { height: 210px; }

  /* To-do: image drops below the copy, full-bleed within the band */
  .band-todo .band-inner { padding-bottom: 0; }
  .band-todo .col-copy { padding-bottom: 56px; }
  .mb-todo { margin-bottom: 30px; }
  .todo-list { max-width: none; }
  .todo-row { gap: 12px; padding: 14px 0; }
  .todo-task { font-size: 14.5px; line-height: 1.45; }
  .todo-status { font-size: 12px; }
  .frame-arch {
    width: calc(100% + (2 * var(--gutter)));
    margin-left: calc(-1 * var(--gutter));
    height: 300px;
  }

  /* Offers */
  .offers { padding-top: 64px; }
  .mb-offers { margin-bottom: 30px; }
  .frame-neighborhood { height: 280px; margin-bottom: 30px; }
  .offer-grid { grid-template-columns: 1fr; gap: 22px; }
  .offer { padding-top: 18px; }

  /* Pair */
  .pair { margin-top: 52px; gap: 12px; }
  .frame-pair { height: 230px; }

  /* Membership */
  .join-wrap { padding-top: 64px; }
  .join { display: block; padding-top: 36px; }
  .price { font-size: 62px; }
  .price-unit { font-size: 14px; }
  .price-row { gap: 9px; margin-bottom: 12px; }
  .mb-join { font-size: 15.5px; margin-bottom: 26px; }
  .include { padding: 14px 0; }

  /* Footer clears the sticky bar */
  .footer { margin-top: 64px; }
  .footer-inner { padding-top: 28px; padding-bottom: 120px; gap: 10px; }
  .footer-mark { width: 14px; height: 18px; }
  .footer-word { font-size: 18px; }
  .footer-tagline { font-size: 12px; }

  .sticky-bar { display: block; }
}

/* ==========================================================================
   Reduced motion — ticker renders static, entrances and slides are removed
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .ticker-track { transition: none; }
  .pill, .pill-mark, .pill-icon, .pill-label { transition: none; }
  .sticky-bar { transition: none; }
}

/* ==========================================================================
   Waitlist page
   Desktop: copy column left, full-height image right. Mobile: copy, then image.
   ========================================================================== */

.page-waitlist { min-height: 100vh; display: flex; flex-direction: column; }

.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand:hover .nav-word { color: var(--ink); }

.waitlist {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 96px;
  max-width: var(--column);
  margin: 0 auto;
  padding: 178px var(--gutter) 120px;
  width: 100%;
}

.waitlist-copy { max-width: 440px; }

.waitlist-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.waitlist-sub {
  margin: 0 0 44px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--warm-gray);
  text-wrap: pretty;
}

/* Fields */

.field { display: flex; flex-direction: column; margin-bottom: 26px; }

.field label {
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 13px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  transition: border-color .25s ease;
}
.field input:focus {
  outline: none;
  border-bottom-color: var(--green);
}
.field input:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
.field input.is-invalid { border-bottom-color: var(--terracotta); }

.field-hint { margin: 9px 0 0; font-size: 12.5px; color: var(--muted); }

/* Honeypot — off-screen rather than display:none, which bots skip */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--terracotta);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  padding: 17px 24px;
  border-radius: 11px;
  border: none;
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
}
.btn-block[disabled] { opacity: .6; cursor: default; }

.form-note {
  margin: 18px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Success state */

.waitlist-done { padding-top: 4px; }
.done-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-size: 17px;
}
.done-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.1;
}
.done-body {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--warm-gray);
  max-width: 34ch;
}
.done-back {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(47, 93, 80, 0.45);
  padding-bottom: 4px;
}

/* Image */

.waitlist-image {
  margin: 0;
  overflow: hidden;
  height: 620px;
}
.waitlist-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 899px) {
  .waitlist {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 96px var(--gutter) 64px;
  }
  .waitlist-copy { max-width: none; }
  .waitlist-title { font-size: 42px; }
  .waitlist-sub { font-size: 16px; margin-bottom: 36px; }
  .done-title { font-size: 32px; }
  /* arch.jpeg is a 2:3 vertical — a short letterbox band crops the archway
     out entirely, so give it a portrait frame and bias toward the arch. */
  .waitlist-image {
    height: auto;
    aspect-ratio: 4 / 5;
    width: calc(100% + (2 * var(--gutter)));
    margin-left: calc(-1 * var(--gutter));
  }
  .waitlist-image img { object-position: center 40%; }
  /* The waitlist page has no sticky bar to clear */
  .page-waitlist .footer-inner { padding-bottom: 28px; }

  /* "Back to site" / "Sign out" are secondary — plain links, not the CTA pill */
  .page-waitlist .nav.is-solid .nav-link,
  .page-admin .nav.is-solid .nav-link {
    padding: 0 0 4px;
    border: none;
    border-bottom: 1px solid rgba(47, 93, 80, 0.45);
    border-radius: 0;
    background: transparent;
    font-weight: 500;
    color: var(--green);
  }
}

/* ==========================================================================
   Admin — private waitlist view
   ========================================================================== */

.page-admin { min-height: 100vh; display: flex; flex-direction: column; }
.page-admin main { flex: 1; }

.admin {
  max-width: var(--column);
  margin: 0 auto;
  padding: 178px var(--gutter) 120px;
  width: 100%;
}

.admin-login { max-width: 380px; }

.admin-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 50px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.008em;
}

.admin-sub {
  margin: 0 0 40px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--warm-gray);
}

/* Sign out sits in the nav and must look like the other nav links */
.nav-signout {
  border: none;
  border-bottom: 1px solid rgba(47, 93, 80, 0.45);
  background: none;
  font-family: var(--sans);
  cursor: pointer;
}

/* Invitations
   A bordered card rather than a bare form: it is a different act from reading
   the waitlist, and on a page that is otherwise one long table an unframed
   form reads as part of the table's header. */

.invite-card {
  margin-bottom: 56px;
  padding: 28px 30px 30px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #FFFDF9;
}
.invite-head { margin-bottom: 22px; }
.invite-title {
  margin: 6px 0 6px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.invite-sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--warm-gray); }

/* Three fields and a button on one line at desk width, stacked below it. The
   button sits on the baseline of the inputs, not of the labels above them. */
.invite-form {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr auto;
  gap: 16px;
  align-items: end;
}
.invite-form .field { margin-bottom: 0; }
/* Labels are left to the site's own .field rule — the uppercase eyebrow the
   waitlist form uses. This form should look like that one, not like a second
   house style on the same page. The "optional" note steps out of it, because
   at 11px uppercase it would otherwise read as part of the field's name. */
.label-note {
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
  font-style: italic;
  color: var(--muted);
}
.invite-form input,
.invite-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}
.invite-form input:focus,
.invite-form select:focus { outline: 2px solid var(--green); outline-offset: -1px; border-color: transparent; }
.invite-form .btn { width: auto; white-space: nowrap; padding: 12px 22px; }

.invite-card .form-error { margin: 18px 0 0; }

.invite-result {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-light);
}
.invite-for { margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.invite-link-row { display: flex; gap: 10px; }
.invite-link {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: var(--cream);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--green);
}
.invite-note { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--warm-gray); }

/* A waitlist row fills the form in when clicked. */
.row-invitable { cursor: pointer; }
.row-invitable:hover td { background: #FBF8F3; }

/* Header row */

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.admin-head .admin-title { margin-bottom: 0; }

.admin-actions { display: flex; align-items: center; gap: 12px; }

.admin-search {
  width: 260px;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .25s ease;
}
.admin-search::placeholder { color: var(--muted); }
.admin-search:focus { outline: none; border-color: var(--green); }

.btn-quiet {
  padding: 11px 18px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
}
.btn-quiet:hover {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}

/* Table */

.table-scroll { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.admin-table th {
  padding: 0 16px 14px 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.admin-table td {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: baseline;
}
.admin-table tr:last-child td { border-bottom: none; }
.cell-date { color: var(--warm-gray); font-size: 14px; white-space: nowrap; }
.cell-email { color: var(--green); }

.admin-empty {
  margin: 40px 0 0;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 899px) {
  .invite-card { padding: 22px 20px 24px; }
  .invite-form { grid-template-columns: 1fr; }
  .invite-form .btn { width: 100%; }
  .invite-link-row { flex-direction: column; }
  .invite-link-row .btn-quiet { width: 100%; }
  .admin { padding: 96px var(--gutter) 64px; }
  .admin-title { font-size: 38px; }

  .admin-head {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    margin-bottom: 28px;
  }
  .admin-actions { flex-direction: column; align-items: stretch; }
  .admin-search { width: 100%; }
  .btn-quiet { width: 100%; }

  /* A four-column table can't breathe on a phone, so each signup becomes a
     stacked card: name, email, then joined date and ZIP as a meta line. */
  .table-scroll { overflow-x: visible; }
  .admin-table thead { display: none; }
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td { display: block; width: 100%; }

  .admin-table tr {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    border-top: 1px solid var(--rule-light);
  }
  .admin-table tr:first-child { border-top: 1px solid var(--rule); }
  .admin-table td { padding: 0; border: none; }

  .admin-table td:nth-child(2) { order: 1; font-size: 16px; margin-bottom: 3px; }
  .admin-table td:nth-child(3) { order: 2; font-size: 14.5px; }
  .admin-table td:nth-child(1) { order: 3; margin-top: 9px; font-size: 13px; }
  .admin-table td:nth-child(4) { order: 4; margin-top: 2px; font-size: 13px; color: var(--muted); }
  .admin-table td:nth-child(4)::before { content: 'ZIP '; }
}
