/* Fonts: self-hosted Google Fonts files (Geist v5 is variable, one file covers 400–700). Latin subset + a separate "№" file,
   which Google only ships in its cyrillic subset; → and ↗ are in no subset and fall back to system-ui, same as with Google */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/wp-content/themes/desnudar/fonts/geist-v5-latin.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/wp-content/themes/desnudar/fonts/geist-v5-numero.woff2)
    format("woff2");
  unicode-range: U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/desnudar/fonts/jetbrains-mono-v24-latin.woff2)
    format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/wp-content/themes/desnudar/fonts/jetbrains-mono-v24-numero.woff2)
    format("woff2");
  unicode-range: U+2116;
}

:root {
  --bg: #100c12;
  --text: #fff7fb;
  --text-2: #e5d8e1;
  --muted: #b6a6b1;
  --dim: #a594a0; /* Small muted text stays readable over the dark page backdrop. */
  --pink: #f472b6;
  /* Raspberry and blush on warm charcoal. Legacy token names remain for the shared theme;
     pale pink links keep small text readable on the dark surfaces. */
  --link: #f9a8d4;
  --violet: #e879f9;
  --cyan: #fb7185;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(25, 15, 23, 0.7);
  --font: Geist, system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Base */
html {
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
* {
  box-sizing: border-box;
}
a {
  color: var(--text);
  text-decoration: none;
}
/* :where() keeps this at element specificity, so any class that sets a colour wins — same as inline colours did in the design */
a:where(:hover) {
  color: var(--pink);
}
button {
  font-family: inherit;
}
em {
  font-style: normal;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
h1,
h2,
h3 {
  font-weight: 600;
}
/* Links in running text: pink + 600, so they don't rely on colour alone (WCAG 1.4.1) and are visible at all.
   Scoped to the text elements, not to the sections that happen to hold them: naming sections (.kw-sec, .use-box…)
   meant every new block on the home page silently reverted its links to --text. Prose lives in <p> — plus the two
   prose blocks that are not a <p>: the FAQ answer and the rules list, where the link sits inside a sentence.
   Lists of links stay out on purpose (nav, .toc, .footer-col, .index-list, .side-list): there the <a> IS the item.
   :where() keeps this at element specificity, so any component that sets its own colour still wins over it. */
:where(p, .faq-a, .rules li) a {
  color: var(--link);
  font-weight: 600;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}
:where(p, .faq-a, .rules li) a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
}
.wrap {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}
main {
  position: relative;
  z-index: 1;
}

/* Reveal on scroll: hidden state only exists once script.js adds .js-reveal */
.reveal {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
html.js-reveal .reveal:not(.shown) {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes fogA {
  0% {
    transform: translate(-10%, -5%) scale(1);
  }
  50% {
    transform: translate(8%, 10%) scale(1.15);
  }
  100% {
    transform: translate(-10%, -5%) scale(1);
  }
}
@keyframes fogB {
  0% {
    transform: translate(10%, 5%) scale(1.1);
  }
  50% {
    transform: translate(-6%, -8%) scale(0.95);
  }
  100% {
    transform: translate(10%, 5%) scale(1.1);
  }
}
@keyframes fogC {
  0% {
    transform: translate(0, 10%) scale(1);
  }
  50% {
    transform: translate(-8%, -4%) scale(1.2);
  }
  100% {
    transform: translate(0, 10%) scale(1);
  }
}
@keyframes grain {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-1%, 1%);
  }
  50% {
    transform: translate(1%, -1%);
  }
  75% {
    transform: translate(-1%, -1%);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Per-app accents */
.hue-1 {
  --hue: #f472b6;
  --glow: rgba(244, 114, 182, 0.45);
  --sa: #2b1422;
  --sb: #21101b;
}
.hue-2 {
  --hue: #fb7185;
  --glow: rgba(251, 113, 133, 0.4);
  --sa: #2b151c;
  --sb: #211016;
}
.hue-3 {
  --hue: #f9a8d4;
  --glow: rgba(249, 168, 212, 0.4);
  --sa: #2c1a24;
  --sb: #22141c;
}
.hue-4 {
  --hue: #f0abfc;
  --glow: rgba(240, 171, 252, 0.4);
  --sa: #2b172d;
  --sb: #221323;
}
.hue-5 {
  --hue: #fda4af;
  --glow: rgba(253, 164, 175, 0.35);
  --sa: #2c1920;
  --sb: #22131a;
}
.hue-6 {
  --hue: #fda4af;
  --glow: rgba(253, 164, 175, 0.35);
  --sa: #2a1b20;
  --sb: #201418;
}

/* Shared bits */
.label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.label-pink {
  color: var(--pink);
}
.label-violet {
  color: var(--violet);
}
.label-cyan {
  color: var(--cyan);
}
.label-rose {
  color: #f9a8d4;
}
.sec-title {
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
}
.sec-title em {
  color: var(--muted);
}
.chapter::before,
.essay::before,
.method::before {
  content: "";
  position: absolute;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s,
    background 0.2s;
}
.btn-lg {
  padding: 16px 26px;
  font-size: 15px;
}
.btn-md {
  padding: 15px 24px;
  font-size: 14.5px;
}
.btn-sm {
  padding: 14px 22px;
  font-size: 14.5px;
}
.btn-light {
  background: var(--pink);
  color: var(--bg);
  font-weight: 600;
  border: 0;
}
.btn-light:hover {
  color: var(--bg);
  box-shadow: 0 20px 50px var(--glow);
}
.btn-glass {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(16, 12, 18, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-weight: 500;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn-line {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
.btn-line:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* Flecha decorativa del CTA: en CSS y no en el texto del enlace, para que no entre en el markdown
   ni en el nombre accesible. ↗ sale del sitio, ↓ baja en la misma página, → pasa a otra.
   .pill y .path-cta ya usaban ::after para su área de clic; ahí el área se muda a ::before, que al
   ser una caja absoluta no depende del orden en el DOM. */
.tool-cta::after,
.callout-cta::after,
.pill::after,
.ch-actions .btn-light::after {
  content: "↗";
}
.bmenu-cta::after,
.hero-ctas .btn-lg.btn-light::after {
  content: "↓";
}
.path-cta::after {
  content: "→";
}
.panel-link::after,
.essay-links .text-link::after {
  content: "→";
}
.callout-cta::after,
.pill::after,
.panel-link::after,
.essay-links .text-link::after {
  margin-left: 0.35em;
}

/* Warm charcoal backdrop with a fine grid and soft raspberry light at the edges. */
.fog {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(145deg, #170f16 0%, #0f0b10 55%, #191117 100%);
}
.fog::before,
.fog::after {
  content: "";
  position: absolute;
  inset: 0;
}
.fog::before {
  background-image:
    linear-gradient(rgba(172, 133, 158, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172, 133, 158, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.3));
  mask-image: linear-gradient(#000, rgba(0, 0, 0, 0.3));
}
.fog::after {
  background:
    radial-gradient(
      ellipse 80% 55% at 0% 0%,
      rgba(190, 52, 111, 0.1),
      transparent 65%
    ),
    radial-gradient(
      ellipse 65% 60% at 100% 100%,
      rgba(211, 83, 138, 0.04),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 30% at 50% 80%,
      rgba(157, 72, 134, 0.03),
      transparent 75%
    );
}
.fog > div {
  display: none;
}

/* Header */
/* The blur lives on ::before: backdrop-filter on the header itself would make it the containing block for the fixed burger panel */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
.header-bar {
  position: relative;
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover,
.footer-logo:hover {
  color: var(--text);
}
.logo-mark {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
/* width:max-content porque el menú es absoluto con left:50%: sin él, el ancho disponible que el
   navegador le asigna es solo el que queda del centro al borde, y los siete puntos se comprimían y
   partían en dos líneas entre 1001 y 1279 px. Con max-content mide lo que mide su texto. */
.nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 38px;
  font-size: 13.5px;
  width: max-content;
}
.nav a {
  color: var(--text);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-cta {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    transform 0.25s var(--ease),
    background 0.2s;
}
.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
/* Burger (where the nav is hidden): <details> + full-screen panel that slides in from the right, items stagger in.
   Hidden state only with JS (html.js), so without JS the native <details> still opens a visible menu */
.burger {
  display: none;
}
.burger > summary {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background 0.22s,
    border-color 0.22s;
}
.burger > summary::-webkit-details-marker {
  display: none;
}
.burger > summary:hover,
.burger[open] > summary {
  background: rgba(255, 255, 255, 0.12);
}
.burger-ic {
  position: relative;
  width: 20px;
  height: 20px;
}
.burger-ic svg {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.burger .ic-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}
.burger[open] .ic-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}
.burger[open] .ic-close {
  opacity: 1;
  transform: none;
}
.logo,
.burger > summary {
  position: relative;
  z-index: 3;
}
.burger-menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: calc(var(--hh, 79px) + 4px) 0 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      78% 42% at 88% 0%,
      rgba(232, 121, 249, 0.16) 0%,
      transparent 68%
    ),
    radial-gradient(
      64% 38% at 4% 100%,
      rgba(244, 114, 182, 0.12) 0%,
      transparent 70%
    ),
    #160d15;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.7, 0.4),
    opacity 0.28s cubic-bezier(0.4, 0, 0.7, 0.4);
}
html.js .burger-menu:not(.is-open) {
  transform: translateX(64px);
  opacity: 0;
}
.burger-menu.is-open {
  transition:
    transform 0.46s cubic-bezier(0.2, 0.8, 0.25, 1),
    opacity 0.46s ease;
}
.burger-menu.is-open .bmenu-nav > *,
.burger-menu.is-open .bmenu-cta {
  animation: bitem-in 0.44s cubic-bezier(0.22, 0.9, 0.3, 1) both;
}
.bmenu-nav > :nth-child(1) {
  animation-delay: 110ms;
}
.bmenu-nav > :nth-child(2) {
  animation-delay: 138ms;
}
.bmenu-nav > :nth-child(3) {
  animation-delay: 166ms;
}
.bmenu-nav > :nth-child(4) {
  animation-delay: 194ms;
}
.bmenu-nav > :nth-child(5) {
  animation-delay: 222ms;
}
.bmenu-nav > :nth-child(6) {
  animation-delay: 250ms;
}
.bmenu-nav > :nth-child(7) {
  animation-delay: 278ms;
}
.bmenu-nav > :nth-child(8) {
  animation-delay: 306ms;
}
.bmenu-nav > :nth-child(9) {
  animation-delay: 334ms;
}
.bmenu-nav > :nth-child(10) {
  animation-delay: 362ms;
}
.bmenu-nav > :nth-child(11) {
  animation-delay: 390ms;
}
.bmenu-nav > :nth-child(12) {
  animation-delay: 418ms;
}
.bmenu-nav > :nth-child(13) {
  animation-delay: 446ms;
}
.bmenu-nav > :nth-child(n + 14) {
  animation-delay: 474ms;
}
.bmenu-cta {
  animation-delay: 500ms;
}
@keyframes bitem-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* lock on html only: overflow on body too would make body the scroller and unstick the header */
html:has(.burger[open]) {
  overflow: hidden;
}
body:has(.burger[open])::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(12, 6, 10, 0.62);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
body:has(.burger-menu.is-open)::after {
  opacity: 1;
  transition: opacity 0.46s ease;
}
.bmenu-nav {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
}
.bmenu-cap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px 20px 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.bmenu-cap::before {
  content: "";
  width: 16px;
  height: 1px;
  flex: none;
  background: var(--pink);
}
.bmenu-cap:first-child {
  padding-top: 4px;
}
.bmenu-nav a {
  padding: 12px 20px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
  transition:
    background 0.18s,
    color 0.18s,
    padding-left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.bmenu-nav a:hover,
.bmenu-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding-left: 26px;
}
.bmenu-nav a[aria-current="page"] {
  color: var(--text);
}
.bmenu-cta {
  margin: auto 20px 0;
  flex: none;
  justify-content: center;
}

/* Hero: photo stays the background on every breakpoint, scrims from the design keep text readable */
.hero {
  position: relative;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
  min-height: calc(100vh - var(--hh, 79px));
  min-height: calc(100svh - var(--hh, 79px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
/* clip-path here as well as on .hero: without it the compositor clips the fixed photo to a whole pixel while
   the scrim is antialiased to the box's fractional bottom, and the row between them leaks ~55% of the photo as
   a bright hairline at the seam. Clipping both in the same layer makes the two edges round identically. */
.hero-bg {
  position: absolute;
  inset: 0;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}
/* Photo is pinned to the viewport (clip-path on .hero clips it to the section), so it stays put natively while the page scrolls over it */
.hero-bg img {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  object-fit: cover;
  object-position: 70% top;
}
/* Pin the homepage photo to the viewport and clip it to the scrolling hero. */
.hero-home .hero-bg {
  inset: 0;
  -webkit-clip-path: inset(0);
  clip-path: inset(0);
}
.hero-home .hero-bg img {
  display: block;
  position: fixed;
  top: 0;
  height: 100vh;
  height: 100svh;
  object-position: center top;
  animation: none;
  transform: none;
}
@media (max-width: 900px) {
  .hero-home .hero-bg img {
    object-position: left top;
  }
}
/* Slow zoom on scroll. Scroll-driven CSS, no JS; browsers without it just skip the zoom */
@supports (animation-timeline: scroll()) {
  .hero-bg img {
    animation: hero-bg linear both;
    animation-timeline: scroll(root);
    animation-range: 0 100vh;
  }
}
@keyframes hero-bg {
  to {
    transform: scale(1.12);
  }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 12, 18, 0.7) 0%, transparent 60%),
    linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.35) 0%,
      rgba(16, 12, 18, 0.1) 40%,
      rgba(16, 12, 18, 0.92) 100%
    );
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 120px 40px 72px;
  animation: rise 0.9s var(--ease) both;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--text-2);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--pink);
}
.hero-title {
  font-size: clamp(56px, 7.5vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 24px 0 0;
  max-width: 12ch;
}
.hero-title em {
  color: var(--pink);
}
.hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 28px 0 0;
  max-width: 745px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
  align-items: center;
}
.hero-ctas .btn-light:hover {
  box-shadow: 0 20px 60px rgba(244, 114, 182, 0.35);
}

/* Center the homepage copy and actions over the open middle of the beach. */
.hero-home {
  align-items: center;
}
.hero-home .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}
.hero-home .kicker,
.hero-home .hero-ctas {
  justify-content: center;
}
.hero-home .hero-title,
.hero-home .hero-lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-home .hero-bg::after {
  position: fixed;
  bottom: auto;
  height: 100vh;
  height: 100svh;
  background:
    radial-gradient(
      ellipse at center,
      rgba(16, 12, 18, 0.65) 0%,
      rgba(16, 12, 18, 0.3) 45%,
      transparent 75%
    ),
    linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.3) 0%,
      rgba(16, 12, 18, 0.45) 40%,
      rgba(16, 12, 18, 0.92) 100%
    );
}
@media (max-width: 640px) {
  .hero-home .hero-inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Index */
.index {
  padding-top: 72px;
  padding-bottom: 40px;
}
.index-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 18px;
}
.index-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.index-list a {
  display: block;
  padding: 22px 18px 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition: padding-left 0.3s var(--ease);
}
.index-list a:hover {
  padding-left: 8px;
  color: var(--text);
}
.index-rank {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hue);
}
.index-name {
  display: block;
  font-weight: 600;
  font-size: 26px;
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.index-badge {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* Featured tool: photo and product details above a separate assessment panel. */
.tool-feature {
  position: relative;
  padding-top: 88px;
  padding-bottom: 88px;
  scroll-margin-top: 32px;
}
.tool-feature + .tool-feature {
  padding-top: 0;
}
.tool-profile {
  overflow: hidden;
  border: 1px solid rgba(178, 146, 166, 0.18);
  border-radius: 32px;
  background: linear-gradient(135deg, #241521, #170f16 65%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}
.tool-profile-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.45fr);
}
.tool-profile-media {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #1d131c;
}
.tool-profile-media picture,
.tool-profile-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tool-profile-media img {
  object-fit: cover;
  object-position: center 25%;
}
.tool-profile-media::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, transparent, rgba(16, 12, 18, 0.78));
  pointer-events: none;
}
.tool-profile-index {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(16, 12, 18, 0.6);
  font-family: var(--mono);
  font-size: 13px;
}
.tool-profile-media-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tool-profile-body {
  min-width: 0;
  padding: clamp(28px, 3.3vw, 52px);
}
.tool-profile-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--link);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tool-profile-eyebrow::before {
  content: "";
  flex: 0 0 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.tool-profile-title {
  margin: 20px 0 0;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1;
  letter-spacing: -0.045em;
}
.tool-profile-tagline {
  max-width: 32ch;
  margin: 16px 0 0;
  color: var(--text-2);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.tool-profile-description {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.75;
}
.tool-profile-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}
.tool-profile-facts > div {
  padding: 16px;
  border: 1px solid rgba(178, 146, 166, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.tool-profile-facts dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tool-profile-facts dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.tool-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}
.tool-profile-date {
  margin: 0;
}
.tool-profile-analysis {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 40px;
  border-top: 1px solid rgba(178, 146, 166, 0.16);
  background: rgba(12, 6, 10, 0.55);
}
.tool-profile-rating {
  padding-right: 28px;
  border-right: 1px solid rgba(178, 146, 166, 0.16);
}
.tool-profile-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tool-profile-rating .score {
  margin-top: 16px;
}
.tool-profile-rating .score-num {
  color: var(--link);
  font-size: 68px;
}
.tool-profile-method {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--text-2);
  font-size: 12px;
}
.tool-profile-method:hover {
  color: var(--link);
}
.tool-profile-criteria {
  min-width: 0;
}
.tool-profile-criteria-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tool-profile-criteria-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.tool-profile-criteria-head > span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.tool-profile-criteria .bars {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 28px;
  margin-top: 22px;
}
.tool-profile-criteria .tool-profile-bars-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.tool-profile-criteria .bar {
  align-items: start;
  gap: 10px 12px;
}
.tool-profile-criteria .bar-label {
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.4;
}
.tool-profile-criteria .bar-w {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}
.tool-profile-criteria .bar-val {
  font-size: 18px;
  line-height: 1.2;
}
.tool-profile-criteria .bar-track {
  height: 4px;
  background: rgba(178, 146, 166, 0.18);
  box-shadow: none;
}
.tool-profile-criteria .bar-fill {
  background: linear-gradient(90deg, var(--pink), var(--link));
}
@media (max-width: 1100px) {
  .tool-profile-analysis {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
  }
  .tool-profile-criteria .bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .tool-feature {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .tool-profile-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-profile-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .tool-profile-body {
    padding: 32px;
  }
}
@media (max-width: 640px) {
  .tool-feature {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .tool-profile {
    border-radius: 24px;
  }
  .tool-profile-media {
    aspect-ratio: 4 / 3;
  }
  .tool-profile-index {
    top: 18px;
    left: 18px;
    width: 40px;
    height: 40px;
  }
  .tool-profile-media-caption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }
  .tool-profile-body {
    padding: 24px 20px;
  }
  .tool-profile-title {
    font-size: clamp(36px, 10vw, 48px);
    overflow-wrap: anywhere;
  }
  .tool-profile-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .tool-profile-facts > div {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: baseline;
    gap: 16px;
    padding: 14px;
  }
  .tool-profile-facts dd {
    margin: 0;
  }
  .tool-profile-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .tool-profile-analysis {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 24px 20px;
  }
  .tool-profile-rating {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 16px;
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(178, 146, 166, 0.16);
  }
  .tool-profile-rating .score {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  .tool-profile-rating .score-num {
    font-size: 52px;
  }
  .tool-profile-method {
    margin: 0;
  }
  .tool-profile-criteria .bars {
    gap: 20px 16px;
  }
}

/* Chapters */
.chapter {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  scroll-margin-top: 40px;
}
.chapter::before {
  left: 0;
  right: 0;
}
.index + .chapter::before {
  content: none;
}
.ch-text,
.ch-visual {
  position: relative;
}
.ch-flip .ch-text {
  order: 2;
}
.ch-flip .ch-visual {
  order: 1;
}
.ch-text > * {
  position: relative;
}
.ch-text > .ch-rank {
  position: absolute;
  left: -16px;
  top: -120px;
  font-weight: 600;
  font-size: 240px;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.ch-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hue);
}
.ch-kicker::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.ch-title {
  font-size: clamp(48px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 22px 0 0;
}
.ch-title em {
  color: var(--muted);
  font-size: 0.62em;
}
.ch-verdict {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 28px 0 0;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 24px;
  margin: 34px 0 0;
}
.facts dt,
.tool-facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.facts dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
}
.ch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  align-items: center;
}

/* Chapter visual: photo with the score and the six bars laid over it.
   La ficha se dibuja como columna en flujo, no con el bloque en absoluto: así aspect-ratio actúa de
   mínimo —4:3 cuando el contenido cabe— y la caja crece si las seis barras piden más alto, en vez de
   desbordar por arriba y quedar recortadas por el overflow:hidden. */
.ch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4/3;
  width: 100%;
  background: repeating-linear-gradient(
    135deg,
    var(--sa) 0 12px,
    var(--sb) 12px 24px
  );
  box-shadow:
    0 60px 120px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
.ch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 50% at 50% 100%, var(--glow), transparent 70%),
    linear-gradient(180deg, rgba(16, 12, 18, 0.1), rgba(16, 12, 18, 0.85) 85%);
}
.ch-card picture {
  position: absolute;
  inset: 0;
}
.ch-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
}
.ch-card::before {
  z-index: 1;
}
/* Sin velo ni panel bajo el bloque: decisión del propietario, la foto se ve entera. La legibilidad
   pasa de la caja a la letra —contorno corto y denso, que oscurece el perfil del glifo y no el
   fotograma—. Ojo: WCAG 1.4.3 mide el color del fondo, y la sombra no cuenta para esa medida;
   lo que sostiene la cifra aquí es el contraste real contra el píxel que toca la letra. */
