:root {
  --slate: #4C5B70;
  --taupe: #8A7F73;
  --ink: #17202B;
  --muted: #5B6470;
  --paper: #FBFAF7;
  --panel: #FFFFFF;
  --mist: #F1EEE9;
  --line: #D9D3CB;
  --dark: #273242;
  --dark-text: #F7F4EF;
  --focus: #B57642;
  --shadow: 0 18px 48px rgba(39, 50, 66, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

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

.brand,
.nav,
.hero-actions,
.score-strip,
.panel {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--slate);
  color: #FFFFFF;
  border: 1px solid #38475B;
  border-radius: 6px;
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 14px;
}

.nav {
  gap: 8px;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--mist);
  color: var(--ink);
  outline: none;
}

.section-band {
  padding: clamp(54px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.light {
  background: var(--mist);
  border-block: 1px solid var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 66px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--taupe);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Roboto Slab", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

h3 {
  font-size: 21px;
}

.lede,
.cta-copy p {
  color: var(--muted);
  font-size: 18px;
}

.lede {
  max-width: 690px;
  margin: 24px 0 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.button.primary {
  background: var(--slate);
  color: #FFFFFF;
  border-color: #39485C;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #39485C;
}

.button.secondary {
  background: #FFFFFF;
  color: var(--slate);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: #F5F2ED;
  outline: none;
}

.score-strip {
  width: min(100%, 650px);
  margin-top: 34px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(39, 50, 66, 0.08);
}

.score-strip div {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.score-strip div:last-child {
  border-right: 0;
}

.score-strip dt {
  color: var(--slate);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 28px;
  font-weight: 750;
}

.score-strip dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--dark);
  border: 1px solid #3A4656;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-wide,
.chart-card {
  grid-column: 1 / -1;
}

.panel,
.metric-card,
.chart-card {
  background: #FAF8F4;
  border: 1px solid #D8D0C6;
  border-radius: 8px;
  color: var(--ink);
}

.panel {
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.panel strong,
.metric-card strong {
  display: block;
  color: var(--ink);
  font-family: "Roboto Slab", Georgia, serif;
}

.panel-label,
.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-live {
  padding: 6px 9px;
  background: #E5ECE7;
  color: #254D38;
  border: 1px solid #BED0C3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.metric-card,
.chart-card {
  padding: 16px;
}

.metric-card strong {
  margin: 8px 0 10px;
  font-size: 38px;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.chart-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 10px; height: 10px; display: inline-block; border-radius: 50%; }
.legend-email { background: var(--slate); }
.legend-automation { background: var(--taupe); }

.meter {
  height: 10px;
  overflow: hidden;
  background: #E7E1D9;
  border-radius: 999px;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--slate);
  border-radius: inherit;
}

.meter.warm span {
  background: var(--taupe);
}

.mini-chart {
  display: block;
  width: 100%;
  max-width: 336px;
  height: auto;
  margin-top: 12px;
}

.section-heading {
  display: grid;
  max-width: 980px;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: start;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 870px;
}

.work-section { background: #FBFAF7; border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.work-card { min-height: 220px; padding: 22px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 22px rgba(39, 50, 66, 0.05); }
.work-card .card-index { margin-bottom: 28px; }
.work-card p, .process-list p { color: var(--muted); }
.how-section { border-block: 1px solid var(--line); }
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1100px; margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 24px 20px 0; border-top: 1px solid var(--line); }
.process-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.process-list li > span { color: var(--taupe); font-weight: 800; }
.process-list h3 { margin-bottom: 10px; }
.process-list p { margin: 0; }

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

details {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(39, 50, 66, 0.06);
}

summary {
  min-height: 62px;
  padding: 18px 48px 18px 18px;
  color: var(--ink);
  font-family: "Roboto Slab", Georgia, serif;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--slate);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 18px 20px;
  color: var(--muted);
}

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

.trust-card {
  min-height: 250px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card-index {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--taupe);
  font-weight: 800;
}

.trust-card p {
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(39, 50, 66, 0.08);
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  background: #FBFAF7;
  border: 1px solid #CFC7BE;
  border-radius: 6px;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(181, 118, 66, 0.28);
  border-color: var(--focus);
}

.form-button {
  width: 100%;
  border-radius: 6px;
  font: inherit;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-note a {
  color: var(--slate);
  font-weight: 800;
}

.form-status { min-height: 1.55em; margin: 0; color: var(--muted); font-size: 14px; }
.form-error { color: #9D321F; font-weight: 700; }
.privacy-note { margin: 0; color: var(--muted); font-size: 12px; }
.privacy-note a { color: var(--slate); font-weight: 700; }
.site-footer { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding: 24px clamp(18px, 5vw, 72px); color: var(--muted); background: var(--paper); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer a { color: var(--slate); font-weight: 800; }

/* Testimonial direction: an editorial review room with one unrepeatable video per voice. */
.testimonials {
  background: #E7E2DB;
  overflow: hidden;
}

.testimonial-heading {
  margin-bottom: 34px;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: clamp(34px, 5vw, 66px);
}

.logo-wall-item {
  display: grid;
  min-height: 110px;
  place-items: center;
  padding: 18px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.logo-wall img,
.expanded-logo-grid img {
  display: block;
  width: 100%;
  max-width: 150px;
  max-height: 60px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.testimonial-feature,
.callout-review,
.feed-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.testimonial-feature {
  padding: clamp(22px, 4vw, 54px);
  background: var(--dark);
  color: var(--dark-text);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.review-copy blockquote {
  margin: 18px 0 24px;
  color: var(--dark-text);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.18;
}

.review-author {
  display: grid;
  gap: 2px;
  margin: 0;
}

.review-author strong { color: inherit; }
.review-author span { color: var(--muted); font-size: 14px; }
.testimonial-feature .review-author span { color: #D4D0CA; }

.video-frame {
  position: relative;
  overflow: hidden;
  background: #111923;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  box-shadow: 0 14px 32px rgba(23,32,43,.18);
}

.video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.video-caption {
  display: block;
  padding: 10px 12px;
  color: #EEEAE4;
  background: #202B39;
  font-size: 12px;
  font-weight: 700;
}

.text-button {
  margin-top: 22px;
  padding: 0;
  color: var(--focus);
  background: none;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.testimonial-feature .text-button { color: #E2B68C; }
.text-button:hover { text-decoration: underline; }

.mini-story-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 clamp(40px, 7vw, 84px);
}

.mini-story {
  min-height: 206px;
  padding: 20px;
  background: #F9F7F3;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-story p { margin: 26px 0 22px; font-family: "Roboto Slab", Georgia, serif; font-size: 19px; line-height: 1.3; }
.mini-story strong { color: var(--taupe); font-size: 13px; }
.story-number { color: var(--slate); font-weight: 800; }

.review-sequence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 26px;
  border-block: 1px solid var(--line);
}

.review-sequence div { padding: 22px 24px 24px; border-right: 1px solid var(--line); }
.review-sequence div:last-child { border-right: 0; }
.review-sequence span { color: var(--taupe); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.review-sequence p { margin: 12px 0 0; color: var(--muted); }

.expanded-logos { margin-bottom: clamp(44px, 7vw, 84px); background: rgba(255,255,255,.55); box-shadow: none; }
.expanded-logos summary { font-family: "Roboto", Arial, sans-serif; font-weight: 800; }
.expanded-logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 0 18px 20px; }
.expanded-logo-grid div { display: grid; gap: 12px; place-items: center; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }

.callout-review { margin-bottom: 28px; }
.qualitative-callouts { padding: clamp(4px, 2vw, 20px); }
.qualitative-callouts h3 { max-width: 430px; margin: 10px 0 16px; font-size: clamp(26px, 3vw, 38px); }
.qualitative-callouts > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 17px; }

.logo-marquee { overflow: hidden; margin: 18px -72px clamp(44px, 7vw, 84px); padding: 18px 0; color: var(--slate); background: #D8D2CA; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; align-items: center; animation: drift 28s linear infinite; font-family: "Roboto Slab", Georgia, serif; font-size: 19px; white-space: nowrap; }
.marquee-group { display: flex; align-items: center; gap: 22px; padding-right: 22px; }
.marquee-track i { color: var(--focus); font-style: normal; }
@keyframes drift { to { transform: translateX(-50%); } }

.story-feed { display: grid; gap: 20px; }
.feed-story { padding: clamp(22px, 4vw, 48px) 0; border-top: 1px solid var(--line); }
.feed-story.reverse { grid-template-columns: minmax(320px, 1.1fr) minmax(0, .9fr); }
.feed-story.reverse .feed-copy { order: 2; }
.feed-copy h3 { max-width: 540px; margin: 9px 0 16px; font-size: clamp(27px, 3vw, 42px); }
.feed-copy > p:not(.eyebrow):not(.review-author) { max-width: 560px; color: var(--muted); font-size: 17px; }

.review-modal { width: min(760px, calc(100% - 28px)); padding: 0; color: var(--dark-text); background: var(--dark); border: 1px solid #536073; border-radius: 8px; box-shadow: var(--shadow); }
.review-modal::backdrop { background: rgba(11,16,23,.78); }
.modal-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.modal-top p { margin: 0; color: #E2B68C; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.modal-close { color: var(--dark-text); background: none; border: 0; font-size: 28px; cursor: pointer; }
.review-modal .video-frame { border: 0; border-radius: 0; box-shadow: none; }

.case-studies {
  background: #F4F1ED;
  border-top: 1px solid var(--line);
}

.case-studies-intro {
  max-width: 620px;
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

.case-study-conversations {
  display: grid;
  gap: 42px;
  max-width: 900px;
  margin: 0 auto;
}

.case-study-conversation {
  padding: 26px clamp(18px, 4vw, 40px) 30px;
  background: rgba(255,255,255,.54);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.case-study-conversation:nth-child(2) {
  background: #E7ECE7;
}

.case-study-conversation--dark {
  color: var(--dark-text);
  background: var(--dark);
  border-color: var(--dark);
}

.case-study-thread-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.case-study-label {
  color: var(--taupe);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.case-study-conversation--dark .case-study-label {
  color: #D5C3B3;
}

.case-study-conversation .conversation {
  max-width: 760px;
}

.case-study-conversation .bubble {
  max-width: 78%;
  margin-bottom: 12px;
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(39, 50, 66, 0.05);
}

.case-study-conversation .bubble.right {
  background: var(--slate);
  color: #FFFFFF;
}

.case-study-conversation .bubble .quote {
  font-size: clamp(19px, 2vw, 24px);
}

.case-study-conversation .bubble .meta {
  color: var(--taupe);
}

.case-study-conversation .bubble.right .meta {
  color: #E7E2DB;
}

.case-study-conversation--dark .case-study-thread-heading {
  border-color: #536073;
}

.case-study-conversation--dark .bubble {
  background: #F9F6F0;
  color: var(--ink);
}

.case-study-conversation--dark .bubble.right {
  background: #3A4656;
  color: var(--dark-text);
}

/* Case studies: compact editorial threads, not oversized chat bubbles. */
.case-study-conversation {
  padding: clamp(22px, 3vw, 34px);
  background: #FBFAF7;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(39, 50, 66, 0.07);
}

.case-study-conversation:nth-child(2) { background: #F7FAF7; }
.case-study-conversation--dark { background: var(--dark); }
.case-study-thread-heading { margin-bottom: 26px; padding-bottom: 16px; }
.case-study-conversation .conversation { display: grid; gap: 14px; max-width: none; }
.case-study-conversation .bubble {
  width: min(88%, 680px);
  max-width: none;
  margin: 0;
  padding: 17px 20px 15px;
  background: #FFFFFF;
  border: 1px solid #E4DED6;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(39, 50, 66, 0.045);
}
.case-study-conversation .bubble.right {
  justify-self: end;
  background: var(--slate);
  border-color: var(--slate);
  border-radius: 10px;
}
.case-study-conversation .bubble .quote {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.42;
}
.case-study-conversation .bubble .meta {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.2;
}

@media (max-width: 620px) {
  .case-study-conversation .bubble { width: 94%; }
}

@media (max-width: 900px) {
  .logo-wall, .mini-story-rail { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .process-list { grid-template-columns: 1fr; }
  .process-list li, .process-list li + li { padding: 20px 0; border-left: 0; }
  .testimonial-feature, .callout-review, .feed-story, .feed-story.reverse { grid-template-columns: 1fr; }
  .feed-story.reverse .feed-copy { order: 0; }
  .review-sequence, .expanded-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .review-sequence div:nth-child(2) { border-right: 0; }
  .review-sequence div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .logo-marquee { margin-inline: -5vw; }
}

@media (max-width: 620px) {
  .logo-wall, .mini-story-rail, .review-sequence, .expanded-logo-grid { grid-template-columns: 1fr; }
  .review-sequence div, .review-sequence div:nth-child(2), .review-sequence div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .review-sequence div:last-child { border-bottom: 0; }
  .logo-marquee { margin-inline: -18px; }

  .case-study-conversation .bubble {
    max-width: 92%;
  }
}

@media (max-width: 900px) {
  .hero,
  .cta {
    grid-template-columns: 1fr;
  }

  .dashboard {
    max-width: 620px;
  }

  .section-heading,
  .faq-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 620px) {
  .topbar {
    position: static;
    align-items: center;
  }

  .nav {
    max-width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    white-space: nowrap;
  }

  .nav a { flex: 0 0 auto; }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 40px;
  }

  .score-strip,
  .dashboard {
    display: grid;
    grid-template-columns: 1fr;
  }

  .score-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .score-strip div:last-child {
    border-bottom: 0;
  }

  .panel-wide,
  .chart-card {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
}
