/* =========================================================
   Landing page - glass repaint
   ========================================================= */

/* ------- HERO ------- */
.hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; }
.hero h1 .accent { color: var(--accent); font-weight: 500; }
.hero__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 35%, transparent 75%);
}
.hero .lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; text-align: center; color: var(--text-2); }
.hero__ctas {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 4px;
}
.hero__visual {
  margin-top: 64px;
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  perspective: 1400px;
}
.hero__visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}

/* "Liquidity for every business" label bar sitting atop the hero UI
   (LP2 "Hero UI — add this on top of the Hero UI"). Slim gradient strip. */
.hero__uilabel {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 10px 0;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(91, 107, 255, 0.06) 20%,
    rgba(129, 140, 255, 0.10) 50%,
    rgba(255, 138, 180, 0.07) 80%,
    transparent 100%);
}

/* Embedded animation iframes - wrapped in glass shell */
.anim-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--shadow-glass);
  isolation: isolate;
}
.anim-frame iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
  background: transparent;
  color-scheme: light;
}
.anim-frame--hero {
  /* Aspect matches the dashboard pill exactly (1160:680) so the dashboard
     fills the iframe edge-to-edge — no transparent margins, no page
     background bleeding through. */
  aspect-ratio: 1160 / 680;
  background: transparent;
  border: 0;
  box-shadow: none;
  /* No outer radius — the dashboard already has its own rounded corners.
     A heavier wrapper radius was clipping the Fina logo / icons / sidebar.
     Keep overflow:hidden so the 200%-sized scaled iframe can't push
     horizontal scroll. */
  border-radius: 0;
}
.anim-frame--hero iframe {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: top left;
}
.anim-frame--usecase {
  aspect-ratio: 16 / 9;
  width: 100%;
}
.anim-frame--card {
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  border-radius: 14px;
}

.hero__trust {
  margin-top: 48px;
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap;
  color: var(--text-2);
  font-size: 14px;
}
.hero__trust span {
  display: inline-flex; align-items: center; gap: 8px;
}
.hero__trust .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(91, 107, 255, 0.14);
  border: 1px solid rgba(91, 107, 255, 0.35);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Hero glow blob (subtle radial wash above the canvas) */
