@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  --ink: #0b0b0f;
  --ink-2: #12121a;
  --ink-3: #1e1e26;
  --gold: #f4b400;
  --gold-deep: #c27d00;
  --gold-soft: rgba(244, 180, 0, 0.16);
  --text: #fdfbf9;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --divider: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(244, 180, 0, 0.2);
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Manrope', sans-serif;
  --header-height: 86px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  /* Removed height: 100% to fix window.scrollY tracking */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 15% 15%, rgba(244, 180, 0, 0.18), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(244, 180, 0, 0.12), transparent 40%),
    linear-gradient(180deg, #0b0b0f 0%, #0f0f18 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

body.menu-open {
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%);
  background-position: 12px 0, 12px 0, 0 0, 0 0;
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.25;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9, 9, 14, 0.96);
  border-bottom: 1px solid rgba(244, 180, 0, 0.18);
}

header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(244, 180, 0, 0.4), transparent);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow: var(--glow);
}

.nav-links {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  position: relative;
  padding: 6px 12px;
  border-radius: 12px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-links a:hover {
  background: rgba(244, 180, 0, 0.12);
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 40;
}

.menu-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--text);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 999px;
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.active .bar {
  background-color: var(--gold);
}

.cta-pill {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.45);
  background: rgba(244, 180, 0, 0.12);
  color: var(--gold);
  font-weight: 700;
  box-shadow: var(--glow);
}

main {
  padding: var(--header-height) 0 60px;
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 60px;
}

.hero--image {
  position: relative;
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
  min-height: min(56.25vw, 760px);
}

.hero--image::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image:
    linear-gradient(180deg, rgba(6, 7, 10, 0.08) 0%, rgba(6, 7, 10, 0.4) 55%, var(--ink) 100%),
    url('assets/imageminicio.png');
  background-position: center top;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero--image>* {
  position: relative;
  z-index: 1;
}

.hero-text {
  display: grid;
  gap: 14px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  margin-top: 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-media {
  display: grid;
  gap: 22px;
  justify-items: start;
  max-width: 900px;
  margin: 0;
}

.phone-stack {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
}

.hero .phone-stack {
  justify-content: flex-start;
  justify-self: start;
}

.phone-mockup {
  position: relative;
  width: 210px;
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  background: #0f0f16;
  border: 1px solid rgba(244, 180, 0, 0.22);
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 64px;
  height: 18px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.phone-mockup--raised {
  transform: translateY(-18px);
}

.couple-card {
  display: flex;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow);
  align-items: center;
}

.couple-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(244, 180, 0, 0.18);
}

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 700;
}

.btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1200;
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--divider);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(244, 180, 0, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-image {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(244, 180, 0, 0.2);
  margin-top: 22px;
}

.section {
  padding: 80px 0;
}

.section-counter {
  padding: 24px 0 32px;
}

.live-counter-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 180, 0, 0.28);
  background:
    radial-gradient(circle at 20% 15%, rgba(244, 180, 0, 0.25), transparent 45%),
    linear-gradient(135deg, rgba(18, 18, 26, 0.95), rgba(11, 11, 15, 0.95));
  box-shadow: var(--shadow), var(--glow);
  padding: 30px clamp(20px, 4vw, 44px);
}

.live-counter-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(244, 180, 0, 0.08), transparent);
  pointer-events: none;
}

