/* ============================================================
   Aloft — promo site (index / de)
   Tokens follow Design/DESIGN.md: Paper ground, Ink text, Signal accent
   used sparingly; Instrument Serif for places and moments, Geist for UI,
   Geist Mono for dates, codes and labels.
   ============================================================ */

@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; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/GeistMono-Variable.ttf") format("truetype-variations"), url("../fonts/GeistMono-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #F3F1EC;      /* page ground */
  --canvas: #E7E4DE;     /* recessed ground */
  --card: #FFFFFF;       /* surface */
  --surface: #ECE9E3;    /* chips, tiles */
  --ink: #121214;        /* text, primary buttons */
  --on-ink: #F3F1EC;
  --sub: #57575E;        /* secondary */
  --tert: #6B6B72;
  --signal: #FF5B24;     /* accent, ink text on top */
  --signal-text: #C2410C;/* accent as text on paper (contrast) */
  --line: rgba(18,18,20,0.10);
  --line-soft: rgba(18,18,20,0.06);
  --shadow: 0 18px 44px -24px rgba(40,30,15,0.28);
  --shadow-hover: 0 26px 56px -22px rgba(40,30,15,0.36);
  --glass: rgba(255,255,255,0.62);
  --stop1: #7D95FF; --stop2: #FF7A4A; --stop3: #5FD3A6; --stop4: #F2C14E;

  --serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --sans: "Geist", -apple-system, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C0D0F; --canvas: #121316; --card: #17181B; --surface: #202126;
    --ink: #F2F0EB; --on-ink: #0C0D0F; --sub: #A7A7AE; --tert: #8C8C94;
    --signal: #FF6A36; --signal-text: #FF6A36;
    --line: rgba(255,255,255,0.10); --line-soft: rgba(255,255,255,0.06);
    --shadow: 0 22px 48px -26px rgba(0,0,0,0.7); --shadow-hover: 0 30px 60px -24px rgba(0,0,0,0.8);
    --glass: rgba(34,35,40,0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0C0D0F; --canvas: #121316; --card: #17181B; --surface: #202126;
  --ink: #F2F0EB; --on-ink: #0C0D0F; --sub: #A7A7AE; --tert: #8C8C94;
  --signal: #FF6A36; --signal-text: #FF6A36;
  --line: rgba(255,255,255,0.10); --line-soft: rgba(255,255,255,0.06);
  --shadow: 0 22px 48px -26px rgba(0,0,0,0.7); --shadow-hover: 0 30px 60px -24px rgba(0,0,0,0.8);
  --glass: rgba(34,35,40,0.6);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* A low sun on the horizon: one warm wash top right, nothing else. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 55% at 88% -8%, color-mix(in srgb, var(--signal) 13%, transparent), transparent 60%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

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

/* Mono label with a sun dot, as "1 OF 3 · WHERE" in the app. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--sub);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.025em; line-height: 0.95; }
h1 em, h2 em { font-style: italic; color: var(--signal-text); }

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.brand .mark { width: 32px; height: 32px; flex: none; filter: drop-shadow(0 2px 5px rgba(40,30,15,0.25)); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links .lnk { font-size: 15px; color: var(--sub); font-weight: 500; transition: color .2s; }
.nav-links .lnk:hover { color: var(--ink); }
.nav-cta {
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 100px;
  color: var(--on-ink); background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .9; }
@media (max-width: 820px) { .nav-links .lnk { display: none; } .nav-links { gap: 12px; } }

/* ---------------- pinned hero ---------------- */
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pin-scroller { display: flex; flex-direction: column; }
.pin-panel { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.pin-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.pin-art { position: relative; display: flex; justify-content: center; }
.pin-phone-m { display: none; }

.pin h1 { font-size: clamp(56px, 8.4vw, 104px); margin: 22px 0 0; }
.pin p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--sub); max-width: 34ch; margin: 26px 0 0; line-height: 1.5; }
.pin .cta-row { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.pin .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sub); }

@media (max-width: 860px) {
  .pin-grid { grid-template-columns: 1fr; gap: 0; }
  .pin-sticky { display: none; }
  .pin-scroller { align-items: center; text-align: center; }
  .pin-panel { min-height: 0; padding: 44px 0; align-items: center; }
  .pin p.lead, .feature p { margin-left: auto; margin-right: auto; }
  .pin .cta-row, .microlist { justify-content: center; }
  .pin-phone-m { display: flex; justify-content: center; margin-bottom: 30px; }
  .pin-panel:first-child .pin-phone-m { display: none; }
}

/* Route strip under the hero copy: stop dots joined by a dashed line. */
.route { display: flex; align-items: center; gap: 10px; margin-top: 40px; font-family: var(--serif); font-size: 21px; flex-wrap: wrap; }
.route .stop { display: inline-flex; align-items: center; gap: 8px; }
.route .stop i { width: 10px; height: 10px; border-radius: 50%; }
.route .leg { width: 22px; border-top: 1.5px dashed var(--line); border-color: var(--tert); opacity: .5; }
@media (max-width: 860px) { .route { justify-content: center; } }

