/* Colors, radii and type follow intown-app/design/tokens.json */
:root {
  --dark-blue: #023059;
  --medium-blue: #034C8C;
  --light-blue: #049DBF;
  --orange: #F2A516;
  --charcoal: #212121;
  --off-white: #F8FAFC;
  --white: #FFFFFF;
  --muted: #4A5562;
  --border: #E5EAF0;
  --input-border: #C9D2DD;
  --blue-tint: #EAF6FA;
  --orange-tint: #FFF6E2;
  --text-on-tint: #8A5A00;
  --amber: #C98600;
  --destructive: #9B2C2C;
  --phone: #011A31;
  --on-dark: #D5E2EE;
  --on-dark-muted: #BFD0E0;

  --radius-input: 14px;
  --radius-card: 24px;
  --radius-panel: 32px;
  --radius-pill: 999px;

  --sans: Figtree, -apple-system, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
p, h1, h2, h3, figure { margin: 0; }

a { color: var(--medium-blue); }
a:hover { color: var(--dark-blue); }

input:focus,
button:focus-visible,
a:focus-visible { outline: 2px solid var(--medium-blue); outline-offset: 2px; }

input::placeholder { color: #6B7684; }

[hidden] { display: none !important; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  padding: 12px 16px; background: var(--orange); color: var(--dark-blue); font-weight: 800;
}
.skip:focus { left: 16px; top: 16px; }

svg[viewBox="0 0 24 24"] {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Layout */
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; }
.section { padding: 96px 24px; }
.section-tail { padding-top: 0; }
.band { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stack-28, .stack-32, .stack-40, .stack-48 { display: flex; flex-direction: column; }
.stack-28 { gap: 28px; }
.stack-32 { gap: 32px; }
.stack-40 { gap: 40px; }
.stack-48 { gap: 48px; }

/* Type */
.display {
  font-weight: 800; font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em; color: var(--dark-blue);
}
.h2 {
  font-weight: 800; font-size: clamp(32px, 3.8vw, 50px);
  line-height: 1.08; letter-spacing: -0.02em; color: var(--dark-blue);
}
.h2-lg { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.h2-sm { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; max-width: 44rem; }
.h2-xl { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; }
.lead { max-width: 34rem; font-size: 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--medium-blue);
}

/* Wordmark */
.wordmark {
  font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1;
  color: var(--dark-blue); text-decoration: none;
}
.wordmark span { color: var(--orange); }
.wordmark-sm { font-size: 26px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: var(--radius-pill);
  background: var(--orange); color: var(--dark-blue);
  font: inherit; font-size: 16px; font-weight: 800; line-height: 1.2;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--dark-blue); background: #E89C0C; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-outline {
  align-self: flex-start; min-height: 48px; padding: 0 24px;
  border: 2px solid var(--dark-blue); border-radius: var(--radius-pill);
  background: var(--white); color: var(--dark-blue);
  font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}

.dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.dot-light { background: var(--light-blue); }
.dot-orange { background: var(--orange); }

/* Header */
.site-header { padding: 18px 24px; background: var(--white); border-bottom: 1px solid var(--border); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--dark-blue); }

/* Hero */
.hero-section { padding: 72px 24px 88px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  grid-template-areas: "head phone" "form phone";
  column-gap: 64px; row-gap: 28px; align-items: start;
}
.hero-head { grid-area: head; align-self: end; display: flex; flex-direction: column; gap: 22px; }
.hero-form { grid-area: form; display: flex; flex-direction: column; gap: 14px; max-width: 34rem; }
.hero-phone {
  grid-area: phone; align-self: center;
  padding: 40px 24px 0; border-radius: var(--radius-panel);
  background: var(--dark-blue); overflow: hidden;
}
.hero-crop { position: relative; height: 580px; overflow: hidden; }

.pill-label {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--radius-pill); background: var(--blue-tint);
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--dark-blue);
}

.phone { background: var(--phone); }
.phone img { display: block; width: 100%; height: auto; }
.phone-front {
  position: absolute; left: 50%; top: 0; margin-left: -110px; width: 280px;
  padding: 10px 10px 0; border-radius: 44px 44px 0 0;
  box-shadow: 0 30px 60px rgba(1, 20, 40, 0.45);
}
.phone-front img { border-radius: 35px 35px 0 0; }
.phone-back {
  position: absolute; left: 50%; top: 56px; margin-left: -210px; width: 220px;
  padding: 9px 9px 0; border-radius: 38px 38px 0 0;
  transform: rotate(-6deg); opacity: 0.9;
}
.phone-back img { border-radius: 30px 30px 0 0; }