.ch-score {
  position: relative;
  z-index: 2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 0 4px rgba(0, 0, 0, 1),
    0 0 10px rgba(0, 0, 0, 0.92),
    0 0 22px rgba(0, 0, 0, 0.7);
}
.score {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.score-num {
  font-weight: 600;
  font-size: clamp(72px, 7vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.score-of {
  color: var(--muted);
  font-size: 15px;
}
/* Fecha de revisión de la ficha, debajo del botón y no sobre la foto: --dim no llega a 4.5:1 encima de una imagen */
.ch-date {
  margin: 14px 0 0;
}

/* Desglose de transparencia, sobre la foto y debajo de la nota. Sin titular ni pie dentro de la
   ficha: la frase que impide leer las seis barras como el despiece del número está una sola vez en
   la página, en el p.ranked-note que abre el escaparate. */
.bars {
  display: grid;
  gap: 11px;
  margin-top: 22px;
}
/* Etiqueta y cifra en una línea, la barra debajo a todo el ancho: «Reglas de uso y consentimiento» no
   cabe en una columna estrecha a 390px */
.bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 7px 14px;
  font-size: 12.5px;
}
.bar-label {
  color: var(--muted);
}
.bar-w {
  color: var(--dim);
}
.bar-val {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
/* Dos estados que no se pueden confundir:
   0            — comprobado, el servicio no publica nada de ese criterio. Lleva carril, vacío, y la cifra.
   sin comprobar — no había documento que leer. Esa fila no se dibuja: se resume en .bars-na, debajo.
   --muted y no --dim: la línea va sobre la foto, sin fondo, y --dim ya no llega. */
.bars-na {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 14px 0 0;
}
/* Un filete de 2px blanco al 14 % desaparece sobre agua o arena; el aro oscuro lo recorta contra el
   fotograma claro y no se nota sobre el oscuro, donde manda el propio filete. El aro va en el carril
   y vale para los dos tramos: el relleno blanco queda dentro, recortado por su overflow */
.bar-track {
  grid-column: 1/-1;
  display: block;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.6);
}
.bar-fill {
  display: block;
  height: 100%;
  background: var(--text);
  transition: width 1.4s var(--ease);
}
/* Anchura = valor × 10.
   ponytail: una clase por valor publicado; añadir la clase que falte al cambiar un valor, o pasar a
   attr() tipado cuando esté en los tres motores */
.w-0 {
  width: 0;
}
.w-17 {
  width: 17%;
}
.w-33 {
  width: 33%;
}
.w-50 {
  width: 50%;
}
.w-67 {
  width: 67%;
}
.w-75 {
  width: 75%;
}
.w-83 {
  width: 83%;
}
.w-100 {
  width: 100%;
}
/* Arrancan en cero y crecen cuando el bloque entra en pantalla: reutiliza el .reveal/.shown del script,
   sin observador propio. Con prefers-reduced-motion no hay .js-reveal y las barras salen ya llenas */
html.js-reveal .bars:not(.shown) .bar-fill {
  width: 0;
  transition: none;
}

/* Essay */
.essay {
  position: relative;
  padding-top: 140px;
  padding-bottom: 40px;
}
.essay::before,
.method::before {
  left: 40px;
  right: 40px;
}
.essay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 56px;
  align-items: start;
}
/* Sticky only while the aside sits beside its text: below 1152px the grids wrap to one column and a sticky aside would ride over the text */
@media (min-width: 1152px) {
  .essay-aside,
  .faq-intro {
    position: sticky;
    top: 100px;
  }
}
.essay-title {
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.02;
  margin-top: 20px;
}
.byline {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--dim);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}
.essay-body {
  grid-column: span 2 / auto;
}
.essay-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 24px 0 0;
}
.essay-body .essay-lede {
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}
.essay-body .essay-lede + p {
  margin-top: 32px;
}
.essay-body blockquote {
  margin: 40px 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--pink);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}
