:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: rgba(17, 24, 39, 0.14);
  --paper: #ffffff;
  --soft: #f6f8fb;
  --navy: #111c3d;
  --blue: #2563eb;
  --green: #12a879;
  --gold: #e5a72b;
  --red: #c2413b;
  --shadow: 0 18px 50px rgba(16, 24, 40, 0.13);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

body.roofing {
  --brand: #1f4ed8;
  --brand-2: #13a071;
  --accent: #e2a32c;
  --deep: #101a36;
  --wash: #eef5ff;
}

body.cleaning {
  --brand: #0f8e83;
  --brand-2: #3c7ff0;
  --accent: #9bd24d;
  --deep: #102a33;
  --wash: #f0fbf8;
}

body.medspa {
  --brand: #8b5cf6;
  --brand-2: #0ea5a8;
  --accent: #e4b45f;
  --deep: #24193c;
  --wash: #faf7ff;
}

body.restaurant {
  --brand: #c9472f;
  --brand-2: #167a64;
  --accent: #f3b53f;
  --deep: #291719;
  --wash: #fff7ed;
}

body.detailing {
  --brand: #2457d6;
  --brand-2: #18a5a9;
  --accent: #e4b73f;
  --deep: #111827;
  --wash: #eef7ff;
}

body.fitness {
  --brand: #2563eb;
  --brand-2: #16a34a;
  --accent: #f0b429;
  --deep: #121827;
  --wash: #f2f8ff;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: hidden;
}

.funnel-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--deep);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(140deg, var(--brand), var(--brand-2)),
    var(--brand);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
}

.brand-mark svg {
  width: 25px;
  height: 25px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #29324a;
}

.nav-links a {
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: var(--radius);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, white);
}

.funnel-hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  padding: 72px 0 46px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 42%, rgba(255, 255, 255, 0.22) 100%),
    radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--accent) 36%, transparent), transparent 30%),
    radial-gradient(circle at 78% 86%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 28%),
    linear-gradient(135deg, var(--wash), #ffffff 45%, color-mix(in srgb, var(--brand) 15%, #ffffff));
}

.funnel-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #fff);
  z-index: -1;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 18px 0 18px;
  color: var(--deep);
  font-size: clamp(2.35rem, 6vw, 5.3rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #3d4860;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, var(--brand-2)));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 24%, transparent);
}

.button-secondary {
  color: var(--deep);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-top: 32px;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.metric strong {
  display: block;
  color: var(--deep);
  font-size: 1.35rem;
  line-height: 1.1;
}

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

.lead-panel,
.order-panel {
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head strong {
  color: var(--deep);
  font-size: 1.1rem;
}

.status-pill {
  align-self: start;
  padding: 5px 9px;
  border-radius: var(--radius);
  color: var(--deep);
  background: color-mix(in srgb, var(--accent) 30%, white);
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form,
.order-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #30384b;
  font-size: 0.8rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.form-message,
.quote-output,
.cart-output {
  margin: 0;
  min-height: 24px;
  color: var(--brand);
  font-weight: 800;
}

.proof-strip {
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: #fff;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #344054;
  font-weight: 800;
  background: #fff;
}

.proof-item svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--brand);
}

.section {
  padding: 76px 0;
}

.surface {
  background: var(--soft);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading h2 {
  color: var(--deep);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card,
.step-card,
.package-card,
.faq-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.service-card {
  padding: 20px;
}

.service-card .icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.service-card h3,
.step-card h3,
.package-card h3,
.faq-card h3 {
  margin: 16px 0 8px;
  color: var(--deep);
  line-height: 1.15;
}

.service-card p,
.step-card p,
.package-card p,
.faq-card p {
  margin: 0;
  color: var(--muted);
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.visual-board {
  min-height: 420px;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--brand) 18%, #ffffff), #ffffff 46%),
    #fff;
  box-shadow: var(--shadow);
}

.visual-board::before,
.visual-board::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-2) 22%, transparent);
}

.visual-board::before {
  width: 270px;
  height: 270px;
  right: -70px;
  top: -70px;
}

.visual-board::after {
  width: 180px;
  height: 180px;
  left: -48px;
  bottom: -48px;
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.scene-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.14);
  padding: 16px;
}

.scene-card strong {
  display: block;
  color: var(--deep);
}

.scene-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.scene-main {
  width: 62%;
  min-height: 170px;
  left: 8%;
  top: 12%;
}

.scene-side {
  width: 46%;
  right: 7%;
  bottom: 12%;
}

.scene-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.chip-a {
  left: 12%;
  bottom: 26%;
}

.chip-b {
  right: 12%;
  top: 28%;
  background: var(--brand);
}

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

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

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand);
  font-weight: 950;
}

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

.package-card {
  padding: 22px;
}

.package-card.featured {
  border-color: color-mix(in srgb, var(--accent) 66%, var(--line));
  box-shadow: var(--shadow);
}

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

.package-card ul,
.mini-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: #344054;
}

.package-card li,
.mini-list li {
  position: relative;
  padding-left: 20px;
}

.package-card li::before,
.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}

.cta-band {
  color: #fff;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--deep) 88%, var(--brand)), var(--deep)),
    var(--deep);
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.76);
}

.cta-band .button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  padding: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer strong {
  color: var(--deep);
}

.demo-note {
  max-width: 620px;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.order-item strong {
  display: block;
  color: var(--deep);
}

.order-item span {
  color: var(--muted);
  font-size: 0.85rem;
}

.mini-button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero-grid,
  .visual-band {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .proof-grid,
  .card-grid,
  .package-grid,
  .faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funnel-hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .nav-inner,
  .container {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: clamp(2.15rem, 14vw, 3.4rem);
  }

  .hero-metrics,
  .proof-grid,
  .card-grid,
  .package-grid,
  .faq-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .lead-panel,
  .order-panel,
  .visual-board,
  .service-card,
  .package-card,
  .faq-card {
    border-radius: var(--radius);
  }

  .visual-board {
    min-height: 360px;
  }

  .scene-main,
  .scene-side {
    width: 78%;
  }

  .scene-side {
    right: 6%;
  }

  .section {
    padding: 58px 0;
  }
}

/* ClickFunnels UI Upgrades */

.cf-panel {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cf-progress {
  height: 8px;
  background: var(--line);
  width: 100%;
}

.cf-progress-bar {
  height: 100%;
  background: var(--brand-2);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cf-form {
  position: relative;
}

.cf-step {
  display: none;
  animation: fade-in 0.4s ease;
}

.cf-step[data-active="true"] {
  display: block;
}

.cf-step-title {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  color: var(--deep);
  text-align: center;
}

.step-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 24px;
}

.cf-processing, .cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 10px;
  animation: fade-in 0.4s ease;
}

.cf-processing .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

.cf-success svg {
  width: 56px;
  height: 56px;
  color: var(--brand-2);
  margin-bottom: 16px;
}

.cf-success h3 {
  margin: 0 0 8px 0;
  color: var(--deep);
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cf-sticky-cta {
  display: none;
}

@media (max-width: 620px) {
  .cf-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    z-index: 50;
    justify-content: center;
  }
  
  .cf-sticky-cta .button {
    width: 100%;
    max-width: 400px;
  }

  body {
    padding-bottom: 80px;
  }
}
