/* ==========================================================================================================
   Scout Wand · página principal fusionada · estilos NUEVOS (public/css/sw-home.css)
   Se carga DESPUÉS de site.css (el Tailwind de siempre). Todo lo nuevo usa el prefijo hx- (secciones) o sw-/hx-tour (la réplica de la app,
   en sw-tour.css), así que NO puede pisar ninguna clase tuya. Lo único que toca algo existente es la cabecera:
   "header.hx-glass" (más específico que sus clases de Tailwind) y solo cambia el fondo y la línea inferior; el menú, los puntos de corte
   y los botones de la cabecera quedan exactamente como estaban.
   Colores = los de tailwind.site.config.js. Tipos = los de siempre (Fraunces / IBM Plex), ya cargados por fonts.css.
   ========================================================================================================== */

/* ---------- 0. Variables y base de las secciones nuevas ---------- */
.hx {
  --ink: #0B1210; --ink-2: #070D0B; --panel: #121C18; --panel-2: #182620;
  --green: #3E9C6E; --mint: #34D399; --brass: #C6A15B; --ivory: #F2F5F1; --dim: #8FA39A;
  --paper: #F1EFE4; --paper-ink: #0B1210; --paper-dim: #51615A; --brass-deep: #8A6A2C; --green-deep: #1F6F4A;
  --hair: rgba(242, 245, 241, .12); --hair-paper: rgba(11, 18, 16, .16);
  --f-display: "Fraunces", Georgia, serif; --f-body: "IBM Plex Sans", system-ui, sans-serif; --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: 1.5rem; --maxw: 72rem;                 /* = max-w-6xl + px-6: la misma rejilla que tus secciones */
  --ease: cubic-bezier(.2, .7, .2, 1); --r: 12px; --header-h: 72px;
  font-family: var(--f-body); color: var(--ivory); line-height: 1.6;
}
.hx h1, .hx h2, .hx h3, .hx p, .hx ul, .hx figure { margin: 0; }
.hx ul { padding: 0; list-style: none; }
.hx a { color: inherit; }
.hx-linkbtn { color: var(--ivory); }
@media (min-width: 640px) { .hx { --pad: 2rem; } }
@media (min-width: 1024px) { .hx { --pad: 2.5rem; } }
.hx-install .hx-body { margin-top: .8rem; }

/* ---------- 1. Cabecera: cristal oscuro + línea de avance (el menú y sus puntos de corte no se tocan) ----------
   Ronda 3b: la cabecera es SIEMPRE el mismo cristal oscuro, arriba del todo y con scroll. Antes arriba era transparente y a los 24 px
   de scroll cambiaba de golpe (fondo, desenfoque y sombra a la vez); con el hero nuevo, que es claro, ese cambio se veía como un
   salto. Ahora no cambia nada al empezar a hacer scroll, y el fondo es casi opaco para que el hero claro no se transparente
   por debajo (se veía grisáceo). No se anima el desenfoque (animarlo hacía parpadear la cabecera en Safari). */
