/* Homepage visual polish — B2B SaaS, brand orange as accent only */
.home-ia {
  --home-pad-y: clamp(3rem, 5.5vw, 5.5rem);
  --home-pad-y-compact: clamp(1.75rem, 3vw, 2.5rem);
  --home-card-radius: 14px;
  --home-card-border: 1px solid rgba(16, 24, 40, 0.08);
  --home-card-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  --home-card-shadow-hover: 0 14px 32px rgba(16, 24, 40, 0.08);
  --home-surface: #fff;
  --home-muted: #5b6575;
  --home-ink: #121826;
  --home-frame-bg: #f4f6f9;
  --home-frame-ink: #2a3444;
  color: var(--home-ink);
}

.home-ia .home-section {
  padding: var(--home-pad-y) 0;
}

.home-ia .home-section.is-compact {
  padding: var(--home-pad-y-compact) 0;
}

.home-ia .home-section.alt {
  background: #fafbfc;
}

.home-ia .section-head {
  margin-bottom: 1.5rem;
}

.home-ia .section-head.tight {
  margin-bottom: 1rem;
}

.home-ia .section-head .title {
  max-width: 40rem;
  color: var(--home-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-ia .section-head.text-center .title {
  margin-left: auto;
  margin-right: auto;
}

.home-ia .section-head .text {
  color: var(--home-muted);
  margin: 0.4rem auto 0;
  max-width: 36rem;
}

/* Shared card language */
.home-ia .home-card {
  height: 100%;
  background: var(--home-surface);
  border: var(--home-card-border);
  border-radius: var(--home-card-radius);
  box-shadow: var(--home-card-shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-ia .home-card:hover {
  box-shadow: var(--home-card-shadow-hover);
  border-color: color-mix(in srgb, var(--primary) 28%, rgba(16, 24, 40, 0.08));
}

/* Hero */
.home-hero {
  position: relative;
  padding: clamp(2rem, 4.5vw, 3.75rem) 0 clamp(1.75rem, 3vw, 2.75rem);
  /* Header offset applied from layout critical CSS via --site-header-offset */
  background:
    radial-gradient(900px 380px at 92% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 55%),
    linear-gradient(180deg, #f7f8fb 0%, #fff 72%);
  overflow: hidden;
}

.home-hero .hero-copy {
  max-width: 34rem;
}

.home-hero .hero-title {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  color: var(--home-ink);
}

.home-hero .hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.55;
  margin: 0 0 0.75rem;
  color: #334155;
}

.home-hero .hero-support {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 1.35rem;
  color: var(--home-muted);
}

.home-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.85rem;
  align-items: center;
}

.home-hero .btn-secondary-outline {
  background: #fff;
  border: 1.5px solid rgba(16, 24, 40, 0.18);
  color: var(--home-ink);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.home-hero .btn-secondary-outline:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

/* Product screenshot frame (swap-ready) */
.product-frame {
  border-radius: 16px;
  overflow: hidden;
  background: var(--home-frame-bg);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.product-frame .frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  background: #e8ecf2;
  border-bottom: 1px solid rgba(16, 24, 40, 0.06);
}

.product-frame .frame-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #b8c0cc;
}

.product-frame .frame-chrome span:nth-child(1) { background: #ff8a80; }
.product-frame .frame-chrome span:nth-child(2) { background: #ffd180; }
.product-frame .frame-chrome span:nth-child(3) { background: #b9f6ca; }

.product-frame .frame-body {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--home-frame-ink);
  background: linear-gradient(180deg, #fff 0%, var(--home-frame-bg) 100%);
  min-height: 260px;
}

.product-frame .frame-body.is-neutral-fallback,
.phone-mock .phone-screen.is-neutral-fallback {
  /* Production-safe empty state: no internal filenames / “coming soon” copy */
  padding: 0;
  min-height: 240px;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
}

.product-frame.is-empty .frame-chrome,
.phone-mock.is-empty::before {
  opacity: 0.85;
}

.product-frame .frame-body.has-shot {
  padding: 0;
  place-items: stretch;
  background: #f3f5f8;
  min-height: 0;
}

.product-frame .frame-body.has-shot .shot-scroll {
  width: 100%;
  max-height: min(70vh, 640px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #f3f5f8;
}

.product-frame .frame-body.has-shot .product-shot-img,
.home-hero .product-frame .frame-body.has-shot .product-shot-img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  min-height: 0;
}

.home-hero .product-frame .frame-body.has-shot .shot-scroll,
.home-hero .product-frame .frame-body.has-shot {
  max-height: none;
}

.home-hero .product-frame.has-media {
  min-height: 0;
  /* Primary product proof: maximize readable dashboard real-estate */
  box-shadow: 0 22px 56px rgba(16, 24, 40, 0.16);
}

.home-hero .product-frame.has-media .frame-body.has-shot {
  /* Intrinsic ratio of product-demo-dashboard.webp (758×365) — avoids crop/letterbox CLS */
  aspect-ratio: 758 / 365;
  overflow: hidden;
  min-height: 0;
  background: #0f172a;
}

.home-hero .product-frame.has-media .frame-body.has-shot .product-shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0f172a;
  image-rendering: -webkit-optimize-contrast;
}

.product-demo .product-frame.has-media {
  min-height: 0;
}

.product-demo .product-frame.has-media .frame-body {
  min-height: 0;
}

.product-demo .product-frame.has-media .frame-body.has-shot {
  /* Natural image height; width/height attrs reserve space for CLS */
  aspect-ratio: auto;
  background: #0f172a;
}

.product-demo .product-frame.has-media .frame-body.has-shot .shot-scroll {
  max-height: none;
  height: auto;
  background: #0f172a;
}

.product-demo .product-frame.has-media .frame-body.has-shot .product-shot-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
}

.product-frame .frame-label {
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--home-ink);
}

.product-frame .frame-hint {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--home-muted);
}

.product-frame .frame-file code {
  font-size: 0.78rem;
  color: #6b778c;
}

.home-hero .product-frame {
  min-height: 280px;
}

@media (min-width: 992px) {
  .home-hero .product-frame.has-media {
    /* Slight optical enlarge vs copy column without changing grid copy */
    width: calc(100% + 1.25rem);
    max-width: none;
  }

  /* Give the product shot more column share — strongest product proof */
  .home-hero .row > .col-lg-6.order-1 {
    flex: 0 0 40%;
    max-width: 40%;
  }

  .home-hero .row > .col-lg-6.order-2 {
    flex: 0 0 60%;
    max-width: 60%;
  }
}

/* References — compact trust strip */
.home-refs .section-head .title {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.home-refs .refs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-items: center;
  padding: 0.85rem 1rem;
  border: var(--home-card-border);
  border-radius: 12px;
  background: #fff;
}

.home-refs .refs-grid .ref-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 44px;
}

.home-refs .refs-grid img {
  max-height: 36px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Keep original brand colors — no grayscale/opacity wash */
}

/* TR market — homepage free turnstile campaign banner (between refs and features) */
.home-ia .home-section.home-turnstile-banner {
  padding: 0;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* Refs + features already have section padding; tighten when banner sits between them */
.home-ia .home-refs:has(+ .home-turnstile-banner) {
  padding-bottom: 0.35rem;
}

.home-ia .home-turnstile-banner + .home-section {
  padding-top: 1.25rem;
}

.home-turnstile-banner-link {
  display: block;
  max-width: 100%;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

.home-turnstile-banner-link:focus-visible {
  outline: 3px solid var(--primary, #ff7a00);
  outline-offset: 3px;
}

.home-turnstile-banner-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .home-ia .home-section.home-turnstile-banner {
    margin-top: 8px;
    margin-bottom: 10px;
  }
}

/* Features */
.home-feat-card {
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
}

.home-feat-card .icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 0.8rem;
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  color: var(--primary);
  font-size: 1rem;
}

.home-feat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--home-ink);
}

