/* =========================================================
   CityHallOS — marketing site
   ========================================================= */

:root {
  --ink: #0b1324;
  --ink-2: #2d3748;
  --muted: #5e6779;
  --faint: #8a91a0;
  --paper: #fbfaf6;
  --paper-2: #f3f1ea;
  --surface: #ffffff;
  --line: #e6e2d8;
  --line-2: #d9d4c7;

  --blue: #2450e0;
  --blue-ink: #1a3ab0;
  --blue-soft: #eaf0ff;
  --blue-line: #c9d6ff;
  --green: #0f7a55;
  --green-soft: #e2f3ea;
  --amber: #a35f00;
  --amber-soft: #fff1d6;
  --red: #b42318;
  --red-soft: #fde8e6;
  --violet: #5b3fd1;
  --violet-soft: #efebff;

  --night: #0a1020;
  --night-2: #121a2e;
  --night-line: #222c44;
  --night-text: #c6cbd8;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06);
  --shadow: 0 1px 2px rgba(11, 19, 36, .05), 0 8px 24px -6px rgba(11, 19, 36, .10);
  --shadow-lg: 0 2px 4px rgba(11, 19, 36, .04), 0 24px 60px -12px rgba(11, 19, 36, .22);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Tight", var(--font-sans);
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.025em; line-height: 1.08; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); line-height: 1.6; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin: 14px 0 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 18px -6px rgba(36, 80, 224, .6); }
.btn-primary:hover { background: var(--blue-ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1c2740; }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-soft); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .9rem; }

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

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { width: 32px; height: 32px; }
.brand-name span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); align-items: center; justify-content: center; }

.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 68px 0 auto 0; z-index: 49;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
  .mobile-menu .btn { width: 100%; margin-top: 16px; }
}
@media (max-width: 420px) {
  .nav-cta .btn-primary { display: none; }
}

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

.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(36, 80, 224, .10), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(15, 122, 85, .06), transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 10%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.pill-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  font-size: .85rem; color: var(--ink-2); box-shadow: var(--shadow-sm); text-decoration: none;
}
.pill-badge b { background: var(--blue-soft); color: var(--blue-ink); padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .02em; }

.hero h1 { margin: 22px 0 22px; }
.hero h1 .serif { color: var(--blue); font-size: 1.06em; }
.hero .lede { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { color: var(--green); width: 18px; height: 18px; }

/* Hero visual */
.hero-visual { position: relative; display: flex; flex-direction: column; }
.hv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hv-chat { position: relative; align-self: flex-start; width: min(100%, 420px); z-index: 2; }
.hv-chat .hv-body { padding-bottom: 48px; }
.hv-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hv-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.hv-avatar .icon { width: 18px; height: 18px; }
.hv-title { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.hv-sub { font-size: .76rem; color: var(--green); display: flex; align-items: center; gap: 6px; }
.hv-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hv-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; background: linear-gradient(var(--surface), var(--paper)); }

.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 5px; border: 1px solid var(--line); }
.bubble.sys { align-self: stretch; max-width: none; background: var(--green-soft); color: #0a5a3f; border: 1px solid #bfe3d0; font-size: .84rem; display: flex; gap: 10px; align-items: flex-start; }
.bubble.sys .icon { width: 18px; height: 18px; margin-top: 1px; }
.bubble.update { align-self: stretch; max-width: none; background: var(--blue-soft); border: 1px solid var(--blue-line); color: var(--blue-ink); font-size: .84rem; display: flex; gap: 10px; align-items: flex-start; }
.bubble.update .icon { width: 18px; height: 18px; margin-top: 1px; }
.bubble.alert { align-self: stretch; max-width: none; background: var(--red-soft); border: 1px solid #f6c7c1; color: #8a1c12; display: flex; gap: 10px; align-items: flex-start; }
.bubble.alert .icon { width: 18px; height: 18px; margin-top: 2px; }

.source-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 4px 9px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line);
  font-size: .74rem; color: var(--ink-2); font-weight: 500;
}
.source-chip .icon { width: 13px; height: 13px; color: var(--blue); }

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

