:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #63706b;
  --line: #dfe7e3;
  --paper: #f7faf8;
  --panel: #ffffff;
  --brand: #14614f;
  --brand-2: #0d8c74;
  --accent: #c49a35;
  --alert: #b85632;
  --good: #2e8a55;
  --shadow: 0 18px 50px rgba(23, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(247, 250, 248, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 54px);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
}

.brand-logo {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  height: 48px;
  object-fit: contain;
  padding: 3px;
  width: 48px;
}

.brand small,
.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 10px;
}

nav a:hover,
nav a:focus {
  background: #eaf2ee;
  color: var(--brand);
}

main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px clamp(18px, 4vw, 54px) 56px;
}

.hero {
  align-items: stretch;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  min-height: 430px;
}

.hero-copy,
.module,
.status-panel,
.trust-summary,
.response-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.9rem);
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 820px;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-copy > p:not(.eyebrow),
.section-head p {
  color: var(--muted);
  max-width: 780px;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.button:hover {
  box-shadow: 0 10px 22px rgba(20, 97, 79, 0.16);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: #eef5f1;
  border-color: var(--line);
  color: var(--brand);
}

.button.full {
  width: 100%;
}

.status-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
}

.status-dot {
  background: var(--good);
  border-radius: 999px;
  box-shadow: 0 0 0 7px rgba(46, 138, 85, 0.13);
  display: inline-block;
  height: 10px;
  margin-right: 8px;
  width: 10px;
}

.status-panel ul {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 18px 0 0;
}

.status-panel li {
  align-items: center;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.status-panel li span {
  color: var(--brand);
  font-size: 1.35rem;
  font-weight: 900;
}

.module {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 40px);
}

.section-head {
  margin-bottom: 22px;
}

