/* Content pages: web portal (/landing), About, feedback, 404.
   Builds on sphere.css tokens; the kiosk has its own kiosk.css. */

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html:has(body.site) { overflow-x: clip; }      /* keeps body clipping on phones (see landing-fx.css) */
body.site { min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip; }
.site main { position: relative; z-index: var(--z-app); flex: 1; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
@media (min-width: 900px) { .wrap { width: min(1240px, 100% - 128px); } }

/* sticky header variant with in-page navigation */
.site .deck { position: sticky; top: 0; }
.deck-nav { display: flex; gap: 2px; margin-left: 18px; }
.deck-nav a {
  position: relative; padding: 10px 12px; border-radius: 10px;
  color: var(--on-band-2); font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
  transition: color var(--t-base), background-color var(--t-base);
}
.deck-nav a:hover { color: var(--text); background: var(--panel-2); }
.deck-nav a[aria-current="true"], .deck-nav a[aria-current="page"] { color: var(--on-band); }
.deck-nav a[aria-current]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--amber);
}
@media (max-width: 1100px) { .deck-nav { display: none; } }

/* typography for content pages */
.display {
  font: 800 clamp(2.5rem, 4.6vw, 4.25rem)/1.02 var(--font-display); font-stretch: 116%;
  letter-spacing: -.035em; text-wrap: balance;
}
.display em { font-style: normal; color: var(--amber-ink); }
.h2 { font: 800 clamp(1.875rem, 3.4vw, 3rem)/1.06 var(--font-display); font-stretch: 114%; letter-spacing: -.03em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--amber-ink); }
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 56ch; }
.prose { color: var(--text-2); line-height: 1.65; max-width: 62ch; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.section { padding-block: clamp(72px, 10vw, 140px) clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* ── Portal hero: copy | guide + live chat ───────────────────────────── */
.p-hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 110px); }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.p-hero-copy { display: grid; gap: 24px; align-content: center; }
.p-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.p-stage { position: relative; min-height: 600px; }
.p-guide {
  position: absolute; left: -12%; top: 0; width: 66%; aspect-ratio: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%); mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.p-guide canvas { width: 100%; height: 100%; object-fit: contain; animation: charFloat 5s var(--ease-in-out) infinite; }
@keyframes charFloat { 50% { transform: translateY(-8px); } }
.p-guide::before {
  content: ''; position: absolute; inset: 8% 12% 18%; border-radius: 50%;
  background: radial-gradient(circle, var(--cobalt-wash), transparent 70%); border: 1px solid var(--line-2);
}
.demo-card {
  position: relative; margin: 150px 0 0 auto; width: min(400px, 100%); z-index: 1;
  display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden;
}
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.demo-head h2 { font-size: 1.0625rem; display: flex; gap: 8px; align-items: center; }
.demo-head .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(19, 128, 79, .5); animation: livePulse 2.4s var(--ease-out) infinite; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.demo-chips .chip { min-height: 40px; font-size: .8125rem; }
.demo-thread { min-height: 210px; max-height: 300px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 90%; padding: 10px 14px; line-height: 1.5; overflow-wrap: anywhere; animation: msgIn .35s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.bubble.user { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--text); color: var(--ground); font-weight: 600; }
.bubble.bot { align-self: flex-start; border-radius: 4px 16px 16px 16px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 500; white-space: pre-line; }
.bubble.bot a { display: inline-flex; margin-top: 8px; font-weight: 700; }
.bubble.hint { align-self: center; max-width: 100%; text-align: center; color: var(--text-3); background: none; border: 0; font-size: .9375rem; }
.demo-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.demo-form input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-solid); font-size: 1rem; }
.demo-form input::placeholder { color: var(--text-3); }
.demo-form input:focus-visible { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-wash); }
.thinking { display: inline-flex; gap: 5px; }
.thinking span { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); animation: think .9s var(--ease-in-out) infinite; }
.thinking span:nth-child(2) { animation-delay: .15s; }
.thinking span:nth-child(3) { animation-delay: .3s; }
@keyframes think { 0%, 80%, 100% { transform: scale(.7); opacity: .4; } 40% { transform: scale(1.1); opacity: 1; } }