.counter-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.35);
  background: rgba(244, 180, 0, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.counter-main-value {
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1;
  color: #fff7dc;
  text-shadow: 0 0 24px rgba(244, 180, 0, 0.32);
}

.counter-main-label {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.counter-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.counter-metric {
  border: 1px solid rgba(244, 180, 0, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.counter-metric-label {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.counter-metric-value {
  margin-top: 6px;
  color: #fff7dc;
  font-size: clamp(1.05rem, 3vw, 1.5rem);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(244, 180, 0, 0.22);
}

.counter-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 18px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 36px;
}

.program-section {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(244, 180, 0, 0.22);
  background:
    radial-gradient(circle at 12% 0%, rgba(244, 180, 0, 0.14), transparent 34%),
    rgba(14, 14, 22, 0.92);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
}

.program-header .section-subtitle {
  margin-bottom: 20px;
}

.program-embed {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(244, 180, 0, 0.25);
  background: #000;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

.program-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.program-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.program-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(18, 18, 26, 0.9);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(244, 180, 0, 0.15);
  background: rgba(18, 18, 26, 0.7);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(244, 180, 0, 0.15);
  color: var(--gold);
  font-weight: 700;
  display: grid;
  place-items: center;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.store-badge {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.store-badge img {
  width: 150px;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 180, 0, 0.3);
}

.section-contrast {
  background: rgba(12, 12, 18, 0.85);
  border-top: 1px solid rgba(244, 180, 0, 0.08);
  border-bottom: 1px solid rgba(244, 180, 0, 0.08);
}

.highlight {
  color: var(--gold);
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

.float {
  animation: float 6s ease-in-out infinite;
}

.float.delay {
  animation-delay: 1.5s;
}

footer.footer {
  position: relative;
  z-index: 2;
  isolation: isolate;
  background: #09090f;
  border-top: 1px solid rgba(244, 180, 0, 0.15);
  padding: 50px 0 30px;
}

footer.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #09090f;
  z-index: -1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  font-weight: 700;
}

.footer-brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.footer-meta {
  color: var(--text-faint);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-bottom {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 0.9rem;
  border-top: 1px solid var(--divider);
  padding-top: 18px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero--image {
    /* Reduce height on mobile to prevent excessive video zooming/cropping */
    min-height: 500px;
    padding-top: calc(var(--header-height) + 20px);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .phone-stack {
    flex-direction: column;
    align-items: flex-start;
  }

  .phone-stack {
    justify-content: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 80%);
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 22px;
    padding: 90px 28px;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out, opacity 0.2s ease-in-out;
    z-index: 30;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.55);
    pointer-events: none;
    opacity: 0;
  }

  .nav-links.active {
    transform: translateX(0);
    pointer-events: auto;
    opacity: 1;
  }

  .nav-links a {
    color: var(--gold);
    font-size: 1.05rem;
    width: 100%;
  }

  .nav-links a:hover {
    background: rgba(244, 180, 0, 0.16);
    color: var(--text);
  }

  .nav-links .cta-pill {
    align-self: flex-start;
  }
}

@media (max-width: 600px) {
  .download-hero {
    padding: 60px 24px 40px;
    background-position: 70% top;
  }

  .download-hero__stores {
    gap: 12px;
  }

  .download-hero__mockups {
    --phone-size: clamp(130px, min(34vw, 24vh), 175px);
    width: min(100%, calc(var(--phone-size) * 2.05));
    height: calc(var(--phone-size) * 2.15 + 20px);
  }

  .download-quote__panel {
    padding: 44px 24px;
  }

  .hero {
    padding-top: 10px;
  }

  .hero--image::before {
    background-position: 75% top;
  }

  .phone-mockup {
    width: 190px;
  }

  .couple-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .program-actions {
    flex-direction: column;
  }

  .store-badge img {
    width: 130px;
  }

  .section-counter {
    padding: 18px 0 28px;
  }

  .live-counter-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

  .counter-grid {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  padding: 50px 0 30px;
}

.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 720px;
}

.download-hero {
  position: relative;
  margin-top: 28px;
  padding: 80px 64px 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(6, 7, 10, 0.4) 0%, rgba(6, 7, 10, 0.7) 55%, rgba(6, 7, 10, 0.85) 100%),
    radial-gradient(circle at 15% 20%, rgba(244, 180, 0, 0.22), transparent 55%),
    url('assets/imageminicio.png');
  background-size: cover;
  background-position: 70% center;
  border: 1px solid rgba(244, 180, 0, 0.18);
  box-shadow: var(--shadow);
}

.download-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(244, 180, 0, 0.12), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.download-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: start;
}

.download-hero__copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.download-hero__copy p {
  color: var(--text-muted);
  max-width: 520px;
}

.download-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.download-hero__visual {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.download-hero__mockups {
  position: relative;
  --phone-size: clamp(150px, min(18vw, 24vh), 200px);
  width: min(100%, calc(var(--phone-size) * 2.4));
  height: calc(var(--phone-size) * 2.25 + 28px);
  touch-action: pan-y;
  cursor: grab;
  --drag: 0;
  user-select: none;
}

.download-hero__mockups:active {
  cursor: grabbing;
}

.download-hero__mockups,
.download-hero__mockups * {
  pointer-events: none;
}

.download-hero__mockups {
  pointer-events: auto;
}

.download-hero__mockups:focus-visible {
  outline: 2px solid rgba(244, 180, 0, 0.5);
  outline-offset: 6px;
  border-radius: 24px;
}

.download-hero__mockups.cylinder {
  perspective: 1200px;
}

.download-hero__mockups .cylinder-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.download-hero__mockups .cylinder-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--phone-size);
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 0.45s ease, opacity 0.45s ease;
  will-change: transform;
}

.download-hero__mockups .phone-mockup {
  width: 100%;
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.5);
}

.download-hero__mockups.is-dragging .cylinder-face {
  transition: none;
}

.download-hero__mockups img {
  -webkit-user-drag: none;
  user-select: none;
}

.download-hero__stores {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 180, 0, 0.18);
}

