/* ============================================================
   SAIG — Secure Artificial Intelligence Grid
   Design tokens straight from the Claude Design handoff.
   ============================================================ */

:root {
  --g: #1F6B4F;        /* primary green   */
  --beige: #F5F1E8;    /* warm background */
  --ink: #1B1D1A;      /* dark text       */
  --mint: #A8C8B8;     /* muted green     */
  --line: #D9E3DB;     /* soft border     */
  --card: #FCFBF8;     /* off-white cards */
  --sub: #4A4F49;
  --sub-2: #6B7069;
  --sub-3: #8A8F88;
  --r: 20px;           /* card radius     */

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g); text-decoration: none; }
a:hover { color: #144936; }

img { max-width: 100%; }

h1, h2, h3, p { margin: 0; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
}
.skip-link:focus { left: 24px; top: 24px; }

/* ── Keyframes ──────────────────────────────────────────────── */

@keyframes saigPulse {
  0%   { box-shadow: 0 0 0 0 rgba(31, 107, 79, .45); }
  70%  { box-shadow: 0 0 0 18px rgba(31, 107, 79, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 107, 79, 0); }
}
@keyframes saigBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes saigMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - 18px)); }
}
@keyframes saigWordIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity .18s ease, border-color .18s ease, background .18s ease;
}

.btn-primary { background: var(--g); color: var(--card); padding: 10px 20px; font-size: 13px; }
.btn-primary:hover { opacity: .9; color: var(--card); }

.btn-outline {
  color: var(--g);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 9px 18px;
  font-size: 13px;
}
.btn-outline:hover { border-color: var(--g); }

.btn-glass {
  border: 1px solid var(--line);
  background: rgba(252, 251, 248, .5);
  color: var(--ink);
}
.btn-glass:hover { border-color: var(--g); color: var(--ink); }

.btn-cream { background: var(--card); color: var(--ink); }
.btn-cream:hover { opacity: .9; color: var(--ink); }

.btn-hollow { border: 1px solid rgba(252, 251, 248, .4); color: var(--card); }
.btn-hollow:hover { border-color: var(--card); color: var(--card); }

.btn-md { padding: 13px 26px; font-size: 14px; }
.btn-lg { padding: 15px 30px; font-size: 15px; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-row-center { justify-content: center; gap: 14px; margin-top: 0; }

/* ── Header ─────────────────────────────────────────────────── */

.site-header { position: sticky; top: 16px; z-index: 50; padding: 0 24px; }

.nav-pill {
  max-width: 1080px;
  margin: 0 auto;
  background: rgba(252, 251, 248, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 12px 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(27, 29, 26, .08);
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { height: 26px; width: auto; display: block; }

.brand-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sub-3);
  border-left: 1px solid var(--line);
  padding-left: 10px;
  line-height: 1.4;
  max-width: 90px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.nav-link {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-link:hover { background: var(--beige); color: var(--g); }
.nav-star { color: var(--mint); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-menu {
  max-width: 1080px;
  margin: 10px auto 0;
  background: rgba(252, 251, 248, .97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(27, 29, 26, .08);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu > a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 12px 10px;
  border-radius: 14px;
}
.mobile-menu > a:hover { background: var(--beige); color: var(--g); }
.mobile-menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 4px 2px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--beige);
  margin-top: -70px;
  padding: 170px 32px 88px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -180px;
  bottom: 0;
  background-image: url("/assets/hero-bg.jpg");
  background-image: -webkit-image-set(url("/assets/hero-bg.webp") type("image/webp"), url("/assets/hero-bg.jpg") type("image/jpeg"));
  background-image: image-set(url("/assets/hero-bg.webp") type("image/webp"), url("/assets/hero-bg.jpg") type("image/jpeg"));
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}

/* Phones get the 900px pair. The matching <link rel="preload"> in the head is
   media-scoped the same way, so only one variant is ever downloaded. */
@media (max-width: 900px) {
  .hero-bg {
    background-image: url("/assets/hero-bg-900.jpg");
    background-image: -webkit-image-set(url("/assets/hero-bg-900.webp") type("image/webp"), url("/assets/hero-bg-900.jpg") type("image/jpeg"));
    background-image: image-set(url("/assets/hero-bg-900.webp") type("image/webp"), url("/assets/hero-bg-900.jpg") type("image/jpeg"));
  }
}

/* The starting opacity is set by JS (see main.js), never here — with JS off the
   image must still be visible. .is-fading only supplies the transition. */
.hero-bg.is-fading { transition: opacity .5s ease; }
.hero-bg.is-loaded { opacity: 1; }

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(245, 241, 232, .94) 0%, rgba(245, 241, 232, .62) 45%, rgba(245, 241, 232, .22) 100%);
}

.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: rgba(252, 251, 248, .5);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dot-blink {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--g);
  animation: saigBlink 2.4s infinite;
  flex-shrink: 0;
}

