/* OkPilot Design System — adapted from existing Telyport visual language */
/* Fonts: Inter (body) + Space Grotesk (display/headings) */
/* Palette: Green accent #2fb574, Dark ink #16191a */

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

:root {
  --green: #2fb574;
  --green-50: #e7f6ee;
  --green-100: #cdefd9;
  --green-400: #52c98a;
  --green-600: #1f9d60;
  --green-700: #157a4a;
  --green-800: #0f5e39;
  --ink: #16191a;
  --ink-50: #f4f5f5;
  --ink-100: #e8eaea;
  --ink-200: #dadedf;
  --ink-300: #c2c7c8;
  --ink-400: #878e91;
  --ink-500: #5d6467;
  --ink-600: #4b5154;
  --ink-700: #33383a;
  --ink-800: #22262a;
  --ink-900: #16191a;
  --ink-950: #0e1112;
  --canvas: #e9ebea;
  --lime-300: #e2fb6a;
  --lime-400: #d2f43f;
  --rose-50: #fceef0;
  --rose-100: #f8d6dd;
  --rose-500: #e2566f;
  --rose-600: #c93a55;
  --rose-700: #a82d44;
  --amber-50: #fbf2e3;
  --amber-100: #f6e4c2;
  --amber-500: #d99a2e;
  --amber-600: #b07a14;
  --steel-50: #eef3f5;
  --steel-100: #dbe6ea;
  --steel-600: #385868;
  --white: #fff;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Instrument Sans', 'DM Sans', sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
  --header-h: 64px;
  --max-w: 80rem;
  --max-w-narrow: 48rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
:where(a, button):focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--green-100); color: var(--ink); }

/* Skip link */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.skip-link:focus { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; background: var(--ink-900); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--radius-md); clip: auto; width: auto; height: auto; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-sm { padding: 2.5rem 0; }
.section-lg { padding: 5rem 0; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(233, 235, 234, 0.8);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(218, 222, 223, 0.7);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem;
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1;
}
.header-logo > img,
.header-logo > svg { display: none; }
.header-logo > img {
  content: url('../assets/okpilot-mark-crop.png');
  display: block;
  width: 2rem !important;
  height: 2rem !important;
  border-radius: 0.65rem;
  object-fit: contain;
  box-shadow: 0 5px 15px -8px rgba(22,25,26,.55);
}
.header-logo-text { display: block; text-transform: lowercase; }
.header-nav { display: none; align-items: center; gap: 2rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }
.header-nav a:hover { color: var(--ink); }
.header-nav .dropdown { position: relative; }
.header-nav .dropdown-trigger { display: flex; align-items: center; gap: 0.25rem; cursor: pointer; padding: 0.5rem 0; }
.header-nav .dropdown-trigger svg { width: 12px; height: 12px; transition: transform 0.2s; }
.header-nav .dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }
.header-nav .dropdown-menu {
  position: absolute; top: 100%; left: -1rem; min-width: 260px;
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 0.5rem; opacity: 0; visibility: hidden;
  transform: translateY(4px); transition: all 0.2s;
}
.header-nav .dropdown-menu.mega {
  left: 50%; transform: translateX(-50%) translateY(4px); min-width: 640px;
  padding: 1.25rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
}
.header-nav .dropdown:hover .dropdown-menu.mega { transform: translateX(-50%) translateY(0); }
.mega-col { }
.mega-col-title { font-size: 0.8125rem; font-weight: 700; color: var(--ink-900); display: inline-flex; align-items: center; gap: 0.25rem; text-decoration: none; white-space: nowrap; }
.mega-col-title:hover { color: var(--green-700); }
.mega-col-title .arr { font-size: 0.65em; flex: none; }
.mega-col a.mega-link { display: block; font-size: 0.75rem; color: var(--ink-500); padding: 0.25rem 0; text-decoration: none; }
.mega-col a.mega-link:hover { color: var(--green-700); }
.header-nav .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.header-nav .dropdown-menu a {
  display: block; padding: 0.625rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--ink-700); transition: background 0.15s;
}
.header-nav .dropdown-menu a:hover { background: var(--ink-50); color: var(--ink); }
.header-nav .dropdown-menu a small { display: block; font-size: 0.75rem; color: var(--ink-500); font-weight: 400; margin-top: 2px; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-weight: 600; border-radius: var(--radius-lg); transition: all 0.15s; white-space: nowrap; }
.btn-sm { font-size: 0.875rem; padding: 0.5rem 1rem; }
.btn-md { font-size: 0.875rem; padding: 0.625rem 1.25rem; }
.btn-lg { font-size: 1rem; padding: 0.75rem 1.5rem; }
.btn-primary { background: var(--ink-900); color: var(--white); }
.btn-primary:hover { background: var(--ink-800); }
.btn-green { background: var(--green-700); color: var(--white); }
.btn-green:hover { background: var(--green-800); }
.btn-green-solid { background: var(--green); color: var(--ink); font-weight: 700; }
.btn-green-solid:hover { background: var(--green-400); }
.btn-outline { border: 1px solid var(--ink-200); background: var(--white); }
.btn-outline:hover { border-color: var(--ink-300); }
.btn-outline-dark { border: 1px solid var(--ink-700); color: var(--white); }
.btn-outline-dark:hover { border-color: var(--ink-500); }
.btn-link { color: var(--green-400); font-weight: 600; }
.btn-link:hover { color: var(--green-600); }
.mobile-toggle {
  display: grid; place-items: center; height: 2.25rem; width: 2.25rem;
  border-radius: var(--radius-md); border: 1px solid var(--ink-200);
}
.mobile-menu {
  display: none; border-top: 1px solid rgba(218,222,223,0.7);
  background: var(--canvas); padding: 1rem 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 0; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); }