.hero::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 1200px; height: 800px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(91, 107, 255, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ------- LOGO STRIP ------- */
/* Hidden per client feedback (LP2 "Trust Bar — hide the logos stripe for now").
   The "Liquidity for every business" label now sits atop the hero UI instead. */
.logo-strip {
  display: none;
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.logo-strip__label {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.logo-strip__track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
}
.logo-strip__track span {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity .3s ease, color .3s ease;
}
.logo-strip__track span:hover { opacity: 1; color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.logo-strip__viewport { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }

/* ------- VALUE CARDS ------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  perspective: 1500px;
}
.values__card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  /* Transparent borders — keep border slot for layout consistency, no visible line */
  border: 1px solid transparent;
  border-top-color: transparent;
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .6s var(--ease-out), background-color .25s ease, box-shadow .4s ease;
  position: relative;
  isolation: isolate;
  box-shadow: var(--shadow-glass);
  /* will-change: transform removed — was causing browsers to cache the entire
     card (incl. text) as a low-res raster while compositing, blurring text */
  /* Crisp text rendering inside the cards */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}
/* Per-element font-smoothing for the largest text where subpixel matters most */
.values__card h3,
.values__card p,
.values__card .values__big {
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
/* Shimmer-border: soft indigo glow sweeps diagonally across the border ring */
.values__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.5px;
  background-image: radial-gradient(
    transparent 0%,
    transparent 30%,
    var(--shimmer-color, #5B6BFF) 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 283% 283%;
  background-position: 153% 174%;
  animation: shimmer-border 10s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  box-shadow: inset 0 0 0 1.5px rgba(91, 107, 255, 0.10);
  filter:
    drop-shadow(0 0 4px rgba(91, 107, 255, 0.90))
    drop-shadow(0 0 10px rgba(91, 107, 255, 0.55))
    drop-shadow(0 0 22px rgba(91, 107, 255, 0.30));
}
.values__card:nth-child(2)::before { animation-duration: 12s; }
.values__card:nth-child(3)::before { animation-duration: 9s; }
.values__card:hover::before {
  animation-duration: 5s;
  filter:
    drop-shadow(0 0 5px rgba(91, 107, 255, 1))
    drop-shadow(0 0 14px rgba(91, 107, 255, 0.75))
    drop-shadow(0 0 30px rgba(91, 107, 255, 0.45));
}
/* Use background-color (not the shorthand) so the feature card's
   background-image (phone) isn't reset to none on hover. */
.values__card:hover {
  background-color: var(--glass-bg-hover);
  /* border stays transparent — user requested no visible borders */
}
.values__card > * { position: relative; z-index: 1; }
.values__card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.values__card p {
  color: var(--text-2);
  font-size: 15px;
  margin: 0;
}
.values__card--feature {
  background-color: #0E1320;
  color: #fff;
  /* Consistent dark colour block (LP2) — clean indigo wash behind the
     fast-decision visualization, no photo. */
  background-image:
    radial-gradient(120% 80% at 50% 0%, rgba(91, 107, 255, 0.30) 0%, transparent 55%),
    radial-gradient(120% 80% at 50% 100%, rgba(157, 240, 107, 0.10) 0%, transparent 55%);
  background-size: cover;
  background-position: center;
}
.values__card--feature h3,
.values__card--feature p {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
/* Keep the feature card dark on hover — the generic light hover bg was
   washing it white and hiding the white text. */
.values__card--feature:hover { background-color: #0E1320; }

/* Value 2 — "fast decision" visualization (Affirm-style). CSS-only loop:
   bar fills, status flips Reviewing… → Approved · 8s, then repeats. */
.decision {
  align-self: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.decision__row { display: flex; align-items: center; gap: 10px; }
.decision__avatar {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 13px;
}
.decision__meta { display: flex; flex-direction: column; line-height: 1.2; }
.decision__meta strong { font-size: 13px; font-weight: 600; color: #fff; }
.decision__meta span { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.decision__amt { margin-left: auto; font-size: 13px; font-weight: 600; color: #fff; }
.decision__bar {
  margin: 14px 0 10px;
  height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.decision__fill {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #9DF06B);
  animation: decFill 5s ease-in-out infinite;
}
.decision__statuses { position: relative; height: 18px; }
.decision__status {
  position: absolute; inset: 0;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
}
.decision__status--review { color: rgba(255, 255, 255, 0.78); animation: decReview 5s ease-in-out infinite; }
.decision__status--ok { color: #9DF06B; animation: decApproved 5s ease-in-out infinite; }
.decision__pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(91, 107, 255, 0.6);
  animation: decPulse 1.2s ease-out infinite;
}
@keyframes decFill   { 0% { width: 0; } 44% { width: 100%; } 100% { width: 100%; } }
@keyframes decReview { 0%,40% { opacity: 1; } 46%,100% { opacity: 0; } }
@keyframes decApproved { 0%,42% { opacity: 0; } 48%,94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes decPulse {
  0% { box-shadow: 0 0 0 0 rgba(91, 107, 255, 0.55); }
  100% { box-shadow: 0 0 0 8px rgba(91, 107, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .decision__fill { width: 100%; animation: none; }
  .decision__status--review { opacity: 0; animation: none; }
  .decision__status--ok { opacity: 1; animation: none; }
  .decision__pulse { animation: none; }
}

.values__big {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 0 40px var(--accent-glow);
}

/* Pills demo for flexible card */
.values__pills {
  display: flex; flex-direction: column; gap: 8px;
  margin: 24px 0;
  position: relative;
}
.values__pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}
.values__pill--ink { background: var(--ink); color: var(--ink); }
.values__pill--violet { background: var(--accent); color: #0a0a14; padding-right: 4px; }
.values__pill--violet-soft { background: rgba(91, 107, 255, 0.45); color: #0a0a14; padding-right: 4px; }
.values__pill--white { background: #fff; color: #0a0a14; padding-right: 4px; }
.values__pill .track {
  width: 60px; height: 4px;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  margin: 0 8px;
  position: relative;
}
.values__pill .track::after {
  content: ""; position: absolute; left: 0; top: -3px;
  width: 30%; height: 10px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
}
.values__pill .knob {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.values__pill--white .knob { border-color: #0a0a14; background: transparent; }

@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; }
}

/* ------- USE CASES ------- */
.usecases__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 32px;
}
.usecases__row:last-child { margin-bottom: 0; }
.usecases__row.flip > .usecases__viz { order: -1; }
.usecases__viz {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius-xl);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform .6s var(--ease-out), background .25s ease, border-color .25s ease;
  box-shadow: var(--shadow-glass);
  isolation: isolate;
}
.usecases__viz > .anim-frame { border-radius: inherit; border: 0; box-shadow: none; background: transparent; }
.usecases__viz:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  border-color: rgba(15, 23, 42, 0.14);
}
.usecases__viz img { max-height: 320px; width: auto; }
.usecases__copy h3 {
  font-size: clamp(28px, 3vw, 40px);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}
.usecases__copy .eyebrow { margin-bottom: 14px; display: inline-flex; }
.usecases__copy p { color: var(--text-2); margin-bottom: 16px; max-width: 38ch; }

@media (max-width: 900px) {
  .usecases__row, .usecases__row.flip { grid-template-columns: 1fr; gap: 32px; }
  .usecases__row.flip > .usecases__viz { order: initial; }
  /* Keep viz flush with the iframe — no padding/min-height so card matches
     the iframe's 16:9 aspect ratio exactly (no white space). */
  .usecases__viz { min-height: 0; padding: 0; }
}

/* ------- CHOOSE PATH ------- */
.path {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  perspective: 1500px;
}
.path__cards { display: flex; flex-direction: column; gap: 16px; }
.path__card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  transition: transform .5s var(--ease-out), background .3s ease, border-color .3s ease;
  cursor: pointer;
  gap: 24px;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-glass);
  will-change: transform;
}
.path__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.5px;
  background-image: radial-gradient(
    transparent 0%,
    transparent 30%,
    var(--shimmer-color, #5B6BFF) 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 283% 283%;
  background-position: 153% 174%;
  animation: shimmer-border 10s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  box-shadow: inset 0 0 0 1.5px rgba(91, 107, 255, 0.10);
  filter:
    drop-shadow(0 0 4px rgba(91, 107, 255, 0.90))
    drop-shadow(0 0 10px rgba(91, 107, 255, 0.55))
    drop-shadow(0 0 22px rgba(91, 107, 255, 0.30));
}
.path__card > * { position: relative; z-index: 1; }
/* Contextual scene per side (LP1/LP2: buyer = cafe, seller = warehouse).
   --ctx holds the scene art; drop in a real photo from Raqeeb later, e.g.
   .path__card--buyer { --ctx: url('../images/forking-cafe.jpg'); }
   Until then a themed tint + faint line-icon motif gives the context. */
.path__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image: var(--ctx, none);
  background-repeat: no-repeat;
  background-position: center, right 18px bottom 18px;
  background-size: cover, 110px;
  opacity: 0.45;
}
.path__card--buyer {
  --ctx:
    linear-gradient(110deg, rgba(248,250,252,0.0) 30%, rgba(255,243,228,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 24 24' fill='none' stroke='%23C8762B' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.4'/%3E%3Ccircle cx='18' cy='20' r='1.4'/%3E%3Cpath d='M2.5 3h2l2.2 11.2a1.5 1.5 0 0 0 1.5 1.2h8.4a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/%3E%3C/svg%3E");
}
.path__card--seller {
  --ctx:
    linear-gradient(110deg, rgba(248,250,252,0.0) 30%, rgba(232,238,255,0.6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 24 24' fill='none' stroke='%235B6BFF' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9h18l-1.5-5.5h-15L3 9Z'/%3E%3Cpath d='M5 9v10h14V9'/%3E%3Cpath d='M9 19v-5h6v5'/%3E%3C/svg%3E");
}
.path__card:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(15, 23, 42, 0.14);
}
.path__card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--ink);
}
.path__card p { color: var(--text-2); margin: 0; font-size: 14.5px; }
.path__card .arrow-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.path__card:hover .arrow-circle {
  background: var(--accent);
  color: #0a0a14;
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; }
}

/* ------- INTEGRATIONS ------- */
.integrations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1200px;
}
.integ {
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), scale .35s var(--ease-out), opacity .35s var(--ease-out);
  will-change: transform;
  scale: 1;
  opacity: 1;
}
.integ__img {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--shadow-glass);
}
.integ:hover .integ__img {
  transform: translateZ(40px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 10px 20px -10px rgba(0, 0, 0, 0.4);
  border-color: rgba(15, 23, 42, 0.18);
}
/* Spotlight effect: when any card in the row is being hovered, the others
   shrink to focus attention on the active one. We use the standalone `scale`
   property (not `transform: scale()`) because the [data-tilt-3d] JS sets an
   inline `transform` on every card at init — `scale` composes with that
   instead of conflicting. */
.integrations:hover .integ:not(:hover) {
  scale: 0.92;
  opacity: 0.7;
  transition: scale .35s var(--ease-out), opacity .35s var(--ease-out);
}
.integ__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(91, 107, 255, 0.35), rgba(91, 107, 255, 0) 45%);
  opacity: 0;
  transition: opacity .35s var(--ease-out);
  mix-blend-mode: screen;
}
.integ:hover .integ__glare { opacity: 1; }
.integ h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--ink);
  transform: translateZ(20px);
  transition: transform .6s var(--ease-out);
}
.integ p {
  color: var(--text-2);
  font-size: 14px;
  margin: 0;
  transform: translateZ(12px);
  transition: transform .6s var(--ease-out);
}
@media (hover: none) {
  .integ, .integ__img, .integ h4, .integ p { transform: none !important; }
}

@media (max-width: 900px) {
  .integrations { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .integrations { grid-template-columns: 1fr; }
}

/* ------- TESTIMONIALS ------- */
.testimonials__viewport {
  overflow: hidden;
}
.testimonials__track {
  display: flex;
  gap: 20px;
  padding: 0 32px;
  cursor: grab;
  will-change: transform;
}
.testimonials__track:active { cursor: grabbing; }
.tcard {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tcard__media {
  height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--shadow-glass);
}
.tcard__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}
.tcard__play {
  position: absolute;
  bottom: 16px; left: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a14;
  display: grid; place-items: center;
  z-index: 1;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 0 24px var(--accent-glow);
}
.tcard:hover .tcard__play { transform: scale(1.1); box-shadow: 0 0 36px var(--accent-glow); }
.tcard[data-video] { cursor: pointer; }
.tcard[data-video] .tcard__media { will-change: transform; transition: box-shadow .35s var(--ease-out), border-color .35s var(--ease-out); }
.tcard[data-video]:hover .tcard__media {
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  border-color: rgba(15, 23, 42, 0.18);
}
.tcard.is-expanding .tcard__media { visibility: hidden; }
/* ============ TGRID: Brex-style testimonial grid ============
   Layout: title block on the left (col 1, both rows), card cells fill the
   remaining 4 columns × 2 rows = 8 cells. Each cell is a portrait thumbnail.
   Click a cell → it spans 2×2 cells (covers itself + 3 neighbors) and
   plays the video at mobile-portrait aspect. */
.tgrid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 8px;
}
/* The rotor is the right-side column. Two stacked sets share one cell via
   grid-area: 1/1, fading between each other. */
.tgrid__rotor {
  position: relative;
  display: grid;
  align-items: stretch;
}
.tgrid__set {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}
.tgrid__set.is-active {
  opacity: 1;
  pointer-events: auto;
}
.tgrid__title {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 28px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
          backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}
.tgrid__title h2 { margin: 0; font-size: clamp(28px, 2.8vw, 42px); line-height: 1.05; }
.tgrid__title .lead { color: var(--text-2); font-size: 14px; margin: 0; }
.tgrid__title .eyebrow { margin-bottom: 0; }

/* In the grid, each card is a true mobile-portrait 9:16 cell — same aspect
   as a phone screen. When it plays the card scales up 2× and OVERLAPS the
   3 neighboring cells (right + below + below-right) instead of pushing them
   around — other cards stay in place. */
.tgrid__set > .tcard {
  flex: unset;
  width: auto;
  aspect-ratio: 9 / 16;
  margin: 0;
  display: block;
  cursor: pointer;
  transform-origin: top left;
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1),
              z-index 0s linear .55s;
}
/* Compact cell: Fina logo as the default thumbnail (logo-grid look — actual
   thumbnails reveal in the playing state once the user clicks). */
.tgrid__set > .tcard > .tcard__media {
  height: 100%;
  margin: 0;
  border-radius: var(--radius);
  background-color: #FFFFFF;
  background-image: none;             /* logo rendered via ::before mask below */
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
/* Default thumbnail content: author name + role + quote (injected by JS,
   matched to the card's video). Click still plays the video inline. */
.tcard__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  text-align: center;
  pointer-events: none;
  transition: transform .25s ease;
}
.tcard__who { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.tcard__who strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1.0vw, 15px);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.tcard__who span { font-size: 11px; color: var(--text-3); line-height: 1.2; }
.tcard p.tcard__quote {
  margin: 0;
  font-style: italic;
  font-weight: 300;
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-2);
  overflow: hidden;
}
.tgrid__set > .tcard:hover > .tcard__media .tcard__caption { transform: scale(1.02); }
/* Fade the caption out once the video starts playing. */
.tcard.is-playing .tcard__caption,
.tcard__media.is-playing .tcard__caption { opacity: 0; }
/* Hide the play-button and bottom-shadow ::after on the logo cells — they
   add noise and the logo grid should read clean. The mute toggle still
   appears once a video starts playing. */
.tgrid__set > .tcard > .tcard__media::after,
.tgrid__set > .tcard > .tcard__media .tcard__play { display: none; }
.tgrid__set > .tcard > h4,
.tgrid__set > .tcard > p { display: none; }

/* Expanded (playing): scale 2× covering itself + 3 neighbors. transform-origin
   is set per cell position so corner cards expand inward. Scale = 2 + gap/cellW,
   ≈ 2.10 for the 6-col grid with 14px gaps and ~134px cells. */
.tgrid__set > .tcard.is-playing {
  transform: scale(2.105);
  z-index: 10;
  transition: transform .55s cubic-bezier(0.22, 1, 0.36, 1),
              z-index 0s linear 0s;
}
/* Origin per cell position — corner cards expand inward, never off-grid.
   Layout (children of .tgrid): #1 title (col 1, rowspan 2), then 12 cards
   placed in cols 2-7 × rows 1-2.
     #2-#6  = top row,    cols 2-6 → expand right + down → top-left
     #7     = top row,    col 7    → expand left  + down → top-right
     #8-#12 = bottom row, cols 2-6 → expand right + up   → bottom-left
     #13    = bottom row, col 7    → expand left  + up   → bottom-right */
.tgrid__set > .tcard.is-playing { transform-origin: top left; }
/* Cards inside .tgrid__set are numbered 1–12. Layout: 6 cols × 2 rows.
     #1-#5  = top row, cols 1-5  → expand right + down → top-left
     #6     = top row, col 6     → expand left  + down → top-right
     #7-#11 = bottom row, cols 1-5 → expand right + up → bottom-left
     #12    = bottom row, col 6  → expand left  + up   → bottom-right */
.tgrid__set > .tcard.is-playing:nth-child(6) { transform-origin: top right; }
.tgrid__set > .tcard.is-playing:nth-child(7),
.tgrid__set > .tcard.is-playing:nth-child(8),
.tgrid__set > .tcard.is-playing:nth-child(9),
.tgrid__set > .tcard.is-playing:nth-child(10),
.tgrid__set > .tcard.is-playing:nth-child(11) { transform-origin: bottom left; }
.tgrid__set > .tcard.is-playing:nth-child(12) { transform-origin: bottom right; }

@media (max-width: 1100px) {
  .tgrid { grid-template-columns: 240px 1fr; }
}
@media (max-width: 900px) {
  /* Stack title above rotor on mobile (was 280px sidebar + cards). */
  .tgrid {
    grid-template-columns: 1fr;
  }
  .tgrid__title {
    grid-column: 1;
    grid-row: auto;
    padding: 24px;
  }
  /* The rotor now spans full width; re-flow the 12 cards into a tighter
     mobile grid so cells are large enough to read company names. */
  .tgrid__set {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
  }
  /* On mobile, fall back to grid-span — overlap-scale gets hairy with
     stacked rows and narrower cells; reflow is acceptable on phones. */
  .tgrid__set > .tcard.is-playing {
    transform: none;
    grid-column: span 2;
    grid-row: span 2;
  }
}
@media (max-width: 540px) {
  .tgrid__set {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
  }
  .tgrid__set > .tcard.is-playing { grid-column: span 2; grid-row: span 2; }
}

/* Inline video — when playing, the <video> is appended to .tcard (not .tcard__media)
   and covers the entire card, hiding the h4 + p below until the user clicks again
   or the video ends. */
.tcard {
  position: relative;
  /* Smooth grow / shrink — only used in non-grid contexts now (e.g. mobile fallback).
     In .tgrid, sizing is driven by grid-column/row span which transitions naturally. */
  transition:
    flex-basis  .55s cubic-bezier(0.22, 1, 0.36, 1),
    width       .55s cubic-bezier(0.22, 1, 0.36, 1),
    height      .55s cubic-bezier(0.22, 1, 0.36, 1),
    max-width   .55s cubic-bezier(0.22, 1, 0.36, 1);
}
/* (Removed: stale non-grid is-playing rule — all .tcard usages live in .tgrid now) */
/* The <video> element itself — fades + scales in from the thumbnail rect,
   then settles to fill the expanded card. */
.tcard__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: #000;
  z-index: 5;
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--shadow-lift);
  /* Enter animation: fade + zoom from a slightly smaller scale */
  animation: tcardVideoIn .45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes tcardVideoIn {
  from {
    opacity: 0;
    transform: scale(0.94);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}
/* Sound button gets the same smooth entrance */
.tcard.is-playing .tcard__sound {
  animation: tcardVideoIn .45s cubic-bezier(0.22, 1, 0.36, 1) .15s both;
}
/* Underlying thumbnail / name / quote crossfade out as the video appears,
   crossfade back in when it stops. Uses opacity instead of visibility so the
   transition is smooth in both directions. */
.tcard > .tcard__media,
.tcard > h4,
.tcard > p {
  transition: opacity .35s ease;
}
.tcard.is-playing > .tcard__media,
.tcard.is-playing > h4,
.tcard.is-playing > p {
  opacity: 0;
  pointer-events: none;
}
/* Hide the play button + bottom-shadow gradient while playing */
.tcard__media.is-playing::after { opacity: 0; }
.tcard__media.is-playing .tcard__play { opacity: 0; pointer-events: none; transform: scale(.85); }
.tcard__play { transition: transform .25s ease, opacity .2s ease, box-shadow .3s ease; }
/* Small mute/unmute toggle in the corner — sits on the video while playing */
.tcard__sound {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(7, 7, 13, 0.55);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 6;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background .2s ease, transform .2s ease;
}
.tcard__sound:hover { background: rgba(7, 7, 13, 0.75); transform: scale(1.05); }
.tcard__sound .icon-on  { display: none; }
.tcard__sound .icon-off { display: block; }
.tcard__sound:not(.is-muted) .icon-on  { display: block; }
.tcard__sound:not(.is-muted) .icon-off { display: none; }
/* Inside .tgrid, the playing card is scaled 2.105×, which would balloon the
   sound button to ~76px on screen. Shrink the CSS values so the visual size
   lands around 38px / 12px inset. */
.tgrid__set > .tcard.is-playing .tcard__sound {
  width: 18px;
  height: 18px;
  bottom: 6px;
  right: 6px;
  border-width: 0.5px;
}
.tgrid__set > .tcard.is-playing .tcard__sound svg {
  width: 10px;
  height: 10px;
}
.tcard h4 { font-family: var(--font-display); font-weight: 500; font-size: 17px; margin: 0 0 6px; color: var(--ink); }
.tcard p { color: var(--text-2); font-size: 14px; margin: 0; }

/* Video lightbox */
.vlight {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
  background: rgba(7, 7, 13, 0);
  transition: background .35s var(--ease-out);
}
.vlight.is-open {
  pointer-events: auto;
  background: rgba(7, 7, 13, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.vlight__player {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.7);
  transition: top .55s var(--ease-out), left .55s var(--ease-out), width .55s var(--ease-out), height .55s var(--ease-out), border-radius .55s var(--ease-out);
  will-change: top, left, width, height, transform;
}
.vlight.is-open .vlight__player { border-radius: var(--radius-lg); }
.vlight__player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.vlight__player .vlight__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity .35s ease;
  pointer-events: none;
}
.vlight__player.is-playing .vlight__poster { opacity: 0; }
.vlight__close {
  position: fixed;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity .3s ease, transform .35s var(--ease-out), background .25s;
  z-index: 2;
}
.vlight.is-open .vlight__close {
  opacity: 1;
  transform: scale(1);
  transition-delay: .25s;
}
.vlight__close:hover { background: rgba(255,255,255,0.18); transform: scale(1.06); }
.vlight__spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.vlight__player.is-loading .vlight__spinner { opacity: 1; }
.vlight__spinner::before {
  content: "";
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.18);
  border-top-color: var(--accent);
  animation: vspin 0.8s linear infinite;
}
@keyframes vspin { to { transform: rotate(360deg); } }
.vlight__sound {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s var(--ease-out), background .25s;
  z-index: 2;
}
.vlight.is-open .vlight__sound {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .35s;
}
.vlight__sound:hover { background: rgba(0,0,0,0.75); }
.vlight__sound .icon-on, .vlight__sound .icon-off { position: absolute; transition: opacity .2s ease; }
.vlight__sound.is-muted .icon-on { opacity: 0; }
.vlight__sound:not(.is-muted) .icon-off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .vlight, .vlight__player, .vlight__close, .vlight__sound { transition: none; }
}