.store-badge--glass {
  background: rgba(10, 10, 14, 0.6);
  border-color: rgba(244, 180, 0, 0.22);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.store-badge--compact img {
  width: 140px;
}

.store-badge--ghost {
  background: rgba(12, 12, 18, 0.6);
  border-color: rgba(255, 255, 255, 0.16);
}

.download-features .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: rgba(18, 18, 26, 0.88);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(244, 180, 0, 0.18);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-quote {
  padding: 30px 0 0;
}

.download-quote__panel {
  position: relative;
  padding: 54px 60px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.75) 0%, rgba(8, 8, 12, 0.9) 100%);
  border: 1px solid rgba(244, 180, 0, 0.16);
  box-shadow: var(--shadow);
}

.download-quote__panel blockquote {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 12px;
}

.download-quote__meta {
  color: var(--text-faint);
  margin-bottom: 18px;
}

.download-quote__badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.float-soft {
  animation: floatSoft 8s ease-in-out infinite;
}

.float-soft.delay-1 {
  animation-delay: 1s;
}

.float-soft.delay-2 {
  animation-delay: 2.2s;
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

.split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 180, 0, 0.3);
  color: var(--gold);
  background: rgba(244, 180, 0, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid var(--divider);
}

.contact-card h4 {
  margin-bottom: 8px;
}

.notice {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: rgba(244, 180, 0, 0.08);
  border-radius: 12px;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .download-hero {
    padding: 70px 40px 46px;
  }

  .download-hero__inner {
    grid-template-columns: 1fr;
  }

  .download-hero__visual {
    order: 2;
    justify-content: center;
    margin-top: 22px;
  }

  .download-hero__mockups {
    --phone-size: clamp(140px, min(26vw, 26vh), 190px);
    width: min(100%, calc(var(--phone-size) * 2.2));
    height: calc(var(--phone-size) * 2.2 + 24px);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.legal {
  max-width: 840px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
  font-size: 0.98rem;
}

.legal h2,
.legal h3 {
  margin-top: 26px;
  margin-bottom: 6px;
  font-family: var(--font-head);
}

.legal p,
.legal li {
  color: var(--text-muted);
  line-height: 1.7;
}

.legal p {
  margin: 0 0 8px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  margin: 0 0 8px;
}

.legal li {
  margin: 0 0 14px;
}

.legal li:last-child {
  margin-bottom: 0;
}

.legal a {
  color: var(--gold);
  font-weight: 600;
}

.legal-note {
  background: rgba(244, 180, 0, 0.1);
  border: 1px solid rgba(244, 180, 0, 0.2);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-muted);
}

/* --- Hero Animation Layering --- */
/* When JS says "Ready" (First frame loaded), hide the static image */
body.hero-ready .hero--image::before {
  display: none !important;
}

.hero-animating .hero--image>* {
  /* Ensure content sits above the canvas (z-index 1) */
  z-index: 10;
  position: relative;
}

/* Canvas inserted by JS */
/* Canvas inserted by JS */
/* Canvas inserted by JS */
#hero-sequence {
  z-index: 0;
}

.hero--image {
  /* Restored default height logic */
  position: relative;
}

/* Cleanup layout hacks */
main,
section,
footer {
  position: relative;
  z-index: 2;
}