.mobile-menu a:hover { color: var(--ink); }
.mobile-menu .mobile-dropdown-items { padding-left: 1rem; }
.mobile-menu .mobile-dropdown-items a { font-size: 0.8125rem; color: var(--ink-600); padding: 0.5rem 0; }

@media (min-width: 768px) {
  .header-nav { display: flex; }
  .mobile-toggle { display: none; }
}

/* ===== GRID BACKGROUND ===== */
.grid-bg {
  background-image: linear-gradient(to right, rgba(22,25,26,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22,25,26,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; padding-bottom: 0; }
.hero-glow {
  position: absolute; top: -15%; right: -5%; width: 36rem; height: 36rem; border-radius: 9999px;
  background: radial-gradient(circle, rgba(47,181,116,0.18), transparent 65%);
  filter: blur(12px); pointer-events: none; z-index: 0;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(0) scale(1); } to { transform: translateY(28px) scale(1.08); } }
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100);
  padding: 0.375rem 0.75rem; border-radius: var(--radius-full);
}
.hero-badge .dot { height: 6px; width: 6px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.05; letter-spacing: -0.025em; margin-top: 1.5rem; }
.hero h1 .accent { color: var(--green-600); }
.hero-sub { font-size: 1.125rem; color: var(--ink-600); margin-top: 1.5rem; max-width: 36rem; line-height: 1.5; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.hero-meta { font-size: 0.875rem; color: var(--ink-500); margin-top: 1.25rem; }
.hero-meta strong { color: var(--ink-800); }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--ink-200);
}
.hero-stats dt { font-family: var(--font-display); font-size: 1.875rem; font-weight: 700; color: var(--green-600); }
.hero-stats dd { font-size: 0.75rem; color: var(--ink-500); margin-top: 2px; }

/* Hero visual */
.hero-visual { position: relative; }
.browser-frame {
  background: var(--white); border-radius: var(--radius-2xl); border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-2xl); overflow: hidden;
}
.browser-frame .bar {
  display: flex; align-items: center; gap: 0.5rem; padding: 0 1rem; height: 2.25rem;
  background: var(--ink-50); border-bottom: 1px solid var(--ink-100);
}
.browser-frame .bar .dot { height: 10px; width: 10px; border-radius: 50%; }
.browser-frame .bar .dot-red { background: var(--rose-500); }
.browser-frame .bar .dot-amber { background: var(--amber-500); }
.browser-frame .bar .dot-green { background: var(--green); }
.browser-frame .bar .url {
  margin-left: 0.75rem; font-size: 11px; color: var(--ink-600); font-weight: 500;
  background: var(--white); border: 1px solid var(--ink-100); border-radius: 4px;
  padding: 2px 8px;
}
.browser-frame img { width: 100%; height: auto; }

/* Phone frame */
.phone-frame {
  position: relative; display: inline-block;
  width: 16rem; border-radius: 2.2rem; overflow: hidden;
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.15));
}
@media (min-width: 640px) { .phone-frame { width: 18rem; } }

/* Proactive nudge overlay */
.nudge-card {
  position: absolute; background: var(--ink-900); color: var(--white);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 0.875rem; max-width: 15rem;
}
.nudge-card .nudge-label {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--lime-300); margin-bottom: 0.25rem;
}
.nudge-card .nudge-label .dot { height: 6px; width: 6px; border-radius: 50%; background: var(--lime-400); }
.nudge-card p { font-size: 0.75rem; color: var(--ink-200); line-height: 1.375; }

/* ===== SECTION SHARED ===== */
.section-label {
  font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 0.75rem; letter-spacing: -0.025em; }