.essay-body blockquote + p {
  margin-top: 0;
}
.essay-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  align-items: center;
}
.text-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--link);
}
.text-link:hover {
  color: var(--text);
}

/* Method */
.method {
  position: relative;
  padding-top: 140px;
  padding-bottom: 100px;
}
.method-heading {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.method-title {
  font-size: clamp(40px, 4.2vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 20px 0 0;
  text-wrap: balance;
}
.method-lead {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 24px auto 0;
}
.method-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 48px;
  margin-top: 48px;
  padding: 48px 40px;
  border: 1px solid rgba(178, 146, 166, 0.15);
  border-radius: 32px;
  background:
    radial-gradient(
      ellipse at 0% 50%,
      rgba(244, 114, 182, 0.08),
      transparent 55%
    ),
    linear-gradient(140deg, rgba(34, 20, 30, 0.96), rgba(20, 12, 18, 0.98));
}
.method-distribution {
  min-width: 0;
  text-align: center;
}
.method-distribution-label {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--text-2);
}
.method-chart {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.method-ring {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
}
.method-ring-outline {
  stroke: rgba(178, 146, 166, 0.12);
  stroke-width: 1;
}
.method-ring-track {
  stroke: rgba(178, 146, 166, 0.08);
  stroke-width: 22;
}
.method-ring-segment {
  stroke: var(--criterion-color);
  stroke-width: 22;
}
.method-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.method-chart-center strong {
  font-size: clamp(56px, 5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}
.method-chart-center strong span {
  margin-left: 4px;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--muted);
}
.method-chart-center > span {
  font-size: 12px;
  color: var(--muted);
}
.method-distribution-caption {
  margin: 28px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.criteria {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.criteria li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--criterion-color);
}
.criterion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.crit-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.crit-w {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--criterion-color);
}
.crit-w span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--muted);
}
.crit-name {
  margin: 0;
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.crit-desc {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.65;
}
.criterion-01 {
  --criterion-color: #f472b6;
}
.criterion-02 {
  --criterion-color: #f0abfc;
}
.criterion-03 {
  --criterion-color: #fb7185;
}
.criterion-04 {
  --criterion-color: #fce7f3;
}
.criterion-05 {
  --criterion-color: #fda4af;
}
.criterion-06 {
  --criterion-color: #c08497;
}

@media (max-width: 1100px) {
  .method-board {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding: 36px;
  }
  .method-chart {
    max-width: 280px;
  }
  .method-distribution-label {
    margin-bottom: 20px;
  }
  .method-distribution-caption {
    margin-top: 20px;
  }
  .criteria {
    padding-top: 32px;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 640px) {
  .method-heading .method-title {
    font-size: clamp(32px, 8.5vw, 40px);
  }
  .method-lead {
    font-size: 15px;
    margin-top: 20px;
  }
  .method-board {
    gap: 32px;
    margin-top: 32px;
    padding: 28px 22px;
    border-radius: 24px;
  }
  .method-chart {
    max-width: 240px;
  }
  .method-chart-center strong {
    font-size: 56px;
  }
  .method-chart-center strong span {
    font-size: 20px;
  }
  .method-chart-center > span {
    font-size: 11px;
  }
  .criteria {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
  }
  .crit-name {
    font-size: 20px;
  }
}

/* Trust */
.trust {
  padding-top: 40px;
  padding-bottom: 120px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 16px;
}
.panel {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border-radius: 28px;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
}
.panel::before {
  content: "";
  position: absolute;
  right: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
}
.panel-privacy::before {
  bottom: -140px;
  background: radial-gradient(
    closest-side,
    rgba(251, 113, 133, 0.22),
    transparent
  );
}
.panel-use::before {
  top: -140px;
  background: radial-gradient(
    closest-side,
    rgba(244, 114, 182, 0.22),
    transparent
  );
}
.panel-title {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.panel-text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 0;
}
.badges {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.badges li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251, 113, 133, 0.3);
  font-size: 12.5px;
  color: var(--text-2);
}
.rules {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
}
/* Not flex: any inline element inside the text (a link, em) would become its own flex item
   and break the paragraph into columns. Absolute dash keeps the text one flow */
.rules li {
  position: relative;
  padding-left: 24px;
}
.rules li::before {
  content: "—";
  content: "—"/"";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
}
.panel-link {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
}
.panel-use .panel-link {
  color: var(--pink);
}
.panel-link:hover,
.panel-use .panel-link:hover {
  color: var(--text);
}

/* Where to start */
.start {
  padding-top: 0;
  padding-bottom: 140px;
}
.start-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.start-title {
  font-size: clamp(40px, 4.6vw, 64px);
}
.start-note {
  font-size: 14px;
  color: var(--dim);
  max-width: 320px;
  line-height: 1.55;
}
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: 40px;
}
.path-cyan {
  --hue: #fb7185;
  --glow: rgba(251, 113, 133, 0.22);
}
.path-rose {
  --hue: #f9a8d4;
  --glow: rgba(249, 168, 212, 0.22);
}
.path-pink {
  --hue: #f472b6;
  --glow: rgba(244, 114, 182, 0.22);
}
/* After .reveal on purpose: the design's inline transition replaced the reveal one on these cards */
.path {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  padding: 32px;
  border-radius: 26px;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  color: var(--text);
  transition:
    transform 0.35s var(--ease),
    border-color 0.3s;
}
.path:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}
.path::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
/* z-index en vez de position:relative para levantar el texto por encima del halo de .path::before.
   Ambos son flex items, así que el z-index les vale sin posicionarlos — y al no posicionarlos, el
   bloque contenedor del estirador de abajo sigue siendo .path y no .path-body. */
