:root {
  --bg: #f6f9fe;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #1f2630;
  --muted: #5b6777;
  --muted-2: #6a7686;
  --border: rgba(25, 36, 53, 0.12);
  --orange-1: #f88a4d;
  --orange-2: #f5a35a;
  --blue-1: #d8e5f7;
  --blue-2: #eaf1fb;
  --blue-3: #8eaed8;
  --success: #1e7a45;
  --danger: #b83030;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 36px rgba(25, 48, 75, 0.11);
  --sticky-cta-h: 0px;
  --chat-fab-h: 44px;
  --chat-fab-gap: 12px;
  --chat-widget-gap: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(65% 70% at 3% 0%, rgba(248, 138, 77, 0.14), transparent 58%),
    radial-gradient(70% 70% at 98% 10%, rgba(142, 174, 216, 0.18), transparent 61%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.05rem, 5.4vw, 3.45rem); }
h2 { font-size: clamp(1.48rem, 3.1vw, 2.2rem); }
h3 { font-size: clamp(1.02rem, 1.9vw, 1.2rem); }
p, ul { margin: 0; }
a { color: inherit; }

.container {
  width: min(1140px, calc(100% - 2.4rem));
  margin-inline: auto;
}

.section { padding: 5.2rem 0 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus-visible {
  left: 0.8rem;
  top: 0.8rem;
  z-index: 999;
  border-radius: 10px;
  background: #fff;
  color: #111;
  padding: 0.5rem 0.7rem;
}

.site-header {
  position: sticky;
  top: 0.7rem;
  z-index: 60;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(25, 36, 53, 0.1);
  border-radius: 999px;
  padding: 0.58rem 0.8rem 0.58rem 1rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.2rem;
}

.brand-logo {
  display: block;
  width: auto;
  height: 36px;
}

.site-nav {
  display: flex;
  gap: 1.02rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--muted-2);
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--text); }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 0.48rem 0.82rem;
  font-weight: 700;
}

.btn {
  border: none;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 700;
  color: #21242b;
  cursor: pointer;
  background: linear-gradient(132deg, var(--orange-1), var(--orange-2) 55%, #f6bc78);
  box-shadow: 0 10px 24px rgba(248, 138, 77, 0.24);
  transition: transform 250ms ease, box-shadow 250ms ease, opacity 250ms ease;
}
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 15px 27px rgba(248, 138, 77, 0.3);
}
.btn-sm { padding: 0.62rem 0.95rem; font-size: 0.9rem; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.hero-shell {
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(25, 36, 53, 0.1);
  background: linear-gradient(148deg, rgba(255, 255, 255, 0.96), rgba(234, 241, 251, 0.9));
  box-shadow: var(--shadow);
}
.eyebrow {
  color: #7c4a2e;
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.subhead {
  margin-top: 1rem;
  max-width: 60ch;
  color: var(--muted);
}
.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}
.hero-actions p {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-head {
  display: grid;
  gap: 0.55rem;
}
.section-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  color: #617184;
}

.dual-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(216, 229, 247, 0.65));
  box-shadow: var(--shadow);
}
.dual-panel article p {
  margin-top: 0.75rem;
  color: var(--muted);
}
.dual-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.62rem;
  color: var(--muted);
}

.tile-grid {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.95rem;
}

.tile,
.viz-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--surface-soft));
  border: 1px solid transparent;
  box-shadow: 0 9px 22px rgba(18, 39, 62, 0.08);
  transition: transform 250ms ease, box-shadow 250ms ease;
}
.tile::before,
.viz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(248, 138, 77, 0.42), rgba(142, 174, 216, 0.42), rgba(246, 188, 120, 0.42));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background-position 250ms ease, opacity 250ms ease;
  opacity: 0.58;
}
.tile:is(:hover, :focus-visible),
.viz-card:is(:hover, :focus-visible) {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(74, 111, 151, 0.2), 0 0 0 6px rgba(216, 229, 247, 0.34);
}
.tile:is(:hover, :focus-visible)::before,
.viz-card:is(:hover, :focus-visible)::before {
  opacity: 1;
  background-position: 100% 0;
}

