/* ==========================================================================
   Nemik — Landing v2
   Desktop values come from Figma (file kIxX4KmzYKugrBMTTdtaS2, frame 2001:3, 1280px).
   Fluid tokens resolve to the exact Figma values at ≥1025px.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Layout */
  --container: 984px;          /* main content column */
  --container-header: 1000px;  /* header row is slightly wider in Figma */
  --gutter: clamp(20px, 5vw, 40px);
  --section-gap: 130px;        /* vertical distance between sections */
  --page-top: 86px;            /* header bottom → hero status line */
  --page-bottom: 120px;        /* last section → footer */
  --intro-gap: 56px;           /* centered intro → cards */
  --card-inset: 24px;          /* step card side padding; section titles align to it */

  /* Colors */
  --c-ink: #000000;
  --c-brand: #00142a;
  --c-brand-hover: #0b2742;
  --c-text-muted: #6a6a6a;
  --c-text-lead: #363636;
  --c-text-answer: #454545;
  --c-white: #ffffff;

  /* Surfaces */
  --s-soft: #f6f6f6;           /* Log in button */
  --s-muted: #f2f2f2;          /* secondary CTA */
  --s-card: #ffffff;           /* audience cards (texture layered on top) */
  --s-panel: #f9f9f9;          /* integrations card */
  --s-pill: #ffffff;
  --s-faq-open: #f8f9fa;

  /* Borders */
  --b-card: #e7e7e7;
  --b-panel: #f3f3f3;          /* integrations, audience and step cards */
  --b-pill: #ececec;

  /* Radii */
  --r-pill: 800px;
  --r-faq: 10px;
  --r-mockup: 30px;
  --r-card: 40px;
  --r-panel: 40px;

  /* Shadows */

  /* Typography */
  --f-display: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-body: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --f-accent: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-display: clamp(40px, 3.2vw + 28px, 56px);
  --fs-h2: clamp(28px, 1.6vw + 21.6px, 35px);
  --fs-lead: clamp(17px, 0.75vw + 14.1px, 20px);
  --fs-title: 18px;
  --fs-body: 16px;
  --fs-small: 14px;

  /* Figma rounds line-heights to whole pixels (140% / 160%) */
  --lh-display: 78px;  /* 56 × 1.4 */
  --lh-h2: 49px;       /* 35 × 1.4 */
  --lh-lead: 32px;     /* 20 × 1.6 */
  --lh-title: 29px;    /* 18 × 1.6 */
  --lh-body: 26px;     /* 16 × 1.6 */
  --lh-small: 22px;    /* 14 × 1.6 */

  /* Hero mascot peeking over the mockup */
  --peek-w: 0.36165;   /* mascot width / mockup width (355.142 / 982) */
  --peek-gap: 49.65px; /* CTAs → top of the mascot */

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --reveal-blur: 6px;
  --reveal-y: 14px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout primitives ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.page {
  padding-top: var(--page-top);
  padding-bottom: var(--page-bottom);
}

.section { margin-top: var(--section-gap); }

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

/* ---------- Typography ---------- */
.t-display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

.t-h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

.t-lead {
  font-family: var(--f-accent);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.t-lead--muted {
  font-family: var(--f-body);
  font-weight: 300;
  color: var(--c-text-lead);
}

.t-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
}

.t-body {
  font-family: var(--f-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.t-body strong,
.t-body--regular { font-weight: 400; }

/* Heading with the inset used by "Una ruta…" and "FAQs" */
.section-title {
  max-width: 630px;
  padding-inline: var(--card-inset);
}

/* Centered title + lead (audience, closing) */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.section-intro__text { max-width: 566.18px; }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 8px 24px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  white-space: nowrap;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--c-brand); color: var(--c-white); }
.btn--primary:hover { background: var(--c-brand-hover); }

.btn--soft { background: var(--s-soft); color: var(--c-ink); }
.btn--soft:hover { background: #ececec; }

.btn--muted { background: var(--s-muted); color: var(--c-ink); }
.btn--muted:hover { background: #e8e8e8; }

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--b-pill);
  border-radius: var(--r-pill);
  background: var(--s-pill);
  font-family: var(--f-display);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  white-space: nowrap;
}

/* ---------- Media slot (images now; videos / animations later) ----------
   The box keeps the Figma proportion; any <img> or <video> inside fills it. */
