:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-tint: #eef6ff;
  --text: #0f172a;
  --muted: #5f6b7a;
  --line: #dbe4f0;
  --dark: #0f172a;
  --accent: #0f4c81;
  --accent-2: #0891b2;
  --accent-soft: #e0f2fe;
  --radius: 28px;
  --shadow: 0 20px 60px rgba(15,23,42,.06);
}
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  color-scheme: light;
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  color-scheme: light;
}
a { color: inherit; }
body, .site-header, .glass-card, .card, .feature-card, .step-card, .stat, .form-card, .contact-box, .seo-cta-box, .page-hero-media, .hero-visual-card, .chat-panel {
  background-clip: padding-box;
}
input, textarea, select, button {
  color-scheme: light;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17,17,17,.06);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  text-decoration: none;
  font-family: 'Nunito Sans', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -.04em;
  text-transform: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .18s ease, transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
nav a::after {
  display: none;
}
nav a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 12px 28px rgba(15,76,129,.22);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.24) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform .55s ease;
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn:hover::after { transform: translateX(140%); }
.btn-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 14px 34px rgba(15,76,129,.22);
}
.btn-dark:hover {
  box-shadow: 0 18px 40px rgba(15,76,129,.3);
}
.btn-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-light:hover {
  border-color: #9dc9ef;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.section {
  padding: 88px 0;
}
.hero {
  padding-top: 72px;
}
.hero-grid,
.about-grid,
.intro-grid,
.contact-box {
  display: grid;
  gap: 40px;
}
.hero-grid {
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
}
.intro-grid,
.about-grid,
.contact-box {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .86rem;
}
h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  margin-bottom: 18px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.06;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}
p {
  margin: 0;
}
.hero-copy,
.section-head p,
.intro-grid p,
.card p,
.feature-card p,
.step-card p,
.about-grid p,
.contact-box p,
.stat span {
  color: var(--muted);
  font-size: 1.04rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.mini-proof span,
.pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-size: .95rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.mini-proof span:hover,
.pill:hover {
  transform: translateY(-2px);
  border-color: #9dc9ef;
  background: #f8fcff;
  box-shadow: 0 14px 28px rgba(37,99,235,.12);
}
.hero-panel {
  display: flex;
  justify-content: center;
}
.glass-card {
  width: 100%;
  padding: 30px;
  border-radius: 34px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f2f2f5 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel-label {
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 22px;
  font-weight: 600;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,.08);
  color: #166534;
  font-size: .86rem;
  font-weight: 700;
}
.status-line::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34,197,94,.45);
}
.panel-list {
  display: grid;
  gap: 18px;
}
.panel-list div {
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
}
.panel-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}
.panel-list span {
  color: var(--muted);
}
.muted {
  background: var(--bg-soft);
}
.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}
.section-head.center,
.slim {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.card-grid {
  display: grid;
  gap: 20px;
}
.three-up {
  grid-template-columns: repeat(3, 1fr);
}
.two-up {
  grid-template-columns: repeat(2, 1fr);
}
.card,
.feature-card,
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.feature-card.highlight {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}
.feature-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.steps-grid,
.stats-grid {
  display: grid;
  gap: 20px;
}
.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}
.step-number {
  display: inline-block;
  margin-bottom: 18px;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 700;
}
.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.stat strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}
.contact-box {
  background: var(--bg-soft);
  border-radius: 36px;
  padding: 40px;
  align-items: center;
}
.contact-details {
  text-align: right;
}
.contact-details a {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}

.trust-inline {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  max-width: 560px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.trust-inline:hover {
  transform: translateY(-2px);
  border-color: #9dc9ef;
  box-shadow: 0 18px 34px rgba(15,23,42,.08);
}
.trust-inline strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}
.trust-inline span {
  color: var(--muted);
}

.signal-strip {
  padding-top: 0;
}
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.signal-item {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(15,23,42,.04);
}
.signal-item strong {
  display: block;
  margin-bottom: 8px;
}
.signal-item span {
  color: var(--muted);
}

.service-area-grid {
  align-items: center;
}

.map-embed-wrap {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15,23,42,.08);
  background: #fff;
}