/* ── Departure board band of live numbers ────────────────────────────── */
.board {
  position: relative; z-index: var(--z-app);
  background: var(--ink-band); color: var(--on-band);
  border-block: 2px solid var(--amber);
}
.board .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.board-cell { display: grid; gap: 12px; padding: 28px 20px; border-left: 1px solid rgba(255, 255, 255, .08); }
.board-cell:first-child { border-left: 0; }
.board-cell .flap { --tile-w: 34px; --tile-h: 50px; --tile-fs: 2rem; min-height: 50px; }
.board-cell span { color: var(--on-band-2); font-weight: 600; }
@media (max-width: 640px) {
  .board-cell { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 4px; }
  .board-cell:first-child { border-top: 0; }
}

/* ── Capabilities: sticky preview, scrolling list ────────────────────── */
.caps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.caps-visual { position: sticky; top: calc(var(--header-h) + 32px); }
.caps-screen { position: relative; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; }
.cap-view { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: scale(.98); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.cap-view.on { opacity: 1; transform: none; }
.cap-view .flap { position: absolute; left: 20px; top: 18px; }
.cap-map { position: relative; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-2); background: #fff; }
.cap-map img { width: 100%; height: auto; }
.cap-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cap-map .route { fill: none; stroke: var(--amber); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.cap-map .casing { fill: none; stroke: #0e1626; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; }
.cap-view.on .cap-map .route, .cap-view.on .cap-map .casing { animation: drawRoute 1.6s .2s var(--ease-out) forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.cap-map .you { fill: var(--cobalt); stroke: #fff; stroke-width: 4; }
.cap-map .end { fill: var(--amber); stroke: #0e1626; stroke-width: 4; }
.cap-langs { display: grid; gap: 10px; width: min(360px, 100%); }
.cap-langs .bubble { animation: none; }
.cap-view.on .cap-langs .bubble { animation: msgIn .45s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
.cap-voice { display: grid; justify-items: center; gap: 22px; }
.cap-voice .wave { display: flex; gap: 4px; align-items: center; height: 70px; }
.cap-voice .wave i { width: 6px; height: 100%; border-radius: 4px; background: var(--cobalt); transform: scaleY(.2); animation: waveBar .9s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--b) * -71ms); }
@keyframes waveBar { to { transform: scaleY(var(--h, .8)); } }
.cap-voice .mic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, var(--cobalt-2), var(--cobalt)); box-shadow: 0 10px 28px rgba(51, 96, 240, .35); }
.cap-voice .mic svg { width: 34px; height: 34px; }
.cap-learn { display: grid; gap: 12px; width: min(380px, 100%); }
.cap-learn .q { padding: 14px 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; }
.cap-learn .q small { display: block; margin-top: 4px; font-weight: 600; color: var(--stop); transition: color .4s; }
.cap-view.on .cap-learn .q small { animation: taught .1s 1.4s forwards; }
@keyframes taught { to { color: var(--ok); } }
.cap-learn .a { padding: 14px 16px; border-radius: 14px; background: var(--amber); color: var(--on-amber); font-weight: 700; opacity: 0; transform: translateY(8px); }
.cap-view.on .cap-learn .a { animation: msgIn2 .5s 1.2s var(--ease-out) forwards; }
@keyframes msgIn2 { to { opacity: 1; transform: none; } }
.caps-list { display: grid; gap: clamp(48px, 12vh, 140px); padding-block: 8vh 16vh; }
.cap { display: grid; gap: 14px; opacity: .38; transition: opacity .4s var(--ease-out); }
.cap.on { opacity: 1; }
.cap h3 { font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-stretch: 114%; }
.cap p { color: var(--text-2); line-height: 1.6; max-width: 46ch; font-size: 1.0625rem; }
.cap .mini { display: none; }
@media (max-width: 900px) {
  .caps { grid-template-columns: 1fr; }
  .caps-visual { display: none; }
  .caps-list { padding: 0; gap: 40px; }
  .cap { opacity: 1; }
  .cap .mini { display: block; }
  .cap .mini .caps-screen { aspect-ratio: 16 / 10; }
  .cap .mini .cap-view { opacity: 1; transform: none; }
}

/* ── How it works: three stops on a route line ───────────────────────── */
.how-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 44px; }
.how-track { position: absolute; left: 12px; right: 12px; top: 14px; height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.how-fill { position: absolute; inset: 0; background: var(--amber); transform-origin: 0 50%; transform: scaleX(0); }
.how-puck { position: absolute; top: 4px; left: 0; width: 26px; height: 26px; margin-left: -1px; border-radius: 50%; background: var(--cobalt); border: 4px solid var(--panel-solid); box-shadow: 0 0 0 6px var(--cobalt-wash); }
.how-stop { display: grid; gap: 10px; }
.how-stop::before { content: ''; position: absolute; top: 8px; width: 18px; height: 18px; border-radius: 5px; transform: rotate(45deg); background: var(--ink-band); border: 3px solid var(--amber); margin-left: 4px; }
.how-stop { position: relative; padding-top: 0; }
.how-stop::before { top: -38px; }
.how-stop h3 { font-size: 1.375rem; }
.how-stop p { color: var(--text-2); line-height: 1.55; }
@media (max-width: 720px) {
  .how-line { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; }
  .how-track { left: 14px; right: auto; top: 0; bottom: 0; width: 6px; height: auto; }
  .how-fill { transform-origin: 50% 0; transform: scaleY(0); }
  .how-puck { display: none; }
  .how-stop::before { top: 2px; left: -40px; }
}

/* ── Campus photos ───────────────────────────────────────────────────── */
.campus-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.campus-img { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-panel); background: var(--panel-2); box-shadow: var(--shadow-2); }
.campus-img img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.campus-a { grid-row: span 2; min-height: 520px; }
.campus-b, .campus-c { min-height: 250px; }
.campus-img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(8, 15, 24, .7); color: #eef3fb; font-weight: 600; font-size: .9375rem; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .campus-grid { grid-template-columns: 1fr; }
  .campus-a { grid-row: auto; min-height: 320px; }
}

/* ── FAQ: questions left, answer right ───────────────────────────────── */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.faq-list { display: grid; gap: 8px; }
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 14px 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700; font-size: 1.0625rem; text-align: left;
  transition: background-color var(--t-base), border-color var(--t-base), transform var(--t-fast) var(--ease-out);
}
.faq-q svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-base) var(--ease-out); color: var(--text-3); }
.faq-q:hover { border-color: var(--amber); }
.faq-q:active { transform: scale(.99); }
.faq-q[aria-selected="true"] { background: var(--ink-band); color: var(--on-band); border-color: transparent; }
.faq-q[aria-selected="true"] svg { transform: translateX(4px); color: var(--amber); }
.faq-a { position: sticky; top: calc(var(--header-h) + 24px); padding: clamp(24px, 3vw, 36px); min-height: 260px; display: grid; align-content: start; gap: 14px; }
.faq-a h3 { font-size: 1.375rem; }
.faq-a p { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }
@media (max-width: 820px) { .faq { grid-template-columns: 1fr; } .faq-a { position: static; min-height: 0; } }