.media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--media-ratio, 16 / 9);
  overflow: hidden;
}

.media > img,
.media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Custom crop copied from the Figma image fill (percentages of the box) */
.media[class*="media--crop"] > img {
  inset: auto;
  left: var(--crop-x);
  top: var(--crop-y);
  width: var(--crop-w);
  height: auto;
}

.media--audience { --media-ratio: 410 / 183; }
.media--step     { --media-ratio: 430 / 203; }
.media--wide     { --media-ratio: 934 / 251; }

.media--crop-analyze { --crop-w: 88.93%; --crop-x: 3.84%; --crop-y: -6.07%; }
.media--crop-enjoy   { --crop-w: 78.71%; --crop-x: -4.25%; --crop-y: -39.3%; }

/* Image melts into the card: darken blend + white fade top and bottom */
.media--fade { mix-blend-mode: darken; }

.media--fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #feffff 0%, rgba(255, 255, 255, 0) 51.783%, #ffffff 100%);
}

/* Visually hidden on small screens, still read by assistive tech */
.btn__extra { white-space: pre; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { padding: 16px var(--gutter); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-header);
  margin-inline: auto;
}

.site-header__logo { flex-shrink: 0; border-radius: 4px; }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text-muted);
}

.hero__status-strong { color: var(--c-ink); }

.hero__status-icon {
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.hero__status:hover .hero__status-icon { transform: translateX(3px); }

.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__subtitle { max-width: 667.7px; }

/* Decrypt: the real text keeps the geometry (hidden), glyphs sit exactly on top.
   Glyphs set no font properties: everything is inherited from the <h1>. */
.hero__title.is-decrypting { position: relative; }
.hero__title.is-decrypting .hero__title-text { opacity: 0; }

.hero__decrypt {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glyph {
  position: absolute;
  white-space: pre;
}

.hero__ctas {
  display: flex;
  gap: 14px;
}

/* Mascot + mockup group: the mascot hangs 170.35px above the 984×593 mockup */
.hero__visual {
  /* gap to CTAs + mascot overhang (170.35 / 355.142 of the mascot width) */
  margin-top: calc(var(--peek-gap) + 100% * var(--peek-w) * 0.47868);
}

.hero__mockup {
  position: relative;
  aspect-ratio: 984 / 593;
  border: 1px solid var(--b-card);
  border-radius: var(--r-mockup);
  background: rgba(255, 255, 255, 0.86);
}

.hero__mockup-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--r-mockup) - 1px);
}

.hero__mascot {
  position: absolute;
  left: 50%;
  top: -1px;
  width: calc(var(--peek-w) * 100%);
  transform: translate(-50%, -85.23%); /* 170.35 / 199.874 */
  pointer-events: none;
}

/* ==========================================================================
   Integrations
   ========================================================================== */
.integrations__card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 419px;
  padding: 24px 60px;
  border: 1px solid var(--b-panel);
  border-radius: var(--r-panel);
  background: var(--s-panel);
  isolation: isolate;
}

/* Background art at 40% + white fade, exactly as layered in Figma */
.integrations__card::before,
.integrations__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
}

.integrations__card::before {
  background: url("../assets/img/bg-glow.jpg") center / cover no-repeat;
  opacity: 0.4;
}

.integrations__card::after {
  background: linear-gradient(92.75deg, rgba(255, 255, 255, 0.9) 25.083%, rgba(255, 255, 255, 0) 97.153%);
}

.integrations__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 383px;
  max-width: 100%;
}

.integrations__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.integrations__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.providers {
  display: flex;
  gap: 32px;
}

.provider {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 121.48px;
}

.provider__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 40px;
}

.provider__name {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  text-align: center;
}

/* Anchored to the right edge: identical to Figma's left 556.69 at 984px */
.integrations__mascot {
  position: absolute;
  right: 25.52px;
  top: 73.97px;     /* 74.97 − 1px border */
  width: 400.791px;
  aspect-ratio: 400.791 / 382.714;
  object-fit: cover;
  pointer-events: none;
}

/* ==========================================================================
   Audience cards
   ========================================================================== */
.audience__grid {
  gap: 32px;
  margin-top: var(--intro-gap);
}

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border: 1px solid var(--b-panel);
  border-radius: var(--r-card);
  background: var(--s-card);
}