.map-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}
@media (max-width: 980px) {
  .container {
    width: min(100% - 32px, 1160px);
  }
  .site-header {
    position: static;
  }
  .nav {
    min-height: auto;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
  }
  .logo {
    white-space: normal;
    max-width: 14ch;
    line-height: 1.05;
  }
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }
  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
  }
  nav.is-open {
    display: flex;
  }
  .site-header .btn {
    width: 100%;
  }
  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-box,
  .three-up,
  .two-up,
  .steps-grid,
  .stats-grid,
  .signal-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-details {
    text-align: left;
  }
  .josh-card-shell.is-collapsed {
    right: 18px;
    top: auto;
    bottom: 18px;
  }
  .chat-input-row,
  .lead-inline-grid,
  .lead-actions,
  .hero-actions,
  .mini-proof,
  .section-head,
  .stats-card,
  .josh-card-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .chat-form button,
  .chat-form input,
  .lead-inline-grid input,
  .submit-lead-btn,
  .mini-cta,
  .btn,
  .card-chat-widget,
  .chat-panel {
    width: 100%;
  }
}

.page-hero { padding-top: 72px; }
.narrow-block { max-width: 820px; }
.text-link {
  display: inline-block;
  margin-top: 16px;
  text-decoration: none;
  font-weight: 600;
  color: var(--accent);
}
.chat-preview {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.chat-bubble {
  padding: 14px 16px;
  border-radius: 18px;
  max-width: 92%;
  font-size: .98rem;
}
.chat-bubble.ai {
  background: #fff;
  border: 1px solid var(--line);
}
.chat-bubble.user {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  margin-left: auto;
}

.chat-widget {
  display: grid;
  gap: 12px;
}

.card-chat-widget {
  margin-top: 18px;
}
.chat-nudge {
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(96,165,250,.35);
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(37,99,235,.1);
  animation: floatNudge 3.2s ease-in-out infinite;
}
.chat-toggle {
  border: 1px solid rgba(125,211,252,.72);
  background: linear-gradient(135deg, rgba(15,23,42,.98) 0%, rgba(15,76,129,.98) 55%, rgba(8,145,178,.98) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(125,211,252,.2), 0 0 24px rgba(56,189,248,.34), 0 20px 48px rgba(15,76,129,.34);
  cursor: pointer;
  animation: chatGlow 2.8s ease-in-out infinite;
}
.chat-toggle:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 0 1px rgba(125,211,252,.32), 0 0 34px rgba(56,189,248,.46), 0 24px 54px rgba(15,76,129,.4);
}
.chat-avatar-toggle {
  position: relative;
  width: 65px;
  height: 65px;
  border-radius: 999px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(125,211,252,.62);
  overflow: visible;
}

.card-avatar-toggle {
  flex-shrink: 0;
}
.chat-avatar-toggle::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56,189,248,.18) 0%, rgba(56,189,248,.06) 48%, transparent 74%);
  z-index: 0;
}
.chat-avatar-face {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  min-width: 52px;
  max-width: 52px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #ffffff 0%, #dff4ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 6px 16px rgba(15,23,42,.16);
}
.chat-avatar-status {
  position: absolute;
  right: 3px;
  bottom: 4px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #22c55e;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(34,197,94,.42);
}
.chat-panel {
  width: 100%;
  background: #ffffff;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(96,165,250,.35);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(0,0,0,.14), 0 0 28px rgba(56,189,248,.18);
  padding: 16px;
  display: block;
}
.chat-panel.open { display: block; }

.josh-card-shell {
  position: relative;
  transform-origin: bottom right;
  transition: width 1s cubic-bezier(.22,.8,.2,1), max-width 1s cubic-bezier(.22,.8,.2,1), height 1s cubic-bezier(.22,.8,.2,1), min-width 1s cubic-bezier(.22,.8,.2,1), padding 1s cubic-bezier(.22,.8,.2,1), border-radius 1s cubic-bezier(.22,.8,.2,1), box-shadow 1s cubic-bezier(.22,.8,.2,1), background .75s ease, border-color .75s ease, transform 1s cubic-bezier(.22,.8,.2,1), right 1s cubic-bezier(.22,.8,.2,1), bottom 1s cubic-bezier(.22,.8,.2,1);
  will-change: width, max-width, height, min-width, padding, border-radius, transform, right, bottom;
}

.josh-card-shell.is-open {
  transform: none;
}

.josh-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: gap .8s cubic-bezier(.22,.8,.2,1), justify-content .8s cubic-bezier(.22,.8,.2,1);
}