/* ---------------- device frame ---------------- */
/* Graphite on paper, light titanium on night. */
.device {
  position: relative; z-index: 1;
  width: min(300px, 74vw);
  border-radius: 48px; padding: 9px;
  background: linear-gradient(150deg, #34343a, #0b0b0d);
  box-shadow: 0 44px 90px -40px rgba(40,30,15,0.55), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .device {
    background: linear-gradient(150deg, #ECEAE4, #BDB9B0);
    box-shadow: 0 44px 90px -40px rgba(0,0,0,0.85), inset 0 0 0 1.5px rgba(0,0,0,0.15);
  }
}
:root[data-theme="dark"] .device {
  background: linear-gradient(150deg, #ECEAE4, #BDB9B0);
  box-shadow: 0 44px 90px -40px rgba(0,0,0,0.85), inset 0 0 0 1.5px rgba(0,0,0,0.15);
}
.device .screen {
  position: relative; width: 100%; aspect-ratio: 1206 / 2622;
  border-radius: 40px; overflow: hidden; background: var(--paper);
}
.device .screen picture { display: contents; }
.device .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 40px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
}
.halo { position: absolute; width: 120%; height: 70%; top: 18%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--signal) 20%, transparent), transparent 72%); filter: blur(14px); }
@media (max-width: 860px) { .halo { width: 100%; } }

/* ---------------- feature rows ---------------- */
.features { padding: clamp(30px, 6vw, 70px) 0; display: flex; flex-direction: column; gap: clamp(80px, 12vw, 150px); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature .copy { max-width: 31rem; }
.feature h2, .pin h2 { font-size: clamp(44px, 5.6vw, 68px); margin: 18px 0 0; }
.feature p, .pin .feat-copy p { color: var(--sub); font-size: clamp(16px, 1.8vw, 18px); margin: 20px 0 0; max-width: 36ch; }
.feature .art { display: flex; justify-content: center; position: relative; }
.feature:nth-child(odd) .art { order: -1; }
.microlist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.microlist li {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sub); padding: 7px 13px; border-radius: 100px;
  background: var(--card); border: 1px solid var(--line-soft);
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .feature .art { order: -1; }
  .feature .copy { order: 0; margin: 0 auto; }
}

/* ---------------- grid of small features ---------------- */
.grid-section { padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px); }
.grid-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(36px, 5vw, 58px); }
.grid-head h2 { font-size: clamp(40px, 5vw, 60px); margin-top: 16px; }
.grid-head p { color: var(--sub); margin: 18px 0 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border-radius: 26px; padding: 26px 24px 28px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: var(--surface); margin-bottom: 18px; }
.card .ico svg { width: 23px; height: 23px; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--sub); font-size: 14.5px; margin: 8px 0 0; line-height: 1.55; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .cards { grid-template-columns: 1fr; } }

/* ---------------- pricing ---------------- */
.pricing { padding: clamp(50px, 8vw, 96px) 0; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
.plan { background: var(--card); border-radius: 30px; padding: 32px 30px 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro { background: var(--ink); color: var(--on-ink); }
.plan .eyebrow { color: inherit; opacity: .75; }
.plan h3 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; letter-spacing: -0.02em; margin-top: 16px; }
.plan h3 em { color: var(--signal); }
.plan ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; font-size: 15.5px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--signal); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan .prices { margin-top: auto; padding-top: 28px; display: grid; gap: 8px; }
.plan .price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0 0; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.plan .price b { font-family: var(--sans); font-size: 17px; letter-spacing: 0; text-transform: none; font-weight: 600; }
.plan .chip { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 100px; background: var(--signal); color: #121214; font-size: 10.5px; }
.plan .note { font-size: 13px; color: var(--sub); margin: 14px 0 0; }
.plan.pro .note { color: color-mix(in srgb, var(--on-ink) 65%, transparent); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------------- CTA ---------------- */
.cta-band { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 8vw, 100px); }
.cta-inner {
  position: relative; overflow: hidden; background: var(--card);
  border-radius: 38px; box-shadow: var(--shadow);
  padding: clamp(48px, 7vw, 80px) 26px; text-align: center;
}
/* The icon's horizon and sun, drawn large behind the copy. */
.cta-inner .sky { position: absolute; inset: auto 0 0 0; height: 70%; z-index: 0; pointer-events: none; opacity: .9; }
.cta-inner > *:not(.sky) { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(48px, 6.4vw, 84px); margin-top: 18px; }
.cta-inner p { color: var(--sub); margin: 20px auto 0; max-width: 42ch; }
.cta-inner .badge-wrap { margin-top: 34px; display: flex; justify-content: center; }

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

/* ---------------- footer ---------------- */
footer { border-top: 1px solid var(--line-soft); padding: 46px 0 60px; }
.foot-grid { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { font-size: 14px; color: var(--sub); transition: color .2s; }
.foot-links a:hover { color: var(--ink); }
.copy-line { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--sub); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