/* Figma: grain texture multiplied at 40%, washed by a white gradient */
.card::before,
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.card::before {
  background: url("../assets/img/bg-grain.jpg") center / cover no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.card::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), #ffffff);
}

/* Second card: same texture mirrored and offset, only its edge shows at the top */
.audience__grid .card:nth-child(2)::before {
  inset: auto;
  left: -53.65%;
  top: -260.14%;
  width: 498.84%;
  height: 272.17%;
  background-size: 100% 100%;
  transform: rotate(180deg);
}

.card__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

/* Figma: "Detecta" stretches (424px), "Analiza" keeps its own height (416px) */
.steps__row {
  gap: 24px;
  align-items: start;
}

.step-card--detect { align-self: stretch; }

.step-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px var(--card-inset) 16px;
  border: 1px solid var(--b-panel);
  border-radius: var(--r-panel);
  background-color: var(--c-white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Background art veiled with white, as layered in Figma */
.step-card--detect {
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../assets/img/bg-detect.jpg");
}

.step-card--analyze {
  gap: 16px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url("../assets/img/bg-analyze.jpg");
}

.step-card--enjoy {
  padding-bottom: 32px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url("../assets/img/bg-glow.jpg");
}

.step-card__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 522px;
  max-width: 100%;
  margin-left: auto;
}

.faq__item {
  padding: 18px;
  border-radius: var(--r-faq);
  transition: background-color 240ms ease;
}

.faq__item.is-open { background: var(--s-faq-open); }

.faq__heading { font: inherit; }

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-family: var(--f-display);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
}

.faq__question { max-width: 407px; }

.faq__chevron {
  flex-shrink: 0;
  transition: transform 300ms var(--ease-out);
}

.faq__item.is-open .faq__chevron { transform: rotate(180deg); }

.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 360ms var(--ease-out);
}

.js .faq__item:not(.is-open) .faq__panel { grid-template-rows: 0fr; }

.faq__panel-inner {
  min-height: 0;
  overflow: hidden;
}

/* Closed answers are also hidden from assistive tech once collapsed */
.js .faq__item:not(.is-open) .faq__panel-inner {
  visibility: hidden;
  transition: visibility 0s 360ms;
}

.faq__answer {
  padding-top: 32px;
  font-family: var(--f-display);
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  color: var(--c-text-answer);
}

/* ==========================================================================
   Closing CTA
   ========================================================================== */
.closing__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing__mascot { width: 406.537px; }

.closing__intro .section-intro__text { max-width: 415.11px; }

/* ==========================================================================
   Footer (not in Figma — kept minimal)
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--b-card);
  padding: 48px 0 56px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  row-gap: 32px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 32px;
}

.site-footer__nav a,
.site-footer__copy {
  font-size: var(--fs-small);
  line-height: var(--lh-small);
  color: var(--c-text-muted);
}

.site-footer__nav a {
  border-radius: 4px;
  transition: color var(--dur-fast) ease;
}

.site-footer__nav a:hover { color: var(--c-ink); }

.site-footer__copy {
  grid-column: 1 / -1;
  font-weight: 300;
}

/* ==========================================================================
   Interaction layer (added by JS on mouse / trackpad devices only)
   ========================================================================== */

/* Lenis essentials (from lenis.css) */
html.lenis,
html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Frosted background: fixed, behind every section, never over content */
.frost {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  contain: strict;
}

/* Organic lenses: several offset soft falloffs, no visible edge */
.frost__lens {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.frost__lens--field {
  -webkit-mask-image:
    radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.8) 24%, rgba(0, 0, 0, 0.4) 56%, rgba(0, 0, 0, 0.1) 82%, transparent 100%),
    radial-gradient(closest-side at 32% 64%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(closest-side at 70% 34%, rgba(0, 0, 0, 0.42), transparent 66%);
  mask-image:
    radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.8) 24%, rgba(0, 0, 0, 0.4) 56%, rgba(0, 0, 0, 0.1) 82%, transparent 100%),
    radial-gradient(closest-side at 32% 64%, rgba(0, 0, 0, 0.55), transparent 70%),
    radial-gradient(closest-side at 70% 34%, rgba(0, 0, 0, 0.42), transparent 66%);
}