header.hx-glass {
  background: rgba(8, 10, 15, .96);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: rgba(255, 255, 255, .07);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .04), 0 14px 40px -26px rgba(0, 0, 0, .75);
  transition: none;                                   /* anula el transition-all de Tailwind de la cabecera */
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { header.hx-glass { background: rgba(8, 10, 15, .94); } }
.hx-hdr__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; background: rgba(255, 255, 255, .06); }
.hx-hdr__bar::before { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, #C6A15B, #34D399); }
.hx-hdr__bar::after { content: ""; position: absolute; top: -2px; left: calc(var(--scroll, 0) * 100%); width: 18px; height: 6px; margin-left: -18px; border-radius: 6px; background: #34D399; filter: blur(5px); opacity: calc(var(--scroll, 0) * 20); }

/* ---------- 2. Lente: arriba y abajo de la pantalla el contenido se desenfoca y "aparece / desaparece" al pasar ---------- */
.hx-lens { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.hx-lens__e { position: absolute; left: 0; right: 0; height: clamp(4.5rem, 14vh, 9rem); }
.hx-lens__e--t { top: 0; height: calc(var(--hx-hdr, 64px) + clamp(2.5rem, 9vh, 5.5rem)); }
.hx-lens__e--b { bottom: 0; }
.hx-lens__e i { position: absolute; inset: 0; -webkit-backdrop-filter: blur(var(--b)); backdrop-filter: blur(var(--b)); }
.hx-lens__e--b i:nth-child(1) { --b: 1.5px; -webkit-mask-image: linear-gradient(to top, #000, transparent); mask-image: linear-gradient(to top, #000, transparent); }
.hx-lens__e--b i:nth-child(2) { --b: 5px;   -webkit-mask-image: linear-gradient(to top, #000, transparent 62%); mask-image: linear-gradient(to top, #000, transparent 62%); }
.hx-lens__e--b i:nth-child(3) { --b: 12px;  -webkit-mask-image: linear-gradient(to top, #000, transparent 34%); mask-image: linear-gradient(to top, #000, transparent 34%); }
.hx-lens__e--t i:nth-child(1) { --b: 1.5px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.hx-lens__e--t i:nth-child(2) { --b: 5px;   -webkit-mask-image: linear-gradient(to bottom, #000, transparent 62%); mask-image: linear-gradient(to bottom, #000, transparent 62%); }
.hx-lens__e--t i:nth-child(3) { --b: 12px;  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 34%); mask-image: linear-gradient(to bottom, #000, transparent 34%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .hx-lens { display: none; } }
@media (prefers-reduced-transparency: reduce) { .hx-lens { display: none; } }
@media (max-width: 639px) { .hx-lens__e i:nth-child(3) { display: none; } }   /* en móvil, una capa menos (gasta menos batería) */

/* ---------- 3. "Sound familiar?" en DOS secciones ----------
   A) .hx-sf  = el papel: "Same name. Same email. Same phone." Se cuenta sola al llegar (no depende del scroll) y al terminar TODO el texto
                se queda a la vista, incluido "Tired. Bored. Maybe tomorrow.". Arriba a la derecha aparece "Repetir".
   B) .hx-sf2 = la tinta: "Sound familiar? There is a better way." Entra con un domo (círculo oscuro que crece desde el borde superior,
                igual que "One application, two ways" entra sobre ella) y una tarjeta se rellena sola, campo a campo, con un radar suave detrás.
   Sin JavaScript o con movimiento reducido = estado final estático, todo visible. Con JavaScript: .hx-sf--live (A) y .hx-sf2--arm (B). */
.hx-sf { background: var(--paper); color: var(--paper-ink); position: relative; }
.hx-sf__paper, .hx-sf2__in { --sf-px: max(var(--pad), calc((100% - var(--maxw)) / 2 + var(--pad))); }
.hx-sf__paper { position: relative; display: grid; gap: 2.2rem; padding: clamp(4.6rem, 8vw, 6.5rem) var(--sf-px) clamp(3.5rem, 8vw, 6rem); align-content: center; outline: none; }
.hx .hx-sf__k { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 1rem; }
.hx .hx-sf__k--mint { color: var(--mint); }
.hx-sf__h { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 15ch; }
.hx-sf__h--mint { color: var(--mint); }
.hx-sf__h--sub { font-size: clamp(1.55rem, 2.7vw, 2.25rem); max-width: 18ch; }
.hx .hx-sf__p { text-wrap: pretty; margin-top: 1rem; max-width: 30rem; font-size: clamp(1rem, 1.3vw, 1.1rem); color: var(--paper-dim); }
.hx-sf__b2 { margin-top: 2.4rem; padding-top: 2.2rem; border-top: 1px solid var(--hair-paper); }
.hx-sf__vis { display: grid; justify-items: center; align-content: center; gap: 1.5rem; }
.hx-sf__num { display: flex; align-items: baseline; justify-content: center; gap: .9rem; }
.hx-sf__num b { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.6rem); line-height: .9; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--brass-deep); }
.hx-sf__num span { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); max-width: 15rem; line-height: 1.4; }
.hx-sf__note { font-size: .8rem; color: var(--paper-dim); text-align: center; }
.hx .hx-sf__more { margin-top: 2rem; display: flex; align-items: center; gap: .8rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hx-sf__more i { position: relative; width: 1px; height: 2.4rem; background: linear-gradient(var(--mint), transparent); overflow: hidden; }
.hx-sf__more i::after { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 8px; border-radius: 3px; background: var(--mint); animation: hx-drip 1.8s var(--ease) infinite; }
@keyframes hx-drip { from { transform: translateY(-10px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(2.6rem); opacity: 0; } }

/* botón "Repetir": solo existe con JavaScript y solo se ve cuando la escena ha terminado */
.hx-sf__replay { display: none; position: absolute; top: clamp(1rem, 2.4vw, 1.7rem); right: var(--sf-px); z-index: 3; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 10px; border: 1px solid var(--hair-paper);
  background: rgba(255, 254, 248, .72); color: var(--paper-ink); font: 500 .85rem/1 var(--f-body); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s, background .2s, border-color .2s; }
.hx-sf__replay svg { width: 1rem; height: 1rem; flex: none; }
.hx-sf__replay:hover { background: rgba(11, 18, 16, .06); border-color: rgba(11, 18, 16, .4); }
.hx-sf__replay:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 3px; }
.hx-sf--live .hx-sf__replay { display: inline-flex; }
.hx-sf--live.hx-sf--done .hx-sf__replay { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* formularios de ejemplo (A) */
.hx-sf__forms { display: grid; gap: .7rem; width: 100%; justify-items: center; align-content: center; }
.hx-sf__form { width: 100%; max-width: 20.5rem; border-radius: 14px; padding: .8rem 1rem 1rem; background: #FFFEF8; border: 1px solid var(--hair-paper); box-shadow: 0 16px 40px -22px rgba(11, 18, 16, .55), 0 2px 0 rgba(255, 255, 255, .7) inset; }
.hx-sf__form:nth-child(n+3) { display: none; }
.hx-sf__fh { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.hx-sf__fh i { font-style: normal; width: .75rem; height: .75rem; border-radius: 50%; background: rgba(11, 18, 16, .14); flex: none; }
.hx-sf__f { display: grid; grid-template-columns: 4.6rem 1fr; align-items: center; gap: .6rem; padding: .42rem 0; border-top: 1px solid var(--hair-paper); font-size: .84rem; }
.hx-sf__f em { font-style: normal; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.hx-sf__f span { color: var(--paper-ink); min-height: 1.2em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 900px) {
  .hx-sf__paper { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 5rem; align-items: center; }
}
/* en pantalla estrecha: texto 1, formularios, y DESPUÉS "Tired. Bored. Maybe tomorrow." */
@media (max-width: 899px) {
  .hx-sf__txt { display: contents; }
  .hx-sf__b1 { order: 1; } .hx-sf__vis { order: 2; } .hx-sf__b2 { order: 3; margin-top: 0; }
}

/* A en vivo: los formularios se apilan y se escriben; el texto de "Tired…" entra al final y se queda */
.hx-sf--live .hx-sf__forms { position: relative; min-height: 23.5rem; display: block; }
.hx-sf--live .hx-sf__form { display: block; position: absolute; left: 50%; top: 50%; width: min(100%, 20.5rem); opacity: 0;
  transform: translate(-50%, -50%) translate(var(--fx), calc(var(--fy) + 150px)) rotate(var(--fr));
  transition: opacity .5s var(--ease), transform .85s var(--ease), filter .7s, background-color .7s; }
.hx-sf--live .hx-sf__form[data-in="true"] { opacity: 1; transform: translate(-50%, -50%) translate(var(--fx), var(--fy)) rotate(var(--fr)); }
.hx-sf--live .hx-sf__form:nth-child(1) { --fx: -26px; --fy: -108px; --fr: -3.2deg; z-index: 1; }
.hx-sf--live .hx-sf__form:nth-child(2) { --fx: 18px;  --fy: -58px;  --fr: 2.4deg;  z-index: 2; }
.hx-sf--live .hx-sf__form:nth-child(3) { --fx: -14px; --fy: -6px;   --fr: -1.6deg; z-index: 3; }
.hx-sf--live .hx-sf__form:nth-child(4) { --fx: 24px;  --fy: 46px;   --fr: 3deg;    z-index: 4; }
.hx-sf--live .hx-sf__form:nth-child(5) { --fx: -6px;  --fy: 100px;  --fr: -2deg;   z-index: 5; }
/* "apagados": se quedan OPACOS (con opacidad parcial se transparentaban unos a otros y el montón parecía un borrón) */
.hx-sf--live .hx-sf__forms[data-tired="true"] .hx-sf__form[data-in="true"] { filter: grayscale(1); background-color: #EBE8DD; }
.hx-sf--live .hx-sf__forms[data-tired="true"] .hx-sf__form[data-in="true"] > * { opacity: .5; transition: opacity .7s; }
.hx-sf--live .hx-sf__num, .hx-sf--live .hx-sf__note { opacity: 0; transition: opacity .5s; }
.hx-sf--live.hx-sf--run .hx-sf__num, .hx-sf--live.hx-sf--run .hx-sf__note { opacity: 1; }
.hx-sf--live .hx-sf__b2 { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.hx-sf--live .hx-sf__b2[data-on="true"] { opacity: 1; transform: none; }
@media (max-width: 899px) { .hx-sf--live .hx-sf__forms { min-height: 21rem; } }

/* ---------- B. La tinta: "There is a better way." ---------- */
.hx-domewrap--paper { background: var(--paper); }                 /* lo que se ve alrededor del círculo mientras crece: el papel de arriba */
.hx-sf2 { position: relative; background: var(--ink-2); color: var(--ivory); overflow: hidden; isolation: isolate; }
.hx-sf2__in { position: relative; z-index: 1; display: grid; gap: 2.8rem; align-items: center; align-content: center; padding: clamp(3.5rem, 8vw, 6rem) var(--sf-px); min-height: clamp(34rem, 88svh, 46rem); }
.hx-sf2 .hx-sf__p { color: var(--dim); }
@media (min-width: 900px) { .hx-sf2__in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: 5rem; } }

.hx-sf2__vis { position: relative; display: grid; justify-items: center; gap: 1.3rem; }
.hx-sf2 .hx-radar { left: 50%; top: 50%; translate: -50% -50%; width: min(980px, 170vw); z-index: 0; }   /* el radar suave de la sección de descarga, centrado tras la tarjeta */
.hx-sf2 .hx-radar::after { animation-play-state: paused; }
.hx-sf2--vis .hx-radar::after { animation-play-state: running; }
.hx-sf2__stack { position: relative; z-index: 1; width: min(100%, 21.5rem); padding-top: 3.3rem; }
.hx-sf2__card { border-radius: 14px; padding: .8rem 1rem 1rem; background: linear-gradient(180deg, #15241D, #101C17); border: 1px solid rgba(62, 156, 110, .4); box-shadow: 0 24px 60px -24px rgba(52, 211, 153, .35); }
.hx-sf2__card--back { position: absolute; left: 0; right: 0; height: 4rem; padding-top: .4rem; background: #0F1914; box-shadow: none; opacity: .9; }
.hx-sf2__card--b2 { top: 0; left: 1.6rem; right: 1.6rem; }
.hx-sf2__card--b1 { top: 1.65rem; left: .8rem; right: .8rem; background: #121F19; }
.hx-sf2__card--front { position: relative; z-index: 2; }
.hx-sf2__card .hx-sf__fh { color: var(--dim); margin-bottom: .45rem; }
.hx-sf2__card--back .hx-sf__fh { margin-bottom: 0; }
.hx-sf2__card--back .hx-sf__fh i { width: 1.05rem; height: 1.05rem; font-size: .62rem; }
.hx-sf2__prog { margin-right: auto; padding-left: .2rem; color: var(--mint); letter-spacing: .08em; }
.hx-sf2__card .hx-sf__fh i { width: 1.35rem; height: 1.35rem; display: grid; place-items: center; background: var(--green); color: #fff; font-size: .78rem; font-weight: 700; transition: background-color .4s, color .4s; }
.hx-sf2__f { position: relative; isolation: isolate; display: grid; grid-template-columns: 4.8rem minmax(0, 1fr) 1.1rem; align-items: center; gap: .6rem; padding: .4rem 0; border-top: 1px solid var(--hair); font-size: .84rem; }
.hx-sf2__f em { font-style: normal; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hx-sf2__f .v { color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.hx-sf2__f .ck { color: var(--mint); font-size: .8rem; font-weight: 700; text-align: center; }
.hx-sf2__f--you .v { justify-self: start; padding: .12rem .55rem; border: 1px dashed rgba(198, 161, 91, .6); border-radius: 6px; color: var(--brass); font-size: .74rem; }
.hx-sf2__note { font-size: .8rem; color: var(--dim); text-align: center; position: relative; z-index: 1; }

/* B armada (con JavaScript): todo parte vacío y se rellena al llegar. El retraso de cada campo viene de --d (lo escribe el HTML). */
.hx-sf2--arm .hx-sf2__f .v { clip-path: inset(0 100% 0 0); }
.hx-sf2--arm .hx-sf2__f .ck { opacity: 0; transform: scale(.4); }
.hx-sf2--arm .hx-sf2__f--you .v { clip-path: none; opacity: 0; }
.hx-sf2--arm .hx-sf2__card .hx-sf__fh i { background: rgba(242, 245, 241, .12); color: transparent; }
.hx-sf2--arm .hx-sf2__card--front, .hx-sf2--arm .hx-sf2__card--back { opacity: 0; transform: translateY(18px); }
.hx-sf2--arm.hx-sf2--on .hx-sf2__card { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hx-sf2--arm.hx-sf2--on .hx-sf2__card--back { opacity: .9; transition-delay: .15s; }
.hx-sf2--arm.hx-sf2--on .hx-sf2__f .v { clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease) var(--d); }
.hx-sf2--arm.hx-sf2--on .hx-sf2__f .ck { opacity: 1; transform: none; transition: opacity .3s calc(var(--d) + .35s), transform .45s var(--ease) calc(var(--d) + .35s); }
.hx-sf2--arm.hx-sf2--on .hx-sf2__f--you .v { opacity: 1; transition: opacity .6s var(--d); animation: hx-nudge 1.4s var(--ease) calc(var(--d) + .5s) 1 both; }
.hx-sf2--arm.hx-sf2--on .hx-sf2__f:not(.hx-sf2__f--you)::before { content: ""; position: absolute; inset: 0 -.35rem; z-index: -1; border-radius: 6px; background: rgba(52, 211, 153, .15); opacity: 0; animation: hx-flash .9s var(--ease) var(--d) 1 both; }
.hx-sf2--arm.hx-sf2--on .hx-sf2__card .hx-sf__fh i { background: var(--green); color: #fff; transition-delay: var(--t, 0s); }
@keyframes hx-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hx-nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 161, 91, 0); } 40% { box-shadow: 0 0 0 5px rgba(198, 161, 91, .22); } }

/* ---------- 4. Domo: una sección entra como un círculo que crece desde su borde superior con el scroll (B sobre el papel de A; "One application, two ways" sobre B) ----------
   sw-home.js escribe --hx-dome (radio) mientras la sección entra y, al terminar, pone hx-dome--open (clip-path: none). Sin JS no existe. */
.hx-js .hx-dome { clip-path: circle(var(--hx-dome, 160vmax) at 50% 0); }
.hx-js .hx-dome.hx-dome--open { clip-path: none; }

/* ---------- 5. La letra pequeña (tarjetas como las de "Cómo funciona") ---------- */
.hx-deal { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.hx-deal__card h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--ivory); }
.hx-deal__card p { color: var(--dim); font-size: .95rem; line-height: 1.6; margin-top: .45rem; }
.hx-deal__card a { color: var(--brass); }
.hx-deal__card .ghost-num { top: -.4rem; right: .8rem; }
@media (min-width: 900px) { .hx-deal { grid-template-columns: 1fr 1fr; gap: 1.4rem; } .hx-deal__card:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- 6. Historia: palabra a palabra + papeles que aparecen ---------- */
.hx-letter p[data-split] .hx-w { display: inline; opacity: 1; transition: opacity .35s linear; }
.hx-js .hx-letter p[data-split] .hx-w { opacity: .16; }
.hx-js .hx-letter p[data-split] .hx-w[data-l="1"] { opacity: .42; }
.hx-js .hx-letter p[data-split] .hx-w[data-l="2"] { opacity: .72; }
.hx-js .hx-letter p[data-split] .hx-w[data-l="3"] { opacity: 1; }
.hx-notes__count b { display: inline-flex; align-items: baseline; }
.hx-note { opacity: 1; }
.hx-js .hx-note { opacity: 0; transform: rotate(var(--r, 0deg)) translateY(10px) scale(.92); }
.hx-js .hx-note.hx-seen { opacity: 1; transform: rotate(var(--r, 0deg)); }
.hx-js .hx-note.hx-seen.hx-done { transform: rotate(var(--r, 0deg)) scale(.96); }
/* En pantallas pequeñas el texto va ANTES que los papeles */
@media (max-width: 899px) {
  .hx-story__left { display: contents; }
  .hx-story__left > h2 { order: 1; }
  .hx-letter { order: 2; }
  .hx-story__left > .hx-notes { order: 3; margin-top: 0; }
}

/* ---------- 7. Descarga: el barrido de radar de la versión 2 (el resto de la sección es el tuyo) ---------- */
.hx-radar { position: absolute; z-index: 0; width: min(1400px, 150vw); aspect-ratio: 1; left: -25%; top: 50%; translate: 0 -50%; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle at center, transparent 0 78px, rgba(52, 211, 153, .075) 78px 79px);
  -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 68%); mask-image: radial-gradient(circle, #000 18%, transparent 68%); }
.hx-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(52, 211, 153, .22), transparent 22%); animation: hx-sweep 9s linear infinite; }
@keyframes hx-sweep { to { transform: rotate(360deg); } }

/* ---------- 8. Marca del pie ---------- */
.hx-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.hx-brand img { width: auto; }
.hx-brand b { color: var(--mint); font-weight: 600; }
.hx-brand span { white-space: nowrap; }

/* ---------- 9. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hx-js .hx-rv { opacity: 1; transform: none; }
  .hx-radar::after { display: none; }
  .hx-fill--range { width: 100%; } .hx-fill--core { width: 71.43%; } .hx-fill--scout { width: 14.29%; }
  .hx-js .hx-letter p[data-split] .hx-w { opacity: 1; }
  .hx-js .hx-note { opacity: 1; transform: rotate(var(--r, 0deg)); }
}

/* ======================= Piezas de la versión 2 (corregida), con el prefijo hx- ======================= */
.hx-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.hx-display { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
.hx-h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.hx-lede { color: var(--dim); font-size: clamp(1rem, 1.3vw, 1.1rem); max-width: 38rem; }
.hx-js .hx-rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.hx-js .hx-rv.hx-in { opacity: 1; transform: none; }
.hx-linkbtn { background: none; border: 0; padding: .4rem 0; color: var(--ivory); display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--hair); transition: border-color .2s, color .2s; }
.hx-linkbtn:hover { border-color: var(--brass); color: var(--brass); }
.hx-linkbtn svg { width: 1.1rem; height: 1.1rem; }
.hx-paper { background: var(--paper); color: var(--paper-ink); position: relative; }
.hx-paper .hx-lede, .hx-paper .hx-muted { color: var(--paper-dim); }
.hx-time { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.hx-time__grid { display: grid; gap: 2.6rem; }
.hx-time h2 { max-width: 14ch; }
.hx-race { display: grid; gap: 1.8rem; }
.hx-lane__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.hx-lane__label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.hx-lane__val { font-family: var(--f-display); font-weight: 600; letter-spacing: -.025em; line-height: 1; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.hx-lane--scout .hx-lane__val { color: var(--green-deep); }
.hx-lane--hand .hx-lane__val { color: var(--brass-deep); }
.hx-track { position: relative; height: 14px; border-radius: 999px; background: rgba(11, 18, 16, .09); overflow: hidden; }
.hx-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; }
.hx-fill--range { background: repeating-linear-gradient(135deg, rgba(138, 106, 44, .38) 0 6px, rgba(138, 106, 44, .2) 6px 12px); }
.hx-fill--core { background: var(--brass-deep); }
.hx-fill--scout { background: var(--green-deep); }
.hx-fill--range { width: 100%; }
.hx-fill--core { width: 71.43%; }
.hx-fill--scout { width: 14.29%; }
.hx-js .hx-race:not(.hx-run) .hx-fill { width: 0; }
.hx-race.hx-run .hx-fill--range { animation: hx-grow 8.4s linear forwards; --to: 100%; }
.hx-race.hx-run .hx-fill--core { animation: hx-grow 6s linear forwards; --to: 71.43%; }
.hx-race.hx-run .hx-fill--scout { animation: hx-grow 1.2s linear forwards; --to: 14.29%; }
@keyframes hx-grow { from { width: 0; } to { width: var(--to); } }
.hx-lane__foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: .55rem; font-size: .9rem; color: var(--paper-dim); }
.hx-clock { white-space: nowrap; font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--paper-ink); }
.hx-clock.hx-is-done::after { content: " ✓"; color: var(--green-deep); }
.hx-ruler { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .66rem; color: var(--paper-dim); letter-spacing: .06em; padding: 0 .1rem; }
.hx-calc { margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--hair-paper); display: grid; gap: 1.4rem; }
.hx-calc__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.hx-calc__top label { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); }
.hx-calc__n { font-family: var(--f-display); font-size: 2.4rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.hx-range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--green-deep) var(--p, 24%), rgba(11, 18, 16, .12) var(--p, 24%)); outline: none; cursor: pointer; }
.hx-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); border: 5px solid var(--green-deep); box-shadow: 0 2px 8px rgba(11, 18, 16, .3); cursor: grab; transition: transform .2s; }
.hx-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 5px solid var(--green-deep); box-shadow: 0 2px 8px rgba(11, 18, 16, .3); cursor: grab; }
.hx-range::-moz-range-track { background: transparent; }
.hx-range::-moz-range-progress { background: var(--green-deep); height: 8px; border-radius: 8px; }
.hx-range:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
.hx-range:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 8px; }
.hx-results { display: grid; gap: 1rem; }
.hx-results div { border-top: 1px solid var(--hair-paper); padding-top: .75rem; }
.hx-results small { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.hx-results b { display: block; font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.hx-results .hx-is-back b { color: var(--green-deep); }
.hx-disclaimer { font-size: .82rem; color: var(--paper-dim); max-width: 36rem; }
.hx-again { align-self: start; justify-self: start; background: none; border: 1px solid var(--hair-paper); color: var(--paper-ink); padding: .5rem 1rem; border-radius: 10px; font-size: .85rem; transition: background .2s, border-color .2s; }
.hx-again:hover { background: rgba(11, 18, 16, .06); border-color: rgba(11, 18, 16, .4); }
@media (min-width: 900px) {
.hx-time__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4.5rem; align-items: start; }
.hx-results { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.hx-time h2 { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.hx-trust { padding: clamp(5rem, 10vw, 9rem) 0; border-top: 1px solid var(--hair); position: relative; }
.hx-trust__head { max-width: 50rem; }
.hx-ledger { margin-top: 4rem; display: grid; gap: 0; align-items: stretch; }
.hx-pc { position: relative; border: 1px solid rgba(242, 245, 241, .22); border-radius: 22px; padding: 2.2rem 1.6rem 1.8rem; background: linear-gradient(180deg, rgba(24, 38, 32, .7), rgba(18, 28, 24, .35)); }
.hx-pc__tab { position: absolute; top: -.8rem; left: 1.4rem; background: var(--ink); padding: 0 .7rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); display: inline-flex; align-items: center; gap: .55rem; }
.hx-pc__tab svg { width: 1.1rem; height: 1.1rem; }
.hx-pc ul { display: grid; gap: 1rem; }
.hx-pc li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; font-family: var(--f-display); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.01em; }
.hx-pc li svg { width: 1.2rem; height: 1.2rem; color: var(--mint); margin-top: .2rem; }
.hx-wire { position: relative; width: 2px; height: 5.5rem; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 12px); }
.hx-wire::after { content: ""; position: absolute; left: 50%; top: 0; width: .8rem; height: .8rem; margin-left: -.4rem; border-radius: 50%; background: var(--brass); box-shadow: 0 0 16px var(--brass); opacity: 0; }
.hx-ledger.hx-in .hx-wire::after { animation: hx-packet 3.2s var(--ease) .4s infinite; }
@keyframes hx-packet { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: calc(100% - .8rem); opacity: 0; } }
.hx-wire__label { position: absolute; left: calc(50% + 1.2rem); top: 50%; translate: 0 -50%; width: 8.5rem; line-height: 1.35; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); }
.hx-srv { border: 1px dashed rgba(198, 161, 91, .55); border-radius: 22px; padding: 2rem 1.6rem 1.6rem; position: relative; }
.hx-srv .hx-pc__tab { color: var(--brass); }
.hx-srv p { color: var(--ivory); font-size: 1rem; max-width: 24rem; }
.hx-srv p + p { margin-top: .8rem; color: var(--dim); font-size: .92rem; }
@media (min-width: 900px) {
.hx-ledger { grid-template-columns: minmax(0, 6fr) 10.5rem minmax(0, 5fr); align-items: center; }
.hx-pc ul { grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; }
.hx-wire { width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px); margin: 0; }
.hx-wire::after { top: 50%; left: 0; margin: -.4rem 0 0; }
.hx-ledger.hx-in .hx-wire::after { animation-name: hx-packetx; }
.hx-wire__label { left: 50%; top: -2.7rem; translate: -50% 0; width: 9.5rem; white-space: normal; text-align: center; line-height: 1.35; }
}
@keyframes hx-packetx { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - .8rem); opacity: 0; } }
.hx-story { padding: clamp(4rem, 8vw, 7rem) 0; }
.hx-story__grid { display: grid; gap: 3.5rem; }
.hx-story h2 { margin: 0; font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 16ch; }
.hx-letter p { font-family: var(--f-display); font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.42; letter-spacing: -.01em; font-weight: 400; margin-bottom: 1.8rem; max-width: 34rem; color: var(--paper-ink); }
.hx-letter p.hx-lead { font-size: clamp(1.4rem, 2.3vw, 1.85rem); font-weight: 500; }
.hx-sign { margin-top: 2.4rem; display: grid; gap: .3rem; }
.hx-sign .hx-signature { font-family: var(--f-display); font-style: italic; font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 400; color: var(--green-deep); letter-spacing: -.01em; line-height: 1.1; }
.hx-sign img.hx-signature { height: 3.6rem; width: auto; }
.hx-sign span:not(.hx-signature) { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
.hx-notes { margin-top: 2.5rem; max-width: 22rem; }
.hx-notes__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .55rem; }
.hx-note { aspect-ratio: 4 / 5; border-radius: 4px; background: #fffdf4; border: 1px solid var(--hair-paper); position: relative; transform: rotate(var(--r, 0deg)); transition: background .4s, border-color .4s, transform .4s var(--ease); box-shadow: 0 2px 0 rgba(11, 18, 16, .06); }
.hx-note::before { content: ""; position: absolute; left: 22%; right: 22%; top: 28%; height: 2px; background: var(--hair-paper); box-shadow: 0 6px 0 var(--hair-paper), 0 12px 0 var(--hair-paper); }
.hx-note.hx-done { background: var(--green-deep); border-color: var(--green-deep); transform: rotate(var(--r, 0deg)) scale(.96); }
.hx-note.hx-done::before { content: "✓"; position: absolute; inset: 0; left: 0; right: 0; top: 0; height: auto; box-shadow: none; background: none; display: grid; place-items: center; color: var(--paper); font-weight: 700; }
.hx-notes__count { margin-top: 1.2rem; display: flex; align-items: baseline; gap: .8rem; }
.hx-notes__count b { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; line-height: .9; letter-spacing: -.04em; color: var(--green-deep); }
.hx-notes__count > span { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); max-width: 14rem; line-height: 1.4; }
@media (min-width: 900px) {
.hx-story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 6rem; align-items: start; }
.hx-story__left { position: sticky; top: 6.5rem; }
}
.hx-faq { padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--hair); }
.hx-faq__grid { display: grid; gap: 2.5rem; }
.hx-faq h2 { margin: 0; }
.hx-qs details { border-bottom: 1px solid var(--hair); }
.hx-qs details:first-child { border-top: 1px solid var(--hair); }
.hx-qs summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.01em; cursor: pointer; transition: color .2s; }
.hx-qs summary::-webkit-details-marker { display: none; }
.hx-qs summary:hover { color: var(--brass); }
.hx-qs summary i { flex: none; width: 1.6rem; height: 1.6rem; position: relative; border: 1px solid var(--hair); border-radius: 50%; transition: transform .35s var(--ease), border-color .2s, background .2s; }
.hx-qs summary i::before, .hx-qs summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: .7rem; height: 1.5px; background: currentColor; translate: -50% -50%; }
.hx-qs summary i::after { rotate: 90deg; transition: rotate .35s var(--ease); }
.hx-qs details[open] summary i { transform: rotate(180deg); background: var(--brass); border-color: var(--brass); color: var(--ink); }
.hx-qs details[open] summary i::after { rotate: 0deg; }
.hx-qs .hx-a { padding: 0 3rem 1.6rem 0; color: var(--dim); max-width: 44rem; animation: hx-faqIn .4s var(--ease); }
@keyframes hx-faqIn { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 900px) {
.hx-faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 5rem; }
.hx-faq__left { position: sticky; top: 7rem; align-self: start; }
}
.hx-foot { background: var(--ink-2); border-top: 1px solid var(--hair); padding: 3rem 0 2.5rem; font-size: .88rem; color: var(--dim); }
.hx-foot__row { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; justify-content: space-between; align-items: center; }
.hx-foot nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hx-foot nav a { text-decoration: none; transition: color .2s; }
.hx-foot nav a:hover { color: var(--ivory); }
.hx-foot small { display: block; margin-top: 1.6rem; max-width: 60rem; line-height: 1.6; color: rgba(143, 163, 154, .8);
  position: relative; z-index: 41; }                                  /* por encima de la lente (z-index 40, pero por debajo del menú, 50): el aviso legal nunca se desenfoca */
.hx-foot .hx-brand { flex-wrap: wrap; row-gap: .15rem; }
.hx-foot .hx-brand span:last-child { white-space: normal; }

/* ---- primer arranque ---- */
.hx-install { padding: 3rem 0 clamp(4rem, 8vw, 7rem); }
.hx-install__grid { display: grid; gap: 2rem; padding-block: 2.4rem; background: linear-gradient(var(--hair), var(--hair)) center top / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.hx-install h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-top: .9rem; }
.hx-install p.hx-body { color: var(--dim); margin-top: .8rem; max-width: 28rem; }
.hx-steps { display: grid; gap: 1.4rem; }
.hx-steps h3 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: .4rem; }
.hx-steps p { color: var(--ivory); max-width: 34rem; }
@media (min-width: 900px) { .hx-install__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; } }