.section-sub { font-size: 1.125rem; color: var(--ink-600); margin-top: 1rem; line-height: 1.5; max-width: 32rem; }
.section-label + .section-sub { border-left: 3px solid var(--green); padding-left: 0.75rem; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border-radius: var(--radius-2xl); border: 1px solid var(--ink-200);
  padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -12px rgba(22,25,26,0.2); border-color: #a3e0bd; }
.card-dark {
  background: var(--ink-900); border-radius: var(--radius-2xl); border: 1px solid var(--ink-800);
  padding: 1.75rem;
}

.ic-box {
  display: inline-grid; place-items: center;
  height: 2.75rem; width: 2.75rem; border-radius: 0.85rem;
}
.ic-box-sm { height: 2.25rem; width: 2.25rem; border-radius: 0.6rem; }
.ic { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; gap: 1rem; }
.grid-3 { display: grid; gap: 1rem; }
.grid-4 { display: grid; gap: 1rem; }
.grid-2-col { display: grid; gap: 3rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2-col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Split layout */
.split { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }

/* ===== DARK SECTIONS ===== */
.bg-dark { background: var(--ink-950); color: var(--white); }
.bg-dark .section-sub, .bg-dark p { color: var(--ink-300); }
.bg-dark .section-label { color: var(--green-400); }
.bg-white { background: var(--white); border-top: 1px solid rgba(218,222,223,0.7); border-bottom: 1px solid rgba(218,222,223,0.7); }

/* ===== TABS ===== */
.tab-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .tab-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .tab-list { grid-template-columns: repeat(5, 1fr); } }
.tab-btn {
  display: flex; align-items: center; gap: 0.625rem;
  border-radius: var(--radius-xl); border: 2px solid var(--ink-200); background: var(--canvas);
  padding: 1rem; text-align: left; transition: all 0.15s; cursor: pointer;
}
.tab-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tab-btn.active { border-color: var(--green); background: var(--white); }
.tab-btn .tab-label { font-family: var(--font-display); font-weight: 700; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-content {
  margin-top: 1.5rem; border-radius: var(--radius-2xl); border: 1px solid var(--ink-200);
  background: var(--canvas); padding: 1.75rem;
}
@media (min-width: 768px) { .tab-content { padding: 2.25rem; } }

/* Homepage field-work examples: compact chooser + focused outcome card. */
[data-tab-group="functions"] .tab-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}
[data-tab-group="functions"] .tab-btn {
  min-height: 5.5rem;
  padding: 0.7rem 0.45rem !important;
  border-width: 1px;
  border-radius: 1rem;
  background: var(--canvas);
}
[data-tab-group="functions"] .tab-btn svg {
  width: 1.45rem !important;
  height: 1.45rem !important;
  margin-bottom: 0.25rem !important;
}
[data-tab-group="functions"] .tab-btn .tab-label { font-size: 0.85rem; }
[data-tab-group="functions"] .tab-content {
  margin-top: 0.75rem !important;
  padding: 0 !important;
  border: 0;
  border-radius: 1rem;
  background: transparent;
}
[data-tab-group="functions"] .tab-panel > div {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 1rem !important;
  min-height: 0;
  padding: 1.25rem !important;
  border-radius: 1rem !important;
  box-shadow: 0 16px 32px rgba(14, 17, 18, 0.12);
}
[data-tab-group="functions"] .tab-panel > div > div:last-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  text-align: left !important;
}
[data-tab-group="functions"] .tab-panel > div > div:last-child > div:first-child {
  font-size: 1.65rem !important;
  line-height: 1;
}
[data-tab-group="functions"] .tab-panel > div > div:last-child > div:last-child {
  max-width: 12rem;
  text-align: right;
}
@media (min-width: 680px) {
  [data-tab-group="functions"] .tab-list { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
  [data-tab-group="functions"] .tab-btn { min-height: 6.25rem; }
  [data-tab-group="functions"] .tab-panel > div {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 0.28fr);
    align-items: center !important;
    min-height: 13.5rem;
    padding: 1.5rem 1.65rem !important;
  }
  [data-tab-group="functions"] .tab-panel > div > div:last-child {
    display: block;
    padding: 0.25rem 0 0.25rem 1.25rem;
    border-top: 0;
    border-left: 1px solid rgba(255,255,255,0.16);
    text-align: left !important;
  }
  [data-tab-group="functions"] .tab-panel > div > div:last-child > div:last-child { text-align: left; }
}

/* ===== TRUST BAR ===== */
.trust-bar {
  border-top: 1px solid rgba(218,222,223,0.7);
  border-bottom: 1px solid rgba(218,222,223,0.7);
  background: var(--white);
}
.trust-bar-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 2.5rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-500);
}
.trust-bar-inner .label { color: var(--ink-600); }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; transition: color 0.2s; }
.trust-item:hover { color: var(--green-600); }