.home-feat-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--home-muted);
  flex: 1;
}

/* Multi-branch */
.home-branches .branch-included {
  display: inline-block;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.home-branches .title {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--home-ink);
}

.home-branches .branch-sub {
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
  max-width: 36rem;
}

.home-branch-cap {
  padding: 1rem 1.05rem;
}

.home-branch-cap h3 {
  font-size: 0.98rem;
  font-weight: 750;
  margin: 0 0 0.35rem;
  color: var(--home-ink);
}

.home-branch-cap p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--home-muted);
}

.branch-diagram {
  background: #151a24;
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.18);
}

.branch-node {
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  min-width: 7.5rem;
}

.branch-node-crm {
  background: var(--primary);
  color: #fff;
  min-width: 9rem;
}

.branch-node-all {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.branch-leaf-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}

.branch-leaf {
  background: #fff;
  color: var(--home-ink);
  flex: 1 1 5.5rem;
  max-width: 8rem;
}

.branch-node-combined {
  background: transparent;
  color: #c9d4e5;
  border: 1px dashed color-mix(in srgb, var(--primary) 55%, #889);
  font-weight: 650;
  font-size: 0.85rem;
}

.branch-connector {
  width: 2px;
  height: 18px;
  background: color-mix(in srgb, var(--primary) 70%, #fff);
  margin: 0.15rem 0;
}

.branch-connector-soft {
  background: rgba(255, 255, 255, 0.25);
  height: 14px;
}

/* Turnstile */
.home-turnstile .turn-tech,
.home-turnstile .turn-offer {
  padding: 1.5rem 1.35rem;
}

.home-turnstile .turn-tech .title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.home-turnstile .turn-tech p {
  color: var(--home-muted);
  margin-bottom: 1.15rem;
}

.home-turnstile .turn-offer {
  border: 1.5px solid color-mix(in srgb, var(--primary) 55%, #ccc);
  background: #fff;
  position: relative;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 12%, transparent);
}

.home-turnstile .offer-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.home-turnstile .turn-offer h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.home-turnstile .turn-offer .offer-free {
  color: var(--home-ink);
  font-weight: 600;
}

.home-turnstile .turn-offer .offer-free em {
  font-style: normal;
  color: var(--primary);
  font-weight: 800;
}

/* Migration with connectors */
.home-mig-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-mig-track::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 45%, #ddd), transparent);
  z-index: 0;
}

.home-mig-step {
  position: relative;
  z-index: 1;
  padding: 1.2rem 1.1rem;
}

.home-mig-step .step-num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.home-mig-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.home-mig-step p {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.92rem;
}

/* Mobile app */
.home-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.home-pill-list li {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 40, 0.1);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.phone-mock {
  width: min(240px, 70%);
  margin: 0 auto;
  border-radius: 28px;
  border: 10px solid #1c2430;
  background: var(--home-frame-bg);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);
  aspect-ratio: 9 / 17;
  overflow: hidden;
  position: relative;
}

