/* trades.css — Light-theme styles for the G Vibes $499 Trades Website landing page. */
/* Forked from promo.css; brand tokens overridden for light bg + purple/gold accents. */
/* Brand guide: gvibes_brain.md (READ-ONLY). */

@font-face {
  font-family: 'Arimo';
  src: url('fonts/Arimo.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/WorkSans.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Permanent Marker';
  src: url('fonts/PermanentMarker.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arimo';
  src: url('fonts/Arimo-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Permanent Marker';
  src: url('fonts/PermanentMarker-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  /* Light theme — overrides brain.md's dark navy for this campaign only */
  --bg: #fafafa;
  --bg-alt: #f7eefb;            /* faint purple wash for trust strip */
  --bg-card: #ffffff;
  --bg-deep: #1d0a2e;           /* deep brand-purple; used as problem-card base */
  --text: #1a1a1a;
  --text-soft: #4a4a4a;
  --text-mute: #6b6b6b;
  --line: #e5e5e7;

  /* Brand purple — #8A05BE primary (from brain.md visual identity) */
  --purple: #8A05BE;
  --purple-light: #B83FE0;
  --purple-deep: #66048E;
  --line-purple: #8A05BE4d;
  --glass-purple-bg: #8A05BE12;
  --gradient-purple: linear-gradient(135deg, #8A05BE, #B83FE0);

  /* Gold reserved EXCLUSIVELY for the $499 price */
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-deep: #b45309;

  /* Gradients */
  --gradient-text: linear-gradient(95deg, #8A05BE 0%, #B83FE0 42%, #f59e0b 100%);
  --gradient-cta: linear-gradient(135deg, #8A05BE 0%, #66048E 100%);

  /* Shadows (lighter for light bg) */
  --glow-purple: 0 10px 30px #8A05BE3a;
  --glow-purple-lg: 0 16px 44px #8A05BE52;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 2px 6px rgba(0,0,0,0.06), 0 16px 40px rgba(0,0,0,0.10);

  /* Type */
  --font-display: 'Work Sans', 'Arial', sans-serif;
  --font-body: 'Arimo', 'Arial', sans-serif;
  --font-accent: 'Permanent Marker', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button { font-family: inherit; }

/* ── Type helpers ── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--purple-deep);
  display: inline-flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.eyebrow::before {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--purple); display: inline-block;
}
.eyebrow.center::after {
  content: ''; width: 24px; height: 2px; border-radius: 2px;
  background: var(--purple); display: inline-block;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
  color: var(--text); text-wrap: balance;
}
.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.marker {
  font-family: var(--font-accent); font-weight: 400;
  letter-spacing: 0.01em; color: var(--purple);
}
.lede {
  font-family: var(--font-body); font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-soft); line-height: 1.65; text-wrap: pretty;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-radius: 14px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  border-radius: 14px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; white-space: nowrap;
  padding: 15px 30px; color: #fff;
  background: var(--gradient-cta);
  box-shadow: var(--glow-purple);
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--glow-purple-lg); }
.btn-sm { padding: 10px 20px; font-size: 14px; border-radius: 10px; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg);
}
.btn-primary:hover::after { animation: shine .9s ease forwards; }
@keyframes shine { to { left: 130%; } }

.btn-ghost {
  padding: 15px 28px; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover { border-color: var(--line-purple); transform: translateY(-2px); }

/* ── Badge / chip ── */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px; border-radius: 99px;
  background: var(--glass-purple-bg); border: 1px solid var(--line-purple);
  font-size: 12.5px; font-weight: 700; color: var(--purple-deep);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--purple);
  display: inline-block; flex-shrink: 0;
}
.dot-live { box-shadow: 0 0 0 0 rgba(138,5,190,0.5); animation: pulseDot 2s infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(138,5,190,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(138,5,190,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,5,190,0); }
}

.chip {
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 8px;
  background: rgba(138,5,190,0.08); border: 1px solid rgba(138,5,190,0.2);
  color: var(--purple-deep);
}

/* ── Card ── */
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow-card);
}

/* ── Section scaffold ── */
.section { padding: clamp(64px, 9vw, 124px) clamp(20px, 5vw, 80px); position: relative; }
.wrap { max-width: 1180px; margin: 0 auto; position: relative; z-index: 2; }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(0.16,1,0.3,1), transform .7s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Float keyframes ── */
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-22px) rotate(2deg); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 33% { transform: translate(30px,-26px); } 66% { transform: translate(-24px,18px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes barGrow { from { width: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-mockup { order: -1; max-width: 460px; margin: 0 auto; }
  .promo-bar { grid-template-columns: 1fr !important; }
  .promo-divider { display: none !important; }
  .pos-grid, .why-grid, .apply-grid, .incl-grid { grid-template-columns: 1fr !important; }
  .steps-grid { grid-template-columns: repeat(2,1fr) !important; }
  .get-grid, .guard-grid { grid-template-columns: 1fr 1fr !important; }
  .nav-links { display: none !important; }
}
@media (max-width: 600px) {
  .steps-grid, .get-grid, .guard-grid { grid-template-columns: 1fr !important; }
  .stat-card { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
}

/* Nav (light glass, sticky) */
.nav-light {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav-light.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo img { display: block; }

/* Orbs (subtle on light) */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.10; }
.orb-1 { width: 600px; height: 600px; background: var(--purple-light); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: var(--gold-light); bottom: -150px; right: -150px; }

/* Footer — animated brandmark footer (adapted from modem-animated-footer) */
.footer-anim {
  position: relative;
  width: 100%;
  margin-top: 80px;
  overflow: hidden;
}
.footer-anim-inner {
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 24px 0;
}

/* Top content block — centered brand, socials, nav */
.footer-anim-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-anim-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-anim-name {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.footer-anim-desc {
  margin: 0;
  max-width: 24rem;
  color: var(--text-mute);
  font-weight: 600;
  font-style: italic;
}

.footer-anim-socials { display: flex; gap: 16px; margin: 20px 0 8px; }
.footer-anim-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  transition: color .25s ease, transform .3s ease;
}
.footer-anim-social:hover { color: var(--purple); transform: scale(1.12); }

.footer-anim-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 100%;
  padding: 0 16px;
}
.footer-anim-link {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .3s ease, font-weight .3s ease;
}
.footer-anim-link:hover { color: var(--purple); font-weight: 700; }

/* Copyright row */
.footer-anim-bottom {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 96px auto 0;
  padding: 0 16px;
  text-align: center;
}
.footer-anim-bottom p { margin: 0; color: var(--text-mute); font-size: 15px; }

/* Giant background brandmark */
.footer-anim-bigtext {
  position: absolute;
  left: 50%;
  bottom: 9rem;
  transform: translateX(-50%);
  z-index: 0;
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  max-width: 95vw;
  pointer-events: none;
  user-select: none;
  background: linear-gradient(to bottom, var(--line-purple), #8A05BE1a, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Floating logo badge */
.footer-anim-badge {
  position: absolute;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  z-index: 3;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(138, 5, 190, 0.18);
  transition: border-color .4s ease;
}
.footer-anim-badge:hover { border-color: var(--purple); }
.footer-anim-badge-inner {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.footer-anim-badge-inner img { width: 64px; height: 64px; object-fit: contain; }

/* Gradient divider line */
.footer-anim-line {
  position: absolute;
  left: 50%;
  bottom: 8rem;
  transform: translateX(-50%);
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--line-purple), transparent);
}

/* Bottom fade shadow */
.footer-anim-shadow {
  position: absolute;
  bottom: 7rem;
  width: 100%;
  height: 6rem;
  z-index: 1;
  background: linear-gradient(to top, var(--bg-alt), rgba(247, 238, 251, 0.8), rgba(247, 238, 251, 0.4));
  filter: blur(1em);
  pointer-events: none;
}

@media (min-width: 768px) {
  .footer-anim-inner { min-height: 34rem; }
  .footer-anim-badge-inner { width: 110px; height: 110px; }
  .footer-anim-badge-inner img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .footer-anim-social, .footer-anim-link, .footer-anim-badge { transition: none; }
  .footer-anim-social:hover { transform: none; }
}

/* Hero */
.hero { position: relative; padding: 48px 24px 80px; overflow-x: clip; }
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 32px;
  align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 13px; font-weight: 600;
  color: var(--purple); margin: 0;
}
/* Long hero eyebrow must wrap on narrow screens (overrides the nowrap type-helper)
   so .hero's overflow-x clip never truncates it. */
.hero .eyebrow { white-space: normal; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05; font-weight: 700;
  margin: 0; letter-spacing: -0.02em;
}
.hero-price-inline {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-soft); max-width: 56ch; margin: 0;
}
.hero-cta-row { margin-top: 8px; }
.hero-trust {
  font-size: 14px; color: var(--text-mute); margin: 0;
}

/* Hero orbit ring (replaces the old Ken Burns photo) */
.hero-orbit {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 42vw, 560px);
  perspective: 1100px;
}
.hero-orbit-glow {
  grid-area: 1 / 1;
  width: clamp(220px, 30vw, 380px);
  height: clamp(220px, 30vw, 380px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(138,5,190,0.30), transparent 65%);
  filter: blur(46px);
  pointer-events: none;
}
.hero-orbit-tilt {
  grid-area: 1 / 1;
  place-self: center;
  position: relative;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform .25s ease-out;
}
.hero-orbit-spin {
  position: absolute; top: 0; left: 0;
  --orbit-r: clamp(96px, 13vw, 168px);
  --card-w: clamp(96px, 12vw, 150px);
  transform-style: preserve-3d;
  animation: heroOrbit 40s linear infinite;
}
.hero-orbit-card {
  position: absolute; top: 0; left: 0;
  width: var(--card-w);
  transform:
    translate(-50%, -50%)
    rotate(var(--a, 0deg))
    translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * var(--a, 0deg)));
}
.hero-orbit-card-inner {
  transform-origin: 50% 50%;
  animation: heroOrbitCard 40s linear infinite;
}
.hero-orbit-shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}
@keyframes heroOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes heroOrbitCard { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

@media (max-width: 1023px) {
  .hero-orbit { min-height: 320px; }
  .hero-orbit-spin {
    --orbit-r: clamp(78px, 24vw, 132px);
    --card-w: clamp(84px, 22vw, 124px);
  }
}

/* Reveal animation primitives */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1; transform: none;
}

/* CTA buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  background: var(--gradient-cta);
  color: white; font-weight: 600;
  border: none; border-radius: 12px;
  cursor: pointer; text-decoration: none;
  box-shadow: var(--glow-purple);
  transition: transform .15s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-purple-lg);
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-sm  { padding: 10px 16px; font-size: 14px; }
.btn-lg  { padding: 18px 28px; font-size: 17px; }

/* Hero responsive: split on desktop */
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero { padding: 80px 24px 120px; }
}

