/* landing.css — public landing page (chatport.dev/).
   Ported from the Claude Design prototype (chatPort.html + cp-*.jsx).
   Tokens duplicated from the shared design system (app/style.css keeps its own
   copy) so the two pages can evolve independently. */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --navy-950: #0A1526;
  --blue-600: #2C6CB0;
  --blue-400: #409BCA;
  --steel-300: #7BA8CE;
  --steel-200: #A9C8E4;

  --bg:        #FBFCFD;
  --bg-subtle: #F4F7FA;
  --surface:   #FFFFFF;
  --surface-2: #F7F9FC;
  --border:    #E6EAF0;
  --border-strong: #D3DAE4;

  --fg:        #11161F;
  --fg-2:      #4A5563;
  --fg-3:      #8A95A5;

  --primary:        #2C6CB0;
  --primary-hover:  #245C97;
  --primary-soft:   #EAF1F8;
  --accent:         #409BCA;
  --ring:           rgba(44,108,176,0.35);

  --success: #1F8A5B;
  --success-soft: #E7F3EC;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow-xs: 0 1px 2px rgba(16,33,58,0.06);
  --shadow-md: 0 4px 16px rgba(16,33,58,0.08), 0 2px 4px rgba(16,33,58,0.04);
  --shadow-lg: 0 12px 36px rgba(16,33,58,0.12), 0 4px 10px rgba(16,33,58,0.06);

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 200ms;

  --t-display: clamp(2.4rem, 4.5vw, 3.5rem);
  --t-lg: 1.0625rem;
  --t-body: 0.9375rem;
  --t-xs: 0.6875rem;
}

[data-theme="dark"] {
  --bg:        #0A1526;
  --bg-subtle: #0E1B30;
  --surface:   #121F36;
  --surface-2: #16243E;
  --border:    #243349;
  --border-strong: #324460;

  --fg:        #E8EEF6;
  --fg-2:      #A7B4C6;
  --fg-3:      #6E7E96;

  --primary:        #4F9BD6;
  --primary-hover:  #6BAEE0;
  --primary-soft:   #152B45;
  --accent:         #5FB0DC;
  --ring:           rgba(95,176,220,0.40);

  --success: #4DBE8A;
  --success-soft: #122C22;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 4px 18px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.30);
  --shadow-lg: 0 14px 40px rgba(0,0,0,0.55), 0 4px 12px rgba(0,0,0,0.40);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--fg);
}
::selection { background: var(--steel-200); }
img { max-width: 100%; }

*::-webkit-scrollbar { width: 9px; }
*::-webkit-scrollbar-thumb {
  background: var(--border-strong); border-radius: 999px;
  border: 2px solid transparent; background-clip: padding-box;
}
*::-webkit-scrollbar-track { background: transparent; }

/* ---- Animations ---- */
@keyframes cp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes cp-blink { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cp-dot { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes cp-msg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes cp-tick-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes cp-tick-draw { 0% { stroke-dashoffset: 30; } 35% { stroke-dashoffset: 0; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cp-tick { animation: cp-tick-pop 0.7s var(--ease-out) both; }
.cp-tick svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: cp-tick-draw 2.4s var(--ease-out) 0.35s infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
  /* Reduce motion: show the checkmark statically drawn, no looping animation. */
  .cp-tick svg path { animation: none !important; stroke-dashoffset: 0 !important; }
}

/* ---- Type helpers ---- */
/* Eyebrow / kicker label. Front-of-house (landing/marketing) uses SANS — the
   design system's original mono eyebrow read as "vibe-coded" here. The
   instrument-grade app UI (Vessel Map, MCP tabs) keeps mono eyebrows on-spec.
   Rule of thumb: SANS for marketing labels, MONO for in-app labels + all data. */
.ds-eyebrow {
  font-family: var(--font-sans); font-weight: 600;
  font-size: var(--t-xs); line-height: 1; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3);
}
.ds-body {
  font-family: var(--font-sans); font-weight: 400;
  font-size: var(--t-body); line-height: 1.6; color: var(--fg-2);
}

/* ---- Buttons ---- */
.cp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--r-md); cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; transition: all var(--dur) var(--ease); white-space: nowrap;
}
.cp-btn-primary { background: var(--primary); color: #fff; }
.cp-btn-primary:hover { background: var(--primary-hover); }
.cp-btn-ghost { background: var(--surface); color: var(--fg); border-color: var(--border-strong); }
.cp-btn-ghost:hover { background: var(--surface-2); border-color: var(--fg-3); }

/* ---- Gate pills ---- */
.gate-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.04em;
}
.gate-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; flex-shrink: 0; }
.gate-pill.public { color: var(--success); background: var(--success-soft); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); }
.gate-pill.request { color: var(--primary); background: var(--primary-soft); border: 1px solid var(--steel-200); }
.gate-pill.poc { color: var(--accent); background: var(--surface-2); border: 1px solid var(--steel-200); }

