/* =========================================================
   COCOA DESIGN SYSTEM v2.0 — implementation
   Playful fintech · Glass · Solid fills · Archivo Black
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand */
  --cocoa-50:  #F1ECFB;
  --cocoa-100: #E5DBF8;
  --cocoa-200: #CDB8F1;
  --cocoa-300: #A78AE6;
  --cocoa-400: #845BDB;
  --cocoa-500: #5b2ecc;
  --cocoa-600: #5b2ecc;
  --cocoa-700: #4623a3;
  --cocoa-800: #2e1770;
  --cocoa-900: #180B3B;

  --teal-300:  #A5DCEA;
  --teal-500:  #58B8D6;
  --teal-700:  #2F7C96;

  --lime-300:  #E5F2A1;
  --lime-500:  #C8E85E;
  --lime-700:  #87A62B;

  --coral-300: #FFC1B7;
  --coral-500: #FF7B6A;
  --coral-700: #C4453A;

  --amber-500: #F2B950;

  /* Neutral */
  --ink:       #140F1F;
  --ink-2:     #2B2437;
  --ink-3:     #55506B;
  --ink-4:     #8A869A;
  --line:      #E7E4EE;
  --paper:     #FBFAFD;
  --paper-2:   #F4F1F9;

  /* Accent (swappable via tweak) */
  --accent:       var(--teal-500);
  --accent-soft:  var(--teal-300);
  --accent-deep:  var(--teal-700);

  /* Type */
  --font-impact:  'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 0.5rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-2xl: 2.5rem;
  --r-round: 100vw;

  /* Glass */
  --glass-light:       rgba(255,255,255,0.55);
  --glass-light-2:     rgba(255,255,255,0.75);
  --glass-dark:        rgba(20,15,31,0.45);
  --glass-dark-2:      rgba(20,15,31,0.70);
  --glass-border:      rgba(255,255,255,0.25);
  --glass-border-dark: rgba(255,255,255,0.10);
  --glass-blur:        blur(22px) saturate(1.6);
  --glass-blur-lg:     blur(32px) saturate(1.7);

  /* Shadow (max 2 layers per PRD) */
  --sh-sm: 0 1px 2px rgba(20,15,31,0.06), 0 2px 8px rgba(20,15,31,0.04);
  --sh-md: 0 4px 14px rgba(20,15,31,0.08), 0 20px 50px rgba(20,15,31,0.06);
  --sh-lg: 0 10px 30px rgba(20,15,31,0.12), 0 30px 80px rgba(20,15,31,0.10);

  /* Containers */
  --container: 1200px;
  --container-wide: 1440px;
}

/* ---------------------------------------------------------
   Reset
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* `overflow-x: clip` (not `hidden`) prevents horizontal overflow without
   creating a scroll container — `hidden` breaks `position: sticky`
   descendants because it makes <html> the sticky scroll-context.
   Fallback to `hidden` for browsers without `clip` support. */
html, body { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-width: 100%;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

/* ---------------------------------------------------------
   Typography
   --------------------------------------------------------- */
.impact {
  font-family: var(--font-impact);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.88;
  font-weight: 400;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
}
.t-display-xl { font-size: clamp(3.5rem, 10vw, 9rem); }
.t-display-lg { font-size: clamp(3rem, 8vw, 6.5rem); }
.t-display-md { font-size: clamp(2.25rem, 5vw, 4rem); }
.t-display-sm { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.t-h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }
.t-h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 700; letter-spacing: -0.01em; }
.t-body { font-size: 1.0625rem; color: var(--ink-3); line-height: 1.55; }
.t-body-lg { font-size: 1.25rem; color: var(--ink-3); line-height: 1.5; }
.t-micro { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); }
.t-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.t-eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------------------------------------------------------
   Layout
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2rem);
}
section { padding-block: clamp(4rem, 8vw, 7rem); }

