/* ==========================================================================
   El Mero Pixel — elmeropixel.com
   Premium dark agency base + warm fiesta accents.
   Authored hand-tuned (no framework) for speed + maintainability.
   Sections: 1 Tokens · 2 Reset/base · 3 Layout · 4 Buttons · 5 Nav
   6 Hero + rescue animation · 7 Cards/sections · 8 Pricing · 9 FAQ
   10 Footer · 11 Reveal/motion · 12 Responsive
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Surfaces (warm dark) */
  --ink:        #121419;
  --ink-2:      #171A21;
  --ink-3:      #1E222B;
  --ink-4:      #262B36;
  --line:       rgba(247, 238, 221, 0.10);
  --line-2:     rgba(247, 238, 221, 0.18);

  /* Text (cream family) */
  --cream:      #F7EEDD;
  --cream-dim:  #C9C2B3;
  --muted:      #98917F;

  /* Fiesta accents */
  --red:        #DA3B2F;   /* CTA bg (white text passes AA) */
  --red-bright: #F2594C;   /* decorative highlight text on dark */
  --teal:       #34B6CB;
  --teal-bright:#54CFE2;
  --green:      #5FBE4D;
  --gold:       #ECAB45;
  --gold-bright:#F6C067;
  --wa:         #25D366;   /* WhatsApp green (dark text) */
  --wa-ink:     #06281A;

  /* Effects */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --shadow:     0 18px 50px -22px rgba(0,0,0,.7);
  --shadow-soft:0 10px 30px -18px rgba(0,0,0,.6);
  --ring:       0 0 0 3px rgba(236,171,69,.55);

  /* Type */
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms;
  --t-med: 280ms;
}

/* 2. RESET / BASE ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* layered warm radial glows + faint grain for premium depth */
  background-image:
    radial-gradient(900px 500px at 82% -8%, rgba(52,182,203,.10), transparent 60%),
    radial-gradient(760px 520px at 8% 4%, rgba(218,59,47,.10), transparent 58%),
    radial-gradient(700px 700px at 50% 120%, rgba(236,171,69,.07), transparent 60%);
  background-attachment: fixed;
}

