/* ===========================================================================
 * Vestris — launch landing (v3)
 * Three sections. Watercolor leads: a sky that clouds part across, a vine that
 * grows down the page, a clickable console, and a house-on-the-hill close.
 * Palette: cream #F5F3EE · deep viney green · ink #1a1a1a.
 * Type: Instrument Serif (display) · Instrument Sans (body) · JetBrains Mono (labels)
 * =========================================================================== */
:root {
  --cream: #f5f3ee;
  --cream-2: #efece4;
  --cream-card: #fcfbf7;
  --ink: #1a1a1a;
  --ink-soft: #54534c;
  --ink-faint: #8d8b80;

  /* Greens — matched to the Vestris app (globals.css --color-secondary family) */
  --green-darkest: #002112;
  --green-deep: #436651;   /* THE Vestris green — buttons, nav CTA, panels */
  --green: #436651;
  --green-mid: #2c4e3b;     /* darker — hovers, accents, details */
  --green-leaf: #5e7b3d;
  --green-wash: #e7f5ec;
  --green-container: #c5ecd2;

  /* tweakable */
  --hero-sub-color: #2c4e3b;
  --hero-sub-font: "Instrument Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-lux: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
.serif { font-family: var(--font-serif); font-weight: 400; }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--green-mid);
}

/* ---------------- NAV (compact centered cluster → glassmorphism hanging pill on scroll) ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center;
  padding: 18px 16px; pointer-events: none;
  transition: padding 0.5s var(--ease-out);
}
/* cream vignette behind the transparent top-state nav — gives the links/buttons
   contrast over the open sky; fades out once the frosted bar takes over on scroll */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 150px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(245,243,238,0.85) 0%, rgba(245,243,238,0.42) 44%, rgba(245,243,238,0) 100%);
  opacity: 1; transition: opacity 0.55s var(--ease-out);
}
.nav.scrolled::before { opacity: 0; }
.nav-bar {
  pointer-events: auto; width: auto; max-width: 100%;
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap; gap: 22px;
  padding: 8px 10px 8px 4px;
  border-radius: 14px;
  background: rgba(247,245,240,0);
  border: 1px solid rgba(26,26,26,0);
  box-shadow: 0 0 0 rgba(40,55,45,0);
  backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
  transition: background 0.55s var(--ease-out), border-color 0.55s var(--ease-out),
              box-shadow 0.55s var(--ease-out), backdrop-filter 0.55s var(--ease-out),
              -webkit-backdrop-filter 0.55s var(--ease-out);
}
.nav.scrolled { padding-top: 14px; }
.nav.scrolled .nav-bar {
  background: rgba(248,246,241,0.55);
  border-radius: 14px;
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 12px 40px -14px rgba(40,55,45,0.34), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
}
.nav-logo { display: flex; align-items: center; gap: 0; padding: 6px 6px 6px 6px; margin-right: 16px; }
.nav-logo .compass { width: 24px; height: 31px; color: var(--green-deep); flex-shrink: 0; }
.nav-logo .wordmark { width: 112px; height: 33px; color: var(--green-deep); margin-left: -8px; }
.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 16px; }
.nav-bar .nav-signin { padding: 10px 18px; font-size: 13.5px; border-radius: 4px; }
.nav-flex { display: none; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; color: var(--green-deep); padding: 9px 15px;
  position: relative; border-radius: 6px; transition: color 0.25s var(--ease-out), background 0.25s ease;
}
.nav-link:hover { color: var(--green-mid); background: rgba(255,255,255,0.4); }
.nav-bar .nav-cta { margin: 0; align-self: center; padding: 10px 18px; font-size: 13.5px; border-radius: 4px; transition: filter 0.25s ease, transform 0.15s ease; }
.nav-cta .arr { display: none; }