.theme-dark {
  background: var(--ink);
  color: var(--paper);
}
.theme-dark .t-body, .theme-dark .t-body-lg { color: rgba(255,255,255,0.68); }
.theme-dark .t-eyebrow { color: rgba(255,255,255,0.7); }
.theme-dark .t-micro { color: rgba(255,255,255,0.55); }

.theme-cocoa {
  background: var(--cocoa-800);
  color: var(--paper);
}
.theme-cocoa .t-body, .theme-cocoa .t-body-lg { color: rgba(255,255,255,0.72); }

.theme-paper { background: var(--paper-2); color: var(--ink); }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  transition: background .2s, transform .15s, box-shadow .2s, color .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--cocoa-800); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { filter: brightness(0.95); }
.btn--cocoa { background: var(--cocoa-500); color: var(--paper); }
.btn--cocoa:hover { background: var(--cocoa-600); }
.btn--ghost { background: transparent; color: inherit; border: 1px solid rgba(20,15,31,0.12); }
.theme-dark .btn--ghost, .theme-cocoa .btn--ghost { border-color: rgba(255,255,255,0.2); }
.btn--glass {
  background: var(--glass-light-2);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--ink);
}
.btn--lg { padding: 1.125rem 1.75rem; font-size: 1rem; }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.875rem; }

/* ---------------------------------------------------------
   Glass
   --------------------------------------------------------- */
.glass {
  background: var(--glass-light);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
}
.glass-dark {
  background: var(--glass-dark);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-dark);
  border-radius: var(--r-lg);
  color: var(--paper);
}

/* ---------------------------------------------------------
   Orbs (solid color blurred — no gradients)
   --------------------------------------------------------- */
.orb-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
  animation: orb-float 14s ease-in-out infinite;
}
.orb--cocoa { background: var(--cocoa-500); }
.orb--teal  { background: var(--teal-500); }
.orb--lime  { background: var(--lime-500); }
.orb--coral { background: var(--coral-500); }
.orb--amber { background: var(--amber-500); }

@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-20px) scale(1.08); }
}

/* ---------------------------------------------------------
   Nav — Floating shadcn-style
   --------------------------------------------------------- */