.hv-step { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.hv-step.is-on { opacity: 1; transform: none; }
.hv-step.is-gone { display: none; }

.typing { display: inline-flex; gap: 4px; align-items: center; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

[data-typing] .dots { display: none; gap: 4px; align-items: center; height: 20px; }
[data-typing] .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1.2s infinite ease-in-out; }
[data-typing] .dots i:nth-child(2) { animation-delay: .15s; }
[data-typing] .dots i:nth-child(3) { animation-delay: .3s; }
[data-typing].is-typing .dots { display: inline-flex; }
[data-typing].is-typing .txt { display: none; }

.hv-inbox { position: relative; align-self: flex-end; margin-top: -36px; width: min(88%, 380px); z-index: 3; }
.hv-inbox-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.hv-inbox-head span:last-child { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; color: var(--faint); font-weight: 500; }
.hv-req { padding: 14px 16px; }
.hv-req-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hv-req-id { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.hv-req h4 { font-size: 1rem; margin: 6px 0 10px; letter-spacing: -0.01em; }
.hv-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: var(--paper-2); border: 1px solid var(--line); font-size: .74rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tag .icon { width: 12px; height: 12px; }
.tag.ai { background: var(--violet-soft); border-color: #ddd5ff; color: var(--violet); }

.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; white-space: nowrap; transition: background .3s, color .3s; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.new { background: var(--blue-soft); color: var(--blue-ink); }
.status.info { background: var(--amber-soft); color: var(--amber); }
.status.assigned { background: var(--violet-soft); color: var(--violet); }
.status.progress { background: var(--amber-soft); color: var(--amber); }
.status.approval { background: #fde9f3; color: #a3195b; }
.status.resolved { background: var(--green-soft); color: var(--green); }
.status.triage { background: var(--red-soft); color: var(--red); }

.hv-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 16px 16px; }
.hv-progress span { height: 4px; border-radius: 4px; background: var(--line); transition: background .4s; }
.hv-progress span.is-on { background: var(--green); }

.hv-float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow); font-size: .82rem; font-weight: 500;
}
.hv-float .dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
.hv-float .dot .icon { width: 16px; height: 16px; }
.hv-float small { display: block; color: var(--muted); font-weight: 400; font-size: .74rem; }
.hv-float-1 { top: 18px; right: 4px; }
.hv-float-1 .dot { background: var(--violet-soft); color: var(--violet); }

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 560px) {
  .hero-visual { gap: 14px; }
  .hv-chat, .hv-inbox { width: 100%; margin-top: 0; }
  .hv-chat .hv-body { padding-bottom: 16px; }
  .hv-float { display: none; }
  .hv-body { min-height: 330px; }
}

/* ---------- Channels strip ---------- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 28px 0; }
.strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip-label { font-size: .9rem; color: var(--muted); max-width: 260px; line-height: 1.45; }
.strip-label b { color: var(--ink); }
.channels { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.channel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: .88rem; font-weight: 500; background: var(--paper); }
.channel .icon { width: 16px; height: 16px; color: var(--muted); }
.channel-arrow { color: var(--faint); }
.channel.unified { border-style: solid; border-color: var(--blue); background: var(--blue); color: #fff; }
.channel.unified .icon { color: #fff; }

/* ---------- Problem ---------- */

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.problem { background: var(--surface); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.problem-num { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); }
.problem p { color: var(--muted); font-size: .96rem; }
.problem .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); margin-bottom: 6px; }
@media (max-width: 900px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .problem-grid { grid-template-columns: 1fr; } .problem { padding: 26px 22px; } }

/* ---------- Philosophy band ---------- */

