/* Citify Landing — style.css */

/* ─── LAYER ORDER ──────────────────────────────────────────── */
@layer reset, base, tokens, layout, sections, utilities;

/* ─── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 80px;

  /* Typography — refined editorial scale */
  --text-eyebrow: 11px;
  --text-label: 13px;
  --text-body: 16.5px;
  --text-heading: clamp(28px, 3.2vw, 40px);
  --text-display: clamp(44px, 7vw, 76px);
  --text-mega: clamp(80px, 12vw, 180px);
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Color — Dark Premium palette */
  --color-bg: #030303;
  --color-bg-tint: #111111;
  --color-surface: #0f0f0f;
  --color-text: #FFFFFF;
  --color-accent: #FFFFFF;
  --color-accent-hi: #E8E8E8;
  --color-accent-text: #030303;
  --color-muted: rgba(255, 255, 255, 0.5);
  --color-ink-soft: rgba(255, 255, 255, 0.78);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-strike: rgba(255, 255, 255, 0.3);
  --color-gold: #a78bfa;
  --noise-opacity: 0.018;

  /* Easing */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 800ms;

  /* Layout */
  --navbar-height: 84px;
  --content-max-width: 1100px;
  --hero-max-width: 800px;
}

/* ─── RESET LAYER ──────────────────────────────────────────── */
@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }

  input, button, textarea, select {
    font: inherit;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

/* ─── BASE LAYER ───────────────────────────────────────────── */
@layer base {
  body {
    font-family: var(--font-family);
    font-size: var(--text-body);
    color: var(--color-text);
    background: var(--color-bg);
    padding-top: var(--navbar-height);
    position: relative;
  }

  /* CSS-only grain texture — inline SVG data URI, no external file */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: var(--noise-opacity);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    mix-blend-mode: screen;
  }

  h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
  }

  h1 {
    font-size: var(--text-display);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  h2 {
    font-size: var(--text-heading);
    line-height: 1.15;
  }

  p {
    line-height: 1.6;
  }

  .skip-link {
    position: absolute;
    left: -9999px;
  }

  .skip-link:focus {
    left: 8px;
    top: 8px;
    background: var(--color-surface);
    padding: 8px 16px;
    z-index: 200;
  }
}

