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

:root {
  --navy: #142138;
  --navy-soft: #1d3057;
  --teal: #d9722c;
  --teal-light: #e8944f;
  --accent: #35e0c2;
  --accent-dark: #0c8f79;
  --cream: #f7ecd8;
  --cream-2: #fbf6ec;
  --bg: #fffcf7;
  --card: #ffffff;
  --muted: #5b6472;
  --border: #e7e0d0;
  --radius: 14px;
  --font-head: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.55;
}

h1, h2, h3, .logo, .btn { font-family: var(--font-head); }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
header.site-header {
  position: sticky;
  top: 0;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* The header carries more items than any other row, so it gets extra width. */
.site-header .container { max-width: 1240px; }
.nav .btn, .logo-wrap { flex-shrink: 0; }
.nav .btn { white-space: nowrap; }

.nav-links a { color: var(--navy-soft); }
.nav-links a:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  box-shadow: 0 10px 26px -8px rgba(217, 114, 44, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(217, 114, 44, 0.75); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 90px 0 70px;
  text-align: center;
  background:
    radial-gradient(ellipse 900px 420px at 50% -12%, rgba(217,114,44,0.14), transparent 70%),
    radial-gradient(ellipse 600px 300px at 90% 10%, rgba(20,33,56,0.06), transparent 70%),
    var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20,33,56,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,33,56,0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 720px 400px at 50% 0%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 720px 400px at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3e2d3;
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 13px;
  border-radius: 999px;
  background: rgba(20,33,56,0.05);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--navy-soft);
  margin-bottom: 22px;
}
.status-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(53,224,194,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(53,224,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,224,194,0); }
}