.path-kicker {
  z-index: 1;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hue);
}
.path-body {
  z-index: 1;
}
.path-q {
  display: block;
  margin: 0;
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.path-a {
  display: block;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}
/* El enlace envuelve solo su propio texto: así el nombre accesible son tres palabras y no la tarjeta
   entera. El ::before devuelve el área de clic a toda la tarjeta sin meter el texto dentro del <a>
   (::after lleva la flecha). */
.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.path-cta::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* FAQ. Without JS every answer is open; script.js collapses panels via aria-hidden */
.faq {
  position: relative;
  padding-top: 0;
  padding-bottom: 140px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 56px;
  align-items: start;
}
.faq-title {
  font-size: clamp(40px, 4.6vw, 64px);
}
.faq-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 22px 0 0;
}
.faq-list {
  grid-column: span 2 / auto;
  display: grid;
  counter-reset: faq;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  counter-increment: faq;
}
.faq-item h3 {
  margin: 0;
}
.faq-q {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr 32px;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  transition: color 0.3s;
}
.faq-n::before {
  content: counter(faq, decimal-leading-zero);
}
.faq-text {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.35s var(--ease),
    background 0.3s;
}
.faq-q[aria-expanded="true"] .faq-n {
  color: var(--cyan);
}
.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: rgba(255, 255, 255, 0.1);
}
.faq-panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-panel[aria-hidden="true"] {
  grid-template-rows: 0fr;
}
.faq-clip {
  overflow: hidden;
  min-height: 0;
}
.faq-a {
  padding: 0 52px 28px 68px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  transition:
    opacity 0.35s ease,
    transform 0.45s var(--ease);
}
.faq-panel[aria-hidden="true"] .faq-a {
  opacity: 0;
  transform: translateY(-8px);
}

