/* ============================================================
   Aloft — home page
   A travel magazine feature: photographs carry the page, the app
   appears in real device frames, type is Instrument Serif set large
   with Geist for reading. The legal pages have their own css/legal.css.
   ============================================================ */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/Geist-Variable.ttf") format("truetype-variations"), url("../fonts/Geist-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --cloud: #F3F5F6;       /* page ground: the sky above the weather */
  --ink: #0F1D30;         /* dusk navy, the device frames' blue */
  --sub: #4C5A6C;
  --line: rgba(15, 29, 48, 0.14);
  --night: #0B1626;       /* the dark band behind the devices */
  --on-night: #EEF2F6;
  --sub-night: #9FB0C4;
  --signal: #FF5B24;      /* the app's accent */
  --signal-text: #C2410C;
  --stop1: #7D95FF; --stop2: #FF7A4A; --stop3: #5FD3A6; --stop4: #F2C14E; --stop5: #E58BD0;

  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cloud: #08111D; --ink: #EEF2F6; --sub: #9FB0C4;
    --line: rgba(238, 242, 246, 0.16);
    --night: #0F1D30; --signal-text: #FF7A4A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --cloud: #08111D; --ink: #EEF2F6; --sub: #9FB0C4;
  --line: rgba(238, 242, 246, 0.16);
  --night: #0F1D30; --signal-text: #FF7A4A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.display { font-size: clamp(52px, 8.6vw, 132px); line-height: 0.9; letter-spacing: -0.03em; }
.display i { font-style: italic; }
.lead { color: var(--sub); font-size: clamp(17px, 1.5vw, 20px); max-width: 46ch; }

/* ---------------- header ---------------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #0F1D30;                       /* over the hero photograph, in both themes */
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.site-head.scrolled {
  color: var(--ink);
  background: color-mix(in srgb, var(--cloud) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 30px; letter-spacing: -0.02em; line-height: 1; }
.brand img { width: 34px; height: 34px; }
.site-links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 34px); font-size: 15px; font-weight: 500; }
.site-links a:not(.pill):hover { text-decoration: underline; text-underline-offset: 5px; }
.pill {
  background: #0F1D30; color: #fff; font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 100px; transition: background-color .2s;
}
.pill:hover { background: var(--signal); }
.scrolled .pill { background: var(--ink); color: var(--cloud); }
.scrolled .pill:hover { background: var(--signal); color: #fff; }
@media (max-width: 720px) { .site-links a:not(.pill) { display: none; } }

/* ---------------- parallax photographs ----------------
   The box crops; the image is a fifth taller and slides inside it as the page scrolls. */
.px { position: relative; overflow: hidden; }
.px img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: translate; }
[data-float] { will-change: translate; }

/* ---------------- device frames ----------------
   The frame is a transparent PNG-style cut-out laid over the screenshot.
   Screen insets are measured from each frame image. */