/* ===== CREDIBILITY BAND ===== */
.cred-band { background: var(--white); border-top: 1px solid rgba(218,222,223,0.7); border-bottom: 1px solid rgba(218,222,223,0.7); }
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.cred-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; color: var(--green-600); }
.cred-label { font-size: 0.875rem; color: var(--ink-500); margin-top: 0.25rem; }
.cred-note { font-size: 1rem; color: var(--ink-600); margin-top: 1.5rem; text-align: center; max-width: 48rem; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ===== PRICING ===== */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 2.5rem;
}
.pricing-toggle-label { font-size: 0.875rem; font-weight: 600; }
.pricing-toggle-label.active { color: var(--ink-900); }
.pricing-toggle-label.inactive { color: var(--ink-500); }
.toggle-switch {
  position: relative; height: 1.75rem; width: 3rem; border-radius: var(--radius-full);
  background: var(--ink-300); transition: background 0.2s; cursor: pointer;
}
.toggle-switch.on { background: var(--green-600); }
.toggle-knob {
  position: absolute; top: 4px; left: 4px; height: 1.25rem; width: 1.25rem;
  border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.toggle-switch.on .toggle-knob { transform: translateX(1.25rem); }
.pricing-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { border-radius: var(--radius-2xl); padding: 1.75rem; }
.price-card.basic { background: var(--canvas); border: 1px solid var(--ink-200); }
.price-card.popular { background: var(--white); border: 2px solid var(--green); position: relative; box-shadow: var(--shadow-lg); }
.price-card.popular .popular-badge {
  position: absolute; top: -0.75rem; left: 1.75rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--green-700); color: var(--white);
  padding: 0.25rem 0.75rem; border-radius: var(--radius-full);
}
.price-amount { font-family: var(--font-display); font-size: 2.25rem; font-weight: 700; margin-top: 0.75rem; }
.price-period { font-size: 1rem; color: var(--ink-500); font-family: var(--font-body); font-weight: 500; }
.price-desc { font-size: 0.875rem; color: var(--ink-500); margin-top: 0.25rem; }
.price-features { margin-top: 1.5rem; }
.price-features li { display: flex; gap: 0.625rem; font-size: 0.875rem; color: var(--ink-700); padding: 0.375rem 0; }
.price-features .check { color: var(--green-600); flex: none; margin-top: 2px; }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--ink-200); }
.faq-item { border-bottom: 1px solid var(--ink-200); }
.faq-trigger {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 1.25rem 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  text-align: left; color: var(--ink-900);
}
.faq-trigger .faq-icon {
  font-size: 1.5rem; color: var(--green-600); line-height: 1;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body { display: none; padding-bottom: 1.25rem; }
.faq-item.open .faq-body { display: block; }
.faq-body p { color: var(--ink-600); line-height: 1.5; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--ink-950); border-radius: var(--radius-2xl);
  padding: 3rem 2rem; text-align: center; color: var(--white);
  position: relative; overflow: hidden;
}
.cta-section h2 { font-size: clamp(1.5rem, 4vw, 3rem); }
.cta-section p { color: var(--ink-300); margin-top: 1rem; max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

/* ===== FOOTER ===== */
.site-footer { border-top: 1px solid rgba(218,222,223,0.7); background: var(--canvas); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--ink-500); margin-top: 1rem; font-size: 0.875rem; line-height: 1.5; }
.footer-brand > div:first-child {
  display: flex !important;
  align-items: center !important;
  gap: 0.55rem !important;
  height: 2.15rem;
  color: var(--ink);
  font-family: 'Space Grotesk', var(--font-display) !important;
  font-size: 1.22rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.055em;
  line-height: 1;
}
.footer-brand > div:first-child img {
  content: url('../assets/okpilot-mark-crop.png');
  display: block;
  width: 2.15rem !important;
  height: 2.15rem !important;
  border-radius: 0.65rem;
  object-fit: cover;
  box-shadow: 0 5px 15px -8px rgba(22,25,26,.55);
}
.footer-brand > div:first-child span { display: block; text-transform: lowercase; }
.footer-col-title { font-weight: 600; color: var(--ink-700); font-size: 0.875rem; }
.footer-links { margin-top: 0.75rem; }
.footer-links li { margin-top: 0.5rem; }