/* ------- ESTIMATE / CALC ------- */
.estimate {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.estimate ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.estimate li { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.estimate li .check {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(91, 107, 255, 0.14);
  border: 1px solid rgba(91, 107, 255, 0.35);
  color: var(--accent);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.calc {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
  isolation: isolate;
}
.calc__top {
  background: rgba(7, 7, 13, 0.55);
  color: var(--ink);
  padding: 28px;
}
.calc__label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.calc__field {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.calc__field span:first-child { color: var(--text-2); font-size: 15px; }
.calc__field .amount { font-family: var(--font-display); font-size: 38px; color: var(--ink); font-weight: 500; }
.calc__slider {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 6px;
  margin: 18px 0 28px;
  cursor: pointer;
}
.calc__slider .fill {
  position: absolute; left: 0; top: 0; height: 100%;
  background: var(--accent);
  border-radius: 6px;
  transition: width .3s var(--ease-out);
  box-shadow: 0 0 12px var(--accent-glow);
}
.calc__slider .knob {
  position: absolute;
  top: 50%; transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #07070d;
  cursor: grab;
  transition: left .3s var(--ease-out);
  box-shadow: 0 0 20px var(--accent-glow);
}
.calc__terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc__term {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  font-weight: 500;
  font-size: 16px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: 2px;
}
.calc__term .days { font-size: 11px; font-family: 'Inter', sans-serif; letter-spacing: 0.1em; opacity: .6; text-transform: uppercase; }
.calc__term.is-active {
  background: rgba(91, 107, 255, 0.18);
  color: var(--ink);
  border-color: rgba(91, 107, 255, 0.65);
}
.calc__term:hover:not(.is-active) {
  background: var(--bg-tint);
  color: var(--ink);
}
.calc__bottom {
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.02);
}
.calc__bottom span:first-child { color: var(--text-2); font-size: 14px; }
.calc__bottom .total { font-family: var(--font-display); font-size: 28px; color: var(--ink); font-weight: 500; }
.calc__breakdown {
  padding: 16px 28px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.calc__breakdown div {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-3);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .estimate { grid-template-columns: 1fr; }
}

/* ------- FAQ ------- */
.faq { max-width: 820px; margin: 0 auto; perspective: 1500px; }
.faq__item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  border-radius: var(--radius);
  padding: 6px 24px;
  margin-bottom: 12px;
  transition: background .25s ease, border-color .25s ease, transform .5s var(--ease-out);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-glass);
  will-change: transform;
}
.faq__item:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(15, 23, 42, 0.14);
}
.faq__item.is-open {
  background: var(--glass-bg-hover);
  border-color: rgba(91, 107, 255, 0.30);
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  gap: 24px;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.faq__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .4s var(--ease-out), background .3s ease;
  font-size: 16px; font-weight: 300;
}
.faq__item.is-open .faq__icon {
  background: var(--accent);
  color: #0a0a14;
  border-color: var(--accent);
  transform: rotate(45deg);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-out);
  color: var(--text-2);
  font-size: 15.5px;
}
.faq__a > div { padding: 4px 0 16px; max-width: 60ch; }

