/*
 * Marketing site for www.themaven.ai.
 * Dark is the default. Light colors live on html[data-theme="light"].
 * This file must never point at a font, image, or script on another origin.
 * Lexend is the self-hosted family in ../fonts. Weights 300–700 come from
 * that variable font; the page must not fall through to a hosted copy.
 */

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/lexend-vietnamese.woff2") format("woff2");
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/lexend-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Lexend";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #141414;
  --window: #1f1f1f;
  --surface-1: #2a2a2a;
  --surface-2: #333333;
  --surface-3: #474747;
  --surface-field: #2a2a2a;
  --line: #313131;
  --card-line: #3a3a3a;
  --card-line-strong: #4d4d4d;
  --text: #f3f3f3;
  --text-muted: #a6a6a6;
  /* Spec 4.1: #8c8c8c misses 4.5:1 on surface-1. #959595 clears it. */
  --text-subtle: #959595;
  --on-selected: #ffffff;
  --accent: #6ec1ea;
  --accent-text: #8fd0f0;
  --accent-strong: #6ec1ea;
  --on-accent: #0e1e27;
  --focus-ring: 0 0 0 3px rgba(110, 193, 234, 0.55);
  --toggle-knob: #0f0f0f;
  --tint-blue-bg: rgba(110, 193, 234, 0.16);
  --tint-blue-fg: #8fd0f0;
  --tint-lavender-bg: rgba(143, 139, 242, 0.2);
  --tint-lavender-fg: #b6b3ff;
  --tint-peach-bg: rgba(232, 168, 143, 0.18);
  --tint-peach-fg: #f0bca6;
  --tint-teal-bg: rgba(95, 199, 185, 0.17);
  --tint-teal-fg: #84dace;
  --status-ok: #62d69e;
  --status-ok-bg: rgba(98, 214, 158, 0.14);
  --status-warn: #f4c152;
  --status-warn-bg: rgba(244, 193, 82, 0.14);
  --status-inactive: #b3b3b3;
  --status-inactive-bg: rgba(179, 179, 179, 0.12);
  --status-fail: #f2766a;
  --status-fail-bg: rgba(242, 118, 106, 0.15);
  --status-info: #74c4ec;
  --status-info-bg: rgba(116, 196, 236, 0.14);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-window: 0 30px 80px rgba(0, 0, 0, 0.35);
  --font-sans: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 34px;
  --fs-4xl: 48px;
  --fs-5xl: 64px;
  --fs-6xl: 96px;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --touch-min: 44px;
  --window-gap: 16px;
  --gutter: 24px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --color-bg: #eee7de;
  --window: #ffffff;
  --surface-1: #faf2e9;
  --surface-2: #f4eadf;
  --surface-3: #efe7de;
  --surface-field: #faf2e9;
  --line: #e3edf3;
  --card-line: #d5e6f0;
  --card-line-strong: #b9d3e3;
  --text: #1d1d1d;
  --text-muted: #5c5c5c;
  /* Spec 4.1: #707070 misses 4.5:1 on the cream surface. #6b6b6b clears it. */
  --text-subtle: #6b6b6b;
  --on-selected: #1d1d1d;
  --accent: #4fb0e0;
  --accent-text: #1a6fa8;
  --accent-strong: #1a6fa8;
  --on-accent: #ffffff;
  /* Spec 4.1: a translucent ring is about 1.7:1 on white. A solid ring clears 3:1. */
  --focus-ring: 0 0 0 3px #1a6fa8;
  --toggle-knob: #ffffff;
  --tint-blue-bg: #e3f2fb;
  --tint-blue-fg: #1a6fa8;
  --tint-lavender-bg: #ecebfd;
  --tint-lavender-fg: #5550c9;
  --tint-peach-bg: #fbeae2;
  --tint-peach-fg: #a4552f;
  --tint-teal-bg: #dff4f1;
  --tint-teal-fg: #17776b;
  --status-ok: #157a4a;
  --status-ok-bg: #e2f5eb;
  --status-warn: #8f5c08;
  --status-warn-bg: #fcf0d6;
  --status-inactive: #5d6166;
  --status-inactive-bg: #efefef;
  --status-fail: #c2372b;
  --status-fail-bg: #fce5e2;
  --status-info: #1a6fa8;
  --status-info-bg: #e2f1fa;
  --shadow-1: 0 1px 3px rgba(60, 40, 20, 0.1);
  --shadow-2: 0 10px 30px rgba(60, 40, 20, 0.12);
  --shadow-window: 0 30px 80px rgba(90, 60, 30, 0.1);
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
}