/* ===== HOMEPAGE SIGNAL MAP ===== */
.field-signal-art {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin-top: 2.5rem;
  padding: 1.25rem;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  overflow: hidden;
}
.field-signal-art img {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 20rem;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  justify-self: center;
  border-radius: calc(var(--radius-lg) - 0.35rem);
  box-shadow: 0 14px 28px rgba(14, 17, 18, 0.12);
}
.field-signal-art__copy { padding: 0.75rem 1rem; max-width: 34rem; }
.field-signal-art__eyebrow {
  margin-bottom: 0.625rem;
  color: var(--green-700);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.field-signal-art__title {
  margin: 0;
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.field-signal-art__copy p:last-child { margin: 0.75rem 0 0; color: var(--ink-500); font-size: 0.9375rem; line-height: 1.55; }
@media (min-width: 768px) {
  .field-signal-art { grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr); gap: 1.75rem; padding: 1.5rem; }
  .field-signal-art__copy { padding: 1rem 1.5rem; }
}

/* ===== HOW IT WORKS: OPERATING CHAT ===== */
.talking-workbench { display:grid; gap:1.5rem; align-items:center; margin-top:2.5rem; }
.talking-workbench__notes { max-width:31rem; padding:0.25rem 0; color:var(--ink-600); font-size:0.9375rem; line-height:1.65; }
.talking-workbench__notes ul { display:grid; gap:0.6rem; margin:1.35rem 0; padding:0; list-style:none; color:var(--ink-800); font-weight:600; }
.talking-workbench__notes li { display:flex; align-items:center; gap:0.65rem; }
.talking-workbench__notes li::before { content:'↗'; display:grid; width:1.5rem; height:1.5rem; place-items:center; border-radius:50%; background:var(--green-50); color:var(--green-700); font-size:0.8rem; }
.talking-workbench__caption { color:var(--ink-500); font-size:0.8125rem; }
.ops-chat { overflow:hidden; border:1px solid #26312c; border-radius:1.25rem; background:var(--ink-950); box-shadow:0 26px 56px rgba(14,17,18,.2); }
.ops-chat__topbar { display:flex; align-items:center; gap:0.55rem; min-height:3rem; padding:0 1rem; color:var(--ink-200); border-bottom:1px solid #29332e; font-size:0.78rem; font-weight:700; }
.ops-chat__topbar small { margin-left:auto; color:var(--green-400); font-size:0.67rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.ops-chat__pulse { width:.5rem; height:.5rem; border-radius:50%; background:var(--green-400); box-shadow:0 0 0 .25rem rgba(82,201,138,.12); }
.ops-chat__body { position:relative; display:flex; min-height:28rem; flex-direction:column; gap:.8rem; padding:1.15rem; overflow:hidden; background:linear-gradient(145deg,#141c18 0%,#0f1412 55%,#14251d 100%); }
.ops-chat__body::after { content:''; position:absolute; inset:0; opacity:.22; background-image:linear-gradient(rgba(98,129,110,.18) 1px,transparent 1px),linear-gradient(90deg,rgba(98,129,110,.18) 1px,transparent 1px); background-size:32px 32px; pointer-events:none; }
.ops-chat__message,.ops-chat__metrics,.ops-chat__plan { position:relative; z-index:1; }
.ops-chat__message { max-width:82%; padding:.85rem 1rem; border-radius:.9rem; font-size:.85rem; line-height:1.5; }
.ops-chat__message--user { align-self:flex-end; border:1px solid #4bba7f; background:var(--green-700); color:#fff; border-bottom-right-radius:.25rem; }
.ops-chat__message--assistant { border:1px solid #34413a; background:#202a25; color:var(--ink-100); border-bottom-left-radius:.25rem; }
.ops-chat__metrics { display:flex; flex-wrap:wrap; gap:.45rem; }
.ops-chat__metrics span { padding:.32rem .55rem; border:1px solid rgba(82,201,138,.3); border-radius:999px; background:rgba(47,181,116,.12); color:var(--green-400); font-size:.67rem; font-weight:700; }
.ops-chat__plan { margin-top:auto; padding:1rem; border:1px solid #34473d; border-radius:.75rem; background:rgba(24,32,28,.92); color:var(--ink-200); }
.ops-chat__plan > div { display:flex; align-items:center; justify-content:space-between; gap:1rem; font-size:.72rem; font-weight:700; }
.ops-chat__plan b { color:var(--green-400); font-size:.65rem; text-transform:uppercase; letter-spacing:.08em; }
.ops-chat__plan p { margin:.55rem 0 .8rem; color:var(--ink-300); font-size:.78rem; line-height:1.5; }
.ops-chat__plan button { border:0; border-radius:.45rem; padding:.48rem .7rem; background:var(--lime-300); color:var(--ink-950); font:inherit; font-size:.7rem; font-weight:800; }
.ops-chat__composer { display:flex; align-items:center; gap:.75rem; margin:.9rem; padding:.75rem .85rem; border:1px solid #34413a; border-radius:.75rem; color:var(--ink-400); background:#18201c; font-size:.74rem; }
.ops-chat__composer b { display:grid; width:1.5rem; height:1.5rem; margin-left:auto; place-items:center; border-radius:.35rem; color:var(--ink-950); background:var(--lime-300); }
@media (min-width: 800px) { .talking-workbench { grid-template-columns:minmax(15rem,.7fr) minmax(24rem,1.3fr); gap:3.5rem; } }
.footer-links a { font-size: 0.875rem; color: var(--ink-500); }
.footer-links a:hover { color: var(--ink-900); }
.footer-bottom {
  border-top: 1px solid rgba(218,222,223,0.7); padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem;
  font-size: 0.75rem; color: var(--ink-600);
}

/* ===== MOBILE CTA ===== */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(233,235,234,0.95); backdrop-filter: blur(8px);
  border-top: 1px solid var(--ink-200); padding: 0.75rem 1rem;
  align-items: center; gap: 0.75rem;
}
@media (max-width: 767px) { .mobile-cta { display: flex; } }
.mobile-cta-text .title { font-weight: 700; font-size: 0.75rem; color: var(--ink-900); }
.mobile-cta-text .sub { font-size: 0.75rem; color: var(--ink-500); }

/* ===== CALCULATOR ===== */
.calc-card { background: var(--ink-900); border-radius: var(--radius-2xl); border: 1px solid var(--ink-800); padding: 1.75rem; }
.calc-label { display: flex; justify-content: space-between; font-size: 0.875rem; font-weight: 500; color: var(--ink-200); }
.calc-label .value { font-weight: 700; color: var(--white); }
.calc-slider { width: 100%; margin-top: 0.75rem; accent-color: var(--green); }
.calc-select {
  width: 100%; background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius-md); padding: 0.625rem 0.75rem;
  font-size: 0.875rem; color: var(--white);
}
.calc-result-big {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; color: var(--green-400); margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.calc-result-card {
  background: var(--ink-900); border-radius: var(--radius-xl); border: 1px solid var(--ink-800);
  padding: 1rem;
}
.calc-result-card .label { font-size: 0.875rem; color: var(--ink-400); }
.calc-result-card .amount { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }

/* ===== BREADCRUMBS ===== */
.breadcrumb { font-size: 0.875rem; color: var(--ink-500); padding: 0.5rem 0; }
.breadcrumb a { color: var(--ink-600); }
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb .sep { margin: 0 0.5rem; }

/* ===== CHECK LIST ===== */
.check-list li { display: flex; gap: 0.75rem; font-size: 0.875rem; padding: 0.375rem 0; }
.check-list .check-icon { color: var(--green-600); flex: none; margin-top: 2px; }
.check-list.on-dark li { color: var(--ink-200); }
.check-list.on-dark .check-icon { color: var(--green-400); }

/* ===== PROCESS / STAGES ===== */
.stage-list { counter-reset: stage; }
.stage-item {
  display: flex; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.stage-num {
  counter-increment: stage; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--green-50); color: var(--green-700);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 3px rgba(47,181,116,0.2);
}
.stage-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.stage-item p { font-size: 0.875rem; color: var(--ink-600); margin-top: 0.25rem; }

/* ===== ANIMATIONS ===== */
/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Count up */
.count-up { font-variant-numeric: tabular-nums; }

/* Console typing animation */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor-blink { animation: blink 0.8s infinite; }
.typing-text { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--green-400); }

/* Chat animation overlay */
.console-demo { position: relative; }
.chat-overlay {
  position: absolute; right: 0; top: 0; bottom: 0; width: 30%;
  background: rgba(255,255,255,0.95); border-left: 1px solid var(--ink-200);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; overflow: hidden;
}
.chat-msg {
  margin-bottom: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.75rem;
  font-size: 0.7rem; line-height: 1.4; max-width: 90%;
  opacity: 0; transform: translateY(10px); transition: all 0.4s;
}
.chat-msg.visible { opacity: 1; transform: translateY(0); }
.chat-user { background: var(--green-700); color: var(--white); align-self: flex-end; margin-left: auto; }
.chat-system { background: var(--ink-50); color: var(--ink-800); align-self: flex-start; }

/* Map markers — static, no pulsing */
.map-marker { position: absolute; width: 12px; height: 12px; border-radius: 50%; }

/* Setup flow — JS handles slide-in from left */
.setup-step { opacity: 0; transform: translateX(-40px); }

/* Proof overlay — simple fade (JS handles transition) */
.proof-overlay { opacity: 0; }

/* Customer tracking ETA */
@keyframes etaCount { from { opacity: 0.5; } to { opacity: 1; } }

/* Industry signature visual animations */
@keyframes fillBar { from { width: 0; } to { width: var(--fill-width); } }
@keyframes fadeInStep { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }

/* ===== INDUSTRY SIGNATURE VISUALS ===== */
.sig-visual {
  background: var(--ink-50); border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl); padding: 1.5rem; overflow: hidden;
  font-size: 0.85rem; min-height: 280px;
}
.sig-visual h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 0.75rem; color: var(--ink-800); }

/* Heat grid (pharmacy) */
.heat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.heat-cell { aspect-ratio: 1; border-radius: 4px; background: var(--green-50); min-width: 20px; }
.heat-cell.hot { background: var(--green); }
.heat-cell.warm { background: var(--green-400); }
.heat-cell.cool { background: var(--green-100); }

/* Timeline/docket (florist, restaurant) */
.docket { background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md); padding: 1rem; }
.docket-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--ink-100); font-size: 0.8125rem; }
.docket-row:last-child { border-bottom: none; }
.docket-row .time { color: var(--ink-500); }
.docket-row .status { font-weight: 600; }
.docket-row .status.late { color: var(--rose-600); }
.docket-row .status.ok { color: var(--green-600); }
.docket-row .status.locked { color: var(--amber-600); }

/* Cascade schedule (plumbing) */
.schedule-bar { height: 1.75rem; border-radius: 4px; margin-bottom: 5px; position: relative; }
.schedule-bar .label { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--white); font-weight: 600; }
.schedule-bar.on-time { background: var(--green); }
.schedule-bar.delayed { background: var(--amber-500); }
.schedule-bar.cascaded { background: var(--rose-500); }

/* Evidence grid (insurance) */
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.evidence-cell {
  aspect-ratio: 1; border-radius: 5px; background: var(--ink-200);
  display: grid; place-items: center; font-size: 0.7rem; color: var(--ink-500); min-width: 28px;
}
.evidence-cell.filled { background: var(--green-100); color: var(--green-700); }
.evidence-cell.missing { background: var(--rose-50); color: var(--rose-600); border: 1px dashed var(--rose-500); }

/* Visit outcome ladder (collections) */
.outcome-ladder { }
.outcome-step {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--ink-200); margin-left: 0.75rem;
}
.outcome-step.current { border-left-color: var(--green); background: var(--green-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.outcome-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-300); flex: none; }
.outcome-step.current .outcome-dot { background: var(--green); }
.outcome-step.done .outcome-dot { background: var(--ink-400); }

/* Territory map (FMCG) */
.territory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.territory-cell {
  aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 600; min-width: 28px;
}
.territory-cell.visited { background: var(--green-100); color: var(--green-700); }
.territory-cell.pending { background: var(--amber-50); color: var(--amber-600); }
.territory-cell.unvisited { background: var(--ink-100); color: var(--ink-500); }

/* Checklist (property inspection, pest control) */
.checklist-visual { }
.check-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; font-size: 0.75rem; }
.check-box { width: 16px; height: 16px; border: 2px solid var(--ink-300); border-radius: 3px; flex: none; }
.check-box.checked { background: var(--green); border-color: var(--green); position: relative; }
.check-box.checked::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Two-visit flow (appliance repair) */
.flow-diagram { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.flow-step {
  background: var(--white); border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem; font-size: 0.75rem; text-align: center;
}
.flow-step.highlight { border-color: var(--green); background: var(--green-50); }
.flow-arrow { color: var(--ink-400); font-size: 1.25rem; }

/* Chained route (courier) */
.chain-route { display: flex; flex-direction: column; gap: 4px; }
.chain-stop { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; padding: 0.375rem 0.5rem; border-radius: 4px; }
.chain-stop .chain-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chain-stop.ok .chain-dot { background: var(--green); }
.chain-stop.late .chain-dot { background: var(--rose-500); }
.chain-stop.broken .chain-dot { background: var(--rose-500); }
.chain-stop.broken { background: var(--rose-50); }
.chain-connector { width: 2px; height: 12px; background: var(--ink-200); margin-left: 4px; }

/* Parts checklist (HVAC) */
.parts-list { }
.part-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; font-size: 0.75rem; }
.part-status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.part-status.have { background: var(--green); }
.part-status.missing { background: var(--rose-500); }
.part-label { color: var(--ink-700); }
.part-label.missing { color: var(--rose-600); font-weight: 600; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--ink-700); margin-bottom: 0.5rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; border: 1px solid var(--ink-200); border-radius: var(--radius-md);
  padding: 0.625rem 0.75rem; font-size: 0.875rem; color: var(--ink-900);
  background: var(--white); transition: border-color 0.15s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,181,116,0.15);
}
.form-textarea { min-height: 6rem; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--ink-500); margin-top: 0.375rem; line-height: 1.5; }

