/* Visual layer for the existing /join and /welcome flow.
   The original signup styles and all form/confirmation scripts remain intact. */
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-500-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f8f5f0;
  --surface: #fffdfa;
  --surface2: #e8eee7;
  --line: rgba(29, 51, 43, .19);
  --line-soft: rgba(29, 51, 43, .10);
  --text: #1d332b;
  --text-dim: #54665b;
  --gold: #c4386b;
  --gold-wash: rgba(199, 51, 107, .12);
  --btn: #c7336b;
  --btn-ink: #fff;
  --danger: #ab304b;
  --danger-wash: #fce8ec;
  --ok: #327657;
  --track: #dfebdf;
  --glass: #18352c;
  --glass-line: rgba(255, 255, 255, .16);
  --on-photo: #fffdf8;
  --on-photo-dim: #d7e9db;
  --photo-gold: #f7bad0;
  --sans: "DM Sans", sans-serif;
  --mono: "DM Sans", sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg: #f8f5f0;
    --surface: #fffdfa;
    --surface2: #e8eee7;
    --line: rgba(29, 51, 43, .19);
    --line-soft: rgba(29, 51, 43, .10);
    --text: #1d332b;
    --text-dim: #54665b;
    --gold: #c4386b;
    --gold-wash: rgba(199, 51, 107, .12);
    --btn: #c7336b;
    --btn-ink: #fff;
    --danger: #ab304b;
    --danger-wash: #fce8ec;
    --ok: #327657;
    --track: #dfebdf;
  }
}