.nav-float-wrap {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0.625rem 1rem 0;
  pointer-events: none;
}
.nav-float {
  pointer-events: auto;
  margin: 0 auto;
  max-width: 1040px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  background: rgba(251,250,253,0.78);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(20,15,31,0.08);
  border-radius: 8px;
  box-shadow: 0 8px 30px -12px rgba(20,15,31,0.18), 0 2px 8px -3px rgba(20,15,31,0.08);
}
.nav-float--dark {
  background: rgba(20,15,31,0.72);
  border-color: rgba(255,255,255,0.1);
  color: var(--paper);
}
.nav-float__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-impact);
  font-size: 1.0625rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--cocoa-500);
  display: grid; place-items: center;
  color: var(--paper);
  font-family: var(--font-impact);
  font-size: 0.9375rem;
}
.nav-float__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-float__links a {
  opacity: 0.7;
  transition: opacity .15s;
  padding: 0.25rem 0;
}
.nav-float__links a:hover,
.nav-float__links a.active { opacity: 1; }
.nav-float__cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* ---- Hamburger button (mobile/tablet only) ---- */
.nav-float__burger {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .15s;
}
.nav-float__burger:hover { background: rgba(20,15,31,0.05); }
.nav-float--dark .nav-float__burger:hover { background: rgba(255,255,255,0.08); }
.nav-float__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  transform-origin: center;
}
.nav-float--dark .nav-float__burger span { background: var(--paper); }
.nav-float__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-float__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-float__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Drawer (mobile menu) ---- */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(20,15,31,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-drawer.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer__sheet {
  position: absolute;
  top: calc(0.625rem + 60px);  /* nav top padding + nav height */
  left: 1rem;
  right: 1rem;
  background: var(--paper);
  border-radius: 14px;
  padding: 0.75rem;
  box-shadow: 0 18px 40px -12px rgba(20,15,31,0.28), 0 4px 12px -4px rgba(20,15,31,0.12);
  border: 1px solid rgba(20,15,31,0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-drawer.is-open .nav-drawer__sheet { transform: translateY(0); opacity: 1; }
.nav-drawer__link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.nav-drawer__link:hover { background: var(--cocoa-50); color: var(--cocoa-600); }
.nav-drawer__link.is-active { color: var(--cocoa-600); background: var(--cocoa-50); font-weight: 600; }
.nav-drawer__cta { margin-top: 0.5rem; justify-content: center; }

@media (max-width: 860px) {
  .nav-float__links { display: none; }
  .nav-float__cta { display: none; }     /* hide download CTA on small screens */
  .nav-float__burger { display: inline-flex; }
  .nav-float { padding-left: 1rem; }
}
@media (min-width: 861px) {
  .nav-drawer { display: none; }          /* drawer never opens on desktop */
}

/* ---------------------------------------------------------
   Phone 3D mockup wrapper (single)
   --------------------------------------------------------- */
.phone-3d-wrap {
  perspective: 1800px;
  perspective-origin: 50% 50%;
}
.phone-3d {
  transform: rotateY(-14deg) rotateX(6deg) rotate(-2deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 40px 50px rgba(104, 79, 163, 0.35))
          drop-shadow(0 20px 20px rgba(20, 15, 31, 0.12));
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone-3d:hover {
  transform: rotateY(-8deg) rotateX(4deg) rotate(-1deg);
}

/* ---------------------------------------------------------
   Phone pair — two phones in 3D composition (light + dark)
   --------------------------------------------------------- */
.phone-pair {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1.05/1;
  perspective: 2400px;
  perspective-origin: 50% 45%;
  margin: 0 auto;
}
.phone-pair__slot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
/* Back / right phone — dark, tilted right */
.phone-pair__slot--back {
  transform:
    translate(0%, -50%)
    rotateY(15deg) rotateX(3deg) rotateZ(4deg)
    scale(0.78);
  z-index: 1;
  filter:
    drop-shadow(0 30px 40px rgba(20, 15, 31, 0.32))
    drop-shadow(0 10px 14px rgba(20, 15, 31, 0.2));
}
/* Front / left phone — light, tilted left */
.phone-pair__slot--front {
  transform:
    translate(-100%, -50%)
    rotateY(-15deg) rotateX(4deg) rotateZ(-4deg)
    scale(0.82);
  z-index: 2;
  filter:
    drop-shadow(0 50px 55px rgba(104, 79, 163, 0.35))
    drop-shadow(0 18px 22px rgba(20, 15, 31, 0.2));
}
.phone-pair:hover .phone-pair__slot--back {
  transform:
    translate(4%, -50%)
    rotateY(11deg) rotateX(2deg) rotateZ(3deg)
    scale(0.78);
}
.phone-pair:hover .phone-pair__slot--front {
  transform:
    translate(-104%, -50%)
    rotateY(-11deg) rotateX(3deg) rotateZ(-3deg)
    scale(0.82);
}
@media (max-width: 860px) {
  .hero-v2-grid { grid-template-columns: 1fr !important; }
  .phone-3d { transform: rotateY(-6deg) rotateX(3deg); }
  .phone-pair { max-width: 480px; aspect-ratio: 1.1/1; }
  .phone-pair__slot--back  { transform: translate(0%, -50%) rotateY(13deg) rotateZ(3deg) scale(0.72); }
  .phone-pair__slot--front { transform: translate(-100%, -50%) rotateY(-13deg) rotateZ(-3deg) scale(0.76); }
}

/* ---------------------------------------------------------
   Realistic phone bezel
   Uses .phone.phone--realistic to override the base .phone bg.
   - metallic side rail
   - subtle inner bezel highlight
   - glass reflection sweep on the screen
   --------------------------------------------------------- */
.phone.phone--realistic {
  width: 260px;
  aspect-ratio: 9/19.5;
  border-radius: 44px;
  padding: 7px;
  position: relative;
  /* Side rail — metallic gradient that wraps */
  background:
    linear-gradient(135deg,
      #2a2233 0%,
      #4a3f5e 8%,
      #1a141f 22%,
      #322940 50%,
      #15101c 78%,
      #4a3f5e 92%,
      #2a2233 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 2px rgba(255,255,255,0.18),
    inset 0 -1px 2px rgba(0,0,0,0.4);
}
.phone.phone--realistic::before {
  /* Inner bezel ring — adds depth between rail and screen */
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 39px;
  background: #08050d;
  z-index: 0;
}
.phone.phone--realistic .phone__screen {
  position: relative;
  z-index: 1;
  border-radius: 36px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    inset 0 2px 6px rgba(0,0,0,0.35);
}
.phone.phone--realistic .phone__notch {
  top: 12px;
  width: 92px;
  height: 28px;
  background: #050308;
  border-radius: 16px;
  z-index: 12;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.phone.phone--realistic .phone__notch::after {
  /* Camera dot on the dynamic island */
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #2a3340 0%, #0a0d12 60%, #000 100%);
  box-shadow: inset 0 0 1px rgba(120, 160, 200, 0.4);
}
/* Side button highlights — give a hint of physical buttons */
.phone.phone--realistic::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 28%;
  width: 3px;
  height: 14%;
  border-radius: 2px;
  background: linear-gradient(90deg, #1a141f, #3d3349);
  box-shadow:
    0 60px 0 -1px #1a141f,
    0 80px 0 -1px #1a141f;
}
/* Screen glass reflection — diagonal sweep */
.phone.phone--realistic .phone__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 36px;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.08) 28%,
    rgba(255,255,255,0.18) 36%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  z-index: 11;
}

/* ---------------------------------------------------------
   Download Modal
   --------------------------------------------------------- */
.dlmodal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 15, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  animation: dlmodalFadeIn 0.22s ease-out;
}
@keyframes dlmodalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dlmodal__panel {
  position: relative;
  background: var(--paper);
  border-radius: 18px;
  width: 100%;
  max-width: 460px;
  padding: 2.25rem 2rem 1.75rem;
  box-shadow:
    0 30px 80px -20px rgba(20, 15, 31, 0.45),
    0 12px 32px -10px rgba(20, 15, 31, 0.25);
  animation: dlmodalPanelIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes dlmodalPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.dlmodal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-3);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.dlmodal__close:hover {
  background: var(--paper-2);
  color: var(--ink);
  border-color: rgba(20,15,31,0.18);
}
.dlmodal__head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.dlmodal__head .t-eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
}
.dlmodal__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.dlmodal__sub {
  font-size: 0.9375rem;
  color: var(--ink-3);
  margin: 0;
}
.dlmodal__stores {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.dlstore {
  display: grid;
  grid-template-columns: 44px 1fr 24px;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.dlstore:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(20,15,31,0.25);
}
.dlstore--apple {
  background: var(--ink);
  color: var(--paper);
}
.dlstore--google {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.dlstore--google:hover {
  border-color: rgba(20,15,31,0.18);
}
.dlstore__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
}
.dlstore--google .dlstore__icon {
  background: var(--paper-2);
  color: var(--cocoa-600);
}
.dlstore__text {
  display: grid;
  line-height: 1.15;
  text-align: left;
}
.dlstore__small {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.7;
}
.dlstore__big {
  font-family: var(--font-impact);
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-weight: 700;
  margin-top: 1px;
}
.dlstore__arrow {
  display: grid; place-items: center;
  opacity: 0.6;
}
.dlmodal__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
@media (max-width: 540px) {
  .dlmodal__panel { padding: 1.75rem 1.25rem 1.25rem; }
  .dlmodal__title { font-size: 1.625rem; }
}

/* Legacy nav classes (kept for back-compat, unused) */
.nav { display: none; }
.nav__cta { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 5rem 0 0;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 70%;
  background:
    radial-gradient(120% 75% at 50% 110%, #8A6BC4 0%, #684FA3 22%, #3B2D66 48%, transparent 78%),
    linear-gradient(180deg, transparent 0%, rgba(79,59,133,0.35) 55%, rgba(138,107,196,0.7) 100%);
  pointer-events: none;
  z-index: 0;
}
.footer > .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer__col h4 {
  font-family: var(--font-impact);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  color: rgba(255,255,255,0.5);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.625rem; }
.footer__col a { color: rgba(255,255,255,0.75); font-size: 0.9375rem; transition: color .15s; }
.footer__col a:hover { color: var(--paper); }
.footer__base {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  padding: 2rem 0 2.5rem;
}
.footer__wordmark {
  font-family: var(--font-impact);
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
  /* Truly edge-to-edge: 26vw × 5 chars × avg glyph width ≈ fills viewport with tight tracking */
  font-size: 26vw;
  text-transform: uppercase;
  letter-spacing: -0.085em;
  line-height: 0.8;
  color: var(--paper);
  opacity: 0.98;
  text-shadow: 0 2px 40px rgba(255,255,255,0.08);
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-2px); border-color: var(--cocoa-300); }

.paper-card {
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-weight: 600;
  text-align: center;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.paper-card:hover {
  transform: translateY(-2px);
  border-color: var(--cocoa-300);
  box-shadow: var(--sh-sm);
}

/* ---------------------------------------------------------
   Pill / Badge
   --------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.875rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.pill--glass {
  background: var(--glass-light-2);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}
.pill--dark {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--paper);
  backdrop-filter: var(--glass-blur);
}
.pill--aj {
  background: var(--lime-500);
  color: var(--ink);
  border: 0;
  font-weight: 700;
}
.pill__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime-500);
  box-shadow: 0 0 0 3px rgba(200,232,94,0.25);
}

/* ---------------------------------------------------------
   Marquee
   --------------------------------------------------------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 0;
}
.marquee__track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  animation: marquee 28s linear infinite;
  font-family: var(--font-impact);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
.marquee__track > span { display: inline-flex; align-items: center; gap: 3rem; }
.marquee__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------
   Utility
   --------------------------------------------------------- */
.stack { display: grid; }
.row { display: flex; align-items: center; }
.flex { display: flex; }
.grid { display: grid; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; } .gap-6 { gap: 3rem; }
.center { display: flex; align-items: center; justify-content: center; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; } .mb-6 { margin-bottom: 3rem; } .mb-8 { margin-bottom: 4rem; }
.mt-auto { margin-top: auto; }
.text-center { text-align: center; }
.opacity-60 { opacity: 0.6; } .opacity-80 { opacity: 0.8; }

/* ---------------------------------------------------------
   Phone mockup
   --------------------------------------------------------- */
.phone {
  width: 280px;
  aspect-ratio: 9/19.5;
  background: var(--ink);
  border-radius: 42px;
  padding: 8px;
  box-shadow: var(--sh-lg);
  position: relative;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 26px;
  background: var(--ink);
  border-radius: 14px;
  z-index: 10;
}

/* ---------------------------------------------------------
   Tabs
   --------------------------------------------------------- */
.tabs {
  display: inline-flex;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 8px;
  border: 1px solid var(--line);
  gap: 4px;
}
.tabs--dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.tab {
  padding: 0.625rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background .2s, color .2s;
  color: var(--ink-3);
}
.tab.active { background: var(--ink); color: var(--paper); }
.tabs--dark .tab.active { background: var(--accent); color: var(--ink); }

/* ---------------------------------------------------------
   Accordion
   --------------------------------------------------------- */
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  text-align: left;
  letter-spacing: -0.01em;
}
.acc__icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper-2);
  display: grid; place-items: center;
  transition: transform .25s, background .2s;
  flex-shrink: 0;
}
.acc.open .acc__icon { background: var(--accent); transform: rotate(45deg); }
.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.acc.open .acc__panel { max-height: 400px; }
.acc__content { padding: 0 0 1.5rem; color: var(--ink-3); max-width: 72ch; }

/* ---------------------------------------------------------
   Form
   --------------------------------------------------------- */
.field {
  display: grid;
  gap: 0.375rem;
  min-width: 0;
}
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 0.9375rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--cocoa-500);
  box-shadow: 0 0 0 4px var(--cocoa-100);
}
.field textarea { min-height: 120px; resize: vertical; }

