:root {
  --paper: #f7f9fc;
  --paper-warm: #f5efe3;
  --ink: #111827;
  --muted: #596273;
  --blue: #2151f5;
  --blue-dark: #1235b8;
  --blue-pale: #dce5ff;
  --amber: #ffb347;
  --amber-dark: #d98d16;
  --red: #dc3c30;
  --green: #72b51d;
  --line: rgba(17, 24, 39, 0.2);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(33, 81, 245, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(33, 81, 245, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  color: white;
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
footer {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 86px;
  border-bottom: 1px solid var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img { border-radius: 10px; }

nav,
footer div {
  display: flex;
  gap: clamp(1rem, 3vw, 2.5rem);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

main { overflow: hidden; }

.hero {
  position: relative;
  width: min(1440px, calc(100% - 3rem));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 9rem);
}

.route-line {
  position: absolute;
  top: 15%;
  right: 4%;
  width: 43%;
  aspect-ratio: 1.45;
  border: 2px dashed rgba(33, 81, 245, 0.28);
  border-width: 2px 0 0 2px;
  border-radius: 70% 0 0;
  transform: rotate(-7deg);
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
}

.route-line::before { top: -8px; left: -8px; }
.route-line::after { right: -7px; bottom: -8px; }

.kicker,
.section-code,
.feature-index,
.fineprint,
.policy-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kicker { color: var(--blue-dark); }

.hero h1 {
  max-width: 10ch;
  margin: 1rem 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(4rem, 8.8vw, 8.8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.85;
}

.hero h1 em {
  position: relative;
  z-index: 0;
  font-weight: 400;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.04em;
  left: -0.04em;
  height: 0.22em;
  background: var(--amber);
  transform: rotate(-1.4deg);
}

.intro {
  max-width: 39rem;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0.82rem 1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.button-primary { color: white; background: var(--blue); }
.button-dark { color: white; background: var(--ink); }
.button-outline { background: transparent; }
.button-light { color: var(--ink); background: var(--paper); }

.quiet-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.privacy-strip {
  max-width: 38rem;
  margin: 2.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.privacy-strip div { padding: 0.85rem 0.8rem 0.85rem 0; }
.privacy-strip div + div { padding-left: 0.8rem; border-left: 1px solid var(--line); }
.privacy-strip dt { color: var(--muted); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.privacy-strip dd { margin: 0.2rem 0 0; font-weight: 700; }

.hero-visual {
  position: relative;
  min-height: 690px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(42vw, 580px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: pulse-route 8s ease-in-out infinite;
}

.phone {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2rem;
  background: var(--ink);
  box-shadow: 14px 16px 0 var(--ink);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
}

.phone-hero {
  position: relative;
  width: min(73%, 340px);
  transform: rotate(2.2deg);
  animation: arrive 650ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.passport-stamp {
  position: absolute;
  z-index: 3;
  width: 126px;
  height: 126px;
  display: grid;
  place-content: center;
  border: 4px double var(--blue-dark);
  border-radius: 50%;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 0.85;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.passport-stamp small { font-size: 0.58rem; letter-spacing: 0.12em; }
.stamp-top { top: 3rem; left: -1rem; }

.flight-card {
  position: absolute;
  right: -1.5rem;
  bottom: 5rem;
  z-index: 3;
  min-width: 250px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  border: 1px solid var(--ink);
  background: var(--amber);
  box-shadow: 7px 7px 0 var(--ink);
  font-family: var(--mono);
  font-size: 1.05rem;
  text-align: center;
  transform: rotate(-2deg);
}

.flight-card small {
  grid-column: 1 / -1;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.border-note,
.privacy-callout {
  padding: clamp(4rem, 9vw, 8.5rem) max(1.5rem, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  color: white;
  background: var(--ink);
}

.border-note h2,
.privacy-callout h2 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 6.6rem);
  letter-spacing: -0.06em;
  line-height: 0.93;
}

.border-note div > p,
.privacy-callout div > p {
  max-width: 45rem;
  margin: 2rem 0 0;
  color: #dce1eb;
  font-family: var(--display);
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
}

.feature-ledger {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-right: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.feature-ledger article {
  min-height: 330px;
  padding: 2rem;
  border-right: 1px solid var(--ink);
}

.feature-ledger article:last-child { border-right: 0; }
.feature-ledger article:nth-child(2) { background: var(--blue-pale); }
.feature-ledger article:nth-child(3) { background: var(--amber); }

.feature-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.feature-ledger h2 {
  margin: 3.5rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.feature-ledger p { color: var(--muted); }

.screens {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--paper-warm);
}

.screens-copy {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 0.32fr 0.85fr 0.65fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: end;
}

.screens-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.screens-copy > p:last-child { margin: 0; color: var(--muted); }

.screen-rail {
  width: min(1540px, calc(100% - 1.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.screen-rail figure { margin: 0; }
.screen-rail figure:nth-child(even) { padding-top: 5rem; }
.screen-rail .phone { border-radius: 1.6rem; box-shadow: 9px 11px 0 var(--ink); }
.screen-rail figcaption { margin-top: 1.35rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; }

.beta {
  padding: clamp(5rem, 10vw, 10rem) max(1.5rem, calc((100vw - 1440px) / 2));
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 9rem);
  background: var(--amber);
}

.beta-marker {
  align-self: start;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 5px double var(--ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-5deg);
}

.beta-marker strong {
  font-family: var(--display);
  font-size: clamp(5rem, 12vw, 11rem);
  letter-spacing: -0.08em;
  line-height: 0.75;
}

.beta-marker span { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

.beta-copy h2 {
  max-width: 11ch;
  margin: 0.75rem 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 6.5rem);
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.beta-copy > p:not(.section-code):not(.fineprint) {
  max-width: 48rem;
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
}

.join-steps {
  margin: 3rem 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.join-steps li {
  padding: 1.5rem 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  border-bottom: 1px solid var(--ink);
}

.join-steps li > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
}

.join-steps h3 { margin: 0; font-size: 1.2rem; }
.join-steps p { max-width: 44rem; }
.fineprint { max-width: 50rem; }

.privacy-callout { background: var(--blue); }
.privacy-callout .button { margin-top: 1.5rem; }

.disclaimer {
  padding: 1.35rem max(1.5rem, calc((100vw - 1440px) / 2));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-warm);
  font-size: 0.9rem;
}

footer { min-height: 100px; }
footer p { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; }

.policy-layout {
  width: min(1440px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.85fr);
  gap: clamp(3rem, 8vw, 9rem);
  overflow: visible;
}

.policy-layout aside { position: sticky; top: 2rem; align-self: start; }

.policy-layout h1 {
  margin: 0.6rem 0 1rem;
  font-family: var(--display);
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.policy-date { color: var(--muted); }

.policy-copy section {
  padding: 0 0 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}

.policy-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  letter-spacing: -0.035em;
}

.policy-copy p,
.policy-copy li { max-width: 48rem; }
.policy-copy li + li { margin-top: 0.55rem; }

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--amber);
}

.error-page main { width: min(760px, calc(100% - 3rem)); }
.error-page h1 { margin: 0.75rem 0 2rem; font-family: var(--display); font-size: clamp(4rem, 11vw, 9rem); letter-spacing: -0.07em; line-height: 0.85; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(30px) rotate(4deg); }
  to { opacity: 1; transform: translateY(0) rotate(2.2deg); }
}

@keyframes pulse-route {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 0.82fr; gap: 2rem; }
  .feature-ledger { grid-template-columns: repeat(2, 1fr); }
  .feature-ledger article:nth-child(2) { border-right: 0; }
  .feature-ledger article:nth-child(-n + 2) { border-bottom: 1px solid var(--ink); }
  .screen-rail { grid-template-columns: repeat(2, 1fr); max-width: 850px; }
  .screen-rail figure:nth-child(even) { padding-top: 3rem; }
  .screens-copy { grid-template-columns: 0.35fr 1fr; }
  .screens-copy > p:last-child { grid-column: 2; }
}

@media (max-width: 760px) {
  .site-header,
  footer,
  .hero,
  .feature-ledger,
  .screens-copy,
  .policy-layout { width: min(100% - 2rem, 640px); }

  .site-header { min-height: 74px; }
  .site-header nav a:not(:last-child) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6.2rem); }
  .hero-visual { min-height: 600px; }
  .hero-visual::before { width: min(85vw, 520px); }
  .phone-hero { width: min(67vw, 320px); }
  .stamp-top { left: 0; }
  .flight-card { right: 0; }
  .privacy-strip { font-size: 0.85rem; }
  .border-note,
  .privacy-callout,
  .beta { grid-template-columns: 1fr; }
  .feature-ledger { grid-template-columns: 1fr; }
  .feature-ledger article { min-height: 270px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .feature-ledger article:last-child { border-bottom: 0; }
  .screens-copy { grid-template-columns: 1fr; }
  .screens-copy > p:last-child { grid-column: auto; }
  .screen-rail { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .screen-rail figure:nth-child(even) { padding-top: 2rem; }
  .beta-marker { width: min(68vw, 340px); }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-layout aside { position: static; }
  footer { padding: 1.5rem 0; align-items: flex-start; gap: 1.5rem; }
  footer div { flex-direction: column; gap: 0.75rem; text-align: right; }
}

@media (max-width: 470px) {
  .brand span { font-size: 1.15rem; }
  .privacy-strip { grid-template-columns: 1fr; }
  .privacy-strip div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .screen-rail { grid-template-columns: 1fr; width: min(78%, 360px); }
  .screen-rail figure:nth-child(even) { padding-top: 0; }
}