.phone-mock::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 10px;
  border-radius: 999px;
  background: #2a3444;
  z-index: 2;
}

.phone-mock .phone-screen {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem 0.85rem;
  text-align: center;
  color: var(--home-muted);
  font-size: 0.85rem;
  background: linear-gradient(180deg, #fff, var(--home-frame-bg));
}

/* Mobile asset is a wide multi-device collage (855×270) — drop single-phone chrome */
.phone-mock.has-media {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  background: #f3f5f8;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.12);
  aspect-ratio: 855 / 270;
}

.phone-mock.has-media::before {
  display: none;
}

.phone-mock .phone-screen.has-shot {
  padding: 0;
  display: block;
  overflow: hidden;
  height: 100%;
  background: #f3f5f8;
}

.phone-mock.has-media .phone-screen.has-shot .product-shot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.phone-mock:not(.has-media) .phone-screen.has-shot .product-shot-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
}

.home-mobile-upsell {
  margin-top: 1.35rem;
  padding: 1.15rem 1.2rem;
  border-left: 3px solid var(--primary);
}

.home-mobile-upsell h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.25rem 0 0.45rem;
}

.home-mobile-upsell p {
  color: var(--home-muted);
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
}

/* Product demo */
.product-demo .section-head {
  margin-bottom: 1.15rem;
}

.product-demo-tabs {
  gap: 0.4rem;
  border: none;
  margin-bottom: 1rem;
  padding: 0.35rem;
  background: #eef1f5;
  border-radius: 12px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.product-demo-tabs .nav-item {
  flex: 1 1 auto;
}

.product-demo-tabs .nav-link {
  width: 100%;
  border: none;
  border-radius: 9px;
  padding: 0.55rem 0.75rem;
  color: #445;
  font-weight: 650;
  font-size: 0.9rem;
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.product-demo-tabs .nav-link:hover {
  color: var(--home-ink);
}

.product-demo-tabs .nav-link.active {
  background: #fff;
  color: var(--home-ink);
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.08);
  border: none;
}

.product-demo .product-frame {
  min-height: 420px;
}

.product-demo .product-frame .frame-body {
  min-height: 380px;
}

.home-addon-card {
  padding: 1.35rem 1.25rem;
}

.home-addon-card .badge-sep {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.55rem;
}

.home-addon-card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  margin: 0 0 0.45rem;
}

