:root {
  --ink: #101418;
  --ink-2: #1d2730;
  --muted: #5d6875;
  --line: #dfe5eb;
  --line-dark: rgba(255, 255, 255, 0.16);
  --paper: #ffffff;
  --wash: #f4f7f9;
  --blue: #2457d6;
  --blue-2: #103a9c;
  --green: #138a58;
  --orange: #f26b21;
  --orange-2: #c94e0d;
  --navy: #08121d;
  --radius: 8px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 18, 29, 0.94);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--orange);
}

.brand span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 6px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links .nav-cta {
  margin-left: 8px;
  color: #fff;
  background: var(--orange);
  padding-inline: 18px;
}

.nav-links .nav-cta:hover {
  background: var(--orange-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  min-height: 660px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(5, 10, 16, 0.86) 32%, rgba(5, 10, 16, 0.38) 70%, rgba(5, 10, 16, 0.2) 100%),
    url("../images/ppc-command-centre.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  margin-top: -72px;
  padding: 150px 0 80px;
}

.hero-content {
  max-width: 700px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--orange);
}

.btn-primary:hover {
  background: var(--orange-2);
}

.btn-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-dark {
  color: #fff;
  background: var(--ink);
}

.btn-outline {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.proof-strip {
  background: var(--navy);
  color: #fff;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
}

.proof-item {
  padding: 22px;
  background: var(--navy);
}

.proof-item strong {
  display: block;
  font-size: 1.12rem;
  margin-bottom: 5px;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding: 58px 0;
}

.section-wash {
  background: var(--wash);
}

.section-dark {
  color: #fff;
  background: var(--navy);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.5fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 34px;
}

.section-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 9px;
}

.section-dark .section-kicker {
  color: #7fb0ff;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.section-dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card,
.case-card,
.guide-card,
.review-card,
.price-card,
.quote-panel,
.plain-card,
.about-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card {
  padding: 22px;
}

.service-icon,
.guide-icon,
.mini-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--blue);
  background: #eef4ff;
  margin-bottom: 18px;
}

.service-icon.green,
.guide-icon.green,
.mini-icon.green {
  color: var(--green);
  background: #eaf8f1;
}

.service-icon.orange,
.guide-icon.orange,
.mini-icon.orange {
  color: var(--orange);
  background: #fff0e8;
}

.service-icon svg,
.guide-icon svg,
.mini-icon svg {
  width: 26px;
  height: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 750;
}

.text-link:hover {
  color: var(--blue-2);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: center;
}