/* ── Feedback band ───────────────────────────────────────────────────── */
.fb-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fb-options { display: grid; gap: 10px; }
.fb-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; min-height: 72px; padding: 16px 20px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base), box-shadow var(--t-base);
}
.fb-option:hover { transform: translateX(6px); border-color: var(--amber); box-shadow: var(--shadow-2); }
.fb-option .tag { padding: 5px 10px; border-radius: 8px; font-size: .8125rem; font-weight: 800; background: var(--amber-wash); color: var(--amber-ink); }
.fb-option .t { font-weight: 600; }
.fb-option svg { width: 20px; height: 20px; color: var(--text-3); }
@media (max-width: 820px) { .fb-band { grid-template-columns: 1fr; } }

/* ── Closing call ────────────────────────────────────────────────────── */
.closing { text-align: center; display: grid; justify-items: center; gap: 22px; }
.closing .display { max-width: 16ch; }
.closing .lede { margin-inline: auto; }

/* ── About: editorial ────────────────────────────────────────────────── */
.a-hero { min-height: calc(92dvh - var(--header-h)); display: grid; align-content: center; padding-block: 64px; }
.a-hero h1 { font: 800 clamp(2.75rem, 7.4vw, 6rem)/.98 var(--font-display); font-stretch: 120%; letter-spacing: -.04em; }
.a-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.a-hero h1 .ln > span { display: inline-block; }
.a-hero h1 em { font-style: normal; color: var(--amber-ink); }
.a-hero .lede { margin-top: 28px; }
.mission { font: 700 clamp(1.75rem, 3.8vw, 3.25rem)/1.18 var(--font-display); font-stretch: 108%; letter-spacing: -.02em; max-width: 24ch; }
.mission .w { color: var(--text); opacity: .16; transition: opacity .2s linear; }
.mission .w.lit { opacity: 1; }
.mission em { font-style: normal; color: var(--amber-ink); }

