:root {
  --ink: #3a384d;
  --muted: #687084;
  --paper: #ffffff;
  --soft: #f7f7f5;
  --brand: #cc4100;
  --brand-2: #f2a33a;
  --brand-rgb: 204, 65, 0;
  --tint: #fff3ec;
  --line: rgba(58, 56, 77, 0.13);
  --shadow: 0 26px 80px rgba(40, 35, 53, 0.12);
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

body.site-billbetter {
  --brand: #8dba3f;
  --brand-2: #8dd9f3;
  --brand-rgb: 141, 186, 63;
  --tint: #f3f8ea;
}

body.site-paybetter {
  --brand: #0aa6e6;
  --brand-2: #d2b6ff;
  --brand-rgb: 10, 166, 230;
  --tint: #ecf9ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::selection {
  background: rgba(var(--brand-rgb), 0.25);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-nav {
  min-height: 82px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 40px rgba(37, 34, 48, 0.08);
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 185px;
  height: 48px;
  object-fit: contain;
}

.site-flowtrack .brand-logo {
  height: 42px;
  max-width: 200px;
}

.navbar-nav {
  gap: 0.25rem;
}

.nav-link {
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 0.9rem !important;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--tint);
  color: var(--ink);
}

.navbar-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: none !important;
}

.btn-brand,
.btn-outline-brand {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 800;
  padding: 0.75rem 1.35rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-brand {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), 0.24);
}

.site-flowtrack .btn-brand {
  color: #fff;
}

.btn-outline-brand {
  background: transparent;
  color: var(--ink);
}

.btn-brand:hover,
.btn-brand:focus,
.btn-outline-brand:hover,
.btn-outline-brand:focus {
  transform: translateY(-2px);
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(58, 56, 77, 0.18);
}

.hero {
  position: relative;
  min-height: 760px;
  padding: 164px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(var(--brand-rgb), 0.12), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--soft) 100%);
}

.hero::after {
  position: absolute;
  z-index: 0;
  width: 620px;
  height: 620px;
  top: 68px;
  right: -220px;
  border-radius: 46% 54% 62% 38% / 44% 36% 64% 56%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  content: "";
  opacity: 0.9;
  transform: rotate(-12deg);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
  box-shadow: 0 0 0 6px rgba(var(--brand-rgb), 0.12);
}

.hero h1,
.section-title,
.cta-title {
  margin: 0;
  color: var(--ink);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.2rem, 7.5vw, 6.8rem);
  line-height: 0.94;
}

