/* ═══════════════════════════════════════════════════
   Fluid We-Commerce — Design System
   ═══════════════════════════════════════════════════ */

/* Fonts: use theme-declared names (NeueHaasDisplay, FLFont) from theme.liquid */

/* ── Custom Properties ── */
:root {
  /* Brand accent colors */
  --blue: #42b1ff;
  --orange: #ff8b58;
  --green: #44b574;
  --purple: #c985e5;

  /* Neutrals */
  --bg: #050505;
  --bg-section: #111;
  --bg-card: #161616;
  --text-primary: #ffffff;
  --text-body: #f5f0e8;
  --text-secondary: #888888;

  /* Override theme globals (global.css uses these for body color/bg) */
  --clr-body: #ffffff;
  --clr-white: #050505;
  --clr-black: #ffffff;
  --color-body: #050505;
  --color-white: #050505;
  --color-black: #ffffff;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --content-max: 1280px;

  /* Flywheel segment colors */
  --seg-checkout: #8ac8ae;
  --seg-payments: #82cc9a;
  --seg-fairshare: #f2d270;
  --seg-connect: #f0b088;
  --seg-app: #e09098;
  --seg-builder: #c4a8d4;
  --seg-droplets: #96c4ec;
}

/* ── Light Theme ── */
.theme-light {
  --bg: #f5f0e8;
  --bg-section: #ede8df;
  --bg-card: rgba(0, 0, 0, 0.04);
  --text-primary: #050505;
  --text-body: #2a2a2a;
  --text-secondary: #666666;
  background-color: var(--bg);
  color: var(--text-primary);
}

.theme-light .brushstroke {
  mix-blend-mode: multiply;
}

.theme-light .data-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.1);
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body {
  background: #050505 !important;
  background-color: #050505 !important;
  color: #ffffff !important;
  font-family: "NeueHaas", sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.65 !important;
  font-size: unset !important;
  display: block !important;
  overflow-x: clip;
}

/* ── Grain/Noise Overlay ── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Layout ── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}

/* ── Typography ── */
.eyebrow {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--eyebrow-color, var(--blue));
}
.eyebrow--sm {
  font-size: 11px;
}
.eyebrow--lg {
  font-size: 15px;
}

.headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text-primary);
  text-transform: uppercase;
}

.headline-lg {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(50px, 6.75vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
  text-transform: uppercase;
}

/* ── Hand-drawn Emphasis — Circle ── */
.circled-wrapper {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.circled-text {
  position: relative;
  z-index: 1;
}
.circled-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: -25%;
  top: -35%;
  width: 150%;
  height: 170%;
}
.circled-decoration-inner {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* ── Hand-drawn Emphasis — Underline ── */
.underlined-wrapper {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.underlined-text {
  position: relative;
  z-index: 1;
}
.underlined-decoration {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  bottom: -0.3em;
  height: 0.55em;
}
.underlined-decoration-inner {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.tagline {
  font-family: "FLFont", sans-serif;
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1.3;
  color: var(--blue);
  text-wrap: balance;
}

.body-text {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text-body);
  line-height: 1.65;
}

.body-text-sm {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--blue) !important;
  background-color: var(--blue) !important;
  color: #050505 !important;
  font-family: "NeueHaas", sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  border: none !important;
  border-radius: 100px;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(66, 177, 255, 0.3);
  background: var(--blue) !important;
  color: #050505 !important;
  opacity: 1 !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-family: "NeueHaas", sans-serif;
  font-weight: 500;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  transition:
    border-color 0.3s ease,
    color 0.3s ease;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-text {
  font-family: "NeueHaas", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}
.btn-text:hover {
  opacity: 0.7;
}

/* ── Decorative ── */
.brushstroke {
  position: absolute;
  mix-blend-mode: screen;
  filter: invert(1);
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

/* ── Browser Chrome Frame ── */
.browser-chrome {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-chrome__bar {
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  padding: 8px 12px 0;
  gap: 10px;
  flex-shrink: 0;
}
.browser-chrome__dots {
  display: flex;
  gap: 5px;
  padding-bottom: 8px;
}
.browser-chrome__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.browser-chrome__dots span:nth-child(1) {
  background: #ff5f57;
}
.browser-chrome__dots span:nth-child(2) {
  background: #febc2e;
}
.browser-chrome__dots span:nth-child(3) {
  background: #28c840;
}
.browser-chrome__tab {
  background: #2a2a2a;
  border-radius: 6px 6px 0 0;
  padding: 6px 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.browser-chrome__addr {
  background: #2a2a2a;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.browser-chrome__addr span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}
.browser-chrome__body {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}
.browser-chrome__body img,
.browser-chrome__body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: visible;
  padding: 100px 0 20px;
  gap: 48px;
}
.hero__bg-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 0 clamp(24px, 4vw, 64px);
}
.hero__eyebrow {
  margin-bottom: 24px;
}
.hero__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(46px, 6.2vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--text-primary);
  margin-bottom: 28px;
}
.hero__emphasis {
  white-space: nowrap;
}
.hero__marks {
  position: absolute;
  overflow: visible;
  pointer-events: none;
  filter: url(#grit);
}
.hero__subtext {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--text-body);
  line-height: 1.65;
  max-width: 100%;
  margin: 0 auto 24px;
}
.hero .tagline {
  margin: 0 auto 40px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Floating data cards */
.hero__data-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.data-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  animation: drift var(--drift-duration, 8s) ease-in-out infinite alternate;
}
@keyframes drift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(var(--drift-x, 12px), var(--drift-y, -18px));
  }
}

/* ── Trust Strip ── */
.trust-strip {
  padding: 300px 0 100px;
  background: var(--bg-section);
  overflow: hidden;
  position: relative;
}
.trust-strip__eyebrow {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}
.trust-strip__track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
  position: relative;
  z-index: 1;
}
.trust-strip__set {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-right: clamp(48px, 6vw, 80px);
}
.trust-strip__logo {
  max-height: 52px;
  max-width: 160px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  flex-shrink: 0;
}

/* ── Torn Paper Edges ── */
.torn-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  display: block;
}
.torn-edge--top {
  top: 0;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.2));
}
.torn-edge--bottom {
  bottom: 0;
  filter: drop-shadow(0 -6px 4px rgba(0, 0, 0, 0.2));
}
.torn-edge--flywheel {
  top: 0;
  z-index: 3;
  filter: drop-shadow(0 6px 4px rgba(0, 0, 0, 0.2));
}
.torn-edge--section {
  top: 0;
  height: 60px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ── Problem Section ── */
.problem {
  background: var(--bg);
}
.problem.theme-light .problem__headline {
  color: var(--text-primary);
}
.problem.theme-light .problem__body p {
  color: var(--text-body);
}
.problem__content {
  display: grid;
  grid-template-columns: 1fr 38%;
  grid-auto-rows: min-content;
  column-gap: clamp(32px, 4vw, 56px);
}
.problem__content > :not(.problem__visual) {
  grid-column: 1;
}
.problem__visual {
  grid-column: 2;
  grid-row: 1 / span 20;
  align-self: center;
}
.problem__visual img {
  width: 100%;
  border-radius: 12px;
}
.problem__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 20px 0 28px;
}
.problem__body {
  margin-bottom: 32px;
}
.problem__body p {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
}
.problem__body p:last-child {
  margin-bottom: 0;
}