/* Promo strip — kinetic marquee announcing the limited-time offer */
.promo-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  border-top: 1px solid var(--line-purple);
  border-bottom: 1px solid var(--line-purple);
  padding: clamp(22px, 3.4vw, 38px) 0;
}
/* Diffuse radial glow behind the band (fixed-cost, non-scrolling) */
.promo-strip::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto;
  height: 180%;
  background: radial-gradient(60% 70% at 50% 50%, #8A05BE1f 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* Screen-reader text — the marquee track itself is aria-hidden to avoid repetition */
.promo-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Fade the band edges so phrases enter/exit cleanly */
.promo-viewport {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}
.promo-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: promoScroll 30s linear infinite;
  will-change: transform;
}
.promo-strip:hover .promo-track { animation-play-state: paused; }
@keyframes promoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.promo-item {
  display: inline-flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding-right: clamp(18px, 3vw, 42px);
  white-space: nowrap;
}
.promo-phrase {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, 2vw, 1.55rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  line-height: 1;
}
.promo-phrase.is-fill {
  background: linear-gradient(160deg, var(--purple) 0%, var(--purple-deep) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.promo-phrase.is-solid {
  color: var(--purple-deep);
}
.promo-spark {
  flex: none;
  color: var(--purple-light);
  animation: promoTwinkle 2.6s ease-in-out infinite;
}
@keyframes promoTwinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.8) rotate(0deg); }
  50%      { opacity: 1;    transform: scale(1) rotate(45deg); }
}