.band { background: var(--night); color: #fff; padding: clamp(80px, 11vw, 140px) 0; position: relative; overflow: hidden; }
.band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 70% at 50% 0%, rgba(36, 80, 224, .35), transparent 70%);
}
.band-inner { position: relative; text-align: center; max-width: 980px; margin: 0 auto; }
.band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; }
.band blockquote .serif { color: #9db4ff; }
.band p { color: var(--night-text); margin-top: 28px; font-size: 1.1rem; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ---------- Pillars ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pillar-tag { font-family: var(--font-mono); font-size: .76rem; color: var(--blue); font-weight: 500; }
.pillar h3 { font-size: 1.4rem; }
.pillar p { color: var(--muted); }
.pillar ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.pillar li { display: flex; gap: 10px; font-size: .94rem; color: var(--ink-2); }
.pillar li .icon { width: 18px; height: 18px; color: var(--green); margin-top: 3px; }
.pillar-art { height: 132px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); position: relative; overflow: hidden; margin-bottom: 6px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* pillar mini-illustrations */
.art-agents { display: flex; align-items: center; justify-content: center; gap: 10px; }
.art-agents span { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.art-agents span:nth-child(3) { width: 56px; height: 56px; background: var(--blue); color: #fff; border-color: var(--blue); }
.art-flow { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.art-flow div { display: flex; align-items: center; gap: 8px; height: 26px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); padding: 0 10px; font-size: .72rem; color: var(--muted); }
.art-flow div b { width: 8px; height: 8px; border-radius: 50%; }
.art-flow div:nth-child(1) b { background: var(--blue); }
.art-flow div:nth-child(2) { margin-left: 18px; }
.art-flow div:nth-child(2) b { background: var(--violet); }
.art-flow div:nth-child(3) { margin-left: 36px; }
.art-flow div:nth-child(3) b { background: var(--green); }
.art-portal { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.art-portal .q { align-self: flex-end; background: var(--ink); color: #fff; font-size: .74rem; padding: 6px 10px; border-radius: 10px 10px 3px 10px; }
.art-portal .track { display: flex; gap: 6px; }
.art-portal .track i { flex: 1; height: 6px; border-radius: 6px; background: var(--green); }
.art-portal .track i:last-child { background: var(--line-2); }
.art-portal .lbl { font-size: .72rem; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Demo ---------- */

.demo-section { background: linear-gradient(var(--paper), var(--paper-2)); border-top: 1px solid var(--line); }
.demo-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-size: .86rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.demo-note .icon { width: 16px; height: 16px; color: var(--amber); }

.demo-tabs { display: none; }

.demo { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: stretch; }
.demo-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; min-height: 640px; }
.pane-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); font-size: .78rem; color: var(--muted); }
.pane-bar .dots { display: flex; gap: 6px; }
.pane-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.pane-url { flex: 1; text-align: center; font-family: var(--font-mono); font-size: .74rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane-label { font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 5px; }
.pane-label.res { background: var(--green-soft); color: var(--green); }
.pane-label.staff { background: var(--blue-soft); color: var(--blue-ink); }

/* resident chat */
.r-head { padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.town-seal { width: 40px; height: 40px; border-radius: 50%; background: #1f5e46; color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; }
.r-head .t { font-weight: 600; font-size: .95rem; line-height: 1.2; }
.r-head .s { font-size: .78rem; color: var(--muted); }
.r-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; max-height: 470px; min-height: 380px; }
.r-log .bubble { animation: pop .3s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.r-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 12px; }
.chip { border: 1px solid var(--blue-line); background: var(--blue-soft); color: var(--blue-ink); border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-weight: 500; text-align: left; line-height: 1.3; transition: background .15s, border-color .15s; }
.chip:hover { background: #dbe5ff; border-color: var(--blue); }
.r-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.r-input input { flex: 1; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 16px; font-size: .92rem; }
.r-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.r-input button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; }
.r-input button .icon { width: 18px; height: 18px; }

/* staff console */
.s-body { display: grid; grid-template-columns: 190px 1fr; flex: 1; min-height: 0; }
.s-side { border-right: 1px solid var(--line); padding: 14px 10px; background: var(--paper); display: flex; flex-direction: column; gap: 2px; }
.s-side-group { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.s-side-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .85rem; color: var(--ink-2); }
.s-side-item .icon { width: 16px; height: 16px; color: var(--muted); }
.s-side-item.active { background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.s-side-item.active .icon { color: var(--blue); }
.s-side-item .count { margin-left: auto; font-size: .7rem; background: var(--blue); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 600; }

.s-main { display: flex; flex-direction: column; min-width: 0; }
.s-top { padding: 16px 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.s-top h4 { font-size: 1.05rem; letter-spacing: -0.01em; }
.s-top .who { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.s-top .who i { width: 28px; height: 28px; border-radius: 50%; background: #e9d9c4; color: #6b4a1f; font-style: normal; font-weight: 700; font-size: .72rem; display: grid; place-items: center; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 18px; }
.kpi { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.kpi small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.kpi b { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; font-weight: 600; display: block; margin-top: 2px; transition: color .3s; }
.kpi b.bump { color: var(--blue); }

.s-split { display: grid; grid-template-columns: 1fr 1fr; flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.inbox { border-right: 1px solid var(--line); overflow-y: auto; max-height: 470px; }
.inbox-head { position: sticky; top: 0; background: var(--surface); z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.inbox-row { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: var(--surface); padding: 12px 14px; transition: background .15s; position: relative; }
.inbox-row:hover { background: var(--paper); }
.inbox-row.selected { background: var(--blue-soft); }
.inbox-row.selected::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.inbox-row.fresh { animation: fresh 2.4s ease; }
@keyframes fresh { 0% { background: #dbe5ff; } 100% { background: var(--surface); } }
.inbox-row .r1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.inbox-row .rid { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.inbox-row .rt { font-size: .86rem; font-weight: 600; margin: 4px 0 6px; line-height: 1.35; color: var(--ink); }
.inbox-row .rm { font-size: .74rem; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inbox-row .ai-badge { color: var(--violet); font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.inbox-row .ai-badge .icon { width: 12px; height: 12px; }

.detail { overflow-y: auto; max-height: 470px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.detail-empty { margin: auto; text-align: center; color: var(--muted); font-size: .86rem; max-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.detail-empty .icon { width: 28px; height: 28px; color: var(--faint); }
.d-head .rid { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.d-head h5 { font-family: var(--font-display); font-size: 1.05rem; margin: 4px 0 8px; letter-spacing: -0.01em; line-height: 1.3; font-weight: 600; }
.ai-box { background: var(--violet-soft); border: 1px solid #ddd5ff; border-radius: 10px; padding: 12px; font-size: .82rem; color: #3b2a8f; }
.ai-box .lbl { font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; display: flex; align-items: center; gap: 6px; margin-bottom: 6px; color: var(--violet); }
.ai-box .lbl .icon { width: 14px; height: 14px; }
.fields { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .8rem; margin: 0; }
.fields dt { color: var(--muted); }
.fields dd { margin: 0; font-weight: 500; color: var(--ink); }
.d-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.d-actions button { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.d-actions button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.d-actions button.primary:hover { background: var(--blue-ink); }
.d-actions button:not(.primary):hover { border-color: var(--ink); }
.d-actions button:disabled { opacity: .45; cursor: not-allowed; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.timeline li { position: relative; font-size: .78rem; color: var(--ink-2); line-height: 1.4; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--blue); }
.timeline li.ai::before { border-color: var(--violet); }
.timeline li.done::before { border-color: var(--green); background: var(--green); }
.timeline li small { display: block; color: var(--faint); font-size: .7rem; }
.d-sec-title { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }

.demo-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin-top: 28px; color: var(--muted); font-size: .88rem; }
.demo-foot span { display: inline-flex; align-items: center; gap: 8px; }
.demo-foot .icon { width: 16px; height: 16px; color: var(--blue); }
.demo-reset { background: none; border: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: .88rem; }

@media (max-width: 1180px) {
  .s-body { grid-template-columns: 1fr; }
  .s-side { display: none; }
}
@media (max-width: 980px) {
  .demo { grid-template-columns: 1fr; }
  .demo-tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin: 0 auto 16px; width: fit-content; }
  .demo-tabs button { border: 0; background: transparent; height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
  .demo-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
  .demo-tabs .badge { display: none; min-width: 20px; height: 20px; border-radius: 10px; background: var(--blue); color: #fff; font-size: .72rem; padding: 0 6px; align-items: center; justify-content: center; }
  .demo-tabs .badge.show { display: inline-flex; }
  .demo-pane { min-height: 0; }
  .demo-pane[hidden-mobile] { display: none; }
}
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; padding: 12px; }
  .s-split { grid-template-columns: 1fr; }
  .inbox { border-right: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
  .detail { max-height: none; }
  .r-log { max-height: 420px; min-height: 340px; }
}

/* ---------- Flow / How it works ---------- */

.flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; counter-reset: step; }
.flow::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.flow-step { position: relative; padding: 0 12px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.flow-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; z-index: 1; color: var(--ink); }
.flow-step:last-child .flow-icon { background: var(--green); color: #fff; border-color: var(--green); }
.flow-step:first-child .flow-icon { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow-step h3 { font-size: 1rem; }
.flow-step p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.flow-step .n { font-family: var(--font-mono); font-size: .72rem; color: var(--faint); }
.flow-callout { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.callout { display: flex; gap: 14px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.callout .icon-wrap { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.callout.warn .icon-wrap { background: var(--amber-soft); color: var(--amber); }
.callout.danger .icon-wrap { background: var(--red-soft); color: var(--red); }
.callout h4 { font-size: 1rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.callout p { font-size: .9rem; color: var(--muted); }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .flow::before { display: none; }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; row-gap: 0; }
  .flow-step { flex-direction: row; text-align: left; align-items: flex-start; padding: 0 0 26px; gap: 16px; }
  .flow-step::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 2px; background: var(--line); }
  .flow-step:last-child::after { display: none; }
  .flow-step > div { padding-top: 4px; }
  .flow-icon { flex-shrink: 0; }
  .flow-callout { grid-template-columns: 1fr; }
}

/* ---------- Agents ---------- */

.agents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.agent { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.agent:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.agent-top { display: flex; align-items: center; justify-content: space-between; }
.agent-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.agent.featured { background: var(--ink); color: #fff; border-color: var(--ink); grid-row: span 2; }
.agent.featured .agent-icon { background: var(--blue); color: #fff; }
.agent.featured p, .agent.featured li { color: var(--night-text); }
.agent p { color: var(--muted); font-size: .94rem; }
.agent ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 9px; }
.agent li { display: flex; gap: 10px; font-size: .9rem; }
.agent li .icon { width: 16px; height: 16px; margin-top: 4px; color: #7ea0ff; }
.agent .guard { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); display: flex; gap: 8px; }
.agent .guard .icon { width: 16px; height: 16px; color: var(--amber); margin-top: 2px; }
.agent.featured .guard { border-color: var(--night-line); color: var(--night-text); }
.phase { font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.phase.live { background: var(--green); color: #fff; border-color: var(--green); }
@media (max-width: 960px) { .agents { grid-template-columns: 1fr 1fr; } .agent.featured { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .agents { grid-template-columns: 1fr; } .agent.featured { grid-column: auto; } }

/* ---------- Roles ---------- */

.roles { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.role-tabs { display: flex; flex-direction: column; gap: 6px; }
.role-tab { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid transparent; background: transparent; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 1rem; color: var(--muted); transition: background .15s, color .15s, border-color .15s; }
.role-tab .icon { color: var(--faint); }
.role-tab:hover { color: var(--ink); background: var(--paper-2); }
.role-tab[aria-selected="true"] { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.role-tab[aria-selected="true"] .icon { color: var(--blue); }
.role-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); min-height: 360px; }
.role-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.role-panel > p { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.role-points { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin-top: 30px; }
.role-point { display: flex; gap: 12px; }
.role-point .icon-wrap { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.role-point .icon-wrap .icon { width: 17px; height: 17px; }
.role-point b { display: block; font-size: .95rem; }
.role-point span { font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) {
  .roles { grid-template-columns: 1fr; gap: 20px; }
  .role-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
  .role-tabs::-webkit-scrollbar { display: none; }
  .role-tab { white-space: nowrap; padding: 10px 14px; font-size: .9rem; }
}
@media (max-width: 600px) { .role-points { grid-template-columns: 1fr; } }

/* ---------- Trust ---------- */

.trust { background: var(--night); color: #fff; }
.trust .eyebrow { color: #9db4ff; }
.trust .lede { color: var(--night-text); }
.trust-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
.guarantees { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--radius-lg); overflow: hidden; }
.guarantee { background: var(--night-2); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.guarantee .icon { color: #9db4ff; width: 22px; height: 22px; }
.guarantee h3 { font-size: 1.02rem; }
.guarantee p { color: var(--night-text); font-size: .9rem; }
.never { background: linear-gradient(180deg, #1a2440, var(--night-2)); border: 1px solid var(--night-line); border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; }
.never h3 { font-size: 1.35rem; margin-bottom: 8px; }
.never > p { color: var(--night-text); font-size: .94rem; margin-bottom: 22px; }
.never ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.never li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--night-line); font-size: .94rem; }
.never li .x { width: 22px; height: 22px; border-radius: 50%; background: rgba(240, 82, 66, .16); color: #ff8a7d; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.never li .x .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.never .foot { margin-top: auto; padding-top: 22px; font-size: .84rem; color: var(--night-text); }
.compliance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.compliance span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--night-line); font-size: .84rem; color: var(--night-text); }
.compliance .icon { width: 15px; height: 15px; color: #6ee7b7; }
@media (max-width: 960px) { .trust-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .guarantees { grid-template-columns: 1fr; } }

/* ---------- Integrations ---------- */

.integrate { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.integrate .section-head { margin-bottom: 0; }
.integrate-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 14px; }
.integrate-points li { display: flex; gap: 12px; color: var(--ink-2); }
.integrate-points .icon { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
.stack { position: relative; display: flex; flex-direction: column; gap: 14px; }
.stack-layer { border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); background: var(--surface); }
.stack-layer .lbl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; }
.stack-layer.os { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 18px 40px -16px rgba(36, 80, 224, .65); }
.stack-layer.os .lbl { color: #c9d6ff; }
.stack-row { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-row span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--ink-2); }
.stack-row span .icon { width: 14px; height: 14px; color: var(--muted); }
.stack-layer.os .stack-row span { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
.stack-layer.os .stack-row span .icon { color: #fff; }
.stack-layer.existing { border-style: dashed; background: transparent; }
.stack-connector { display: flex; justify-content: center; gap: 40px; height: 14px; margin: -14px 0; }
.stack-connector i { width: 2px; background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 7px); }
@media (max-width: 900px) { .integrate { grid-template-columns: 1fr; } }

/* ---------- Roadmap ---------- */

.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.phase-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); position: relative; display: flex; flex-direction: column; gap: 10px; }
.phase-card.current { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.phase-card .when { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.phase-card.current .when b { background: var(--blue); color: #fff; font-family: var(--font-sans); font-size: .68rem; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.phase-card h3 { font-size: 1.15rem; }
.phase-card p { font-size: .88rem; color: var(--muted); }
.phase-card ul { list-style: none; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; font-size: .86rem; color: var(--ink-2); }
.phase-card li { display: flex; gap: 8px; }
.phase-card li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); margin-top: 9px; flex-shrink: 0; }
.phase-card.current li::before { background: var(--blue); }
@media (max-width: 1000px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.popular { border-color: var(--ink); background: var(--ink); color: #fff; }
.plan.popular .plan-desc, .plan.popular .per, .plan.popular li { color: var(--night-text); }
.plan.popular li .icon { color: #6ee7b7; }
.plan-flag { position: absolute; top: -12px; left: 30px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.15rem; }
.plan-desc { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-family: var(--font-display); font-size: 3rem; letter-spacing: -0.04em; font-weight: 600; line-height: 1; }
.per { color: var(--muted); font-size: .9rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-2); }
.plan li .icon { width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: .9rem; }
@media (max-width: 960px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* ---------- Pilot ---------- */

.pilot { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pilot-steps { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.pilot-step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pilot-step:first-child { padding-top: 0; }
.pilot-step:last-child { border-bottom: 0; }
.pilot-step .wk { font-family: var(--font-mono); font-size: .76rem; color: var(--blue); font-weight: 500; padding-top: 4px; }
.pilot-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.pilot-step p { color: var(--muted); font-size: .94rem; }
.measure { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.measure h3 { font-size: 1.2rem; margin-bottom: 6px; }
.measure > p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.measure-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.measure-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.measure-table th:not(:first-child), .measure-table td:not(:first-child) { text-align: center; width: 80px; }
.measure-table td { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.measure-table tr:last-child td { border-bottom: 0; }
.measure-table .icon { width: 18px; height: 18px; color: var(--green); margin: 0 auto; }
@media (max-width: 900px) { .pilot-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; transition: transform .25s, background .2s; }
.faq summary .pm .icon { width: 14px; height: 14px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; } .faq details p { padding-right: 0; } }

/* ---------- CTA / Contact ---------- */

.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 120px); }
.cta-card { background: var(--night); color: #fff; border-radius: 28px; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 80% at 0% 0%, rgba(36, 80, 224, .45), transparent 70%); }
.cta-card > * { position: relative; }
.cta-card h2 { margin: 14px 0 18px; }
.cta-card .eyebrow { color: #9db4ff; }
.cta-card .lede { color: var(--night-text); }
.cta-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 12px; color: var(--night-text); }
.cta-list li { display: flex; gap: 12px; }
.cta-list .icon { color: #6ee7b7; margin-top: 3px; width: 18px; height: 18px; }
.contact { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.contact .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 14px; font-size: .95rem; width: 100%; }
.field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); background: #fff; }
.contact .btn { width: 100%; height: 52px; }
.contact .fine { font-size: .78rem; color: var(--muted); text-align: center; }
.contact-success { grid-column: 1 / -1; text-align: center; padding: 40px 10px; display: none; flex-direction: column; align-items: center; gap: 12px; }
.contact-success .ok { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.contact-success h3 { font-size: 1.4rem; }
.contact-success p { color: var(--muted); max-width: 340px; }
.contact.is-sent > :not(.contact-success) { display: none; }
.contact.is-sent .contact-success { display: flex; }
@media (max-width: 960px) { .cta-card { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact { grid-template-columns: 1fr; } .cta-card { border-radius: 22px; padding: 28px 20px; } }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 320px; }
.footer h4 { font-family: var(--font-sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { text-decoration: none; font-size: .92rem; color: var(--ink-2); }
.footer ul a:hover { color: var(--blue); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--faint); font-size: .84rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
}