.stamp {
  transform: rotate(-5deg);
  border: 1.5px dashed var(--g);
  border-radius: 10px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--g);
  background: rgba(252, 251, 248, .5);
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.01em;
}

/* The wrapper's width is pinned by JS to the measured width of the current
   word, so the comma that follows glides instead of jumping. The padding /
   negative-margin pair keeps the descender in "operations" out of the clip. */
.rotator {
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
  padding-bottom: .14em;
  margin-bottom: -.14em;
  transition: width .5s ease;
  color: var(--g);
  font-style: italic;
}
.rotator-word { display: inline-block; animation: saigWordIn .55s ease; }

/* Hidden twin used to measure the next word at the live font metrics. */
.rotator-ghost {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  white-space: nowrap;
  animation: none;
}

/* Forces the rotating word onto its own line at the widths where the longer
   words would otherwise wrap and add a third line mid-rotation. */
.rot-break { display: none; }
@media (min-width: 1025px) {
  .rot-break { display: inline; }
}

.hero-sub { max-width: 620px; font-size: 18px; line-height: 1.65; color: var(--sub); }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-cards {
  position: relative;
  max-width: 1080px;
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 20px;
  text-align: left;
}

/* ── Cards / shared bits ────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  color: var(--ink);
}

.hero-card-map, .hero-card-chat { display: flex; flex-direction: column; }
.hero-card-map { gap: 16px; }
.hero-card-chat { gap: 14px; }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.eyebrow { font-weight: 800; text-transform: uppercase; }
.card-head .eyebrow { font-size: 11px; letter-spacing: .16em; }
.section-head .eyebrow { font-size: 12px; letter-spacing: .18em; }
.eyebrow-green { color: var(--g); }
.eyebrow-mint { color: var(--mint); }

.mono-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--sub-3); }

.pill-tag {
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--sub);
}

/* ── Map ────────────────────────────────────────────────────── */

.hero-map-slot { flex: 1; display: grid; place-items: center; min-height: 200px; }

.map-wrap { position: relative; }
.map-wrap-sm { aspect-ratio: 800 / 755; height: 200px; }
.map-wrap-sm img { width: 100%; height: 100%; display: block; }
.map-wrap-lg img { width: 100%; height: auto; display: block; }

/* Sydney sits at ~91.9% across / 66% down of the 800×755 artboard. */
.map-dot {
  position: absolute;
  left: 91.9%;
  top: 66%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--g);
  animation: saigPulse 2.4s infinite;
}
.map-dot-lg { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.map-dot-sm { width: 10px; height: 10px; margin: -5px 0 0 -5px; }

.map-chip {
  position: absolute;
  left: 91.9%;
  top: 66%;
  transform: translate(-100%, -130%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--g);
  white-space: nowrap;
  background: rgba(252, 251, 248, .85);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}

.map-callout {
  position: absolute;
  left: 91.9%;
  top: 66%;
  transform: translate(-100%, -50%);
  margin-left: -18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(27, 29, 26, .08);
}
.map-callout .mono-tag { font-weight: 400; color: var(--sub-2); margin-left: 6px; }

.hero-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--beige); }
.tile-title { font-family: var(--serif); font-size: 20px; }
.tile-sub { font-size: 11px; color: var(--sub-2); margin-top: 2px; }

/* ── Chat preview ───────────────────────────────────────────── */

.bubble { padding: 10px 14px; font-size: 13px; line-height: 1.5; }
.bubble-user {
  align-self: flex-end;
  background: var(--g);
  color: var(--card);
  border-radius: 14px 14px 4px 14px;
  max-width: 85%;
}
.bubble-ai {
  align-self: flex-start;
  background: var(--beige);
  border-radius: 14px 14px 14px 4px;
  max-width: 90%;
}
.hero-card-chat .bubble-ai { min-height: 58px; }

.caret {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--g);
  margin-left: 2px;
  vertical-align: -2px;
  animation: saigBlink 1s infinite;
}

.fake-input {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  color: var(--sub-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fake-send { width: 22px; height: 22px; border-radius: 50%; background: var(--g); }

/* ── Marquee ────────────────────────────────────────────────── */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  white-space: nowrap;
  animation: saigMarquee 32s linear infinite;
}
.marquee-run {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
}
.marquee-run i { color: var(--mint); font-style: normal; }

/* ── Section scaffolding ────────────────────────────────────── */

.section { padding: 110px 32px; }
/* The header is sticky — without this it sits on top of the heading you just
   jumped to from the nav. */
section[id] { scroll-margin-top: 96px; }
.section-card-bg { background: var(--card); }
.section-border-b { border-bottom: 1px solid var(--line); }
.section-border-t { border-top: 1px solid var(--line); }
.section-border-y { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-green { background: var(--g); color: var(--card); }

.wrap { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }

.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; margin-bottom: 52px; }
.section-head-wide { max-width: 680px; margin-bottom: 56px; }

.h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
}
.h2-center { text-align: center; margin-bottom: 44px; }

