/* Arrivo site. Plain CSS, no build step. */

:root {
  --deep: #0B3F4A;
  --board: #062A31;
  --tile: #0A3640;
  --teal: #127C83;
  --mist: #E3F1F1;
  --paper: #F6F8F7;
  --ink: #15262B;
  --muted: #4A5A5F;
  --line: #D3E4E4;
  --amber: #F0B54A;
  --amber-ink: #8A5605;
  --on-deep: #BFDCDD;

  --display: "Rubik", "Segoe UI", Arial, sans-serif;
  --text: "DM Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--deep);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.9rem, 3.3vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--amber);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Launch notice */
.notice {
  margin: 0;
  padding: 10px var(--gutter);
  background: var(--amber);
  color: #241703;
  font-size: 0.9375rem;
  line-height: 1.45;
  text-align: center;
}
.notice a { color: inherit; font-weight: 700; }

/* Header */
.site-header { background: var(--deep); color: var(--paper); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.site-nav { display: flex; gap: 28px; }

.site-nav a {
  color: var(--on-deep);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--paper); text-decoration: underline; }

.menu-button {
  display: none;
  font: 600 1rem var(--text);
  color: var(--paper);
  background: transparent;
  border: 2px solid rgba(246, 248, 247, 0.45);
  border-radius: 10px;
  padding: 8px 14px;
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--deep);
  color: var(--paper);
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero h1 {
  color: var(--paper);
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  max-width: 12ch;
}

.lede {
  margin: 28px 0 0;
  max-width: 34em;
  color: var(--on-deep);
  font-size: 1.2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 12px;
  font: 600 1rem/1.2 var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.button-primary { background: var(--amber); color: #241703; }
.button-primary:hover { background: #F5C66D; }

.button-ghost {
  color: var(--paper);
  border: 2px solid rgba(246, 248, 247, 0.5);
}
.button-ghost:hover { background: rgba(246, 248, 247, 0.08); }

/* Arrivals board: the one bold element */
.board {
  margin: 0;
  background: var(--board);
  border-radius: 20px;
  padding: clamp(16px, 2.4vw, 26px);
  box-shadow: 0 28px 60px rgba(2, 20, 24, 0.45);
}

.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 14px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--amber);
}

.board-plane { width: 26px; height: 26px; }

.board-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px 6px;
  font-family: var(--display);
}

.board-table th {
  padding: 0 10px 4px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #8CB2B6;
}

.board-table td {
  position: relative;
  padding: 9px 10px;
  background: var(--tile);
  border-radius: 6px;
  color: var(--paper);
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* the split line across each flap */
.board-table td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.45);
}

.board-table .status { color: #7F9A9E; min-width: 12ch; }
.board-table .status.is-ready { color: var(--amber); }

.flap { display: inline-block; transform-origin: 50% 50%; }
.flap.is-flipping { animation: flap 0.32s ease-in-out; }

@keyframes flap {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.05); }
  100% { transform: scaleY(1); }
}

.board-note {
  margin: 14px 4px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--on-deep);
}

.ref {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.7em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
  text-decoration: none;
}
.ref + .ref::before { content: ","; margin-right: 1px; }

.board-note .ref,
.investors .ref { color: var(--amber); }

/* Sections */
.section { padding: var(--section) 0; }

.section-intro {
  margin: 18px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 1.15rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* Problem */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.facts li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  max-width: 36em;
}

.facts strong {
  font-family: var(--display);
  font-weight: 600;
  color: var(--deep);
}

/* Journey: a real sequence along a flight path */
.journey { background: var(--mist); }

.path {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  position: relative;
}

.path::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  border-top: 3px dashed var(--teal);
}

.path li { position: relative; padding-top: 40px; }

.path li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--deep);
  box-shadow: 0 0 0 5px var(--mist);
}

.path li.path-key::before { background: var(--amber); }

.when {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--teal);
}
.path-key .when { color: var(--amber-ink); }

.path h3 { margin-bottom: 10px; }
.path p { margin: 0; color: var(--muted); font-size: 1.05rem; }

/* Day-One Credit */
.flow {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.flow-step h3 { margin-bottom: 14px; }

.flow-step ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--muted);
}
.flow-step li { margin-bottom: 10px; }
.flow-step li::marker { color: var(--teal); }

.flow-model {
  background: var(--deep);
  color: var(--on-deep);
  border-radius: 20px;
  padding: 30px;
}
.flow-model h3 { color: var(--amber); }
.flow-model p:last-child { margin: 0; color: var(--paper); }

.flow-arrow { width: 40px; height: 24px; color: var(--teal); }

.languages {
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
}
.languages h3 { margin-bottom: 10px; font-size: 1.5rem; }
.languages p { color: var(--muted); max-width: 30em; }

.language-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-content: start;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  color: var(--deep);
  font-weight: 500;
}

/* Transfers */
.transfers { background: var(--mist); }

.bars { margin: 0; }

.bars figcaption {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--deep);
  margin-bottom: 22px;
}

.bars dl { margin: 0; }

.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 14em) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}

.bar-row dt { color: var(--muted); }