/* ===== COMBOBOX (location autocomplete) ===== */
/* Anchors the suggestion list to the input. The list is a real <ul role="listbox">
   rather than a styled <div> so screen readers announce option count and position,
   and it is `hidden` (not display:none via a class) so the attribute alone is the
   single source of truth for open/closed in both CSS and JS. */
.combobox { position: relative; }
.combobox-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 0.25rem);
  margin: 0; padding: 0.25rem; list-style: none;
  background: var(--white); border: 1px solid var(--ink-200);
  border-radius: var(--radius-md); box-shadow: 0 10px 24px rgba(14,17,18,0.12);
  max-height: 15rem; overflow-y: auto;
}
.combobox-list[hidden] { display: none; }
.combobox-option {
  padding: 0.5rem 0.625rem; border-radius: calc(var(--radius-md) - 2px);
  font-size: 0.875rem; color: var(--ink-800); cursor: pointer;
  display: flex; align-items: baseline; gap: 0.5rem;
}
/* Hover and keyboard focus land on the SAME visual state — a keyboard user and a
   mouse user are looking at the same "this is the one" affordance. */
.combobox-option:hover,
.combobox-option[aria-selected="true"] { background: var(--green-50); color: var(--ink-900); }
.combobox-option-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combobox-option-country {
  flex: none; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--green-700); background: var(--green-50);
  border-radius: 999px; padding: 0.125rem 0.4375rem;
}
.combobox-empty { padding: 0.5rem 0.625rem; font-size: 0.8125rem; color: var(--ink-500); }