/* Radio cards for contact type */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 640px) { .radio-cards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.radio-card {
  position: relative;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  text-align: left;
}
.radio-card.active {
  border-color: var(--cocoa-500);
  background: var(--cocoa-50);
  box-shadow: inset 0 0 0 1px var(--cocoa-500);
}
.radio-card__ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--paper-2);
  display: grid; place-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.radio-card.active .radio-card__ico { background: var(--cocoa-500); color: var(--paper); }
.radio-card__title { font-weight: 700; font-size: 0.9375rem; }
.radio-card__desc { font-size: 0.75rem; color: var(--ink-4); margin-top: 2px; }

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */
.stat__num {
  font-family: var(--font-impact);
  font-size: clamp(2.75rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}
.theme-dark .stat__label, .theme-cocoa .stat__label { color: rgba(255,255,255,0.55); }

/* ---------------------------------------------------------
   Feature card
   --------------------------------------------------------- */
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.feature:hover { border-color: var(--cocoa-300); }
.feature__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cocoa-100);
  color: var(--cocoa-600);
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
}
.feature__title {
  font-family: var(--font-impact);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}
.feature__desc { color: var(--ink-3); font-size: 0.9375rem; }
.feature--glass-dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.09);
  backdrop-filter: var(--glass-blur);
  color: var(--paper);
}
.feature--glass-dark .feature__desc { color: rgba(255,255,255,0.7); }
.feature--glass-dark .feature__ico { background: rgba(255,255,255,0.08); color: var(--accent); }