.lead { font-size: 17px; line-height: 1.7; color: var(--sub); }

/* ── Model grid ─────────────────────────────────────────────── */

.model-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.model-card {
  background: var(--beige);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color .18s ease, transform .18s ease;
}
.model-card:hover { border-color: var(--g); transform: translateY(-2px); }

.model-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--g);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 24px;
}
.model-name { font-weight: 700; font-size: 16px; }
.model-vendor { font-size: 13px; color: var(--sub-2); margin-top: 2px; }
.model-meta { font-size: 11px; font-weight: 700; color: var(--g); letter-spacing: .08em; }

/* ── Split sections ─────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-chat { grid-template-columns: 1fr 1.1fr; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }

.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.tick { width: 8px; height: 8px; border-radius: 50%; background: var(--g); flex-shrink: 0; }

/* ── Security ───────────────────────────────────────────────── */

.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec-card {
  background: rgba(252, 251, 248, .06);
  border: 1px solid rgba(252, 251, 248, .18);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sec-num { font-family: var(--serif); font-size: 28px; color: var(--mint); }
.sec-title { font-weight: 700; font-size: 17px; }
.sec-card p { font-size: 14px; line-height: 1.6; color: rgba(252, 251, 248, .72); }

/* ── Saig Chat section ──────────────────────────────────────── */

.chat-col { display: flex; flex-direction: column; gap: 16px; }
.chat-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.chat-card .bubble-user { max-width: 80%; }
.chat-card .bubble-ai { max-width: 85%; }

.model-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  color: var(--sub-2);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}
.chip-on { border-color: var(--g); color: var(--g); }

.embed-slot {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
}
/* Ratio of the current Loom recording (1664×1080), not 16:9 — a mismatch here
   letterboxes the player inside the frame. Update if it is re-recorded. */
.embed-slot iframe { width: 100%; aspect-ratio: 208 / 135; border: 0; display: block; }

/* ── Saig Cloud flow ────────────────────────────────────────── */

.flow {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.flow-col { display: flex; flex-direction: column; gap: 10px; }
.flow-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sub-3);
  margin-bottom: 4px;
}
.flow-item {
  border: 1px solid var(--line);
  background: var(--beige);
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
}
.flow-line { border-top: 2px dashed var(--mint); }
.flow-hub { justify-self: center; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hub-disc {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--g);
  color: var(--card);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 30px;
  box-shadow: 0 0 0 12px rgba(31, 107, 79, .08), 0 0 0 24px rgba(31, 107, 79, .04);
}

/* ── Benefits ───────────────────────────────────────────────── */

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-title { font-family: var(--serif); font-size: 24px; }
.benefit-card p { font-size: 14px; line-height: 1.6; color: var(--sub); }
.benefit-card-cta {
  background: var(--g);
  border-color: var(--g);
  color: var(--card);
  justify-content: space-between;
  gap: 16px;
}
.benefit-link { color: var(--card); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.benefit-link:hover { color: var(--mint); }

/* ── FAQ ────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font: inherit; margin: 0; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.faq-sign { font-family: var(--serif); font-size: 26px; color: var(--g); flex-shrink: 0; line-height: 1; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a p { padding: 0 4px 24px; font-size: 15px; line-height: 1.7; color: var(--sub); max-width: 640px; }

/* ── Final CTA ──────────────────────────────────────────────── */

/* Two bands in one section: green for the headline, beige for the booking
   embed. Padding lives on the bands so the beige runs edge to edge. */
.final-cta { padding: 0; background: var(--g); color: var(--card); text-align: center; }
.final-head { padding: 130px 32px 84px; }
.final-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.final-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}
.final-title em { color: var(--mint); }
.final-sub { font-size: 18px; line-height: 1.65; color: rgba(252, 251, 248, .78); max-width: 560px; }

/* ── Booking embed (#book) ──────────────────────────────────── */

.booking { background: var(--beige); padding: 72px 32px 56px; }
.booking-inner { max-width: 920px; margin: 0 auto; }

/* No background and no shadow here on purpose. The iClosed embed is themed to
   match the site palette, so anything painted behind it just draws a pale
   frame around the edges where the widget doesn't reach. */
.booking-card {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 620px;
}
/* The vendor snippet carries its own inline height; this just makes sure the
   iframe it injects actually fills the card. */
.booking-card .iclosed-widget { display: block; width: 100%; }
.booking-card iframe { width: 100%; border: 0; display: block; }

