:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5c6963;
  --paper: #f7f4ed;
  --surface: #ffffff;
  --line: rgba(23, 32, 28, 0.14);
  --green: #0d6b45;
  --green-dark: #083d2d;
  --gold: #c49a32;
  --coral: #ce6f4d;
  --blue: #2f6f80;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
}

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

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

button {
  color: inherit;
}

.fix-header {
  position: fixed;
  z-index: 20;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100% - 28px));
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(11, 28, 21, 0.78);
  color: #ffffff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(6, 18, 13, 0.25);
}

.fix-brand {
  display: inline-flex;
  align-items: center;
}

.fix-brand img {
  width: 132px;
  height: auto;
  display: block;
}

.fix-header nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.93rem;
}

.fix-header nav a,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
}

.fix-header nav a:hover,
.header-cta {
  background: rgba(255, 255, 255, 0.12);
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, 0.32);
  font-weight: 800;
  cursor: pointer;
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 118px 24px 72px;
  color: #ffffff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background: var(--hero-image, url("/assets/img/fix-it-dentist-hero.png")) center / cover no-repeat;
  transform: scale(1.01);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 23, 16, 0.96) 0%, rgba(5, 23, 16, 0.78) 38%, rgba(5, 23, 16, 0.18) 74%),
    linear-gradient(0deg, rgba(5, 23, 16, 0.55), rgba(5, 23, 16, 0.08) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

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

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.hero-actions,
.care-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-cta,
.secondary-cta,
.offer-card a,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.primary-cta {
  background: var(--gold);
  color: #162018;
  box-shadow: 0 16px 36px rgba(196, 154, 50, 0.28);
}

.secondary-cta {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 34px 0 0;
}

.hero-proof div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.hero-proof dt,
.hero-proof dd {
  margin: 0;
}

.hero-proof dt {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-proof dd {
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 900;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(var(--max), calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(13, 43, 31, 0.18);
}

.signal-strip article {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.signal-strip article:last-child {
  border-right: 0;
}

.signal-strip span {
  color: var(--coral);
  font-weight: 900;
}

.signal-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.signal-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section,
.workflow-section,
.start-section,
.proof-band {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 94px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

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

.section-heading h2,
.workflow-copy h2,
.proof-band h2,
.start-copy h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p,
.workflow-copy p,
.proof-band p,
.start-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.offer-card,
.niche-grid article,
.timeline article,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.offer-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
}

.offer-card.highlighted {
  border-color: rgba(13, 107, 69, 0.42);
  box-shadow: inset 0 5px 0 var(--green);
}

.offer-card small {
  color: var(--coral);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.offer-card h3 {
  margin: 14px 0 0;
  color: var(--green-dark);
  font-size: 1.55rem;
}

.price {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 2.35rem;
  font-weight: 950;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
}

.offer-card ul {
  display: grid;
  gap: 10px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  line-height: 1.45;
}

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

.offer-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
}

.offer-card a,
.checkout-button {
  margin-top: auto;
  background: var(--green-dark);
  color: #ffffff;
}

.checkout-button:disabled,
.primary-cta:disabled {
  cursor: wait;
  opacity: 0.72;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: start;
  padding: 100px 0;
}

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

.timeline article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.timeline b {
  color: var(--green);
  font-size: 1.08rem;
}

.timeline span {
  color: var(--muted);
  line-height: 1.55;
}

.niches-section {
  padding-top: 0;
}

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

.niche-grid article {
  padding: 20px;
}

.niche-grid h3 {
  margin: 0;
  color: var(--green-dark);
}

.niche-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.proof-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.6fr);
  gap: 34px;
  align-items: center;
  margin-top: 90px;
  padding: 38px;
  border-radius: 8px;
  background: var(--green-dark);
  color: #ffffff;
}

.proof-band h2 {
  color: #ffffff;
}

.proof-band p {
  color: rgba(255, 255, 255, 0.76);
  margin: 0;
}

.start-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 38px;
  align-items: start;
  padding: 96px 0;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(13, 43, 31, 0.12);
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fbfaf5;
}

.lead-form textarea {
  resize: vertical;
}

.lead-form .primary-cta {
  width: 100%;
}

.form-call {
  width: 100%;
  color: var(--green-dark);
  border-color: var(--line);
  background: transparent;
}

.checkout-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.checkout-status[data-state="error"] {
  color: #a13d2d;
  font-weight: 800;
}

.checkout-status[data-state="working"] {
  color: var(--green-dark);
  font-weight: 800;
}

.fix-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px 20px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.fix-footer span {
  color: var(--green-dark);
  font-weight: 900;
}

.fix-voice-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
  max-width: min(390px, calc(100vw - 28px));
}

.fix-voice-bubble {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(6, 28, 19, 0.26);
  cursor: pointer;
  font-weight: 900;
}

.fix-voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #39d986;
  box-shadow: 0 0 0 6px rgba(57, 217, 134, 0.18);
}

.fix-voice-panel {
  position: relative;
  width: 100%;
  padding: 24px;
  border: 1px solid rgba(23, 32, 28, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 80px rgba(6, 28, 19, 0.24);
}

.fix-voice-panel[hidden] {
  display: none;
}

.fix-voice-panel h2 {
  margin: 0;
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1.04;
}

.fix-voice-panel p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.fix-voice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfaf5;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.fix-voice-status {
  min-height: 24px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f3f6f1;
  font-weight: 800;
}

.fix-voice-status[data-state="error"] {
  color: #a13d2d;
  background: #fff0eb;
}

.fix-voice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.fix-voice-actions .secondary-cta {
  color: var(--green-dark);
  border-color: var(--line);
  background: transparent;
}

.fix-voice-actions button:disabled {
  cursor: wait;
  opacity: 0.56;
}

.fix-voice-phone {
  display: inline-flex;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 900;
}

@media (max-width: 920px) {
  .fix-header {
    grid-template-columns: auto auto;
    border-radius: 18px;
  }

  .fix-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding-top: 170px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(5, 23, 16, 0.96), rgba(5, 23, 16, 0.68));
  }

  .hero-proof,
  .signal-strip,
  .offer-grid,
  .workflow-section,
  .niche-grid,
  .proof-band,
  .start-section {
    grid-template-columns: 1fr;
  }

  .workflow-section {
    padding: 78px 0;
  }

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

  .fix-voice-widget {
    right: 14px;
    bottom: 14px;
  }

  .fix-voice-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .fix-header {
    width: calc(100% - 20px);
    top: 10px;
    gap: 10px;
  }

  .fix-brand img {
    width: 112px;
  }

  .fix-header nav {
    font-size: 0.85rem;
  }

  .header-cta {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .hero {
    padding: 164px 18px 54px;
  }

  .hero h1 {
    max-width: 13.4ch;
    font-size: clamp(1.9rem, 8.8vw, 2.15rem);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  .hero p {
    max-width: 31ch;
  }

  .section,
  .workflow-section,
  .start-section {
    width: calc(100% - 28px);
  }

  .signal-strip {
    width: calc(100% - 28px);
    margin-top: -20px;
  }

  .signal-strip article,
  .offer-card,
  .niche-grid article,
  .timeline article,
  .lead-form {
    min-width: 0;
  }

  .signal-strip p,
  .offer-card li,
  .niche-grid p,
  .timeline span {
    max-width: 31ch;
    overflow-wrap: break-word;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proof-band {
    width: calc(100% - 28px);
    padding: 26px;
  }
}
