:root {
  --bg: #0d0d0d;
  --bg-alt: #121212;
  --bg-card: #171717;
  --text: #ffffff;
  --text-muted: #9a9a9a;
  --accent: #ff6b00;
  --accent-hover: #ff8c33;
  --border: #262626;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

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

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  transition: 0.2s ease;
}

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

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

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #444;
  background: var(--bg-card);
}

.btn-ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover {
  color: #fff;
  background: var(--accent);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 107, 0, 0.16), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
  text-align: center;
}

.hero-label {
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.15;
  margin: 1rem 0;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.7rem;
}

.hero-chat-link {
  margin: 1rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-chat-link a {
  color: var(--accent);
  text-decoration: underline;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-anim {
  opacity: 0;
  animation: heroFadeIn 0.75s ease forwards;
}

.hero-anim-1 { animation-delay: 0s; }
.hero-anim-2 { animation-delay: 0.12s; }
.hero-anim-3 { animation-delay: 0.24s; }
.hero-anim-4 { animation-delay: 0.36s; }
.hero-anim-5 { animation-delay: 0.48s; }

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  margin: 0;
}

.section-lead {
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Force side-by-side cost breakdown */
.cost-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cost-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  border-color: #333;
}

.cost-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.card-sub {
  color: var(--text-muted);
  margin: 0.5rem 0 1.1rem;
  font-size: 0.9rem;
}

.line-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.line-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.line-items strong {
  color: #fff;
  white-space: nowrap;
}

.total {
  margin: 1rem 0 0.25rem;
  font-weight: 700;
  font-size: 1.35rem;
}

.total-bad {
  color: #ff6c6c;
}

.total-good {
  color: var(--accent);
}

.card-note {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.cost-card-featured {
  border-color: rgba(255, 107, 0, 0.5);
  box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.15), 0 16px 30px rgba(0, 0, 0, 0.35);
}

.badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.savings {
  margin-top: 0.7rem;
  color: #9ad08a;
}

.calc-wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.4rem;
}

.calc-card,
.calc-copy {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.calc-card:hover,
.calc-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.calc-card h3,
.calc-copy h3 {
  margin-top: 0;
}

.gtm-audit-card p {
  color: var(--text-muted);
}

.gtm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}

.gtm-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.gtm-form-grid select {
  width: 100%;
  background: #101010;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
}

.gtm-form-grid select:focus {
  outline: none;
  border-color: var(--accent);
}

.gtm-results {
  margin-top: 1rem;
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
}

.gtm-score-main {
  margin: 0;
  font-weight: 700;
}

.gtm-score-main span {
  color: var(--accent);
}

.gtm-score-grid {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.gtm-score-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gtm-score-grid span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.gtm-projections {
  margin-top: 0.8rem;
  border-top: 1px solid var(--border);
  padding-top: 0.7rem;
}

.gtm-projections p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.gtm-recommendations {
  margin-top: 0.7rem;
}

.gtm-recommendations p {
  margin: 0.15rem 0 0.3rem;
  color: var(--text);
}

.gtm-recommendations ul {
  margin: 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.gtm-recommendations li {
  margin-bottom: 0.35rem;
}

.calc-chip {
  display: inline-block;
  color: #1a2f1d;
  background: #9ad08a;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.calc-block {
  margin-top: 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.9rem;
}

.calc-block-bad {
  background: rgba(255, 80, 80, 0.08);
  border-color: rgba(255, 80, 80, 0.25);
}

.calc-block-good {
  background: rgba(255, 107, 0, 0.08);
  border-color: rgba(255, 107, 0, 0.35);
}

.calc-title {
  margin: 0;
  font-weight: 700;
}

.calc-price {
  margin: 0.2rem 0 0.55rem;
  color: var(--text-muted);
}

.calc-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.calc-total {
  margin: 0.8rem 0 0;
  font-weight: 700;
}

.faq-wrap {
  max-width: 760px;
}

.faq-list article {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: transform 0.2s ease;
}

.faq-list article:hover {
  transform: translateX(2px);
}

.faq-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
}

.faq-list p {
  margin: 0;
  color: var(--text-muted);
}

.section-cta {
  background: linear-gradient(180deg, var(--bg-alt), #0a0a0a);
}

.cta-inner {
  text-align: center;
  max-width: 900px;
}

.cta-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0;
}

.cta-inner p {
  color: var(--text-muted);
  margin: 0.8rem 0 1.3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.calendly-inline-widget {
  border-radius: 12px;
  overflow: hidden;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0 2rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.chat-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 80;
}

.chat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.chat-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(430px, 100vw);
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.chat-panel.is-open {
  transform: translateX(0);
}

/* ----- Lead Gate Modal ----- */
.lead-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lead-gate-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.lead-gate-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.97);
  width: min(460px, calc(100vw - 2rem));
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem;
  z-index: 96;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.lead-gate-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.lead-gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 1.45rem;
  cursor: pointer;
}

.lead-gate-modal h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.lead-gate-copy {
  margin: 0 0 0.9rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.lead-gate-modal label {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.lead-gate-modal input,
.lead-gate-modal select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #111;
  color: var(--text);
  padding: 0.58rem 0.7rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.lead-gate-modal input:focus,
.lead-gate-modal select:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-phone-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem;
}

.lead-gate-error {
  min-height: 1.1rem;
  margin: 0 0 0.7rem;
  color: #ff7b7b;
  font-size: 0.82rem;
}

.lead-gate-modal .btn {
  width: 100%;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.chat-header button {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-msg {
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-msg-bot {
  background: #151515;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chat-msg-user {
  align-self: flex-end;
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.35);
}

.chat-input-row {
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.chat-input-row textarea {
  flex: 1;
  resize: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111;
  color: var(--text);
  font-family: var(--font-sans);
  padding: 0.6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-children > *:nth-child(1) { transition-delay: 0s; }
.reveal-children > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-children > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-children > *:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 1000px) {
  .calc-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .cost-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .gtm-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .cost-card:hover,
  .calc-card:hover,
  .calc-copy:hover,
  .faq-list article:hover {
    transform: none;
  }
}
