/* ============================================================
   Arrival — marketing site
   Palette: warm cream paper, navy serif headlines, deep-green
   CTAs, coral + teal passport-stamp accents, gold overlines.
   ============================================================ */

:root {
  --cream: #f5efe1;
  --cream-deep: #ece2cc;
  --white-band: #fdfbf5;
  --navy: #1d2b4f;
  --ink: #232f47;
  --muted: #5f6673;
  --line: rgba(29, 43, 79, 0.14);
  --green: #15564b;
  --green-dark: #0e4038;
  --coral: #c8553d;
  --teal: #2e7d77;
  --gold: #a08434;
  --card: #fffdf7;
  --shadow: 0 20px 55px rgba(29, 43, 79, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
}

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

button,
input,
select {
  font: inherit;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Type ============ */

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
}

h1,
h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(42px, 4.6vw, 62px);
}

h2 {
  font-size: clamp(30px, 3.2vw, 42px);
}

h3 {
  font-size: 19px;
  line-height: 1.25;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.overline {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: rgba(245, 239, 225, 0.88);
  backdrop-filter: blur(14px);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(29, 43, 79, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0;
}

.brand {
  color: var(--navy);
  font-family: Fraunces, Georgia, serif;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(35, 47, 71, 0.78);
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-cta {
  min-height: 42px;
  padding: 0 20px;
  font-size: 14px;
}

/* ============ Buttons ============ */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fdfbf5;
  background: var(--green);
  box-shadow: 0 14px 30px rgba(21, 86, 75, 0.24);
}

.button.primary:hover {
  background: var(--green-dark);
}

.full {
  width: 100%;
}

/* ============ Bands & torn edges ============ */

.band {
  position: relative;
}

.band-cream {
  background: var(--cream);
}

.band-white {
  background: var(--white-band);
}

.torn {
  height: 26px;
  background-repeat: repeat-x;
  background-size: 240px 26px;
}

/* jagged deckle edge drawn as an SVG data-URI, colored per direction */
.torn-to-white {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cpath d='M0 14 L14 9 L26 16 L41 8 L57 15 L73 10 L88 17 L104 9 L118 15 L133 8 L149 16 L165 10 L180 16 L196 9 L211 15 L226 10 L240 14 L240 26 L0 26 Z' fill='%23fdfbf5'/%3E%3C/svg%3E");
}

.torn-to-cream {
  background-color: var(--white-band);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cpath d='M0 14 L14 9 L26 16 L41 8 L57 15 L73 10 L88 17 L104 9 L118 15 L133 8 L149 16 L165 10 L180 16 L196 9 L211 15 L226 10 L240 14 L240 26 L0 26 Z' fill='%23f5efe1'/%3E%3C/svg%3E");
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.section.centered {
  text-align: center;
}

.section.centered > h2 {
  margin: 0 auto;
  max-width: 640px;
}

.section-kicker {
  max-width: 720px;
  margin: 18px auto 0;
}

/* ============ Hero ============ */

.hero-band {
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hero-copy > p {
  max-width: 540px;
  margin-top: 20px;
  font-size: 18px;
}

.hero-stamp {
  position: absolute;
  top: 6px;
  left: -34px;
  z-index: 1;
  color: var(--coral);
  opacity: 0.75;
  transform: rotate(-16deg);
}

.hero-route {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  color: rgba(160, 132, 52, 0.45);
  pointer-events: none;
}

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 560px;
  margin-top: 28px;
}

.hero-form input {
  flex: 1 1 150px;
  min-width: 0;
  height: 50px;
  border: 1px solid rgba(29, 43, 79, 0.2);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--card);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hero-form input::placeholder {
  color: rgba(95, 102, 115, 0.75);
}

.hero-form input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 86, 75, 0.14);
}

.hero-form .form-status {
  flex-basis: 100%;
}

.form-microcopy {
  margin-top: 10px;
  color: rgba(95, 102, 115, 0.85);
  font-size: 13.5px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.form-status.is-error {
  color: var(--coral);
}

/* Store badges */

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.store-badge-wrap {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 52px;
  padding: 8px 18px;
  border: 1.5px solid rgba(29, 43, 79, 0.28);
  border-radius: 10px;
  color: var(--navy);
  background: var(--card);
}

.store-badge > span {
  display: grid;
  gap: 1px;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.store-badge small {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(35, 47, 71, 0.66);
}

.badge-soon {
  color: rgba(95, 102, 115, 0.8);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hero visual */

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.hero-art {
  display: block;
  width: min(560px, 100%);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(29, 43, 79, 0.2));
  -webkit-mask-image: radial-gradient(ellipse at 58% 50%, #000 52%, rgba(0, 0, 0, 0.9) 66%, transparent 90%);
  mask-image: radial-gradient(ellipse at 58% 50%, #000 52%, rgba(0, 0, 0, 0.9) 66%, transparent 90%);
}

/* ============ How it works ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 26px;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

/* dashed connector between steps */
.steps li:not(:last-child)::after {
  position: absolute;
  top: 26px;
  left: calc(50% + 44px);
  width: calc(100% - 80px);
  content: "";
  border-top: 2px dashed rgba(160, 132, 52, 0.55);
}

.step-icon {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(29, 43, 79, 0.1), inset 0 0 0 1px var(--line);
}

.ic-teal { stroke: var(--teal); }
.ic-coral { stroke: var(--coral); }
.ic-teal-fill { fill: var(--teal); }
.ic-coral-fill { fill: var(--coral); }
.ic-gold-fill { fill: var(--gold); }

.step-num {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-top: 4px;
  border-radius: 50%;
  color: #fdfbf5;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--navy);
}

.steps h3 {
  margin-top: 6px;
  font-size: 17.5px;
}

.steps p {
  max-width: 230px;
  font-size: 14.5px;
  line-height: 1.5;
}

/* ============ Destinations ============ */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.destination-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 12px 30px rgba(29, 43, 79, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.destination-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(29, 43, 79, 0.12);
}

.destination-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
}

.destination-card > div {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 16px 10px 18px;
}

.destination-card h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 21px;
  font-weight: 650;
}

.destination-card p {
  font-size: 14.5px;
}

.chip {
  margin-top: 6px;
  padding: 4px 11px;
  white-space: nowrap;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(29, 43, 79, 0.07);
}

.chip-live {
  color: #fdfbf5;
  background: var(--green);
}

.more-card {
  background: #eef2ea;
}

.more-card h3 {
  font-size: 18.5px;
}

/* ============ Features ============ */

.feature-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(380px, 1.22fr);
  gap: 44px;
  align-items: center;
}

.feature-copy h2 {
  max-width: 420px;
}

.feature-list {
  display: grid;
  gap: 20px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
}

.feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fdfbf5;
  background: var(--green);
  box-shadow: 0 8px 18px rgba(21, 86, 75, 0.2);
}

.feature-list h3 {
  font-size: 16.5px;
}

.feature-list p {
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.5;
}

.feature-art-wrap {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-art {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ Proof band ============ */

.proof-wrap {
  padding-bottom: 88px;
}

.proof {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 34px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 42px;
  border-radius: 12px;
  color: #fdfbf5;
  background:
    radial-gradient(circle at 15% 10%, rgba(253, 251, 245, 0.1), transparent 30%),
    linear-gradient(135deg, #14544a, #0d423a);
  box-shadow: 0 24px 54px rgba(13, 66, 58, 0.24);
}

.proof h2 {
  color: #fdfbf5;
  font-size: clamp(23px, 2.6vw, 31px);
}

.proof p {
  margin-top: 10px;
  color: rgba(253, 251, 245, 0.82);
  font-size: 15.5px;
}

.proof-stamp {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 2px solid rgba(253, 251, 245, 0.5);
  border-radius: 50%;
  color: rgba(253, 251, 245, 0.8);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.proof-quote {
  margin: 0;
  padding-left: 32px;
  border-left: 1px solid rgba(253, 251, 245, 0.34);
}

.proof-quote div {
  color: #eec25f;
  font-size: 20px;
  letter-spacing: 5px;
}

.proof-quote p {
  margin-top: 8px;
  color: #fdfbf5;
  font-weight: 600;
}

.proof-quote cite {
  display: block;
  margin-top: 8px;
  color: rgba(253, 251, 245, 0.72);
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
}

/* ============ Early access / boarding pass ============ */

.waitlist-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 60px;
  align-items: center;
}

.waitlist-copy p {
  max-width: 480px;
  margin-top: 18px;
}

.signup-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

/* boarding-pass notches at the header perforation */
.signup-card::before,
.signup-card::after {
  position: absolute;
  top: 56px;
  width: 22px;
  height: 22px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
}

.signup-card::before {
  left: -12px;
  clip-path: inset(0 0 0 50%);
}

.signup-card::after {
  right: -12px;
  clip-path: inset(0 50% 0 0);
}

.pass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -8px;
  padding: 4px 8px 18px;
  border-bottom: 2px dashed rgba(29, 43, 79, 0.22);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pass-route {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
}

.signup-card label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signup-card input,
.signup-card select {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(29, 43, 79, 0.18);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  font-weight: 500;
  background: #fbf8f0;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.signup-card input:focus,
.signup-card select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 86, 75, 0.13);
}

/* ============ FAQ ============ */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 48px auto 0;
  text-align: left;
}

.faq-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.faq-grid h3 {
  font-size: 17px;
}

.faq-grid p {
  margin-top: 10px;
  font-size: 15px;
}

/* ============ Footer ============ */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 46px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 8px;
}

.site-footer p {
  font-size: 14.5px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: rgba(35, 47, 71, 0.75);
  font-size: 14.5px;
  font-weight: 600;
}

.site-footer nav a:hover {
  color: var(--green);
}

/* ============ Legal pages ============ */

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 90px;
}