/* ---------------- VINE LAYER ---------------- */
.page-vines { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.page-vines svg { position: absolute; overflow: visible; }

/* ---------------- 1 · HERO (pinned, clouds part) ---------------- */
/* min-height in px (not just vh) so shortening the window scrolls the page
   rather than squeezing the headline up toward the nav */
.hero { position: relative; height: 64vh; min-height: 600px; z-index: 2; }
.hero-pin {
  position: sticky; top: 0; height: 100%; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  /* anchor the headline a fixed, clearly-visible distance below the nav so the
     gap never collapses as the viewport height changes */
  padding-top: 132px;
}
.hero-sky {
  position: absolute; inset: 0; z-index: 0;
  background: url("assets/sky-clear-desktop.png") no-repeat center top; background-size: cover;
  -webkit-mask: linear-gradient(180deg, #000 64%, transparent 100%);
          mask: linear-gradient(180deg, #000 64%, transparent 100%);
}
/* cream wash that opens negative space behind the headline — eases the busy sky
   toward the edges/base so the text sits on cleaner ground (more breathing room) */
.hero-sky::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(115% 78% at 50% 23%, rgba(245,243,238,0.82) 0%, rgba(245,243,238,0.4) 33%, rgba(245,243,238,0) 62%),
    linear-gradient(180deg, rgba(245,243,238,0.55) 0%, rgba(245,243,238,0) 25%);
}
.cloud-field { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
.cloud { position: absolute; will-change: transform, opacity; user-select: none; }
/* (vignette removed) */

.hero-inner { position: relative; z-index: 6; max-width: 860px; padding: 0 20px; }
.hero-wordmark {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 24ch; margin: 0 auto 22px;
  color: var(--green-deep);
  text-shadow: 0 2px 18px rgba(245,243,238,0.7), 0 1px 2px rgba(245,243,238,0.6);
}
.hero-sub {
  font-family: var(--hero-sub-font); font-weight: 400;
  font-size: clamp(15px, 1.7vw, 19px); color: var(--hero-sub-color); margin: 0 auto 36px; max-width: 56ch;
  text-shadow: 0 1px 12px rgba(245,243,238,0.9), 0 1px 3px rgba(245,243,238,0.8);
}

/* waitlist — boxy, matches the architectural nav grid */
.waitlist { width: min(480px, 92vw); margin: 0 auto; }
.waitlist-pill {
  display: flex; align-items: stretch; background: var(--cream-card);
  border: none; border-radius: 0; overflow: visible; padding: 0;
  display: flex; align-items: stretch; gap: 8px; background: none;
  box-shadow: none;
  transition: none;
}
.waitlist-pill:focus-within { border-color: transparent; }
.waitlist-pill input {
  flex: 1; min-width: 0; border: 1px solid transparent; border-radius: 4px; outline: none;
  background: var(--cream-card); box-shadow: 0 16px 44px -24px rgba(40,55,45,0.36);
  padding: 14px 16px; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  transition: border-color 0.2s ease;
}
.waitlist-pill input::placeholder { color: var(--ink-faint); }
.waitlist-pill input:focus { border-color: var(--green-mid); }
.waitlist-pill .btn { flex-shrink: 0; }
.waitlist-success { display: none; padding: 12px; text-align: center; font-family: var(--font-serif); font-size: 19px; color: var(--green-deep); }
.waitlist.done .waitlist-pill { display: none; }
.waitlist.done .waitlist-success { display: block; }

.yc-line {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 22px;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0.01em; color: var(--ink-soft);
  padding: 7px 13px; border: 1px solid rgba(26,26,26,0.18); border-radius: 9999px;
  background: rgba(252,251,247,0.6);
}
a.yc-line { transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
a.yc-line:hover { border-color: rgba(26,26,26,0.32); background: rgba(252,251,247,0.85); color: var(--ink); }
.yc-line .yc-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px;
  border-radius: 3px; background: #fb651e; color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 11px;
}

/* hero entrance — base visible; class added by JS so content is never hidden */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- section heads ---------------- */
.section { position: relative; padding: 0 clamp(18px, 4vw, 40px); z-index: 3; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.sec-title {
  font-family: var(--font-serif); font-weight: 400; font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); margin: 0;
}
.sec-sub { font-size: 18px; color: var(--ink-soft); margin: 18px auto 0; max-width: 50ch; }

/* ---------------- 2 · DEMO wrap ---------------- */
.demo-section { padding-top: 22px; padding-bottom: 8vh; position: relative; z-index: 1; scroll-margin-top: 86px; }
#demo { scroll-margin-top: 86px; }
/* the demo's own watercolor backdrop — connects hero sky into the section, fades to cream at the base so the arrival sky can pick it up */
.demo-section::before {
  content: ""; position: absolute; inset: -40px 0 0; z-index: 0; pointer-events: none;
  background: url("assets/sky-clear-desktop.png") no-repeat center top; background-size: 130% auto;
  opacity: 0.22;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 18%, #000 62%, transparent 100%);
          mask: linear-gradient(180deg, transparent 0, #000 18%, #000 62%, transparent 100%);
}
.demo-section > * { position: relative; z-index: 1; }
.demo-stage { max-width: 1340px; margin: 0 auto; position: relative; }

/* live product console embedded in a browser frame; sized so the next section peeks below */
.demo-frame {
  background: #fbf9f7; border: 1px solid rgba(26,26,26,0.12); border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 110px -44px rgba(40,55,45,0.5), 0 12px 34px -18px rgba(40,55,45,0.2);
}
.demo-chrome {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px;
  background: #f1efe9; border-bottom: 1px solid rgba(26,26,26,0.09);
}
.demo-chrome .dc-dot { width: 11px; height: 11px; border-radius: 50%; background: #d6d3cb; }
.demo-chrome .dc-dot:nth-child(1) { background: #e6a23c; }
.demo-chrome .dc-dot:nth-child(2) { background: #cfcabb; }
.demo-chrome .dc-dot:nth-child(3) { background: #b7c3a8; }
.demo-chrome .dc-bar {
  margin: 0 auto; padding: 4px 18px; border-radius: 6px;
  background: #fbf9f7; border: 1px solid rgba(26,26,26,0.07);
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.02em;
}
.demo-screen { position: relative; width: 100%; overflow: hidden; aspect-ratio: 19 / 10; }
.demo-iframe {
  display: block; width: 100%; height: 100%; border: 0; background: #f7f4ef;
}
/* ===========================================================================
 * Mobile-only blocks — hidden on desktop, switched on at <=640px:
 *   .nav-burger / .nav-menu  → hamburger nav
 *   .demo-native             → tappable guided pipeline (replaces the iframe)
 * =========================================================================== */

/* hamburger button */
.nav-burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; cursor: pointer;
  background: transparent; border: 1px solid rgba(26,26,26,0.14); -webkit-tap-highlight-color: transparent;
}
.nav-burger span {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--green-deep);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}
.nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* dropdown menu */
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column; gap: 2px; padding: 8px 12px 14px;
  background: rgba(248,246,241,0.97); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(26,26,26,0.08); box-shadow: 0 22px 44px -22px rgba(40,55,45,0.34);
  transform: translateY(-10px); opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.nav.menu-open .nav-menu { transform: none; opacity: 1; pointer-events: auto; }
.nav-menu-link {
  font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--green-deep);
  padding: 13px 10px; border-radius: 8px; border-bottom: 1px solid rgba(26,26,26,0.05);
}
.nav-menu-link:active { background: rgba(26,26,26,0.04); }
.nav-menu .nav-menu-cta { margin-top: 12px; width: 100%; justify-content: center; padding: 14px; font-size: 14px; }

/* native guided pipeline */
.demo-native { display: none; }
.dn-card {
  background: var(--cream-card); border: 1px solid rgba(26,26,26,0.1); border-radius: 16px;
  padding: 20px 18px; box-shadow: 0 40px 90px -50px rgba(40,55,45,0.45);
}
.dn-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.dn-kicker { font-family: var(--font-serif); font-size: 23px; color: var(--green-deep); }
.dn-hint { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.dn-steps { list-style: none; margin: 0; padding: 0; }
.dn-step { position: relative; padding-left: 26px; }
.dn-step::before { content: ""; position: absolute; left: 5px; top: 24px; bottom: -2px; width: 1.5px; background: rgba(26,26,26,0.12); }
.dn-step:last-of-type::before { display: none; }
.dn-dot {
  position: absolute; left: 0; top: 16px; width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid #c7c3b5; background: var(--cream-card); box-sizing: border-box;
}
.dn-step.done .dn-dot { background: var(--green-deep); border-color: var(--green-deep); }
.dn-step.active .dn-dot { background: var(--green-deep); border-color: var(--green-deep); box-shadow: 0 0 0 4px rgba(67,102,81,0.16); }
.dn-step.pending .dn-label { color: var(--ink-soft); }
.dn-step-head {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; padding: 12px 0; font-family: var(--font-sans); font-size: 15.5px; font-weight: 500; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.dn-chev { margin-left: auto; color: var(--ink-faint); font-size: 19px; line-height: 1; transition: transform 0.28s var(--ease-out); }
.dn-step.is-open .dn-chev { transform: rotate(90deg); color: var(--green-deep); }
.dn-body { max-height: 0; overflow: hidden; transition: max-height 0.34s var(--ease-out); }
.dn-step.is-open .dn-body { max-height: 260px; }
.dn-body p { margin: 0 0 14px; font-family: var(--font-sans); font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.dn-upnext { margin: 12px 0 0; padding-top: 14px; border-top: 1px solid rgba(26,26,26,0.08); font-family: var(--font-mono); font-size: 11px; line-height: 1.7; color: var(--ink-faint); }
.dn-upnext span { color: var(--green-deep); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 7px; }
.dn-cta { width: 100%; justify-content: center; margin-top: 18px; padding: 14px; font-size: 14px; }

/* frosted bridge that blurs the demo → arrival seam */
.seam-blur { display: none; }
/* peek cue — tells people there's more below the fold */
.demo-peek {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: fit-content; margin: 18px auto 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.2s ease;
}
.demo-peek:hover { color: var(--green); }
.demo-peek-arr { font-size: 14px; animation: peekBob 1.8s ease-in-out infinite; }
@keyframes peekBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------------- 3 · ARRIVAL ---------------- */
.arrival {
  position: relative; min-height: 66vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: left;
  padding: 9vh 20px 5vh; overflow: hidden; z-index: 2;
  background: linear-gradient(180deg, rgba(245,243,238,0) 0, rgba(245,243,238,0.82) 6vh, var(--cream) 11vh, rgba(245,243,238,0) 26vh);
}
.arrival-scene {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/ending-scene-desktop-wide.png") no-repeat center bottom; background-size: cover;
  /* mute the vivid watercolor so it sits with the calm hero/cream palette */
  filter: saturate(0.74) brightness(1.04) contrast(0.98);
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 38%, #000 74%, transparent 99%);
          mask: linear-gradient(180deg, transparent 0, #000 38%, #000 74%, transparent 99%);
  transform-origin: center 72%;
  animation: kenBurns 24s ease-in-out infinite alternate;
}
.arrival-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  /* cream wash to pull the scene toward the rest of the page's calm ground */
  background:
    linear-gradient(180deg, rgba(245,243,238,0.5) 0%, rgba(245,243,238,0.12) 34%, rgba(245,243,238,0.22) 100%),
    radial-gradient(150% 85% at 50% 32%, transparent 70%, rgba(245,243,238,0.18) 100%);
}
@keyframes kenBurns { from { transform: scale(1.03); } to { transform: scale(1.1); } }
.arrival-inner { position: relative; z-index: 3; width: min(680px, 92vw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------------- BOOK reveal — calendar unfolds on the watercolor area above the house ---------------- */
.book-reveal {
  width: min(1000px, 96vw); margin: 0 auto; scroll-margin-top: 90px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.85s var(--ease-lux), opacity 0.6s ease, margin-top 0.6s var(--ease-out);
}
.book-reveal.open { max-height: 1400px; opacity: 1; margin-top: clamp(18px, 3vh, 32px); margin-bottom: clamp(40px, 8vh, 96px); }
/* Cal embed transparency — let the watercolor card show through the iframe */
#cal-inline iframe, .cal-embed iframe { background-color: transparent !important; color-scheme: unset !important; }
.book-card {
  position: relative;
  background: #f6f2ea;
  background-image:
    url("assets/sky-clear-desktop.png");
  background-size: cover; background-position: center;
  border: 1px solid rgba(26,26,26,0.08); border-radius: 16px;
  box-shadow: 0 50px 110px -44px rgba(15,30,20,0.45), 0 12px 32px -16px rgba(15,30,20,0.22);
  padding: 6px; overflow: hidden;
}
.book-card::before { /* cream watercolor wash over the sky so it reads as warm paper, not blue */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(250,248,243,0.86), rgba(244,241,233,0.9) 55%, rgba(231,245,236,0.82));
}
.book-card > * { position: relative; z-index: 1; }
#cal-inline { width: 100%; min-height: 600px; overflow: hidden; border-radius: 12px; background: transparent; }
/* desktop: logo on the left (by the bush) with the headline + CTA to its right,
   the whole pair shifted left over the valley so the house stays clear */
.arrival-grid { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: clamp(28px, 4vw, 68px); padding-top: 0; max-width: 760px; }
.finale { width: auto; max-width: 300px; flex-shrink: 0; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 6px; }
.finale-compass { width: 50px; height: 66px; color: var(--green-deep); flex-shrink: 0; opacity: 0; transform: translateY(16px) scale(0.86); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-spring); }
.finale-word { width: 100%; max-width: 300px; height: 90px; margin-left: -44px; color: var(--green-deep); clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out) 0.25s; }
.finale.in .finale-compass { opacity: 1; transform: none; }
.finale.in .finale-word { clip-path: inset(0 0 0 0); }
.arrival-inner { position: relative; z-index: 3; width: min(1040px, 94vw); margin: 0 auto; align-items: flex-start; text-align: left; }
.arrival-cta { text-align: left; display: flex; flex-direction: column; align-items: flex-start; justify-self: start; max-width: 420px; }
.arrival-book { margin: clamp(22px, 3.5vh, 36px) 0 0; }
.helps-label, .helps-toggle, .helps-btn, .helps-line, .helps-all { display: none; }
.arrival-kicker { font-family: var(--font-serif); font-weight: 400; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.015em; color: var(--green-deep); margin: 0; max-width: 13ch; }
.arrival-cta-btn { font-size: 16px; padding: 17px 34px; box-shadow: 0 20px 50px -20px rgba(29,58,32,0.55); }
.arrival-cta-btn .arr { transition: transform 0.2s ease; }
.arrival-cta-btn:hover .arr { transform: translateX(3px); }
/* arrival content — staggered entrance */
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(1) { transition-delay: 0.05s; }
[data-stagger].in > *:nth-child(2) { transition-delay: 0.16s; }
[data-stagger].in > *:nth-child(3) { transition-delay: 0.27s; }
[data-stagger].in > *:nth-child(4) { transition-delay: 0.38s; }

/* ---------------- FOOTER (cream over the house scene) ---------------- */
.arrival { padding-bottom: 0; }
.arrival-inner { margin-bottom: auto; }
/* house scene dissolves into the footer's off-white — tall, reaches solid before the seam */
.arrival::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(244,242,237,0) 0%, rgba(244,242,237,0.06) 62%, rgba(244,242,237,0.4) 88%, #f4f2ed 100%);
}

/* ---------------- STRUCTURED FOOTER (Trellis-style, off-white, giant ghost wordmark) ---------------- */
.site-foot {
  position: relative; z-index: 3; overflow: hidden;
  background: #f4f2ed;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 96px) 0;
}
.foot-grid {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 64px); flex-wrap: wrap;
  max-width: 1320px; margin: 0 auto;
}
.foot-brandcol { flex: 1 1 280px; max-width: 380px; }
.foot-cols { flex: 2 1 460px; display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 56px); }
.foot-cols .foot-col { flex: 1 1 0; min-width: 0; }
.foot-logo { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.foot-logo .compass { width: 24px; height: 31px; color: var(--green-deep); }
.foot-logo .wordmark { width: 104px; height: 30px; color: var(--green-deep); }
.foot-tag { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 20px; }
.foot-yc-pill { margin-top: 0; text-decoration: none; }
.foot-yc-pill:hover { border-color: rgba(26,26,26,0.34); background: rgba(252,251,247,0.9); }
.foot-social { display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.foot-soc { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); transition: color 0.2s ease; width: fit-content; }
.foot-soc:hover { color: var(--green); }
.foot-soc .soc-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 5px; background: rgba(26,26,26,0.06); font-size: 11px; color: var(--ink); flex-shrink: 0; }

.foot-col { display: flex; flex-direction: column; gap: 13px; }
.foot-col-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.foot-col .foot-link { font-size: 14px; color: var(--ink-soft); transition: color 0.2s ease; width: fit-content; }
.foot-col a.foot-link:hover { color: var(--green); }
.foot-link.static { color: var(--ink-faint); cursor: default; }

.foot-rule { position: relative; z-index: 2; max-width: 1320px; margin: clamp(34px, 5vw, 60px) auto 0; height: 1px; background: rgba(26,26,26,0.1); }
.foot-bottom {
  position: relative; z-index: 2; max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 0 16px;
  font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; color: var(--ink-faint);
}
.foot-toplink { color: var(--ink-faint); transition: color 0.2s ease; }
.foot-toplink:hover { color: var(--green); }

/* giant ghost wordmark — clean live text, oversized, bottom bleeds off the page edge */
.foot-ghost {
  position: relative; z-index: 1; overflow: hidden;
  height: clamp(96px, 13vw, 196px);
  margin: clamp(10px, 1.4vw, 22px) auto 0; max-width: 1360px;
  pointer-events: none; user-select: none;
}
.foot-ghost-inner {
  display: block; text-align: center;
  font-family: var(--font-serif); font-style: normal; font-weight: 400;
  font-size: clamp(120px, 27vw, 380px); line-height: 1;
  letter-spacing: -0.02em; color: rgba(67,102,81,0.16);
  margin-top: clamp(-34px, -3vw, -16px);
}

@media (max-width: 900px) {
  .foot-brandcol { flex: 1 1 100%; max-width: none; }
  .foot-cols { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .foot-cols { gap: 18px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  [data-stagger] > * { opacity: 1; transform: none; }
  .finale-compass { opacity: 1; transform: none; }
  .finale-word { clip-path: none; }
  .arrival-scene { animation: none; }
  * { animation-duration: 0.001ms !important; }
}
@media (max-width: 760px) {
  /* on phones the house sits centered-bottom, so stack + re-center (the
     left-aligned row is a desktop-only move to clear the house on the right) */
  .arrival-grid { flex-direction: column; align-items: center; gap: 28px; max-width: none; }
  .arrival-inner { align-items: center; text-align: center; }
  .arrival { text-align: center; justify-content: flex-start; padding-top: 11vh; }
  .finale { justify-content: center; justify-self: center; }
  .arrival-cta { text-align: center; align-items: center; }
  .arrival-kicker { max-width: none; }
  .helps-line { max-width: none; }
  .helps-toggle { font-size: 12px; }
}
@media (max-width: 900px) {
  .hero { height: 82vh; }
  .demo-section { padding-top: 20px; padding-bottom: 6vh; }
  .section { padding: 0 clamp(12px, 3vw, 40px); }
  .seam-blur { height: 11vh; margin: -5.5vh 0; }
  /* keep nav on ONE line at tablet widths */
  .nav-bar { gap: 12px; }
  .nav-links { gap: 4px; }
  .nav-link { padding: 9px 11px; font-size: 14px; }
  .nav-logo { margin-right: 8px; }
  .nav-actions { margin-left: 8px; gap: 10px; }
}
@media (max-width: 768px) {
  /* drop the middle links before they can wrap; keep logo + Sign in + Book a demo */
  .nav-links { display: none; }
  .nav-logo { margin-right: 0; }
}

/* ---------------- phones ---------------- */
@media (max-width: 640px) {
  .hero-sky { background-image: url("assets/sky-open-mobile.png"); background-position: center top; }
  .arrival-scene { background-image: url("assets/ending-scene-mobile-tall.png"); }
  .hero { height: 80vh; padding-top: 96px; }
  .hero-wordmark { font-size: clamp(32px, 9vw, 46px); max-width: 14ch; margin-bottom: 18px; }
  .hero-sub { font-size: 15.5px; max-width: 34ch; }
  /* nav: a real full-width frosted bar — logo left, Sign in + a smaller
     Book a demo right (instead of a floating centered pill) */
  .nav { padding: 0; }
  .nav-bar {
    width: 100%; max-width: 100%; justify-content: space-between; gap: 8px;
    padding: 9px 14px; border-radius: 0;
    background: rgba(248,246,241,0.6);
    border: none; border-bottom: 1px solid rgba(26,26,26,0.07);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  }
  .nav.scrolled { padding-top: 0; }
  .nav.scrolled .nav-bar {
    background: rgba(248,246,241,0.7); border-radius: 0;
    border-bottom-color: rgba(26,26,26,0.1);
    box-shadow: 0 6px 22px -14px rgba(40,55,45,0.32);
  }
  .nav-link { display: none; }
  .nav-logo { margin: 0; padding: 0; }
  .nav-logo .wordmark { width: 80px; margin-left: 2px; }
  /* hamburger nav: drop the inline Sign in + CTA, show the burger + dropdown */
  .nav::before { display: none; }
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .nav-menu { display: flex; }
  /* demo: hide the live console frame, show the native guided pipeline */
  .demo-section { padding-left: 14px; padding-right: 14px; }
  .demo-stage { width: 100%; }
  .demo-frame { display: none; }
  .demo-native { display: block; }
  /* drop the desktop frosting/haze — it blurred the clean card's top & bottom */
  .demo-section::before { display: none; }
  .seam-blur { display: none; }
  /* arrival: stack, sit above the house. Shorter section + a zoomed, bottom-
     anchored scene crops most of the empty sky so the house reads sooner. */
  .arrival { min-height: 78vh; padding-top: 8vh; }
  .arrival-scene { background-size: auto 132%; background-position: center bottom; }
  .finale { justify-content: center; }
  .finale-word { width: min(420px, 82vw); }
  .finale-compass { width: 40px; height: 54px; }
  .arrival-kicker { font-size: clamp(28px, 8.5vw, 40px); max-width: none; }
  .arrival-cta-btn { font-size: 15px; padding: 15px 28px; }
  .sec-title { font-size: clamp(28px, 8vw, 40px); }
  /* footer: tighten the giant ghost wordmark */
  .foot-ghost { height: clamp(64px, 18vw, 110px); }
  .foot-ghost-inner { font-size: clamp(96px, 34vw, 200px); }
}
@media (max-width: 420px) {
  .waitlist-pill { flex-direction: column; align-items: stretch; }
  .waitlist-pill button { border-left: none; border-top: 1px solid rgba(26,26,26,0.22); padding: 13px; justify-content: center; }
}

/* ---------------- Tweaks panel ---------------- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 999; width: 268px;
  background: var(--cream-card); border: 1px solid rgba(26,26,26,0.16); border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(40,55,45,0.45);
  font-family: var(--font-sans); color: var(--ink);
  display: none; overflow: hidden;
}
.tweaks.open { display: block; }
.tweaks-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(26,26,26,0.08); }
.tweaks-head h4 { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.tweaks-x { border: none; background: none; font-size: 17px; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 2px 4px; }
.tweaks-x:hover { color: var(--ink); }
.tweaks-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 18px; }
.tw-row { display: flex; flex-direction: column; gap: 9px; }
.tw-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.tw-swatches { display: flex; gap: 8px; }
.tw-swatch { width: 30px; height: 30px; border-radius: 7px; border: 1px solid rgba(26,26,26,0.16); cursor: pointer; padding: 0; position: relative; transition: transform 0.12s ease; }
.tw-swatch:hover { transform: scale(1.08); }
.tw-swatch.sel { box-shadow: 0 0 0 2px var(--cream-card), 0 0 0 4px var(--green-mid); }
.tw-seg { display: inline-flex; border: 1px solid rgba(26,26,26,0.18); border-radius: 8px; overflow: hidden; }
.tw-seg button { flex: 1; border: none; background: none; padding: 8px 12px; font-family: var(--font-sans); font-size: 13px; color: var(--ink-soft); cursor: pointer; border-left: 1px solid rgba(26,26,26,0.1); }
.tw-seg button:first-child { border-left: none; }
.tw-seg button.sel { background: var(--green-deep); color: var(--cream); }
.tw-seg button.serif { font-family: var(--font-serif); font-size: 16px; }