html { scroll-behavior: smooth; }
body { background: var(--bg); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.045em; }
em.g, .perk-big em { font-family: "Playfair Display", Georgia, serif; font-weight: 400; }
:focus-visible { outline-color: #c7336b; }

/* Navigation */
.top {
  top: 0;
  background: rgba(248, 245, 240, .97);
  border-bottom-color: rgba(29, 51, 43, .13);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.top .wrap { min-height: 76px; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; width: 112px; height: 64px; flex: none; }
.wordmark img { width: 112px; height: 64px; object-fit: contain; }
.top nav { gap: clamp(16px, 2.25vw, 32px); font-weight: 700; font-size: 14px; }
.top nav a:hover { color: var(--gold); }
.launch-chip { border-color: var(--line); color: var(--text); font-size: 12px; font-weight: 700; }
.launch-chip .dot { background: var(--gold); box-shadow: none; }
.lang select { background: #fffdfa; font-weight: 700; min-height: 38px; }
.welcome-join { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.welcome-join:hover { border-color: var(--gold); color: var(--gold); }
.welcome-support { color: var(--text-dim); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.welcome-support:hover { color: var(--gold); }

/* Join hero */
.hero {
  color: #fffaf5;
  background: linear-gradient(112deg, #215f49 0%, #347b5d 58%, #63a57d 100%);
  padding-block: clamp(48px, 6vw, 84px) clamp(68px, 8vw, 112px);
  border-bottom: 7px solid #df6189;
}
.hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(36px, 5.5vw, 84px); }
.hero-copy { gap: 28px; }
.hero .eyebrow { color: #f0a8c0; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.hero .eyebrow::before { width: 26px; }
.hero h1 { max-width: 12ch; font-size: clamp(42px, 4.95vw, 70px); line-height: 1.05; }
.hero h1 em { color: #ef9fbd; }
.hero .lede { max-width: 62ch; color: #e6eee7; font-size: clamp(16px, 1.45vw, 18px); line-height: 1.6; }
.hero .countdown { gap: 8px; margin: 1px 0 4px; }
.hero .cd-cell { min-width: 78px; padding: 12px 16px 8px; border-radius: 8px; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.08); }
.hero .cd-cell .num { color: white; font-size: 28px; font-weight: 700; }
.hero .cd-cell small, .hero .cd-note { color: #d8e4d9; }
.hero .cd-note { font-size: 13px; }
.hero .card { color: var(--text); margin-top: 4px; }
.card { border-radius: 20px; border-color: #e3e8df; padding: clamp(24px, 3vw, 36px); box-shadow: 0 18px 50px rgba(17, 43, 33, .12); }
.card h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.16; }
.card .sub { margin-top: 8px; line-height: 1.55; }
.field > label, .field > .flabel { font-size: 14px; font-weight: 700; color: var(--text); }
.field input[type="text"], .field input[type="email"], .field input[type="password"] { border-radius: 8px; background: #fff; border-color: #cdd9cc; }
.field input:focus { border-color: #c7336b; }
.dob input[type="text"] { border-radius: 8px; }
.age-read { border-radius: 8px; }
.seg { border-radius: 12px; background: #f5f7f2; }
.seg label { border-radius: 8px; }
.check input { background: #fff; border-color: #889b8e; }
.btn { font-weight: 700; box-shadow: 0 9px 20px rgba(169, 38, 85, .15); }
.btn:hover { opacity: 1; background: #bc3768; }
.btn.ghost:hover { background: #f6eaf0; }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line); }
/* Keep the primary signup action legible even when mobile form controls are restyled. */
#signup #submitBtn {
  -webkit-appearance: none;
  appearance: none;
  min-height: 56px;
  background: #c7336b;
  border: 1px solid #b92f60;
  color: #fff;
  box-shadow: 0 9px 22px rgba(169, 38, 85, .22);
}
#signup #submitBtn:hover { background: #bc3768; }
#signup #submitBtn:disabled { background: #aa3a63; color: #fff; opacity: 1; }
.fine { line-height: 1.55; }
.mail-ic { border-radius: 12px; }

/* Real photography and founding pass */
.photo {
  position: sticky;
  top: 104px;
  align-self: start;
  aspect-ratio: 4 / 5.2;
  border-radius: 20px;
  background: #27292a;
  box-shadow: 0 24px 55px rgba(8, 22, 16, .27);
}
.photo img { object-position: center 48%; }
.photo > img.profile-portrait { transition: opacity .42s ease; }
.photo.is-changing > img.profile-portrait,
.photo.is-changing .pass-name,
.photo.is-changing #passCity { opacity: 0; }
.photo .pass-name, .photo #passCity { transition: opacity .32s ease; }
.photo::after { background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, .52) 100%); }
.photo-tag { top: 22px; left: 22px; border: 0; border-radius: 8px; padding: 8px 12px; background: #fffdfa; color: #1d332b; backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 700; }
.pass { border-radius: 12px; background: #1d332b; border-color: rgba(255,255,255,.14); backdrop-filter: none; -webkit-backdrop-filter: none; }
.photo .pass {
  left: 22px;
  right: 22px;
  bottom: 22px;
  background: rgba(64, 66, 68, .68);
  border-color: rgba(255, 255, 255, .28);
}
.pass.solid { background: #1d332b; }
.pass-top .plabel, .pass-grid b { font-weight: 700; }
.premium-chip { background: #f6c1d3; color: #60253d; }
.pass-name { font-weight: 700; }

/* Editorial sections */
section.block { border-top: 0; padding-block: clamp(68px, 8vw, 108px); }
.block:nth-of-type(odd) { background: #fffdfa; }
#cities { background: #e6ede5; }
#next { background: #f8f5f0; }
.block:has(.facts) { background: #fffdfa; }
#faq { background: #f8f5f0; }
.shead { gap: 16px; }
.shead h2, .closer h2 { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.08; }
.shead p { line-height: 1.58; }
.eyebrow { color: #be386b; font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.perk-big { font-weight: 700; letter-spacing: -.07em; color: #1d332b; }
.perk-big em { color: #c7336b; }
.perks li { border-color: #c7336b; padding-top: 20px; }
.perks h3, .steps h3, .fact h3 { font-size: 19px; }
.bar i { background: #c7336b; }
.steps li::before { font-weight: 700; }
.steps .when { font-weight: 700; }
.facts { border: 0; border-radius: 0; gap: 12px; background: transparent; }
.fact { padding: 28px; border: 1px solid #e1e9de; border-radius: 12px; background: #f8faf6; }
.fact svg { width: 27px; height: 27px; }
main summary { font-weight: 700; }
section.block:last-of-type { color: #fffaf5; background: #1d332b; }
.closer h2 { max-width: 19ch; }
.closer h2 em { color: #f1a8c1; }
.closer .btn { align-self: center; }

/* Confirmation page */
.solo {
  min-height: calc(100vh - 76px);
  padding-block: clamp(52px, 8vw, 100px);
  background: linear-gradient(135deg, #e4ede4 0%, #f8f5f0 48%, #f9e9ef 100%);
}
.solo .card { max-width: 650px; border-top: 6px solid #c7336b; padding: clamp(28px, 4vw, 48px); }
.solo .card h2 { font-size: clamp(27px, 3.1vw, 38px); }
.solo .state { gap: 24px; }
.solo .pass { padding: 24px; }
.launchday { border-radius: 12px; background: #f8faf6; }
.launchday li { padding: 16px; }
.launchday b { font-weight: 700; }
.copyrow code { background: #f5f7f2; }

/* Full site footer with every policy route */
footer { padding: 64px 0 28px; background: #172f26; color: #d5e3d6; border: 0; }
footer .flow-footer-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 40px 36px; }
.flow-footer-main .footer-brand { grid-row: span 2; }
.flow-footer-main .brand { display: block; width: 122px; margin-bottom: 12px; }
.flow-footer-main .brand img { width: 122px; height: auto; filter: brightness(0) invert(1); }
.flow-footer-main .footer-brand p { max-width: 24ch; font-size: 16px; color: #fff; margin-bottom: 20px; }
.flow-footer-main .footer-company { display: block; color: #fff; font-weight: 700; }
.flow-footer-main address { font-style: normal; margin-top: 8px; }
.flow-footer-main .footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; font-size: 14px; }
.flow-footer-main .footer-group h2 { font-size: 13px; color: #fff; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 4px; }
.flow-footer-main .footer-group a { color: #d5e3d6; text-decoration: none; overflow-wrap: anywhere; line-height: 1.4; }
footer a:hover, .flow-footer-main .footer-group a:hover { color: #f5a7bf; }
footer .flow-footer-bottom { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.17); }
footer .flow-footer-bottom nav { gap: 8px 20px; }

@media (max-width: 1020px) {
  .top nav { display: none; }
  footer .flow-footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-footer-main .footer-brand { grid-row: auto; }
}
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .photo { position: relative; top: auto; max-width: 620px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 4.4; }
}
@media (max-width: 660px) {
  .top .wrap { min-height: 64px; gap: 8px; }
  .wordmark, .wordmark img { width: 92px; height: 55px; }
  .launch-chip { display: none; }
  .hero h1 { font-size: clamp(40px, 10vw, 58px); }
  .hero { padding-top: 44px; }
  .hero .cd-cell { flex: 1 1 70px; min-width: 0; }
  .hero .cd-note { flex-basis: 100%; }
  .photo { max-width: 500px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  footer .flow-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .flow-footer-main .footer-brand { grid-column: 1 / -1; }
  footer .flow-footer-bottom { margin-top: 44px; }
}
@media (max-width: 420px) {
  .top .wrap { padding-inline: 16px; }
  .top-right { gap: 8px; }
  .welcome-join { padding-inline: 12px; }
  .lang select { max-width: 116px; padding-left: 12px; }
  .welcome-page .welcome-support { font-size: 13px; }
  .welcome-page .lang select { max-width: 88px; padding-left: 8px; }
  .hero .cd-cell { padding-inline: 12px; }
  .hero .cd-cell .num { font-size: 24px; }
  .photo { aspect-ratio: 4 / 5.2; }
  .photo .pass { left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .pass-grid { gap: 4px; }
  .pass-grid b { font-size: 13px; }
  .flow-footer-main .footer-group { font-size: 13px; }
}
@media (max-width: 370px) {
  .welcome-page .top .wrap { flex-wrap: wrap; gap: 3px; padding-block: 8px; }
  .welcome-page .top-right { flex-basis: 100%; justify-content: space-between; }
  .welcome-page .wordmark { height: 42px; }
}

/* Let the signup and confirmation headers flow into their opening color. */
.top {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 39, 28, .58), transparent);
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.top .wordmark img { filter: brightness(0) invert(1); }
.top nav, .welcome-support { color: #fff; }
.top nav a:hover, .welcome-support:hover { color: #ffd1e2; }
.top .launch-chip {
  color: #fff;
  border-color: rgba(255, 255, 255, .53);
  background: rgba(255, 255, 255, .1);
}
.top .lang select {
  color: #fff;
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .52);
}
.top .lang::after { border-color: #fff; }
.top .welcome-join {
  color: #fff;
  background: rgba(255, 255, 255, .11);
  border-color: rgba(255, 255, 255, .58);
}
.top .welcome-join:hover { color: #fff; background: rgba(255, 255, 255, .23); }
.hero { padding-top: clamp(128px, calc(6vw + 76px), 168px); }
.welcome-page .solo {
  min-height: 100svh;
  padding-top: 156px;
  background: linear-gradient(180deg, #205d46 0%, #438e69 32%, #e4ede4 76%, #f8f5f0 100%);
}
@media (max-width: 660px) {
  .hero { padding-top: 112px; }
  .welcome-page .solo { padding-top: 136px; }
}
@media (max-width: 370px) {
  .welcome-page .solo { padding-top: 152px; }
}