/* Sin JavaScript (o si sw-home.js no llega a cargar): se ocultan los controles que no harían nada.
   El contenido sigue visible y legible; la calculadora se queda con su valor de ejemplo. */
html:not(.hx-js) .hx-again,
html:not(.hx-js) .hx-range,
html:not(.hx-js) .hx-sf__more { display: none; }

/* Título de "La letra pequeña": es un h3 y el reset de Tailwind lo deja sin estilo, así que se le da el de los títulos de tarjeta. */
.hx-trust { --deal-gap: clamp(1.9rem, 3.4vw, 2.5rem); }              /* mismo espacio encima y debajo del título */
.hx .hx-deal__title { font-family: var(--f-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; color: var(--ivory); margin: var(--deal-gap) 0 0; }
.hx-deal { margin-top: var(--deal-gap); }                             /* (".hx h3 { margin: 0 }" ganaba al margen anterior: por eso no se separaba de la tarjeta de arriba) */

/* Sin JavaScript el barrido del radar se quedaría congelado con su borde duro a la vista: se oculta (los anillos sí se ven) */
html:not(.hx-js) .hx-sf2 .hx-radar::after { display: none; }

/* =====================================================================================================
   Botón de descarga según el sistema (partials/merge/dl-button + public/js/sw-dl.js)
   sw-dl.js pone <html data-dl-mode="windows|mac|mobile|other">. Sin JS (o "other") se ve la etiqueta neutra.
   Las 4 etiquetas están siempre en el HTML, apiladas en la misma celda de una rejilla: el botón mide lo que
   la más larga y no hay saltos al cambiar. Las que no tocan llevan visibility:hidden (tampoco las leen los lectores de pantalla).
   ===================================================================================================== */
.hx-dl__ico { width: 1.05rem; height: 1.05rem; flex: none; }
.hx-dl__labels { display: inline-grid; justify-items: center; }
.hx-dl__l { grid-area: 1 / 1; visibility: hidden; white-space: nowrap; text-align: center; }
.hx-dl__l--neutral { visibility: visible; }
html[data-dl-mode="windows"] .hx-dl__l--neutral,
html[data-dl-mode="mac"]     .hx-dl__l--neutral,
html[data-dl-mode="mobile"]  .hx-dl__l--neutral { visibility: hidden; }
html[data-dl-mode="windows"] .hx-dl__l--windows,
html[data-dl-mode="mac"]     .hx-dl__l--mac,
html[data-dl-mode="mobile"]  .hx-dl__l--mobile  { visibility: visible; }

/* Formulario de la sección de descarga: un poco más ancho que antes por la etiqueta más larga */
.hx-dl-form { width: 100%; max-width: 35rem; }
/* Etiqueta del campo de email: "(optional)" en ordenador, "Your email, so we can send the link" en móvil/tablet */
.hx-dl__req { display: none; }
html[data-dl-mode="mobile"] .hx-dl__opt { display: none; }
html[data-dl-mode="mobile"] .hx-dl__req { display: inline; }
/* Aviso solo para móvil/tablet */
.hx-dl-note { display: none; }
html[data-dl-mode="mobile"] .hx-dl-note { display: block; }
/* En móvil/tablet (también un iPad ancho) el campo y el botón van uno encima de otro: la etiqueta larga del email necesita el ancho entero */
html[data-dl-mode="mobile"] .hx-dl-form { flex-direction: column; max-width: 26rem; }
html[data-dl-mode="mobile"] .hx-dl-form .hx-dlb { width: 100%; }

/* ---------- Novedades 1.0.3 (partials/merge/new103.blade.php): pegar enlace + Auto-Fill, capturas reales ---------- */
.hx-new { position: relative; padding: clamp(5rem, 10vw, 8.5rem) 0; border-top: 1px solid var(--hair); overflow: hidden;
  background: radial-gradient(60rem 30rem at 85% 0%, rgba(52, 211, 153, .10), transparent 60%),
              radial-gradient(40rem 26rem at 0% 40%, rgba(198, 161, 91, .07), transparent 65%), var(--ink-2); }
.hx-new__head { max-width: 46rem; }
.hx .hx-new__k { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 1.1rem; }
.hx-new__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(52, 211, 153, .18), 0 0 14px rgba(52, 211, 153, .7); }
.hx-new__h { font-size: clamp(2rem, 4.3vw, 3.25rem); max-width: 22ch; }
.hx .hx-new__lead { margin-top: 1.2rem; color: var(--dim); font-size: clamp(1rem, 1.3vw, 1.12rem); max-width: 40rem; }