/* ------- FINAL CTA ------- */
.cta-final {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(60px, 8vw, 100px);
  color: var(--ink);
  background:
    linear-gradient(125deg, rgba(7, 7, 13, 0.85) 0%, rgba(10, 10, 25, 0.65) 50%, rgba(7, 7, 13, 0.85) 100%),
    radial-gradient(800px 600px at 20% 30%, rgba(91, 107, 255, 0.22), transparent 60%),
    radial-gradient(700px 500px at 80% 70%, rgba(139, 92, 246, 0.18), transparent 60%),
    #0a0a14;
  background-size: 200% 200%, auto, auto, auto;
  animation: ctaShift 14s ease infinite;
  border: 1px solid var(--glass-border);
  border-top-color: var(--glass-border-top);
  box-shadow: var(--shadow-glass);
  isolation: isolate;
}
.cta-final__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.55) saturate(140%);
}
.cta-final::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 13, 0.92) 0%, rgba(7, 7, 13, 0.65) 55%, rgba(7, 7, 13, 0.25) 100%);
  z-index: 1;
}
@media (max-width: 720px) {
  .cta-final__video { object-position: 75% center; }
  .cta-final::after {
    background: linear-gradient(180deg, rgba(7, 7, 13, 0.92) 0%, rgba(7, 7, 13, 0.78) 55%, rgba(7, 7, 13, 0.55) 100%);
  }
}
.cta-final__inner { position: relative; z-index: 2; max-width: 680px; }
.cta-final h2 { color: var(--ink); }
.cta-final h2 .accent { color: var(--accent); }
.cta-final p { color: rgba(255,255,255,0.78); margin: 18px 0 32px; font-size: 17px; }
.cta-final__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