/* ===== PAGE SPECIFIC ===== */
.page-hero { padding: 3.5rem 0 2rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .hero-sub { max-width: 42rem; }

.page-hero-dark { background: var(--ink-950); color: var(--white); padding: 3.5rem 0 2rem; }
.page-hero-dark .hero-sub { color: var(--ink-300); }
.page-hero-dark .section-label { color: var(--green-400); }

/* Industry page layout */
.industry-sidebar { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.sibling-links { margin-top: 1.5rem; }
.sibling-links a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--ink-600); transition: all 0.15s;
}
.sibling-links a:hover { background: var(--green-50); color: var(--green-700); }

/* ===== INTERACTIVE CHAT DEMO ===== */
.chat-demo { background: var(--ink-950); border-radius: var(--radius-xl); padding: 1.25rem; }
.chat-prompts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chat-prompt-btn {
  font-size: 0.8125rem; padding: 0.5rem 0.875rem; border-radius: var(--radius-full);
  background: rgba(210,244,63,0.1); color: var(--lime-300); border: 1px solid rgba(210,244,63,0.2);
  cursor: pointer; transition: all 0.2s;
}
.chat-prompt-btn:hover { background: rgba(210,244,63,0.2); }
.chat-prompt-btn.active { background: var(--green-700); color: var(--white); border-color: var(--green); }
.chat-response { min-height: 160px; }
.chat-response p { font-size: 0.8rem; color: var(--ink-200); line-height: 1.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .section { padding: 2.5rem 0; }
  .section-lg { padding: 3rem 0; }
  .section-sm { padding: 1.75rem 0; }
  .hero h1 { font-size: 2.5rem; }
  .cta-section { padding: 2.5rem 1.5rem; }
  .hide-mobile { display: none !important; }
  body { padding-bottom: 4rem; }
  .split { gap: 2rem; }
  .cred-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 479px) {
  .hero h1 { font-size: 2rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chat-msg { opacity: 1; transform: none; transition: none; }
  .nudge-card { opacity: 1; transform: none; animation: none; }
  .setup-step { opacity: 1; transform: none; }
  .proof-overlay { opacity: 1; }
}

/* ===== FREE TRIAL FAB ===== */
.trial-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 45;
  background: var(--green-700); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 0.875rem;
  padding: 0.75rem 1.25rem; border-radius: var(--radius-full);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); transition: all 0.2s;
  white-space: nowrap;
}
.trial-fab:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.trial-fab .fab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-400); flex: none; animation: fab-pulse 2s infinite; }
@keyframes fab-pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
@media (max-width: 767px) { .trial-fab { bottom: 4.5rem; right: 1rem; font-size: 0.8125rem; padding: 0.625rem 1rem; } }
@media (prefers-reduced-motion: reduce) { .trial-fab .fab-dot { animation: none; } }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 1.75rem; }
.mt-12 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-6 { gap: 1.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.leading-relaxed { line-height: 1.5; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-green { color: var(--green-600); }
.text-green-400 { color: var(--green-400); }
.text-ink-500 { color: var(--ink-500); }
.text-ink-600 { color: var(--ink-600); }
.text-ink-700 { color: var(--ink-700); }
.text-ink-300 { color: var(--ink-300); }
.text-ink-200 { color: var(--ink-200); }
.text-white { color: var(--white); }
.text-lime { color: var(--lime-300); }
.text-rose { color: var(--rose-600); }
.bg-green-50 { background: var(--green-50); }
.bg-white { background: var(--white); }
.bg-canvas { background: var(--canvas); }
.inline-flex { display: inline-flex; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.w-full { width: 100%; }
.rounded-xl { border-radius: var(--radius-xl); }

/* ===== FUNCTION PAGE VISUALS ===== */

/* Route map visual (delivery) */
.route-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
@media (min-width: 768px) { .route-visual { aspect-ratio: 1; } }

/* Outcome stacked bar (collections) */
.outcome-bar-wrap { margin-top: 1.5rem; }
.outcome-bar {
  display: flex;
  height: 3rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 0.75rem;
  font-weight: 600;
}
.outcome-bar > div {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
  white-space: nowrap;
}
.outcome-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--ink-600);
}
.outcome-bar-legend .swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.375rem;
  vertical-align: middle;
}