/* ---- Feature eyebrow (editorial status line — replaces the filled pills) ---- */
.cp-feature-eyebrow {
  display: flex; align-items: center; margin-bottom: 16px;
  font-family: var(--font-sans); font-size: var(--t-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
}
.cp-feature-eyebrow .idx { color: var(--fg-2); }
.cp-feature-eyebrow .sep { margin: 0 10px; opacity: 0.5; }

/* ---- Header ---- */
.cp-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(16px, 4vw);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cp-header.scrolled {
  background: rgba(251,252,253,0.85);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
[data-theme="dark"] .cp-header.scrolled { background: rgba(10,21,38,0.82); }
.cp-header-logo { display: flex; align-items: center; border-radius: 8px; }
.cp-header-logo img { height: 26px; display: block; }
.cp-header-right { display: flex; align-items: center; gap: 10px; }

.cp-nav-desktop { display: flex; align-items: center; gap: 4px; }
.cp-navlink {
  position: relative;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  text-decoration: none; padding: 8px 12px; border-radius: 8px;
}
.cp-navlink:hover { color: var(--fg); background: var(--surface-2); }
.cp-navlink[aria-current="true"] { color: var(--fg); }
.cp-navlink[aria-current="true"]::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--primary);
}

.cp-powered {
  display: inline-flex; align-items: center; gap: 6px; height: 34px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  padding: 0 10px; border-radius: 8px; border: 1px solid var(--border);
}
.cp-powered span {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--fg-3); line-height: 1; text-transform: uppercase;
}
.cp-powered img { height: 12px; display: block; opacity: 0.85; }

/* ---- Account menu ---- */
.cp-menu-wrap { position: relative; }
.cp-menu-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 34px; padding: 0; border-radius: var(--r-md); cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--fg-2);
  transition: all var(--dur) var(--ease);
}
.cp-menu-trigger:hover, .cp-menu-trigger[aria-expanded="true"] { background: var(--surface-2); }
.cp-menu-trigger[aria-expanded="true"] { border-color: var(--border-strong); }
/* Signed-in Admin chip (mirrors the app's account trigger). */
.cp-menu-trigger.signed-in { width: auto; gap: 7px; padding: 0 10px 0 4px; border-radius: 999px; }
.cp-am-avatar {
  width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.cp-am-avatar.lg { width: 34px; height: 34px; }
.cp-am-name { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--fg); }
.cp-menu-account { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; }
.cp-menu-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 252px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 10px;
  animation: slide-up 0.16s var(--ease-out) both;
}
.cp-menu-panel[hidden] { display: none; }
.cp-menu-divider { border-top: 1px solid var(--border); margin: 8px 0; }
.cp-menu-eyebrow {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); padding: 2px 6px 8px;
}
.cp-menu-navlink {
  display: block; padding: 9px 8px; border-radius: var(--r-md); text-decoration: none;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--fg);
  transition: background var(--dur) var(--ease);
}
.cp-menu-navlink:hover { background: var(--surface-2); }
.cp-menu-btn {
  width: 100%; padding: 11px; border-radius: var(--r-md); border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 600;
  transition: background var(--dur) var(--ease);
}
.cp-menu-btn:hover { background: var(--primary-hover); }