@media (max-width: 768px) {
  .promo-phrase { font-size: clamp(0.88rem, 4vw, 1.1rem); }
}

@media (prefers-reduced-motion: reduce) {
  .promo-track {
    animation: none;
    width: 100%;
    justify-content: center;
  }
  .promo-spark { animation: none; }
  /* Show a single static pair, centered */
  .promo-track > .promo-item:nth-child(n + 3) { display: none; }
}

/* Section primitive (used by most sections below) */
.section { padding: 80px 24px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1; font-weight: 700;
  margin: 0 0 48px; letter-spacing: -0.01em;
}

/* Problem — image-as-background cards (human pain-point photos + dark scrim) */
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.problem-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: var(--shadow-card);
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
/* Inner edge + purple glow that lights up on hover */
.problem-card::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  pointer-events: none;
  transition: box-shadow .45s ease;
}
.problem-card:hover,
.problem-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), 0 24px 60px #1d0a2e40;
}
.problem-card:hover::after,
.problem-card:focus-within::after {
  box-shadow: inset 0 0 0 1px var(--line-purple), inset 0 -70px 90px -50px #8A05BE80;
}

.problem-media { position: absolute; inset: 0; z-index: 0; }
.problem-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 28%;
  display: block;
  filter: saturate(.9) contrast(1.02);
  transform: scale(1.02);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .45s ease;
}
.problem-card:hover .problem-media img,
.problem-card:focus-within .problem-media img {
  transform: scale(1.08);
  filter: saturate(1) contrast(1.04);
}
.problem-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, #170825 2%, #170825d9 26%, #17082540 56%, #17082500 80%),
    linear-gradient(to top, #8A05BE26, transparent 42%);
}

