:root {
  --bg: #fff;
  --ink: #2f1d2b;
  --ink-soft: #6e5a68;
  --line: #e5e3e4;
  --field-border: rgb(47 29 43 / .22);
  --butter: #f1ec8a;
  --butter-hover: #e9e263;
  --focus: #6b4cff;
  --error: #b3261e;

  --orb-1: #5a78b0;
  --orb-2: #e04c9b;
  --orb-3: #93b33c;
  --glow-1: rgb(90 120 176 / .34);
  --glow-2: rgb(224 76 155 / .3);
  --glow-3: rgb(147 179 60 / .34);
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Figtree, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Fine paper grain over the whole page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.11 0 0 0 0 0.17 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Desktop: one screen, reading top to bottom like the route. */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-block: clamp(32px, 7vh, 88px) clamp(28px, 5vh, 64px);
  overflow: hidden;
}

.journey {
  display: flex;
  flex: 1;
  flex-direction: column;
  order: -1;
}

.stops {
  display: grid;
  grid-template-columns: repeat(3, 30%);
  padding: 0 0 0 12.5%;
  list-style: none;
}

.stop {
  max-width: 16em;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.stop p { text-wrap: balance; }

.soft { color: var(--ink-soft); }

.stop-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.stop-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.stop-1 .stop-label::before { background: var(--orb-1); }
.stop-2 .stop-label::before { background: var(--orb-2); }
.stop-3 .stop-label::before { background: var(--orb-3); }

.route {
  position: relative;
  flex: 1;
  min-height: 120px;
  margin-block: clamp(12px, 3vh, 40px);
}

.route svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: draw 2.4s cubic-bezier(.45, 0, .3, 1) both;
}

.route path {
  fill: none;
  stroke: var(--line);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Sized in px rather than drawn in the SVG, so stops stay round as the route stretches. */
.orb {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: arrive .7s ease-out var(--delay) both;
}

.orb-1 { background: var(--orb-1); box-shadow: 0 0 48px 20px var(--glow-1); }
.orb-2 { background: var(--orb-2); box-shadow: 0 0 48px 20px var(--glow-2); }
.orb-3 { background: var(--orb-3); box-shadow: 0 0 48px 20px var(--glow-3); }

@keyframes draw {
  from { clip-path: inset(-20% 100% -20% 0); }
  to { clip-path: inset(-20% -2% -20% 0); }
}

@keyframes arrive {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 24px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(4px, 1vh, 12px);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

.badge-orb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orb-3);
}

.wordmark {
  font-family: Fraunces, Georgia, serif;
  font-size: min(15vw, 23vh);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-weight: 450;
  line-height: 1;
  letter-spacing: -.035em;
}

.tagline {
  margin-top: clamp(2px, .8vh, 10px);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}

.signup {
  width: min(100%, 540px);
  margin-top: clamp(18px, 3vh, 32px);
}

.signup-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(47 29 43 / .05), 0 16px 36px -16px rgb(47 29 43 / .28);
}

.signup-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.signup-field.has-error { border-color: var(--error); }

.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 8px 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 18px;
}

.signup input::placeholder { color: var(--ink-soft); opacity: 1; }

.signup button {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s;
}

.signup button span { transition: transform .2s ease; }
.signup button:hover { background: var(--butter-hover); }
.signup button:hover span { transform: translateX(3px); }

.signup button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.signup button:disabled { cursor: progress; opacity: .7; }

.trap { position: absolute; left: -9999px; }

.status {
  min-height: 1.45em;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.45;
}

.status.is-error { color: var(--error); }
.status.is-success { color: var(--ink); font-weight: 600; }

/* Phones and narrow tablets: the route turns vertical and each stop sits on it. */
@media (max-width: 760px) {
  .page {
    gap: 56px;
    padding-block: 48px;
    overflow: visible;
  }

  .journey { order: 0; padding-inline: 24px; }

  .wordmark { font-size: min(22vw, 120px); }

  .route { display: none; }

  .stops {
    position: relative;
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 0 0 48px;
  }

  .stops::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 11px;
    width: 8px;
    border-radius: 4px;
    background: var(--line);
  }

  .stop { position: relative; max-width: none; font-size: 21px; }

  .stop::before {
    content: "";
    position: absolute;
    top: 0;
    left: -48px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }

  .stop-1::before { background: var(--orb-1); box-shadow: 0 0 24px 8px var(--glow-1); }
  .stop-2::before { background: var(--orb-2); box-shadow: 0 0 24px 8px var(--glow-2); }
  .stop-3::before { background: var(--orb-3); box-shadow: 0 0 24px 8px var(--glow-3); }

  .stop-label { margin-bottom: 6px; padding-top: 6px; }
  .stop-label::before { display: none; }
}

@media (max-width: 440px) {
  .signup-field {
    flex-direction: column;
    align-items: stretch;
    border-radius: 32px;
  }

  .signup input[type="email"] { flex: none; height: 52px; text-align: center; padding: 0 16px; }
  .signup button { justify-content: center; height: 54px; }
}

/* The route appears finished, with no movement, for anyone who has asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