.frost__lens--grain {
  -webkit-mask-image:
    radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 64%, transparent 100%),
    radial-gradient(closest-side at 62% 60%, rgba(0, 0, 0, 0.5), transparent 72%),
    radial-gradient(closest-side at 36% 38%, rgba(0, 0, 0, 0.38), transparent 68%);
  mask-image:
    radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, 0.85) 30%, rgba(0, 0, 0, 0.35) 64%, transparent 100%),
    radial-gradient(closest-side at 62% 60%, rgba(0, 0, 0, 0.5), transparent 72%),
    radial-gradient(closest-side at 36% 38%, rgba(0, 0, 0, 0.38), transparent 68%);
}

/* Page-anchored layers (sized and counter-transformed by frost.js).
   frost-grain.jpg = the Figma grain texture colour-graded to white / Nemik
   blue / soft cyan (same resolution and detail, warm hues ~90% removed). */
.frost__field,
.frost__stipple {
  position: absolute;
  background: url("../assets/img/frost-grain.jpg") center / cover no-repeat;
  will-change: transform, opacity;
}

/* Diffuse colour: blurred once, then only moved */
.frost__field { filter: blur(18px) saturate(0.9); }

/* Crisp grain: colour seen through a device-resolution grain mask (set in JS) */
.frost__stipple {
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  filter: saturate(1.1);
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: var(--cursor-size);
  height: var(--cursor-size);
  pointer-events: none;
  opacity: 0;
  transition: opacity 160ms ease;
  will-change: transform;
}

.cursor.is-visible { opacity: 1; }

.cursor__img {
  width: 100%;
  height: 100%;
  transform-origin: 12% 12%; /* scale from the tip */
  transition: transform 220ms var(--ease-out), filter 220ms ease;
}

.cursor.is-hover .cursor__img {
  transform: scale(var(--cursor-hover-scale));
  filter: brightness(1.07) saturate(1.1);
}

.cursor.is-down .cursor__img { transform: scale(0.94); }

@media (hover: hover) and (pointer: fine) {
  html.has-custom-cursor,
  html.has-custom-cursor * { cursor: none !important; }
}

/* ==========================================================================
   Hero entrance (only when JS is on and motion is allowed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Title stays hidden until the scramble takes over (no flash of final text) */
  .js [data-hero-title]:not(.is-shown) { opacity: 0; }

  .js [data-hero-reveal] {
    opacity: 0;
    filter: blur(var(--reveal-blur));
    transform: translate3d(0, var(--reveal-y), 0);
    transition:
      opacity 900ms var(--ease-out),
      filter 900ms var(--ease-out),
      transform 1100ms var(--ease-out);
    transition-delay: var(--d, 0ms);
    will-change: opacity, filter, transform;
  }

  /* Mascot + mailbox rise together: one transform on the group, no blur */
  .js [data-hero-reveal="visual"] {
    filter: none;
    transform: translate3d(0, calc(var(--reveal-y) * 2.85), 0);
    transition-duration: 1100ms, 0ms, 1300ms;
  }

  .js .is-hero-ready [data-hero-reveal] {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

/* ==========================================================================
   Responsive
   Desktop (≥1025px) is the Figma reference. Below it, breakpoints follow the
   content of each section rather than device sizes.
   ========================================================================== */

/* Desktop only: headings that sit on one line in Figma */
@media (min-width: 1025px) {
  .nowrap-desktop { white-space: nowrap; }
}

/* ---------- Tablet & below: fluid rhythm ---------- */
@media (max-width: 1024px) {
  /* Desktop keeps Figma's exact line breaks; smaller widths avoid orphans */
  h1, h2, h3,
  .section-intro__text,
  .faq__question { text-wrap: balance; }
  p { text-wrap: pretty; }

  :root {
    --section-gap: clamp(80px, 4.4vw + 64px, 110px);
    --page-top: clamp(40px, 5vw + 20px, 72px);
    --page-bottom: var(--section-gap);
    --intro-gap: clamp(32px, 2.5vw + 22px, 48px);
    --lh-display: 1.22;
    --lh-h2: 1.3;
    --lh-lead: 1.6;
    --peek-w: 0.4;
    --peek-gap: 40px;
  }

  .hero__subtitle { max-width: 620px; }

  /* Integrations keep the side-by-side composition with a fluid mascot */
  .integrations__card {
    min-height: 0;
    padding: 48px 44px;
  }

  .integrations__content { width: min(383px, 55%); }

  .integrations__mascot {
    top: auto;
    right: 16px;
    bottom: -38.68px;
    width: clamp(250px, 37vw, 400.791px);
  }

  .card { padding: 28px; }
}

/* FAQ spans the full width under its title once the side gap gets cramped */
@media (max-width: 880px) {
  .faq__list { width: 100%; margin-top: 16px; }
  .faq__question { max-width: none; }
}

/* Audience + steps: two columns hold through iPad portrait, stack below */
@media (max-width: 740px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }

  .audience__grid { gap: 20px; }

  .steps__list,
  .steps__row { gap: 20px; }

  /* Uniform vertical sequence: Detecta → Analiza → Disfruta */
  .step-card,
  .step-card--analyze,
  .step-card--enjoy {
    gap: 20px;
    padding: 28px var(--card-inset) 16px;
  }


  /* Wide strip becomes a step-sized frame re-centred on the mascot and bins */
  .media--wide { --media-ratio: 430 / 203; }
  .media--crop-enjoy { --crop-w: 107.5%; --crop-x: -5.4%; --crop-y: -22%; }
}