.hero h1 .accent,
.section-title .accent {
  background: linear-gradient(90deg, var(--brand) 10%, var(--brand-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  margin: 1.8rem 0 2rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.4rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.trust-row span::before {
  margin-right: 0.45rem;
  color: var(--brand);
  content: "✓";
  font-weight: 900;
}

.product-visual {
  position: relative;
  max-width: 520px;
  min-height: 500px;
  margin-left: auto;
}

.visual-card {
  position: absolute;
  inset: 18px 0 auto 36px;
  min-height: 410px;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.visual-card::after {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.13);
  content: "";
}

.visual-head,
.visual-total,
.visual-row,
.stat-strip,
.brand-ribbon,
.section-head,
.feature-card-head,
.contact-line,
.footer-row {
  display: flex;
  align-items: center;
}

.visual-head {
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.visual-head strong {
  font-size: 0.92rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.visual-total {
  justify-content: space-between;
  margin: 1.4rem 0;
  padding: 1.2rem;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
}

.visual-total small,
.visual-total span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
}

.visual-total strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.7rem;
}

.visual-chart {
  display: flex;
  height: 120px;
  align-items: end;
  gap: 0.6rem;
  padding: 0.6rem 0 0;
}

.visual-chart span {
  flex: 1;
  min-height: 18px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, var(--brand), rgba(var(--brand-rgb), 0.28));
}

.visual-list {
  margin-top: 1rem;
}

.visual-row {
  justify-content: space-between;
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.visual-row:last-child {
  border-bottom: 0;
}

.float-badge {
  position: absolute;
  z-index: 2;
  right: -28px;
  bottom: 20px;
  max-width: 190px;
  padding: 1.05rem 1.2rem;
  border-radius: 20px;
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(var(--brand-rgb), 0.28);
  font-weight: 900;
  transform: rotate(-3deg);
}

.site-flowtrack .float-badge {
  color: #fff;
}

.float-badge small {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.75;
  font-size: 0.72rem;
  font-weight: 700;
}

.section-space {
  padding: 105px 0;
}

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

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.section-dark::before {
  position: absolute;
  width: 520px;
  height: 520px;
  left: -260px;
  bottom: -300px;
  border-radius: 50%;
  background: rgba(var(--brand-rgb), 0.16);
  content: "";
}

.section-dark .section-title,
.section-dark .eyebrow,
.section-dark h3 {
  color: #fff;
}

.section-dark .section-copy,
.section-dark p {
  color: rgba(255, 255, 255, 0.68);
}

.section-head {
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-title {
  max-width: 770px;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.section-copy {
  max-width: 510px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.stat-strip {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: -45px;
  padding: 1.5rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-item {
  flex: 1;
  padding: 0.4rem 1.2rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.stat-item span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-card,
.step-card,
.audience-card,
.contact-card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card {
  padding: 1.7rem;
}

.feature-card:hover,
.step-card:hover,
.audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--brand-rgb), 0.42);
  box-shadow: 0 20px 48px rgba(58, 56, 77, 0.1);
}

.feature-card-head {
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.feature-number,
.step-number {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-mark {
  width: 44px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}

.feature-card h3,
.step-card h3,
.audience-card h3 {
  margin-bottom: 0.75rem;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
}

.feature-card p,
.step-card p,
.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.feature-card.featured {
  background: var(--ink);
}

.feature-card.featured h3,
.feature-card.featured p {
  color: #fff;
}

.feature-card.featured p {
  opacity: 0.68;
}

.feature-card.featured .feature-number {
  background: var(--brand);
}

.brand-ribbon {
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.brand-ribbon img {
  width: auto;
  max-width: 180px;
  height: 62px;
  object-fit: contain;
  filter: saturate(0.88);
}

.brand-ribbon img:nth-child(2),
.brand-ribbon img:nth-child(3) {
  height: 70px;
}

.step-card {
  position: relative;
  padding: 1.6rem;
}

.step-number {
  margin-bottom: 1.25rem;
  background: var(--brand);
}

.site-flowtrack .step-number {
  color: #fff;
}

.audience-card {
  padding: 1.5rem;
  background: transparent;
}

.audience-card .tag {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.13);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.showcase-panel {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3.2rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.showcase-panel::after {
  position: absolute;
  width: 320px;
  height: 320px;
  top: -150px;
  right: -110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  content: "";
  opacity: 0.78;
}

.showcase-panel > * {
  position: relative;
  z-index: 1;
}

.showcase-panel h3 {
  color: #fff;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

.showcase-panel p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.75;
}

.showcase-panel .btn-brand:hover,
.showcase-panel .btn-brand:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.contact-card {
  padding: 2rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
  font-weight: 900;
}

.contact-line {
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.contact-line strong {
  color: var(--ink);
}

.contact-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
}

.cta-wrap {
  padding: 0 0 105px;
}

.cta-panel {
  position: relative;
  padding: clamp(2rem, 6vw, 5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
}

.cta-panel::after {
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  bottom: -160px;
  border: 42px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  content: "";
}

.cta-title {
  max-width: 820px;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1;
}

.site-flowtrack .cta-panel,
.site-flowtrack .cta-title {
  color: #fff;
}

.cta-panel p {
  max-width: 680px;
  margin: 1.2rem 0 1.8rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.site-flowtrack .cta-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.btn-ink {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-ink:hover,
.btn-ink:focus {
  transform: translateY(-2px);
  background: #fff;
  color: var(--ink);
}

.site-footer {
  padding: 70px 0 32px;
  background: #191822;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  width: auto;
  max-width: 185px;
  height: 54px;
  margin-bottom: 1.2rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-summary {
  max-width: 420px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1.3rem;
}

.footer-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-row {
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 991.98px) {
  .site-nav {
    min-height: 74px;
  }

  .navbar-collapse {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-link {
    padding: 0.8rem 1rem !important;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero {
    min-height: auto;
    padding: 130px 0 90px;
  }

  .hero::after {
    width: 480px;
    height: 480px;
    top: 350px;
    right: -310px;
  }

  .product-visual {
    min-height: 470px;
    margin: 3rem auto 0;
  }

  .visual-card {
    left: 0;
  }

  .float-badge {
    right: 0;
  }

  .section-space {
    padding: 82px 0;
  }

  .section-head {
    display: block;
  }

  .section-copy {
    margin-top: 1.25rem;
  }

  .stat-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }

  .brand-ribbon {
    flex-wrap: wrap;
  }
}

@media (max-width: 575.98px) {
  :root {
    --radius-lg: 26px;
    --radius-md: 20px;
  }

  .brand-logo {
    max-width: 145px;
    height: 42px;
  }

  .site-flowtrack .brand-logo {
    max-width: 160px;
    height: 36px;
  }

  .hero {
    padding-top: 118px;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .hero-actions .btn-brand,
  .hero-actions .btn-outline-brand {
    width: 100%;
  }

  .product-visual {
    min-height: 420px;
  }

  .visual-card {
    min-height: 390px;
    inset: 5px 0 auto 0;
    padding: 1.1rem;
    transform: none;
  }

  .visual-total strong {
    font-size: 1.4rem;
  }

  .float-badge {
    right: 12px;
    bottom: -6px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .stat-item,
  .stat-item:nth-child(2) {
    padding: 0.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child {
    border-bottom: 0;
  }

  .brand-ribbon img {
    max-width: 130px;
    height: 50px;
  }

  .brand-ribbon img:nth-child(2),
  .brand-ribbon img:nth-child(3) {
    height: 56px;
  }

  .cta-wrap {
    padding-bottom: 82px;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 1.5rem;
  }

  .footer-row {
    display: block;
  }

  .footer-row span {
    display: block;
    margin-top: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Product journey showcases */
.product-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}

.product-story:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.product-story.reverse .story-copy {
  order: 2;
}

.story-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.story-copy > p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.story-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.story-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.story-list li::before {
  display: inline-flex;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
}

.device-stage {
  position: relative;
  min-height: 430px;
  padding: 2rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(145deg, var(--tint), rgba(var(--brand-rgb), 0.2));
}

.device-stage::before {
  position: absolute;
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -150px;
  border: 38px solid rgba(var(--brand-rgb), 0.18);
  border-radius: 50%;
  content: "";
}

.laptop {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  margin: 2rem auto 0;
}

.laptop-screen {
  padding: 12px 12px 14px;
  border: 5px solid #292733;
  border-bottom-width: 11px;
  border-radius: 18px 18px 8px 8px;
  background: #16151d;
  box-shadow: 0 28px 55px rgba(33, 31, 45, 0.2);
}

.laptop-base {
  width: 112%;
  height: 16px;
  margin-left: -6%;
  border-radius: 2px 2px 18px 18px;
  background: linear-gradient(180deg, #d6d8dc, #8f939c);
  box-shadow: 0 10px 20px rgba(33, 31, 45, 0.18);
}

.device-browser {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}

.browser-bar {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #eef0f5;
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c3c7d1;
}

.browser-address {
  flex: 1;
  height: 12px;
  margin-left: 6px;
  border-radius: 999px;
  background: #fff;
}

.pay-screen {
  min-height: 265px;
  padding: 1rem;
  background: linear-gradient(145deg, #fff 0%, var(--tint) 100%);
}

.pay-screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.pay-screen-logo {
  width: auto;
  height: 34px;
}

.secure-chip {
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
}

.invoice-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(58, 56, 77, 0.07);
}

.invoice-preview small,
.invoice-preview span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
}

.invoice-preview strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.invoice-preview .verified {
  align-self: start;
  padding: 0.34rem 0.55rem;
  border-radius: 999px;
  background: rgba(var(--brand-rgb), 0.18);
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 900;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.pay-methods span {
  padding: 0.65rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
  text-align: center;
}

.pay-screen-button {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.device-caption {
  position: absolute;
  z-index: 3;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(58, 56, 77, 0.2);
}

.phone-stage {
  display: flex;
  min-height: 510px;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.phone {
  position: relative;
  z-index: 1;
  width: 210px;
  padding: 10px;
  border: 4px solid #25232e;
  border-radius: 38px;
  background: #111018;
  box-shadow: 0 28px 55px rgba(33, 31, 45, 0.24);
}

.phone.secondary {
  width: 185px;
  transform: translateY(34px) rotate(4deg);
}

.phone::before {
  position: absolute;
  z-index: 2;
  width: 72px;
  height: 20px;
  top: 8px;
  left: 50%;
  border-radius: 999px;
  background: #111018;
  content: "";
  transform: translateX(-50%);
}

.phone-screen {
  min-height: 405px;
  padding: 2.25rem 0.9rem 1rem;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #fff, var(--tint));
}

.phone-screen .pay-screen-logo {
  height: 32px;
}

.miniapp-label {
  display: inline-flex;
  margin: 0.8rem 0;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: #e9f7e8;
  color: #27743d;
  font-size: 0.56rem;
  font-weight: 900;
}

.phone-greeting {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
}

.phone-balance {
  margin-bottom: 0.7rem;
  padding: 0.8rem;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.phone-balance small {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.56rem;
}

.phone-balance strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.phone-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.phone-actions span {
  min-height: 58px;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 800;
}

.phone-actions span::before {
  display: block;
  width: 16px;
  height: 5px;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}

.security-callout {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.security-callout::after {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  bottom: -150px;
  border: 40px solid rgba(var(--brand-rgb), 0.55);
  border-radius: 50%;
  content: "";
}

.security-callout h3 {
  max-width: 800px;
  color: #fff;
  font-family: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.security-callout p {
  max-width: 650px;
  margin: 1.2rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.03rem;
  line-height: 1.75;
}

.security-callout > * {
  position: relative;
  z-index: 1;
}

.security-callout > .invoice-preview {
  max-width: 620px;
  margin-top: 1.5rem;
  color: var(--ink);
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lifestyle-frame {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.lifestyle-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.lifestyle-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 4rem 2rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(27, 25, 37, 0.88));
  color: #fff;
}

.lifestyle-overlay strong {
  display: block;
  max-width: 600px;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.lifestyle-overlay span {
  display: block;
  max-width: 600px;
  margin-top: 0.65rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Animated Flowtrack ecosystem */
.ecosystem-flow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 1fr 120px 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
}

.ecosystem-node {
  position: relative;
  min-height: 250px;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.ecosystem-node img {
  width: auto;
  max-width: 150px;
  height: 58px;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.ecosystem-node.meter-node > img:not(.ecosystem-logo) {
  float: right;
  width: 74px;
  height: 110px;
  margin: -0.5rem 0 0.5rem 0.5rem;
  object-fit: contain;
}

.ecosystem-node h3 {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.ecosystem-node p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.ecosystem-event {
  display: inline-flex;
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
}

.flow-connector {
  position: relative;
  height: 4px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.flow-connector::after {
  position: absolute;
  width: 11px;
  height: 11px;
  top: 50%;
  left: -4px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(var(--brand-rgb), 0.2);
  content: "";
  transform: translateY(-50%);
  animation: flowPacket 2.4s ease-in-out infinite;
}

.flow-connector:nth-of-type(2)::after {
  animation-delay: 1.2s;
}

.flow-label {
  position: absolute;
  width: 120px;
  top: -31px;
  left: 50%;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  transform: translateX(-50%);
}

.ecosystem-return {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.7rem;
  padding: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.74rem;
  font-weight: 800;
}

.ecosystem-return::before {
  color: var(--brand);
  content: "↻";
  font-size: 1.3rem;
  animation: spinSoft 3s linear infinite;
}

@keyframes flowPacket {
  0% { left: -4px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}

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

/* Contact and Chatwoot-ready experience */
.contact-section {
  padding: 105px 0;
  background: var(--soft);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-channel {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-channel:hover,
.contact-channel:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(58, 56, 77, 0.1);
}

.channel-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border-radius: 15px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.contact-channel h3 {
  margin: 1.2rem 0 0.3rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.contact-channel p,
.contact-channel span {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.channel-action {
  margin-top: 0.8rem !important;
  color: var(--ink) !important;
  font-weight: 900;
}

button.contact-channel {
  width: 100%;
  color: inherit;
  text-align: left;
}

.chat-launcher {
  position: fixed;
  z-index: 1040;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 42px rgba(35, 32, 48, 0.28);
  font-weight: 900;
}

.chat-launcher::before {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  content: "…";
}

.chat-preview {
  position: fixed;
  z-index: 1050;
  right: 22px;
  bottom: 88px;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(35, 32, 48, 0.25);
}

.chat-preview[hidden] {
  display: none;
}

.chat-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.2rem;
  background: var(--ink);
  color: #fff;
}

.chat-preview-head strong {
  font-size: 0.95rem;
}

.chat-preview-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
}

.chat-preview-body {
  padding: 1.2rem;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--tint);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.55;
}

.chat-options {
  display: grid;
  gap: 0.6rem;
}

.chat-options a {
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.integration-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .product-story,
  .product-story.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 0;
  }

  .product-story.reverse .story-copy {
    order: initial;
  }

  .ecosystem-flow {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .flow-connector {
    width: 4px;
    height: 72px;
    margin: -1.1rem auto;
  }

  .flow-connector::after {
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    animation-name: flowPacketVertical;
  }

  .flow-label {
    width: 150px;
    top: 50%;
    left: 22px;
    text-align: left;
    transform: translateY(-50%);
  }

  .ecosystem-return {
    grid-column: 1;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }
}

@keyframes flowPacketVertical {
  0% { top: -4px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(100% - 7px); opacity: 0; }
}

@media (max-width: 575.98px) {
  .device-stage {
    min-height: 380px;
    padding: 1rem;
  }

  .laptop {
    margin-top: 3rem;
  }

  .pay-screen {
    min-height: 220px;
    padding: 0.7rem;
  }

  .pay-methods span:nth-child(3) {
    display: none;
  }

  .pay-methods {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-caption {
    right: 0.7rem;
    bottom: 0.7rem;
  }

  .phone-stage {
    min-height: 470px;
    gap: 0.5rem;
  }

  .phone {
    width: 174px;
  }

  .phone.secondary {
    width: 154px;
  }

  .phone-screen {
    min-height: 365px;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .lifestyle-frame,
  .lifestyle-frame img {
    min-height: 420px;
  }

  .lifestyle-frame img {
    object-position: 62% center;
  }

  .ecosystem-node {
    min-height: 220px;
  }

  .ecosystem-return {
    align-items: flex-start;
    border-radius: 18px;
  }

  .contact-section {
    padding: 82px 0;
  }

  .chat-launcher {
    right: 12px;
    bottom: 12px;
  }

  .chat-preview {
    right: 16px;
    bottom: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-connector::after,
  .ecosystem-return::before {
    animation: none;
  }
}