.dev { position: relative; filter: drop-shadow(0 34px 40px rgba(8, 17, 29, 0.34)); }
.dev-screen { position: absolute; overflow: hidden; background: #000; }
.dev-screen picture { display: contents; }
.dev-screen img { width: 100%; height: 100%; object-fit: cover; }
.dev-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.dev-iphone { aspect-ratio: 978 / 2000; }
.dev-iphone .dev-screen { left: 5.1%; top: 2.4%; width: 89.8%; height: 95.2%; border-radius: 14.9% / 6.9%; }

.dev-ipad { aspect-ratio: 1533 / 2000; }
.dev-ipad .dev-screen { left: 5%; top: 4.05%; width: 90%; height: 91.9%; border-radius: 2.2% / 1.7%; }

.dev-fold { aspect-ratio: 1435 / 2000; }
.dev-fold .dev-screen { left: 5.4%; top: 3.55%; width: 89.2%; height: 92.9%; border-radius: 1.4% 15% 15% 1.4% / 1% 10.5% 10.5% 1%; }
.dev-fold .dev-screen img { object-position: left center; }

.dev-macbook { aspect-ratio: 2000 / 1316; }
.dev-macbook .dev-screen {
  left: 10.8%; top: 11.25%; width: 78.4%; height: 77.5%; border-radius: 1% 1% 0 0 / 1.5% 1.5% 0 0;
  background: linear-gradient(160deg, #24456e, #0d1b2e 70%);
}
/* The Mac screenshot is a window: sit it on the desktop, clear of the notch. */
.dev-macbook .dev-screen img {
  position: absolute; left: 3.5%; top: 5.2%; width: 93%; height: auto;
  border-radius: 1.1% / 1.7%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------------- hero ---------------- */
.hero { position: relative; color: #0F1D30; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { object-position: 70% 40%; }
.hero::before {                       /* a pale wash so the type reads on the clouds */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(243, 245, 246, 0.82) 0%, rgba(243, 245, 246, 0.35) 48%, rgba(243, 245, 246, 0) 72%),
    linear-gradient(0deg, var(--cloud) 0%, rgba(243, 245, 246, 0) 22%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 80px); align-items: end;
  min-height: min(100svh, 980px); padding-top: 120px;
}
.hero-copy { padding-bottom: clamp(56px, 9vh, 110px); }
.hero h1 { font-size: clamp(60px, 10.4vw, 164px); line-height: 0.86; letter-spacing: -0.035em; }
.hero h1 span { display: block; }
.hero h1 .l2 { font-style: italic; padding-left: 0.42em; }
.hero-lead { margin-top: clamp(22px, 3vw, 36px); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; max-width: 36ch; color: #1F3048; }
.hero-cta { margin-top: clamp(24px, 3vw, 36px); display: flex; align-items: center; gap: 18px 22px; flex-wrap: wrap; }
.hero-cta p { font-size: 15px; font-weight: 500; color: #1F3048; }
.hero-phone { width: clamp(230px, 23vw, 330px); margin-bottom: clamp(-150px, -9vw, -90px); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero-lead, .hero-cta { animation: rise .9s cubic-bezier(.2, .7, .1, 1) both; }
  .hero h1 .l2 { animation-delay: .1s; }
  .hero-lead { animation-delay: .22s; }
  .hero-cta { animation-delay: .3s; }
  .hero-phone { animation: land 1.2s cubic-bezier(.2, .7, .1, 1) .15s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes land { from { opacity: 0; transform: translateY(90px) rotate(3deg); } }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding-top: 112px; }
  .hero-copy { padding-bottom: 0; }
  .hero-phone { width: min(250px, 64vw); margin: 40px auto -90px; }
  .hero::before { background:
    linear-gradient(180deg, rgba(243, 245, 246, 0.9) 0%, rgba(243, 245, 246, 0.72) 42%, rgba(243, 245, 246, 0) 70%),
    linear-gradient(0deg, var(--cloud) 0%, rgba(243, 245, 246, 0) 16%); }
}

/* ---------------- App Store badge ---------------- */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px; padding: 10px 20px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3); transition: transform .2s;
}
.appstore:hover { transform: translateY(-2px); }
.appstore svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.appstore .txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore small { font-size: 11px; }
.appstore .txt span { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------------- opening statement and destinations ---------------- */
.opening { padding: clamp(150px, 17vw, 230px) 0 clamp(70px, 9vw, 120px); }
.opening-text { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -0.02em; max-width: 19em; text-wrap: balance; }
.opening-text i { color: var(--signal-text); }

.route { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-top: clamp(28px, 4vw, 44px); font-size: 16px; font-weight: 500; }
.route li { display: inline-flex; align-items: center; gap: 12px; }
.route li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.route li + li { padding-left: 46px; position: relative; }
.route li + li::after { content: ""; position: absolute; left: 0; top: 50%; width: 34px; border-top: 2px dotted var(--sub); opacity: .6; }

.places { display: grid; grid-template-columns: 1.1fr 0.9fr 1fr 1.2fr; gap: clamp(10px, 1.6vw, 22px); align-items: start; margin-top: clamp(56px, 8vw, 110px); }
.places-col { display: grid; gap: clamp(22px, 3vw, 44px); }
.places-col:nth-child(2) { margin-top: 20%; }
.places-col:nth-child(3) { margin-top: 7%; }
.places-col:nth-child(4) { margin-top: 28%; }
.place .px { border-radius: 4px; aspect-ratio: 4 / 5; }
.place figcaption { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; }
.places-col:nth-child(1) .place:nth-child(2) .px, .places-col:nth-child(3) .place:nth-child(1) .px { aspect-ratio: 3 / 4; }
.places-col:nth-child(2) .place:nth-child(1) .px, .places-col:nth-child(3) .place:nth-child(2) .px { aspect-ratio: 3 / 5; }
.places-col:nth-child(4) .place:nth-child(1) .px { aspect-ratio: 5 / 4; }
@media (max-width: 760px) {
  .places { grid-template-columns: 1fr 1fr; }
  .places-col:nth-child(n) { margin-top: 0; }
  .places-col:nth-child(even) { margin-top: 18%; }
}

/* Arrivals, only when motion is welcome (the `motion` class is set before first paint). */
.motion .route li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(var(--i) * 0.22s); }
.motion .route li::before { transform: scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 0.22s + 0.1s); }
.motion .route li + li::after { width: 0; transition: width .5s ease; transition-delay: calc(var(--i) * 0.22s - 0.12s); }
.motion .route.in li { opacity: 1; transform: none; }
.motion .route.in li::before { transform: none; }
.motion .route.in li + li::after { width: 34px; }

.motion .place .px { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.2, .7, .1, 1); }
.motion .place .px img { scale: 1.25; transition: scale 1.6s cubic-bezier(.2, .7, .1, 1); }
.motion .place figcaption { opacity: 0; transform: translateY(10px); transition: opacity .7s ease .5s, transform .7s ease .5s; }
.motion .place.in .px { clip-path: inset(0); }
.motion .place.in .px img { scale: 1; }
.motion .place.in figcaption { opacity: 1; transform: none; }
.motion .places-col:nth-child(2) .place .px, .motion .places-col:nth-child(2) .place .px img { transition-delay: .12s; }
.motion .places-col:nth-child(3) .place .px, .motion .places-col:nth-child(3) .place .px img { transition-delay: .24s; }
.motion .places-col:nth-child(4) .place .px, .motion .places-col:nth-child(4) .place .px img { transition-delay: .36s; }

/* ---------------- the five steps ---------------- */
.steps { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 150px); }
.steps-head { max-width: 15em; margin-bottom: clamp(60px, 9vw, 130px); }