.hx-new__hero { margin-top: clamp(2.4rem, 5vw, 3.6rem); display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); align-items: center; }
@media (min-width: 1024px) { .hx-new__hero { grid-template-columns: 17rem 1fr; } }
.hx-new__steps { display: grid; gap: .7rem; counter-reset: none; }
@media (min-width: 640px) and (max-width: 1023px) { .hx-new__steps { grid-template-columns: repeat(3, 1fr); } .hx-new__free { grid-column: 1 / -1; } }
.hx-new__steps li { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--hair); border-radius: var(--r); background: rgba(18, 28, 24, .7); font-weight: 500; }
.hx-new__steps b { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-family: var(--f-mono); font-size: .85rem; color: var(--ink); background: var(--mint); }
.hx-new__steps .hx-new__free { border-color: rgba(198, 161, 91, .45); background: linear-gradient(135deg, rgba(198, 161, 91, .16), rgba(198, 161, 91, .04)); color: #E7CF9B; font-size: .92rem; }
.hx-new__free svg { flex: none; width: 1.25rem; height: 1.25rem; color: var(--brass); margin-inline: .3rem; }

.hx-new__stage { position: relative; }
.hx-new__shot { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(242, 245, 241, .14);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), 0 0 70px -20px rgba(52, 211, 153, .25); }
.hx-new__formwrap { position: relative; margin-top: auto; padding: 0 1.2rem 1.6rem 0; }
.hx-new__formwrap > img:first-child { margin-top: 0; }
.hx-new__tile img.hx-new__card { position: absolute; right: 0; bottom: 0; width: clamp(9rem, 30%, 13rem); height: auto; margin: 0; border: 0; border-radius: 12px;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9), 0 0 0 1px rgba(52, 211, 153, .35), 0 0 34px -6px rgba(52, 211, 153, .45); transform: rotate(-2deg); }