/* ---- Sign-in modal (ported from app gate.js) ---- */
@keyframes gate-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
.gate-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--navy-950) 52%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: gate-fade-in 0.2s ease both; font-family: var(--font-sans);
}
.gate-overlay.mobile { align-items: flex-end; padding: 0; }
.gate-modal {
  width: 100%; max-height: 92vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  animation: slide-up 0.3s var(--ease-out) both;
}
.gate-overlay.mobile .gate-modal { border-radius: 18px 18px 0 0; animation-name: gate-sheet-up; }
.gate-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 13px; }
.gate-header-text { flex: 1; min-width: 0; }
.gate-title { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.gate-subtitle { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--fg-2); }
.gate-close {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--fg-3);
}
.gate-body { padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.gate-field { display: block; }
.gate-label {
  display: block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--fg-2);
}
.gate-field input {
  width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: 14px;
  color: var(--fg); background: var(--bg);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  padding: 10px 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.gate-field input:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.gate-field input.invalid { border-color: var(--danger, #C0413B); }
.gate-error {
  display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--danger, #C0413B);
}
.gate-error[hidden] { display: none; }
.gate-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 18px; border-radius: var(--r-md); border: none; cursor: pointer;
  background: var(--primary); color: #fff;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  transition: background .15s, opacity .15s;
}
.gate-btn:hover:not(:disabled) { background: var(--primary-hover); }
.gate-btn:disabled { background: var(--border-strong); opacity: 0.7; cursor: not-allowed; }

.cp-theme-segment {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--border); margin: 0 2px;
}
.cp-theme-segment button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 10px; border-radius: 7px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--fg-3);
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500;
  transition: all var(--dur) var(--ease);
}
.cp-theme-segment button.active {
  border-color: var(--border); background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow-xs);
}
.cp-theme-segment button.active i { color: var(--primary); }