/* ---------------------------------------------------------
   Scroll reveal helper (we won't use for most; keep simple)
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------
   Tweaks panel accent switcher adjustments are via CSS var
   --------------------------------------------------------- */
[data-accent="lime"]  { --accent: var(--lime-500); --accent-soft: var(--lime-300); --accent-deep: var(--lime-700); }
[data-accent="coral"] { --accent: var(--coral-500); --accent-soft: var(--coral-300); --accent-deep: var(--coral-700); }
[data-accent="amber"] { --accent: var(--amber-500); --accent-soft: #FCE0A5; --accent-deep: #9B6D12; }
[data-accent="teal"]  { --accent: var(--teal-500); --accent-soft: var(--teal-300); --accent-deep: var(--teal-700); }

/* Scrollbar minimal */
::selection { background: var(--cocoa-500); color: var(--paper); }

/* ---------------------------------------------------------
   Smooth body background transition for scroll sections
   --------------------------------------------------------- */
html, body { transition: background-color 1.1s cubic-bezier(0.4, 0, 0.2, 1); }
html.is-purple, html.is-purple body { background-color: var(--cocoa-100); }
html.is-purple .bg-shift--purple { color: var(--cocoa-900); }
.bg-shift { background: transparent; transition: background-color 1.1s cubic-bezier(0.4, 0, 0.2, 1); }

/* ---------------------------------------------------------
   GLOBAL RESPONSIVE FIXES (desktop / tablet / mobile)
   These rules consolidate per-page collapses so every grid
   tightens on tablet then becomes a single column on phones.
   --------------------------------------------------------- */

/* Tablet (≤960px) — most multi-column grids fall to two columns */
@media (max-width: 960px) {
  /* Hero side-by-side compositions become stacked */
  .hero-v2-grid,
  .hero-app-grid,
  .app-hero-grid,
  .b2b-hero-grid,
  .b2b-split,
  .contacto-grid,
  .faqs-grid,
  .scrolly {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  /* 4-up grids → 2-up */
  .features-grid,
  .stats-bar,
  .casos-grid,
  .b2b-features,
  .contact-cards,
  .app-feat-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* 3-up grids → 2-up */
  .steps-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  /* Comercios 6-up → 3-up */
  .comercios-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Featured “big” feature card spans both columns when it’s span 2 */
  .app-feat-grid .feature[style*="span 2"] { grid-column: span 2 !important; }
}

/* Phone (≤640px) — collapse everything to a single column */
@media (max-width: 640px) {
  .hero-v2-grid,
  .hero-app-grid,
  .app-hero-grid,
  .b2b-hero-grid,
  .b2b-split,
  .contacto-grid,
  .faqs-grid,
  .scrolly,
  .features-grid,
  .stats-bar,
  .casos-grid,
  .b2b-features,
  .contact-cards,
  .app-feat-grid,
  .steps-grid {
    grid-template-columns: 1fr !important;
  }
  /* Featured card no longer spans 2 on a single-column grid */
  .app-feat-grid .feature[style*="span 2"] { grid-column: auto !important; }
  .comercios-grid { grid-template-columns: 1fr 1fr !important; }
  /* Two-column field rows in forms (Email/Tel, etc.) collapse */
  .field-row-2 { grid-template-columns: 1fr !important; }

  /* Section padding tightens on phones */
  section { padding-block: clamp(2.5rem, 9vw, 4.25rem); }

  /* Display headlines shrink a bit so they always fit */
  .t-display-xl { font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .t-display-lg { font-size: clamp(2.5rem, 11vw, 4rem); }
  .t-display-md { font-size: clamp(2rem, 9vw, 3rem); }

  /* Footer: 2-col grid on phones — brand row spans both columns,
     then the 3 link columns flow 2-up (row 2: Producto + Empresas,
     row 3: Compañía). Single-col was too tall and felt empty. */
  .footer__grid { grid-template-columns: 1fr 1fr !important; gap: 2rem 1.5rem !important; }
  .footer__grid > .footer__col:first-child { grid-column: 1 / -1; }
  .footer__base { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Cinematic hero text never overflows */
  .ccoa-hero-1, .ccoa-hero-2 {
    font-size: clamp(2.25rem, 11vw, 3.75rem) !important;
    letter-spacing: -0.035em !important;
  }
  .ccoa-cta-title  { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .ccoa-card-right h2 { font-size: clamp(2.75rem, 14vw, 5rem) !important; }
}

/* Phone-pair: keep the two-phone composition compact on phones */
@media (max-width: 640px) {
  .phone-pair { max-width: 300px; }
  .phone.phone--realistic { width: 180px; }
}
@media (max-width: 380px) {
  .phone-pair { max-width: 260px; }
  .phone.phone--realistic { width: 156px; }
}

/* CTAs and hero copy shrink on phones so they don’t dominate the viewport */
@media (max-width: 640px) {
  .btn--lg {
    padding: 0.75rem 1.125rem;
    font-size: 0.875rem;
  }
  .btn--lg svg { width: 14px; height: 14px; }
  .btn { padding: 0.625rem 1rem; font-size: 0.8125rem; }

  /* Hero V2 paragraph (inline `font-size: 1.25rem` override) */
  .hero-v2-grid p.t-body-lg {
    font-size: 0.9375rem !important;
    line-height: 1.45 !important;
    margin-bottom: 1.25rem !important;
  }
  /* Hero V2 headline tightens to fit comfortably */
  .hero-v2-grid h1.impact {
    font-size: clamp(2.25rem, 11vw, 3.75rem) !important;
    margin-bottom: 1.25rem !important;
  }
}

/* Cinematic floating badges — on tablet/mobile, keep them floating around
   the phone corners (not stacked below). Strategy:
     • Anchor each badge to the phone center (50% of the mockup) using
       calc() so they hug the phone corners regardless of viewport width.
     • Show only 3 badges (tl/tr/br) to avoid crowding; hide ml/mr/bl.
     • Compact sizing so badges fit comfortably alongside a 280px phone.
   Position: absolute is preserved so GSAP’s opacity/translateY
   stagger still animates the entrance. */
@media (max-width: 1099px) {
  .ccoa-card-mockup {
    align-items: center !important;
    justify-content: center !important;
    height: clamp(380px, 50vh, 600px) !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  /* Trim to 3 badges so the phone breathes */
  .ccoa-badge--ml,
  .ccoa-badge--mr,
  .ccoa-badge--bl { display: none !important; }

  /* Compact badges */
  .ccoa-card-mockup .ccoa-badge {
    width: auto !important;
    max-width: 175px;
    padding: 8px 10px;
    gap: 8px;
  }
  .ccoa-card-mockup .ccoa-badge .ccoa-badge-title { font-size: 0.75rem; line-height: 1.05; margin-bottom: 2px; }
  .ccoa-card-mockup .ccoa-badge .ccoa-badge-sub { font-size: 0.625rem; }
  .ccoa-card-mockup .ccoa-badge-ico { width: 30px; height: 30px; font-size: 0.95rem; }
  .ccoa-card-mockup .ccoa-badge-ico svg { width: 14px; height: 14px; }

  /* Three corner positions, anchored to the phone center on BOTH axes.
     The mockup container height varies (clamp 380–600px) but the phone
     is always 280×580 centered inside it — so 50% reliably maps to
     phone center. Phone top edge is at 50% − 290px, bottom at 50% + 290px.
     Badges sit just inside the phone corners so they overlap cleanly and
     never run off-screen on small viewports. */
  .ccoa-card-mockup .ccoa-badge--tl {
    top: calc(50% - 262px) !important;   /* 28px below phone top */
    bottom: auto !important;
    left: calc(50% - 145px) !important;
    right: auto !important;
  }
  .ccoa-card-mockup .ccoa-badge--tr {
    top: calc(50% - 180px) !important;   /* 110px below phone top */
    bottom: auto !important;
    right: calc(50% - 145px) !important;
    left: auto !important;
  }
  .ccoa-card-mockup .ccoa-badge--br {
    top: calc(50% + 180px) !important;   /* badge bottom ≈ 60px above phone bottom */
    bottom: auto !important;
    right: calc(50% - 145px) !important;
    left: auto !important;
  }
}

/* Phone — slightly tighter so badges always fit inside narrow viewports */
@media (max-width: 640px) {
  .ccoa-card-mockup .ccoa-badge {
    max-width: 160px;
    padding: 7px 9px;
    gap: 7px;
  }
  .ccoa-card-mockup .ccoa-badge .ccoa-badge-title { font-size: 0.6875rem; }
  .ccoa-card-mockup .ccoa-badge .ccoa-badge-sub { font-size: 0.5625rem; }
  .ccoa-card-mockup .ccoa-badge-ico { width: 26px; height: 26px; }

  .ccoa-card-mockup .ccoa-badge--tl { left: calc(50% - 135px) !important; }
  .ccoa-card-mockup .ccoa-badge--tr { right: calc(50% - 135px) !important; }
  .ccoa-card-mockup .ccoa-badge--br { right: calc(50% - 135px) !important; }
}

/* Nav: keep the floating bar comfortable on phones (CTA is hidden at
   ≤860px in favor of the hamburger drawer, so no .nav-float__cta rules). */
@media (max-width: 480px) {
  .nav-float {
    padding: 0.4rem 0.4rem 0.4rem 0.875rem;
    gap: 0.5rem;
  }
}