.hx-new__grid { margin-top: clamp(3.5rem, 7vw, 5.5rem); display: grid; gap: 1.1rem; }
@media (min-width: 768px) { .hx-new__grid { grid-template-columns: repeat(2, 1fr); } .hx-new__tile--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .hx-new__grid { grid-template-columns: repeat(3, 1fr); grid-auto-flow: row dense; } .hx-new__tile--wide { grid-column: span 2; } .hx-new__tile--tall { grid-row: span 2; } }
.hx-new__tile { display: flex; flex-direction: column; gap: 1.3rem; padding: clamp(1.3rem, 2.4vw, 1.8rem); border: 1px solid var(--hair); border-radius: 18px;
  background: linear-gradient(180deg, rgba(24, 38, 32, .85), rgba(18, 28, 24, .7)); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.hx-new__tile:hover { border-color: rgba(52, 211, 153, .35); }
.hx-new__tile h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1.2; }
.hx .hx-new__tile p { margin-top: .5rem; color: var(--dim); font-size: .95rem; }
.hx-new__tile img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid rgba(242, 245, 241, .1); margin-top: auto; }
@media (min-width: 1024px) { .hx-new__tile--wide { display: grid; grid-template-columns: 15rem 1fr; align-items: center; } .hx-new__tile--wide img { margin-top: 0; } }
.hx-new__crop { position: relative; margin-top: auto; max-height: 26rem; overflow: hidden; border-radius: 10px; }
.hx-new__crop--short { max-height: 11.5rem; }
.hx-new__crop img { margin-top: 0; }
.hx-new__crop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5rem; background: linear-gradient(to bottom, transparent, rgba(18, 28, 24, .98)); pointer-events: none; }
@media (min-width: 1024px) { .hx-new__tile--tall .hx-new__crop { margin-top: 0; flex: 1 1 0; min-height: 20rem; max-height: none; } }

