/* ============================================================
   WageMaply v4 layer — Malaquita (single green family, ONLY colors)
   #06241A #0A4430 #0F6B4A #159C6B #43C495 #8FE0C0 #DEF6EB
   Loads last, so every rule here wins over styles/v2/v3 layers.
   ============================================================ */

/* ---------- palette tokens ---------- */
:root{
  --bg:#DEF6EB; --bg-soft:#DEF6EB; --surface:#ffffff; --surface-2:#DEF6EB;
  --text:#06241A; --muted:#0A4430; --border:#8FE0C0;
  --accent:#159C6B; --accent-dark:#06241A; --accent-soft:#8FE0C0;
  --accent2:#43C495; --accent2-soft:#DEF6EB;
  --gold:#43C495;
  --grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%);}

/* ---------- per-page accent (all greens) ---------- */
body{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-salary{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-etsy{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-freelance{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-overtime{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-tax{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-paycheck{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-tip{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-discount{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-currency{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-loan{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-compound{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-salconv{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-crypto{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-dechours{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-payperiod{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-aprapy{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-inflation{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-gold{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-workhours{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }
body.p-mileage{ --page:#159C6B; --page-soft:#DEF6EB; --page-grad:linear-gradient(135deg,#159C6B 0%,#159C6B 60%,#43C495 100%); }

/* ---------- non-green overrides from earlier layers ---------- */
.hero-ref h1 .grad{ background:linear-gradient(90deg,#0B2B26 0%,#163832 35%,#235347 65%,#8EB69B 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-ref .btn-primary{ background:linear-gradient(135deg,#235347,#163832); box-shadow:0 14px 30px rgba(35,83,71,.35); }
.breakdown li.neg .v{ color:var(--accent-dark); }

/* tool-card top bars + icon tiles + "go" links: greens only */
.tool-card::before{ background:var(--page-grad); }
.tool-card:nth-child(1)::before{ background:linear-gradient(135deg,#235347,#163832); }
.tool-card:nth-child(2)::before{ background:linear-gradient(135deg,#163832,#0B2B26); }
.tool-card:nth-child(3)::before{ background:linear-gradient(135deg,#235347,#8EB69B); }
.tool-card:nth-child(4)::before{ background:linear-gradient(135deg,#163832,#235347); }
.tool-card:nth-child(5)::before{ background:linear-gradient(135deg,#0B2B26,#235347); }
.tool-card:nth-child(6)::before{ background:linear-gradient(135deg,#235347,#163832); }
.tool-card:nth-child(7)::before{ background:linear-gradient(135deg,#8EB69B,#235347); }
.tool-card:nth-child(8)::before{ background:linear-gradient(135deg,#163832,#0B2B26); }
.tool-card:nth-child(9)::before{ background:linear-gradient(135deg,#235347,#8EB69B); }
.tool-card:nth-child(10)::before{ background:linear-gradient(135deg,#163832,#235347); }
.tool-card .icon{ background:#8FE0C0; }
.tool-card:nth-child(2) .icon,
.tool-card:nth-child(3) .icon,
.tool-card:nth-child(4) .icon{ background:#8FE0C0; }
.tool-card .go{ color:var(--accent-dark); }
.tool-card:nth-child(1) .go,
.tool-card:nth-child(2) .go,
.tool-card:nth-child(3) .go,
.tool-card:nth-child(4) .go{ color:var(--accent-dark); }

/* ---------- header nav: 10 links need the hamburger below 1180px ---------- */
@media(max-width:1180px){
  .nav-toggle{ display:grid; place-items:center; margin-left:auto; }
  .main-nav{ position:absolute; top:var(--header-h); left:0; right:0; background:var(--surface); flex-direction:column; align-items:stretch; padding:12px 20px 20px; border-bottom:1px solid var(--border); display:none; gap:2px; }
  .main-nav.open{ display:flex; }
}

/* ---------- footer: 4 columns for Calculators / Converters / Company ---------- */
@media(min-width:900px){
  .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; }
}

/* ---------- icons: original UnitExact-family designs, larger & bolder ---------- */
.tool-card .tool-icon{ width:72px; height:72px; display:block; margin:6px auto 2px; filter:drop-shadow(0 5px 10px rgba(5,31,32,.22)); }
.tool-hero-icon{ margin:2px 0 10px; }
.tool-hero-icon .tool-icon{ width:64px; height:64px; display:block; filter:drop-shadow(0 5px 10px rgba(5,31,32,.22)); }
.panel h2 .why-icon,
.why-icon{ width:64px; height:64px; display:inline-block; vertical-align:-18px; margin-right:10px; filter:drop-shadow(0 4px 8px rgba(5,31,32,.20)); }
@media(max-width:640px){
  .tool-card .tool-icon{ width:60px; height:60px; }
  .tool-hero-icon .tool-icon{ width:56px; height:56px; }
  .why-icon{ width:52px; height:52px; }
}

/* ---------- formulas, tables, related box, diagrams ---------- */
.formula{
  background:var(--accent-soft); border-left:5px solid var(--accent);
  border-radius:0 10px 10px 0; padding:14px 18px; margin:16px 0;
  font-weight:600; color:var(--text);
}
.formula sup{ font-size:.75em; }
.table-wrap{ overflow-x:auto; margin:18px 0 24px; }
.ref-table{ width:100%; border-collapse:collapse; font-size:.95rem; }
.ref-table caption{ caption-side:top; text-align:left; font-size:.85rem; color:var(--muted); padding-bottom:8px; }
.ref-table th{ background:var(--accent); color:#DAF1DE; text-align:left; padding:10px 12px; font-weight:700; }
.ref-table td{ padding:10px 12px; border-bottom:1px solid var(--border); color:var(--muted); }
.ref-table td:first-child{ color:var(--text); font-weight:600; }
.ref-table tr:last-child td{ border-bottom:0; }
.related{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px 24px; margin:34px 0; }
.related h2{ margin-top:0; }
.related ul{ list-style:none; padding-left:0; display:flex; flex-wrap:wrap; gap:8px 22px; }
.related li{ margin-bottom:4px; }
.related a{ font-weight:700; color:var(--accent-dark); }

.diagram{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px 22px 14px; margin:26px 0;
}
.diagram figcaption{ font-size:.98rem; color:var(--muted); margin-bottom:12px; }
.diagram figcaption strong{ color:var(--text); }
.diagram-svg{ width:100%; height:auto; display:block; }

/* ---------- tool grid: 2 sections of 10 ---------- */
.tool-grid{ display:grid; gap:22px; grid-template-columns:1fr; }
@media(min-width:640px){ .tool-grid{ grid-template-columns:1fr 1fr; } }
@media(min-width:1080px){ .tool-grid{ grid-template-columns:1fr 1fr 1fr 1fr; } }

/* ---------- homepage hero: UnitExact-style giant name, Palette A fade ----------
   Mirrors UnitExact (.hero-in h1): Work Sans 900, huge, tight tracking, one line
   on desktop; name split Wage (solid) + Maply (green gradient fade). */
.hero-ref h1{ font-family:'Work Sans','Sora',system-ui,sans-serif; font-weight:900; font-size:clamp(54px,7.5vw,100px); line-height:.95; letter-spacing:-.04em; white-space:nowrap; color:#051F20; max-width:none; margin-bottom:14px; }
.hero-ref h1 span{ display:inline; }
.hero-ref .slogan{ font-family:'Sora',system-ui,sans-serif; font-weight:600; font-size:clamp(20px,2.6vw,30px); line-height:1.2; color:#051F20; letter-spacing:-.01em; margin:0 0 12px; }
.hero-ref .slogan .hl{ color:#235347; }
@media(max-width:900px){
  .hero-ref h1{ font-size:clamp(54px,16.5vw,96px); line-height:1.0; white-space:normal; }
  .hero-ref h1 span{ display:block; }
  .hero-ref .slogan{ font-size:22px; }
}

/* ============================================================
   v4.1 — Revisión del usuario (2026-11-05)
   1) Hero estilo UnitExact: texto a la izquierda, visual a la derecha.
   2) Iconos grandes, un solo sistema verde, con sombra.
   ============================================================ */


/* ---------- nav: solo Home / All Tools / About visibles en escritorio ----------
   Como UnitExact (3 opciones). Los 7 enlaces de herramientas (.nav-extra)
   siguen en el menú hamburguesa de móvil. */
@media(min-width:1181px){
  .main-nav a.nav-extra{ display:none; }
}

/* ---------- hero: texto pegado a la izquierda, visual apartado a la derecha ----------
   Como UnitExact: el nombre arranca al borde izquierdo del hero y la
   foto/video queda confinada al 46% derecho, con su borde izquierdo
   desvanecido. Sin velo blanco (era el campo blanco de la izquierda). */
.hero-ref .hero-inner{ display:block; max-width:none; padding:88px 48px 72px; min-height:560px; }
.hero-ref .hero-copy{ max-width:640px; }
.hero-ref .hero-scene{ left:auto; right:0; width:46%; top:0; -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22%); mask-image:linear-gradient(90deg,transparent 0,#000 22%); }
.hero-ref .hero-veil{ display:none; }
/* Visual sin recorte a la derecha (solo escritorio): la escena del 46%
   es casi cuadrada y la foto/video es 16:9, así que con object-position
   center el recorte cover se comía el lado derecho — la tarjeta
   "Take Home Pay" salía "$1,84" y "↑12%" cortados, y laptop y monedas
   quedaban a medias. Alinear a la derecha muestra el contenido
   completo (tarjetas, laptop, monedas, calculadora); el borde izquierdo
   queda bajo el desvanecido de todas formas. En móvil la escena está
   oculta, así que no se toca. */
@media(min-width:901px){
  .hero-ref .hero-scene{ background-position:100% 50%; }
  .hero-ref .hero-scene video.hero-video{ object-position:100% 50%; }
}
@media(max-width:900px){
  /* Móvil: sin foto de fondo ni hueco de 480/470px — nombre, texto,
     botones y chips en un bloque compacto, como el hero móvil de UnitExact. */
  .hero-ref .hero-scene{ display:none; }
  .hero-ref .hero-veil{ display:none; }
  .hero-ref .hero-inner{ padding:52px 20px 44px; min-height:0; }
  .hero-ref .hero-cta{ margin-top:0; }
  .hero-ref .hero-stats{ margin-top:24px; }
}

/* ---------- iconos: un solo sistema, MUCHO más grandes, con sombra debajo ---------- */
.tool-card .tool-icon{ width:120px; height:120px; margin:10px auto 6px; filter:drop-shadow(0 12px 20px rgba(5,31,32,.30)); }
.tool-hero-icon .tool-icon{ width:96px; height:96px; filter:drop-shadow(0 10px 18px rgba(5,31,32,.28)); }
@media(max-width:640px){
  .tool-card .tool-icon{ width:96px; height:96px; }
  .tool-hero-icon .tool-icon{ width:80px; height:80px; }
}

/* ============================================================
   v4.2 — Malaquita claro, SIN modo oscuro (2026-11-05)
   El usuario lo vio en modo oscuro en su iPhone: verde sobre verde,
   todo oscuro, texto perdido. Ahora: fondo verde claro #DEF6EB,
   texto oscuro #06241A, acentos con los 4 verdes más claros.
   Sin patrón de fondo, sin modo oscuro, sin botón sol/luna.
   ============================================================ */

/* fondo plano, sin patrón */
body{ background:#DEF6EB; background-image:none; }

/* botones principales: verde sólido legible, texto blanco */
.btn-primary{ background:#159C6B; }
.btn-primary:hover{ box-shadow:0 14px 30px rgba(21,156,107,.35); }

/* marca y acentos de página en verde sólido */
.brand-mark{ background:#159C6B; }
.main-nav a.active{ color:#06241A; }
.calc-hero .lead strong{ color:#06241A; }
.breakdown li.total .v{ color:#06241A; }

/* tabla de referencia: cabecera legible */
.ref-table th{ color:#fff; }

/* cajas sobre el fondo claro: blancas, distinguibles */
.ad-slot{ background:#fff; }
.howto{ background:#fff; }

/* ============================================================
   v4.3 — Revisión del usuario round 3 (2026-11-05)
   1) Botones "Open Calculator/Converter" uniformes: todos con
      fondo menta #8FE0C0 (hoy solo los 4 primeros).
   2) Las 20 herramientas en UNA SOLA CAJA (como UnitExact
      .tools-frame: fondo blanco, borde, radius 26px).
   3) Esquinas redondeadas en todo (--radius por fin definido).
   4) Video del hero visible en móvil, debajo del texto.
   5) Nombre del hero más grande (escala UnitExact).
   ============================================================ */

/* --- 3) radios: --radius/--radius-sm NUNCA se definieron en ninguna
   capa, así que border-radius:var(--radius) era inválido (= 0) y las
   tarjetas salían cuadradas. Definirlos aquí redondea tarjetas,
   paneles, FAQ, howto, diagramas, related, ad-slot e inputs. --- */
:root{ --radius:28px; --radius-sm:20px; }

/* --- 1) botón verde relleno en las 20 tarjetas ---
   Causa: v3-layer solo daba background a .go de :nth-child(1..4)
   (la primera fila de cada rejilla). Esta regla, con especificidad
   (0,3,0) igual a la de v3 y cargando después, cubre las 20. --- */
.tool-grid .tool-card .go{ background:#8FE0C0; color:#06241A; }

/* --- 2) una sola caja con las 20 herramientas --- */
.tools-box{ background:#ffffff; border:1.5px solid #8FE0C0; border-radius:26px; box-shadow:0 10px 30px rgba(6,36,26,.08); padding:32px 28px; }
@media(min-width:901px){ .tools-box{ margin:0 28px; } }
@media(max-width:900px){ .tools-box{ padding:24px 18px; } }

/* --- 3) esquinas redondeadas en todo lo que las tenga --- */
.btn{ border-radius:20px; }
.hero-stats div{ border-radius:20px; }
.brand-mark{ border-radius:14px; }
.nav-toggle,.search-toggle{ border-radius:14px; }
.seg button{ border-radius:14px; }
.formula{ border-radius:0 20px 20px 0; }
.two-col .panel .why-img{ border-radius:20px; }
.tool-search input{ border-radius:20px; }

/* --- 5) nombre del hero más grande (escala UnitExact:
   escritorio clamp(56px,15.5vw,236px), móvil clamp(46px,13.5vw,110px)).
   El hero de WageMaply comparte el ancho con la escena derecha (46%),
   así que el tope es 132px en escritorio para no invadir la foto;
   en móvil apilado "Wage" sobre "Maply" con el mismo tope de 110px. --- */
.hero-ref .hero-copy{ max-width:720px; }
.hero-ref h1{ font-size:clamp(64px,9vw,132px); }

@media(max-width:900px){
  /* --- 5) nombre móvil más grande, apilado --- */
  .hero-ref h1{ font-size:clamp(64px,20vw,110px); }

  /* --- 4) video del hero en móvil: la escena deja de estar oculta y
     pasa a ser un bloque propio DEBAJO del texto (en el DOM va después
     del .hero-inner), a lo ancho del teléfono, 16:9. El video es
     1280x720, así que con aspect-ratio 16/9 no se recorta nada y las
     tarjetas flotantes (Take Home, ↑12%, Deductions) se ven íntegras. --- */
  .hero-ref .hero-inner{ padding:52px 20px 8px; }
  .hero-ref .hero-scene{
    display:block; position:relative; left:auto; right:auto; top:auto; bottom:auto;
    width:auto; margin:24px 20px 44px; aspect-ratio:16/9;
    border-radius:24px; overflow:hidden;
    -webkit-mask-image:none; mask-image:none;
    background-image:url(/assets/hero-photo.jpg); background-size:cover; background-position:100% 50%;
  }
  .hero-ref .hero-scene video.hero-video{
    display:block; position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:100% 50%;
  }
}

/* ============================================================
   v4.4 — Hero móvil: video DE FONDO (2026-11-06)
   El usuario vio el video como bloque separado muy abajo, debajo
   del texto/botones/chips. Ahora la escena es el FONDO del hero:
   cubre todo el hero y el contenido va por encima, como en la
   primera portada. Solo móvil (≤900px); escritorio NO se toca.
   Esta sección va al final de v4-layer.css (que carga último),
   así que gana a v4.1/v4.3 y a la v3 (que ya hacía fondo en
   móvil con la imagen vertical y el "hueco" de 480px para los
   botones — aquí el hueco se anula: el video va detrás de todo).

   Diagnóstico del nombre "cortado" en la captura del iPhone:
   NO es un recorte CSS — a scroll 0 el nombre se ve entero
   (padding superior + kicker encima). En la captura la página
   estaba desplazada hacia abajo (el kicker tampoco se ve) y el
   header sticky (z-index 50) tapaba la parte superior del
   nombre. Aun así se sube el padding superior móvil 52→64px y
   se afloja el line-height del h1 1.0→1.05 (protección contra
   recorte de glifos con background-clip:text), SIN achicar
   el nombre.
   ============================================================ */
@media(max-width:900px){
  /* escena = fondo del hero: cubre toda el área, sin márgenes,
     sin aspect-ratio de tarjeta, sin radio */
  .hero-ref{ position:relative; overflow:hidden; }
  .hero-ref .hero-scene{
    display:block; position:absolute; inset:0;
    width:100%; height:100%; margin:0; aspect-ratio:auto;
    border-radius:0; overflow:hidden;
    -webkit-mask-image:none; mask-image:none;
    background-image:url(/assets/hero-photo.jpg); background-size:cover; background-position:0% 50%;
  }
  /* El video es 1280x720 y el hero móvil es alto y estrecho: con
     object-fit:cover solo se ve ~1/3 del ancho del cuadro.
     object-position 0% muestra el lado izquierdo (cielo, montañas,
     lago: la zona más clara y limpia); las tarjetas flotantes van
     en el video, a la derecha, así que no chocan con el texto. */
  .hero-ref .hero-scene video.hero-video{
    display:block; position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; object-position:0% 50%;
  }
  /* velo claro: fuerte arriba (nombre, slogan, párrafo) y más
     ligero abajo, para que el video se vea sin taparlo con un
     panel sólido. El texto oscuro queda sobre verde claro. */
  .hero-ref .hero-veil{
    display:block; position:absolute; inset:0; z-index:1;
    background:linear-gradient(180deg, rgba(222,246,235,.88) 0%, rgba(222,246,235,.78) 40%, rgba(222,246,235,.55) 70%, rgba(222,246,235,.38) 100%);
  }
  /* contenido por encima del video y del velo; más aire arriba
     (nombre lejos del header) y abajo (chips sin pegarse al
     borde). Se anula el "hueco" de 480px de la v3 y el
     min-height:920px: la altura la marca el contenido. */
  .hero-ref .hero-inner{ position:relative; z-index:2; display:block; width:100%; min-height:0; padding:64px 20px 56px; }
  .hero-ref .hero-cta{ margin-top:0; }
  .hero-ref .hero-stats{ margin-top:24px; }
  .hero-ref h1{ line-height:1.05; }
}

/* ============================================================
   v5 — Estructura UnitExact (2026-11-06)
   El usuario quiere WageMaply montado como UnitExact, pero
   MEJOR que UnitExact y con mucha vida y color, en la familia
   verde Malaquita. Cambios:
   1) Tipografía UnitExact en toda la portada: Poppins (texto y
      títulos), Work Sans 900 (nombre del hero), JetBrains Mono
      (etiquetas/rank). Solo portada: las vars se definen en
      body.home-v5, así las 20 páginas de herramientas NO cambian.
   2) Hero como caja oscura verde (como el hero azul oscuro de
      UnitExact), con el VIDEO a la derecha (46%) y velo verde
      oscuro a la izquierda. Nombre "Wage" blanco + "Maply" con
      degradado blanco -> verde. Searchbox estilo UnitExact
      (usa el js/search.js que ya existe) y trust strip blanca
      con 5 ítems + botón "Explore All 20 Tools".
   3) Hero COMPACTO: sin min-height 560px ni padding 88px — el
      hueco enorme entre hero y calculadoras desaparece.
   4) Una sola caja (.tools-frame) con DOS paneles: Calculators
      (un tono de verde) y Converters (el verde del cuadro de
      Converts de UnitExact, #43C98B / #EFFCF3-#DDF7E7).
      Tarjetas alargadas 5 arriba + 5 abajo en cada panel.
   5) El espacio de publicidad va ENTRE las dos cajas (y el
      segundo slot al final del frame, como UnitExact). Siguen
      siendo EXACTAMENTE 2 slots por página (regla AdSense).
   6) Iconos grandes a color, un tono de verde en calculadoras
      (#43C495->#0F6B4A) y otro en convertidores (#2FE08A->#0D9D6C)
      — el recolor está en el SVG inline del index.html.
   7) Botones "Open Calculator/Converter" verdes rellenos en las
      20 tarjetas (regla ronda 3): menta en calculadoras, verde
      vivo en convertidores. Esquinas redondeadas en todo.
   8) Móvil (<=900px): se conserva el arreglo v4.4 — el video es
      el FONDO del hero detrás del texto — pero el velo pasa a
      verde OSCURO porque el texto del hero ahora es blanco.
   Las media-query van AL FINAL del archivo (una regla base
   posterior anula una igual dentro de un @media anterior).
   ============================================================ */

/* ---------- 1) tipografía UnitExact, solo portada ---------- */
body.home-v5{ --font-body:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; --font-head:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }

/* ---------- 2) hero: caja verde oscura, video a la derecha ---------- */
.hero-ref{ margin:16px 16px 0; border-radius:22px; overflow:hidden;
  background:linear-gradient(115deg,#03160F 0%,#06241A 52%,#0A4430 100%);
  box-shadow:0 24px 50px rgba(2,26,40,.35); }
.hero-ref .hero-scene{ z-index:0; }
/* velo verde oscuro a la izquierda (texto) que se desvanece antes
   del video, como el hero-shade de UnitExact. Gana al velo blanco
   de la v3 y al display:none de la v4.1 (misma especificidad,
   esta capa carga después). */
.hero-ref .hero-veil{ display:block; position:absolute; inset:0; z-index:1;
  background:linear-gradient(100deg,rgba(3,22,15,.88) 0%,rgba(3,22,15,.68) 36%,rgba(3,22,15,.22) 60%,rgba(3,22,15,0) 76%); }
.hero-ref .hero-inner{ display:block; max-width:none; padding:40px 28px 4px; min-height:0; }
.hero-ref .hero-copy{ max-width:720px; }
.hero-ref .hero-kicker{ background:rgba(255,255,255,.14); color:#DEF6EB; border:1px solid rgba(255,255,255,.28); }
.hero-ref h1{ font-family:'Work Sans',Poppins,system-ui,sans-serif; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35); }
/* nombre: "Wage" blanco sólido + "Maply" degradado blanco -> verde
   (UnitExact: blanco -> azul; aquí termina en verde). */
.hero-ref h1 .grad{ background:linear-gradient(90deg,#DEF6EB 0%,#8FE0C0 34%,#43C495 58%,#159C6B 84%,#0F6B4A 100%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-ref .slogan{ font-family:'Poppins',system-ui,sans-serif; color:#fff; }
.hero-ref .slogan .hl{ color:#8FE0C0; }
.hero-ref p.lead{ color:#D7F5E6; }
.hero-ref .btn-primary{ background:linear-gradient(135deg,#159C6B,#0F6B4A); color:#fff; box-shadow:0 14px 30px rgba(3,22,15,.45); }
.hero-ref .btn-glass{ background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.35); color:#fff; -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); }

/* ---------- searchbox estilo UnitExact (usa js/search.js) ---------- */
.hero-ref .searchbox{ display:flex; gap:8px; max-width:640px; background:#fff; border-radius:999px; padding:7px 7px 7px 20px; box-shadow:0 10px 26px rgba(2,26,40,.25); margin:0 0 20px; }
.hero-ref .searchbox input{ flex:1; min-width:0; padding:11px 0; border:0; background:transparent; color:#06241A; font-size:17px; outline:none; font-family:inherit; }
.hero-ref .searchbox button{ padding:11px 24px; border-radius:999px; border:0; background:linear-gradient(120deg,#159C6B,#0F6B4A); color:#fff; font-weight:700; font-size:15px; cursor:pointer; white-space:nowrap; font-family:inherit; }

/* ---------- trust strip al pie del hero (como UnitExact) ---------- */
.hero-ref .trust{ position:relative; z-index:2; margin:18px 28px 28px; background:linear-gradient(180deg,#ffffff,#E7F9EF); border-radius:16px; padding:14px 20px 16px; display:flex; flex-wrap:wrap; gap:12px 22px; align-items:center; justify-content:space-between; color:#06241A; box-shadow:0 10px 26px rgba(2,26,40,.20); }
.hero-ref .trust .items{ display:flex; flex-wrap:wrap; gap:8px 18px; font-weight:600; font-size:14px; }
.hero-ref .trust .items span{ display:flex; align-items:center; gap:8px; }
.hero-ref .trust .items svg{ width:19px; height:19px; flex-shrink:0; }
.hero-ref .trust .items span+span{ border-left:1px solid #BFE9D2; padding-left:18px; }
.hero-ref .trust .btn{ background:#06241A; color:#fff; padding:10px 18px; border-radius:999px; text-decoration:none; font-weight:700; font-size:14px; white-space:nowrap; }
.hero-ref .trust .btn:hover{ background:#0F6B4A; }

/* ---------- 3+4) caja de herramientas, dos paneles, 5+5 ---------- */
#tools{ padding:0 0 8px; }
#tools .wrap{ max-width:1120px; padding:0 20px; }
#tools .tools-frame{ background:#fff; border:1.5px solid #8FE0C0; border-radius:26px; padding:14px 14px 0; box-shadow:0 22px 46px rgba(6,36,26,.16); margin-top:16px; }
#tools .panel-calc, #tools .panel-conv{ border:2px solid var(--pc); border-radius:20px; padding:22px; margin:0 0 14px; box-shadow:0 10px 30px rgba(6,36,26,.08); }
/* calculadoras: verde esmeralda profundo */
#tools .panel-calc{ --pc:#159C6B; --pc2:#43C495; --pc3:#0F6B4A; background:linear-gradient(180deg,#E7F9EF,#D2F1DE); }
/* convertidores: EL verde del cuadro de Converts de UnitExact */
#tools .panel-conv{ --pc:#43C98B; --pc2:#2FE08A; --pc3:#0D9D6C; background:linear-gradient(180deg,#EFFCF3,#DDF7E7); }
#tools .panel-head{ display:flex; align-items:center; gap:16px; margin-bottom:14px; flex-wrap:wrap; }
#tools .panel-head .badge{ width:64px; height:64px; flex-shrink:0; border-radius:18px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--pc2),var(--pc3)); box-shadow:0 8px 18px rgba(6,36,26,.25); }
#tools .panel-head .badge svg{ width:36px; height:36px; }
#tools .panel-head h2{ font-weight:800; font-size:clamp(28px,3.4vw,36px); color:#06241A; line-height:1.1; margin:0; }
#tools .panel-head .tagline{ font-weight:600; color:#06241A; }
#tools .panel-head .sub{ color:#0A4430; font-size:14.5px; }
#tools .panel-head .viewall{ margin-left:auto; color:#0F6B4A; font-weight:700; text-decoration:none; white-space:nowrap; }
#tools .panel-head .livepill{ font-family:'JetBrains Mono',monospace; font-size:11px; font-weight:700; color:#06241A; background:#fff; border:1px solid #8FE0C0; border-radius:999px; padding:4px 10px; }

/* rejilla 5 columnas x 2 filas por panel (como UnitExact) */
#tools .tool-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; }
#tools .tool-card{ position:relative; background:#fff; border:1px solid #D9EFE2; border-radius:14px; padding:16px 12px 14px; text-align:center; box-shadow:0 6px 18px rgba(6,36,26,.08); display:flex; flex-direction:column; align-items:center; color:#06241A; overflow:hidden; transition:transform .15s,border-color .15s,box-shadow .15s; }
#tools .tool-card:hover{ transform:translateY(-3px); border-color:#159C6B; box-shadow:0 12px 26px rgba(6,36,26,.14); text-decoration:none; }
#tools .panel-conv .tool-card{ border-color:#CDEEDD; }
#tools .panel-conv .tool-card:hover{ border-color:#0D9D6C; }
#tools .tool-card .rank{ position:absolute; top:8px; right:10px; font-family:'JetBrains Mono',monospace; font-size:10.5px; color:#0A4430; }
#tools .tool-card .tool-icon{ width:76px; height:76px; display:block; margin:2px auto 8px; filter:drop-shadow(0 5px 10px rgba(6,36,26,.22)); }
#tools .tool-card h3{ width:100%; font-size:15px; font-weight:700; line-height:1.25; margin:0 0 4px; color:#06241A; }
#tools .tool-card p{ width:100%; font-size:12px; color:#0A4430; line-height:1.45; flex:1; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
/* botón verde relleno en las 20 tarjetas (regla ronda 3):
   menta en calculadoras, verde vivo en convertidores. */
#tools .tool-card .go{ width:100%; margin-top:10px; }
#tools .panel-calc .tool-card .go{ background:#8FE0C0; color:#06241A; }
#tools .panel-conv .tool-card .go{ background:#159C6B; color:#fff; }

/* ---------- 5) publicidad DENTRO del frame: entre paneles + banner ---------- */
#tools .tools-frame .ad-slot{ background:#fff; border:1.5px dashed #8FE0C0; border-radius:16px; padding:22px; text-align:center; margin:14px 0; min-height:110px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; max-width:none; }
#tools .tools-frame .ad-slot span{ font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:#0A4430; }
#tools .tools-frame .ad-slot.banner{ min-height:132px; }

/* ============================================================
   v5 — media queries (AL FINAL, como manda la lección CSS)
   ============================================================ */
@media(max-width:1080px){
  #tools .tool-grid{ grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:900px){
  /* hero: caja con gutters pequeños, video DE FONDO (v4.4) */
  .hero-ref{ margin:10px 10px 0; border-radius:16px; }
  .hero-ref .hero-scene{ display:block; position:absolute; inset:0; width:100%; height:100%; margin:0; aspect-ratio:auto; border-radius:0; overflow:hidden; -webkit-mask-image:none; mask-image:none; background-image:url(/assets/hero-photo.jpg); background-size:cover; background-position:0% 50%; }
  .hero-ref .hero-scene video.hero-video{ display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:0% 50%; }
  /* velo OSCURO en móvil (v4.4 lo dejaba claro): el texto del
     hero ahora es blanco y va sobre el video. */
  .hero-ref .hero-veil{ display:block; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg,rgba(3,22,15,.82) 0%,rgba(3,22,15,.68) 45%,rgba(3,22,15,.55) 75%,rgba(3,22,15,.45) 100%); }
  .hero-ref .hero-inner{ position:relative; z-index:2; display:block; width:100%; min-height:0; padding:56px 20px 8px; }
  .hero-ref h1{ line-height:1.05; }
  .hero-ref .searchbox{ max-width:none; margin-bottom:16px; }
  .hero-ref .searchbox input{ font-size:16px; }
  .hero-ref .trust{ margin:16px 20px 20px; background:#fff; }
  .hero-ref .trust .items{ display:grid; grid-template-columns:1fr 1fr; gap:6px 14px; }
  .hero-ref .trust .items span+span{ border-left:0; padding-left:0; }
  /* frame sin caja en móvil (como UnitExact): los paneles van
     directos sobre el fondo, con su tinte verde. */
  #tools .tools-frame{ border:0; border-radius:0; box-shadow:none; background:transparent; padding:0; margin-top:16px; }
  #tools .panel-calc, #tools .panel-conv{ padding:16px; }
  #tools .panel-head .badge{ width:56px; height:56px; }
  #tools .panel-head .badge svg{ width:32px; height:32px; }
  #tools .panel-head h2{ font-size:28px; }
}
@media(max-width:640px){
  #tools .tool-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  #tools .tool-card{ padding:14px 10px 12px; }
  #tools .tool-card .tool-icon{ width:64px; height:64px; }
  #tools .tool-card h3{ font-size:14px; }
}

/* ============================================================
   v5.1 — Free Templates panel + guide download panels
   + Elvis review fixes (2026-11-06): mobile hero name, desktop
   hero full-bleed, full-width frame, landscape cards, colored
   icons (in index.html), hover lift + icon shadow.
   Media queries LAST in this section (base rules first).
   ============================================================ */

/* --- Free Templates panel (homepage, below Converters) --- */
.panel-tpl{ margin-top:22px; border:2px solid #0F6B4A; border-radius:28px;
  background:linear-gradient(180deg,#E7F9EF,#D2F1DE); padding:20px 22px 22px;
  box-shadow:0 10px 30px rgba(6,36,26,.10); }
.panel-tpl .panel-head{ text-align:center; margin:0 0 14px; }
.panel-badge.tpl{ background:linear-gradient(90deg,#0F6B4A,#159C6B); color:#ffffff; }
.tpl-grid{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.tpl-card{ position:relative; display:flex; flex-direction:column; align-items:center;
  text-align:center; background:#ffffff; border:1.5px solid #BDE9CF; border-radius:20px;
  padding:14px 12px 12px; box-shadow:0 6px 16px rgba(6,36,26,.08);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tpl-card .tool-icon{ width:64px; height:64px; margin:6px auto 4px; transition:filter .18s ease; }
.tpl-card h3{ font-size:17px; line-height:1.2; margin:4px 0; }
.tpl-card p{ font-size:13px; line-height:1.45; color:var(--muted); margin:0 0 10px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tpl-links{ display:flex; gap:8px; margin-top:auto; width:100%; }
.tpl-dl{ flex:1; background:#0B2B26; color:#ffffff; font-weight:700; font-size:13px;
  padding:9px 8px; border-radius:999px; text-decoration:none; }
.tpl-guide{ flex:1; background:#E7F9EF; color:#0B2B26; font-weight:700; font-size:13px;
  padding:9px 8px; border-radius:999px; text-decoration:none; border:1.5px solid #8FE0C0; }
.tpl-card:hover{ transform:translateY(-4px); border-color:#159C6B;
  box-shadow:0 18px 34px rgba(6,36,26,.20); }
.tpl-card:hover .tool-icon{ filter:drop-shadow(0 10px 14px rgba(6,36,26,.35)); }

/* --- Download panel (template guide pages) --- */
.dl-panel{ margin:18px 0 22px; border:2px solid #0F6B4A; border-radius:24px;
  background:linear-gradient(180deg,#E7F9EF,#D2F1DE); padding:20px 22px;
  box-shadow:0 10px 30px rgba(6,36,26,.10); }
.dl-head{ display:flex; gap:16px; align-items:center; margin-bottom:14px; }
.dl-icon{ flex:0 0 auto; width:76px; height:76px; }
.dl-icon .tool-icon{ width:76px; height:76px; }
.dl-panel h2{ font-size:22px; margin:0 0 6px; }
.dl-file{ font-size:15px; margin:0 0 4px; }
.dl-meta{ font-size:13.5px; color:var(--muted); margin:0; }
.dl-btn{ display:block; text-align:center; padding:14px 18px; font-size:16px; border-radius:999px; }
.dl-note{ font-size:13px; color:var(--muted); margin:10px 0 0; text-align:center; }

/* --- Fix 3: full-width tools frame (no narrow 1120px box) --- */
#tools .wrap{ max-width:none; padding:0 16px; }

/* --- Fix 3: landscape cards — compact internals, wider than tall --- */
#tools .tool-card{ padding:14px 12px 12px; }
#tools .tool-card .tool-icon{ width:64px; height:64px; margin:6px auto 4px;
  transition:filter .18s ease; }
#tools .tool-card p{ -webkit-line-clamp:2; }

/* --- Fix 5: hover lift + shadow on cards, drop shadow on icons --- */
#tools .tool-card:hover{ transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(6,36,26,.20); }
#tools .tool-card:hover .tool-icon{ filter:drop-shadow(0 10px 14px rgba(6,36,26,.35)); }

/* --- Fix 2: desktop hero — video full-bleed background, bigger name --- */
@media(min-width:901px){
  .hero-ref .hero-scene{ left:0; right:0; top:0; bottom:0; width:100%; height:100%;
    -webkit-mask-image:none; mask-image:none; }
  .hero-ref .hero-scene video.hero-video{ object-position:50% 50%; }
  .hero-ref .hero-veil{ background:linear-gradient(90deg,rgba(3,22,15,.93) 0%,rgba(3,22,15,.82) 38%,rgba(3,22,15,.45) 62%,rgba(3,22,15,.18) 82%,rgba(3,22,15,.10) 100%); }
  .hero-ref .hero-inner{ position:relative; z-index:2; }
  .hero-ref .hero-copy{ max-width:780px; }
  .hero-ref h1{ font-size:clamp(72px,9.5vw,168px); line-height:1.0; }
}

/* --- Footer: 5 columns (brand + Calculators + Converters + Templates + Company) --- */
@media(min-width:900px){
  body.p-tpl .foot-grid, body.home-v5 .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr 1fr; }
}

/* --- Templates panel responsive --- */
@media(max-width:1080px){
  .tpl-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* --- Fix 1: mobile hero — full name on ONE line, clear of the sticky header --- */
@media(max-width:900px){
  .hero-ref .hero-inner{ padding:72px 20px 8px; }
  .hero-ref h1{ font-size:clamp(46px,14vw,84px); white-space:nowrap; line-height:1.05; }
  .hero-ref h1 span{ display:inline; }
  .dl-head{ flex-direction:column; text-align:center; }
  .dl-icon{ width:64px; height:64px; }
  .dl-icon .tool-icon{ width:64px; height:64px; }
}
@media(max-width:640px){
  .tpl-grid{ grid-template-columns:1fr; }
}

/* ============================================================
   v5.2 — Hero SIN video, fotos de Elvis, texto oscuro, velo
   BLANCO ("limpio"), nombre gigante, swoosh bajo "Maply",
   chips flotantes (solo escritorio), confianza nueva
   (2026-11-06). Todo al FINAL: estas reglas ganan a las del
   hero oscuro de la v5 (misma especificidad, carga después).
   Solo cambia el hero de la portada; nada más se toca.
   ============================================================ */

/* fondo claro de respaldo (por si la foto no carga) */
.hero-ref{ background:#EAF7F0; }

/* nombre: "Wage" oscuro + "Maply" verde vivo; sin sombra oscura */
.hero-ref h1{ color:#0B2B26; text-shadow:none; }
/* v5.12 (2026-11-06): "Maply" como SVG <text> con el degradado como relleno — sin background-clip:text, así ningún navegador (ni iOS Safari) puede recortar la cola de la "y". Misma fuente Work Sans 900, mismo degradado C (#0F6B4A→#159C6B→#43C495), sin swoosh. El SVG mide 2.96em de ancho (el ancho exacto de "Maply") y su línea base queda alineada con "Wage" (vertical-align -.27em = el descendente). */
.hero-ref h1 .grad-svg{ display:inline-block; width:2.96em; height:1.2em; vertical-align:-.27em; overflow:visible; }

/* badge: píldora verde sólida, texto blanco */
.hero-ref .hero-kicker{ background:#0F6B4A; color:#fff; border:1px solid transparent; }

/* eslogan y párrafo oscuros */
.hero-ref .slogan{ color:#0B2B26; }
.hero-ref .slogan .hl{ color:#159C6B; }
.hero-ref p.lead{ color:#1F2937; }

/* "See how it works": píldora blanca con texto oscuro (mockup) */
.hero-ref .btn-glass{ background:rgba(255,255,255,.92); border:1px solid rgba(6,36,26,.25); color:#06241A; -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); box-shadow:0 6px 16px rgba(2,26,40,.12); }

/* confianza: 4 ítems (sin "No Signup", que ya va en el badge); el botón Explore queda visible debajo de la fila */
.hero-ref .trust .items span:nth-child(5){ display:none; }

/* chips flotantes: ocultos por defecto (solo escritorio) */
.hero-chips{ display:none; }

@media(min-width:901px){
  /* foto de escritorio a todo lo ancho, centrada en el laptop */
  .hero-ref .hero-scene{ background-image:url(/assets/hero-photo.jpg); background-size:cover; background-position:62% 50%; }
  /* velo BLANCO: fuerte a la izquierda (texto), se desvanece a la derecha */
  .hero-ref .hero-veil{ background:linear-gradient(90deg,rgba(255,255,255,.94) 0%,rgba(255,255,255,.75) 40%,rgba(255,255,255,.25) 65%,rgba(255,255,255,0) 85%); }
  /* nombre lo más grande posible; la columna se ensancha para que quepa */
  .hero-ref .hero-copy{ max-width:900px; }
  .hero-ref .hero-copy p.lead{ max-width:640px; }
  .hero-ref h1{ font-size:clamp(84px,11vw,200px); margin-bottom:30px; }
  /* confianza: píldora blanca ajustada a los 4 ítems (v5.10); el botón Explore va en su propia línea debajo */
  .hero-ref .trust{ background:transparent; box-shadow:none; border-radius:0; padding:0; justify-content:flex-start; flex-direction:column; align-items:flex-start; gap:12px; }
  .hero-ref .trust .items{ flex:0 0 auto; width:max-content; max-width:100%; background:rgba(255,255,255,.92); border-radius:999px; padding:12px 18px; box-shadow:0 8px 20px rgba(2,26,40,.15); }
  /* chips flotantes arriba a la derecha, sobre la foto */
  .hero-chips{ display:block; }
  .hero-chips .hf-chip{ position:absolute; z-index:3; right:28px; display:flex; align-items:center; gap:10px; background:rgba(6,60,40,.82); border:1px solid rgba(255,255,255,.28); border-radius:16px; padding:12px 16px; color:#fff; box-shadow:0 12px 28px rgba(2,26,40,.30); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); }
  .hero-chips .hf-a{ top:32px; }
  .hero-chips .hf-b{ top:148px; }
  .hero-chips .hf-ic{ width:30px; height:30px; flex-shrink:0; }
  .hero-chips .hf-ic svg{ width:30px; height:30px; display:block; }
  .hero-chips .hf-tx{ display:flex; flex-direction:column; line-height:1.15; }
  .hero-chips .hf-tx small{ font-size:12px; color:#BFE9D2; font-weight:600; }
  .hero-chips .hf-tx strong, .hero-chips .hf-num{ font-size:22px; font-weight:800; }
  .hero-chips .hf-bars{ display:flex; align-items:flex-end; gap:3px; height:26px; }
  .hero-chips .hf-bars i{ width:5px; background:#43C495; border-radius:2px; display:block; }
  .hero-chips .hf-bars i:nth-child(4){ background:#8FE0C0; }
}

@media(max-width:900px){
  /* foto vertical nueva como fondo (reemplaza la escena vieja) */
  .hero-ref .hero-scene{ background-image:url(/assets/hero-scene-vertical.jpg); background-size:cover; background-position:55% 50%; }
  /* velo blanco: lavado fuerte arriba-izquierda, se desvanece abajo/derecha */
  .hero-ref .hero-veil{ background:linear-gradient(165deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.92) 30%,rgba(255,255,255,.60) 50%,rgba(255,255,255,.20) 72%,rgba(255,255,255,.06) 100%); }
  /* hueco para el swoosh bajo el nombre */
  .hero-ref h1{ margin-bottom:18px; }
  /* confianza: píldora blanca translúcida, 4 ítems en una fila; el botón Explore va debajo, centrado */
  .hero-ref .trust{ margin:16px 20px 20px; background:transparent; box-shadow:none; border-radius:0; padding:0; justify-content:center; }
  .hero-ref .trust .items{ display:flex; flex-wrap:nowrap; gap:0 10px; width:100%; justify-content:space-between; background:rgba(255,255,255,.85); border-radius:999px; padding:12px 16px; box-shadow:0 8px 20px rgba(2,26,40,.15); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); }
  .hero-ref .trust .items span{ flex:1 1 0; flex-direction:column; align-items:center; text-align:center; gap:4px; font-size:11px; line-height:1.25; font-weight:700; }
  .hero-ref .trust .items span+span{ border-left:1px solid rgba(6,36,26,.18); padding-left:10px; }
  .hero-ref .trust .items svg{ width:18px; height:18px; }
}

/* v5.2 fix (2026-11-06): en teléfono angosto la última letra del nombre se cortaba (igual que la "h" de RecipeDelish) — nombre con margen real en pantallas ≤360px y guarda para que nada del hero ensanche la página */
@media(max-width:360px){
  .hero-ref h1{ font-size:clamp(44px,14vw,50px); }
}
.hero-ref{ overflow-x:clip; }
body{ overflow-x:clip; }

/* ============================================================
   v5.4 — tool/template pages match the homepage (2026-11-06):
   homepage typography (Poppins body, Work Sans headings,
   JetBrains Mono numbers/labels) + page background tinted to
   each tool's icon color. Appended at the end so it wins.
   The homepage (body.home-v5) is untouched by these rules.
   ============================================================ */

/* ---------- 1) typography on tool + template pages ---------- */
body:not(.home-v5){ --font-body:'Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; --font-head:'Work Sans','Poppins',system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; --font-mono:'JetBrains Mono',ui-monospace,'SF Mono',monospace; }
body:not(.home-v5) .result-hero .big{ font-family:var(--font-mono); }
body:not(.home-v5) .updated{ font-family:var(--font-mono); }

/* ---------- 2) page background tint per tool (icon color family) ---------- */
body.p-salary{ background:#E7F8F0; } /* emerald #10B981 */
body.p-overtime{ background:#E9F1FE; } /* blue #3B82F6 */
body.p-freelance{ background:#F1EAFE; } /* violet #8B5CF6 */
body.p-etsy{ background:#FDEEDF; } /* orange #F97316 */
body.p-tax{ background:#FCE9E9; } /* red #EF4444 */
body.p-paycheck{ background:#E3F5F2; } /* teal #14B8A6 */
body.p-tip{ background:#FDF3DC; } /* amber #F59E0B */
body.p-discount{ background:#FCE9F2; } /* pink #EC4899 */
body.p-loan{ background:#E9EBFD; } /* indigo #6366F1 */
body.p-compound{ background:#F1F8E0; } /* lime #84CC16 */
body.p-currency{ background:#E2F2FC; } /* sky #0EA5E9 */
body.p-salconv{ background:#F3E9FE; } /* purple #A855F7 */
body.p-crypto{ background:#FCF6D9; } /* yellow #EAB308 */
body.p-dechours{ background:#DFF6FA; } /* cyan #06B6D4 */
body.p-payperiod{ background:#FCE8EA; } /* rose #F43F5E */
body.p-aprapy{ background:#F9E7FD; } /* fuchsia #D946EF */
body.p-inflation{ background:#F8E4D3; } /* burnt orange #EA580C */
body.p-gold{ background:#F6E9D2; } /* amber-700 #B45309 */
body.p-workhours{ background:#E5EAFB; } /* navy #1E40AF */
body.p-mileage{ background:#F8E3E7; } /* wine #9F1239 */
body.tpl-monthly{ background:#E3F5F2; } /* teal #14B8A6 */
body.tpl-paycheck{ background:#FDF3DC; } /* amber #F59E0B */
body.tpl-debt{ background:#FCE8EA; } /* rose #F43F5E */
body.tpl-savings{ background:#E9EBFD; } /* indigo #6366F1 */

/* v5.6 fix (2026-11-06): la "y" de Maply se cortaba por ABAJO (no por el ancho): background-clip:text en .grad recorta los descendentes cuando la caja es más baja que la letra — más alto de línea y aire abajo para que la cola de la "y" se vea completa */
/* v5.10 (2026-11-06): en el iPhone de Elvis la "y" SEGUÍA cortada — el margen .12em no bastaba para el render de iOS Safari. Se sube el aire a .30em y la línea a 1.25 para que no se corte en ningún navegador. */
.hero-ref h1{ line-height:1.25; }

/* v5.9 (2026-11-06): Elvis eligió la opción C — el degradado termina en verde #43C495 para que la "y" se lea bien (antes terminaba en casi blanco #DEF6EB y casi no se veía). Sigue de oscuro a claro. */
/* v5.9 (2026-11-06): degradado C — ELIMINADO en v5.12, el degradado ahora es el relleno del SVG (ver .grad-svg arriba). */

/* v5.11 (2026-11-06): swoosh ELIMINADO por orden de Elvis — la línea bajo "Maply" no le gustaba en ninguna forma (sonrisa, arco); el nombre queda limpio como en la vista previa estilo UnitExact que aprobó. El arreglo de la "y" (.30em + línea 1.25) queda intacto. */
