:root {
  --black: #050607;
  --charcoal: #131816;
  --green: #087a3d;
  --green-deep: #035c2d;
  --gold: #f6c445;
  --gold-ink: #8a5d00;
  --gold-soft: #ffe08a;
  --white: #ffffff;
  --mist: #f5f7f3;
  --line: rgba(5, 6, 7, 0.12);
  --shadow: 0 24px 70px rgba(5, 6, 7, 0.18);
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: var(--mist);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(246, 196, 69, 0.18), transparent 24rem),
    linear-gradient(225deg, rgba(8, 122, 61, 0.14), transparent 30rem),
    var(--mist);
}

a {
  color: inherit;
}

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

.topline {
  height: 10px;
  background:
    linear-gradient(135deg, transparent 0 24%, var(--gold) 24% 31%, var(--green) 31% 38%, transparent 38%),
    linear-gradient(45deg, var(--green) 0 11%, var(--gold) 11% 18%, var(--black) 18% 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 6, 7, 0.88);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
}

.brand-mark {
  width: 58px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  background: var(--green-deep);
  color: var(--white);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
}

.brand span:last-child {
  display: block;
  max-width: 170px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.nav-links a,
.mega-menu summary {
  padding: 10px 11px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.mega-menu summary:hover {
  color: var(--gold-soft);
}

.mega-menu {
  position: relative;
}

.mega-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.mega-menu summary::-webkit-details-marker {
  display: none;
}

.mega-menu summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mega-menu[open] summary {
  color: var(--gold-soft);
  border-color: rgba(246, 196, 69, 0.38);
  background: rgba(246, 196, 69, 0.1);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(940px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid rgba(246, 196, 69, 0.24);
  background: rgba(246, 196, 69, 0.28);
  box-shadow: 0 28px 70px rgba(5, 6, 7, 0.34);
  z-index: 40;
}

.mega-column {
  min-height: 285px;
  padding: 18px;
  background: rgba(5, 6, 7, 0.96);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mega-column strong {
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.mega-column a {
  min-height: 34px;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}

.mega-column a:hover {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.mega-column a.sub-link {
  min-height: 30px;
  margin-top: -4px;
  margin-left: 14px;
  padding-left: 10px;
  border-left: 3px solid var(--gold);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  box-shadow: 0 14px 34px rgba(246, 196, 69, 0.26);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.hero {
  min-height: calc(100vh - 82px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.95) 0%, rgba(5, 6, 7, 0.74) 44%, rgba(5, 6, 7, 0.22) 100%),
    url("../img/client-flow-hero.png") center right / cover no-repeat;
  display: grid;
  align-items: end;
}

.hero-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 24px 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.hero .eyebrow,
.entry-hero .eyebrow,
.dark .eyebrow,
.green .eyebrow,
.cta-band .eyebrow {
  color: var(--gold-soft);
}

.gold .eyebrow {
  color: var(--black);
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 5px;
  background: var(--green);
  border-right: 18px solid var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 900px;
  margin-top: 18px;
  font-size: clamp(2.65rem, 5vw, 4.45rem);
}

.hero-copy {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.hero-strip a {
  min-height: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-strip strong {
  font-size: 0.98rem;
}

.hero-strip span {
  color: rgba(5, 6, 7, 0.62);
  font-size: 0.86rem;
  line-height: 1.35;
}

.section {
  padding: 86px 24px;
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.section.green {
  background: var(--green-deep);
  color: var(--white);
}

.section.gold {
  background: var(--gold);
  color: var(--black);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head h2 {
  font-size: clamp(2.15rem, 4.2vw, 4.4rem);
}

.section-head p,
.lead {
  color: rgba(5, 6, 7, 0.68);
  font-size: 1.1rem;
  line-height: 1.65;
}

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

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

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

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

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

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

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

.card,
.offer,
.platform,
.step,
.proof {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  box-shadow: 0 18px 42px rgba(5, 6, 7, 0.08);
}

.dark .card,
.dark .offer,
.dark .platform,
.dark .step,
.dark .proof,
.green .proof,
.green .card {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.card h3,
.offer h3,
.platform h3,
.step h3,
.proof h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p,
.offer p,
.platform p,
.step p,
.proof p,
.card li,
.offer li,
.platform li {
  color: rgba(5, 6, 7, 0.66);
  line-height: 1.55;
}

.dark .card p,
.dark .offer p,
.dark .platform p,
.dark .step p,
.dark .proof p,
.dark .card li,
.dark .offer li,
.dark .platform li,
.green .card p,
.green .proof p {
  color: rgba(255, 255, 255, 0.72);
}

.green .proof h3 {
  color: var(--white);
}

.card ul,
.offer ul,
.platform ul {
  padding-left: 20px;
  margin: 16px 0 0;
}

.accent {
  width: 72px;
  height: 7px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.brand-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.brand-map {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
}

.brand-row a {
  color: var(--green-deep);
  font-weight: 900;
  text-decoration: none;
}

.brand-row a:hover {
  color: var(--black);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.dark .brand-row a,
.green .brand-row a {
  color: var(--gold-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(5, 6, 7, 0.16);
  background: rgba(255, 255, 255, 0.52);
  color: var(--black);
  font-weight: 800;
  font-size: 0.78rem;
}

button.tag {
  cursor: pointer;
  font: inherit;
}

.tag.is-active,
button.tag:hover,
button.tag:focus-visible {
  border-color: var(--green-deep);
  background: var(--green-deep);
  color: var(--white);
  outline: none;
}

.dark .tag,
.green .tag {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.fix-it-link-section {
  padding-top: 46px;
  padding-bottom: 46px;
}

.niche-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

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

.niche-link {
  min-height: 86px;
  padding: 16px;
  color: var(--white);
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(5, 6, 7, 0.12);
  box-shadow: 0 16px 36px rgba(5, 6, 7, 0.12);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.niche-grid.compact .niche-link {
  min-height: 96px;
}

.niche-link:hover {
  color: var(--white);
  transform: translateY(-2px);
}

.niche-link strong {
  font-size: clamp(0.95rem, 1.3vw, 1.16rem);
  line-height: 1.12;
}

.tile-dentists {
  background: #035c2d;
}

.tile-chiro {
  background: #0f766e;
}

.tile-pt {
  background: #2563eb;
}

.tile-vet {
  background: #7c3aed;
}

.tile-medspa {
  background: #be185d;
}

.tile-derm {
  background: #b45309;
}

.tile-weight {
  background: #334155;
}

.tile-dentists:hover,
.tile-chiro:hover,
.tile-pt:hover,
.tile-vet:hover,
.tile-medspa:hover,
.tile-derm:hover,
.tile-weight:hover {
  background: var(--black);
}

.resource-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(5, 6, 7, 0.12);
  background: rgba(5, 6, 7, 0.12);
}

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

.resource-link {
  min-height: 184px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.resource-link.featured {
  background: var(--gold);
}

.resource-link:hover {
  background: var(--green-deep);
  color: var(--white);
  transform: translateY(-2px);
}

.resource-link small {
  color: var(--gold-ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.resource-link strong {
  font-size: 1.25rem;
  line-height: 1.12;
}

.resource-link span {
  color: rgba(5, 6, 7, 0.64);
  line-height: 1.48;
}

.resource-link:hover small,
.resource-link:hover span {
  color: rgba(255, 255, 255, 0.78);
}

.dark .resource-board {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}

.dark .resource-link {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.dark .resource-link small {
  color: var(--gold-soft);
}

.dark .resource-link span {
  color: rgba(255, 255, 255, 0.72);
}

.resource-preview {
  display: grid;
  gap: 1px;
  background: rgba(5, 6, 7, 0.22);
  border: 1px solid rgba(5, 6, 7, 0.18);
}

.resource-preview a {
  min-height: 150px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.62);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}

.resource-preview a:hover {
  background: rgba(255, 255, 255, 0.82);
  transform: translateY(-1px);
}

.resource-preview strong {
  font-size: 1.35rem;
}

.resource-preview span {
  color: rgba(5, 6, 7, 0.68);
  line-height: 1.45;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-selector {
  display: grid;
  gap: 18px;
}

.platform-detail {
  max-width: 850px;
  border: 1px solid rgba(5, 6, 7, 0.12);
  background: rgba(255, 255, 255, 0.82);
  padding: 26px;
  box-shadow: 0 18px 42px rgba(5, 6, 7, 0.08);
}

.platform-detail h3 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.platform-detail p,
.platform-detail li {
  color: rgba(5, 6, 7, 0.68);
  line-height: 1.58;
}

.platform-detail ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 54px;
  align-items: center;
}

.flag-panel {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  background: var(--black);
  box-shadow: var(--shadow);
}

.flag-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(246, 196, 69, 0.34);
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.12), rgba(5, 6, 7, 0)),
    url("../img/client-flow-hero.png") center / cover no-repeat;
  filter: contrast(1.12) saturate(1.08) brightness(1.02);
}

.flag-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.entry-hero {
  min-height: 64vh;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.94), rgba(5, 6, 7, 0.64)),
    url("../img/client-flow-hero.png") center / cover no-repeat;
  color: var(--white);
  display: grid;
  align-items: end;
}

.entry-hero .hero-inner {
  padding-bottom: 74px;
}

.page-note {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--gold);
  font-weight: 800;
  line-height: 1.4;
}

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(8, 122, 61, 0.35), transparent 32rem),
    var(--black);
  color: var(--white);
}

.cta-band::before {
  content: none;
}

.cta-band .section-inner {
  position: relative;
}

.footer {
  padding: 36px 24px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--gold-soft);
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav-links {
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .mega-menu {
    position: static;
  }

  .mega-panel {
    position: static;
    width: min(100%, 720px);
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 48px;
  }

  .hero-strip,
  .grid.six,
  .grid.five,
  .grid.four,
  .grid.three,
  .resource-board,
  .resource-board.two-column,
  .niche-grid,
  .niche-grid.compact,
  .brand-grid,
  .split {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .nav {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 52px;
    height: 38px;
    font-size: 0.76rem;
  }

  .brand span:last-child {
    max-width: none;
    font-size: 1.02rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .nav-links a,
  .mega-menu summary {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
  }

  .mega-menu {
    grid-column: span 1;
  }

  .mega-menu[open] {
    grid-column: 1 / -1;
  }

  .mega-panel {
    position: fixed;
    top: 176px;
    left: 14px;
    right: 14px;
    width: auto;
    margin-top: 0;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 196px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-color: rgba(246, 196, 69, 0.34);
    box-shadow: 0 22px 58px rgba(5, 6, 7, 0.38);
  }

  .mega-column {
    min-height: auto;
    padding: 14px;
  }

  .mega-column a {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 8px 0;
    border: 0;
    background: transparent;
    justify-content: flex-start;
  }

  .mega-column strong {
    margin-top: 2px;
  }

  h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 62px 18px;
  }

  .hero-inner,
  .entry-hero .hero-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-strip {
    padding-left: 18px;
    padding-right: 18px;
  }
}
