:root {
  --ink: #101418;
  --ink-2: #26313d;
  --muted: #5e6a76;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --line: #dfe5eb;
  --navy: #08121d;
  --blue: #2457d6;
  --green: #138a58;
  --orange: #f26b21;
  --orange-2: #c94e0d;
  --radius: 8px;
  --max: 1160px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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;
}

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

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

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

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

.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.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: 700;
  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 rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: transparent;
  color: #fff;
  align-items: center;
  justify-content: center;
}

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

.hero {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(5, 10, 16, 0.96) 0%, rgba(5, 10, 16, 0.86) 46%, rgba(5, 10, 16, 0.46) 100%),
    url("../images/ppc-command-centre.png") center / cover no-repeat;
  padding: 104px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  gap: 48px;
  align-items: center;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.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: 800;
  line-height: 1;
}

.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.28);
  background: rgba(255, 255, 255, 0.08);
}

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

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

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 52px 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.55fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2,
.content h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-dark .section-head h2,
.section-dark .content h2 {
  color: #fff;
}

.section-head p,
.content .lead {
  color: var(--muted);
  font-size: 1.06rem;
}

.section-dark .section-head p,
.section-dark .content .lead {
  color: rgba(255, 255, 255, 0.75);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 26px;
}

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

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

.card ul {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.card li {
  position: relative;
  padding-left: 18px;
}

.card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.67em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.card-link {
  display: block;
}

.card-link .card {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.card-link:hover .card {
  transform: translateY(-2px);
  border-color: rgba(36, 87, 214, 0.4);
  box-shadow: 0 18px 42px rgba(12, 27, 45, 0.09);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat {
  background: #fff;
  padding: 24px;
}

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

.stat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.65fr);
  gap: 46px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.content {
  max-width: 820px;
}

.content h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1;
}

.content h2 {
  margin-top: 38px;
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.content h3 {
  margin: 24px 0 8px;
  font-size: 1.18rem;
}

.content p,
.content li {
  color: var(--muted);
  font-size: 1.02rem;
}

.content ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  list-style: disc;
  padding-left: 22px;
}

.page-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #152638);
  padding: 82px 0 66px;
}

.breadcrumb {
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.notice {
  border-left: 4px solid var(--orange);
  background: #fff7f0;
  padding: 18px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

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

.payment-card h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.payment-card dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 7px 14px;
  margin: 0;
}

.payment-card dt {
  color: var(--muted);
  font-weight: 750;
}

.payment-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer {
  color: rgba(255, 255, 255, 0.74);
  background: var(--navy);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: start;
}

.footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: flex-end;
}

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

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

.site-chat-toggle:hover {
  background: var(--orange-2);
}

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

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

.site-chat-panel[hidden] {
  display: none;
}

.site-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  color: #fff;
  background: var(--navy);
}

.site-chat-head strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
}

.site-chat-head span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  line-height: 1.35;
}

.site-chat-close {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.site-chat-log {
  min-height: 112px;
  max-height: 304px;
  flex: 1 1 230px;
  overflow-y: auto;
  padding: 15px;
  background: #f7fafc;
}

.site-chat-panel.is-lead-mode .site-chat-log {
  min-height: 76px;
  flex-basis: 98px;
}

.site-chat-message {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

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

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

.site-chat-message.is-loading {
  color: var(--muted);
}

.site-chat-controls {
  display: grid;
  gap: 9px;
  flex: 0 1 auto;
  max-height: min(410px, calc(100vh - 286px));
  overflow-y: auto;
  padding: 0 15px 15px;
  background: #f7fafc;
}

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

.site-chat-input-row input,
.site-chat-lead input,
.site-chat-lead textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #cfd8e1;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
}

.site-chat-lead textarea {
  min-height: 92px;
  resize: vertical;
}

.site-chat-input-row button,
.site-chat-lead button,
.site-chat-secondary {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--blue);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.site-chat-input-row button {
  min-width: 74px;
}

.site-chat-lead button {
  padding: 0 13px;
}

.site-chat-input-row button:disabled,
.site-chat-lead button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.site-chat-actions,
.site-chat-lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.site-chat-actions a,
.site-chat-secondary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #cfd8e1;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 780;
}

.site-chat-lead {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.site-chat-lead label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.site-chat-lead input[name="url"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.site-chat-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-chat-status.is-working {
  color: var(--blue);
}

.site-chat-status.is-error {
  color: var(--orange-2);
}

.site-chat-status a {
  color: var(--orange-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-chat-note {
  padding: 0 15px 13px;
  color: var(--muted);
  background: #f7fafc;
  font-size: 0.76rem;
  line-height: 1.35;
}

.site-chat-panel.is-lead-mode .site-chat-note {
  display: none;
}

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

  .nav-links {
    position: absolute;
    inset: 70px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    background: rgba(8, 18, 29, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

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

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }

  .hero-grid,
  .section-head,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 82px;
  }

  .hero-card {
    max-width: 420px;
  }

  .grid-3,
  .grid-2,
  .stat-strip,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

  .site-chat-toggle {
    width: 52px;
    padding: 0;
  }

  .site-chat-toggle span {
    display: none;
  }
}

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

  .section,
  .section-tight {
    padding: 54px 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .payment-card dl {
    grid-template-columns: 1fr;
  }

  .site-chat-panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 84px);
    right: -2px;
    bottom: 60px;
  }

  .site-chat-log {
    min-height: 96px;
    flex-basis: 170px;
  }

  .site-chat-panel.is-lead-mode .site-chat-log {
    min-height: 64px;
    flex-basis: 78px;
  }

  .site-chat-controls {
    max-height: calc(100vh - 270px);
  }

  .site-chat-input-row {
    display: grid;
  }

  .site-chat-input-row button {
    width: 100%;
  }
}