.josh-card-top > div,
.josh-preview,
.status-line,
.panel-label,
.card-chat-widget,
.text-link {
  transition: opacity .5s ease, max-height .9s cubic-bezier(.22,.8,.2,1), margin .8s cubic-bezier(.22,.8,.2,1), padding .8s cubic-bezier(.22,.8,.2,1), width .8s cubic-bezier(.22,.8,.2,1);
}

.josh-card-top .panel-label {
  margin-bottom: 10px;
}

.josh-preview {
  margin-top: 18px;
  max-height: 220px;
  opacity: 1;
}

.josh-card-shell.is-collapsed {
  position: fixed;
  right: 22px;
  bottom: 20px;
  top: auto;
  z-index: 90;
  margin-left: 0;
  width: 72px;
  height: 72px;
  min-width: 72px;
  max-width: 72px;
  padding: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(219,228,240,.95);
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
  backdrop-filter: blur(18px);
}

.josh-card-shell.is-collapsed .josh-card-top {
  gap: 0;
  justify-content: center;
}

.josh-card-shell.is-collapsed .card-avatar-toggle {
  transform: scale(.92);
  transition: transform .8s cubic-bezier(.22,.8,.2,1);
}

.josh-card-shell.is-collapsed .josh-card-top > div {
  width: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
}