/* Home FAQ: a full-width accordion beneath a compact introduction. */
.faq-home .faq-grid {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
}
.faq-home .faq-intro {
  position: relative;
  top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.faq-home .label {
  color: var(--link);
}
.faq-home .faq-title {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.faq-home .faq-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}
.faq-count {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 7px 12px 7px 7px;
  border: 1px solid rgba(178, 146, 166, 0.16);
  border-radius: 10px;
  color: var(--muted);
  font-size: 12px;
}
.faq-count > span {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(244, 114, 182, 0.12);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--link);
}
.faq-home .faq-list {
  grid-column: auto;
  gap: 12px;
}
.faq-home .faq-item {
  overflow: hidden;
  border: 1px solid rgba(178, 146, 166, 0.16);
  border-radius: 18px;
  background: rgba(26, 16, 23, 0.9);
}
.faq-home .faq-q {
  grid-template-columns: 36px minmax(0, 1fr) 38px;
  gap: 20px;
  padding: 22px 26px;
  transition: background 0.3s;
}
.faq-home .faq-q:hover {
  background: rgba(244, 114, 182, 0.05);
}
.faq-home .faq-q:focus-visible {
  outline-offset: -4px;
  border-radius: 17px;
}
.faq-home .faq-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(178, 146, 166, 0.18);
  border-radius: 9px;
  font-size: 11px;
  transition:
    color 0.3s,
    background 0.3s,
    border-color 0.3s;
}
.faq-home .faq-text {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
}
.faq-home .faq-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border-color: rgba(178, 146, 166, 0.18);
  color: var(--muted);
}
.faq-home .faq-icon svg {
  width: 16px;
  height: 16px;
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.faq-home .faq-q[aria-expanded="true"] {
  background: rgba(244, 114, 182, 0.08);
}
.faq-home .faq-q[aria-expanded="true"] .faq-n {
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.13);
  color: var(--link);
}
.faq-home .faq-q[aria-expanded="true"] .faq-icon {
  transform: none;
  border-color: rgba(244, 114, 182, 0.35);
  background: rgba(244, 114, 182, 0.13);
  color: var(--link);
}
.faq-home .faq-q[aria-expanded="true"] .faq-icon svg {
  transform: rotate(45deg);
}
.faq-home .faq-panel {
  background: rgba(244, 114, 182, 0.08);
}
.faq-home .faq-a {
  padding: 0 84px 28px 82px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2);
}
@media (max-width: 900px) {
  .faq-home .faq-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .faq-home .faq-lead {
    max-width: 600px;
  }
}
@media (max-width: 640px) {
  .faq-home .faq-intro {
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
  }
  .faq-home .faq-title {
    font-size: clamp(32px, 8.5vw, 40px);
  }
  .faq-home .faq-count {
    margin-top: 16px;
  }
  .faq-home .faq-list {
    gap: 10px;
  }
  .faq-home .faq-item {
    border-radius: 16px;
  }
  .faq-home .faq-q {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 12px;
    padding: 18px 16px;
  }
  .faq-home .faq-n,
  .faq-home .faq-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .faq-home .faq-text {
    font-size: 16px;
    line-height: 1.45;
  }
  .faq-home .faq-a {
    padding: 0 18px 22px 58px;
    font-size: 14px;
    line-height: 1.75;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(16, 12, 18, 0.6);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.footer-grid {
  padding-top: 72px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 44px 32px;
}
.footer-brand {
  grid-column: span 2 / auto;
  min-width: 240px;
}
.footer-logo {
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 300px;
}
.tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.tag {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.tag-pink {
  border-color: rgba(244, 114, 182, 0.4);
  color: var(--pink);
}
.footer-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 400;
  margin: 0 0 18px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.footer-col li {
  display: flex;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text);
}
/* hover: a short pink dash slides in and nudges the label, same motif as the kickers */
.footer-col a::before {
  content: "";
  flex: none;
  align-self: flex-start;
  margin-top: 0.75em;
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--pink);
  transition:
    width 0.3s var(--ease),
    margin-right 0.3s var(--ease);
}
@media (hover: hover) {
  .footer-col a:hover::before {
    width: 12px;
    margin-right: 8px;
  }
}
.footer-col a:focus-visible::before {
  width: 12px;
  margin-right: 8px;
}
.footer-bottom {
  padding-top: 22px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 12.5px;
  color: var(--dim);
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: block;
  }
  .chapter {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .ch-text > .ch-rank {
    font-size: 120px;
    top: -100px;
  }
  /* one column: every chapter opens with its photo, then its text */
  .chapter .ch-visual {
    order: -1;
    z-index: 1;
  }
}
@media (max-width: 640px) {
  /* text spans the full width on phones, so the side scrim does not reach it: darken the whole photo, keep the face readable up top */
  .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.35) 0%,
      rgba(16, 12, 18, 0.5) 30%,
      rgba(16, 12, 18, 0.72) 60%,
      rgba(16, 12, 18, 0.94) 100%
    );
  }
  .nav-cta {
    display: none;
  }
  /* 3 columns leave ~100px each on a 390px screen: a 29-char value breaks over 3 lines */
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .wrap,
  .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero-inner {
    padding: 48px 0 40px;
  }
  .hero-title {
    font-size: 54px;
  }
  /* tighter vertical rhythm on phones: desktop 120–140px section gaps read as empty screens */
  /* The index duplicates the five chapters that follow it and the burger list; on a phone it is scroll, not navigation */
  .index {
    display: none;
  }
  .chapter {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .essay {
    padding-top: 64px;
    padding-bottom: 24px;
  }
  .method {
    padding-top: 64px;
    padding-bottom: 48px;
  }
  .trust {
    padding-top: 24px;
    padding-bottom: 64px;
  }
  .start,
  .faq {
    padding-bottom: 64px;
  }
  .essay-grid,
  .faq-grid {
    gap: 32px;
  }
  .ch-card {
    aspect-ratio: auto;
    min-height: 380px;
  }
  .ch-title,
  .sec-title {
    font-size: 40px;
  }
  .index-list {
    grid-template-columns: 1fr 1fr;
  }
  /* 44px padding on a 390px screen leaves ~300px of text column */
  .panel {
    padding: 28px 22px;
  }
  .panel-title {
    font-size: 32px;
  }
  /* design bug fix: span 2 in a one-column grid adds an implicit column + 56px gap and pushed the text 21–41px off-screen at 375 */
  .essay-body,
  .faq-list {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img {
    position: absolute;
    top: 0;
    height: 100%;
  }
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==== Inner pages: /free-tools/ and /privacy-guide/ (.page.kw) ==== */
/* Chrome: the inner-page designs use a smaller logo, a shorter footer top, two fog blobs and hide the nav at 1000 */
.kw .logo {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.kw .footer-grid {
  padding-top: 64px;
}
.fog-tools .fog-a {
  background: radial-gradient(
    closest-side,
    rgba(232, 121, 249, 0.22),
    transparent 70%
  );
}
.fog-tools .fog-b {
  top: 20%;
  background: radial-gradient(
    closest-side,
    rgba(249, 168, 212, 0.16),
    transparent 70%
  );
}
.fog-guide .fog-a {
  top: 10%;
  background: radial-gradient(
    closest-side,
    rgba(251, 113, 133, 0.14),
    transparent 70%
  );
}
.fog-guide .fog-b {
  top: 40%;
  background: radial-gradient(
    closest-side,
    rgba(232, 121, 249, 0.18),
    transparent 70%
  );
}

/* Hero */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}
.crumbs a {
  color: var(--dim);
}
.crumbs [aria-current] {
  color: var(--muted);
}
.kw-hero {
  padding-top: 72px;
  padding-bottom: 56px;
  animation: rise 0.9s var(--ease) both;
}
.kw-title {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 28px 0 0;
  max-width: 16ch;
}
.kw-title em {
  color: var(--muted);
}
.kw-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
  max-width: 640px;
}
.kw-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 16px 28px;
  font-size: 13px;
  color: var(--dim);
}
.kw-meta .by {
  color: var(--text-2);
}
/* Guide hero reuses the homepage .hero/.hero-bg: whatever sits in .hero-bg stays a full-bleed background with the scrim on top */
.hero-guide {
  min-height: 70vh;
  min-height: 70svh;
}
/* Two scrims: the horizontal one carries the text side, the vertical one hands the photo over to the page background */
/* El stop superior es 0.75 y no 0.55 por contraste: las migas viven en esa franja y con fotos claras
   no llegaban a 4.5:1. Sube también el texto del h1 y del lead, que están en la misma zona. */