.home-addon-card p {
  color: var(--home-muted);
  margin: 0 0 0.85rem;
  font-size: 0.93rem;
}

.home-addon-card .status {
  font-weight: 750;
  color: var(--primary);
  margin: 0 0 1rem;
}

/* Pricing SaaS overrides (tone down campaign-orange surfaces) */
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--home-card-shadow);
  border: var(--home-card-border);
  background: #fff;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:before,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:after {
  display: none !important;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-inner {
  background: #fff !important;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-title,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-title.premium,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.active .pricingtable-title,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:hover .pricingtable-title {
  background: transparent !important;
  color: var(--home-ink) !important;
  font-weight: 800;
  font-size: 1.15rem;
  padding-top: 1.25rem;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.is-lead {
  border: 1.5px solid color-mix(in srgb, var(--primary) 55%, #ccc);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.08);
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.is-lead .pricingtable-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: var(--primary);
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-price,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.active .pricingtable-price,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:hover .pricingtable-price {
  background: transparent !important;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-bx,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.active .pricingtable-bx,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:hover .pricingtable-bx {
  color: var(--home-ink) !important;
  font-weight: 800;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-features,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1.active .pricingtable-features,
.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1:hover .pricingtable-features {
  color: #334155 !important;
  background: transparent !important;
}

.pricing-architecture.saas-pricing .pricingtable-wrapper.style-1 .pricingtable-features li {
  color: #334155 !important;
}

.pricing-architecture.saas-pricing .pricing-badge {
  color: var(--primary);
}

.pricing-architecture.saas-pricing .pricing-status {
  color: var(--primary);
}

.pricing-architecture .pricing-main-wrap {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-architecture .pricing-addons {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(16, 24, 40, 0.08);
}

.pricing-architecture .pricing-addons .section-head {
  margin-bottom: 1.25rem;
  text-align: center;
}

.pricing-architecture .pricing-addons .section-head .title {
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
}

.pricing-architecture .pricing-addons .section-head .text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--home-muted);
  font-size: 0.95rem;
}

/* Final CTA band */
.home-final {
  background: #151a24;
  color: #fff;
  border-radius: 16px;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}

.home-final .final-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}

.home-final .final-copy {
  text-align: left;
  max-width: 34rem;
}

.home-final .title {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.home-final p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 0.95rem;
}

.home-final .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  flex-shrink: 0;
}

.home-final .btn-secondary-outline {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.home-final .btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

#pricing.home-section {
  background: #f7f8fb !important;
  background-image: none !important;
}

@media (max-width: 991.98px) {
  .home-ia {
    --home-pad-y: clamp(2.5rem, 6vw, 3.5rem);
    --home-pad-y-compact: 1.75rem;
  }

  .home-refs .refs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-mig-track {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .home-mig-track::before {
    display: none;
  }

  .home-hero .hero-cta {
    width: 100%;
  }

  .home-hero .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .home-final .final-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-final .final-copy {
    text-align: center;
    max-width: none;
  }

  .home-final .final-actions {
    justify-content: center;
  }

  .home-final .final-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .product-demo .product-frame {
    min-height: 300px;
  }

  .product-demo .product-frame .frame-body {
    min-height: 260px;
  }
}

@media (max-width: 575.98px) {
  .home-hero {
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }

  .home-hero .hero-title {
    font-size: 1.7rem;
  }

  .home-hero .product-frame {
    margin-top: 0.35rem;
    min-height: 220px;
  }

  .home-hero .product-frame.has-media {
    min-height: 0;
  }

  .home-hero .product-frame .frame-body {
    min-height: 190px;
    padding: 1.25rem 1rem;
  }

  .home-hero .product-frame.has-media .frame-body.has-shot {
    min-height: 0;
    padding: 0;
  }

  .home-feat-card {
    padding: 1.05rem 1rem;
  }

  .product-demo-tabs .nav-link {
    font-size: 0.8rem;
    padding: 0.45rem 0.5rem;
  }

  .phone-mock {
    width: min(200px, 62%);
  }

  .phone-mock.has-media {
    width: 100%;
    max-width: none;
  }

  .pricing-architecture .pricing-addons {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
  }

  .branch-diagram {
    padding: 1.2rem 0.9rem;
  }

  .branch-leaf {
    max-width: none;
  }
}