.booking-fallback { margin-top: 16px; text-align: center; font-size: 14px; color: var(--sub-2); }
.booking-fallback a { color: var(--g); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.booking-fallback a:hover { color: #144936; }
.booking-fallback-noscript { margin: 0; padding: 28px 24px; }

/* ── Footer ─────────────────────────────────────────────────── */

.site-footer { position: relative; overflow: hidden; background: var(--beige); padding: 96px 32px 36px; }

.footer-motif { position: absolute; right: -120px; bottom: -140px; width: 520px; opacity: .4; pointer-events: none; }
.footer-motif img { width: 100%; height: auto; display: block; }

.footer-inner { position: relative; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-brand img { height: 34px; width: auto; display: block; }
.footer-brand .mono-tag { font-size: 12px; letter-spacing: .14em; color: var(--sub-2); }

.footer-line {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  max-width: 520px;
}
.footer-line em { color: var(--g); }

.footer-cols { display: flex; gap: 64px; justify-content: flex-end; }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 600; }
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--g); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 13px;
  color: var(--sub-2);
  flex-wrap: wrap;
}
.status { display: inline-flex; align-items: center; gap: 8px; }

/* ============================================================
   Responsive — the desktop composition above is preserved
   intact at ≥1040px; below that it degrades in stages.
   ============================================================ */

@media (max-width: 1180px) {
  .split { gap: 48px; }
  .flow { grid-template-columns: 1fr 56px 1fr 56px 1fr; }
}

@media (max-width: 1040px) {
  .section { padding: 88px 24px; }
  .final-head { padding: 104px 24px 68px; }
  .booking { padding: 56px 24px 48px; }
  .site-footer { padding: 80px 24px 32px; }
  .hero { padding: 150px 24px 72px; }
  .site-header { padding: 0 16px; }

  .hero-cards { grid-template-columns: 1fr; max-width: 620px; }
  .hero-card-map .hero-map-slot { min-height: 220px; }

  .model-grid, .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }

  .split, .split-chat { grid-template-columns: 1fr; gap: 44px; }
  .split-map .map-wrap-lg { max-width: 520px; margin: 0 auto; }

  .flow { grid-template-columns: 1fr; gap: 20px; max-width: 460px; }
  .flow-line { border-top: none; border-left: 2px dashed var(--mint); height: 28px; justify-self: center; }
  .flow-hub { order: 0; }
}

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav-pill { padding: 8px 8px 8px 18px; gap: 12px; }

  /* Touch targets: everything tappable clears the 44px minimum, in both
     dimensions — short labels like "Login" fail on width, not just height. */
  .footer-col a,
  .benefit-link,
  .brand,
  .mobile-menu > a,
  .skip-link,
  .mobile-menu-actions .btn,
  .booking-fallback a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
  }
  .footer-col { gap: 4px; }
  .footer-col a,
  .benefit-link { align-self: flex-start; }
  .skip-link { justify-content: center; }
}

@media (max-width: 760px) {
  .map-callout {
    position: static;
    transform: none;
    margin: 18px auto 0;
    width: -moz-fit-content;
    width: fit-content;
    white-space: normal;
    text-align: center;
  }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { justify-content: flex-start; gap: 48px; }
  .footer-motif { width: 340px; right: -90px; bottom: -100px; }
}

@media (max-width: 640px) {
  .hero { padding: 130px 20px 64px; }
  .section { padding: 72px 20px; }
  .final-head { padding: 88px 20px 52px; }
  .booking { padding: 44px 20px 40px; }
  .site-footer { padding: 72px 20px 28px; }

  .brand-tag { display: none; }
  .hero-sub, .lead { font-size: 16px; }

  .hero-inner { gap: 22px; }
  .hero-badges { gap: 10px; }
  .badge { font-size: 11px; letter-spacing: .1em; padding: 8px 14px; }
  .stamp { font-size: 10px; padding: 6px 10px; }

  /* Stacked full-width CTAs — side by side they end up too narrow to hit. */
  .hero-ctas { flex-direction: column; align-self: stretch; gap: 10px; }
  .hero-ctas .btn { width: 100%; }
  .hero-cards { margin-top: 48px; }

  .model-grid, .sec-grid, .benefit-grid { grid-template-columns: 1fr; }
  .hero-tiles { grid-template-columns: 1fr; }
  .card, .chat-card { padding: 20px; }
  .sec-card, .benefit-card { padding: 24px; }

  .marquee-run { font-size: 20px; gap: 24px; }
  .marquee-track { gap: 24px; }

  .faq-q { font-size: 16px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .dot-blink,
  .caret,
  .map-dot,
  .rotator-word { animation: none !important; }
  .faq-a { transition: none; }
  .hero-bg { transform: none !important; }
  * { transition-duration: .01ms !important; }
}

/* ── 404 ────────────────────────────────────────────────────── */

.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; }
.nf-inner { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.nf-logo { height: 34px; width: auto; }
.nf-copy { max-width: 460px; }