.problem-content {
  position: relative;
  z-index: 2;
  padding: 28px 24px 24px;
  color: #fff;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.problem-card:hover .problem-content,
.problem-card:focus-within .problem-content { transform: translateY(-4px); }

.problem-index {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px; font-weight: 600; letter-spacing: .16em;
  color: var(--purple-light);
  margin-bottom: 12px;
}
.problem-card-title {
  font-family: var(--font-display);
  font-size: 21px; font-weight: 700; line-height: 1.15;
  margin: 0 0 10px; letter-spacing: -0.01em;
  text-wrap: balance;
}
/* Animated accent rule that grows out from under the title on hover */
.problem-card-title::after {
  content: '';
  display: block;
  width: 30px; height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: var(--gradient-purple);
  transform-origin: left;
  transform: scaleX(.5);
  opacity: .75;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .45s ease;
}
.problem-card:hover .problem-card-title::after,
.problem-card:focus-within .problem-card-title::after {
  transform: scaleX(1.9);
  opacity: 1;
}
.problem-card-body {
  color: rgba(255,255,255,.8);
  font-size: 15px; line-height: 1.5;
  margin: 0; max-width: 34ch;
}
@media (max-width: 768px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { min-height: 380px; }
  .problem-card:hover { transform: none; }
}

/* Bento — asymmetric "product features" showcase grid */
.includes-eyebrow { margin: 0 auto 14px; }

.includes-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.bento-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bento-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--line-purple);
}

.bento-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 12px;
  color: var(--purple-deep);
  background: var(--glass-purple-bg);
  border: 1px solid var(--line-purple);
}
.bento-icon svg { width: 22px; height: 22px; }

.bento-tile-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.bento-tile-head .bento-icon { margin-bottom: 0; }

.bento-badge {
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--purple-deep);
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-purple);
  background: var(--glass-purple-bg);
  white-space: nowrap;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.bento-body { color: var(--text-soft); margin: 0; font-size: 15px; }