/* Email forms */
.email-form { display: flex; flex-wrap: wrap; gap: 12px; }
.email-form input {
  flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 0 18px;
  border-radius: var(--radius-pill); border: 1px solid var(--input-border);
  background: var(--white); color: var(--charcoal); font: inherit; font-size: 16px;
}
.email-form .btn { flex: 0 0 auto; }
.email-form-lg input { min-height: 56px; padding: 0 20px; border: 0; }
.form-error { margin-top: 12px; font-size: 14px; color: var(--destructive); }
.form-error-dark { margin-top: 0; color: #FFB4A6; }

.joined-note {
  padding: 16px 20px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--border);
}
.joined-title { font-weight: 800; color: var(--dark-blue); }
.joined-note p + p { margin-top: 2px; font-size: 15px; font-weight: 700; }

.reassure {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.reassure svg { color: var(--medium-blue); stroke-width: 2.2; }

/* Story */
.story { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.story-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.byline { display: flex; align-items: center; gap: 14px; padding-top: 6px; line-height: 1.35; }
.byline img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 3px solid var(--white); box-shadow: 0 2px 8px rgba(2, 48, 89, 0.15);
}
.byline-name { font-weight: 800; color: var(--dark-blue); }
.byline-role { font-size: 14px; color: var(--muted); }
.story-photo { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.story-photo img {
  display: block; width: 100%; height: 480px;
  object-fit: cover; object-position: 30% 50%; border-radius: 28px;
}
.story-photo figcaption { font-size: 13px; color: var(--muted); }

/* How it works */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 40rem; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 32px; }
.steps li {
  flex: 1 1 280px; min-width: 0; padding-top: 24px;
  border-top: 3px solid var(--dark-blue);
  display: flex; flex-direction: column; gap: 10px;
}
.step-num { font-size: 56px; font-weight: 800; line-height: 1; color: var(--orange); }
.steps h3 { font-size: 24px; font-weight: 800; color: var(--dark-blue); }

/* Day one + network */
.growth { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.card {
  flex: 1 1 360px; min-width: 0; padding: 36px; border-radius: var(--radius-card);
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--dark-blue); }
.card-warm { background: var(--orange-tint); border-color: var(--orange-tint); }
.tag {
  align-self: flex-start; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--blue-tint); color: var(--dark-blue);
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.tag-warm { background: var(--white); color: var(--text-on-tint); }
.growth-arrow { flex: 0 0 auto; align-self: center; display: flex; justify-content: center; width: 40px; color: var(--medium-blue); }

/* Location badges */
.badges { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.badges-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.badges .h2 { font-size: clamp(32px, 3.8vw, 48px); }
.badge-list {
  flex: 1 1 360px; min-width: 0; margin: 0; padding: 4px 24px; list-style: none;
  border-radius: var(--radius-card); background: var(--off-white); border: 1px solid var(--border);
}
.badge-list li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.badge-list li:last-child { border-bottom: 0; }
.badge { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; }
.badge-told { background: var(--dark-blue); }
.badge-placed { background: var(--light-blue); }
.badge-hint, .badge-old { width: 10px; height: 10px; margin: 6px 2px 0; border: 2px dashed var(--amber); }
.badge-old { border-style: solid; }
.badge-none { background: var(--input-border); }
.badge-name { font-weight: 800; color: var(--dark-blue); }
.badge-desc { font-size: 15px; color: var(--muted); }
.phone-flat {
  flex: 0 1 250px; min-width: 0; margin: 0 auto; padding: 9px;
  border-radius: 40px; box-shadow: 0 20px 40px rgba(2, 48, 89, 0.18);
}
.phone-flat img { border-radius: 32px; }

/* Trust */
.trust { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.trust-head { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.trust-icon {
  width: 56px; height: 56px; border-radius: 18px; background: var(--dark-blue);
  display: flex; align-items: center; justify-content: center; color: var(--off-white);
}
.trust-lead { font-size: 19px; }
.trust-grid {
  flex: 1.4 1 520px; min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px;
}
.trust-grid > div { display: flex; flex-direction: column; gap: 8px; }
.trust-grid svg { color: var(--light-blue); }
.trust-grid h3 { font-size: 19px; font-weight: 800; color: var(--dark-blue); }
.trust-grid p { font-size: 16px; }

/* Who it's for */
.audience-section { padding: 0 24px 72px; }
.audience {
  padding-top: 32px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
}
.audience p { margin-right: 8px; font-weight: 800; color: var(--dark-blue); }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
}

/* Join the beta */
.join {
  padding: 56px 48px; border-radius: var(--radius-panel);
  background: var(--dark-blue); color: var(--off-white);
  display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start;
}
.join .h2 { color: var(--off-white); }
.join-intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.join-form { flex: 1 1 420px; min-width: 0; align-self: center; display: flex; flex-direction: column; gap: 12px; }
.join-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.on-dark { color: var(--on-dark); }
.on-dark-muted { color: var(--on-dark-muted); }

.invite {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 8px; border-radius: var(--radius-pill); background: #0B3A66;
}
.invite-link {
  flex: 1 1 200px; min-width: 0; padding: 0 14px;
  font-size: 15px; font-weight: 600; color: var(--off-white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.invite-progress { display: flex; align-items: center; gap: 12px; }
.bars { display: flex; gap: 6px; }
.bars span { width: 28px; height: 6px; border-radius: 3px; background: #2C5D8C; }

.details-card {
  flex: 1 1 420px; min-width: 0; padding: 28px; border-radius: var(--radius-card);
  background: var(--white); color: var(--charcoal);
}
.details-card h3 { font-size: 20px; font-weight: 800; color: var(--dark-blue); }
.details-card h3 + p { margin-top: 2px; }
.details-form { display: flex; flex-direction: column; gap: 16px; }
.field-row { display: flex; flex-wrap: wrap; gap: 12px; }
.field { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label, .details-form legend { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  min-height: 46px; padding: 0 14px; border-radius: var(--radius-input);
  border: 1px solid var(--input-border); background: var(--white);
  color: var(--charcoal); font: inherit; font-size: 16px;
}
.details-form fieldset { margin: 0; padding: 0; border: 0; }
.details-form legend { padding: 0; margin-bottom: 8px; }
.toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle {
  min-height: 44px; padding: 0 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--input-border); background: var(--white); color: var(--charcoal);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.toggle[aria-pressed="true"] {
  border-color: var(--dark-blue); background: var(--dark-blue);
  color: var(--off-white); font-weight: 700;
}
.details-done { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.details-done svg { color: var(--light-blue); }

/* FAQ */
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 2px solid var(--medium-blue); outline-offset: 2px; }
.faq summary svg { color: var(--medium-blue); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq summary:hover h3 { color: var(--medium-blue); }
.faq h3 { font-size: 18px; font-weight: 800; color: var(--dark-blue); }
.faq details p { margin-top: -10px; padding: 0 38px 22px 0; }

/* Footer */
.site-footer { padding: 56px 24px 32px; border-top: 1px solid var(--border); background: var(--white); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer-brand { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-brand p { max-width: 22rem; font-size: 15px; }
.footer-brand .btn { align-self: flex-start; margin-top: 6px; }
.footer-nav { flex: 0 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-nav a { color: var(--charcoal); text-decoration: none; }
.footer-nav a:hover { color: var(--medium-blue); }
.footer-label {
  margin-bottom: 4px; font-size: 12px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.footer-base {
  padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 14px; color: var(--muted);
}

/* Phone width */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "phone" "form";
    row-gap: 24px;
  }
  .hero-crop { height: 380px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .section-tail { padding-top: 0; }
  .growth-arrow { transform: rotate(90deg); width: 100%; }
}

@media (max-width: 600px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .join { padding: 40px 24px; }
  .card { padding: 28px; }
  .details-card { padding: 22px; }
  .nav-links { gap: 12px 18px; }
}

/* Password page (gate.html) */
.gate-body { min-height: 100vh; display: flex; align-items: center; }
.gate { width: 100%; max-width: 40rem; margin: 0 auto; padding: 48px 24px; }
.gate-text { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.gate-text .pill-label { align-self: center; }
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 10px; }
.gate-pin { width: 88px; height: auto; }
.gate-title { font-size: clamp(38px, 6vw, 60px); }
.gate .email-form { width: 100%; max-width: 30rem; }
.gate .form-error { margin-top: -10px; }