.story { position: relative; overflow: hidden; }
.story-track { display: flex; gap: 28px; padding-inline: max(20px, calc((100vw - 1240px) / 2)); width: max-content; }
.story-panel { width: min(560px, 82vw); min-height: 420px; padding: clamp(28px, 4vw, 48px); display: grid; align-content: space-between; gap: 28px; }
.story-panel .n { font: 600 1rem/1 var(--font-mono); color: var(--amber-ink); }
.story-panel h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-stretch: 116%; }
.story-panel h3 em { font-style: normal; color: var(--amber-ink); }
.story-panel p { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); }
@media (max-width: 760px) {
  .story-track { flex-direction: column; width: auto; padding-inline: 20px; }
  .story-panel { width: auto; min-height: 0; }
}

.guide-strip { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.face { display: grid; gap: 8px; justify-items: center; text-align: center; }
.face canvas { width: 100%; aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--cobalt-wash), var(--panel-2) 70%); border: 1px solid var(--line); object-fit: cover; transition: transform var(--t-base) var(--ease-out); }
.face:hover canvas { transform: translateY(-4px) rotate(-1.5deg); }
.face span { font-size: .875rem; font-weight: 600; color: var(--text-2); }
@media (max-width: 760px) { .guide-strip { grid-template-columns: 1fr; } .faces { grid-template-columns: repeat(3, 1fr); } }

.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-2); }
.value { padding: clamp(24px, 3vw, 40px) clamp(0px, 2vw, 24px) clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 12px; align-content: start; }
.value:nth-child(odd) { padding-right: clamp(20px, 4vw, 56px); border-right: 1px solid var(--line-2); }
.value:nth-child(even) { padding-left: clamp(20px, 4vw, 56px); }
.value h3 { font-size: clamp(1.375rem, 2.2vw, 1.875rem); font-stretch: 112%; }
.value p { color: var(--text-2); line-height: 1.6; max-width: 44ch; }
@media (max-width: 720px) {
  .values { grid-template-columns: 1fr; }
  .value:nth-child(odd), .value:nth-child(even) { padding-inline: 0; border-right: 0; }
}

.build { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.build-item { padding: 24px; display: grid; gap: 10px; align-content: start; }
.build-item:nth-child(1) { grid-column: span 7; background: var(--ink-band); color: var(--on-band); border-color: transparent; }
.build-item:nth-child(1) p { color: var(--on-band-2); }
.build-item:nth-child(2) { grid-column: span 5; }
.build-item:nth-child(3) { grid-column: span 5; }
.build-item:nth-child(4) { grid-column: span 7; background: var(--amber); color: var(--on-amber); border-color: transparent; }
.build-item:nth-child(4) p { color: rgba(255, 255, 255, .85); }
.build-item h3 { font-size: 1.375rem; font-stretch: 112%; }
.build-item p { color: var(--text-2); line-height: 1.6; }
.build-item svg { width: 28px; height: 28px; }
@media (max-width: 820px) { .build-item:nth-child(n) { grid-column: span 12; } }

/* ── Feedback page ───────────────────────────────────────────────────── */
.fb-page { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(40px, 7vw, 96px); }
.fb-page-copy { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.fb-form { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: .9375rem; }
.field .hint { font-size: .875rem; color: var(--text-3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--panel-solid); color: var(--text); font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-wash); }
.field .err { color: var(--stop); font-size: .875rem; font-weight: 600; min-height: 1.2em; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.cats legend { margin-bottom: 8px; }
.cats input { position: absolute; opacity: 0; pointer-events: none; }
.cats label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; cursor: pointer; transition: background-color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.cats label:hover { border-color: var(--amber); }
.cats input:checked + label { background: var(--amber); color: var(--on-amber); border-color: transparent; }
.cats input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--amber); }
.form-status { font-weight: 700; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--stop); }
.sent { display: grid; gap: 14px; justify-items: start; padding: 8px 0; }
.sent svg { width: 48px; height: 48px; color: var(--ok); }
@media (max-width: 860px) { .fb-page { grid-template-columns: 1fr; } .fb-page-copy { position: static; } .row2 { grid-template-columns: 1fr; } }