.tool-grid,
.automation-layout,
.lead-layout,
.split {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.tool-card,
.results-card,
.review-card,
.campaign-output,
.lead-results-panel,
.pipeline-panel {
  background: #fbfdfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

label {
  color: var(--ink);
  display: block;
  font-weight: 800;
  margin: 12px 0 8px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 0;
  padding: 14px;
}

legend {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0 6px;
}

input,
select {
  background: #fff;
  border: 1px solid #ccd9d4;
  border-radius: 8px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.input-row input {
  flex: 1 1 260px;
}

.field-note,
.card-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.results-card {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: 160px 1fr;
}

.score-ring {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(#fff 57%, transparent 58%),
    conic-gradient(var(--brand) calc(var(--score) * 1%), #e3ebe7 0);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.score-ring strong,
.mega-score {
  color: var(--brand);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 0.88rem;
}

.score-bars {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-label {
  display: flex;
  font-size: 0.92rem;
  justify-content: space-between;
}

.bar-track,
.meter {
  background: #e8efec;
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.bar-track span,
.meter span {
  background: var(--brand-2);
  display: block;
  height: 100%;
}

.recommendations {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.recommendation,
.check-item,
.output-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.recommendation strong,
.check-item strong,
.output-card strong {
  display: block;
  margin-bottom: 6px;
}

.recommendation p,
.check-item p,
.output-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.checklist {
  display: grid;
  gap: 12px;
}

.check-item {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
}

.check-icon {
  align-items: center;
  background: #e8f5ee;
  border-radius: 8px;
  color: var(--good);
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.check-item.warning .check-icon {
  background: #fff1e8;
  color: var(--alert);
}

.trust-summary,
.response-panel {
  align-self: start;
  padding: 24px;
}

.mega-score {
  font-size: clamp(4rem, 10vw, 7rem);
  margin: 12px 0;
}

.risk-list {
  color: var(--muted);
  margin: 18px 0 0;
  padding-left: 20px;
}

.hidden {
  display: none;
}

.automation-layout {
  grid-template-columns: 320px minmax(0, 1fr);
}

.lead-layout {
  grid-template-columns: 380px minmax(0, 1fr);
}

.toggle-row {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  margin: 8px 0;
  padding: 10px;
}

.toggle-row input {
  accent-color: var(--brand);
  min-height: auto;
  width: auto;
}

.platform-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-grid .toggle-row {
  margin: 0;
}

.lead-summary {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.lead-summary h3,
.pipeline-panel h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin: 4px 0 8px;
}

.lead-summary p,
.pipeline-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.lead-count {
  background: #eef7f3;
  border: 1px solid #cfe3da;
  border-radius: 8px;
  color: var(--brand);
  min-width: 98px;
  padding: 12px;
  text-align: center;
}

.lead-count strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.lead-count span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.lead-cards {
  display: grid;
  gap: 12px;
}

.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.lead-card-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.lead-card h4 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}

.lead-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.lead-phone {
  color: var(--brand) !important;
  font-weight: 900;
  margin-top: 6px;
}

.lead-score {
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 8px 10px;
}

.lead-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lead-tags span {
  background: #eef5f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 9px;
}

.pipeline-panel {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  margin-top: 18px;
}

.pipeline-steps {
  counter-reset: pipeline;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pipeline-steps li {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px 1fr;
  padding: 10px;
}

.pipeline-steps li::before {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  content: counter(pipeline);
  counter-increment: pipeline;
  display: inline-flex;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.campaign-output {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.review-meta {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.review-meta span {
  background: #fff7dd;
  border-radius: 999px;
  color: #73530c;
  font-weight: 800;
  padding: 6px 10px;
}

.sentiment {
  margin-top: 18px;
}

.sentiment > span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.meter.warning span {
  background: var(--accent);
}

footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px clamp(18px, 4vw, 54px) 40px;
}

footer strong {
  color: var(--ink);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .tool-grid,
  .automation-layout,
  .lead-layout,
  .pipeline-panel,
  .split,
  .results-card,
  .campaign-output {
    grid-template-columns: 1fr;
  }

  .recommendations {
    grid-template-columns: 1fr;
  }

  .score-ring {
    max-width: 170px;
  }

  .lead-summary {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* Accrued Markets v5 homepage styles. Kept additive so the Demo Lab page can
   continue using the original .topbar/.platform-grid styles above. */
.shell {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: clamp(18px, 4vw, 54px);
  padding-right: clamp(18px, 4vw, 54px);
}

.nav {
  background: rgba(247, 250, 248, 0.9);
  border-bottom: 1px solid rgba(223, 231, 227, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
}

.nav.scrolled {
  box-shadow: 0 16px 38px rgba(23, 42, 36, 0.08);
}

.nav-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 78px;
}

.nav .brand {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav .brand-logo {
  height: 42px;
  width: 42px;
}

.nav-links,
.nav-actions {
  align-items: center;
  display: flex;
  gap: 16px;
}

.nav-links {
  color: #42514c;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--brand);
}

.btn {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  justify-content: center;
  padding: 12px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  box-shadow: 0 14px 30px rgba(20, 97, 79, 0.18);
  transform: translateY(-1px);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
  color: var(--ink);
}

.section,
.section-tight {
  padding: clamp(62px, 8vw, 112px) 0;
}

.section-tight {
  padding-top: clamp(34px, 5vw, 74px);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.display {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.h1 {
  font-size: clamp(3rem, 8.5vw, 7.4rem);
  line-height: 0.92;
}

.h2 {
  font-size: clamp(2.15rem, 5vw, 4.6rem);
  line-height: 0.96;
}

.accent-italic {
  color: var(--brand);
  font-style: italic;
}

.hero {
  overflow: hidden;
  padding: clamp(54px, 7vw, 96px) 0 clamp(34px, 5vw, 72px);
  position: relative;
}

.hero::before {
  background:
    radial-gradient(circle at 14% 8%, rgba(196, 154, 53, 0.16), transparent 30%),
    radial-gradient(circle at 88% 20%, rgba(13, 140, 116, 0.14), transparent 28%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  position: relative;
}

.hero-copy {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 64px);
}

.hero-copy > p:not(.eyebrow) {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-rail {
  display: grid;
  gap: 16px;
}

.rail-card,
.service-card,
.work-card,
.process-card,
.proof-card,
.contact-card,
.workflow-demo,
.authority-teaser {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(23, 42, 36, 0.08);
}

.rail-card {
  padding: 22px;
}

.rail-card .icon,
.service-index {
  align-items: center;
  background: #eff8f5;
  border: 1px solid #d4e9e1;
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  margin-bottom: 14px;
  width: 42px;
}

.services-grid,
.work-grid,
.process-steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.work-card,
.process-card {
  padding: 24px;
}

.service-card h3,
.work-card h3,
.process-card h3 {
  font-size: 1.25rem;
  margin: 0 0 10px;
}

.authority-teaser {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  padding: clamp(26px, 4vw, 48px);
}

.authority-list {
  display: grid;
  gap: 12px;
}

.authority-item {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}

.workflow-demo {
  overflow: hidden;
  padding: 0;
}

.demo-bar {
  align-items: center;
  background: #15201d;
  display: flex;
  gap: 8px;
  padding: 14px 18px;
}

.demo-dot {
  background: #fff;
  border-radius: 99px;
  height: 10px;
  opacity: 0.55;
  width: 10px;
}

.demo-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
  padding: 18px;
}

.demo-status {
  background: #eff8f5;
  border: 1px solid #d4e9e1;
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 10px;
}

.split-section,
.faq-grid {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: 0.9fr 1.1fr;
}

.proof-card,
.contact-card {
  padding: 26px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.faq-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  padding: 18px 20px;
  text-align: left;
  width: 100%;
}

.faq-plus {
  color: var(--brand);
  font-size: 1.4rem;
}

.faq-answer {
  color: var(--muted);
  display: none;
  padding: 0 20px 18px;
}

.faq-item.open .faq-answer {
  display: block;
}

.footer.footer {
  display: block;
  max-width: none;
  padding: 0;
}

.footer-inner {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  padding-bottom: 34px;
  padding-top: 28px;
}

.chat-launch {
  align-items: center;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 18px 44px rgba(20, 97, 79, 0.28);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 58px;
  z-index: 120;
}

.chat-launch svg {
  height: 24px;
  width: 24px;
}

.chat-panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 24px;
  bottom: 92px;
  box-shadow: 0 30px 80px rgba(23, 42, 36, 0.22);
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  max-height: min(660px, calc(100vh - 120px));
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 22px;
  transform: translateY(16px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(390px, calc(100vw - 30px));
  z-index: 119;
}

.chat-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-head {
  align-items: center;
  background: linear-gradient(135deg, #15201d, #14614f);
  color: #fff;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.chat-head img {
  background: #fff;
  border-radius: 14px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.chat-title {
  font-weight: 900;
}

.chat-subtitle {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding: 16px;
}

.message {
  border-radius: 16px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 92%;
  padding: 11px 13px;
}

.message.assistant {
  background: #eef7f3;
  border: 1px solid #d4e9e1;
}

.message.user {
  background: var(--ink);
  color: #fff;
  justify-self: end;
}

.quick-links {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 16px;
}

.quick-links a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.quick-links a:hover {
  background: #eff8f5;
  border-color: #d4e9e1;
}

.v5-site .hero {
  display: block;
  grid-template-columns: none;
  margin: 0;
  min-height: 0;
  overflow: visible;
  padding: clamp(42px, 5vw, 76px) 0 clamp(36px, 5vw, 68px);
}

.v5-site .hero-grid {
  grid-template-columns: minmax(0, 760px);
  justify-content: start;
  margin: 0 auto;
  max-width: 1160px;
  min-width: 0;
  padding: 0 24px;
  width: 100%;
}

.v5-site .hero-copy {
  min-width: 0;
  overflow: visible;
  padding: clamp(30px, 4.5vw, 58px);
}

.v5-site .h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.15rem);
  line-height: 0.96;
  margin-bottom: 20px;
  max-width: 10.2ch;
}

.v5-site .hero-copy .lede,
.v5-site .hero-note {
  max-width: 620px;
}

.v5-site .hero-rail {
  display: none;
  min-width: 0;
}

.v5-site .hero-card {
  min-width: 0;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 14px;
}

.suggestions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px 10px;
}

.chat-form {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 14px;
}

.chat-form input {
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
}

.chat-form button {
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
}

.chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .nav-actions {
    flex-wrap: wrap;
  }

  .hero-grid,
  .authority-teaser,
  .split-section,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .work-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .h1 {
    font-size: clamp(2.6rem, 18vw, 4rem);
  }

  .chat-panel {
    bottom: 18px;
    left: 12px;
    max-height: 64vh;
    overflow: hidden;
    right: 12px;
    width: auto;
  }

  .chat-messages {
    max-height: 170px;
    overflow-y: auto;
  }

  .chat-form {
    padding: 12px;
  }

  .chat-form button {
    padding: 0 12px;
  }

  .chat-launch {
    bottom: 16px;
    right: 16px;
  }
}

/* V5 homepage isolation: keep Demo Lab globals from bleeding into /v5. */
main.v5-site {
  margin: 0;
  max-width: none;
  padding: 0;
}

.v5-site .section-cool {
  background:
    radial-gradient(circle at 12% 18%, rgba(20, 97, 79, 0.08), transparent 30%),
    linear-gradient(135deg, rgba(239, 248, 245, 0.72), rgba(255, 255, 255, 0.72));
  border-radius: 34px;
}

.v5-site .section-deep {
  background:
    radial-gradient(circle at 15% 12%, rgba(196, 154, 53, 0.18), transparent 24%),
    linear-gradient(135deg, #0f3c33, #10251f 78%);
  border-radius: 34px;
  color: #f6fbf8;
  margin: clamp(28px, 5vw, 54px) auto;
  max-width: 1180px;
  overflow: hidden;
}

.v5-site .section-deep .eyebrow,
.v5-site .section-deep .lede,
.v5-site .section-deep p {
  color: rgba(246, 251, 248, 0.76);
}

.v5-site .intro-grid,
.v5-site .trust-grid,
.v5-site .ai-layout {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
}

.v5-site .pillars {
  display: grid;
  gap: 14px;
}

.v5-site .pillar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(23, 42, 36, 0.07);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.v5-site .pillar > div {
  align-items: center;
  display: flex;
  gap: 12px;
}

.v5-site .pillar span {
  align-items: center;
  background: #0f5f4f;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 34px;
}

.v5-site .pillar strong {
  color: var(--ink);
  font-size: 1.02rem;
}

.v5-site .pillar p {
  color: var(--muted);
  margin: 0;
}

.v5-site .services {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.v5-site .service-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  position: relative;
}

.v5-site .service-card::before {
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 5px;
}

.v5-site .service-card h3 {
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.v5-site .service-card p {
  color: var(--muted);
  margin: 0;
}

.v5-site .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.v5-site .chip {
  background: #eff8f5;
  border: 1px solid #d4e9e1;
  border-radius: 999px;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 10px;
}

.v5-site .authority-list article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 18px;
  padding: 14px 16px;
}

.v5-site .authority-list article p {
  color: var(--muted);
  margin: 6px 0 0;
}

.v5-site .work-grid {
  align-items: center;
  display: grid;
  gap: clamp(26px, 5vw, 58px);
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  padding: clamp(24px, 4vw, 48px);
}

.v5-site .work-image {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.22);
  min-height: 520px;
  overflow: hidden;
}

.v5-site .work-image img {
  display: block;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}

.v5-site .steps {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.v5-site .step {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 16px;
}

.v5-site .step > span {
  color: #d9b75f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v5-site .step strong {
  color: #fff;
}

.v5-site .step p {
  margin: 6px 0 0;
}

.v5-site .demo-body {
  display: grid;
  gap: 0;
}

.v5-site .demo-row {
  align-items: start;
  grid-template-columns: 44px minmax(0, 1fr);
}

.v5-site .demo-icon {
  align-items: center;
  background: #eff8f5;
  border: 1px solid #d4e9e1;
  border-radius: 14px;
  color: var(--brand);
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.v5-site .demo-row p {
  color: var(--muted);
  margin: 4px 0 0;
}

.v5-site .trust-card {
  background: linear-gradient(135deg, #125e4e, #0f3c33);
  border-radius: 26px;
  box-shadow: 0 24px 56px rgba(23, 42, 36, 0.14);
  color: #fff;
  padding: clamp(28px, 4vw, 46px);
}

.v5-site .trust-card p {
  color: #fff;
  font-family: Newsreader, Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.05;
  margin: 0;
}

.v5-site .trust-list {
  display: grid;
  gap: 14px;
}

.v5-site .trust-item {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.v5-site .trust-item p {
  color: var(--muted);
  margin: 6px 0 0;
}

.v5-site .cta {
  align-items: center;
  background:
    radial-gradient(circle at 90% 10%, rgba(196, 154, 53, 0.2), transparent 30%),
    linear-gradient(135deg, #0f3c33, #132b25);
  border-radius: 30px;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: clamp(28px, 5vw, 54px);
}

.v5-site .cta p,
.v5-site .cta .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 980px) {
  .v5-site .intro-grid,
  .v5-site .trust-grid,
  .v5-site .ai-layout,
  .v5-site .work-grid,
  .v5-site .authority-teaser {
    grid-template-columns: 1fr;
  }

  .v5-site .services {
    grid-template-columns: 1fr;
  }

  .v5-site .work-image,
  .v5-site .work-image img {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .v5-site .section,
  .v5-site .section-tight {
    padding: 52px 0;
  }

  .v5-site .step {
    grid-template-columns: 1fr;
  }

  .v5-site .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Keep the open concierge useful without covering too much of the demo page. */
.chat-panel {
  width: min(360px, calc(100vw - 32px));
}

.chat-messages {
  max-height: 220px;
}

.suggestions {
  display: none;
}

@media (max-width: 560px) {
  .chat-panel {
    max-height: 58vh;
  }
}