.hero-guide .hero-bg::after {
  background:
    linear-gradient(
      90deg,
      rgba(16, 12, 18, 0.82) 0%,
      rgba(16, 12, 18, 0.45) 45%,
      rgba(16, 12, 18, 0.15) 75%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.75),
      rgba(16, 12, 18, 0.35) 40%,
      rgba(16, 12, 18, 0.96)
    );
}
/* Narrow screens: text runs full width, so the side scrim would only mute the photo */
@media (max-width: 640px) {
  /* The pinned photo is fixed and 100vh tall, so a hero taller than that leaves its bottom on the fog.
     Page bg behind it covers the box at any content height; the scrim ends opaque so the seam matches the section below */
  .hero-guide .hero-bg {
    background: var(--bg);
  }
  .hero-guide .hero-bg::after {
    background: linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.75),
      rgba(16, 12, 18, 0.45) 35%,
      #100c12
    );
  }
}
.hero-guide .hero-inner {
  padding-bottom: 64px;
}
/* Service and trust pages get no decorative photo: no .hero-bg means no scrim either, so the 70svh
   floor would only reserve an empty dark block. Drop it and let the text set the height. */
.hero-plain {
  min-height: 0;
}
.hero-plain .hero-inner {
  padding-top: clamp(48px, 6vw, 72px);
}
.hero-ph {
  display: flex;
  justify-content: flex-end;
  padding: 24px;
  background: repeating-linear-gradient(
    135deg,
    #2b151c 0 14px,
    #211016 14px 28px
  );
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}
/* Over the photo --muted tops out at ~3.4:1; small text needs 4.5:1, so both steps move up one shade */
.hero-guide .crumbs,
.hero-guide .crumbs a {
  color: var(--text);
}
.hero-guide .crumbs [aria-current] {
  color: var(--text);
}
.hero-guide .kw-title {
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.96;
  margin-top: 24px;
  max-width: 15ch;
}
.hero-guide .kw-title em {
  color: var(--cyan);
}
/* Collection hero carries a lead the guide hero does not; .kw-lead ships with margin:0 for the flat 404 hero */
.hero-guide .kw-lead {
  margin-top: 28px;
  max-width: 680px;
}
.hero-guide .kw-meta {
  justify-content: start;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero-guide .kw-meta .by {
  color: var(--text);
}
/* Center the collection template in the space below its overlaid header. */
.hero-guide.hero-centered {
  align-items: center;
}
.hero-centered .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: calc(var(--hh, 79px) + 48px);
  padding-bottom: 48px;
  text-align: center;
}
.hero-centered .crumbs,
.hero-centered .kw-meta {
  justify-content: center;
}
.hero-centered .kw-title,
.hero-centered .kw-lead {
  margin-left: auto;
  margin-right: auto;
}
.hero-centered .kw-meta {
  max-width: 880px;
}
.hero-centered .hero-bg::after {
  background:
    radial-gradient(
      ellipse at center,
      rgba(16, 12, 18, 0.6) 0%,
      rgba(16, 12, 18, 0.3) 55%,
      transparent 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 12, 18, 0.5) 0%,
      rgba(16, 12, 18, 0.35) 45%,
      #100c12 100%
    );
}
.crumbs a:hover,
.hero-guide .crumbs a:hover {
  color: var(--text);
}

