/* Funnel Experience Refinement
   Shared premium operational layer for the public buying path. */

:root {
  --tct-ink: #111210;
  --tct-muted: rgba(17, 18, 16, 0.68);
  --tct-faint: rgba(17, 18, 16, 0.42);
  --tct-line: rgba(17, 18, 16, 0.10);
  --tct-panel: rgba(255, 255, 255, 0.68);
  --tct-panel-strong: rgba(255, 255, 255, 0.88);
  --tct-green: #2d7352;
  --tct-green-soft: #e7f0ea;
  --tct-amber: #a97848;
  --tct-cream: #f6f4ef;
  --tct-warm: #ebe7df;
  --tct-shadow: 0 28px 90px rgba(44, 54, 46, 0.12);
}

body.funnel-page {
  --bg: #f7f5ef;
  --bg-card: rgba(255, 255, 255, 0.82);
  --bg-card-hover: #fff;
  --green: var(--tct-green);
  --green-dim: rgba(45, 115, 82, 0.10);
  --green-glow: rgba(45, 115, 82, 0.10);
  --text-1: #111210;
  --text-2: rgba(17, 18, 16, 0.66);
  --text-3: rgba(17, 18, 16, 0.42);
  --border: rgba(17, 18, 16, 0.10);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-hover: #fff;
  background:
    radial-gradient(circle at 72% 4%, rgba(45, 115, 82, 0.13), transparent 34rem),
    radial-gradient(circle at 8% 30%, rgba(169, 120, 72, 0.10), transparent 28rem),
    linear-gradient(180deg, #fbfaf7 0%, #f4f1ea 46%, #fbfaf7 100%);
  color: var(--tct-ink);
}

.funnel-page .header {
  background: rgba(250, 249, 245, 0.84);
  border-bottom-color: rgba(17, 18, 16, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.funnel-page .header-inner {
  height: 70px;
}

.funnel-page .logo {
  color: var(--tct-ink);
  font-size: 15px;
}

.funnel-page .logo-icon {
  background: var(--tct-green);
}

.funnel-page .logo span,
.funnel-page .nav a:hover,
.funnel-page .nav a.active {
  color: var(--tct-green);
}

.funnel-page .nav a {
  color: rgba(17, 18, 16, 0.58);
}

.funnel-page .btn,
.funnel-page .header-cta {
  border-radius: 999px;
  box-shadow: none;
}

.funnel-page .btn-green,
.funnel-page .btn-primary,
.funnel-page .header-cta {
  background: var(--tct-green);
  color: #fff;
}

.funnel-page .btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 18, 16, 0.12);
  color: var(--tct-ink);
}

.funnel-page .hero,
.funnel-page .hero-section {
  padding-top: 150px;
  background:
    linear-gradient(180deg, rgba(45, 115, 82, 0.06), transparent 54%),
    transparent;
}

.funnel-page .hero::before {
  opacity: 0.22;
}

.funnel-page .hero,
.funnel-page .services-hero,
.funnel-page .hero-section {
  isolation: isolate;
}

.funnel-page .section-label,
.funnel-page .hero-label,
.funnel-page .hero-badge,
.funnel-page .feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  color: var(--tct-green);
  letter-spacing: 0.12em;
  background: rgba(45, 115, 82, 0.09);
  border-color: rgba(45, 115, 82, 0.16);
  border: 1px solid rgba(45, 115, 82, 0.16);
  border-radius: 999px;
  padding: 6px 14px;
}

.funnel-page .section-title,
.funnel-page .hero-title,
.funnel-page h1 {
  letter-spacing: -0.055em;
  color: var(--tct-ink) !important;
}

.funnel-page p,
.funnel-page .hero-sub,
.funnel-page .section-desc,
.funnel-page .feature-desc,
.funnel-page .pricing-desc,
.funnel-page .pricing-feature,
.funnel-page .risk-desc,
.funnel-page .proof-note,
.funnel-page .form-card-sub,
.funnel-page .transcript-note,
.funnel-page .cta-sub {
  color: var(--tct-muted);
}

.funnel-page .pricing-grid,
.funnel-page .matrix-table,
.funnel-page .risk-grid,
.funnel-page .stats-bar,
.funnel-page .demo-form-card,
.funnel-page .feature-card,
.funnel-page .phone-mockup,
.funnel-page .transcript,
.funnel-page .cta-box {
  box-shadow: var(--tct-shadow);
}

.funnel-page .pricing-card,
.funnel-page .risk-item,
.funnel-page .stat-cell,
.funnel-page .feature-card,
.funnel-page .demo-form-card,
.funnel-page .phone-mockup,
.funnel-page .transcript,
.funnel-page .cta-box,
.funnel-page .review-card {
  background: linear-gradient(180deg, var(--tct-panel-strong), var(--tct-panel));
  border-color: var(--tct-line);
}