/* Integrations: text, providers, then the illustration */
@media (max-width: 760px) {
  .integrations__card {
    flex-direction: column;
    align-items: stretch;
    padding: 40px 28px 0;
  }

  .integrations__content { width: 100%; max-width: 520px; }

  .integrations__mascot {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: min(340px, 86%);
    margin: 16px auto -34px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  :root {
    --lh-display: 1.15;
    --r-panel: 32px;
    --r-card: 32px;
    --r-mockup: 20px;
    --card-inset: 20px;
    --peek-w: 0.52;
    --peek-gap: 36px;
    --reveal-blur: 4px;
    --reveal-y: 10px;
  }

  .site-header { padding-block: 14px; }

  /* Hero: left-aligned text block, full-width stacked CTAs */
  .hero__content {
    align-items: stretch;
    gap: 0;
    text-align: left;
  }
  .hero__status {
    display: block;
    max-width: 320px;
    font-size: var(--fs-small);
    line-height: var(--lh-small);
    text-wrap: balance;
  }
  .hero__status-icon { display: inline-block; margin-left: 8px; vertical-align: -4px; }
  .hero__heading { align-items: flex-start; gap: 14px; margin-top: 18px; }
  .hero__subtitle { max-width: 30em; }
  .hero__ctas {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }
  .hero__ctas .btn { width: 100%; }

  /* Larger inbox: the frame gets taller and shows the left of the screen */
  .hero__mockup { aspect-ratio: 4 / 3.3; }
  .hero__mockup-screen { object-position: left top; }

  .btn { height: 46px; }

  /* Integrations */
  .integrations__copy { gap: 20px; }
  .integrations__content { gap: 24px; }
  .providers { gap: 16px; }

  /* Cards */
  .card { gap: 16px; padding: 24px 20px; }
  .card__text { gap: 12px; }

  /* FAQ: title aligns with the question text */
  .faq .section-title { padding-inline: 16px; }
  .faq__list { gap: 4px; }
  .faq__item { padding: 16px; }
  .faq__trigger,
  .faq__answer { font-size: var(--fs-body); line-height: var(--lh-body); }
  .faq__answer { padding-top: 16px; }

  /* Closing */
  .closing__mascot { width: clamp(220px, 66vw, 406.537px); }
  .closing__intro { gap: 14px; }
  .closing__intro .btn { margin-top: 10px; }

  /* Footer */
  .site-footer { padding: 40px 0 48px; }
  .site-footer__inner { grid-template-columns: 1fr; row-gap: 24px; }
  .site-footer__nav { justify-content: flex-start; gap: 12px 24px; }
}

/* Phones: compact header label */
@media (max-width: 480px) {
  .site-header .btn {
    height: 40px;
    padding: 8px 18px;
    font-size: 15px;
  }

  .site-header__actions { gap: 8px; }

  .btn__extra {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (max-width: 380px) {
  .site-header__logo img { width: 108px; }
  .site-header .btn { padding: 8px 15px; }
}

@media (max-width: 340px) {
  .site-header__logo img { width: 92px; }
  .site-header .btn { padding: 8px 12px; font-size: 14px; }
}