.tile {
  padding: 1rem;
  min-height: 198px;
  outline: none;
}
.tile-icon {
  width: 2.48rem;
  height: 2.48rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #425c7b;
  background: linear-gradient(140deg, rgba(246, 188, 120, 0.34), rgba(142, 174, 216, 0.32));
  border: 1px solid rgba(25, 36, 53, 0.1);
}
.tile-icon svg {
  width: 1.22rem;
  height: 1.22rem;
}
.tile h3 { margin-top: 0.75rem; }
.tile p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.visual-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}
.viz-card {
  padding: 1rem;
}
.viz-label {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #66788e;
  font-weight: 700;
}
.viz-card h3 {
  margin-top: 0.55rem;
  min-height: 2.5em;
}
.viz-note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.bars {
  margin-top: 0.9rem;
  height: 100px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 0.35rem;
}
.bars span {
  display: block;
  height: var(--h);
  border-radius: 999px;
  background: linear-gradient(180deg, #f3b06f, #92aed6);
}

.calendar-lines {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}
.calendar-lines p {
  margin: 0;
  border: 1px solid rgba(25, 36, 53, 0.11);
  border-radius: 13px;
  padding: 0.58rem 0.64rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.92);
}
.calendar-lines span {
  color: #43566f;
  font-weight: 700;
  font-size: 0.84rem;
}
.calendar-lines b {
  font-size: 0.87rem;
  font-weight: 600;
  color: #2b3441;
}
.calendar-lines em {
  font-size: 0.75rem;
  font-style: normal;
  color: #6b7f95;
}

.flow {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.flow span {
  font-size: 0.82rem;
  color: #2f3c4d;
  border: 1px solid rgba(25, 36, 53, 0.12);
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  background: rgba(255, 255, 255, 0.94);
}
.flow i {
  display: block;
  width: 14px;
  height: 1px;
  background: rgba(25, 36, 53, 0.28);
}

.ops-b-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: stretch;
}

.ops-b-card {
  position: relative;
  min-height: 390px;
  height: 100%;
  padding: 1rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, #fff, rgba(234, 241, 251, 0.88));
  box-shadow: 0 12px 24px rgba(31, 51, 78, 0.09);
  transition: transform 250ms ease, box-shadow 250ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}
.ops-b-card:hover,
.ops-b-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(74, 111, 151, 0.2), 0 0 0 6px rgba(216, 229, 247, 0.34);
}

.insight-chip {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(125deg, rgba(248, 138, 77, 0.2), rgba(142, 174, 216, 0.25));
  border: 1px solid var(--border);
}

.ops-b-title {
  margin: 0;
  padding-right: 6.7rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.ops-b-plot {
  margin-top: 0.2rem;
  padding-top: 0.2rem;
  display: grid;
  gap: 0.6rem;
}
.ops-b-metric {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.ops-b-metric small {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.ops-b-curve {
  height: 118px;
  border-radius: 14px;
  border: 1px dashed rgba(142, 174, 216, 0.7);
  position: relative;
  background: linear-gradient(180deg, rgba(234, 241, 251, 0.45), rgba(255, 255, 255, 0.55));
}
.ops-b-curve svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ops-b-agenda {
  display: grid;
  gap: 0.45rem;
}
.ops-b-item {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.4rem;
  align-items: center;
  padding: 0.42rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  font-size: 0.79rem;
  min-height: 2.2rem;
}
.ops-b-item time {
  font-weight: 700;
  color: #3f5570;
}
.ops-b-item span:nth-child(2) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ops-b-net {
  position: relative;
  height: 130px;
  border-radius: 14px;
  border: 1px solid rgba(25, 36, 53, 0.11);
  background: #fff;
  overflow: hidden;
}
.ops-b-net svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ops-node {
  position: absolute;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.ops-n1 { left: 8%; top: 50%; }
.ops-n2 { left: 34%; top: 24%; }
.ops-n3 { left: 34%; top: 70%; }
.ops-n4 { left: 61%; top: 48%; }
.ops-n5 { right: 8%; top: 48%; }

.ops-b-action {
  margin-top: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.48rem;
  align-items: center;
  padding: 0.5rem 0.56rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f9fbff;
  font-size: 0.78rem;
}
.ops-b-action span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ops-b-action i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--orange-1);
}
.ops-b-action button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 0.28rem 0.5rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ops-b-overlay {
  margin-top: 0.62rem;
  z-index: 3;
  border: 1px solid rgba(25, 36, 53, 0.12);
  border-radius: 14px;
  padding: 0.65rem 0.7rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  box-shadow: 0 9px 18px rgba(39, 60, 89, 0.16);
}
.ops-b-overlay b {
  font-size: 0.8rem;
}
.ops-b-overlay p {
  margin: 0.28rem 0 0;
  font-size: 0.78rem;
  color: #516175;
}

.ops-b-confidence {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.3rem;
}
.ops-b-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #4e6279;
  font-weight: 700;
}
.ops-b-bar {
  height: 9px;
  border-radius: 999px;
  background: #edf2fb;
  border: 1px solid rgba(25, 36, 53, 0.1);
  overflow: hidden;
}
.ops-b-bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--orange-1), var(--blue-3));
}