img, svg, video { display: block; max-width: 100%; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

::selection { background: var(--gold); color: #1a1206; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

/* Accent text helpers */
.hl { position: relative; white-space: nowrap; }
.hl--red    { color: var(--red-bright); }
.hl--teal   { color: var(--teal-bright); }
.hl--gold   { color: var(--gold-bright); }
.hl--green  { color: var(--green); }
.hl--cream  { color: var(--cream); }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #1a1206; padding: 10px 16px;
  border-radius: 10px; font-weight: 700; transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 3. LAYOUT ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; border-radius: 2px;
  background:
    linear-gradient(90deg, var(--red) 0 33%, var(--gold) 33% 66%, var(--teal) 66% 100%);
  box-shadow: 0 0 14px rgba(236,171,69,.4);
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-top: 18px;
  letter-spacing: -0.03em;
}
.section-sub {
  margin-top: 18px;
  color: var(--cream-dim);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 60ch;
  line-height: 1.65;
}
.section-head--center .section-sub { margin-inline: auto; }

/* Pixel divider */
.pixel-rule {
  display: flex; gap: 6px; justify-content: center; padding-block: 8px;
}
.pixel-rule span {
  width: 9px; height: 9px; border-radius: 2px; opacity: .9;
}
.pixel-rule span:nth-child(1){ background: var(--red); }
.pixel-rule span:nth-child(2){ background: var(--gold); }
.pixel-rule span:nth-child(3){ background: var(--teal); }
.pixel-rule span:nth-child(4){ background: var(--green); }
.pixel-rule span:nth-child(5){ background: var(--cream); }

/* 4. BUTTONS ------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px;
  min-height: 52px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              color var(--t-med) var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(218,59,47,.8), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary::after {
  /* moving shine micro-interaction */
  content: ""; position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 64%);
  background-size: 250% 100%; background-position: 200% 0;
  opacity: 0; transition: opacity var(--t-med) var(--ease);
}
.btn--primary:hover { background: #ec4133; box-shadow: 0 18px 38px -12px rgba(218,59,47,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--primary:hover::after { opacity: 1; animation: shine 900ms var(--ease); }
@keyframes shine { from { background-position: 200% 0; } to { background-position: -60% 0; } }

.btn--ghost {
  background: rgba(247,238,221,.03);
  color: var(--cream);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(247,238,221,.08); border-color: var(--cream-dim); transform: translateY(-2px); }

.btn--wa {
  background: var(--wa);
  color: var(--wa-ink);
  box-shadow: 0 12px 28px -14px rgba(37,211,102,.9);
}
.btn--wa:hover { background: #34e07a; transform: translateY(-2px); }

.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 1.08rem; }
.btn--block { width: 100%; }

/* 5. NAVBAR ------------------------------------------------------------- */
.nav {
  position: fixed; inset: 12px 12px auto 12px; z-index: 100;
  border-radius: var(--radius);
  background: rgba(18,20,25,.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease), inset 12px 12px;
}
.nav.is-scrolled { background: rgba(18,20,25,.85); box-shadow: var(--shadow-soft); border-color: var(--line-2); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px clamp(14px, 2.4vw, 22px);
  max-width: var(--container); margin-inline: auto;
}

/* Brand wordmark */
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; }
.brand__glyph { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.brand__text { font-size: 1.22rem; letter-spacing: -0.03em; line-height: 1; }
.brand__text .b1 { color: var(--cream); }
.brand__text .b2 { color: var(--red-bright); }
.brand__text .tld { color: var(--muted); font-family: var(--font-mono); font-size: .72em; font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  color: var(--cream-dim); transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--cream); background: rgba(247,238,221,.06); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang {
  display: inline-flex; align-items: center; padding: 4px;
  background: rgba(247,238,221,.05); border: 1px solid var(--line); border-radius: 999px;
}
.lang__btn {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  padding: 6px 11px; border-radius: 999px; color: var(--muted);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  min-width: 38px; min-height: 32px;
}
.lang__btn[aria-pressed="true"] { background: var(--gold); color: #1a1206; }

.nav__cta { display: inline-flex; }

/* Hamburger */
.hamburger {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line-2); background: rgba(247,238,221,.04);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease); }
.hamburger[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(15,17,21,.97);
  backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 90px var(--gutter) 40px;
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a.m-link {
  font-family: var(--font-display); font-weight: 700; font-size: 1.8rem;
  padding: 12px 4px; color: var(--cream); border-bottom: 1px solid var(--line);
}
.mobile-menu a.m-link:active { color: var(--gold-bright); }
.mobile-menu .btn { margin-top: 22px; }

/* 6. HERO + RESCUE ANIMATION ------------------------------------------- */
.hero { padding-top: clamp(120px, 16vw, 180px); padding-bottom: var(--section-y); position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(247,238,221,.04); border: 1px solid var(--line-2);
  padding: 7px 14px 7px 8px; border-radius: 999px; font-size: .85rem; color: var(--cream-dim); font-weight: 600;
}
.hero__badge .chip {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  background: var(--green); color: #06281a; padding: 4px 9px; border-radius: 999px;
}
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  margin-top: 22px; letter-spacing: -0.035em; line-height: 0.98;
}
.hero__sub {
  margin-top: 24px; font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  color: var(--cream-dim); max-width: 52ch; line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.hero__trust .dot-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.hero__trust b { color: var(--cream); font-weight: 700; }

/* Rescue mockup */
.hero__art { position: relative; }
.rescue {
  position: relative;
  aspect-ratio: 4 / 3.25;
  perspective: 1200px;
}
.rescue__frame {
  position: relative; height: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform var(--t-med) var(--ease);
}
.rescue:hover .rescue__frame { transform: rotate(0deg); }
.browserbar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: #0d0f13; border-bottom: 1px solid var(--line);
}
.browserbar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browserbar .dot:nth-child(1){ background: #ff5f56; }
.browserbar .dot:nth-child(2){ background: #ffbd2e; }
.browserbar .dot:nth-child(3){ background: #27c93f; }
.browserbar__url {
  margin-left: 10px; flex: 1; font-family: var(--font-mono); font-size: .72rem;
  color: var(--muted); background: #15171c; padding: 5px 12px; border-radius: 7px;
  display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap;
}
.browserbar__url .lock { color: var(--green); font-size: .8em; }
.rescue__screen { position: relative; height: calc(100% - 43px); overflow: hidden; }

/* shared mini-site layers */
.site { position: absolute; inset: 0; padding: 18px; }

/* BEFORE — deliberately ugly 2012 nephew site */
.site--before {
  background: repeating-linear-gradient(45deg, #1b8f2e 0 22px, #19a52f 22px 44px);
  font-family: "Comic Sans MS", "Times New Roman", cursive, serif;
  color: #1d1dff; text-align: center;
}
.before-title {
  font-size: clamp(.9rem, 2.4vw, 1.4rem); font-weight: 700; color: #ff00d4;
  text-shadow: 1px 1px 0 #ff0, 2px 2px 0 #000;
  transform: rotate(-3deg); letter-spacing: -.5px; margin-top: 4px;
}
.before-marquee {
  margin: 8px auto; background: #ffff00; color: #ff0000; font-weight: 700;
  border: 2px dashed #ff0000; padding: 3px; font-size: .62rem; overflow: hidden; white-space: nowrap;
}
.before-marquee span { display: inline-block; animation: marq 7s linear infinite; }
@keyframes marq { from { transform: translateX(40%); } to { transform: translateX(-100%); } }
.before-row { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.before-img {
  width: 56px; height: 42px; background: #c0c0c0; border: 2px inset #999;
  display: grid; place-items: center; color: #d00; font-size: .55rem; font-weight: 700;
}
.before-img::before { content: "▨"; font-size: 1.1rem; color: #888; }
.before-counter {
  display: inline-block; background: #000; color: #0f0; font-family: var(--font-mono);
  font-size: .62rem; padding: 2px 6px; border: 1px solid #0f0; letter-spacing: 2px;
}
.before-cone {
  margin-top: 8px; font-size: .6rem; color: #000; background: #ffb300;
  display: inline-block; padding: 3px 8px; transform: rotate(2deg); font-weight: 700;
  border: 1px solid #000;
}
.before-blink { animation: blink 1s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cobweb { position: absolute; width: 30px; height: 30px; opacity: .5; }
.cobweb--tl { top: 0; left: 0; }
.cobweb--tr { top: 0; right: 0; transform: scaleX(-1); }

/* AFTER — clean modern site (revealed by wipe) */
.site--after {
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(52,182,203,.16), transparent 60%),
    var(--ink-2);
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s cubic-bezier(.76,0,.24,1);
  display: flex; flex-direction: column;
}
.after-top { display: flex; align-items: center; justify-content: space-between; }
.after-brand { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: .8rem; }
.after-brand i { width: 14px; height: 14px; border-radius: 4px; background: var(--red); display: inline-block; }
.after-nav { display: flex; gap: 8px; }
.after-nav span { width: 20px; height: 5px; border-radius: 3px; background: var(--line-2); }
.after-hero { margin-top: 14px; }
.after-hero h5 { font-family: var(--font-display); font-size: clamp(.95rem, 2.6vw, 1.4rem); font-weight: 800; line-height: 1.05; color: var(--cream); }
.after-hero h5 em { color: var(--gold-bright); font-style: normal; }
.after-pills { display: flex; gap: 7px; margin-top: 12px; }
.after-pills b { font-size: .6rem; padding: 5px 11px; border-radius: 999px; font-weight: 700; }
.after-pills .p1 { background: var(--red); color: #fff; }
.after-pills .p2 { background: rgba(247,238,221,.08); color: var(--cream); border: 1px solid var(--line-2); }
.after-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: auto; }
.after-cards div { height: 34px; border-radius: 8px; background: var(--ink-3); border: 1px solid var(--line); position: relative; }
.after-cards div::after { content:""; position:absolute; left:7px; top:7px; width:14px; height:14px; border-radius:4px; }
.after-cards div:nth-child(1)::after { background: var(--teal); }
.after-cards div:nth-child(2)::after { background: var(--gold); }
.after-cards div:nth-child(3)::after { background: var(--green); }
.after-stars { margin-top: 9px; font-family: var(--font-mono); font-size: .64rem; color: var(--gold-bright); letter-spacing: 1px; }

/* scan / wipe edge */
.scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 7%;
  background: linear-gradient(90deg, transparent, rgba(246,192,103,.9), rgba(255,255,255,.95), rgba(52,182,203,.9), transparent);
  filter: blur(1px); opacity: 0; transform: translateX(-30%); pointer-events: none;
  box-shadow: 0 0 30px rgba(246,192,103,.7);
}

/* sparkles */
.sparks { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 2px; opacity: 0; transform: scale(0) rotate(0deg); }
.spark--1 { top: 16%; left: 60%; background: var(--gold); }
.spark--2 { top: 30%; left: 84%; background: var(--teal); width: 7px; height: 7px; }
.spark--3 { top: 64%; left: 70%; background: var(--red); width: 8px; height: 8px; }
.spark--4 { top: 78%; left: 50%; background: var(--green); width: 6px; height: 6px; }
.spark--5 { top: 12%; left: 40%; background: var(--cream); width: 6px; height: 6px; }

/* mascot */
.mascot {
  position: absolute; right: -7%; bottom: -5%; width: 40%; max-width: 200px;
  transform: translateX(165%) rotate(6deg); transform-origin: bottom center;
  transition: transform .7s var(--ease-spring);
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.55));
  z-index: 4;
}
.mascot__arm { transform-origin: 70% 60%; }

/* tags */
.rescue__tag {
  position: absolute; z-index: 5; font-family: var(--font-mono); font-weight: 700;
  font-size: .68rem; letter-spacing: .04em; padding: 7px 12px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: var(--shadow-soft);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.rescue__tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.rescue__tag--before { left: -14px; top: 16%; background: #2a2a2a; color: #ffd1cd; transform: rotate(-4deg); }
.rescue__tag--before::before { background: var(--red-bright); }
.rescue__tag--after { right: -16px; bottom: 14%; background: var(--cream); color: #16202a; opacity: 0; transform: translateY(8px) rotate(3deg); }
.rescue__tag--after::before { background: var(--green); }

/* ---- STATE MACHINE ---- */
.rescue[data-state="rescue"] .mascot,
.rescue[data-state="after"]  .mascot { transform: translateX(0) rotate(-4deg); }
.rescue[data-state="after"]  .mascot { animation: mascotBob 2.2s var(--ease) infinite; }
@keyframes mascotBob { 0%,100%{ transform: translateX(0) rotate(-4deg) translateY(0); } 50%{ transform: translateX(0) rotate(-4deg) translateY(-7px); } }

.rescue[data-state="after"] .site--after { clip-path: inset(0 0 0 0); }

.rescue[data-state="after"] .scan { opacity: 1; transform: translateX(1320%); transition: transform .9s cubic-bezier(.76,0,.24,1), opacity .9s ease; }

.rescue[data-state="after"] .spark { animation: pop 1.4s var(--ease-spring) both; }
.rescue[data-state="after"] .spark--1 { animation-delay: .35s; }
.rescue[data-state="after"] .spark--2 { animation-delay: .5s; }
.rescue[data-state="after"] .spark--3 { animation-delay: .62s; }
.rescue[data-state="after"] .spark--4 { animation-delay: .74s; }
.rescue[data-state="after"] .spark--5 { animation-delay: .46s; }
@keyframes pop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  40% { opacity: 1; transform: scale(1.15) rotate(35deg); }
  70% { transform: scale(.95) rotate(20deg); }
  100% { opacity: .92; transform: scale(1) rotate(25deg); }
}

.rescue[data-state="after"] .rescue__tag--before { opacity: 0; transform: translateY(-8px) rotate(-4deg); }
.rescue[data-state="after"] .rescue__tag--after  { opacity: 1; transform: translateY(0) rotate(3deg); }
.rescue[data-state="before"] .site--before,
.rescue[data-state="rescue"] .site--before { filter: none; }

/* little dust shake on before when mascot arrives */
.rescue[data-state="rescue"] .site--before { animation: shake .5s var(--ease) 2; }
@keyframes shake { 0%,100%{ transform: translateX(0);} 25%{ transform: translateX(-3px);} 75%{ transform: translateX(3px);} }

/* floating pixel accents around hero art */
.hero__art .float-pixel {
  position: absolute; border-radius: 4px; z-index: 1;
  animation: floaty 6s ease-in-out infinite;
}
.fp1 { width: 18px; height: 18px; background: var(--gold); top: -16px; left: 8%; }
.fp2 { width: 12px; height: 12px; background: var(--teal); bottom: 6%; left: -14px; animation-delay: 1.5s; }
.fp3 { width: 14px; height: 14px; background: var(--red); top: 30%; right: -16px; animation-delay: .8s; }
@keyframes floaty { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-12px) rotate(8deg); } }

/* 7. GENERIC GRID + CARDS ---------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--ink-3); box-shadow: var(--shadow); }

/* Icon chip */
.icon-chip {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(247,238,221,.05); border: 1px solid var(--line-2); margin-bottom: 18px;
  transition: transform var(--t-med) var(--ease-spring), background var(--t-med) var(--ease);
}
.icon-chip svg { width: 24px; height: 24px; stroke-width: 1.9; }
.card:hover .icon-chip { transform: rotate(-6deg) scale(1.06); }
.icon-chip--red   { color: var(--red-bright); }
.icon-chip--teal  { color: var(--teal-bright); }
.icon-chip--gold  { color: var(--gold-bright); }
.icon-chip--green { color: var(--green); }

.card h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.card p { margin-top: 10px; color: var(--cream-dim); font-size: .98rem; line-height: 1.6; }

/* Problem / pain cards */
.pain { display: flex; gap: 16px; align-items: flex-start; }
.pain .icon-chip { margin-bottom: 0; flex: none; }
.pain h3 { font-size: 1.08rem; }
.pain p { font-size: .94rem; margin-top: 6px; }

/* Services accent bar */
.service { overflow: hidden; }
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--red), var(--gold)); opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.service:hover::before { opacity: 1; }

/* 4 — Business previews */
.preview { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.preview__top {
  position: relative; aspect-ratio: 16/10; padding: 16px; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink-3);
}
.preview__chrome { display: flex; gap: 6px; margin-bottom: 12px; }
.preview__chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.preview__mock { display: grid; gap: 8px; height: calc(100% - 24px); }
.preview__bar { height: 12px; border-radius: 4px; background: var(--line-2); }
.preview__bar.w70 { width: 70%; } .preview__bar.w50 { width: 50%; } .preview__bar.w40 { width: 40%; }
.preview__blocks { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: auto; }
.preview__blocks span { border-radius: 8px; }
.preview__hero-strip { height: 34%; border-radius: 10px; }
.preview__badge {
  position: absolute; top: 14px; right: 14px; font-family: var(--font-mono);
  font-size: .64rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: var(--cream); border: 1px solid var(--line-2);
  backdrop-filter: blur(4px);
}
.preview__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.preview__industry { font-size: 1.18rem; }
.preview__joke { color: var(--gold-bright); font-style: italic; margin-top: 8px; font-size: .96rem; line-height: 1.5; }
.preview__feats { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.preview__feats li {
  font-size: .76rem; font-weight: 600; color: var(--cream-dim);
  background: rgba(247,238,221,.04); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px;
}
.preview__cta {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cream);
  transition: gap var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
.preview__cta svg { width: 18px; height: 18px; transition: transform var(--t-med) var(--ease); }
.preview:hover .preview__cta { color: var(--gold-bright); gap: 12px; }
.preview:hover .preview__cta svg { transform: translateX(3px); }

/* palette themes for preview mock strips */
.th-red  .preview__hero-strip, .th-red  .preview__blocks span:nth-child(1){ background: linear-gradient(135deg,#e0483c,#7d211a); }
.th-teal .preview__hero-strip, .th-teal .preview__blocks span:nth-child(1){ background: linear-gradient(135deg,#34b6cb,#155f6c); }
.th-gold .preview__hero-strip, .th-gold .preview__blocks span:nth-child(1){ background: linear-gradient(135deg,#ecab45,#8a5e16); }
.th-green .preview__hero-strip,.th-green .preview__blocks span:nth-child(1){ background: linear-gradient(135deg,#5fbe4d,#2c6321); }
.preview__blocks span:nth-child(2){ background: var(--ink-4); }
.preview__blocks span:nth-child(3){ background: var(--line-2); }

/* 5 — Why choose (feature list with checks) */
.why-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px 30px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.why-item .check {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(95,190,77,.14); color: var(--green); border: 1px solid rgba(95,190,77,.3);
}
.why-item .check svg { width: 17px; height: 17px; stroke-width: 2.4; }
.why-item h3 { font-size: 1.05rem; }
.why-item p { font-size: .92rem; color: var(--cream-dim); margin-top: 3px; }

.why-aside {
  background: linear-gradient(160deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: clamp(26px,3vw,38px);
  position: relative; overflow: hidden;
}
.why-aside .stat { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem,6vw,3.6rem); line-height: 1; letter-spacing: -.04em; }
.why-aside .stat--red { color: var(--red-bright); }
.why-aside .stat--teal { color: var(--teal-bright); }
.why-aside .stat--gold { color: var(--gold-bright); }
.why-aside .stat-label { color: var(--cream-dim); font-size: .92rem; margin-top: 6px; }
.why-aside .stat-row + .stat-row { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }

/* 6 — Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step { position: relative; padding-top: 8px; }
.step__num {
  font-family: var(--font-mono); font-weight: 700; font-size: .82rem; letter-spacing: .1em;
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink-2); border: 1px solid var(--line-2); color: var(--gold-bright);
  margin-bottom: 18px; position: relative; z-index: 2;
}
.step:not(:last-child) .step__num::after {
  content: ""; position: absolute; left: 100%; top: 50%; width: calc(100% + 20px - 56px); height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step h3 { font-size: 1.18rem; }
.step p { color: var(--cream-dim); margin-top: 9px; font-size: .96rem; }

/* 7 — Personality / humor band */
.humor { background: linear-gradient(180deg, transparent, rgba(218,59,47,.05) 50%, transparent); }
.humor-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.quote {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.quote:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--line-2); }
.quote .mark { font-family: var(--font-display); font-size: 3rem; line-height: .5; color: var(--line-2); height: 26px; display: block; }
.quote p { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; line-height: 1.2; letter-spacing: -.02em; margin-top: 10px; }
.quote .es { color: var(--cream-dim); font-family: var(--font-body); font-weight: 500; font-size: .9rem; font-style: italic; margin-top: 12px; display: block; }
.quote--feat { background: linear-gradient(150deg, var(--red), #9c241b); border-color: transparent; }
.quote--feat p, .quote--feat .es { color: #fff; }
.quote--feat .mark { color: rgba(255,255,255,.3); }

/* 8 — Pricing */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: start; }
.plan {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; height: 100%;
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.plan:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.plan--feat {
  border-color: var(--gold); background: linear-gradient(170deg, rgba(236,171,69,.10), var(--ink-2) 42%);
  box-shadow: 0 24px 60px -30px rgba(236,171,69,.5);
}
.plan__tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  background: var(--gold); color: #1a1206; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.plan__name { font-size: 1.4rem; }
.plan__desc { color: var(--cream-dim); margin-top: 8px; font-size: .94rem; min-height: 42px; }
.plan__price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan__price .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; }
.plan__price .per { color: var(--muted); font-size: .9rem; }
.plan__price .from { font-size: .78rem; color: var(--gold-bright); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; width: 100%; }
.plan__list { margin-top: 22px; display: grid; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; color: var(--cream-dim); }
.plan__list li svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; stroke-width: 2.4; }
.plan .btn { margin-top: 28px; }
.pricing-note { text-align: center; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.pricing-note b { color: var(--gold-bright); }

/* 9 — Testimonials */
.tnote {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-bright); background: rgba(236,171,69,.1); border: 1px solid rgba(236,171,69,.3);
  padding: 7px 14px; border-radius: 999px; margin-top: 16px;
}
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.testimonial .stars { color: var(--gold-bright); letter-spacing: 2px; font-size: .9rem; }
.testimonial blockquote { margin-top: 14px; font-size: 1.05rem; line-height: 1.55; color: var(--cream); flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: #1a1206;
}
.testimonial .who b { display: block; font-size: .95rem; color: var(--cream); }
.testimonial .who span { font-size: .82rem; color: var(--muted); }

/* 10 — FAQ */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.faq[open] { border-color: var(--line-2); background: var(--ink-3); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.06rem; color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico {
  flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--gold-bright); transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.faq[open] summary .q-ico { transform: rotate(45deg); background: var(--gold); color: #1a1206; border-color: var(--gold); }
.faq__body { padding: 0 24px 22px; color: var(--cream-dim); line-height: 1.65; max-width: 64ch; }

/* 11 — Final CTA */
.cta-final { position: relative; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, #1d2129, var(--ink-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(38px, 6vw, 76px); text-align: center;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% -10%, rgba(218,59,47,.22), transparent 60%),
    radial-gradient(600px 320px at 90% 120%, rgba(52,182,203,.20), transparent 60%);
}
.cta-card > * { position: relative; }
.cta-card h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); letter-spacing: -.03em; }
.cta-card p { color: var(--cream-dim); margin: 18px auto 0; max-width: 54ch; font-size: 1.1rem; }
.cta-card .hero__cta { justify-content: center; }
.cta-pixels { display: flex; gap: 7px; justify-content: center; margin-bottom: 26px; }
.cta-pixels span { width: 11px; height: 11px; border-radius: 3px; animation: floaty 5s ease-in-out infinite; }
.cta-pixels span:nth-child(1){ background: var(--red); }
.cta-pixels span:nth-child(2){ background: var(--gold); animation-delay:.4s; }
.cta-pixels span:nth-child(3){ background: var(--teal); animation-delay:.8s; }
.cta-pixels span:nth-child(4){ background: var(--green); animation-delay:1.2s; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,48px); align-items: start; }
.form-card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px,3vw,38px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 8px; color: var(--cream); }
.field label .opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; background: var(--ink); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); color: var(--cream); font-size: 1rem;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(236,171,69,.18); outline: none; }
.field textarea { resize: vertical; min-height: 120px; }
.form-msg { margin-top: 14px; font-size: .92rem; padding: 12px 16px; border-radius: 12px; display: none; }
.form-msg.ok { display: block; background: rgba(95,190,77,.12); border: 1px solid rgba(95,190,77,.35); color: var(--green); }
.contact-aside h3 { font-size: clamp(1.5rem,3vw,2rem); }
.contact-aside p { color: var(--cream-dim); margin-top: 14px; }
.contact-channels { display: grid; gap: 12px; margin-top: 26px; }
.channel {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line); transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.channel:hover { border-color: var(--line-2); transform: translateX(4px); }
.channel .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; }
.channel .ic svg { width: 22px; height: 22px; }
.channel .ic--wa { background: rgba(37,211,102,.14); color: var(--wa); }
.channel .ic--mail { background: rgba(52,182,203,.14); color: var(--teal-bright); }
.channel b { display: block; font-size: .98rem; }
.channel span { font-size: .85rem; color: var(--muted); }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--wa-ink);
  display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7);
  transition: transform var(--t-med) var(--ease-spring), box-shadow var(--t-med) var(--ease);
  opacity: 0; transform: scale(0) translateY(20px); pointer-events: none;
}
.wa-float.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0%{ transform: scale(1); opacity: .7; } 100%{ transform: scale(1.6); opacity: 0; } }

/* 12 — Footer */
.footer { border-top: 1px solid var(--line); padding-block: clamp(48px,6vw,72px) 32px; margin-top: var(--section-y); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand p { color: var(--muted); margin-top: 16px; max-width: 34ch; font-size: .94rem; line-height: 1.6; }
.footer__col h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; color: var(--gold-bright); font-weight: 700; }
.footer__col ul { margin-top: 18px; display: grid; gap: 11px; }
.footer__col a { color: var(--cream-dim); font-size: .95rem; transition: color var(--t-fast) var(--ease); }
.footer__col a:hover { color: var(--cream); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--cream-dim);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.socials a:hover { color: var(--cream); border-color: var(--cream-dim); transform: translateY(-3px); }
.socials a svg { width: 20px; height: 20px; }
.footer__bar {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  color: var(--muted); font-size: .88rem;
}
.footer__bar .lang { background: rgba(247,238,221,.03); }

/* 11. REVEAL / MOTION --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

[hidden] { display: none !important; }

/* 12. RESPONSIVE -------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .step:nth-child(2) .step__num::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .hamburger { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin-inline: auto; width: 100%; }
  .grid--3, .humor-grid, .plans, .tgrid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .why-aside { order: -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child) .step__num::after { display: none; }
  .nav { inset: 8px 8px auto 8px; }
  .hero__cta .btn, .cta-card .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .lang--nav { display: none; } /* keep one in mobile menu + footer */
}

/* Reduced motion: calm everything, show the "after" rescue state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rescue .mascot { transform: translateX(0) rotate(-4deg); }
  .rescue .site--after { clip-path: inset(0 0 0 0); }
  .rescue .rescue__tag--after { opacity: 1; transform: none; }
  .rescue .rescue__tag--before { opacity: 0; }
  .rescue .spark { opacity: .9; transform: scale(1) rotate(20deg); }
  .before-marquee span, .before-blink { animation: none; }
  .wa-float .pulse { display: none; }
}

/* Print niceties */
@media print { .nav, .wa-float, .mobile-menu { display: none !important; } body { background: #fff; color: #000; } }