/* Article + sticky sidebar */
.kw-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 64px;
  align-items: start;
  padding-bottom: 120px;
}
.guide-layout {
  padding-top: 56px;
}
.kw-main {
  min-width: 0;
}
/* design only set this on the long-form sections; #ranked and #faq landed under the sticky header */
.kw-main [id] {
  scroll-margin-top: 100px;
}
.kw-h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.guide-layout .kw-h2 {
  font-size: clamp(28px, 2.8vw, 44px);
}
.kw-sec {
  margin-top: 72px;
}
.kw-sec-lg {
  margin-top: 80px;
}
.kw-sec p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-2);
  margin: 18px 0 0;
}
.kw-sec .kw-h2 + p {
  margin-top: 22px;
}
/* Prose subheading, direct child only: the base h3 lands at 18.7px, 1.7px over the body text, and reads as a bold
   paragraph. Child combinator on purpose — the FAQ and the tool cards also put an h3 inside .kw-sec, nested, and
   those carry their own margin:0. A descendant selector here silently pushes every FAQ row down by 40px. */
.kw-sec > h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 40px 0 0;
}
/* Swatches, one per tool: two callouts on the same page must not wear the same gradient, or the
   colour code stops coding anything. mark-ainudez keeps the gradient pulled from the AiNudez card
   set; mark-wavespeed was sharing it and did collide with AiNudez on /deepnude/ and /nudify/,
   so it moved to the violet one. Pair a new name onto an existing gradient only after checking no
   page shows both as callouts. */
.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.mark-ainudez {
  background: linear-gradient(135deg, #f472b6, #e879f9);
}
.mark-deep-undress {
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
}
.mark-pornworks {
  background: linear-gradient(135deg, #f9a8d4, #e879f9);
}
.mark-wavespeed {
  background: linear-gradient(135deg, #f0abfc, #c026d3);
}
.mark-undresswith {
  background: linear-gradient(135deg, #fda4af, #f472b6);
}
.item-name {
  display: block;
  font-weight: 600;
  font-size: 15px;
}
.item-note {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Collection intro: a compact note with a solid surface and a left accent. */
.qa {
  padding: 28px 32px;
  border: 1px solid rgba(249, 168, 212, 0.14);
  border-left: 3px solid var(--pink);
  border-radius: 14px;
  background: #1a1119;
}
.qa .label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(244, 114, 182, 0.1);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--link);
}
.qa p {
  max-width: 88ch;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
}
.qa p + p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-2);
}
.qa strong {
  font-weight: 600;
  color: var(--text);
}
@media (max-width: 640px) {
  .qa {
    padding: 22px 20px;
    border-radius: 12px;
  }
  .qa p {
    font-size: 17px;
  }
  .qa p + p {
    font-size: 15.5px;
  }
}

/* Free Tools: ranked list */
.kw-ranked {
  margin-top: 56px;
}
.ranked-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
}
.ranked-head .kw-h2 {
  line-height: 1;
}
.ranked-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
}
/* Aviso de afiliación delante de la lista de fichas, no solo en el pie. El texto es el literal de
   content/facts.yaml (disclosures.affiliate): reescribirlo lo invalida, así que no se parafrasea. */
.afi-note {
  margin: 22px 0 0;
  padding: 14px 18px;
  border-left: 2px solid var(--pink);
  border-radius: 0 14px 14px 0;
  background: var(--card);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 72ch;
}
.tool-side .ranked-date {
  text-align: center;
}
/* Why this page's order differs from the catalogue. Sits between the rule and the first card, so it is read before the ranking */
.ranked-note {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 72ch;
}
.tools {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tool {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 220px;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tool-rank {
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--hue);
}
.tool-body {
  min-width: 0;
}
.tool-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.tool-name {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin: 0;
}
.badge {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hue);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hue) 33%, transparent);
}
.tool-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 14px 0 0;
}
.tool-facts {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 14px 20px;
}
.tool-facts dd {
  margin: 5px 0 0;
  font-size: 14.5px;
  font-weight: 500;
}
.tool-side {
  display: grid;
  gap: 14px;
}
.tool-shot {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(
    135deg,
    var(--sa) 0 12px,
    var(--sb) 12px 24px
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
}
/* Photo fills the shot, the hue glow stays on top of it — same pairing as .ch-card on the home page */
.tool-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
}
.tool-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    70% 60% at 50% 100%,
    var(--glow),
    transparent 70%
  );
}
.btn.tool-cta {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 13px 18px;
  font-size: 14px;
}
.tool-cta:hover {
  box-shadow: 0 16px 40px var(--glow);
}