.step { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 9vw, 140px); align-items: center; }
.step + .step { margin-top: clamp(110px, 14vw, 200px); }
.step:nth-of-type(even) .step-art { order: 2; }

.step-art { position: relative; }
.step-photo { width: 84%; aspect-ratio: 4 / 5; border-radius: 4px; }
.step-art .dev { position: absolute; right: 0; bottom: -9%; width: 42%; }
.step:nth-of-type(even) .step-photo { margin-left: auto; }
.step:nth-of-type(even) .step-art .dev { right: auto; left: 0; }
.step-where { position: absolute; top: 14px; left: 16px; color: #fff; font-family: var(--serif); font-style: italic; font-size: 19px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.step:nth-of-type(even) .step-where { left: calc(16% + 16px); }

.step-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 24px; }
.pin {                                     /* the app's numbered stop pin */
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--c); color: #0F1D30; font-family: var(--sans); font-style: normal; font-weight: 600; font-size: 15px;
}
.step h2 { font-size: clamp(44px, 5.4vw, 80px); line-height: 0.94; letter-spacing: -0.03em; margin-top: 20px; }
.step-copy > p { color: var(--sub); margin-top: 22px; max-width: 40ch; font-size: clamp(17px, 1.4vw, 19px); }

@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 0; }
  .step:nth-of-type(even) .step-art { order: 0; }
  .step-art { margin-bottom: calc(9% + 44px); }
}

/* ---------------- every screen ---------------- */
.screens { background: var(--night); color: var(--on-night); padding: clamp(80px, 11vw, 160px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.screens-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(30px, 6vw, 90px); align-items: end; }
.screens-head .lead { color: var(--sub-night); }
/* One scale for all four, about 0.15% of the stage per millimetre, largest to smallest:
   MacBook Pro 14" (lid 313 mm; the lid is 81% of its image), iPad (178 mm), iPhone Pro (72 mm tall 150),
   iPhone Duo closed (about 85 mm, tall 120). */
.stage { position: relative; aspect-ratio: 100 / 40; margin-top: clamp(50px, 7vw, 100px); }
.stage .dev { position: absolute; bottom: 0; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55)); }
.stage .dev-macbook { left: 2.5%; width: 59.2%; }
.stage .dev-ipad { left: 50.5%; width: 27.9%; }
.stage .dev-iphone { left: 75.9%; width: 11.5%; }
.stage .dev-fold { left: 84.1%; width: 13.4%; z-index: 1; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: clamp(56px, 7vw, 96px); }
.trio h3 { font-size: 34px; line-height: 1; }
.trio p { color: var(--sub-night); margin-top: 12px; font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) {
  .screens-head, .trio { grid-template-columns: 1fr; }
  .stage { margin-left: calc(var(--gutter) * -0.5); margin-right: calc(var(--gutter) * -0.5); }
}