.legal-page h1 {
  font-size: clamp(40px, 6vw, 64px);
}

.legal-page h2 {
  margin-top: 36px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.legal-page p {
  margin-top: 14px;
}

.legal-page ul {
  padding-left: 20px;
}

/* ============ Scroll reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */

@media (max-width: 1020px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-art {
    width: min(440px, 88%);
  }

  .hero-stamp {
    left: auto;
    right: -22px;
    top: -8px;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .steps li:not(:last-child)::after {
    display: none;
  }

  .destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-section,
  .waitlist-section {
    grid-template-columns: 1fr;
  }

  .proof {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .proof-quote {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: calc(100% - 28px);
    padding: 12px 0;
  }

  .brand {
    font-size: 23px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 64px 0;
  }

  .hero {
    gap: 26px;
    padding-bottom: 56px;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 46px);
  }

  h2 {
    font-size: clamp(27px, 7.6vw, 34px);
  }

  .hero-copy > p {
    font-size: 16.5px;
  }

  .hero-form {
    flex-direction: column;
  }

  .hero-form input,
  .hero-form .button {
    flex: none;
    width: 100%;
  }

  .store-row {
    gap: 10px;
  }

  .store-badge {
    min-height: 48px;
    padding: 6px 14px;
  }

  .store-badge > span {
    font-size: 14.5px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .destination-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .destination-card h3 {
    font-size: 18px;
  }

  .chip {
    padding: 3px 8px;
    font-size: 9.5px;
    letter-spacing: 0.04em;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .proof {
    width: min(100% - 28px, 1180px);
    padding: 28px;
  }

  .waitlist-section {
    gap: 36px;
  }

  .signup-card::before,
  .signup-card::after {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