@keyframes ctaShift {
  0%, 100% { background-position: 0% 50%, 0 0, 0 0, 0 0; }
  50%      { background-position: 100% 50%, 0 0, 0 0, 0 0; }
}

.faq-section { padding-bottom: 24px; }
.cta-final-section { padding-top: 32px; }

/* ------- HORIZONTAL SCROLL CONTAINER (testimonials) ------- */
.hpin {
  position: relative;
  margin-top: 24px;
}
.hpin__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hpin__viewport::-webkit-scrollbar { display: none; }
.hpin__track {
  display: flex;
  gap: 24px;
  padding: 16px 8vw 32px;
  width: max-content;
}
.hpin__track .tcard { scroll-snap-align: start; }

/* =========================================================
   Dark-bg components - restore white text after bulk-flip
   ========================================================= */
.values__card--feature,
.values__card--feature h3,
.values__card--feature p,
.values__pill--ink,
.calc__top,
.calc__top .calc__label,
.calc__top .calc__field span,
.calc__top .amount,
.calc__top .calc__term,
.calc__bottom .total,
.tcard__play,
.path__card:hover .arrow-circle,
.faq__item.is-open .faq__icon,
.vlight__close,
.vlight__sound,
.section--ink,
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4, .section--ink p,
.cta-final,
.cta-final h2,
.cta-final p { color: #fff; }

/* Tinted-bg pills + active states should have ink text */
.tcard__play { color: #0a0a14; }
.calc__term.is-active { color: var(--ink); }
.faq__item.is-open .faq__icon { color: var(--ink); }

/* =========================================================
   PREFOOTER — positioning headline + AI assistant card
   ========================================================= */
.prefooter { padding-top: 40px; padding-bottom: 24px; }
.prefooter__headline {
  font-family: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 40px;
  text-align: center;
}
.prefooter__line { display: block; }
.prefooter__line + .prefooter__line { margin-top: 4px; }
.prefooter__headline .accent { color: var(--accent); }

.ai-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(900px 600px at 15% 20%, rgba(139, 92, 246, 0.55), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(91, 107, 255, 0.65), transparent 60%),
    linear-gradient(135deg, #6c4cf0 0%, #5b6bff 100%);
  background-size: 200% 200%, 200% 200%, auto;
  animation: ctaShift 16s ease infinite;
  isolation: isolate;
  box-shadow: var(--shadow-glass);
}
.ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(255,255,255,0.18), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Shimmer ring — bright radial spot travels diagonally around the border */
.ai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  padding: 1.6px;
  background-image: radial-gradient(
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 70%,
    transparent 100%
  );
  background-size: 283% 283%;
  background-position: 153% 174%;
  animation: shimmer-border 10s linear infinite;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
          mask-composite: exclude;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, 0.16);
  filter:
    drop-shadow(0 0 5px rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 12px rgba(212, 248, 79, 0.55))
    drop-shadow(0 0 22px rgba(91, 107, 255, 0.45));
}