.bar-row dd {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar {
  display: block;
  height: 22px;
  border-radius: 11px;
  background: #7E8F93;
}
.bar-banks { width: 70%; }
.bar-all { width: 44%; background: #5B7F86; }
.bar-firms { width: 28.5%; background: var(--teal); }
.bar-arrivo { width: 15.4%; background: #C27C0E; }

.bar-value {
  font-family: var(--display);
  font-weight: 600;
  white-space: nowrap;
}

.bar-row-arrivo dt,
.bar-row-arrivo .bar-value { color: var(--amber-ink); font-weight: 700; }

.fineprint {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Trust */
.trust-list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px 40px;
}

.trust-list h3 { margin: 18px 0 8px; font-size: 1.15rem; }
.trust-list p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.icon {
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 12px;
  background: var(--mist);
  color: var(--teal);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How it's built */
.build { padding-top: 0; }

.diagram {
  margin: 40px 0 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(12px, 2.5vw, 32px);
  overflow-x: auto;
}
.diagram img { width: 100%; min-width: 640px; height: auto; }

.scroll-hint { display: none; margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); }

.build-notes {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  color: var(--muted);
  font-size: 1.02rem;
}
.build-notes strong { color: var(--deep); }

/* Investors */
.investors { background: var(--deep); color: var(--on-deep); }
.investors h2,
.investors h3 { color: var(--paper); }
.investors .section-intro { color: var(--on-deep); }

.milestones {
  list-style: none;
  margin: 36px 0 0;
  padding: 0 0 0 22px;
  border-left: 3px dashed rgba(240, 181, 74, 0.6);
}

.milestones li {
  position: relative;
  padding: 0 0 18px;
  color: var(--paper);
}

.milestones li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--amber);
}

.milestones span {
  display: block;
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
}

.fineprint-dark { color: var(--on-deep); }

.funds-panel {
  background: rgba(246, 248, 247, 0.06);
  border: 1px solid rgba(246, 248, 247, 0.16);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}

.funds-panel h3 { font-size: 1.4rem; margin-bottom: 20px; }

.funds-bar {
  display: flex;
  height: 26px;
  border-radius: 13px;
  overflow: hidden;
}

.seg-team { background: var(--amber); }
.seg-platform { background: #5FC3C9; }
.seg-growth { background: #2E9AA1; }
.seg-security { background: #DCEDEE; }
.seg-reserve { background: #8A6A33; }

.funds-bar .seg-team { width: 50%; }
.funds-bar .seg-platform { width: 15%; }
.funds-bar .seg-growth { width: 15%; }
.funds-bar .seg-security { width: 10%; }
.funds-bar .seg-reserve { width: 10%; }

.funds-legend {
  list-style: none;
  margin: 22px 0 24px;
  padding: 0;
}

.funds-legend li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(246, 248, 247, 0.12);
  color: var(--paper);
}

.funds-legend b {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 600;
  white-space: nowrap;
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex: none;
}

.funds-panel > p { font-size: 1.02rem; }

/* Footer */
.site-footer {
  background: var(--board);
  color: var(--on-deep);
  padding: 64px 0 72px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
}

.site-footer .brand { color: var(--paper); margin-bottom: 18px; }
.site-footer p { max-width: 34em; }

.footer-title {
  font-size: 1.1rem;
  color: var(--paper);
  margin-bottom: 14px;
}

.sources { margin: 0; padding-left: 1.4em; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--on-deep); }
.sources a:hover { color: var(--paper); }

/* Responsive */
@media (max-width: 1000px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 0.95rem; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 5;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--deep);
    border-top: 1px solid rgba(246, 248, 247, 0.14);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.05rem; }
  .site-header { position: relative; }

  .hero-grid,
  .split,
  .languages,
  .footer-grid { grid-template-columns: minmax(0, 1fr); }

  .path { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .path::before { left: 8px; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 3px dashed var(--teal); }
  .path li { padding: 0 0 0 44px; }

  .build-notes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 700px) {
  .scroll-hint { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .board-table .col-to { display: none; }
  .board-table td { letter-spacing: 0.05em; }
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bar-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flap.is-flipping { animation: none; }
  .button { transition: none; }
}

/* 404 page */
.not-found-main {
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: center;
}
.not-found-main .wrap { width: 100%; }
.not-found-main .brand { color: var(--paper); }
.not-found-main h1 { margin-top: 48px; }

/* Nav call to action */
.site-nav .nav-cta {
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: #241703;
  font-weight: 700;
  text-decoration: none;
}
.site-nav .nav-cta:hover { background: #F5C66D; }
@media (max-width: 860px) {
  .site-nav .nav-cta { margin-top: 8px; padding: 12px 16px; text-align: center; }
}

/* Waitlist */
.waitlist { background: var(--mist); }
.waitlist-form {
  position: relative;
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
}
.waitlist-form label { font-weight: 600; color: var(--deep); margin-top: 8px; }
.waitlist-form .optional { font-weight: 400; color: var(--muted); }
.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid #A9C3C4;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--text);
}
.waitlist-form input:focus-visible,
.waitlist-form select:focus-visible { border-color: var(--teal); }
.waitlist-form .consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 12px 0 8px;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--muted);
}
.waitlist-form .consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); }
.waitlist-form .button { border: 0; cursor: pointer; justify-self: start; }
.waitlist-form .button[disabled] { opacity: 0.7; cursor: progress; }
.form-status { margin: 4px 0 0; font-weight: 600; color: var(--deep); min-height: 1.6em; }
.form-status.is-error { color: #A12C1F; }
@media (max-width: 560px) { .waitlist-form .button { justify-self: stretch; } }

.waitlist-form .hp {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Footer links */
.footer-links { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--paper); }
.copyright { font-size: 0.875rem; }

/* Legal pages */
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; max-width: none; }
.legal .updated { color: var(--muted); margin: 10px 0 28px; }
.legal ul { padding-left: 1.3em; }
.legal li { margin-bottom: 8px; }
@media (min-width: 861px) {
  .site-nav { align-items: center; }
}