/* Hero live demo widget */
.hero-demo {
  max-width: 560px;
  margin: 0 auto 36px;
  background: var(--navy);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(20,33,56,0.45);
  text-align: left;
}
.hero-demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--navy-soft);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero-demo-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.hero-demo-bar .dot.red { background: #ff5f56; }
.hero-demo-bar .dot.yellow { background: #ffbd2e; }
.hero-demo-bar .dot.green { background: #27c93f; }
.hero-demo-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #93a0b4;
}
.hero-demo-body {
  padding: 20px 22px 24px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.7;
  color: #e3e8f0;
  min-height: 128px;
}
.hero-demo-line { margin: 0 0 10px; }
.hero-demo-line .who { color: var(--accent); font-weight: 700; }
.hero-demo-line .who.caller { color: #93a0b4; }
.hero-demo-cursor {
  display: inline-block;
  width: 7px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 20px;
}

.hl {
  background-image: linear-gradient(120deg, rgba(217,114,44,0.35), rgba(217,114,44,0.35));
  background-repeat: no-repeat;
  background-size: 100% 38%;
  background-position: 0 88%;
  padding: 0 2px;
}

.hero p.sub {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 70px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
}
.grid-3 .card:nth-child(3n+2)::before { background: var(--teal-light); }
.grid-3 .card:nth-child(3n)::before { background: var(--navy-soft); }

/* Section background rhythm */
#pain { background: var(--cream-2); }

#work-teaser { background: var(--navy); }
#work-teaser .section-head h2 { color: white; }
#work-teaser .section-head p { color: #b9c2d1; }
#work-teaser .case-card { background: var(--navy-soft); border-color: rgba(255,255,255,0.1); }
#work-teaser .case-card h3 { color: white; }
#work-teaser .case-card p { color: #cdd4e0; }
#work-teaser .case-tag { background: rgba(255,255,255,0.1); color: var(--accent); }
#work-teaser .case-card .case-link { color: var(--accent); }
#work-teaser .btn-ghost { color: white; border-color: rgba(255,255,255,0.25); }
#work-teaser .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.card .stat {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 6px;
  display: block;
}

/* Service cards with quantified cost-of-inaction */
.service-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(20,33,56,0.10);
  border-color: var(--teal);
}
.loss-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.loss-tag {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  color: #c23b1f;
  margin-bottom: 14px;
  line-height: 1.15;
}

/* Offer / pricing */
.offer-box {
  background: var(--navy);
  color: white;
  border-radius: 20px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.offer-box h2 { font-size: 1.8rem; margin: 0 0 14px; }
.offer-box p.lead { color: #cbd5e1; margin-bottom: 20px; }

.offer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.offer-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 10px;
  font-size: 0.97rem;
}
.offer-list li:last-child { border-bottom: none; }
.offer-list .check { color: var(--teal-light); font-weight: 800; }

.price-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.price-card .amount { font-size: 2.4rem; font-weight: 800; }
.price-card .amount small { font-size: 1rem; font-weight: 500; color: #cbd5e1; }
.price-card .setup { color: #cbd5e1; margin-bottom: 20px; font-size: 0.95rem; }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding-top: 10px;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 31px;
  left: 21px;
  width: calc(100% + 24px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step .num {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Gap stat section */
.gap-stat {
  background: var(--navy);
  padding: 60px 0;
}
.gap-stat-inner { text-align: center; }
.gap-eyebrow {
  display: inline-block;
  color: var(--teal-light);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.gap-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.gap-num-block { display: flex; flex-direction: column; align-items: center; }
.gap-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 4rem;
  line-height: 1;
  color: white;
}
.gap-num.accent { color: var(--teal-light); }
.gap-num-lbl {
  margin-top: 10px;
  color: #b9c2d1;
  font-size: 0.95rem;
  max-width: 220px;
}
.gap-vs {
  color: #b9c2d1;
  font-weight: 700;
  font-size: 1.1rem;
}
.gap-sub {
  margin: 30px auto 0;
  max-width: 560px;
  color: #d6dce6;
  font-size: 1.05rem;
}
@media (max-width: 800px) {
  .step:not(:last-child)::after { display: none; }
  .gap-num { font-size: 3rem; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Why us */
.why-us {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.why-us h2 { margin-top: 0; }

/* Placeholder proof */
.proof-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #f1f5f9;
}

/* FAQ */
details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
summary {
  font-weight: 600;
  cursor: pointer;
}
details p { color: var(--muted); margin: 10px 0 0; }

/* Final CTA */
.final-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  border-radius: 20px;
  padding: 60px 32px;
}
.final-cta h2 { font-size: 2rem; margin: 0 0 12px; }
.final-cta p { color: #f3e2d3; margin: 0 0 28px; }
.final-cta .btn-primary { background: white; color: var(--teal); box-shadow: none; }
.final-cta .btn-primary:hover { background: #f0fdfa; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Logo mark */
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-wrap .logo { font-size: 1.05rem; line-height: 1.1; }
.logo-wrap .logo small { display: block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; color: var(--teal); text-transform: uppercase; }
.logo-img { height: 44px; width: auto; display: block; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Stat strip */
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-strip .stat-item { text-align: center; }
.stat-strip .stat-item .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--navy); display: block; }
.stat-strip .stat-item .lbl { color: var(--muted); font-size: 0.85rem; }

/* Quiz / AI Readiness Score */
.quiz-section { background: var(--cream-2); }
.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 24px 60px -30px rgba(20, 33, 56, 0.35);
  max-width: 880px;
  margin: 0 auto;
}
.quiz-head { text-align: center; margin-bottom: 30px; }
.quiz-head .badge { margin-bottom: 14px; }
.quiz-head h2 { margin: 0 0 10px; }
.quiz-head p { color: var(--muted); margin: 0; }
.quiz-trust { margin: 12px 0 0; font-size: 0.82rem; font-weight: 700; color: var(--teal); }
.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
}
.quiz-field { display: flex; flex-direction: column; gap: 6px; }
.quiz-field.full { grid-column: 1 / -1; }
.quiz-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy-soft); }
.quiz-field input, .quiz-field select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-family: inherit;
  background: var(--bg);
  color: var(--navy);
}
.quiz-field input:focus, .quiz-field select:focus { outline: 2px solid var(--teal-light); outline-offset: 1px; }
.quiz-btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  background: var(--teal);
  color: white;
  font-weight: 800;
  font-size: 1.05rem;
  font-family: var(--font-head);
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(217, 114, 44, 0.6);
}
.quiz-btn:hover { background: var(--teal-light); }

.quiz-result {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.quiz-result.show { display: flex; }
.quiz-modal-box {
  background: var(--card);
  border-radius: 22px;
  padding: 36px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px -30px rgba(20, 33, 56, 0.6);
}
.quiz-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cream-2);
  color: var(--muted);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quiz-modal-close:hover { background: var(--border); color: var(--navy); }
.quiz-result-top {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: conic-gradient(var(--teal) calc(var(--score, 50) * 1%), var(--border) 0);
}
.score-ring-inner {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-ring-inner .num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--navy); }
.score-ring-inner .lbl { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.quiz-result-summary h3 { margin: 0 0 6px; }
.quiz-result-summary p { margin: 0; color: var(--muted); }
.quiz-result-summary .leak { color: var(--teal); font-weight: 800; }

.teaser-label { text-align: center; font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.quiz-lead-locked {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.quiz-lead-locked .blur-content {
  filter: blur(6px);
  pointer-events: none;
  padding: 20px;
  background: var(--cream-2);
  border-radius: 16px;
}
.quiz-lead-form {
  background: var(--navy);
  border-radius: 18px;
  padding: 28px;
  color: white;
  margin-top: 16px;
  border: 1px solid rgba(53, 224, 194, 0.3);
  box-shadow: 0 20px 40px -24px rgba(20, 33, 56, 0.6);
}
.quiz-lead-form h4 { margin: 0 0 4px; font-size: 1.15rem; }
.quiz-lead-form p { margin: 0 0 18px; color: #cbd5e1; font-size: 0.92rem; }
.quiz-lead-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 16px;
  margin-bottom: 12px;
  font-family: inherit;
}
.quiz-lead-form input::placeholder { color: #94a3b8; }
.quiz-lead-form button { width: 100%; }
#readinessStatus { margin-top: 12px; font-size: 0.9rem; color: #cbd5e1; text-align: center; }

/* Portfolio / Work page */
.work-hero { text-align: center; padding: 70px 0 30px; }
.work-hero .badge { margin-bottom: 16px; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.case-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.case-card h3 { margin: 0; font-size: 1.25rem; }
.case-card p { margin: 0; color: var(--muted); }
.case-card .case-stat { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 1.4rem; }
.case-card .case-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--teal);
}
.case-card .case-link:hover { text-decoration: underline; }
.case-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}
.case-featured .metrics { display: flex; gap: 28px; margin-top: 8px; flex-wrap: wrap; }
.case-featured .metrics div { text-align: left; }
.case-featured .metrics .num { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--teal); }
.case-featured .metrics .lbl { color: var(--muted); font-size: 0.85rem; }
.case-visual {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
}
.case-visual .browser-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.case-visual .browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.25); }
.case-visual .fake-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }
.case-visual .fake-row.alert { color: var(--teal-light); font-weight: 700; }