/* Tall flagship card */
.bento-tile--tall .bento-icon { width: 52px; height: 52px; }
.bento-tile--tall .bento-icon svg { width: 26px; height: 26px; }
.bento-tile--tall .bento-title { font-size: 24px; }
.bento-tile--tall .bento-body { font-size: 16px; }
.bento-chips {
  list-style: none; margin: auto 0 0; padding: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.bento-chips li {
  font-size: 12.5px; font-weight: 600; color: var(--purple-deep);
  padding: 6px 12px; border-radius: 999px;
  background: var(--glass-purple-bg);
  border: 1px solid var(--line-purple);
}

/* Stat emphasis card */
.bento-stat { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; }
.bento-stat-num {
  font-family: var(--font-display);
  font-size: 40px; font-weight: 800; line-height: 1;
  letter-spacing: -0.03em; color: var(--purple-deep);
}
.bento-stat-cap { font-size: 13px; font-weight: 600; color: var(--text-mute); }

/* Wide bottom card */
.bento-tile--wide {
  flex-direction: row; align-items: center; gap: 28px;
  overflow: hidden;
}
.bento-wide-copy { flex: 1; }
.bento-phone {
  position: relative; flex: 0 0 auto;
  width: 92px; height: 132px;
  border-radius: 18px;
  background: var(--gradient-purple);
  box-shadow: var(--glow-purple);
}
.bento-phone::before {
  content: ''; position: absolute; inset: 7px;
  border-radius: 12px; background: var(--bg-card);
}
.bento-phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 4px; border-radius: 999px;
  background: var(--line); z-index: 1;
}

/* ≥1024px: full 3-column × 3-row showcase layout */
@media (min-width: 1024px) {
  .includes-bento {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(150px, auto));
  }
  .bento-tile--tall { grid-column: 1; grid-row: 1 / span 3; }
  .bento-tile--wide { grid-column: 2 / span 2; }
}

/* Tablet: keep the tall + wide accents in a 2-col grid */
@media (min-width: 641px) and (max-width: 1023px) {
  .includes-bento { grid-auto-rows: minmax(150px, auto); }
  .bento-tile--tall { grid-row: span 2; }
  .bento-tile--wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .includes-bento { grid-template-columns: 1fr; }
  .bento-tile--wide { flex-direction: column; align-items: flex-start; }
  .bento-phone { display: none; }
}

/* Process */
.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process-line {
  position: absolute;
  top: 36px; left: 8%; width: 84%;
  height: 4px;
  pointer-events: none;
}
/* Timeline draws left-to-right only once it scrolls into view */
.process-line line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.process-line.is-visible line {
  animation: lineDraw 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes lineDraw { to { stroke-dashoffset: 0; } }

.process-step { position: relative; text-align: center; }
.process-num {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--gradient-cta);
  color: white; font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
  margin: 0 auto 16px;
  box-shadow: var(--glow-purple);
  position: relative; z-index: 1;
  transform: scale(0.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
/* Node pops into place as the timeline draw reaches it (no fill so :hover stays live) */
.process-step.is-visible .process-num {
  transform: none;
  animation: numPop .7s cubic-bezier(.34, 1.56, .64, 1) var(--reveal-delay, 0ms) backwards;
}
.process-step:hover .process-num {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--glow-purple-lg);
}
@keyframes numPop {
  0%   { transform: scale(.4); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
/* Arrival "ping" ring as each node lands */
.process-num::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--purple-light);
  opacity: 0;
  pointer-events: none;
}
.process-step.is-visible .process-num::after {
  animation: ringPing .9s ease-out calc(var(--reveal-delay, 0ms) + 120ms) both;
}
@keyframes ringPing {
  0%   { opacity: .7; transform: scale(.85); }
  100% { opacity: 0;  transform: scale(1.7); }
}
.process-step-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.process-step-body { color: var(--text-soft); margin: 0; }

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-line { display: none; }

  /* Left-rail timeline: number in a left column, copy on the right */
  .process-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    column-gap: 18px;
    align-items: start;
    text-align: left;
  }
  .process-num { grid-row: 1 / span 2; margin: 0; }

  /* Connector drops from each node to the next, drawn as the step reveals */
  .process-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 35px; top: 80px;
    width: 2px;
    height: calc(100% - 80px + 32px);
    background: var(--purple-light);
    opacity: .55;
    transform: scaleY(0);
    transform-origin: top;
  }
  .process-step.is-visible:not(:last-child)::before {
    animation: railDraw .6s ease-out calc(var(--reveal-delay, 0ms) + 220ms) forwards;
  }
}
@keyframes railDraw { to { transform: scaleY(1); } }