/* ── 404 ─────────────────────────────────────────────────────────────── */
.nf { min-height: calc(100dvh - var(--header-h) - 40px); display: grid; align-content: center; gap: 24px; padding-block: 48px; }
.nf .flap { --tile-w: clamp(40px, 9vw, 76px); --tile-h: calc(var(--tile-w) * 1.42); --tile-fs: calc(var(--tile-w) * .8); }
.nf-search { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; }
.nf-search input { flex: 1; min-width: 220px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-solid); font-size: 1rem; }
.nf-search input:focus-visible { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px var(--amber-wash); }
.nf-hint { min-height: 1.4em; font-weight: 600; color: var(--text-2); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Content-page responsiveness ─────────────────────────────────────── */
@media (max-width: 960px) {
  .p-hero .wrap { grid-template-columns: 1fr; }
  .p-stage { min-height: 0; display: grid; }
  .p-guide { position: relative; left: auto; width: 46%; margin: 0 auto -18%; }
  .demo-card { margin: 0 auto; }
  .p-stage { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .p-guide canvas, .cap-voice .wave i, .demo-head .live, .thinking span { animation: none !important; }
  .cap-view { transition: opacity .2s; transform: none; }
  .cap-view.on .cap-map .route, .cap-view.on .cap-map .casing { animation: none; stroke-dashoffset: 0; }
  .cap-learn .a { opacity: 1; transform: none; }
  .mission .w { opacity: 1; }
}

/* footer links stay reachable on phones: they drop under the ticker */
@media (max-width: 899px) {
  .site .ticker { flex-wrap: wrap; height: auto; }
  .site .ticker-tag, .site .ticker-view { height: 40px; }
  .site .ticker-view { flex: 1; }
  .site .ticker-links { display: flex; width: 100%; justify-content: center; flex-wrap: wrap; padding: 6px 8px 10px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .site .ticker-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (min-width: 761px) { .story { min-height: 100dvh; display: grid; align-content: center; perspective: 1200px; } }

/* static footer (replaces the ticker on content pages) */
.site-foot { position: relative; z-index: var(--z-app); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--ground) 80%, transparent); }
.site-foot-inner { width: min(1240px, 100% - 40px); margin-inline: auto; min-height: 72px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 12px; }
.site-foot-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 800 1.0625rem/1 var(--font-display); font-stretch: 116%; }
.site-foot-brand img { height: 22px; width: auto; }
.site-foot-brand b { color: var(--amber-ink); font-weight: 800; }
.site-foot-links { display: flex; gap: 4px; flex-wrap: wrap; }
.site-foot-links a { padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.site-foot-links a:hover { color: var(--text); background: var(--panel-2); }
.site-foot-copy { margin-left: auto; color: var(--text-3); font-size: .875rem; }
@media (max-width: 640px) { .site-foot-copy { margin-left: 0; width: 100%; } }

/* ── Privacy policy / terms (templates/legal.html) ─────────────────────── */
.legal { max-width: 760px; padding-block: clamp(40px, 7vh, 80px) clamp(56px, 9vh, 104px); }
.legal-kicker { font-family: var(--font-mono); font-size: .8125rem; color: var(--text-3); margin-bottom: 14px; }
.legal .display { margin-bottom: 20px; }
.legal .lede { margin-bottom: 8px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li, .legal dd { color: var(--text-2); line-height: 1.7; }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal-list { display: grid; gap: 12px; margin: 0; }
.legal-list > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.legal-list dt { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.legal-list dd { margin: 0; }