/* ---------------- the rest ---------------- */
.rest { padding: clamp(80px, 11vw, 160px) 0 clamp(50px, 7vw, 90px); }
.rest-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(36px, 7vw, 110px); align-items: start; }
.rest-head { position: sticky; top: 110px; }
.rest-head h2 { font-size: clamp(44px, 5.4vw, 80px); line-height: 0.94; letter-spacing: -0.03em; }
.rest-head .lead { margin-top: 22px; }
.rest-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.rest-list li { padding: 22px 0 26px; border-top: 1px solid var(--line); }
.rest-list h3 { font-size: 28px; line-height: 1.05; }
.rest-list p { color: var(--sub); font-size: 15.5px; margin-top: 8px; }
@media (max-width: 860px) {
  .rest-grid { grid-template-columns: 1fr; }
  .rest-head { position: static; }
}
@media (max-width: 560px) { .rest-list { grid-template-columns: 1fr; } }

/* ---------------- pricing ---------------- */
.pricing { padding: clamp(70px, 10vw, 150px) 0 clamp(80px, 10vw, 150px); }
.pricing-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(30px, 6vw, 90px); align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }

.price-row {
  display: grid; grid-template-columns: clamp(110px, 13vw, 190px) minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px); align-items: center;
  padding: clamp(26px, 3.4vw, 46px) 0; border-top: 1px solid var(--line);
}
.price-row:last-of-type { border-bottom: 1px solid var(--line); }
.price-photo { aspect-ratio: 4 / 5; border-radius: 4px; }
.price-plan { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.chip { background: var(--signal); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 100px; }
.price-amount { font-family: var(--serif); font-size: clamp(84px, 14.5vw, 216px); line-height: 0.82; letter-spacing: -0.045em; margin-top: 10px; white-space: nowrap; }
.price-amount .count { font-variant-numeric: tabular-nums; }
.price-amount sup { font-size: 0.42em; vertical-align: 0.95em; letter-spacing: -0.02em; margin-right: 0.04em; }
.price-amount small { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--sub); margin-left: 6px; }
.price-claim h3 { font-size: clamp(30px, 3.5vw, 50px); line-height: 1; letter-spacing: -0.02em; }
.price-claim h3 i { color: var(--signal-text); }
.price-claim p { color: var(--sub); margin-top: 12px; font-size: 16px; max-width: 34ch; }
@media (max-width: 860px) {
  .price-row { grid-template-columns: 96px minmax(0, 1fr); align-items: end; }
  .price-claim { grid-column: 1 / -1; }
}

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); margin-top: clamp(50px, 7vw, 90px); }
.plans h3 { font-size: 34px; line-height: 1; }
.plans ul { margin-top: 18px; }
.plans li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plans-note { color: var(--sub); font-size: 14px; margin-top: 30px; max-width: 60ch; }
@media (max-width: 860px) { .pricing-head, .plans { grid-template-columns: 1fr; } }

/* ---------------- closing ---------------- */
.closing { position: relative; isolation: isolate; color: #fff; padding: clamp(110px, 15vw, 210px) 0 clamp(130px, 21vw, 300px); }
.closing-photo { position: absolute; inset: 0; z-index: -2; }
.closing-photo img { object-position: 70% 60%; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 17, 29, 0.72) 0%, rgba(8, 17, 29, 0.4) 45%, rgba(8, 17, 29, 0.05) 75%); }
.closing h2 { font-size: clamp(64px, 12vw, 190px); line-height: 0.84; letter-spacing: -0.04em; font-style: italic; max-width: 4.6em; }
.closing p { margin-top: 26px; max-width: 32ch; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, 0.92); }
.closing .appstore { margin-top: 34px; }
@media (max-width: 760px) { .closing::before { background: linear-gradient(180deg, rgba(8, 17, 29, 0.74) 0%, rgba(8, 17, 29, 0.5) 60%, rgba(8, 17, 29, 0.15) 100%); } }

/* ---------------- footer ---------------- */
.site-foot { padding: 44px 0 56px; font-size: 14px; color: var(--sub); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 20px 30px; flex-wrap: wrap; }
.site-foot .brand { color: var(--ink); font-size: 26px; }
.site-foot .brand img { width: 28px; height: 28px; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.site-foot a:hover { color: var(--ink); }
.credits { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; }
.credits a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