body {
  background: var(--color-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  transition:
    background-color 250ms ease,
    color 250ms ease;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.muted {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.window {
  margin: var(--window-gap);
  min-height: calc(100vh - 2 * var(--window-gap));
  background: var(--window);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-window);
  overflow: clip;
  display: flex;
  flex-direction: column;
  transition:
    background-color 250ms ease,
    color 250ms ease;
}

main {
  flex: 1;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    filter 150ms ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent-strong);
  color: var(--on-accent);
}

.btn-primary:hover {
  filter: brightness(1.07);
}

.btn-ghost {
  background: var(--surface-1);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-lg {
  min-height: 56px;
  padding: 0 var(--space-7);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: var(--fw-medium);
}

.tag .icon {
  width: 14px;
  height: 14px;
}

.tag-blue {
  background: var(--tint-blue-bg);
  color: var(--tint-blue-fg);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px 0 8px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.pill .icon {
  width: 14px;
  height: 14px;
}

.pill.ok {
  color: var(--status-ok);
  background: var(--status-ok-bg);
}

.pill.warn {
  color: var(--status-warn);
  background: var(--status-warn-bg);
}

.ico {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ico .icon {
  width: 22px;
  height: 22px;
  display: block;
}

.ico.sm {
  width: 38px;
  height: 38px;
}

.ico.sm .icon {
  width: 18px;
  height: 18px;
}

.ico.t0 {
  background: var(--tint-blue-bg);
  color: var(--tint-blue-fg);
}

.ico.t1 {
  background: var(--tint-lavender-bg);
  color: var(--tint-lavender-fg);
}

.ico.t2 {
  background: var(--tint-peach-bg);
  color: var(--tint-peach-fg);
}

.ico.t3 {
  background: var(--tint-teal-bg);
  color: var(--tint-teal-fg);
}

.card {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--window);
  transition:
    background-color 250ms ease,
    border-color 250ms ease;
}

.eyebrow {
  font-size: 13px;
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-head {
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--window);
  font-weight: var(--fw-bold);
  flex: none;
}

.brand strong {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 2px;
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}

.theme-toggle button,
.theme-swap {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font: inherit;
}

.theme-toggle button:hover,
.theme-swap:hover {
  color: var(--text);
}

html[data-theme="light"] .theme-toggle [data-theme="light"],
html:not([data-theme="light"]) .theme-toggle [data-theme="dark"] {
  background: var(--toggle-knob);
  color: var(--text);
  box-shadow: var(--shadow-1);
}

.theme-toggle .icon,
.theme-swap .icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* One control on a phone, so the wordmark and Portal still fit at 390px. */
.theme-swap {
  display: none;
}

.portal {
  min-height: 44px;
  padding: 0 var(--space-5);
  font-size: var(--fs-sm);
}

section {
  padding-block: var(--space-11);
}

section + section {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-9);
}

.section-intro h2 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-semibold);
}

.section-intro p {
  font-size: var(--fs-lg);
  color: var(--text-muted);
}

.hero {
  padding-block: var(--space-10) var(--space-11);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: flex-start;
}

.hero h1 {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.hero h1 span {
  color: var(--text-muted);
  font-weight: var(--fw-regular);
}

.hero-lede {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 34em;
}

.hero-ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.hero-note {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.hero-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--status-ok);
}

.stage {
  position: relative;
  min-height: 540px;
}

.home-card {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 84%;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hc-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hc-head > div {
  min-width: 0;
}

.hc-head strong {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.hc-head .sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.hc-head .pill {
  margin-left: auto;
}

.hc-temp {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
}

.hc-temp b {
  font-size: 72px;
  font-weight: var(--fw-light);
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.hc-temp div {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  padding-bottom: 6px;
}

.hc-temp div strong {
  display: block;
  color: var(--text);
  font-weight: var(--fw-medium);
}

.hc-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
}

.hc-tile {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  min-width: 0;
}

.hc-tile strong {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.hc-tile .icon {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.chat-card {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 296px;
  width: 62%;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-2);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.chat-title .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-ok);
  flex: none;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: var(--fs-sm);
  line-height: var(--lh-snug);
}

.bubble.guest {
  align-self: flex-end;
  background: var(--surface-1);
  border-bottom-right-radius: 6px;
}

.bubble.maven {
  align-self: flex-start;
  background: var(--tint-blue-bg);
  color: var(--text);
  border-bottom-left-radius: 6px;
}

.escalate {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 352px;
  width: 34%;
  min-width: 200px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  box-shadow: var(--shadow-2);
}

.escalate strong {
  color: var(--text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.aud {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.aud-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.aud h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
}

.aud .lede {
  color: var(--text-muted);
}

.ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.ticks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
}

.ticks .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--status-ok);
}

.ticks li strong {
  font-weight: var(--fw-medium);
}

.ticks li span {
  color: var(--text-muted);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.step::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 56px;
  right: calc(var(--space-4) * -1);
  height: 1px;
  background: var(--card-line);
}

.step:last-child::before {
  display: none;
}

.step .when {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.step h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

.step p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.callout {
  margin-top: var(--space-9);
  padding: var(--space-6) var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.callout p {
  font-size: var(--fs-lg);
}

.callout p span {
  color: var(--text-muted);
}

.callout .pair {
  display: flex;
  margin-left: auto;
  flex: none;
}

.callout .pair .ico + .ico {
  margin-left: -10px;
  box-shadow: 0 0 0 3px var(--window);
}

.concierge .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-10);
  align-items: center;
}

.concierge .section-intro {
  margin-bottom: var(--space-6);
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5) var(--space-6);
}