/* Diagonal glare sweep across the card surface */
.ai-card__glare {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.ai-card__glare::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -30%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(255, 255, 255, 0.0) 38%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.0) 62%,
    transparent 100%
  );
  filter: blur(6px);
  transform: translateX(-120%);
  animation: ai-card-glare 7s ease-in-out infinite;
  animation-delay: 1.5s;
}
@keyframes ai-card-glare {
  0%   { transform: translateX(-120%); opacity: 0; }
  8%   { opacity: 1; }
  55%  { transform: translateX(620%); opacity: 1; }
  62%  { transform: translateX(620%); opacity: 0; }
  100% { transform: translateX(620%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-card::after,
  .ai-card__glare::before { animation: none; }
}
.ai-card__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.ai-card h3 {
  color: #fff;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.ai-card p {
  color: rgba(255,255,255,0.86);
  font-size: 16px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 auto 32px;
}
.ai-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 20px rgba(7,7,13,0.12);
}
.ai-pill:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 14px 28px rgba(7,7,13,0.18);
}
.ai-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--ink);
}
.ai-pill__arrow {
  margin-left: 2px;
  opacity: 0.7;
  transition: transform .25s ease, opacity .25s ease;
}
.ai-pill:hover .ai-pill__arrow {
  transform: translateX(3px);
  opacity: 1;
}
.ai-pill--dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7,7,13,0.28);
}
.ai-pill--dark:hover {
  background: #000;
  box-shadow: 0 14px 28px rgba(7,7,13,0.36);
}
.ai-pill--dark .ai-pill__arrow { color: #fff; }

@media (max-width: 720px) {
  .prefooter__headline { font-size: clamp(26px, 7vw, 40px); margin-bottom: 28px; }
  .ai-card__pills { gap: 8px; }
  .ai-pill { padding: 10px 16px; font-size: 14px; }
}