.hx-new__nums { margin-top: 1.1rem; display: grid; gap: 1px; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--hair); }
@media (min-width: 768px) { .hx-new__nums { grid-template-columns: repeat(3, 1fr); } }
.hx-new__nums > div { display: flex; flex-direction: column; gap: .3rem; padding: 1.4rem 1.5rem; background: var(--ink); }
.hx-new__nums small { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.hx-new__nums b { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.02em; color: var(--mint); line-height: 1.1; }
.hx-new__nums span { color: var(--dim); font-size: .88rem; }
.hx .hx-new__also { margin-top: 2rem; max-width: 52rem; color: var(--dim); }
.hx-new__also b { color: var(--ivory); font-weight: 600; }
.hx .hx-new__fine { margin-top: .9rem; max-width: 52rem; font-size: .8rem; color: rgba(143, 163, 154, .75); }
@media (prefers-reduced-motion: reduce) { .hx-new__card { transform: none; } }
@media (max-width: 639px) { .hx-new__formwrap { padding: 0 .4rem 1.2rem 0; } .hx-new__tile img.hx-new__card { width: 9.5rem; } }
@media (min-width: 1024px) { .hx-new__tile--filter { grid-column: span 2; } .hx-new__tile--form { grid-template-columns: 15rem 1fr; } }