.fact {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  min-width: 0;
}

.fact strong {
  display: block;
  font-weight: var(--fw-medium);
}

.fact span {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.convo {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.convo .chat-title {
  margin-bottom: var(--space-2);
}

.convo .note {
  align-self: center;
  margin-top: var(--space-2);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

.tile {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}

.tile h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

.tile p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  flex: 1;
}

.tile .state {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.tile .state .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
}

.compare {
  overflow: hidden;
}

.compare table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}

.compare th,
.compare td {
  text-align: left;
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  border-top: 0;
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

.compare thead th.us {
  color: var(--text);
  font-weight: var(--fw-medium);
}

.compare tbody th {
  font-weight: var(--fw-medium);
  width: 30%;
}

.compare td {
  color: var(--text-muted);
}

.compare td.us,
.compare thead th.us {
  color: var(--text);
  background: var(--tint-blue-bg);
}

.compare td.us .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: var(--status-ok);
}

.closing .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
}

.cta-card {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.cta-card h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
}

.cta-card p {
  color: var(--text-muted);
}

.address {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text);
  overflow-wrap: anywhere;
}

.site-foot {
  border-top: 1px solid var(--line);
}

.site-foot .wrap {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 96px;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.site-foot nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--text);
  text-decoration: underline;
}

.missing {
  display: grid;
  place-items: center;
  padding: var(--space-11) var(--space-5);
}

.missing-card {
  width: min(560px, 100%);
  padding: var(--space-9) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.missing-card .hero-ctas {
  justify-content: center;
}

.missing-code {
  margin: 0;
  font-size: var(--fs-6xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.missing-card h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  text-wrap: balance;
}

@media (max-width: 1100px) {
  :root {
    --window-gap: 10px;
  }

  .wrap {
    width: min(1200px, 100% - 2 * var(--space-7));
  }

  section {
    padding-block: var(--space-10);
  }

  .hero .wrap,
  .concierge .wrap {
    grid-template-columns: 1fr;
    gap: var(--space-9);
  }

  .hero h1 {
    font-size: 56px;
  }

  .stage {
    max-width: 640px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: var(--space-8);
  }

  .step:nth-child(3)::before {
    display: none;
  }

  .tiles {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --window-gap: 0px;
  }

  .window {
    border-radius: 0;
    min-height: 100vh;
  }

  .wrap {
    width: calc(100% - 2 * var(--space-5));
  }

  .site-head .wrap {
    height: 76px;
  }

  .theme-toggle {
    display: none;
  }

  .theme-swap {
    display: grid;
    width: 44px;
    height: 44px;
    background: var(--surface-1);
    color: var(--text);
  }

  .theme-swap .when-light,
  html[data-theme="light"] .theme-swap .when-dark {
    display: none;
  }

  html[data-theme="light"] .theme-swap .when-light {
    display: block;
  }

  section {
    padding-block: var(--space-9);
  }

  .section-intro h2 {
    font-size: var(--fs-3xl);
  }

  .hero h1 {
    font-size: 42px;
  }

  .stage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    max-width: none;
  }

  .home-card,
  .chat-card,
  .escalate {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .hc-temp b {
    font-size: 56px;
  }

  .split,
  .closing .wrap,
  .facts,
  .tiles {
    grid-template-columns: 1fr;
  }

  .aud,
  .cta-card {
    padding: var(--space-6);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step::before {
    display: none;
  }

  .callout {
    flex-direction: column;
    align-items: flex-start;
  }

  .callout .pair {
    margin-left: 0;
  }

  .compare th,
  .compare td {
    padding: var(--space-4);
  }

  .compare tbody th {
    width: auto;
  }

  .compare td.us .icon {
    display: none;
  }

  .hero-ctas .btn,
  .cta-card .btn {
    width: 100%;
  }

  .missing-card {
    padding: var(--space-7) var(--space-5);
  }

  .site-foot .wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-3);
    padding-block: var(--space-6);
    text-align: center;
  }

  .site-foot nav {
    margin-left: 0;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-contrast: more) {
  :root {
    --text-muted: var(--text);
    --text-subtle: var(--text);
    --card-line: var(--text);
  }

  .card,
  .hc-tile {
    border-width: 2px;
  }
}