/* Recent work — animated card stack */
.work-stack {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.work-stack-deck {
  position: relative;
  width: 100%;
  /* Height comes from the in-flow front card (see .work-stack-card--front);
     padding reserves the headroom that the peeking background cards occupy. */
  padding-top: 28px;
}
.work-stack-card {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transform-origin: top center;
  transform: translateX(-50%) translateY(calc(var(--slot) * -14px)) scale(calc(1 - var(--slot) * 0.05));
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .3s;
  animation: workCardIn .5s ease both;
  will-change: transform;
}
/* The front card sits in normal flow so the deck is exactly as tall as the
   card at any width — no hardcoded height to overflow onto the Next button. */
.work-stack-card--front {
  position: relative;
  left: auto;
  top: 0;
  transform: none;
}
.work-stack-card.is-exiting {
  transform: translateX(-50%) translateY(150px) scale(1);
  opacity: 0;
  transition: transform .6s cubic-bezier(.4,0,.2,1), opacity .6s;
  animation: none;
  pointer-events: none;
}
@keyframes workCardIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.work-stack-bar {
  height: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  background: #f7eefb;
  border-bottom: 1px solid var(--line);
}
.work-stack-bar span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfcadf;
}
.work-shot { aspect-ratio: 16/10; overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-meta { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.work-meta strong { font-size: 16px; }
.work-meta span { font-size: 14px; color: var(--text-mute); }
.work-link { color: var(--purple) !important; font-weight: 600; margin-top: 8px; }
.work-stack-next {
  position: relative;
  z-index: 30; /* stays above cards, incl. the exiting card sliding past it */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.work-stack-next:hover { box-shadow: var(--shadow-card); transform: translateY(-1px); }
.work-stack-next:active { transform: scale(.98); }
@media (prefers-reduced-motion: reduce) {
  .work-stack-card { transition: none; animation: none; }
  .work-stack-card.is-exiting { display: none; }
}
/* Desktop: wider card, image height held steady */
@media (min-width: 1024px) {
  .work-stack { max-width: 784px; }
  /* fixed height keeps the screenshot at its original size as the card widens */
  .work-shot { aspect-ratio: auto; height: 350px; }
}

/* Pricing */
.price-card {
  max-width: 480px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-card-hover);
  text-align: center;
  position: relative;
}
.price-badge {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.price-sub { color: var(--text-mute); margin: 4px 0 24px; font-size: 14px; }
.price-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  text-align: left;
}
.price-list li { color: var(--text); display: flex; gap: 10px; }
.price-list li span { color: var(--purple); font-weight: 700; }
.price-cta { width: 100%; justify-content: center; }

/* Comparison */
.compare {
  max-width: 800px; margin: 48px auto 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.compare-head td { font-weight: 700; color: var(--text); background: var(--bg-alt); }
.compare tr:not(.compare-head) td:first-child { color: var(--text-mute); }
.compare tr:not(.compare-head) td:nth-child(2) { color: var(--purple-deep); font-weight: 600; }

/* FAQ */
.faq-narrow { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 18px 24px;
  font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-q:focus-visible { outline: 2px solid var(--purple); outline-offset: -2px; }
.faq-chev {
  color: var(--purple); transition: transform .25s ease;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); }
.faq-a-wrap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .25s ease;
}
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a {
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-soft);
}
.faq-item.is-open .faq-a { padding: 0 24px 18px; }

/* Visually hidden but available to AT + crawlers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Sticky mobile bottom CTA */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px;
  z-index: 40; display: none;
  transform: translateY(110%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn-primary { width: 100%; justify-content: center; }
@media (max-width: 768px) { .sticky-cta { display: block; } }

/* Contact form */
.contact-narrow { max-width: 720px; }
.contact-sub { color: var(--text-soft); margin: 0 0 32px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-field--full { grid-column: 1 / -1; }
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  padding: 12px 14px;
  font-size: 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--purple);
  outline-offset: 1px;
}
.form-err { color: #b91c1c; font-size: 13px; }
.form-err--block { display: block; margin-top: 8px; }
.form-success {
  background: var(--bg-card); border: 1px solid var(--line-purple);
  border-radius: 16px; padding: 32px; text-align: center;
}