.funnel-page .pricing-card,
.funnel-page .feature-card,
.funnel-page .demo-form-card,
.funnel-page .cta-box,
.funnel-page .phone-mockup,
.funnel-page .transcript,
.funnel-page .review-card {
  border-radius: 22px;
}

.funnel-page .pricing-card.featured {
  background:
    linear-gradient(180deg, rgba(45, 115, 82, 0.11), rgba(255, 255, 255, 0.78));
  border-color: rgba(45, 115, 82, 0.24);
}

.funnel-page .feature-row {
  border-bottom-color: var(--tct-line);
}

.funnel-page .footer {
  background: #f7f5ef;
  border-top-color: var(--tct-line);
}

.funnel-page .footer,
.funnel-page .footer a,
.funnel-page .footer-bottom {
  color: var(--tct-muted);
}

.funnel-page .footer .logo {
  color: var(--tct-ink);
}

.funnel-page .form-label,
.funnel-page .form-card-title,
.funnel-page .pricing-name,
.funnel-page .pricing-price,
.funnel-page .risk-title,
.funnel-page .feature-heading,
.funnel-page .feature-card h3,
.funnel-page .cta-title,
.funnel-page .transcript-title,
.funnel-page .next-step-title,
.funnel-page .faq-question,
.funnel-page .cta-banner h2,
.funnel-page .float-cb-panel h4,
.funnel-page .exit-modal h3 {
  color: var(--tct-ink) !important;
}

.funnel-page .form-input,
.funnel-page .form-select,
.funnel-page .form-textarea {
  background-color: rgba(255, 255, 255, 0.86);
  border-color: rgba(17, 18, 16, 0.14);
  color: var(--tct-ink);
}

.funnel-page .form-input::placeholder,
.funnel-page .form-textarea::placeholder,
.funnel-page .float-cb-panel input::placeholder,
.funnel-page .exit-modal input::placeholder {
  color: rgba(17, 18, 16, 0.40);
}

.funnel-page .faq-answer-inner,
.funnel-page .float-cb-panel p,
.funnel-page .exit-modal p {
  color: var(--tct-muted) !important;
}

.funnel-page .float-cb-panel,
.funnel-page .exit-modal {
  background: rgba(250, 249, 245, 0.96);
  border: 1px solid var(--tct-line);
  box-shadow: var(--tct-shadow);
  color: var(--tct-ink);
}

.funnel-page .float-cb-panel input,
.funnel-page .exit-modal input {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(17, 18, 16, 0.14) !important;
  color: var(--tct-ink) !important;
}

.funnel-page .exit-close {
  color: var(--tct-ink) !important;
}

.funnel-page .form-select option {
  background: #fff;
  color: var(--tct-ink);
}

.funnel-page .hero-trust span,
.funnel-page .industry-pill,
.funnel-page .trust-item,
.funnel-page .post-demo-plan,
.funnel-page .next-step-card,
.funnel-page .proof-bar {
  background: rgba(255, 255, 255, 0.68);
  border-color: var(--tct-line);
  color: var(--tct-muted);
}

.funnel-page .btn-demo,
.funnel-page .post-demo-plan.featured,
.funnel-page .post-demo-plan:hover {
  background: var(--tct-green);
  color: #fff;
  border-color: var(--tct-green);
}

.funnel-page .btn-demo svg,
.funnel-page .post-demo-plan.featured .post-demo-plan-action,
.funnel-page .post-demo-plan:hover .post-demo-plan-action {
  color: #fff;
}

.funnel-page .post-demo-plan.featured *,
.funnel-page .post-demo-plan:hover * {
  color: #fff !important;
}

.funnel-page .post-demo-plan-action,
.funnel-page .post-demo-plan-kicker,
.funnel-page .matrix-check,
.funnel-page .pricing-badge,
.funnel-page .proof-val,
.funnel-page .call-cta-number {
  color: var(--tct-green);
}

.funnel-page .phone-screen,
.funnel-page .transcript-bubble {
  background: #fff;
  color: var(--tct-ink);
}

.funnel-page .call-status,
.funnel-page .transcript-name.gideon {
  color: var(--tct-green);
}

.funnel-page .mobile-nav {
  background: rgba(250, 249, 245, 0.98);
}

.funnel-page .mobile-nav a,
.funnel-page .menu-toggle span {
  color: var(--tct-ink);
}

.funnel-page .menu-toggle span {
  background: var(--tct-ink);
}

.funnel-transition {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.funnel-transition-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
  border: 1px solid var(--tct-line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.54)),
    #f8f6f0;
  overflow: hidden;
  box-shadow: var(--tct-shadow);
}

.funnel-transition-copy {
  padding: 36px;
}