/* ── Solution / Flywheel Scroll-Locked Section ── */
.solution-scroll {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: var(--bg);
  padding-top: 80px;
  overflow: visible;
}

/* Left side — flywheel bleeds off the left edge, stays sticky */
.solution-scroll__flywheel-side {
  flex: 0 0 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Flywheel — oversized and shifted left to bleed off-screen */
.flywheel-wrap {
  position: relative;
  width: 99vh;
  height: 99vh;
  max-width: none;
  margin-left: -16vh;
  flex-shrink: 0;
}
.flywheel-wheel {
  width: 100%;
  height: 100%;
  will-change: transform;
}
.flywheel-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flywheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.flywheel-center img {
  height: 64px;
  filter: brightness(0) invert(1) opacity(0.85);
}
.flywheel-center__label {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.5);
}
.flywheel-dots {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.flywheel-dot {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  transition:
    background 0.5s ease,
    width 0.4s ease;
}
.flywheel-dot.active {
  width: 36px;
}

/* Right side — content panel scrolls naturally */
.solution-scroll__content-side {
  flex: 0 0 50%;
  padding: 0 clamp(32px, 4vw, 64px) 0 clamp(24px, 3vw, 48px);
}

/* Flywheel Content Panel */
.flywheel-panel {
  width: 100%;
}
.flywheel-card {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.flywheel-card.active {
  opacity: 1;
  transform: translateY(0);
}
.flywheel-card__name-wrap {
  align-self: flex-start;
  margin-bottom: 20px;
}
.flywheel-card__name {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4vw, 54px);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
}
.flywheel-card__name-underline {
  display: block;
  height: 8px;
  width: 100%;
  margin-top: 6px;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
}
.flywheel-card__tagline {
  font-family: "FLFont", sans-serif;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.3;
  margin-bottom: 28px;
  text-wrap: balance;
}
.flywheel-card__props {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
.flywheel-prop {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.flywheel-prop__icon {
  flex-shrink: 0;
  font-size: 18px;
  width: 24px;
  text-align: center;
  filter: url(#hand-drawn);
  line-height: 1.45;
  -webkit-mask-position: center;
}
.flywheel-prop__text {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-body);
  line-height: 1.45;
}

/* Screenshots in the flywheel cards */
.flywheel-card .browser-chrome {
  max-width: 90%;
}
.flywheel-card .browser-chrome__body {
  aspect-ratio: 16 / 10;
}

/* ── Feature Highlights ── */
.feature-highlight {
  background: var(--bg);
}
.feature-highlight__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.feature-highlight__grid.reversed .feature-highlight__text {
  order: 2;
}
.feature-highlight__grid.reversed .feature-highlight__visual {
  order: 1;
}
.feature-highlight__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 16px 0 24px;
}
.feature-highlight__body {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}
.feature-highlight__text .tagline {
  margin-bottom: 32px;
}
.feature-highlight__link {
  font-family: "NeueHaas", sans-serif;
  font-weight: 500;
  font-size: 17px;
  transition: opacity 0.2s ease;
}
.feature-highlight__link:hover {
  opacity: 0.7;
}

/* ── Testimonials ── */
.testimonials {
  background: var(--bg-section);
}
.testimonials__wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.testimonials__intro {
  margin-bottom: 52px;
}
.testimonials__intro .eyebrow {
  margin-bottom: 12px;
}
.testimonials__intro .tagline {
  color: var(--blue);
  font-size: clamp(28px, 3vw, 42px);
  margin: 0;
}
.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  isolation: isolate;
}
.testimonial-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.testimonial-bg-circle {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 115%;
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.07;
  background-color: var(--blue);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}
.testimonial-card__text {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}
.testimonial-card__text .highlight {
  color: var(--blue);
  display: inline-block;
  position: relative;
  isolation: isolate;
}
.testimonial-card__attribution {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.testimonial-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card__info {
  text-align: left;
}
.testimonial-card__name {
  font-family: "NeueHaas", sans-serif;
  font-weight: 700;
  font-size: 18px;
}
.testimonial-card__title {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
}
.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.testimonial-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition:
    background 0.4s ease,
    width 0.4s ease;
}
.testimonial-dot.active {
  width: 44px;
  background: var(--blue);
}

/* ── Stats ── */
.stats {
  background: var(--bg);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-card {
  border-top: 3px solid;
  padding-top: 28px;
}
.stat-card__number {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(50px, 5.5vw, 76px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-card__label {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── AI / Catchups Section ── */
.ai-section {
  background: var(--bg);
}
.ai-section__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.ai-section__grid .ai-section__text {
  order: 2;
}
.ai-section__grid .ai-section__visual {
  order: 1;
}
.ai-section__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4.5vw, 54px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 20px 0 28px;
}
.ai-section__body {
  margin-bottom: 32px;
}
.ai-section__body p {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 20px;
}
.ai-section__body p:last-child {
  margin-bottom: 0;
}

/* Phone mockup */
.phone-mockup {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
}
.phone-mockup__frame {
  background: #1a1a1a;
  border-radius: 36px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone-mockup__screen {
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  position: relative;
  padding: 24px 16px;
}
.phone-mockup__notch {
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  margin: -24px auto 20px;
}
.catchup-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  font-family: "NeueHaas", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.catchup-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Blitz Week ── */
.blitz {
  background: var(--bg-section);
}
.blitz__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.blitz__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 5.5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 20px 0 24px;
}
.blitz__body {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.3vw, 20px);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 24px;
}
.blitz__text .tagline {
  margin-bottom: 32px;
}
.blitz-days {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px 24px;
  align-items: start;
}
.blitz-day-wrapper {
  transition: transform 0.3s ease-out;
}
.blitz-day-wrapper--offset {
  transform: translateY(88px);
  margin-top: 3px;
}
.blitz-day--1 {
  transform: rotate(-1.8deg);
}
.blitz-day--2 {
  transform: rotate(1.4deg);
}
.blitz-day--3 {
  transform: rotate(1.1deg);
}
.blitz-day--4 {
  transform: rotate(-2.2deg);
}
.blitz-day {
  position: relative;
  border-radius: 16px;
  padding: 32px 28px;
}
.blitz-day__bg {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: #fff;
  z-index: 0;
}
.blitz-day__content {
  position: relative;
  z-index: 20;
}
.blitz-day__edge {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background: #fff;
  z-index: 10;
}
.blitz-day__edge--bottom {
  bottom: 0;
  border-radius: 0 0 16px 16px;
  transform: skewY(-3deg);
  transform-origin: bottom right;
}
.blitz-day__edge--top {
  top: 0;
  border-radius: 16px 16px 0 0;
  transform: skewY(-3deg);
  transform-origin: top left;
}
.blitz-day__icon {
  display: block;
  font-size: 28px;
  color: var(--green);
  margin-bottom: 16px;
  filter: url(#hand-drawn);
  text-align: left;
}
.blitz-day__num {
  font-family: "FLFont", sans-serif;
  font-weight: normal;
  font-size: 26px;
  color: var(--green);
  margin-bottom: 10px;
  text-align: left;
}
.blitz-day__desc {
  font-family: "NeueHaas", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #444;
  line-height: 1.55;
  text-align: left;
}

/* ── Closing CTA ── */
.closing-cta {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.closing-cta__content {
  position: relative;
  z-index: 2;
}
.closing-cta__headline {
  font-family: "NeueHaas", sans-serif;
  font-weight: 900;
  font-size: clamp(50px, 6.75vw, 80px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.closing-cta__subtext {
  font-family: "NeueHaas", sans-serif;
  font-weight: 300;
  font-size: clamp(18px, 1.45vw, 22px);
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.65;
}
.closing-cta .tagline {
  margin: 0 auto 40px;
}
.closing-cta .btn-primary {
  padding: 18px 44px;
  font-size: 19px;
  box-shadow: 0 0 40px rgba(66, 177, 255, 0.25);
}
.closing-cta .btn-primary:hover {
  box-shadow: 0 0 60px rgba(66, 177, 255, 0.4);
}

/* ── Hero Benefit Tabs ── */
.hero-benefits {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1060px;
  padding: 0 clamp(24px, 4vw, 64px);
  margin-bottom: -220px;
}

.hero-benefits__tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: -4px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-benefits__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  padding: 14px 12px;
  border-radius: 0;
  background: #fff;
  color: rgba(0, 0, 0, 0.35);
  font-family: "FLFont", sans-serif;
  font-weight: normal;
  font-size: 18px;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  clip-path: polygon(
    0% 2%,
    3% 0%,
    8% 1%,
    15% 0%,
    22% 1%,
    30% 0%,
    38% 1%,
    45% 0%,
    52% 1%,
    60% 0%,
    68% 1%,
    75% 0%,
    82% 1%,
    90% 0%,
    95% 1%,
    98% 0%,
    100% 2%,
    100% 8%,
    99% 15%,
    100% 22%,
    99% 30%,
    100% 40%,
    99% 50%,
    100% 60%,
    99% 70%,
    100% 80%,
    99% 88%,
    100% 95%,
    98% 100%,
    95% 99%,
    90% 100%,
    82% 99%,
    75% 100%,
    68% 99%,
    60% 100%,
    52% 99%,
    45% 100%,
    38% 99%,
    30% 100%,
    22% 99%,
    15% 100%,
    8% 99%,
    3% 100%,
    0% 98%,
    1% 90%,
    0% 82%,
    1% 75%,
    0% 68%,
    1% 60%,
    0% 52%,
    1% 45%,
    0% 38%,
    1% 30%,
    0% 22%,
    1% 15%,
    0% 8%
  );
  overflow: hidden;
}

.hero-benefits__tab:nth-child(1) {
  transform: rotate(-1.2deg);
}
.hero-benefits__tab:nth-child(2) {
  transform: rotate(0.8deg);
}
.hero-benefits__tab:nth-child(3) {
  transform: rotate(-0.6deg);
}

.hero-benefits__tab--active {
  background: #e8f4ff;
  color: #111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.hero-benefits__tab--active:nth-child(1) {
  transform: rotate(-1.2deg) translateY(-2px);
}
.hero-benefits__tab--active:nth-child(2) {
  transform: rotate(0.8deg) translateY(-2px);
}
.hero-benefits__tab--active:nth-child(3) {
  transform: rotate(-0.6deg) translateY(-2px);
}

.hero-benefits__tab-icon {
  flex-shrink: 0;
  font-size: 20px;
  filter: url(#hand-drawn);
}

.hero-benefits__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  border-radius: 0;
}

.hero-benefits__frame {
  width: 100%;
}

.browser-chrome--benefits {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
}

.browser-chrome__body--benefits {
  aspect-ratio: 16 / 9.5;
  background: #f8f9fa;
  position: relative;
  border-radius: 0 0 12px 12px;
  overflow: visible !important;
}

/* ── Benefit Scenes (shared) ── */
.hb-scene {
  position: absolute;
  inset: 0;
  display: flex;
  opacity: 0;
  pointer-events: none;
  font-family: "NeueHaas", sans-serif;
}

.hb-scene--active {
  pointer-events: auto;
}

.hb-sidebar {
  width: 52px;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  gap: 16px;
  flex-shrink: 0;
}

.hb-sidebar__icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #e5e7eb;
}

.hb-sidebar__icon--active {
  background: #eff6ff;
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

.hb-sidebar__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d1d5db;
  margin-top: auto;
}

.hb-main {
  flex: 1;
  padding: 20px 24px;
  min-width: 0;
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.hb-breadcrumb {
  font-size: 12px;
  font-weight: 400;
  color: #9ca3af;
  margin-bottom: 14px;
}

.hb-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 16px 20px;
}

.hb-card__title {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 10px;
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
}

.hb-badge--green {
  background: #dcfce7;
  color: #166534;
}

.hb-badge--blue {
  background: #dbeafe;
  color: #1e40af;
}

.hb-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ── Shared: Page Header ── */
.hb-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.hb-page-header__title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.hb-page-header__search {
  font-size: 12px;
  color: #9ca3af;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 5px 12px;
}

.hb-search-icon {
  margin-right: 4px;
}

/* ── Shared: Table ── */
.hb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.hb-table thead tr {
  background: #f9fafb;
}

.hb-table th {
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.06em;
}

.hb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-weight: 400;
}

.hb-td-muted {
  color: #9ca3af;
}

/* ── Scene 1: Rep Trust ── */
.hb-s1-phase--a {
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hb-s1-phase--a.hb-s1-phase--visible {
  opacity: 1;
}

.hb-s1-phase--b {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 58%;
  padding: 16px 20px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
  z-index: 2;
  overflow-y: auto;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.hb-s1-phase--b.hb-s1-phase--visible {
  opacity: 1;
  pointer-events: auto;
}

/* Stats card */
.hb-s1-stats-card {
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 8px;
  border-radius: 8px;
}

.hb-s1-stats {
  display: flex;
  align-items: stretch;
}

.hb-s1-stat {
  flex: 1;
  padding: 10px 14px;
  border-right: 1px solid #e5e7eb;
  text-align: left;
}

.hb-s1-stat:last-child {
  border-right: none;
}

.hb-s1-stat--primary {
  flex: 1.5;
}

.hb-s1-stat__label {
  font-size: 10px;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 2px;
  text-align: left;
}

.hb-s1-stat__range {
  font-size: 9px;
  color: #9ca3af;
  font-weight: 400;
}

.hb-s1-stat__value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  text-align: left;
}

.hb-s1-stat--primary .hb-s1-stat__value {
  font-size: 28px;
}

/* Orders table card */
.hb-s1-orders-card {
  padding: 0;
  overflow: hidden;
  flex: 1;
  border-radius: 8px;
  min-height: 0;
}

.hb-table--orders th {
  padding: 8px 14px;
  text-align: left;
}

.hb-table--orders td {
  padding: 9px 14px;
  text-align: left;
}

.hb-s1-trow--new {
  background: #eff6ff;
}

.hb-s1-trow--new td:first-child {
  border-left: 3px solid #3b82f6;
}

.hb-s1-order-id {
  font-weight: 600;
  color: #6b7280;
}

.hb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}
.hb-avatar--blue {
  background: #3b82f6;
}
.hb-avatar--green {
  background: #10b981;
}
.hb-avatar--purple {
  background: #8b5cf6;
}
.hb-avatar--pink {
  background: #ec4899;
}
.hb-avatar--amber {
  background: #f59e0b;
}
.hb-avatar--teal {
  background: #14b8a6;
}
.hb-avatar--rose {
  background: #f43f5e;
}
.hb-avatar--indigo {
  background: #6366f1;
}
.hb-avatar--cyan {
  background: #06b6d4;
}
.hb-avatar--orange {
  background: #f97316;
}

.hb-s1-customer {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}

.hb-s1-detail-header {
  margin-bottom: 14px;
}

.hb-s1-detail-header__title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.hb-s1-detail-header__meta {
  font-size: 13px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hb-s1-journey-card {
  margin-bottom: 12px;
}

/* ── Timeline V2 (matches ActivityTimeline.tsx) ── */
.hb-timeline-v2 {
  display: flex;
  flex-direction: column;
}

.hb-tl-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 16px;
}

.hb-tl-step--final {
  padding-bottom: 0;
}

.hb-tl-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.hb-tl-icon--green {
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.hb-tl-icon--photo {
  overflow: hidden;
  padding: 0;
}
.hb-tl-icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hb-tl-connector {
  position: absolute;
  left: 15px;
  top: 34px;
  width: 1px;
  height: calc(100% - 18px);
  background: rgba(0, 0, 0, 0.1);
}

.hb-tl-body {
  flex: 1;
  min-width: 0;
  padding-top: 5px;
}

.hb-tl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hb-tl-title {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

.hb-tl-time {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.hb-tl-meta {
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
}

.hb-tl-meta__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 12px;
}

.hb-tl-meta__row:last-child {
  border-bottom: none;
}

.hb-tl-meta__label {
  color: #6b7280;
}
.hb-tl-meta__value {
  color: #111827;
  font-weight: 500;
}

/* ── Annotation overlay layer ── */
.hb-annotations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.hb-anno {
  position: absolute;
  pointer-events: none;
  opacity: 0;
}

/* Circle annotation */
.hb-anno--circle {
  top: 47.5%;
  left: 52%;
  width: 200px;
  height: 30px;
}

.hb-ink-circle {
  width: 100%;
  height: 100%;
}

.hb-ink-circle path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

/* "Reps get credit" text annotation */
.hb-anno--credit-text {
  top: 52%;
  left: 65%;
}

.hb-anno__text {
  font-family: "FLFont", sans-serif;
  font-size: 30px;
  color: #111;
  white-space: nowrap;
  transform: rotate(-8deg);
  transform-origin: left center;
  display: block;
}

.hb-tl-title--credit {
  color: #16a34a;
  font-weight: 600;
}

.hb-tl-meta__value--green {
  color: #16a34a;
  font-weight: 700;
}

/* Tab 3 annotation */
.hb-anno--s3 {
  z-index: 12;
}

.hb-anno--arrow {
  top: 18%;
  left: 40%;
  width: 60px;
  height: 60px;
}

.hb-ink-arrow {
  width: 100%;
  height: 100%;
}

.hb-ink-arrow path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

.hb-anno--launch-text {
  top: 14%;
  left: 38%;
}

.hb-anno--launch-text .hb-anno__text {
  font-size: 24px;
  color: var(--orange);
  transform: rotate(-6deg);
}

/* ── Scene 2: Org Confidence ── */
.hb-s2-statuses-card {
  padding: 0;
  border-radius: 8px;
  margin-bottom: 8px;
}

.hb-s2-statuses {
  display: flex;
  align-items: stretch;
}

.hb-s2-status {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-right: 1px solid #e5e7eb;
}

.hb-s2-status:last-child {
  border-right: none;
}

/* Micro illustrations */
.hb-s2-micro-anim {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.hb-s2-micro-anim svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Payments */
@keyframes paymentPulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(3);
    opacity: 0;
  }
}
.anim-payment-pulse {
  transform-origin: 17px 14px;
  animation: paymentPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* FairShare */
@keyframes fsNode {
  0%,
  10% {
    opacity: 0;
    transform: scale(0.5);
  }
  20%,
  80% {
    opacity: 1;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}
@keyframes fsLine {
  0%,
  15% {
    opacity: 0;
  }
  25%,
  80% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}
@keyframes fsPulseTop {
  0%,
  20% {
    transform: scale(1);
    opacity: 0;
  }
  40% {
    transform: scale(1);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}
.anim-fs-node-1 {
  animation: fsNode 3s infinite;
  transform-origin: 7px 18px;
}
.anim-fs-node-2 {
  animation: fsNode 3s infinite 0.2s;
  transform-origin: 12px 18px;
}
.anim-fs-node-3 {
  animation: fsNode 3s infinite 0.4s;
  transform-origin: 17px 18px;
}
.anim-fs-line-1 {
  animation: fsLine 3s infinite 0.1s;
}
.anim-fs-line-2 {
  animation: fsLine 3s infinite 0.3s;
}
.anim-fs-line-3 {
  animation: fsLine 3s infinite 0.5s;
}
.anim-fs-node-top {
  animation: fsNode 3s infinite 0.6s;
  transform-origin: 12px 7px;
}
.anim-fs-pulse-top {
  animation: fsPulseTop 3s infinite 0.6s;
  transform-origin: 12px 7px;
}

/* Sync */
@keyframes syncFwd {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(6px);
    opacity: 0;
  }
}
@keyframes syncRev {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(-6px);
    opacity: 0;
  }
}
.anim-sync-pkt-1 {
  animation: syncFwd 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
.anim-sync-pkt-2 {
  animation: syncRev 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1) 0.75s;
}

.hb-s2-status__name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}
.hb-s2-status__detail {
  font-size: 11px;
  color: #6b7280;
}

/* ── Scene 2: Storefront Preview ── */

.hb-s2-preview-card {
  padding: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px 12px 0 0;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hb-s2-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  border-radius: 12px 12px 0 0;
}

.hb-s2-preview-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hb-s2-preview-visitors {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f9fafb;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #f3f4f6;
}

.hb-s2-pulse-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}

.hb-s2-pulse-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid #22c55e;
  animation: s2pulse 2s infinite ease-out;
}

@keyframes s2pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.visitor-count {
  font-weight: 700;
  color: #111827;
}

.hb-s2-preview-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hb-s2-theme-info {
  font-size: 11px;
  color: #6b7280;
}

.hb-s2-theme-info strong {
  color: #111827;
  font-weight: 600;
}

.hb-btn-sm {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.hb-btn-sm:hover {
  background: #1d4ed8;
}

.hb-s2-preview-body {
  flex: 1;
  background: #f8f9fa;
  padding: 20px 20px 0 20px;
  display: flex;
  position: relative;
}

.browser-chrome--mini {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browser-chrome--mini .browser-chrome__bar {
  padding: 6px 12px;
  height: 32px;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.browser-chrome--mini .browser-chrome__dots span {
  background: #d1d5db;
}

.browser-chrome--mini .browser-chrome__addr {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.browser-chrome--mini .browser-chrome__addr svg path,
.browser-chrome--mini .browser-chrome__addr svg rect {
  fill: #9ca3af;
}

.browser-chrome--mini .browser-chrome__addr span {
  color: #4b5563;
  font-weight: 500;
}

.hb-s2-store-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hb-s2-preview-store {
  background: #fff;
  color: #111;
  flex: 1;
  position: relative;
}

.hb-store-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  font-family: "NeueHaas", sans-serif;
}

.hb-store-logo {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.hb-store-links {
  display: flex;
  gap: 12px;
  font-size: 9px;
  font-weight: 500;
  color: #4b5563;
  align-items: center;
}

.hb-store-icons {
  display: flex;
  gap: 10px;
  color: #111;
}

.hb-store-hero {
  display: flex;
  padding: 24px 24px 0 24px;
  height: calc(100% - 41px);
}

.hb-store-hero-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding-right: 24px;
}

.hb-store-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #6b7280;
  font-weight: 500;
}

.hb-store-hero-text h2 {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
  margin: 0;
  color: #111;
  letter-spacing: -0.02em;
}

.hb-store-hero-text p {
  font-size: 10px;
  line-height: 1.5;
  color: #4b5563;
  margin: 0;
  max-width: 90%;
}

.hb-store-hero-text button {
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 16px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 4px;
  cursor: pointer;
}

.hb-store-hero-img-box {
  width: 48%;
  background: #f3f4f6;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
  border-bottom: none;
}

/* ── Scene 3: Payment Reports ── */
.hb-s3-kpis {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.hb-s3-kpi {
  flex: 1;
  padding: 16px 20px;
}

.hb-s3-kpi__label {
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.hb-s3-kpi__value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hb-s3-trend {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.hb-s3-trend--up span {
  color: #16a34a;
  font-weight: 600;
}

.hb-s3-chart-area {
  width: 100%;
  height: 120px;
  position: relative;
}
.hb-area-svg {
  width: 100%;
  height: 100%;
}

.hb-grid-line {
  opacity: 0;
}

.hb-area-line {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
}

.hb-area-fill {
  opacity: 0;
}

/* Area Chart Scrubber & Tooltip */
.hb-chart-scrubber-wrap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  pointer-events: none;
}

.hb-chart-scrubber {
  position: absolute;
  top: 10px;
  bottom: 0;
  right: 0;
  width: 1px;
  background: rgba(37, 99, 235, 0.3);
  opacity: 0;
}

.hb-chart-playhead {
  position: absolute;
  /* Peak Y is ~10% from top (8px out of 80px SVG viewBox), but we'll let GSAP drive Y if we want, or just stick it to a fixed Y matching the end point. The final point is Y=8, which is 10% of 80. */
  top: 10%;
  right: 0;
  width: 10px;
  height: 10px;
  transform: translate(50%, -50%);
  opacity: 0;
}

.hb-chart-playhead__dot {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563eb;
  z-index: 2;
}

.hb-chart-playhead__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.4);
  animation: s3pulse 2s infinite;
  z-index: 1;
}

@keyframes s3pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hb-chart-tooltip {
  position: absolute;
  top: -24px;
  right: 0;
  transform: translateX(50%);
  background: #111;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  gap: 6px;
  align-items: center;
  opacity: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.hb-chart-tooltip__date {
  color: #9ca3af;
  font-weight: 400;
  font-size: 10px;
}

/* Bar chart */
.hb-s3-chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100px;
}

.hb-bar-grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2px;
  pointer-events: none;
}

.hb-bar-grid__line {
  height: 1px;
  width: 100%;
  background: repeating-linear-gradient(
    to right,
    #e5e7eb,
    #e5e7eb 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0;
}

.hb-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  justify-content: flex-end;
  gap: 1px;
}

.hb-bar {
  border-radius: 2px;
  height: 0;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hb-bar--green {
  background: #16a34a;
}
.hb-bar--red {
  background: #dc2626;
}

.hb-bar--animated {
  height: var(--bar-h);
}

/* Revenue by market */
.hb-s3-markets-summary {
  padding: 16px 20px;
}

.hb-s3-market-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hb-s3-market-row:last-child {
  border-bottom: none;
}

.hb-s3-market-name {
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  min-width: 90px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hb-flag {
  font-size: 15px;
  line-height: 1;
}

.hb-s3-progress {
  flex: 1;
  height: 6px;
  background: #f3f4f6;
  border-radius: 3px;
  overflow: hidden;
}

.hb-s3-progress__fill {
  height: 100%;
  width: 0;
  background: #2563eb;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hb-s3-progress__fill--animated {
  width: var(--prog);
}

.hb-s3-progress__fill--blue {
  background: #3b82f6;
}
.hb-s3-progress__fill--orange {
  background: #f97316;
}
.hb-s3-progress__fill--green {
  background: #22c55e;
}

.hb-s3-market-val {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  min-width: 60px;
  text-align: right;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .solution-scroll__flywheel-side {
    flex: 0 0 45%;
  }
  .solution-scroll__content-side {
    flex: 0 0 55%;
  }
  .flywheel-wrap {
    width: 80vh;
    height: 80vh;
    margin-left: -18vh;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 90px 0 10px;
    gap: 32px;
  }

  .hero-benefits {
    padding: 0 16px;
    margin-bottom: -120px;
  }

  .hero-benefits__tabs {
    gap: 0;
    width: 100%;
  }

  .hero-benefits__tab {
    font-size: 12px;
    padding: 10px 6px;
    gap: 6px;
  }

  .browser-chrome--benefits .browser-chrome__addr {
    display: none;
  }

  .hb-scene--active {
    opacity: 1 !important;
  }
  .hb-scene:not(.hb-scene--active) {
    display: none;
  }

  .hb-sidebar {
    width: 36px;
    padding: 8px 0;
    gap: 10px;
  }
  .hb-sidebar__icon {
    width: 14px;
    height: 14px;
  }
  .hb-sidebar__avatar {
    width: 16px;
    height: 16px;
  }

  .hb-main {
    padding: 10px 12px;
  }

  .hb-s1-stats {
    display: none;
  }
  .hb-s1-phase--b {
    width: 72%;
    padding: 10px 12px;
  }
  .hb-s1-detail-header__title {
    font-size: 13px;
  }
  .hb-s1-detail-header__meta {
    font-size: 11px;
  }
  .hb-callout--new-order {
    display: none;
  }
  .hb-callout--credit {
    display: none;
  }
  .hb-tl-icon {
    width: 24px;
    height: 24px;
  }
  .hb-tl-icon svg {
    width: 11px;
    height: 11px;
  }
  .hb-tl-connector {
    left: 11px;
  }
  .hb-tl-title {
    font-size: 11px;
  }
  .hb-tl-time {
    font-size: 9px;
  }
  .hb-tl-meta__row {
    font-size: 10px;
  }
  .hb-tl-step {
    gap: 8px;
    padding-bottom: 10px;
  }

  .hb-table--lg th {
    padding: 6px 10px;
    font-size: 9px;
  }
  .hb-table--lg td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .hb-s2-statuses {
    flex-direction: column;
    gap: 4px;
  }
  .hb-s2-status {
    min-height: 36px;
    padding: 8px 10px;
  }
  .hb-s2-status__name {
    font-size: 11px;
  }
  .hb-s2-status__detail {
    font-size: 10px;
  }
  .hb-s2-dot {
    width: 8px;
    height: 8px;
  }
  .hb-check {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .hb-s2-counter {
    font-size: 11px;
  }

  .hb-s3-kpis {
    flex-direction: column;
    gap: 6px;
  }
  .hb-s3-kpi {
    padding: 10px 12px;
  }
  .hb-s3-kpi__value {
    font-size: 20px;
  }
  .hb-s3-kpi__label {
    font-size: 9px;
  }
  .hb-s3-trend {
    font-size: 10px;
  }
  .hb-s3-chart-area {
    height: 40px;
  }
  .hb-s3-chart-bars {
    height: 35px;
  }
  .hb-s3-markets-summary {
    padding: 10px 12px;
  }
  .hb-s3-market-name {
    font-size: 11px;
    min-width: 70px;
  }
  .hb-s3-market-val {
    font-size: 11px;
  }
  .hb-s3-market-row {
    padding: 6px 0;
  }

  .hb-s1-commission {
    padding: 8px 12px;
  }
  .hb-s1-commission__value {
    font-size: 11px;
  }

  .solution-scroll {
    flex-direction: column;
    padding-top: 50px;
  }
  .torn-edge {
    height: 50px;
  }
  .torn-edge--section {
    height: 40px;
  }
  .trust-strip {
    padding: 180px 0 60px;
  }
  .solution-scroll__flywheel-side {
    flex: none;
    width: 100%;
    height: 40vh;
    position: sticky;
    top: 0;
    justify-content: center;
    z-index: 2;
    background: var(--bg);
  }
  .solution-scroll__content-side {
    flex: none;
    width: 100%;
    padding: 0 24px;
  }
  .flywheel-card {
    min-height: 60vh;
  }
  .flywheel-wrap {
    width: 38vh;
    height: 38vh;
    margin-left: 0;
  }

  .problem__content {
    grid-template-columns: 1fr;
  }
  .problem__visual {
    grid-column: 1;
    grid-row: auto;
    margin-bottom: 24px;
  }

  .feature-highlight__grid,
  .ai-section__grid,
  .blitz__grid {
    grid-template-columns: 1fr;
  }
  .feature-highlight__grid.reversed .feature-highlight__text {
    order: 1;
  }
  .feature-highlight__grid.reversed .feature-highlight__visual {
    order: 2;
  }

  .blitz-days {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    gap: 20px;
  }
  .blitz-day-wrapper--offset {
    transform: none;
    margin-top: 0;
  }
  .blitz-day--1,
  .blitz-day--2,
  .blitz-day--3,
  .blitz-day--4 {
    transform: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

}

@media (max-width: 480px) {
  .stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