.visual-panel {
  min-height: 440px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, #0a1521, #101b26);
  padding: 22px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.pipeline {
  display: grid;
  gap: 14px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.pipeline-row strong {
  display: block;
}

.pipeline-row span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.pipeline-status {
  color: #41d38e;
  font-weight: 800;
  font-size: 0.82rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.case-card {
  overflow: hidden;
}

.case-visual {
  min-height: 168px;
  background: #0c1723;
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  color: #fff;
}

.mini-chart,
.mini-table,
.mini-flow {
  min-height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 12px;
}

.chart-line {
  height: 54px;
  margin-top: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, transparent 50%, rgba(19, 138, 88, 0.5) 51%, transparent 52%),
    linear-gradient(25deg, transparent 52%, rgba(36, 87, 214, 0.62) 53%, transparent 54%);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 6px;
  height: 68px;
  margin-top: 12px;
}

.mini-bars span {
  flex: 1;
  background: var(--green);
  min-height: 16px;
  border-radius: 3px 3px 0 0;
}

.mini-bars span:nth-child(2n) {
  background: var(--blue);
}

.mini-bars span:nth-child(3n) {
  background: var(--orange);
}

.mini-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
}

.flow-node {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
}

.case-body {
  padding: 22px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.metric {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.metric strong {
  display: block;
  color: var(--green);
  font-size: 1.18rem;
}

.metric span {
  color: var(--muted);
  font-size: 0.82rem;
}

.review-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.rating-panel {
  padding: 26px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
}

.rating-number {
  display: block;
  margin: 4px 0 6px;
  font-size: 3rem;
  line-height: 1;
  font-weight: 850;
}

.stars {
  color: var(--orange);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-card {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.review-card blockquote {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
}

.review-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.guide-list {
  display: grid;
  gap: 14px;
}

.guide-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.quote-band {
  border-radius: var(--radius);
  padding: 34px;
  background: #0c1723;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(8, 18, 29, 0.96), rgba(8, 18, 29, 0.88)),
    url("../images/ppc-command-centre.png") center / cover no-repeat;
  color: #fff;
  padding: 94px 0 74px;
}

.page-hero .container {
  max-width: 980px;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  max-width: 720px;
}

.content {
  max-width: 860px;
}

.content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 34px 0 16px;
}

.content h3 {
  margin-top: 28px;
}

.content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 18px;
}

.content ol {
  padding-left: 22px;
  margin: 0 0 18px;
}

.content li {
  margin: 8px 0;
}

.content blockquote {
  margin: 30px 0;
  padding: 22px;
  border-left: 4px solid var(--orange);
  background: var(--wash);
  font-size: 1.18rem;
  font-weight: 750;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.plain-card,
.about-card {
  padding: 24px;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.price-card {
  padding: 24px;
}

.price {
  margin: 16px 0;
  font-size: 1.8rem;
  font-weight: 850;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stack-card {
  min-width: 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stack-card h3 {
  margin: 0 0 10px;
}

.stack-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.stack-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink-2);
  font-size: 0.94rem;
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--orange);
}

.stack-note {
  align-self: stretch;
}

.comparison-table {
  display: grid;
  margin: 28px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  min-width: 0;
  padding: 13px 15px;
  border-left: 1px solid var(--line);
}

.comparison-row span:first-child {
  border-left: 0;
  font-weight: 750;
}

.comparison-head {
  color: #fff;
  background: var(--navy);
}

.comparison-head span {
  border-left-color: var(--line-dark);
  font-weight: 850;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.5fr);
  gap: 26px;
  align-items: start;
}

.quote-panel {
  padding: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 750;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8e1;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(36, 87, 214, 0.16);
  border-color: var(--blue);
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.tool-layout-wide {
  grid-template-columns: minmax(0, 0.78fr) minmax(380px, 0.72fr);
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px;
}

.tool-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.tool-panel-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.segmented-control {
  display: inline-flex;
  border: 1px solid #cfd8e1;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}

.segmented-control button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid #cfd8e1;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tool-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--green);
  background: #eaf8f1;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.tool-badge.warn {
  color: var(--orange-2);
  background: #fff0e8;
}

.tool-badge.bad {
  color: #b42318;
  background: #ffeceb;
}

.metric-stack {
  border-top: 1px solid var(--line);
}

.metric-stack.compact {
  margin-top: 20px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.result-row span {
  color: var(--muted);
  font-size: 0.94rem;
}

.result-row strong {
  color: var(--ink);
  font-size: 1.12rem;
  text-align: right;
}

.result-row strong.positive {
  color: var(--green);
}

.result-row strong.negative {
  color: var(--orange-2);
}

.tool-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.asset-builder {
  margin-top: 22px;
}

.asset-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.asset-builder-head h3 {
  margin: 0;
}

.asset-builder-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.asset-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: start;
  margin-bottom: 8px;
}

.asset-field textarea {
  min-height: 82px;
}

.asset-field span {
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--wash);
  font-size: 0.78rem;
  font-weight: 800;
}

.asset-field.over-limit input,
.asset-field.over-limit textarea {
  border-color: var(--orange-2);
  outline: 3px solid rgba(201, 78, 13, 0.12);
}

.asset-field.over-limit span {
  color: var(--orange-2);
  background: #fff0e8;
  border-color: #ffd3bd;
}

.tool-add {
  margin-top: 2px;
}

.search-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
}

.search-preview-label {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  margin-bottom: 2px;
}

.search-preview-url {
  color: #188038;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  margin-bottom: 3px;
}

.search-preview h3 {
  color: #1a0dab;
  font-size: 1.24rem;
  line-height: 1.22;
  margin: 0 0 7px;
  overflow-wrap: anywhere;
}

.search-preview p {
  color: #3c4043;
  font-size: 0.92rem;
  margin: 0;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  font-weight: 750;
}

.footer {
  color: rgba(255, 255, 255, 0.78);
  background: #060c12;
  padding: 44px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer h4 {
  color: #fff;
}

.footer a:hover {
  color: #fff;
}

.footer li {
  margin: 8px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.9rem;
}

.footer-main-link {
  width: min(var(--max), calc(100% - 40px));
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.88rem;
}

.footer-main-link a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  font-family: var(--font);
}

.chat-toggle {
  min-height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  font-weight: 850;
}

.chat-toggle svg {
  width: 22px;
  height: 22px;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: min(380px, calc(100vw - 28px));
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: none;
}

.chat-panel.open {
  display: block;
}

.chat-head {
  padding: 16px;
  color: #fff;
  background: var(--navy);
}

.chat-head strong {
  display: block;
  margin-bottom: 2px;
}

.chat-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.chat-log {
  height: 300px;
  overflow-y: auto;
  padding: 15px;
  background: #f7fafc;
}

.chat-message {
  max-width: 86%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.chat-message.bot {
  background: #fff;
  border: 1px solid var(--line);
}

.chat-message.user {
  margin-left: auto;
  color: #fff;
  background: var(--blue);
}

.chat-options {
  display: grid;
  gap: 8px;
  padding: 0 15px 15px;
  background: #f7fafc;
}

.chat-options button,
.chat-link {
  min-height: 42px;
  text-align: left;
  border: 1px solid #cfd8e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 11px;
  font-weight: 720;
}

.chat-options button:hover,
.chat-link:hover {
  border-color: var(--blue);
}

.chat-link {
  display: flex;
  align-items: center;
  color: var(--ink);
}

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

.chat-input-row input {
  min-height: 42px;
}

.chat-input-row button {
  min-width: 72px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.chat-small {
  padding: 0 15px 13px;
  color: var(--muted);
  font-size: 0.78rem;
  background: #f7fafc;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy);
    border-top: 1px solid var(--line-dark);
    padding: 10px 20px 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-cta {
    margin: 10px 0 0;
  }

  .hero {
    min-height: 610px;
    padding-top: 134px;
  }

  .proof-grid,
  .service-grid,
  .review-grid,
  .price-grid,
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head,
  .review-summary,
  .split,
  .quote-layout,
  .tool-layout,
  .tool-layout-wide,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quote-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .proof-grid,
  .service-grid,
  .case-grid,
  .review-grid,
  .two-col,
  .price-grid,
  .stack-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .guide-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .comparison-row span:first-child {
    border-top: 0;
    background: var(--wash);
  }

  .comparison-head span:first-child {
    background: transparent;
  }

  .guide-card .text-link {
    grid-column: 2;
  }

  .case-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .tool-panel-head {
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1;
  }

  .chat-widget {
    right: 14px;
    bottom: 14px;
  }

  .chat-toggle span {
    display: none;
  }

  .chat-toggle {
    width: 52px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(362px, calc(100% - 28px));
    margin-left: 14px;
    margin-right: 14px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
    line-height: 1.03;
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
  }

  .hero p,
  .section-head p,
  .proof-item span,
  .service-card p,
  .review-card blockquote {
    overflow-wrap: break-word;
  }

  .asset-field {
    grid-template-columns: 1fr;
  }

  .asset-field span {
    min-height: 32px;
    justify-content: start;
    padding-left: 10px;
  }
}
