@import url("../assets/fonts/fonts.css");

:root {
  --stage: #1b1613;
  --stage-2: #241d19;
  --stage-3: #2e2521;
  --cream: #f4eee4;
  --cream-2: #ebe3d6;
  --cream-3: #e1d7c8;
  --ink: #1b1613;
  --ink-soft: #6a5d54;
  --ink-mute: #9a8c80;
  --paper: #f4eee4;
  --paper-soft: #b8aa9c;
  --paper-mute: #7f7167;
  --fire: #e4572e;
  --fire-soft: #f0a184;
  --line: rgba(27, 22, 19, 0.12);
  --line-paper: rgba(244, 238, 228, 0.14);
  --nav: 68px;
  --radius: 18px;
  --radius-s: 12px;
  --display: "Archivo", system-ui, -apple-system, sans-serif;
  --text: "Geist", system-ui, -apple-system, sans-serif;
  --rise: 24px;
  --par-back: 0.55;
  --par-mid: 0.42;
  --par-obj: 0.3;
  --par-front: -0.12;
  --wrap: 1200px;
  --gutter: 24px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --rise: 12px;
    --par-back: 0.28;
    --par-mid: 0.21;
    --par-obj: 0.15;
    --par-front: -0.04;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; } /* Lenis drives the smoothing; no double easing */

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.022em; line-height: 1.05; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav);
  display: flex;
  align-items: center;
  color: var(--paper);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled { background: rgba(27, 22, 19, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled { background: rgba(244, 238, 228, 0.86); }
.nav.is-light .btn-paper { background: var(--ink); color: var(--paper); }
.nav.is-light .btn-paper:hover { background: #000; }
.nav .wrap { display: flex; align-items: center; gap: 28px; }
.brand { font-family: var(--display); font-weight: 700; letter-spacing: 0.18em; font-size: 14px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14px; }
.nav-links a { opacity: 0.78; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav-toggle-icon {
  position: absolute;
  left: 13px;
  top: 21px;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav.is-open .nav-toggle-icon { background: transparent; }
.nav.is-open .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav.is-open .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav-phone { opacity: 0.78; white-space: nowrap; }
.nav-phone:hover { opacity: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-fire { background: var(--fire); color: #fff; }
.btn-fire:hover { background: #cf4a24; }
.btn-ghost { border-color: currentColor; background: transparent; }
.nav .btn { padding: 10px 16px; font-size: 14px; }

/* ---------- Stage sections ---------- */

.stage { background: var(--stage); color: var(--paper); }
.stage .muted { color: var(--paper-soft); }
.cream { background: var(--stage-2); color: var(--paper); }
.cream .muted { color: var(--paper-soft); }
.cream-2 { background: var(--stage); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-paper);
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--paper-soft);
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--fire); }
.cream .pill { border-color: var(--line-paper); color: var(--paper-soft); }

/* ---------- Enter motion ---------- */

[data-rise] {
  opacity: 0;
  transform: translateY(var(--rise));
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-rise].is-in { opacity: 1; transform: none; }

[data-settle] {
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-settle].is-in { opacity: 1; transform: none; }

[data-lift] {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0ms);
}
[data-lift].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-settle] { transform: scale(1.03); }
  [data-lift] { transform: translateY(20px); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: max(100svh, 720px);
  overflow: hidden;
  isolation: isolate;
}
.hero-air {
  position: relative;
  z-index: 5;
  padding-top: calc(var(--nav) + clamp(36px, 7vh, 80px));
  text-align: center;
}
.hero-air .pill { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(40px, 4.9vw, 68px);
  max-width: 17ch;
  margin-inline: auto;
}
.hero .lede {
  margin: 22px auto 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--paper-soft);
}
.hero .cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.link-phone { font-size: 15px; color: var(--paper-soft); border-bottom: 1px solid var(--line-paper); padding-bottom: 2px; transition: color 0.2s; }
.link-phone:hover { color: var(--paper); }

.ground {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.plane {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 2400px;
  max-width: none;
  transform: translate3d(-50%, 0, 0);
  will-change: transform;
}
.plane img { width: 100%; height: auto; max-width: none; }
.plane-back {
  width: max(1440px, 100vw);
  bottom: -2vh;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.6) 30%, #000 52%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.6) 30%, #000 52%);
}
.plane-mid { width: max(1600px, 110vw); bottom: -6vh; }
.plane-front { width: max(1700px, 118vw); bottom: -30vh; }
.plane-obj { width: 100%; bottom: 0; height: 100%; }

.ground-floor {
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  z-index: 4;
  background: linear-gradient(to bottom, rgba(27, 22, 19, 0) 0%, var(--stage) 100%);
}

/* City plates (index.html): skyline across the water, rooftop silhouettes, quay wall in front */

.hero--city { min-height: max(116svh, 860px); }
/* window: centered, 42px higher than the old fold hang, 800px = 1.25× of 640; booked stays above the rail */
.hero--city .window-wrap {
  left: 50%;
  right: auto;
  width: min(800px, 72vw);
  top: calc(100svh - 32px);
  transform: translate3d(-50%, -100%, 0);
}
.hero--city .window { padding: 22px 26px 72px; font-size: 16px; }
.hero--city .plane-back { width: max(1600px, 112vw); bottom: 24svh; }
.hero--city .plane-mid { width: max(1580px, 110vw); bottom: 10svh; }
.hero--city .plane-front { width: max(1500px, 104vw); min-width: 0; bottom: calc(16svh + 24px - max(64px, 4.46vw)); }
/* short laptops: tighten the copy block and the window so the CTA keeps clear of the window top */
@media (min-width: 761px) and (max-height: 860px) {
  .hero--city .hero-air { padding-top: calc(var(--nav) + 22px); }
  .hero--city .hero-air .pill { margin-bottom: 16px; }
  .hero--city h1 { font-size: clamp(36px, 3.9vw, 54px); }
  .hero--city .lede { margin-top: 14px; font-size: 17px; }
  .hero--city .cta { margin-top: 20px; }
  .hero--city .window { font-size: 13px; padding: 14px 18px 72px; }
  .hero--city .msg { padding: 9px 12px; margin-bottom: 8px; }
  .hero--city .slots { margin: 8px 0 10px auto; }
}
.hero--city .plane-front::after { content: ""; position: absolute; top: 99%; left: 0; right: 0; height: 120vh; background: #14110e; }
.hero--city .ground-floor { height: 260px; }
.close--city .plane-back { width: max(1600px, 112vw); bottom: 0; }
.close--city .plane-front { width: max(1580px, 110vw); min-width: 0; bottom: -2vh; transform-origin: 50% 100%; }
.close--city .plane-back { transform-origin: 50% 100%; }
.close--city .plane-front::after { content: ""; position: absolute; top: 99%; left: 0; right: 0; height: 60vh; background: #14110e; }

/* The bright object: a conversation window */

.window-wrap {
  position: absolute;
  left: 50%;
  top: 66%;
  width: min(640px, 56vw);
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}
.window-wrap .glow {
  position: absolute;
  inset: -60px -80px -20px -80px;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.55;
  background: radial-gradient(ellipse at 50% 60%, #b489ff 0%, rgba(180, 137, 255, 0) 60%);
  animation: glow-cycle 16s ease-in-out infinite;
}
@keyframes glow-cycle {
  0%   { background: radial-gradient(ellipse at 50% 60%, #b489ff 0%, rgba(180, 137, 255, 0) 60%); }
  33%  { background: radial-gradient(ellipse at 50% 60%, #7fd9a4 0%, rgba(127, 217, 164, 0) 60%); }
  66%  { background: radial-gradient(ellipse at 50% 60%, #ffb26b 0%, rgba(255, 178, 107, 0) 60%); }
  100% { background: radial-gradient(ellipse at 50% 60%, #b489ff 0%, rgba(180, 137, 255, 0) 60%); }
}
@media (prefers-reduced-motion: reduce) { .window-wrap .glow { animation: none; } }

.window {
  position: relative;
  background: #fbf8f2;
  color: var(--ink);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -2px 0 rgba(255, 255, 255, 0.5) inset, 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 18px 22px 26px;
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.window-bar .dots { display: flex; gap: 5px; flex: 0 0 60px; }
.window-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--cream-3); }
.window-bar .title { flex: 1; text-align: center; }
.window-bar time { flex: 0 0 60px; text-align: right; letter-spacing: 0.02em; }
.mock .window-bar .dots, .mock .window-bar time { flex-basis: 44px; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 14px; margin-bottom: 10px; }
.msg-q { background: var(--cream-2); border-bottom-left-radius: 4px; }
.msg-a { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 4px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 12px auto; justify-content: flex-end; }
.slot {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  background: #fff;
}
.slot.is-picked { background: var(--fire); border-color: var(--fire); color: #fff; }
.window .booked-row { display: flex; justify-content: flex-start; }
.booked {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: #eaf3e6;
  color: #24522c;
  font-size: 13px;
  font-weight: 600;
}
.booked::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3b8f4a; }

/* Devices (hero B and proof) */

.devices { position: relative; width: min(880px, 100%); margin-inline: auto; }
.laptop { position: relative; width: 100%; }
.laptop-screen {
  position: relative;
  background: #0c0a09;
  border-radius: 16px 16px 4px 4px;
  padding: 12px 12px 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.laptop-screen::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f1b19;
  transform: translateX(-50%);
}
.laptop-screen img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px 6px 0 0; }
.laptop-base {
  height: 14px;
  margin: 0 -2.5%;
  background: linear-gradient(#3a322d, #221c19);
  border-radius: 0 0 14px 14px;
}
.phone {
  position: absolute;
  right: -3%;
  bottom: -4%;
  width: 21%;
  background: #0c0a09;
  border-radius: 12% / 6.5%;
  padding: 3.5%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.phone img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 9% / 4.5%; }

.hero-devices {
  position: absolute;
  left: 50%;
  top: 64%;
  width: min(880px, calc(100vw - 2 * var(--gutter)));
  transform: translate3d(-50%, 0, 0);
  pointer-events: auto;
}
.hero-devices .glow { position: absolute; inset: -60px -80px -20px -80px; z-index: -1; filter: blur(60px); opacity: 0.45; animation: glow-cycle 16s ease-in-out infinite; }
.hero-devices .laptop-screen { border-radius: 16px 16px 0 0; }
.hero-devices .laptop-base { display: none; }
.hero-devices .laptop-screen img { aspect-ratio: 16 / 8.2; }
.hero-devices .phone { bottom: -12px; }

/* ---------- Intro: brightening lines ---------- */

.intro { padding: clamp(110px, 16vh, 190px) 0 clamp(140px, 26vh, 300px); }
.intro .wrap { max-width: 880px; }
.intro .pill { margin-bottom: 56px; }
.line-set p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--paper-mute);
  transition: color 0.5s ease;
  margin-bottom: 1.9em;
}
.line-set p.is-lit { color: var(--paper); }
.line-set p:last-child { margin-bottom: 0; }

/* ---------- Section shell ---------- */

.section { padding: clamp(88px, 12vh, 144px) 0; overflow-x: clip; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vh, 64px); }
.section-head .pill { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(32px, 3.8vw, 54px); }
.section-head .sub { margin-top: 18px; font-size: clamp(17px, 1.2vw, 19px); max-width: 56ch; }

/* ---------- Stack cards ---------- */

.stack { position: relative; }
.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 32px 36px;
  border-radius: 24px;
  background: #2a231f;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 400px;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(255, 236, 214, 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.card:hover::after { opacity: 1; }

/* Weak page flashlight (same as cards). Not painted on .hero. pointer-events none. */
#page-flash {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: radial-gradient(380px circle at var(--px, 50%) var(--py, 50%), rgba(255, 236, 214, 0.11), transparent 62%);
  opacity: 0;
}
#page-flash.is-on { opacity: 1; }
.card:hover { border-color: rgba(255, 255, 255, 0.14); }
.card.is-flip .card-mock { order: -1; }
.card-num { font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; color: var(--fire); font-weight: 700; margin-bottom: 18px; }
.card h3 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 16px; }
.card p { color: var(--paper-soft); font-size: 17px; max-width: 42ch; }
.card-mock { position: relative; }

@media (min-width: 900px) {
  /* Freeze when Why is just gone under HEADER (measured 1440×900: PARK GAP 160 is almost right;
     4px more scroll, intro.bottom just past nav). Sticky top is that frame, not a new pad.
     Padding extra stays 67.28px so the header-to-pill gap is 3.5cm. JS drops the extra sticky once 04 covers 03. */
  .js #what { padding: 0; }
  .js #what .wrap { position: sticky; top: calc(var(--nav) - 3px); height: 100svh; box-sizing: border-box; display: flex; flex-direction: column; padding-top: calc(var(--nav) + 67.28px); padding-bottom: 28px; }
  .js #what .section-head { flex: none; margin-bottom: 48px; }
  /* clipped at the top only (the type is above); the next card may hang below the fold like the old flow */
  .js #what .stack { flex: 1; min-height: 0; clip-path: inset(0 -60px -200vh -60px); }
  .js #what .stack .card { position: absolute; top: 0; left: 0; right: 0; margin: 0; transform-origin: 50% 0; will-change: transform, opacity; transition: none; }
  /* without JS the cards fall back to plain flow */
  html:not(.js) #what .card { margin-bottom: 28px; }
}

/* Small mocks used inside cards */

.mock {
  background: #fbf8f2;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.mock .window-bar { margin-bottom: 12px; padding-bottom: 10px; }
.mock .msg { font-size: 14px; }
.mock-title { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mock-row:first-of-type { border-top: 0; }
.mock-row b { font-weight: 600; }
.mock-row .when { color: var(--ink-mute); font-size: 13px; white-space: nowrap; }
.tick { display: inline-flex; width: 18px; height: 18px; border-radius: 50%; background: #eaf3e6; color: #3b8f4a; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--cream-2); font-size: 12px; font-weight: 500; }
.tag.is-fire { background: #fde9e1; color: #b6421f; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--cream-3); }
.timeline li { position: relative; padding: 8px 0 8px 10px; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--cream-3); border: 2px solid #fff; }
.timeline li.is-hot::before { background: var(--fire); }
.timeline li.is-ok::before { background: #3b8f4a; }
.timeline small { display: block; color: var(--ink-mute); font-size: 12px; }
.profile { display: grid; gap: 10px; }
.profile-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.profile-head .avatar { width: 42px; height: 42px; border-radius: 10px; background: linear-gradient(135deg, #3b8f4a, #7fd9a4); }
.profile-head b { display: block; }
.profile-head small { color: var(--ink-mute); }
.profile-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }

/* ---------- Proof ---------- */

.proof .devices { margin-top: 12px; }
.devices--his { position: relative; width: min(920px, 100%); margin-inline: auto; padding-right: 6%; }
.devices--his .his-laptop { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.5)); }
.devices--his .his-phone { position: absolute; right: 0; bottom: -4%; width: 19%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55)); }
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.proof .caption { margin-top: 36px; display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; color: var(--paper-soft); font-size: 14px; }
.proof .caption a { color: var(--paper); border-bottom: 1px solid var(--line-paper); }
.browser {
  background: #0c0a09;
  border-radius: 16px;
  padding: 10px 10px 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.browser-bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a322d; }
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px 6px 0 0; }

/* ---------- Packages ---------- */

.pkgs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: end; }
.pkg {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 36px;
  border-radius: 24px;
  background: #2a231f;
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
.pkg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(255, 236, 214, 0.11), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
}
.pkg:hover::after { opacity: 1; }
.pkg:hover { border-color: rgba(255, 255, 255, 0.14); }
.pkg.is-raised { background: #332a25; border-color: rgba(228, 87, 46, 0.45); margin-top: -20px; padding-bottom: 56px; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45); }
.pkg-name { font-family: var(--display); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire); font-weight: 700; }
.pkg h3 { font-size: clamp(26px, 2.4vw, 34px); margin: 14px 0 8px; }
.pkg .tag-line { color: var(--paper-soft); }
.pkg-price { margin: 26px 0 22px; padding: 16px 0; border-top: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); display: flex; align-items: baseline; gap: 10px; }
.pkg-price b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.pkg-price span { color: var(--paper-mute); font-size: 14px; }
.pkg ul li { display: flex; gap: 12px; padding: 9px 0; line-height: 1.45; }
.pkg ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--fire); }
.pkg .btn { margin-top: 26px; width: 100%; }
.pkg-note { margin-top: 24px; font-size: 14px; color: var(--paper-soft); }

/* ---------- Who ---------- */

.who-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.portrait {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  background: linear-gradient(160deg, #fbf8f2, var(--cream-3));
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.portrait span { font-family: var(--display); font-weight: 700; font-size: clamp(64px, 8vw, 120px); letter-spacing: -0.04em; opacity: 0.9; }
.portrait small { position: absolute; left: 20px; bottom: 16px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.who h2 { font-size: clamp(32px, 3.6vw, 50px); }
.who .sub { margin: 20px 0 32px; font-size: 18px; color: var(--paper-soft); max-width: 48ch; }
.commit li { padding: 18px 0; border-top: 1px solid var(--line-paper); display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; }
.commit li:last-child { border-bottom: 1px solid var(--line-paper); }
.commit b { font-family: var(--display); color: var(--fire); font-size: 13px; letter-spacing: 0.08em; }

/* ---------- Questions ---------- */

.faq-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.faq-side { position: sticky; top: calc(var(--nav) + 24px); }
.chips { display: flex; flex-direction: column; gap: 6px; }
.chip {
  text-align: left;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--paper-soft);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--paper); }
.chip.is-on { background: var(--paper); color: var(--ink); }
.qa { min-height: var(--qa-min, 0); }
.qa details { border-top: 1px solid var(--line-paper); }
.qa details:last-child { border-bottom: 1px solid var(--line-paper); }
.qa summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.01em;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  color: var(--paper-mute);
  font-size: 26px;
  transition: transform 0.25s;
}
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa .ans { padding: 0 0 24px; color: var(--paper-soft); max-width: 60ch; }
.qa details.is-hidden { display: none; }

/* ---------- Close ---------- */

.close { position: relative; overflow: hidden; padding: clamp(120px, 18vh, 200px) 0 0; isolation: isolate; }
.close .ground { z-index: 0; }
.close .plane-back { -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.7) 35%, #000 60%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.7) 35%, #000 60%); }
.close .wrap { position: relative; z-index: 2; }
.close-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.close h2 { font-size: clamp(36px, 4.4vw, 62px); }
.close .sub { margin-top: 20px; font-size: 18px; font-weight: 500; color: var(--paper); max-width: 44ch; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.35); }
.close .contact { margin-top: 30px; display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.close .contact .link-phone { font-weight: 600; color: var(--paper); border-bottom-color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.35); }
.form {
  background: #fbf8f2;
  color: var(--ink);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.form h3 { font-size: 22px; margin-bottom: 6px; }
.form .hint { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.field input,
.field textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--fire); outline-offset: 0; border-color: transparent; }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { margin-top: 12px; font-size: 13px; color: var(--ink-mute); }
.form-ok { display: none; padding: 16px; border-radius: 12px; background: #eaf3e6; color: #24522c; font-weight: 500; margin-top: 12px; }
.form.is-sent .form-ok { display: block; }

/* Book: title + line above a wide chat, same window styling as the hero */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.book-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin: 0 auto clamp(28px, 5vh, 44px);
  text-align: center;
}
.book-copy h2 { text-align: center; text-wrap: balance; }
.book-copy .sub {
  margin-top: 20px;
  margin-inline: auto;
  font-size: 18px;
  font-weight: 500;
  color: var(--paper);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 14px rgba(0, 0, 0, 0.35);
  text-align: center;
  text-wrap: balance;
}
.close .book-copy .sub { margin-inline: auto; }

/* Audit close: one phone photo. Copy stays in the dark upper field; the phone stays low. */
#audit.close {
  min-height: max(120svh, 980px, 50vw);
  padding-top: clamp(88px, 11vh, 140px);
}
#audit .audit-phone {
  position: absolute;
  inset: 0;
  display: block;
  height: 100%;
}
#audit .audit-phone img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: right bottom;
}
#book-log,
.chat-log {
  display: flex;
  flex-direction: column;
  flex: none;
  height: clamp(280px, 44vh, 480px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 22, 19, 0.28) transparent;
}
#book-log::-webkit-scrollbar,
.chat-log::-webkit-scrollbar { width: 8px; }
#book-log::-webkit-scrollbar-thumb,
.chat-log::-webkit-scrollbar-thumb {
  background: rgba(27, 22, 19, 0.22);
  border-radius: 99px;
}
.chat-log .slots { width: 100%; }
.chat-log .booked-row { margin: 4px 0 10px; }
/* Flex column stretches items. Hug the words; do not restyle hero .msg. */
#book-log .msg {
  width: fit-content;
  max-width: 82%;
  align-self: flex-start;
}
#book-log .msg-a {
  align-self: flex-end;
}
.chat-input {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  background: transparent;
}
.chat-input[hidden] { display: none; }
#book-typing[hidden] { display: none; }
.chat-input input {
  flex: 1;
  font: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.chat-input input:focus { outline: 2px solid var(--fire); outline-offset: 0; border-color: transparent; }
.chat-input .btn { flex: none; }

.footer {
  position: relative;
  z-index: 2;
  padding: 28px 0 32px;
  border-top: 1px solid var(--line-paper);
  background: var(--stage);
  font-size: 13px;
  color: var(--paper-soft);
}
.footer .wrap { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer .brand { color: var(--paper); }
.footer a:hover { color: var(--paper); }
.footer .right { margin-left: auto; display: flex; gap: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .faq-grid { grid-template-columns: 240px 1fr; gap: 40px; }
  .who-grid { gap: 40px; }
}

@media (max-width: 899px) {
  :root { --nav: 60px; --gutter: 20px; }
  body { font-size: 16px; }
  .nav { height: auto; }
  .nav .wrap { gap: 8px; min-height: var(--nav); }
  .nav-right { gap: 8px; }
  .nav-right .btn { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    padding: 6px var(--gutter) 14px;
    flex-direction: column;
    gap: 4px;
    background: #1b1613;
    z-index: 2;
  }
  .nav.is-open { background: #1b1613; }
  .nav.is-open .nav-links { display: flex; }
  .nav.is-open .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    opacity: 1;
    font-family: var(--display);
    font-weight: 600;
    font-size: 18px;
  }
  .nav.is-open + main .hero-air {
    padding-top: calc(var(--sections-shift, 232px) + 12px);
  }
  .nav-phone { display: none; }
  .hero { min-height: 100svh; }
  .hero-air { padding-top: calc(var(--nav) + 36px); text-align: left; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); margin-inline: 0; max-width: 12ch; }
  .hero .lede { margin-inline: 0; font-size: 17px; }
  .hero .cta { justify-content: flex-start; flex-wrap: wrap; gap: 16px; }
  .plane-back { width: auto; height: 72%; bottom: 4%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 24%, #000 46%); mask-image: linear-gradient(to bottom, transparent 0, rgba(0,0,0,.6) 24%, #000 46%); }
  .plane-back img { width: auto; height: 100%; }
  .plane-mid { width: 1100px; bottom: -4vh; }
  .plane-front { width: 1200px; bottom: -22vh; }
  .hero--city { min-height: 100svh; }
  .hero--city .window-wrap {
    top: auto;
    bottom: -8px;
    left: 50%;
    width: calc(100vw - 2 * var(--gutter));
    transform: translate3d(-50%, 0, 0);
  }
  .hero--city .plane-back { width: auto; height: 72%; bottom: 6%; }
  .hero--city .plane-mid { width: 1000px; bottom: 6vh; }
  .hero--city .plane-front { width: 1100px; min-width: 0; bottom: -6vh; }
  .hero--city { display: flex; flex-direction: column; }
  .hero--city > .ground { display: contents; }
  .hero--city .hero-air { order: 1; }
  .hero--city .plane-obj {
    order: 2;
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
    max-width: 100%;
    height: auto;
    margin: 8px auto 36px;
    transform: none;
    z-index: 5;
  }
  .hero--city .plane-obj .window-wrap {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
  }
  .hero--city .plane-obj .window { border-radius: 20px; padding-bottom: 20px; }
  .hero--city .ground-floor { height: 160px; }
  .close--city .plane-front { width: 1100px; min-width: 0; bottom: -4vh; }
  .devices--his { padding-right: 0; }
  .devices--his .his-phone { width: 26%; right: -2%; }
  .window-wrap { width: calc(100vw - 2 * var(--gutter)); top: auto; bottom: -8px; }
  .plane-obj { top: 0; }
  .window { padding: 14px 16px 20px; font-size: 14px; }
  .msg { max-width: 92%; }
  .slots { justify-content: flex-start; margin-left: 0; }
  .hero-devices { width: calc(100vw - 2 * var(--gutter)); top: auto; bottom: -40px; }
  .hero-devices .phone { bottom: 6%; }
  .hero-devices .laptop-screen img { aspect-ratio: 16 / 9; }
  .phone { width: 30%; right: 0; }
  .laptop-base { margin: 0; }
  .intro { padding: 14vh 0 18vh; }
  .intro .pill { margin-bottom: 26px; }
  .line-set p { font-size: clamp(22px, 6.2vw, 28px); }
  .card { grid-template-columns: 1fr; gap: 24px; padding: 24px; min-height: 0; margin-bottom: 16px; border-radius: 20px; }
  .card.is-flip .card-mock { order: 0; }
  .card-mock { order: 1; }
  .pkgs { grid-template-columns: 1fr; }
  .pkg.is-raised { margin-top: 0; padding-bottom: 36px; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 320px; aspect-ratio: 1; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-grid > * { min-width: 0; }
  .faq-side { position: sticky; top: var(--nav); z-index: 5; background: var(--stage-2); padding: 12px 0; }
  .chips { flex-direction: row; flex-wrap: wrap; overflow: visible; gap: 8px; }
  .chip { white-space: nowrap; border-color: var(--line-paper); padding: 10px 14px; font-size: 14px; min-height: 44px; }
  .close-grid { grid-template-columns: 1fr; gap: 40px; }
  .close .window-wrap, .close .hero-devices { display: none; }
  .form { padding: 24px; }
  .book-copy { text-align: left; margin-bottom: 24px; align-items: flex-start; }
  .close .book-copy .sub { margin-inline: 0; text-align: left; }
  #book-log,
  .chat-log { height: clamp(240px, 40vh, 360px); }
  .footer .right { margin-left: 0; flex-wrap: wrap; gap: 14px; }
}