.faq-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.faq-grid details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.9rem;
  background: rgba(255, 255, 255, 0.95);
}
.faq-grid summary {
  cursor: pointer;
  font-weight: 700;
}
.faq-grid p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(246, 188, 120, 0.12));
  box-shadow: var(--shadow);
  padding: 1.2rem;
}
.final-cta p { color: var(--muted); margin-top: 0.7rem; }

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-row { display: grid; gap: 0.3rem; }
.form-row.full-width,
.lead-form button,
.form-status { grid-column: 1 / -1; }

label {
  font-size: 0.88rem;
  font-weight: 600;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.7rem 0.74rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.invalid { border-color: var(--danger); }
.field-error { min-height: 1em; color: var(--danger); font-size: 0.8rem; }
.form-status { min-height: 1.1rem; font-weight: 600; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--success); }

.site-footer { padding: 2.8rem 0 2rem; }
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  opacity: 0.88;
}
.footer-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.footer-wordmark {
  width: auto;
  height: 18px;
}
.footer-grid p { color: var(--muted); margin: 0; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { text-decoration: none; color: #55667b; }

.sticky-cta { display: none; }

.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 55;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--orange-2), var(--blue-3));
  color: #1f2328;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(45, 45, 45, 0.2);
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: 340px;
  max-width: calc(100vw - 26px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  z-index: 56;
  display: none;
  box-shadow: var(--shadow);
}
.chat-widget.open { display: block; }
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.chat-header p { color: var(--muted); font-size: 0.85rem; }
.chat-header button {
  border: none;
  background: transparent;
  cursor: pointer;
}
.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.msg {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fbfdff;
  padding: 9px 10px;
  font-size: 0.92rem;
}
.msg.user {
  background: #fff3ea;
  border-color: rgba(248, 138, 77, 0.33);
}
.chat-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
}
.chat-status {
  min-height: 1.1rem;
  margin: 0;
  padding: 0 10px 10px;
  font-size: 0.78rem;
  color: var(--danger);
}

.msg.thinking { opacity: 0.85; font-style: italic; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.hide-mobile { display: inline-flex; }

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible,
.tile:focus-visible,
.viz-card:focus-visible {
  outline: 2px solid #2f6eb7;
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dual-panel,
  .ops-b-grid,
  .final-cta,
  .lead-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .section { padding-top: 3.8rem; }
  .tile-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .brand-logo { height: 30px; }

  .nav-toggle { display: inline-block; }
  .hide-mobile { display: none; }
  .footer-brand { width: 100%; }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    margin: 0 auto;
    width: min(1120px, calc(100% - 2.4rem));
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.62rem;
  }
  .site-nav.open { display: flex; }

  body { padding-bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom)); }

  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 54;
    display: grid;
    gap: 0.45rem;
    padding: 0.65rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    box-shadow: 0 -10px 24px rgba(18, 41, 70, 0.12);
  }
  .sticky-cta p {
    margin: 0;
    text-align: center;
    font-size: 0.82rem;
    color: var(--muted);
  }
  .sticky-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    display: inline-flex;
  }

  .chat-fab {
    left: auto;
    right: 12px;
    bottom: calc(var(--sticky-cta-h) + env(safe-area-inset-bottom) + var(--chat-fab-gap));
    padding: 10px 14px;
    font-size: 0.9rem;
    box-shadow: 0 10px 22px rgba(45, 45, 45, 0.16);
  }
  .chat-widget {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    bottom: calc(var(--sticky-cta-h) + var(--chat-fab-h) + var(--chat-fab-gap) + var(--chat-widget-gap) + env(safe-area-inset-bottom));
    max-height: min(70vh, 540px);
  }

  .ops-b-card {
    min-height: 380px;
    gap: 0.62rem;
  }
  .ops-b-title { padding-right: 5.75rem; }
  .ops-b-action {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 0.35rem;
  }
  .ops-b-action button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* Legal pages */
.legal-page { min-height: 100vh; }
.legal-main { padding: 2.5rem 0; }
.legal-card {
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.9rem;
}
.legal-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