/* Floating chat widget (homepage Jessica demo) */
.chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(20, 33, 56, 0.5);
  z-index: 900;
  font-size: 1.5rem;
  transition: transform 0.15s;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .status-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38d996;
  border: 2px solid var(--navy);
}
.chat-launcher.open { display: none; }
.chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 460px;
  max-height: calc(100vh - 48px);
  background: var(--navy);
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.45);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 900;
}
.chat-panel.open { display: flex; }
.chat-panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--navy-soft);
  color: white;
  flex-shrink: 0;
}
.chat-panel-bar .status-dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #38d996;
  box-shadow: 0 0 0 3px rgba(56,217,150,0.25);
}
.chat-panel-title { font-weight: 700; font-size: 0.9rem; }
.chat-panel-sub { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-left: auto; margin-right: 6px; }
.chat-panel-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}
.chat-panel-messages .msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.chat-panel-messages .msg.bot {
  background: white;
  border: 1px solid var(--border);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-panel-messages .msg.user {
  background: var(--teal);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-panel-messages .msg.typing { background: white; border: 1px solid var(--border); align-self: flex-start; color: var(--muted); }
.chat-panel-messages .msg.error { align-self: center; color: var(--muted); font-size: 0.78rem; background: none; text-align: center; }
.chat-quick-replies {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 12px;
  background: #f8fafc;
  flex-shrink: 0;
}
.chat-quick-reply-btn {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
}
.chat-quick-reply-btn:hover { background: var(--teal); color: white; border-color: var(--teal); }
.chat-lead-form {
  display: none;
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: white;
  flex-shrink: 0;
}
.chat-lead-form h4 { font-size: 0.85rem; margin: 0 0 4px; color: var(--navy); }
.chat-lead-form p { font-size: 0.75rem; color: var(--muted); margin: 0 0 10px; }
.chat-lead-inputs { display: flex; flex-direction: column; gap: 8px; }
.chat-lead-inputs input,
.chat-lead-inputs select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  color: var(--navy);
}
.chat-lead-submit {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.chat-lead-submit:hover { opacity: 0.9; }
.chat-lead-cal {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  font-family: inherit;
}
.chat-lead-cal:hover { opacity: 0.9; }
#chatLeadStatus { font-size: 0.75rem; color: #38d996; margin: 8px 0 0; }
.chat-panel-input-row {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}
.chat-panel-input-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 16px;
  font-family: inherit;
}
.chat-panel-input-row button {
  background: var(--teal);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-panel-input-row button:disabled { opacity: 0.5; cursor: not-allowed; }
.chat-panel-input-row input:disabled { background: #f1f5f9; color: var(--muted); cursor: not-allowed; }

/* Exit / nudge popup for AI Readiness quiz */
.exit-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-popup.show { display: flex; }
.exit-popup-box {
  max-width: 420px;
  text-align: center;
}
.exit-popup-box .badge { margin-bottom: 14px; }
.exit-popup-box h3 { margin: 0 0 10px; font-size: 1.3rem; }
.exit-popup-box p { color: var(--muted); margin: 0 0 20px; }

/* Nine nav links plus the logo and CTA stop fitting on one row well before the
   800px content breakpoint, so the nav collapses to the hamburger earlier. */
@media (max-width: 1160px) {
  .nav { gap: 10px; flex-wrap: nowrap; }
  .nav-toggle { display: flex; order: 2; }
  .nav .btn { order: 3; }
  .nav-links {
    order: 4;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--card, #fff);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
}

@media (max-width: 800px) {
  .nav .btn { padding: 9px 14px; font-size: 0.78rem; }
  .logo-img { height: 34px; }
  .offer-box { grid-template-columns: 1fr; }
  .quiz-grid { grid-template-columns: 1fr; }
  .quiz-result-top { flex-direction: column; text-align: center; }
  .quiz-modal-box { padding: 26px 20px; }
  .case-featured { grid-template-columns: 1fr; }
  .chat-panel { bottom: 12px; right: 12px; }
  .chat-launcher { bottom: 16px; right: 16px; }
}

/* Standalone landing pages (social ads) */
.lp-body { background: var(--cream-2); min-height: 100vh; }
.lp-wrap { max-width: 640px; margin: 0 auto; padding: 50px 24px 70px; }
.lp-header { text-align: center; margin-bottom: 6px; }
.lp-header .logo-wrap { justify-content: center; margin-bottom: 26px; }
.lp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 24px 60px -30px rgba(20, 33, 56, 0.35);
}
.lp-eyebrow { text-align: center; }
.lp-card h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); text-align: center; margin: 14px 0 10px; }
.lp-card p.sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.lp-trust { display: flex; justify-content: center; gap: 22px; margin-top: 24px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; }
.lp-trust span { display: flex; align-items: center; gap: 6px; }