.josh-card-shell.is-collapsed .josh-preview,
.josh-card-shell.is-collapsed .status-line,
.josh-card-shell.is-collapsed .panel-label,
.josh-card-shell.is-collapsed .card-chat-widget,
.josh-card-shell.is-collapsed .text-link {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.josh-card-shell.is-collapsed.is-open {
  width: min(440px, calc(100vw - 24px));
  height: auto;
  min-width: min(440px, calc(100vw - 24px));
  max-width: min(440px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 32px));
  padding: 22px;
  border-radius: 34px;
  overflow: visible;
  background: linear-gradient(180deg, #fbfbfd 0%, #f2f2f5 100%);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.josh-card-shell.is-collapsed.is-open .chat-panel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.josh-card-shell.is-collapsed.is-open .live-messages {
  max-height: 220px;
}

.josh-card-shell.is-collapsed.is-open .lead-inline-grid {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 640px) {
  .josh-card-shell.is-collapsed.is-open {
    width: min(100vw - 16px, 440px);
    min-width: min(100vw - 16px, 440px);
    max-width: min(100vw - 16px, 440px);
    max-height: calc(100vh - 16px);
    padding: 16px;
  }

  .josh-card-shell.is-collapsed.is-open .chat-panel {
    max-height: calc(100vh - 80px);
  }

  .josh-card-shell.is-collapsed.is-open .lead-inline-grid {
    grid-template-columns: 1fr;
  }
}

.josh-card-shell.is-collapsed.is-open .josh-card-top {
  gap: 16px;
  justify-content: flex-start;
}

.josh-card-shell.is-collapsed.is-open .josh-card-top > div {
  width: auto;
  max-width: 100%;
  opacity: 1;
  overflow: visible;
}

.josh-card-shell.is-collapsed.is-open .josh-preview,
.josh-card-shell.is-collapsed.is-open .status-line,
.josh-card-shell.is-collapsed.is-open .panel-label,
.josh-card-shell.is-collapsed.is-open .card-chat-widget,
.josh-card-shell.is-collapsed.is-open .text-link {
  opacity: 1;
  max-height: 500px;
  margin: initial;
  padding: initial;
  pointer-events: auto;
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.chat-head strong { font-size: 1rem; }
.chat-head span { color: var(--muted); font-size: .9rem; }
.chat-close {
  border: 0;
  background: #ffffff;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover {
  color: var(--text);
}
.chat-head span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  margin-right: 8px;
  box-shadow: 0 0 10px rgba(34,197,94,.55);
  vertical-align: middle;
}
.live-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 2px 8px;
}
.live-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: .96rem;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.live-bubble.ai {
  background: #f5f5f7;
  border: 1px solid var(--line);
}
.live-bubble.user {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  margin-left: auto;
}
.quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.quick-row button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}
.quick-row button:hover {
  border-color: #9dc9ef;
  background: #f8fcff;
}
.chat-form {
  margin-top: 8px;
}
.chat-input-row {
  display: flex;
  gap: 8px;
}
.chat-form input,
.lead-inline-grid input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}
.chat-form button,
.submit-lead-btn {
  border: 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.chat-form button:disabled,
.submit-lead-btn:disabled {
  opacity: .7;
  cursor: wait;
}
.voice-input-btn {
  min-width: 48px;
  padding: 12px;
}
.voice-input-btn.is-recording {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.lead-capture {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.lead-capture p {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 10px;
}
.compact-lead-capture {
  display: grid;
  gap: 10px;
}
.lead-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.submit-lead-btn {
  width: 100%;
}
.lead-status {
  min-height: 20px;
  color: var(--muted);
  font-size: .84rem;
}
.lead-capture[hidden] {
  display: none;
}
.lead-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}
.seo-faq-block {
  max-width: 980px;
}
.lead-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}
.lead-form textarea {
  min-height: 140px;
  resize: vertical;
}
.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.faq-item {
  display: grid;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.faq-item span {
  color: var(--muted);
}
.form-status {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}
.seo-cta-box {
  background: linear-gradient(135deg, #0f172a 0%, #0f4c81 100%);
  color: #fff;
  border-radius: 32px;
  padding: 34px;
  box-shadow: 0 22px 55px rgba(15,76,129,.22);
}
.seo-cta-box p {
  color: rgba(255,255,255,.82);
}
.seo-cta-box .mini-cta {
  border-color: rgba(255,255,255,.18);
}
.seo-cta-box .mini-cta:not(.dark) {
  background: rgba(255,255,255,.08);
  color: #fff;
}
.related-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-link {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.related-link:hover {
  transform: translateY(-2px);
  border-color: #9dc9ef;
  box-shadow: 0 16px 32px rgba(15,23,42,.08);
}
.related-link span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
@media (max-width: 980px) {
  .related-links { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .section {
    padding: 64px 0;
  }
  .hero,
  .page-hero,
  .page-hero-split {
    padding-top: 36px;
  }
  .hero-copy-wrap,
  .hero-copy,
  .section-head,
  .narrow-block,
  .seo-faq-block {
    max-width: 100%;
  }
  .glass-card,
  .contact-box,
  .card,
  .feature-card,
  .step-card,
  .stat,
  .form-card,
  .seo-cta-box,
  .related-link {
    padding: 22px;
    border-radius: 24px;
  }
  .form-layout { grid-template-columns: 1fr; }
  .sticky-josh-wrap,
  .josh-card-shell {
    position: static;
  }
  .page-hero-grid {
    gap: 24px;
  }
  .page-hero-image,
  .hero-image {
    height: 220px;
  }
  .contact-box,
  .hero-actions,
  .lead-actions,
  .quick-row,
  .chat-form {
    gap: 12px;
  }
  .hero-actions .btn,
  .hero-actions .mini-cta,
  .lead-actions .mini-cta,
  .chat-form button,
  .chat-form input,
  .site-header .btn {
    width: 100%;
  }
  .chat-form {
    flex-direction: column;
  }
  .josh-card-shell.is-collapsed {
    position: relative;
    right: auto;
    top: auto;
    z-index: auto;
    width: auto;
    height: auto;
    min-width: 0;
    max-width: none;
    padding: 22px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border-color: rgba(96,165,250,.35);
    box-shadow: 0 24px 70px rgba(0,0,0,.14), 0 0 28px rgba(56,189,248,.18);
  }
  .josh-card-shell.is-collapsed .josh-preview,
  .josh-card-shell.is-collapsed .card-chat-widget,
  .josh-card-shell.is-collapsed .text-link,
  .josh-card-shell.is-collapsed .status-line,
  .josh-card-shell.is-collapsed .panel-label {
    opacity: 1;
    max-height: none;
    pointer-events: auto;
  }
  .josh-card-shell.is-collapsed .josh-card-top > div {
    width: auto;
    overflow: visible;
  }
  .chat-panel {
    width: 100%;
  }
  .related-links {
    grid-template-columns: 1fr;
  }
}

.hero{padding-top:84px;}
.hero-copy-wrap{max-width:640px;}
.hero h1{max-width:12ch;}
.hero-copy{max-width:58ch;}
.page-hero-split {
  padding-top: 72px;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 36px;
  align-items: center;
}
.page-hero-media {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid #d7e5ff;
  box-shadow: 0 24px 60px rgba(8,145,178,.10);
  background: #fff;
}
.page-hero-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.btn,
.mini-cta {
  min-height: 48px;
}
.mini-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.mini-cta.dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--accent) 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(15,76,129,.22);
}
.mini-cta:hover {
  transform: translateY(-2px);
  border-color: #9dc9ef;
  box-shadow: 0 14px 30px rgba(15,23,42,.08);
}
.mini-cta.dark:hover {
  box-shadow: 0 18px 40px rgba(15,76,129,.3);
}
.card, .feature-card, .step-card, .stat{box-shadow:0 10px 30px rgba(15,23,42,.04);}
.section.muted{background:linear-gradient(180deg,#f8fafc 0%,#f5f7fb 100%);}
.contact-box{border:1px solid var(--line);}
.glass-card{box-shadow:0 24px 60px rgba(8,145,178,.10);}

.text-link{transition:color .18s ease;}
.hero-panel{position:relative;}
.hero-panel::after{content:"";position:absolute;inset:18px -10px -18px 20px;background:radial-gradient(circle at 30% 20%, rgba(37,99,235,.18), transparent 40%), radial-gradient(circle at 75% 60%, rgba(8,145,178,.18), transparent 35%);z-index:0;filter:blur(20px);}
.glass-card{position:relative;z-index:1;}
.card:hover,.feature-card:hover,.step-card:hover{border-color:#9bdaf0;transform:translateY(-2px);box-shadow:0 18px 40px rgba(8,145,178,.10);}
.card,.feature-card,.step-card{transition:all .2s ease;}

.hero-panel{display:grid;gap:18px;}
.sticky-josh-wrap,
.josh-card-shell {
  position: sticky;
  top: 92px;
  align-self: start;
  z-index: 5;
}
.hero-visual-card{border-radius:34px;overflow:hidden;border:1px solid #d7e5ff;box-shadow:0 24px 60px rgba(8,145,178,.10);background:#fff;position:relative;z-index:1;}
.hero-image{display:block;width:100%;height:280px;object-fit:cover;}

.hero-visual-card,.glass-card,.card,.feature-card,.step-card,.stat,.form-card{transition:all .2s ease;}
.hero-visual-card:hover,.glass-card:hover,.card:hover,.feature-card:hover,.step-card:hover,.stat:hover,.form-card:hover{border-color:#60a5fa !important;box-shadow:0 22px 50px rgba(37,99,235,.14);transform:translateY(-3px);}

@keyframes chatGlow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(125,211,252,.2), 0 0 18px rgba(56,189,248,.24), 0 20px 48px rgba(15,76,129,.28);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(125,211,252,.38), 0 0 36px rgba(56,189,248,.5), 0 24px 60px rgba(15,76,129,.42);
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    line-height: 1.02;
  }
  h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }
  .container {
    width: min(100% - 24px, 1160px);
  }
  .contact-details a {
    font-size: 1.1rem;
  }
  .mini-proof span,
  .pill,
  .quick-row button {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-color-scheme: dark) {
  html, body {
    background: #ffffff;
    color: var(--text);
  }
  .site-header,
  .muted,
  .glass-card,
  .card,
  .feature-card,
  .step-card,
  .stat,
  .form-card,
  .contact-box,
  .page-hero-media,
  .hero-visual-card,
  .panel-list div,
  .chat-panel,
  .chat-nudge,
  .josh-card-shell.is-collapsed {
    background: #ffffff;
    color: var(--text);
  }
  .live-bubble.ai,
  .mini-proof span,
  .pill,
  .quick-row button,
  .lead-form input,
  .lead-form select,
  .lead-form textarea,
  .chat-form input,
  .btn-light,
  .mini-cta:not(.dark),
  .related-link {
    background: #ffffff;
    color: var(--text);
    border-color: var(--line);
  }
}

@keyframes floatNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Mobile responsive overrides: keep these at the end so later desktop rules do not override mobile layouts. */
@media (max-width: 980px) {
  .page-hero-grid,
  .hero-grid,
  .intro-grid,
  .about-grid,
  .contact-box,
  .three-up,
  .two-up,
  .steps-grid,
  .stats-grid,
  .signal-grid,
  .form-layout,
  .related-links {
    grid-template-columns: 1fr;
  }

  .page-hero-grid {
    align-items: stretch;
  }

  .page-hero-media,
  .hero-visual-card {
    width: 100%;
  }

  .page-hero-image,
  .hero-image {
    width: 100%;
    max-width: 100%;
    height: 220px;
  }

  .hero-actions,
  .lead-actions,
  .mini-proof {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .mini-cta,
  .lead-actions .mini-cta,
  .mini-proof span,
  .btn,
  .mini-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .chat-input-row,
  .lead-inline-grid,
  .lead-actions,
  .hero-actions,
  .mini-proof,
  .section-head,
  .stats-card,
  .josh-card-top {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .chat-form button,
  .chat-form input,
  .lead-inline-grid input,
  .submit-lead-btn,
  .card-chat-widget,
  .chat-panel {
    width: 100%;
  }

  input,
  select,
  textarea,
  button {
    font-size: 16px;
  }

  .quick-row button {
    min-height: 44px;
  }

  .lead-inline-grid {
    gap: 10px;
  }
}

/* Accessibility and mobile tap target refinements. */
.chat-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 768px) {
  .voice-input-btn {
    min-height: 44px;
  }
}

/* Josh simple mobile redesign. Keep at end to override older widget rules. */
.chat-title-wrap {
  display: grid;
  gap: 2px;
}

.chat-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.chat-cta-row .mini-cta {
  width: 100%;
  justify-content: center;
  min-height: 44px;
}

.josh-card-shell.is-collapsed {
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
}

.josh-card-shell.is-collapsed .josh-card-top {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.josh-card-shell.is-collapsed .card-avatar-toggle {
  width: 58px;
  height: 58px;
  transform: translateY(2px);
}

.josh-card-shell.is-collapsed .chat-avatar-face {
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
}

.josh-card-shell.is-collapsed .chat-avatar-status {
  right: 5px;
  bottom: 5px;
}

@media (max-width: 768px) {
  .josh-card-shell,
  .josh-card-shell.is-collapsed {
    position: fixed;
    right: 14px;
    bottom: 14px;
    top: auto;
    z-index: 110;
    margin: 0;
    width: 68px;
    height: 68px;
    min-width: 68px;
    max-width: 68px;
    padding: 0;
    border-radius: 999px;
  }

  .josh-card-shell .josh-card-top {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    gap: 0;
  }

  .josh-card-shell .josh-card-top > div,
  .josh-card-shell .josh-preview,
  .josh-card-shell .status-line,
  .josh-card-shell .panel-label,
  .josh-card-shell .text-link {
    display: none;
  }

  .josh-card-shell .card-chat-widget,
  .josh-card-shell.is-collapsed .card-chat-widget {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
  }

  .josh-card-shell.is-open,
  .josh-card-shell.is-collapsed.is-open {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    height: min(75dvh, 560px);
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 10px;
    border-radius: 24px;
    overflow: hidden;
    display: block;
  }

  .josh-card-shell.is-open .josh-card-top {
    display: none;
  }

  .josh-card-shell.is-open .card-chat-widget,
  .josh-card-shell.is-collapsed.is-open .card-chat-widget {
    height: 100%;
    max-height: none;
    opacity: 1;
    margin: 0;
    pointer-events: auto;
  }

  .josh-card-shell.is-open .chat-panel {
    height: 100%;
    max-height: none;
    padding: 14px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
  }

  .josh-card-shell.is-open .chat-head {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .josh-card-shell.is-open .chat-head strong {
    font-size: 1rem;
  }

  .josh-card-shell.is-open .chat-head span {
    font-size: .82rem;
  }

  .josh-card-shell.is-open .live-messages {
    flex: 1 1 auto;
    min-height: 96px;
    max-height: none;
    overflow-y: auto;
    padding: 2px 2px 4px;
  }

  .josh-card-shell.is-open .live-bubble {
    padding: 10px 12px;
    font-size: .92rem;
    line-height: 1.4;
  }

  .josh-card-shell.is-open .quick-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    flex-shrink: 0;
  }

  .josh-card-shell.is-open .quick-row button {
    min-height: 40px;
    padding: 8px 6px;
    font-size: .84rem;
    line-height: 1.15;
    white-space: normal;
  }

  .josh-card-shell.is-open .chat-form {
    margin-top: 0;
    flex-shrink: 0;
  }

  .josh-card-shell.is-open .chat-input-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .josh-card-shell.is-open .chat-form input {
    min-width: 0;
    width: auto;
    height: 44px;
    padding: 10px 12px;
  }

  .josh-card-shell.is-open .chat-form button[type="submit"] {
    width: auto;
    min-width: 72px;
    height: 44px;
    padding: 10px 14px;
    flex: 0 0 auto;
  }

  .josh-card-shell.is-open .chat-cta-row {
    flex-shrink: 0;
    margin-top: 0;
  }

  .josh-card-shell.is-open .chat-cta-row .mini-cta {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: .92rem;
  }
}