/* ─── SECTIONS LAYER ───────────────────────────────────────── */
@layer sections {

  /* ─── CTA Button — pill with shimmer hover effect ─────────── */
  .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-accent-text);
    font-weight: 600;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 999px;
    padding: 0 24px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition:
      transform 200ms var(--ease-expo),
      background 200ms ease,
      box-shadow 200ms ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 2;
  }

  /* Shimmer pseudo-element */
  .cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 600ms var(--ease-expo);
    pointer-events: none;
  }

  .cta-btn:hover::before {
    left: 100%;
  }

  .cta-btn:hover {
    transform: translateY(-2px);
    background: var(--color-accent-hi);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.14), 0 8px 20px rgba(0, 0, 0, 0.10);
  }

  .cta-btn:active {
    transform: scale(0.97);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.10);
  }

  .cta-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }

  /* ─── Navbar — floating pill ────────────────────────────── */
  #navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 900px;
    height: 52px;
    z-index: 100;
    border-radius: 999px;
    background: rgba(3, 3, 3, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 20px;
    transition: box-shadow 400ms var(--ease-out), background 300ms ease;
  }

  #navbar.scrolled {
    background: rgba(3, 3, 3, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.3);
  }

  .navbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }

  .navbar-cta {
    height: 36px;
    padding: 0 18px;
    font-size: var(--text-label);
  }

  /* ─── Hero ──────────────────────────────────────────────── */
  #hero {
    min-height: calc(100svh - var(--navbar-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    background: #030303;
    position: relative;
    overflow: hidden;
  }

  /* Ambient wordmark backdrop */
  .hero-backdrop {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 0;
  }

  .hero-backdrop-word {
    font-size: var(--text-mega);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.025);
    line-height: 0.85;
    letter-spacing: -0.06em;
    transform: translateX(8%);
    white-space: nowrap;
  }

  /* Scroll indicator */
  .hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 2;
  }

  .hero-scroll-line {
    display: block;
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3));
    position: relative;
    overflow: hidden;
  }

  .hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    animation: scrollHint 2s var(--ease-expo) infinite;
  }

  @keyframes scrollHint {
    0% { transform: translateY(-100%); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(300%); opacity: 0; }
  }

  /* Hero content above backdrop and shapes */
  .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Hero ambient gradient */
  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 30% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 70% 60%, rgba(244, 63, 94, 0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
  }

  /* Hero fade top/bottom */
  #hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(3, 3, 3, 0.8) 0%, transparent 20%, transparent 80%, rgba(3, 3, 3, 1) 100%);
    pointer-events: none;
    z-index: 1;
  }

  /* ─── Hero floating shapes ───────────────────────────────── */
  .hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  .hero-shape {
    position: absolute;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(2px);
    pointer-events: none;
  }

  @keyframes shapeEntry {
    from { opacity: 0; transform: translateY(-80px) rotate(var(--shape-rotate-start)); }
    to   { opacity: 1; transform: translateY(0)     rotate(var(--shape-rotate)); }
  }

  @keyframes shapeBob {
    0%, 100% { transform: translateY(0)   rotate(var(--shape-rotate)); }
    50%       { transform: translateY(15px) rotate(var(--shape-rotate)); }
  }

  .hero-shape-1 {
    width: 600px; height: 140px;
    --shape-rotate: 12deg; --shape-rotate-start: -3deg;
    left: -8%; top: 18%;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.15), transparent);
    animation:
      shapeEntry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.3s both,
      shapeBob   12s  ease-in-out                           2.7s infinite;
  }

  .hero-shape-2 {
    width: 500px; height: 120px;
    --shape-rotate: -15deg; --shape-rotate-start: -30deg;
    right: -3%; top: 72%;
    background: linear-gradient(to right, rgba(244, 63, 94, 0.15), transparent);
    animation:
      shapeEntry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.5s both,
      shapeBob   12s  ease-in-out                           2.9s infinite;
  }

  .hero-shape-3 {
    width: 300px; height: 80px;
    --shape-rotate: -8deg; --shape-rotate-start: -23deg;
    left: 8%; bottom: 12%;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.15), transparent);
    animation:
      shapeEntry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.4s both,
      shapeBob   12s  ease-in-out                           2.8s infinite;
  }

  .hero-shape-4 {
    width: 200px; height: 60px;
    --shape-rotate: 20deg; --shape-rotate-start: 5deg;
    right: 18%; top: 12%;
    background: linear-gradient(to right, rgba(251, 191, 36, 0.12), transparent);
    animation:
      shapeEntry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.6s both,
      shapeBob   14s  ease-in-out                           3.0s infinite;
  }

  .hero-shape-5 {
    width: 150px; height: 40px;
    --shape-rotate: -25deg; --shape-rotate-start: -40deg;
    left: 22%; top: 8%;
    background: linear-gradient(to right, rgba(6, 182, 212, 0.12), transparent);
    animation:
      shapeEntry 2.4s cubic-bezier(0.23, 0.86, 0.39, 0.96) 0.7s both,
      shapeBob   10s  ease-in-out                           3.1s infinite;
  }

  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: var(--text-eyebrow);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 24px;
  }

  .hero-headline {
    font-size: var(--text-display);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    max-width: var(--hero-max-width);
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-subheadline {
    font-size: var(--text-body);
    font-weight: 400;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 16px;
  }

  .hero-niches {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 32px;
  }

  .hero-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-price del {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-strike);
    text-decoration: line-through;
  }

  .hero-price strong {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }

  .hero-cta {
    height: 52px;
    min-width: 220px;
    max-width: 320px;
    width: 100%;
    font-size: 16px;
  }

  @media (min-width: 768px) {
    #hero {
      padding: 80px 40px;
    }
  }

  /* Fold safety net — older iPhone SE at 568px tall */
  @media (max-height: 600px) {
    #hero {
      padding-top: 24px;
      padding-bottom: 24px;
    }
    .hero-headline {
      margin-bottom: 16px;
    }
    .hero-niches {
      margin-bottom: 20px;
    }
  }

  /* ─── Section container ──────────────────────────────────── */
  .section-inner {
    max-width: var(--content-max-width);
    margin-inline: auto;
    padding-block: var(--space-4xl);
    padding-inline: var(--space-md);
  }

  /* Section background — dark palette */
  #hero        { background: #030303; }
  #video       { background: #030303; }
  #problema    { background: #0f0f0f; }
  #solucion    { background: #030303; }
  #que-incluye { background: #0f0f0f; }
  #para-quien  { background: #030303; }
  #el-calculo  { background: #0f0f0f; }
  #cta-intermedio { background: #030303; }
  #testimonios { background: #0f0f0f; }
  #faq         { background: #030303; }
  #cta-final   { background: #030303; }

  /* Dev Kit — deepest dark section */
  #dev-kit {
    background: #000000;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
  }

  #dev-kit .section-inner {
    position: relative;
    z-index: 2;
  }

  /* Dev Kit grain overlay */
  #dev-kit::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.4;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.6'/></svg>");
    mix-blend-mode: overlay;
  }

  /* Dev Kit accent orb */
  .dev-kit-orb {
    position: absolute;
    top: -60%;
    right: -5%;
    width: 1200px;
    height: 1200px;
    background: radial-gradient(circle at center, rgba(150, 120, 80, 0.14) 0%, rgba(100, 80, 50, 0.07) 40%, transparent 70%);
    pointer-events: none;
    filter: blur(100px);
    z-index: 1;
  }

  /* CTA button — dark theme: white pill */
  .cta-btn {
    background: #ffffff;
    color: #030303;
  }

  .cta-btn:hover {
    background: #E8E8E8;
  }

  /* CTA button light modifier — ghost style for dark sections */
  .cta-btn--light {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .cta-btn--light::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }

  .cta-btn--light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
  }

  /* Common section heading treatment — centered h2 */
  section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
  }

  /* ─── #video ─────────────────────────────────────────────── */
  .video-inner h2 {
    margin-bottom: 32px;
  }

  .demo-video {
    display: block;
    width: 100%;
    max-width: 800px;
    margin-inline: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.05);
    background: #111111;
  }

  /* ─── #problema — oversized numerals ────────────────────── */
  .problema-list {
    list-style: none;
    display: grid;
    gap: 48px;
    max-width: 840px;
    margin-inline: auto;
    padding: 0;
  }

  .problema-list li {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 40px;
    align-items: center;
  }

  .problema-num {
    font-size: clamp(72px, 10vw, 120px);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.06em;
    background: linear-gradient(to left, rgba(255,255,255,0.18) 0%, transparent 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    display: block;
    text-align: right;
  }

  .problema-text {
    font-size: 20px;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
    display: block;
  }

  /* ─── #solucion ─────────────────────────────────────────── */
  .solucion-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }

  .solucion-text h2 {
    text-align: left;
  }

  .solucion-body {
    font-size: var(--text-body);
    line-height: 1.6;
    max-width: 520px;
    color: var(--color-muted);
  }

  .solucion-visual {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    border-radius: 16px;
    overflow: hidden;
  }

  .solucion-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
  }

  @media (min-width: 768px) {
    .solucion-inner {
      flex-direction: row;
      align-items: center;
      gap: var(--space-4xl);
    }

    .solucion-text {
      flex: 1;
    }

    .solucion-visual {
      flex: 0 0 520px;
      margin-inline: 0;
    }
  }

  /* ─── Section shapes (solucion, faq) ───────────────────── */
  #solucion,
  #faq {
    position: relative;
    overflow: hidden;
  }

  .section-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
  }

  #solucion .section-inner,
  #faq .section-inner {
    position: relative;
    z-index: 2;
  }

  .section-shape {
    position: absolute;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(1px);
  }

  /* Solucion shapes */
  .section-shape-a {
    width: 400px; height: 100px;
    background: linear-gradient(to right, rgba(99,102,241,0.08), transparent);
    top: 10%; right: -8%;
    transform: rotate(-8deg);
  }

  .section-shape-b {
    width: 250px; height: 65px;
    background: linear-gradient(to right, rgba(139,92,246,0.08), transparent);
    bottom: 15%; left: -4%;
    transform: rotate(12deg);
  }

  /* FAQ shapes */
  .section-shape-c {
    width: 350px; height: 85px;
    background: linear-gradient(to right, rgba(244,63,94,0.07), transparent);
    top: 8%; right: -5%;
    transform: rotate(-12deg);
  }

  .section-shape-d {
    width: 200px; height: 55px;
    background: linear-gradient(to right, rgba(6,182,212,0.07), transparent);
    bottom: 10%; left: 5%;
    transform: rotate(8deg);
  }

  /* ─── #que-incluye — featured card variant ───────────────── */
  .feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: 0;
    margin: 0;
  }

  .feature-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 2px;
    box-shadow: none;
    transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out);
  }

  .feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  }

  .feature-card-inner {
    background: #0f0f0f;
    border-radius: 18px;
    padding: var(--space-lg);
  }

  .feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
  }

  .feature-title {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
  }

  .feature-desc {
    font-size: var(--text-label);
    line-height: 1.6;
    color: var(--color-muted);
  }

  @media (min-width: 600px) {
    .feature-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 900px) {
    .feature-grid {
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: auto auto;
    }

    /* Featured first card spans 2 rows */
    .feature-card:nth-child(1) {
      grid-row: span 2;
    }

    .feature-card:nth-child(1) .feature-card-inner {
      padding: var(--space-2xl);
      height: 100%;
    }

    .feature-card:nth-child(1) .feature-icon {
      width: 32px;
      height: 32px;
    }

    .feature-card:nth-child(1) .feature-title {
      font-size: 22px;
    }
  }

  /* ─── #para-quien — chips with gold accent dot ───────────── */
  .niche-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
  }

  .chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: var(--text-label);
    font-weight: 500;
    line-height: 1.2;
    box-shadow: none;
    transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
  }

  /* Accent dot before each chip label */
  .chip::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gold);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
  }

  .chip:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
  }

  /* ─── #el-calculo — dramatic price hierarchy ─────────────── */
  .calc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 800px;
    margin-inline: auto;
  }

  /* Losing option — muted */
  .calc-card {
    position: relative;
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: none;
  }

  /* Winning option — white card on dark */
  .calc-card--accent {
    background: #ffffff;
    color: #030303;
    border: none;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 12px 40px rgba(0, 0, 0, 0.5);
  }

  .calc-card--accent .calc-price,
  .calc-card--accent .calc-total,
  .calc-card--accent .calc-card-title {
    color: #030303;
  }

  .calc-card--accent .calc-list li {
    border-bottom-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.7);
  }

  .calc-card-title {
    font-size: var(--text-body);
    font-weight: 600;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
  }

  .calc-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-md) 0;
  }

  .calc-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--text-label);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Muted strikethrough prices on losing card */
  .calc-card:not(.calc-card--accent) .calc-price {
    color: var(--color-muted);
    text-decoration: line-through;
  }

  .calc-list li:last-child {
    border-bottom: none;
  }

  .calc-price {
    font-weight: 600;
    color: var(--color-text);
  }

  .calc-total {
    font-size: 28px;
    font-weight: 700;
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    letter-spacing: -0.02em;
  }

  .calc-card--accent .calc-total {
    border-top-color: rgba(255, 255, 255, 0.12);
  }

  /* Accent badge on winning card */
  .calc-badge {
    position: absolute;
    top: -12px;
    right: var(--space-lg);
    background: var(--color-gold);
    color: #030303;
    border: none;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  @media (min-width: 768px) {
    .calc-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* ─── #cta-intermedio / #cta-final ──────────────────────── */
  .cta-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
    max-width: 560px;
    margin-inline: auto;
  }

  .cta-block-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .cta-block-price del {
    font-size: 18px;
    font-weight: 400;
    color: var(--color-strike);
    text-decoration: line-through;
  }

  .cta-block-price strong {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
  }

  .cta-block-cta {
    height: 52px;
    min-width: 220px;
    max-width: 320px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
  }

  .cta-orderbump {
    font-size: var(--text-label);
    font-weight: 400;
    color: var(--color-muted);
    max-width: 480px;
  }

  /* ─── #testimonios — editorial quote treatment ────────────── */
  .testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    max-width: 960px;
    margin-inline: auto;
  }

  .testimonial-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: var(--space-lg);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    box-shadow: none;
    position: relative;
  }

  /* Oversized curly opening quote mark */
  .testimonial-card::before {
    content: '\201C';
    font-size: 80px;
    line-height: 0.6;
    color: var(--color-gold);
    position: absolute;
    top: 0;
    left: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
  }

  /* Avatar removed — editorial treatment */
  .testimonial-avatar {
    display: none;
  }

  .testimonial-stars {
    color: var(--color-gold);
    font-size: var(--text-label);
    line-height: 1;
    letter-spacing: 2px;
  }

  .testimonial-quote {
    font-size: 19px;
    line-height: 1.55;
    color: var(--color-text);
    font-weight: 400;
  }

  .testimonial-name {
    font-size: var(--text-label);
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: -0.01em;
  }

  /* Em dash before testimonial name */
  .testimonial-name::before {
    content: '\2014 ';
  }

  @media (min-width: 900px) {
    .testimonial-grid {
      grid-template-columns: 2fr 1fr 1fr;
      grid-template-rows: auto;
    }

    /* First testimonial spans wider — asymmetric editorial layout */
    .testimonial-card:nth-child(1) {
      grid-column: 1;
      grid-row: 1 / 3;
    }

    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3) {
      grid-column: 2 / 4;
    }
  }

  /* ─── #faq — refined interaction ────────────────────────── */
  #faq {
    overflow-anchor: none;
  }

  .faq-inner {
    max-width: 700px;
  }

  .faq-list {
    display: flex;
    flex-direction: column;
  }

  #faq details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #faq details:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  #faq summary {
    font-size: var(--text-body);
    font-weight: 600;
    padding: var(--space-md) var(--space-md);
    margin-inline: calc(-1 * var(--space-md));
    border-radius: 8px;
    cursor: pointer;
    list-style: none;
    letter-spacing: -0.01em;
    transition: background 200ms ease;
  }

  #faq summary:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  #faq details[open] summary {
    background: rgba(255, 255, 255, 0.05);
  }

  #faq details > p {
    font-size: var(--text-body);
    font-weight: 400;
    padding: 0 0 var(--space-md) 0;
    color: var(--color-muted);
    line-height: 1.6;
  }

  /* FAQ chevron */
  #faq summary::-webkit-details-marker {
    display: none;
  }

  #faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
  }

  .faq-chevron {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 280ms var(--ease-expo);
  }

  #faq details[open] .faq-chevron {
    transform: rotate(90deg);
  }

  /* ─── #dev-kit ───────────────────────────────────────────── */
  .dev-kit-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
  }

  #dev-kit h2 {
    text-align: left;
    margin-bottom: var(--space-md);
  }

  .dev-kit-headline {
    font-size: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #FFFFFF;
  }

  .dev-kit-body {
    font-size: var(--text-body);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
  }

  .dev-kit-cta-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .dev-kit-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
  }

  .dev-kit-price del {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
  }

  .dev-kit-price strong {
    font-size: 30px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: -0.02em;
  }

  .dev-kit-cta {
    height: 52px;
    min-width: 200px;
    font-size: 16px;
    font-weight: 600;
    padding: 0 var(--space-lg);
  }

  @media (min-width: 768px) {
    .dev-kit-inner {
      flex-direction: row;
      align-items: center;
      gap: var(--space-4xl);
    }

    .dev-kit-text {
      flex: 1;
    }

    .dev-kit-cta-col {
      flex: 0 0 auto;
      align-items: center;
    }
  }

  /* ─── #cta-final ─────────────────────────────────────────── */
  .cta-final-headline {
    font-size: var(--text-heading);
    font-weight: 700;
    text-align: center;
    max-width: 560px;
    letter-spacing: -0.025em;
  }

  .cta-final-urgency {
    font-size: var(--text-body);
    color: var(--color-muted);
    max-width: 480px;
  }

  .cta-block-cta--final {
    height: 56px;
    min-width: 240px;
    max-width: 360px;
  }

  /* ─── Footer ─────────────────────────────────────────────── */
  .footer {
    background: #030303;
    color: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 64px 20px 32px;
    text-align: center;
    position: relative;
    z-index: 2;
  }

  .footer-hairline {
    width: 40px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 32px;
  }

  .footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }

  .footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
  }

  .footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: color 200ms ease;
    text-decoration: none;
  }

  .footer-links a:hover {
    color: rgba(255, 255, 255, 0.9);
  }

  .footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
  }

  /* ─── Scroll reveal animations — 5 variants ─────────────── */
  .will-reveal {
    opacity: 0;
    transition:
      opacity var(--duration-reveal) var(--ease-expo),
      transform var(--duration-reveal) var(--ease-expo),
      filter var(--duration-reveal) var(--ease-expo);
  }

  .will-reveal[data-reveal="fade"] {
    transform: translateY(24px);
  }

  .will-reveal[data-reveal="blur"] {
    filter: blur(8px);
    transform: translateY(12px);
  }

  .will-reveal[data-reveal="scale"] {
    transform: scale(0.96);
  }

  .will-reveal[data-reveal="slide-left"] {
    transform: translateX(-32px);
  }

  .will-reveal[data-reveal="slide-right"] {
    transform: translateX(32px);
  }

  .will-reveal.revealed {
    opacity: 1;
    transform: none;
    filter: none;
  }

  /* Stagger for cards in grid */
  .feature-card.will-reveal:nth-child(2) { transition-delay: 60ms; }
  .feature-card.will-reveal:nth-child(3) { transition-delay: 120ms; }
  .feature-card.will-reveal:nth-child(4) { transition-delay: 60ms; }
  .feature-card.will-reveal:nth-child(5) { transition-delay: 120ms; }
  .feature-card.will-reveal:nth-child(6) { transition-delay: 180ms; }
  .testimonial-card.will-reveal:nth-child(2) { transition-delay: 80ms; }
  .testimonial-card.will-reveal:nth-child(3) { transition-delay: 160ms; }

  /* Respect reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .will-reveal {
      opacity: 1;
      transform: none;
      filter: none;
      transition: none;
    }

    .hero-scroll-line::after {
      animation: none;
    }

    .cta-btn::before {
      display: none;
    }

    .hero-shape {
      animation: none;
      opacity: 0.6;
    }
  }
}

  /* ─── Legal modals ──────────────────────────────────────── */
  .footer-link-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    transition: color 200ms ease;
  }

  .footer-link-btn:hover {
    color: rgba(255, 255, 255, 0.9);
  }

  .legal-modal {
    position: fixed;
    inset: 0;
    width: min(680px, calc(100% - 40px));
    max-height: min(80vh, 700px);
    margin: auto;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0;
    color: var(--color-text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 280ms var(--ease-expo), transform 280ms var(--ease-expo);
  }

  .legal-modal[open] {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .legal-modal::backdrop {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
  }

  .legal-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: min(80vh, 700px);
  }

  .legal-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: background 200ms ease, color 200ms ease;
    z-index: 10;
  }

  .legal-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  .legal-modal-close svg {
    width: 16px;
    height: 16px;
  }

  .legal-modal h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    padding: 32px 32px 0;
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
  }

  .legal-modal-body {
    padding: 20px 32px 32px;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
  }

  .legal-modal-body::-webkit-scrollbar {
    width: 4px;
  }

  .legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
  }

  .legal-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
  }

  .legal-date {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 24px;
  }

  .legal-modal-body h3 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-top: 28px;
    margin-bottom: 8px;
  }

  .legal-modal-body p {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,0.72);
    margin-bottom: 12px;
  }

  .legal-modal-body strong {
    color: #fff;
    font-weight: 600;
  }

  .legal-modal-body a {
    color: rgba(255,255,255,0.8);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .legal-modal-body a:hover {
    color: #fff;
  }

/* ─── UTILITIES LAYER ──────────────────────────────────────── */
@layer utilities {
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