/* Free Tools: long-form callout */
.callout {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.callout:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  color: var(--text);
}
.callout-name {
  display: block;
  font-weight: 600;
  font-size: 16px;
}
.callout-text {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
}
.callout-cta {
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

/* Free Tools: FAQ is the homepage accordion at a smaller size */
.kw-faq {
  margin-top: 16px;
}
.kw-faq .faq-q {
  grid-template-columns: 44px 1fr 32px;
  gap: 18px;
  padding: 22px 0;
}
.kw-faq .faq-text {
  font-size: 19px;
}
.kw-faq .faq-a {
  padding: 0 50px 24px 62px;
}

/* Privacy Guide: article blocks */
.kw-lede {
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0;
}
.findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin-top: 40px;
}
.finding {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}
.finding-v {
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.finding-l {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.c-pink {
  color: var(--pink);
}
.c-cyan {
  color: var(--cyan);
}
.sec-n {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}
.sec-n + .kw-h2 {
  margin-top: 14px;
}
.tool-box {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.mini-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.tool-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.tool-link {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.tool-link:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.tool-link .mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.tool-link .item-note {
  font-size: 12.5px;
}
.tool-link-cta {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.grade {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid;
}
.grade-strong {
  color: var(--cyan);
  border-color: rgba(251, 113, 133, 0.4);
}
.grade-good {
  color: #f0abfc;
  border-color: rgba(240, 171, 252, 0.4);
}
.grade-mixed {
  color: #fce7f3;
  border-color: rgba(252, 231, 243, 0.4);
}
.matrix-wrap {
  margin-top: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--card);
  overflow-x: auto;
}
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.matrix th,
.matrix td {
  padding: 15px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  color: var(--text-2);
}
.matrix thead th {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom-color: var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--dim);
}
.matrix :is(th, td):is(:first-child, :last-child) {
  padding-left: 20px;
  padding-right: 20px;
}
.matrix tbody th {
  font-weight: 600;
  color: var(--text);
}
.matrix tbody td:last-child {
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
/* Prose in every column: the guide's table ends on a short value, so the emphasis sits on the last column.
   Here the last column is a sentence and the second one is the weight — move the same emphasis there. */
.matrix-prose tbody td:last-child {
  font-weight: 400;
  font-size: 14px;
  color: var(--text-2);
}
.matrix-prose tbody td:first-of-type {
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
/* Same specificity as .matrix tbody td:last-child above, which colours the whole last column and
   used to win over the "not published" mark when the mark landed there. Later in the file wins. */
.matrix tbody td.y {
  color: var(--cyan);
}
.matrix tbody td.n {
  color: #fce7f3;
}
.matrix tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}
.use-box {
  margin-top: 72px;
  padding: 36px 40px;
  border-radius: 24px;
  border: 1px solid rgba(244, 114, 182, 0.3);
  background: var(--card);
}
.use-box h2 {
  margin: 0;
  font-weight: 400;
}
.use-box p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 14px 0 0;
}

/* Sidebar */
/* Sticky column taller than the viewport would pin with its tail below the fold and never scroll into view.
   On a 1440x700 laptop that cut the affiliate disclosure. The cap only engages when it would not fit. */
.kw-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  max-height: calc(100svh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.side-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background: rgba(25, 15, 23, 0.78);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.side-card > * {
  position: relative;
}
.side-card-cyan {
  border-color: rgba(251, 113, 133, 0.25);
}
.side-card-cyan::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(251, 113, 133, 0.2),
    transparent
  );
}
.side-label {
  font-size: 11px;
}
.side-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.side-date {
  font-size: 11.5px;
  color: var(--dim);
}
.side-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
}
.side-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.side-card-cyan .side-list li {
  grid-template-columns: 1fr auto;
  padding: 13px 0;
}
.side-rank {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--hue);
}
/* Affiliate disclosure for the sidebar block itself: the footer note covers the site, FTC wants it next to the recommendation */
.side-note {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--dim);
}
.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.pill-light,
.pill-light:hover {
  border: 0;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
}
.pill-light:hover {
  opacity: 0.9;
}
.toc {
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(25, 15, 23, 0.5);
  border: 1px solid var(--line);
}
.toc :is(ul, ol) {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.toc a {
  display: flex;
  gap: 10px;
  color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.toc a:hover {
  color: var(--text);
}
/* Section being read: colour alone is not enough (WCAG 1.4.1), so the weight carries it too */
.toc a[aria-current="true"] {
  color: var(--pink);
  font-weight: 600;
}
.toc a[aria-current="true"] .toc-n {
  color: var(--pink);
}
.toc-n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}

@media (max-width: 1000px) {
  .nav {
    gap: 26px;
  }
  .kw .nav {
    display: none;
  }
  .kw .burger {
    display: block;
  }
  .kw-layout {
    grid-template-columns: 1fr;
  }
  /* the height cap only exists to keep the sticky desktop column scrollable; stacked, it would nest a scroller mid-page */
  .kw-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .kw-side-first {
    order: -1;
  }
  /* toc duplicated by the burger menu: out of the flow and out of the a11y tree, so it is not read twice */
  .toc-dup {
    display: none;
  }
}
@media (max-width: 640px) {
  .kw-hero {
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .kw-layout {
    padding-bottom: 64px;
  }
  .kw-title,
  .hero-guide .kw-title {
    font-size: 40px;
  }
  /* side by side, the Spanish revision date squeezed the h2 into a third of the width and wrapped itself over three lines */
  .ranked-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .tool {
    grid-template-columns: 1fr;
  }
  .matrix {
    min-width: 640px;
  }
  /* grade and "Visit ↗" drop under the name: in one row they pushed "Visit" out of the box at 320px */
  .tool-link {
    grid-template-columns: 40px 1fr auto;
  }
  .tool-link .mark {
    grid-row: span 2;
  }
  .tool-link > :has(.item-name) {
    grid-column: span 2;
  }
  .tool-link .grade {
    justify-self: start;
  }
}

/* ==== 404 ==== */
.nf {
  min-height: calc(78vh - var(--hh, 79px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.nf .kw-title {
  margin-top: 20px;
}
.nf-lead {
  margin-top: 28px;
}

/* ==== Age gate 18+ and its exit page /salida/ ==== */
/* The cover lives on <html>, not on the dialog: age-gate.js sets the attribute from <head>, before <body> exists,
   so the page is covered on the very first frame instead of flashing until the dialog is appended. Content keeps
   its place in the DOM and its document order — nothing here hides it, the overlay only sits on top of it. */
html[data-age] {
  overflow: hidden;
}
html[data-age]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 12, 18, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.age {
  width: min(100% - 32px, 460px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  margin: auto;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #190f17;
  color: var(--text);
  font-family: var(--font);
}
.age::backdrop {
  background: rgba(16, 12, 18, 0.92);
}
/* No heading and no imitation of one: body size, body weight, one paragraph. Owner's rule for this window. */
.age-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-2);
}
/* Stacked and full width, confirmation on top: the two labels only fit in a row on a screen this box never gets */
.age-btns {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.age-btns .btn {
  justify-content: center;
  cursor: pointer;
}
/* Small dialog note: storage details and the terms link remain readable on the dark surface. */
.age-note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
/* Global a is --text with no underline; inside a muted paragraph that reads as emphasis, not a link. */
.age-note a {
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 400px) {
  .age {
    padding: 24px 20px;
  }
}

/* /salida/: no header, no footer, no nav, no links. The page is a dead end and that is its job. */
.salida {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding-top: 40px;
  padding-bottom: 40px;
}
.salida p {
  margin: 0;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
}

/* ==== Tap targets ≥44px. Kept last: the touch gaps must override the base .toc and .footer-col rules ====
   An invisible box grows the hit area to 44px where the link is smaller; nothing visible moves.
   In .pill it rides on ::before, because ::after already carries the CTA arrow */
.pill,
.crumbs a,
.toc a,
.footer-col a {
  position: relative;
}
.pill::before,
.crumbs a::after {
  content: "";
  position: absolute;
  inset: min(0px, (100% - 44px)/2);
}
@media (pointer: coarse) {
  /* toc and footer links sit 27–29px apart, and 44px areas need a 44px pitch: touch screens get the wider gap, text unchanged */
  .toc :is(ul, ol),
  .footer-col ul {
    gap: 26px;
  }
  .toc a::after,
  .footer-col a::after {
    content: "";
    position: absolute;
    inset: min(0px, (100% - 44px)/2);
  }
}