/* ---- Hero ---- */
.cp-hero { padding: clamp(48px, 6vw, 96px) max(20px, 4vw) clamp(40px, 5vw, 72px); }
.cp-hero-grid {
  max-width: 1280px; margin: 0 auto; display: grid; gap: clamp(32px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center;
}
.cp-hero-text { animation: cp-rise 0.7s var(--ease-out) both; }
.cp-hero h1 {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.025em;
  font-size: var(--t-display); line-height: 1.04; color: var(--fg); margin: 0;
  text-wrap: balance;
}
.cp-hero-sub {
  margin: 22px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55;
  color: var(--fg-2); max-width: 480px;
}
.cp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cp-hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 30px; flex-wrap: wrap; }
.cp-hero-trust .label { font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--fg-3); letter-spacing: 0.03em; white-space: nowrap; }
.cp-hero-trust img { height: 15px; opacity: 0.82; }
[data-theme="dark"] .cp-hero-trust img { opacity: 0.7; }
.cp-hero-trust .sep { width: 1px; height: 16px; background: var(--border); }
.cp-hero-trust .mono { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.cp-hero-map {
  position: relative; height: clamp(380px, 46vw, 540px); border-radius: var(--r-xl);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  background: var(--surface-2); animation: cp-rise 0.7s var(--ease-out) 0.08s both;
}

/* ---- Hero/feature Mapbox preview ---- */
.cp-map-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
/* width/height are explicit (not just inset) because mapbox-gl.css loads later
   and overrides position:absolute with .mapboxgl-map{position:relative} */
.cp-map-el { position: absolute; inset: 0; width: 100%; height: 100%; }
.cp-map-vignette {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 50px 8px rgba(255,255,255,0.45);
}
[data-theme="dark"] .cp-map-vignette { box-shadow: inset 0 0 60px 10px rgba(10,21,38,0.5); }
.cp-map-legend {
  position: absolute; bottom: 14px; left: 14px; min-width: 168px;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(16,33,58,0.10);
  border-radius: var(--r-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 11px 12px 10px; box-shadow: 0 6px 20px rgba(20,34,58,0.10);
}
[data-theme="dark"] .cp-map-legend {
  background: rgba(18,31,54,0.86); border-color: rgba(123,168,206,0.18);
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.cp-map-legend .legend-title {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 8px;
}
.cp-map-legend .legend-rows { display: flex; flex-direction: column; gap: 6px; }
.cp-map-legend .legend-row {
  display: flex; align-items: center; gap: 8px;
  transition: opacity 0.32s var(--ease-out);
}
.cp-map-legend .legend-row svg { display: block; flex-shrink: 0; }
.cp-map-legend .legend-row span {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: var(--fg-2);
  white-space: nowrap; transition: color 0.32s ease;
}
.cp-map-legend .legend-row.on span { font-weight: 600; color: var(--fg); }
.cp-map-legend.spotlit .legend-row:not(.on) { opacity: 0.32; }
.cp-map-legend .legend-count {
  margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(16,33,58,0.08);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--fg-3);
}
[data-theme="dark"] .cp-map-legend .legend-count { border-top-color: rgba(123,168,206,0.14); }

/* Feature-2 vessel card — the trail-replay "product in use" overlay (top-right,
   opposite the bottom-left legend). */
.cp-vcard {
  position: absolute; top: 14px; right: 14px; width: 190px; z-index: 3;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(16,33,58,0.10);
  border-radius: var(--r-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(20,34,58,0.12); padding: 11px 12px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cp-vcard.show { opacity: 1; transform: none; }
[data-theme="dark"] .cp-vcard {
  background: rgba(18,31,54,0.88); border-color: rgba(123,168,206,0.18); box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.cp-vcard-head { display: flex; align-items: center; gap: 7px; }
.cp-vcard-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.cp-vcard-name { font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--fg); }
.cp-vcard-sub { font-family: var(--font-sans); font-size: 10.5px; color: var(--fg-3); margin-top: 2px; }
.cp-vcard-rows { display: grid; gap: 4px; margin-top: 9px; }
.cp-vcard-rows > div { display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10.5px; }
.cp-vcard-rows span { color: var(--fg-3); }
.cp-vcard-rows b { color: var(--fg-2); font-weight: 500; }

/* Feature-2 weather key — appears during the wind/rain beat (bottom-left, where
   the vessel-type legend sits on the hero map). */
.cp-wkey {
  position: absolute; bottom: 14px; left: 14px; z-index: 3;
  display: flex; flex-direction: column; gap: 5px;
  background: rgba(255,255,255,0.9); border: 1px solid rgba(16,33,58,0.10);
  border-radius: var(--r-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(20,34,58,0.10); padding: 9px 11px;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cp-wkey.show { opacity: 1; transform: none; }
[data-theme="dark"] .cp-wkey {
  background: rgba(18,31,54,0.86); border-color: rgba(123,168,206,0.18); box-shadow: 0 6px 20px rgba(0,0,0,0.35);
}
.cp-wkey-row { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-2); }
.cp-wkey-row svg { display: block; flex-shrink: 0; }
.cp-wkey-rain { width: 10px; height: 10px; border-radius: 999px; background: #4F9BD6; opacity: 0.7; filter: blur(0.5px); flex-shrink: 0; }
.mapboxgl-ctrl-attrib { font-size: 9px !important; opacity: 0.45; }
.mapboxgl-ctrl-attrib a { color: #8B95A5 !important; }
.mapboxgl-canvas { outline: none; }

/* ---- Feature explainers ---- */
.cp-feature-band { border-top: 1px solid var(--border); }
.cp-feature-band.subtle { background: var(--bg-subtle); }
.cp-feature-grid {
  max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1fr 1fr; align-items: center;
  padding: clamp(48px, 7vw, 100px) max(20px, 4vw);
}
.cp-feature-grid.reverse .cp-feature-text { order: 2; }
.cp-feature-grid.reverse .cp-feature-preview { order: 1; }
.cp-feature-text h2 {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.12; color: var(--fg); margin: 0;
  white-space: pre-line;
}
.cp-feature-pills { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cp-feature-body { margin: 16px 0 0; font-size: var(--t-lg); line-height: 1.6; max-width: 460px; }
.cp-feature-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.cp-feature-points li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--font-sans); font-size: 14px; color: var(--fg-2); line-height: 1.5;
}
.cp-feature-points li i { margin-top: 2px; flex-shrink: 0; color: var(--primary); }
.cp-feature-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cp-feature-preview {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2);
  box-shadow: var(--shadow-md); min-height: clamp(320px, 38vw, 440px);
}
.cp-preview-badge {
  position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; z-index: 2;
  background: rgba(255,255,255,0.86); border: 1px solid rgba(16,33,58,0.1);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono); font-size: 10px; color: var(--fg-2);
}
[data-theme="dark"] .cp-preview-badge { background: rgba(18,31,54,0.82); border-color: #243349; }

/* Chat preview */
.cp-chatprev {
  display: flex; flex-direction: column; padding: clamp(18px, 2.4vw, 28px);
  height: 100%; min-height: inherit; justify-content: center; font-family: var(--font-sans);
}
.cp-chatprev-thread { min-height: 250px; }
.cp-chatprev-user { display: flex; justify-content: flex-end; margin-bottom: 14px; animation: cp-msg 0.32s var(--ease-out) both; }
.cp-chatprev-user > div {
  background: var(--primary); color: #fff; padding: 10px 14px;
  border-radius: 14px 14px 4px 14px; font-size: 13.5px; font-weight: 500; max-width: 82%;
}
.cp-chatprev-ai { display: flex; gap: 10px; align-items: flex-start; animation: cp-msg 0.32s var(--ease-out) both; }
.cp-chatprev-avatar {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: var(--primary-soft); display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.cp-chatprev-body { flex: 1; min-width: 0; }
.cp-chatprev-thinking { display: flex; align-items: center; gap: 4px; height: 21px; }
.cp-chatprev-thinking span {
  width: 6px; height: 6px; border-radius: 999px; background: var(--fg-3);
  animation: cp-dot 1.2s ease-in-out infinite;
}
.cp-chatprev-thinking span:nth-child(2) { animation-delay: 0.16s; }
.cp-chatprev-thinking span:nth-child(3) { animation-delay: 0.32s; }
.cp-chatprev-answer { font-size: 13.5px; color: var(--fg); line-height: 1.5; }
.cp-chatprev-rows { margin-top: 11px; display: flex; flex-direction: column; gap: 7px; }
.cp-chatprev-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm);
  animation: cp-msg 0.3s var(--ease-out) both;
}
.cp-chatprev-row .swatch { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.cp-chatprev-row .name {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg); font-weight: 500;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cp-chatprev-row .type { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); }
.cp-chatprev-row .eta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-chatprev-cost {
  margin-top: 11px; display: flex; align-items: center; gap: 8px;
  animation: cp-msg 0.3s var(--ease-out) both;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3);
}
.cp-chatprev-composer {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 14px; background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease);
}
.cp-chatprev-composer.active { border-color: var(--primary); }
.cp-chatprev-composer .text {
  flex: 1; font-size: 13.5px; color: var(--fg-3); min-width: 0;
  white-space: nowrap; overflow: hidden;
}
.cp-chatprev-composer.active .text { color: var(--fg); }
.cp-chatprev-composer .caret {
  display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; vertical-align: -2px;
  background: var(--primary); animation: cp-blink 1s step-end infinite;
}
.cp-chatprev-composer .send {
  width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
}

/* MCP workflow (animated pipeline preview) */
.cp-wf {
  display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: clamp(22px, 2.8vw, 32px); height: 100%; min-height: inherit;
  justify-content: center;
}
.cp-wf .wf-node {
  display: flex; align-items: center; gap: 11px; width: 100%; max-width: 292px;
  box-sizing: border-box; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 10px 13px; box-shadow: var(--shadow-xs);
  opacity: 0.45;
  transition: opacity 0.4s var(--ease), background 0.4s var(--ease),
    border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cp-wf .wf-node.active {
  opacity: 1; background: var(--primary-soft); border-color: var(--steel-300);
  box-shadow: var(--shadow-md); animation: wf-pop 0.45s var(--ease-out);
}
.cp-wf .wf-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--fg-3);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.cp-wf .wf-node.active .wf-ico { background: #fff; color: var(--primary); }
[data-theme="dark"] .cp-wf .wf-node.active .wf-ico { background: var(--surface); }
.cp-wf .wf-node-body { display: flex; flex-direction: column; min-width: 0; }
.cp-wf .wf-node-title {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--fg-2); line-height: 1.25;
}
.cp-wf .wf-node.active .wf-node-title { color: var(--fg); }
.cp-wf .wf-node-sub {
  font-family: var(--font-mono); font-size: 10.5px; color: var(--fg-3); margin-top: 2px;
}
.cp-wf .wf-connector {
  width: 2px; height: 16px; background: var(--border-strong); border-radius: 2px;
  margin: 4px auto; transition: background 0.4s var(--ease);
}
.cp-wf .wf-connector.active { background: var(--primary); }
.cp-wf .wf-group {
  position: relative; width: 100%; max-width: 440px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 0;
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 20px 10px 12px; transition: border-color 0.4s var(--ease);
}
.cp-wf .wf-group.active { border-color: var(--steel-300); }
.cp-wf .wf-group-label {
  position: absolute; top: -9px; left: 14px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3);
  background: var(--surface-2); padding: 2px 8px; border: 1px solid var(--border);
  border-radius: 999px; transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cp-wf .wf-group.active .wf-group-label { color: var(--primary); border-color: var(--steel-300); }
.cp-wf .wf-fan {
  width: 2px; height: 12px; background: var(--border-strong); border-radius: 2px;
  margin: 6px auto; transition: background 0.4s var(--ease);
}
.cp-wf .wf-fan.active { background: var(--primary); }
/* Square-ish layout: the three MCP servers sit in a horizontal row inside the box. */
.cp-wf .wf-api-row { display: flex; gap: 8px; width: 100%; align-items: stretch; }
.cp-wf .wf-api {
  flex: 1; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 10px 5px; width: auto; max-width: none;
}
.cp-wf .wf-api .wf-node-body { align-items: center; }
.cp-wf .wf-api .wf-node-title { font-size: 11.5px; line-height: 1.2; }
.cp-wf .wf-api .wf-node-sub { font-size: 9px; margin-top: 3px; }
.cp-wf .wf-result { max-width: 240px; }
.cp-wf .beat-dots { display: flex; gap: 6px; margin-top: 18px; }
.cp-wf .beat-dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--border-strong);
  transition: all var(--dur) var(--ease);
}
.cp-wf .beat-dot.active { width: 16px; background: var(--primary); }
@keyframes wf-pop {
  0% { transform: scale(0.97); }
  55% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* ---- How it works ---- */
.cp-how {
  border-top: 1px solid var(--border); background: var(--bg);
  padding: clamp(56px, 8vw, 110px) max(20px, 4vw);
}
.cp-how-inner { max-width: 1180px; margin: 0 auto; }
.cp-how-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.cp-section-title {
  font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; color: var(--fg); margin: 0;
}
.cp-how-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
.cp-how-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-xs);
}
.cp-how-arrow {
  position: absolute; right: -13px; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 22px; height: 22px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--steel-300);
}
.cp-how-card-top { display: flex; align-items: center; justify-content: space-between; }
.cp-how-card-top .icon {
  width: 38px; height: 38px; border-radius: var(--r-md); background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.cp-how-card-top .num { font-family: var(--font-sans); font-weight: 600; font-size: 11px; color: var(--fg-3); }
.cp-how-card .stage {
  font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.cp-how-card .title { font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.cp-how-card p { margin: 8px 0 0; font-family: var(--font-sans); font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.cp-how-note {
  margin-top: 22px; font-family: var(--font-sans); font-size: 13.5px;
  color: var(--fg-3); line-height: 1.65;
}
.cp-mcp-link {
  color: var(--primary); text-decoration: none; white-space: nowrap;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
}
.cp-mcp-link svg, .cp-mcp-link i { display: inline; margin-left: 3px; vertical-align: -1px; }

/* ---- About ---- */
.cp-about {
  border-top: 1px solid var(--border); background: var(--bg-subtle);
  padding: clamp(56px, 8vw, 110px) max(20px, 4vw);
}
.cp-about-grid {
  max-width: 1180px; margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start;
}
.cp-about p { margin: 0; font-size: var(--t-lg); line-height: 1.65; }
.cp-about p + p { margin-top: 18px; }
.cp-about-facts {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.cp-about-facts .k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--fg-3); margin-bottom: 5px;
}
.cp-about-facts .v { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: var(--fg); }

/* ---- Request section ---- */
.cp-request {
  padding: clamp(64px, 9vw, 120px) max(20px, 6vw);
  background: var(--bg); border-top: 1px solid var(--border);
}
.cp-request-grid {
  max-width: 1000px; margin: 0 auto; display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start;
}
.cp-request-pitch p { margin: 18px 0 0; font-size: var(--t-lg); line-height: 1.6; max-width: 420px; }
.cp-request-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.cp-form { display: grid; gap: 16px; }
.cp-form[hidden] { display: none; }  /* the grid display overrides the [hidden] UA rule otherwise */
.cp-two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.cp-field-label {
  display: flex; align-items: center; gap: 6px; margin-bottom: 7px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; letter-spacing: 0.01em; color: var(--fg-2);
}
.cp-field-label .req { color: var(--fg-3); }
.cp-form input[type="text"], .cp-form input[type="email"], .cp-form textarea, .cp-form select {
  width: 100%; padding: 11px 13px;
  font-family: var(--font-sans); font-size: 14px;
  color: var(--fg); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cp-form input#lead-email { font-family: var(--font-mono); }
.cp-field-error { display: block; margin-top: 6px; font-size: 12px; color: var(--danger, #C0413B); }
.cp-field-error[hidden] { display: none; }
.cp-form input.invalid { border-color: var(--danger, #C0413B); }
.cp-form input.invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #C0413B) 22%, transparent); }
.cp-form textarea { resize: vertical; line-height: 1.55; }
.cp-form input:focus, .cp-form textarea:focus, .cp-form select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring);
}
.cp-select-wrap { position: relative; }
.cp-form select { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cp-form select.placeholder { color: var(--fg-3); }
.cp-select-wrap i, .cp-select-wrap svg {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  pointer-events: none; display: flex; color: var(--fg-3);
}
/* Honeypot: visually removed, still in the accessibility tree as a trap field */
.cp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cp-form-submit {
  margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: var(--r-md); border: none;
  background: var(--primary); color: #fff; cursor: pointer;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cp-form-submit:hover:not(:disabled) { background: var(--primary-hover); }
.cp-form-submit:disabled { background: var(--border-strong); opacity: 0.7; cursor: not-allowed; }
.cp-form-consent {
  margin: 0; font-family: var(--font-sans); font-size: 12px; color: var(--fg-3);
  text-align: center; line-height: 1.5;
}
.cp-form-consent a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 2px; }
.cp-form-consent a:hover { color: var(--primary); }
.cp-confirm { padding: 18px 6px 12px; text-align: center; animation: cp-rise 0.5s var(--ease-out) both; }
.cp-confirm .tickwrap {
  width: 52px; height: 52px; border-radius: 999px; background: var(--success-soft);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
  color: var(--success);
}
.cp-confirm h3 {
  font-family: var(--font-sans); font-weight: 600; font-size: 1.4rem;
  letter-spacing: -0.015em; color: var(--fg); margin: 0; text-wrap: balance;
}
.cp-nowrap { white-space: nowrap; }
.cp-confirm p { margin: 12px 0 0; font-size: var(--t-lg); line-height: 1.6; }
.cp-confirm-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; justify-content: center; }
.cp-confirm-actions .try {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px;
  border-radius: var(--r-md); background: var(--primary); color: #fff; text-decoration: none;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
}
.cp-confirm-actions .close {
  display: inline-flex; align-items: center; gap: 7px; padding: 11px 18px;
  border-radius: var(--r-md); background: transparent; color: var(--fg-2); cursor: pointer;
  border: 1px solid var(--border); font-family: var(--font-sans); font-size: 14px; font-weight: 500;
}

/* ---- Footer ---- */
.cp-footer { border-top: 1px solid var(--border); padding: clamp(40px, 5vw, 64px) max(20px, 4vw); background: var(--bg-subtle); }
.cp-footer-inner {
  max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: center; justify-content: space-between;
}
.cp-footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 360px; }
.cp-footer-brand img { height: 22px; width: auto; align-self: flex-start; display: block; }
.cp-footer-brand p { margin: 0; font-family: var(--font-sans); font-size: 13px; color: var(--fg-3); line-height: 1.5; }
.cp-footer-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.cp-footer-col { display: flex; flex-direction: column; gap: 9px; }
.cp-footer-col .ds-eyebrow { margin-bottom: 2px; }
.cp-footlink {
  font-family: var(--font-sans); font-size: 13px; color: var(--fg-2);
  text-decoration: none; transition: color var(--dur) var(--ease);
}
.cp-footlink:hover { color: var(--accent); }
.cp-footer-col .mono { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.cp-footer-bottom {
  max-width: 1240px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-sans); font-size: 12px; color: var(--fg-3);
}
.cp-footer-credit {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--fg-3); white-space: nowrap; transition: color var(--dur) var(--ease);
}
.cp-footer-credit:hover { color: var(--accent); }
.cp-footer-credit img { width: 22px; height: 22px; border-radius: 999px; object-fit: cover; display: block; flex-shrink: 0; }
.cp-footer-legal { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cp-legal-link { color: var(--fg-3); text-decoration: none; transition: color var(--dur) var(--ease); }
.cp-legal-link:hover { color: var(--accent); }

/* ---- Mobile sticky CTA ---- */
/* ---- Responsive ---- */
@media (min-width: 761px) { .cp-menu-nav-mobile { display: none !important; } }
@media (max-width: 760px) {
  .cp-nav-desktop { display: none !important; }
  /* Compact, stacked powered pill next to the menu button. */
  .cp-powered { flex-direction: column; gap: 1px; height: 34px; padding: 0 9px; justify-content: center; }
  .cp-powered span { font-size: 7.5px; }
  .cp-powered img { height: 10px; }
}
@media (max-width: 920px) {
  .cp-hero-grid { grid-template-columns: 1fr; }
  .cp-hero-map { height: clamp(300px, 60vw, 420px); }
  .cp-feature-grid { grid-template-columns: 1fr; }
  .cp-feature-grid.reverse .cp-feature-text { order: unset; }
  .cp-feature-grid.reverse .cp-feature-preview { order: unset; }
  .cp-request-grid, .cp-about-grid { grid-template-columns: 1fr; }
  .cp-how-head { grid-template-columns: 1fr; gap: 24px; }
  .cp-how-flow { grid-template-columns: 1fr; gap: 26px; }
  .cp-how-arrow { right: 50%; top: auto; bottom: -24px; transform: translateX(50%) rotate(90deg); }
}
@media (max-width: 560px) {
  .cp-two { grid-template-columns: 1fr; }
  /* Feature-3 flow: the horizontal server row gets too cramped on phones — stack it. */
  .cp-wf .wf-api-row { flex-direction: column; align-items: center; }
  .cp-wf .wf-api { flex-direction: row; align-items: center; text-align: left; width: 100%; }
  .cp-wf .wf-api .wf-node-body { align-items: flex-start; }
  .cp-wf .wf-api .wf-node-title { font-size: 13px; }
  .cp-wf .wf-api .wf-node-sub { font-size: 10.5px; }
}
