:root {
  --blue: #235A8C;
  --saffron: #E8703A;
  --ink: #1A1A2E;
  --paper: #F8F6F1;
  --paper-deep: #EFE8DA;
  --muted: #696776;
  --line: rgba(26, 26, 46, 0.16);
  --light-line: rgba(248, 246, 241, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  color: rgba(26, 26, 46, 0.78);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-small {
  min-height: 42px;
  padding: 0 18px;
}

.button-accent {
  background: var(--saffron);
  color: #fff;
  border-color: var(--saffron);
}

.button-accent:hover,
.button-accent:focus-visible {
  background: #d95f2b;
  border-color: #d95f2b;
}

.button-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(26, 26, 46, 0.32);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.65;
  background:
    radial-gradient(circle at 18px 18px, rgba(27, 108, 168, 0.12) 1px, transparent 1.5px),
    repeating-radial-gradient(ellipse at 78% 22%, transparent 0 28px, rgba(27, 108, 168, 0.09) 29px 30px, transparent 31px 58px),
    repeating-radial-gradient(ellipse at 12% 88%, transparent 0 34px, rgba(232, 112, 58, 0.08) 35px 36px, transparent 37px 72px);
  background-size: 36px 36px, 640px 420px, 520px 380px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(248, 246, 241, 0.62), rgba(248, 246, 241, 0.62)),
    linear-gradient(90deg, rgba(26, 26, 46, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(26, 26, 46, 0.05) 1px, transparent 1px);
  background-size: auto, 84px 84px, 84px 84px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(4.2rem, 9vw, 7.6rem);
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 36px;
  color: rgba(26, 26, 46, 0.75);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.problem-bar {
  background: var(--ink);
  color: var(--paper);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.problem-grid p {
  min-height: 92px;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 20px 24px;
  color: rgba(248, 246, 241, 0.92);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
}

.problem-grid p + p {
  border-left: 1px solid var(--light-line);
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

h3 {
  margin-bottom: 14px;
  font-size: 2rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.pillar-card {
  min-height: 390px;
  padding: 42px 36px;
  background: rgba(248, 246, 241, 0.6);
}

.pillar-card + .pillar-card {
  border-left: 1px solid var(--line);
}

.pillar-card p {
  max-width: 280px;
  margin-bottom: 0;
  color: var(--muted);
}

.pillar-icon {
  width: 68px;
  height: 68px;
  margin-bottom: 72px;
  stroke: var(--blue);
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.timeline-step {
  position: relative;
  min-height: 250px;
  padding: 34px 30px 0 0;
}

.timeline-step + .timeline-step {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.step-number {
  display: block;
  margin-bottom: 38px;
  color: rgba(27, 108, 168, 0.18);
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.78;
}

.timeline-step p {
  max-width: 280px;
  margin-bottom: 0;
  color: rgba(26, 26, 46, 0.82);
  font-size: 1.05rem;
  font-weight: 500;
}

.agencies-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 80px;
  align-items: center;
}

.agency-copy h2 {
  margin-bottom: 34px;
}

.benefit-list {
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
  color: var(--muted);
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
}

.benefit-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 12px;
  height: 1px;
  background: var(--saffron);
}

.stats-block {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.2);
}

.stat-item {
  padding: 34px;
}

.stat-item + .stat-item {
  border-top: 1px solid var(--line);
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 4.6rem;
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.88;
}

.stat-item span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about {
  padding-top: 0;
}

.about-panel {
  padding: 64px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.about-panel .eyebrow {
  color: #f0a47d;
}

.about-panel h2 {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--paper);
}

.about-panel p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(248, 246, 241, 0.76);
  font-size: 1.08rem;
}

.waitlist {
  text-align: center;
}

.waitlist-inner {
  max-width: 640px;
}

.waitlist h2 {
  margin-bottom: 40px;
}

.waitlist-form {
  text-align: left;
  margin-bottom: 14px;
}

.waitlist-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(26, 26, 46, 0.26);
  border-radius: 6px;
  background: #fffaf1;
  color: var(--ink);
  outline: none;
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 120ms ease;
}

.waitlist-form input:focus {
  border-color: var(--blue);
}

.phone-prefix {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 14px;
  min-height: 54px;
  border: 1px solid rgba(26, 26, 46, 0.26);
  border-radius: 6px;
  background: #efe8da;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label,
.form-fieldset legend {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-fieldset {
  margin: 0 0 22px;
  padding: 0;
  border: none;
}

.phone-input {
  display: flex;
  gap: 10px;
}

.phone-input input {
  flex: 1;
  min-width: 0;
}

.radio-group {
  display: flex;
  gap: 24px;
  padding-top: 4px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.radio-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(26, 26, 46, 0.26);
  border-radius: 50%;
  transition: border-color 120ms ease, background-color 120ms ease;
  flex-shrink: 0;
}

.radio-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  transform: scale(0);
  transition: transform 120ms ease;
}

.radio-label input:checked + .radio-indicator {
  border-color: var(--blue);
}

.radio-label input:checked + .radio-indicator::after {
  transform: scale(1);
}

.radio-label input:focus-visible + .radio-indicator {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.button-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  font-size: 15px;
}

.form-note,
.form-message {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message:not(:empty) {
  margin-top: 16px;
  color: var(--blue);
  font-weight: 700;
  text-align: center;
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: center;
}

.footer-wordmark {
  display: inline-block;
  margin-bottom: 6px;
}

.site-footer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: rgba(26, 26, 46, 0.76);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--saffron);
}

.copyright {
  justify-self: end;
}

.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;
}

@media (max-width: 900px) {
  .navbar {
    min-height: 72px;
    gap: 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 110px 0 90px;
  }

  .problem-grid,
  .pillar-grid,
  .timeline,
  .agencies-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid p + p,
  .pillar-card + .pillar-card,
  .timeline-step + .timeline-step {
    border-left: 0;
    border-top: 1px solid var(--light-line);
  }

  .pillar-card + .pillar-card,
  .timeline-step + .timeline-step {
    border-top-color: var(--line);
  }

  .pillar-card {
    min-height: auto;
  }

  .pillar-icon {
    margin-bottom: 44px;
  }

  .timeline-step,
  .timeline-step + .timeline-step {
    min-height: auto;
    padding: 34px 0;
  }

  .agencies-grid {
    gap: 48px;
  }

  .footer-links,
  .copyright {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .container,
  .navbar {
    width: min(100% - 32px, 1120px);
  }

  .navbar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
  }

  .button-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 13px;
  }

  h1 {
    font-size: clamp(3.7rem, 16vw, 5.8rem);
  }

  .section {
    padding: 82px 0;
  }

  .about {
    padding-top: 0;
  }

  .about-panel {
    padding: 42px 28px;
  }

  .phone-input {
    flex-direction: column;
  }

  .phone-prefix {
    justify-content: center;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-popup {
  background: #fffaf1;
  border-radius: 20px;
  padding: 48px 40px 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  border: 2px solid rgba(232, 112, 58, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-popup {
  transform: scale(1) translateY(0);
}

.modal-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 16px;
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-16px); }
  60% { transform: translateY(-6px); }
}

.modal-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.modal-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 28px;
}

.modal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: var(--saffron);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease;
}

.modal-btn:hover {
  background: #d95f2b;
  transform: scale(1.02);
}

.modal-btn:active {
  transform: scale(0.98);
}