.funnel-kicker {
  color: var(--tct-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.funnel-transition-copy h2 {
  margin: 0 0 12px;
  color: var(--tct-ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.funnel-transition-copy p {
  margin: 0;
  color: var(--tct-muted);
  font-size: 15px;
  line-height: 1.7;
}

.funnel-frame {
  min-height: 280px;
  position: relative;
  background: #e8e4dc;
  overflow: hidden;
}

.funnel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.86;
}

.funnel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(17, 18, 16, 0.36));
}

.plan-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-visual {
  min-height: 320px;
  border: 1px solid var(--tct-line);
  border-radius: 24px;
  overflow: hidden;
  background: #ebe7df;
  position: relative;
  box-shadow: var(--tct-shadow);
}

.plan-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.80)),
    radial-gradient(circle at 70% 10%, rgba(19, 209, 142, 0.20), transparent 42%);
  z-index: 1;
}

.plan-visual-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

.plan-visual-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.plan-visual-content h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  letter-spacing: -0.035em;
}

.plan-visual-content p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.plan-visual-tag {
  display: inline-flex;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(17, 18, 16, 0.38);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.higgsfield-note {
  max-width: 920px;
  margin: 18px auto 0;
  color: var(--tct-faint);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 820px) {
  .funnel-transition-card,
  .plan-visual-grid {
    grid-template-columns: 1fr;
  }

  .funnel-frame {
    min-height: 220px;
  }
}

@media (max-width: 640px) {
  html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.funnel-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .funnel-page *,
  .funnel-page *::before,
  .funnel-page *::after {
    min-width: 0;
  }

  .funnel-page .header,
  .funnel-page .header-inner,
  .funnel-page .hero,
  .funnel-page .hero-section,
  .funnel-page .services-hero,
  .funnel-page .section,
  .funnel-page .wrap,
  .funnel-page .footer,
  .funnel-page .footer-inner,
  .funnel-page .footer-bottom,
  .funnel-page .demo-form-card,
  .funnel-page .feature-card,
  .funnel-page .review-card,
  .funnel-page .cta-banner,
  .funnel-page .cta-box,
  .funnel-page .stats-bar,
  .funnel-page .pricing-grid,
  .funnel-page .pricing-card,
  .funnel-page .risk-grid,
  .funnel-page .risk-item,
  .funnel-page .compare-table,
  .funnel-page .industry-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .funnel-page .wrap,
  .funnel-page .header-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .funnel-page .hero,
  .funnel-page .hero-section,
  .funnel-page .services-hero {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .funnel-page h1,
  .funnel-page .hero-title,
  .funnel-page .section-title,
  .funnel-page .cta-banner h2 {
    max-width: min(340px, calc(100vw - 32px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: normal;
  }

  .funnel-page p,
  .funnel-page .hero-sub,
  .funnel-page .section-desc,
  .funnel-page .feature-desc,
  .funnel-page .pricing-desc,
  .funnel-page .risk-desc,
  .funnel-page .form-card-sub,
  .funnel-page .cta-sub,
  .funnel-page .faq-answer-inner {
    max-width: calc(100vw - 32px) !important;
    overflow-wrap: anywhere;
  }

  .funnel-page .btn,
  .funnel-page .btn-lg,
  .funnel-page .header-cta,
  .funnel-page .callback-btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .pricing-page .header,
  .pricing-page .header-inner,
  .pricing-page .hero,
  .pricing-page .section,
  .pricing-page .wrap,
  .pricing-page .pricing-grid,
  .pricing-page .pricing-card,
  .pricing-page .funnel-transition,
  .pricing-page .plan-visual-grid,
  .pricing-page .plan-visual,
  .pricing-page .footer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .pricing-page .header-inner {
    grid-template-columns: auto auto !important;
    justify-content: space-between;
    column-gap: 12px !important;
    padding-left: 22px !important;
    padding-right: 22px !important;
  }

  .pricing-page .logo {
    white-space: nowrap;
  }

  .pricing-page .wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .funnel-transition {
    padding: 0 14px 50px;
    width: 100%;
    max-width: 100%;
  }

  .funnel-transition-copy {
    padding: 24px;
  }

  .pricing-page .hero {
    padding-top: 118px;
  }

  .pricing-page .hero h1 {
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
    font-size: 32px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em !important;
    overflow-wrap: normal;
  }

  .pricing-page .hero p {
    max-width: 330px !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  .plan-visual-grid {
    width: 100%;
    max-width: 100%;
  }

  .plan-visual {
    min-height: 270px;
    width: 100%;
  }

  .plan-visual-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .plan-visual-content h3 {
    font-size: 17px;
    line-height: 1.22;
    overflow-wrap: normal;
  }

  .plan-visual-content p {
    font-size: 13px;
  }

  .plan-visual-tag {
    max-width: 100%;
    white-space: normal;
  }
}