/* Schedule visual (service) */
.schedule-visual {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}
.schedule-visual h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: var(--ink-800);
}
.schedule-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.schedule-row .tech-name {
  width: 4rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink-600);
  text-align: right;
  flex: none;
}
.schedule-row .bar-track {
  flex: 1;
  height: 1.75rem;
  background: var(--ink-50);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.schedule-row .bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--white);
}

/* Evidence card visual (inspection) */
.evidence-card-visual {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}
.evidence-card-visual h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--ink-800);
}
.evidence-cell-lg {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 600;
}
.evidence-cell-lg.filled {
  background: var(--green-50);
  border: 2px solid var(--green);
  color: var(--green-700);
}
.evidence-cell-lg.missing {
  background: var(--rose-50);
  border: 2px dashed var(--rose-500);
  color: var(--rose-600);
}
.evidence-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Territory heat map (field sales) */
.territory-heat {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}
.territory-heat h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  color: var(--ink-800);
}
.territory-grid-lg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.territory-cell-lg {
  aspect-ratio: 1;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 600;
}
.territory-cell-lg.visited { background: var(--green-100); color: var(--green-700); }
.territory-cell-lg.due { background: var(--amber-100); color: var(--amber-600); }
.territory-cell-lg.not-visited { background: var(--ink-100); color: var(--ink-500); }
.territory-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: var(--ink-600);
}
.territory-legend .dot-legend {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: middle;
}

/* Key numbers band */
.numbers-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.numbers-band .num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--green-600);
}
.numbers-band .num-label {
  font-size: 0.8rem;
  color: var(--ink-500);
  margin-top: 0.25rem;
}
@media (max-width: 639px) {
  .numbers-band { grid-template-columns: 1fr; gap: 1rem; }
}

/* How it works steps */
.how-steps {
  counter-reset: step;
}
.how-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ink-100);
}
.how-step:last-child { border-bottom: none; }
.how-step-num {
  counter-increment: step;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
}
.how-step h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}
.how-step p {
  font-size: 0.875rem;
  color: var(--ink-600);
  margin-top: 0.25rem;
}

/* Coverage stat row */
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .coverage-stats { grid-template-columns: repeat(4, 1fr); }
}
.coverage-stat {
  background: var(--white);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}
.coverage-stat .stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}
.coverage-stat .stat-label {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 0.25rem;
}

/* ===== LEGAL PAGES =====
   `ul, ol { list-style: none }` above is right for nav and card lists, but it
   also silently stripped the markers from the legal pages, where a numbered
   list of rights and a bulleted list of what we collect read as undifferentiated
   paragraphs. Restore markers only inside legal prose. */
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body ul ul { list-style: circle; }
.legal-toc ol { list-style: decimal; }

/* The site header is sticky, so a jump to #section lands the heading UNDER it.
   Every table-of-contents link on every legal page hit this. */
.legal-body h2[id],
.legal-body h3[id] { scroll-margin-top: 5.5rem; }
