/* ============================================================
   MAPI, Professional Cleaning Solutions
   Landing page stylesheet
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --blue: #1B5FE0;
  --blue-600: #1750c2;
  --blue-700: #113f9c;
  --blue-050: #eaf1fe;
  --ink: #0B111E;
  --ink-800: #131c2e;
  --ink-700: #1e293f;

  --text: #14203a;
  --muted: #5a6780;
  --muted-light: #93a0b5;
  --line: #e4e9f1;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eef2f8;

  --star: #f5b40a;

  /* Shape */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 2px 8px rgba(11, 17, 30, .05);
  --sh-md: 0 10px 30px rgba(11, 17, 30, .08);
  --sh-lg: 0 24px 60px rgba(11, 17, 30, .12);
  --sh-blue: 0 14px 30px rgba(27, 95, 224, .28);

  /* Rhythm */
  --pad: clamp(20px, 5vw, 40px);
  --sec: clamp(64px, 9vw, 120px);
  --max: 1220px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-logo: "Archivo", var(--font);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.028em; font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.3rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.15rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); letter-spacing: -.02em; }
p  { color: var(--muted); }
.blue { color: var(--blue); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--sec); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-050);
  padding: 8px 16px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.head { max-width: 680px; }
.head--center { margin-inline: auto; text-align: center; }
.head p { margin-top: 18px; font-size: 1.05rem; }
.head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: end; max-width: none; }
.head--split p { margin-top: 0; }
@media (max-width: 860px) { .head--split { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--r-pill);
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-600); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-700); }
.btn--ghost { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--outline-light { border: 1.5px solid rgba(255,255,255,.28); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); }
.btn--lg { padding: 18px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============================================================
   Logo
   ============================================================ */
/* flex: none is the structural guarantee. As a flex child the logo would
   otherwise be shrunk to make room, and since it is an image with width:auto
   that squashes it out of proportion instead of scaling it down. */
.logo { display: inline-flex; flex-direction: column; gap: 3px; flex: none; }
/* Single-image brand lockup: wordmark, rules and subtitle in the proportions
   of the master file. Sized by height; width follows the 1261x436 ratio. */
.logo__mark { height: 50px; width: auto; max-width: 100%; }
.logo--lg .logo__mark { height: 64px; }
.logo__word {
  font-family: var(--font-logo);
  font-weight: 800; font-size: 1.65rem; line-height: 1;
  letter-spacing: -.045em; color: var(--ink);
}
.logo__word .a { color: var(--blue); }
.logo__tag {
  display: flex; align-items: center; gap: 7px;
  font-size: .45rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  color: var(--muted);
}
.logo__tag::before, .logo__tag::after { content: ""; height: 1.5px; flex: 1; background: currentColor; opacity: .35; }
.logo--light .logo__word { color: #fff; }
.logo--light .logo__tag { color: rgba(255,255,255,.65); }
.logo--lg .logo__word { font-size: 2.3rem; }
.logo--lg .logo__tag { font-size: .55rem; }

/* ============================================================
   Top bar + Nav
   ============================================================ */
.topbar {
  background: var(--ink); color: rgba(255,255,255,.72);
  font-size: .84rem; font-weight: 500;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; }
.topbar__list { display: flex; align-items: center; gap: 26px; }
.topbar__list li { display: inline-flex; align-items: center; gap: 8px; }
.topbar__list svg { width: 14px; height: 14px; color: var(--blue); flex: none; }
.topbar a:hover { color: #fff; }
.topbar__socials { display: flex; gap: 14px; }
.topbar__socials a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .18s; }
.topbar__socials a:hover { background: var(--blue); }
.topbar__socials svg { width: 13px; height: 13px; }
@media (max-width: 900px) { .topbar { display: none; } }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: var(--sh-sm); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { font-size: .95rem; font-weight: 600; color: var(--muted); position: relative; padding-block: 6px; transition: color .18s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--blue);
  border-radius: 2px; transition: width .22s ease;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--ink); white-space: nowrap; }
.nav__phone span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-050); color: var(--blue); }
.nav__phone svg { width: 16px; height: 16px; }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: var(--r-sm); border: 1.5px solid var(--line); }
.nav__burger i { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; margin: 4px auto; transition: transform .25s ease, opacity .2s ease; }
.nav.is-open .nav__burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__burger i:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav__phone { display: none; }
}
@media (max-width: 900px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px; box-shadow: var(--sh-md);
    display: none;
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--surface-3); font-size: 1rem; color: var(--ink); }
  .nav__links a::after { display: none; }
  .nav__cta .btn { padding: 12px 20px; font-size: .9rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; padding-block: clamp(48px, 6vw, 84px) clamp(64px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -320px; right: -220px;
  width: 780px; height: 780px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,95,224,.14), transparent 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-sm);
  padding: 7px 16px 7px 8px; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 26px;
}
.hero__badge b { background: var(--blue); color: #fff; padding: 4px 11px; border-radius: var(--r-pill); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { text-transform: uppercase; }
.hero h1 .rule { display: block; width: 74px; height: 5px; background: var(--blue); border-radius: 4px; margin-top: 26px; }
.hero__lead { margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.16rem); max-width: 500px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__proof { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero__avatars { display: flex; }
.hero__avatars span {
  width: 42px; height: 42px; border-radius: 50%; border: 3px solid #fff; margin-left: -12px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff;
  background: linear-gradient(140deg, var(--blue), var(--ink));
}
.hero__avatars span:first-child { margin-left: 0; }
.hero__proof-text { font-size: .9rem; color: var(--muted); }
.hero__proof-text b { display: block; color: var(--ink); font-size: .96rem; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 15px; height: 15px; }

.hero__media { position: relative; }
.hero__frame { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-lg); aspect-ratio: 4 / 4.4; }
.hero__card {
  position: absolute; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-lg); padding: 16px 20px; display: flex; align-items: center; gap: 14px;
}
.hero__card i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue); flex: none; }
.hero__card svg { width: 20px; height: 20px; }
.hero__card b { display: block; font-size: 1.3rem; font-weight: 800; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.hero__card small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.hero__card--a { left: -22px; top: 12%; }
.hero__card--b { right: -18px; bottom: 12%; }

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__frame { aspect-ratio: 16 / 11; }
  .hero__lead { max-width: none; }
}
@media (max-width: 560px) {
  .hero__card--a { left: 8px; top: 10px; }
  .hero__card--b { right: 8px; bottom: 10px; }
  .hero__card { padding: 12px 15px; gap: 10px; }
  .hero__card i { width: 34px; height: 34px; }
  .hero__card b { font-size: 1.05rem; }
}

/* ---------- Photo placeholder ---------- */
.ph {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(255,255,255,.16), transparent 60%),
    linear-gradient(150deg, var(--ink-800), var(--blue-700) 55%, var(--blue));
  display: grid; place-content: center; justify-items: center; gap: 12px;
  color: rgba(255,255,255,.85); text-align: center; padding: 24px;
  position: relative; overflow: hidden;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.ph svg { width: 44px; height: 44px; opacity: .9; position: relative; z-index: 1; }
.ph span { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .72; position: relative; z-index: 1; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { background: var(--surface-2); border-block: 1px solid var(--line); }
.trust .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block: 30px; }
.trust__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.trust__items { display: flex; align-items: center; gap: clamp(22px, 4vw, 52px); flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.trust__item svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ============================================================
   Feature bar (4 promises)
   ============================================================ */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); }
.promise { padding: clamp(26px, 3vw, 38px); border-right: 1px solid var(--line); }
.promise:last-child { border-right: 0; }
.promise i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue); margin-bottom: 20px; }
.promise svg { width: 24px; height: 24px; }
.promise h3 { font-size: 1.03rem; margin-bottom: 8px; }
.promise p { font-size: .92rem; }
@media (max-width: 900px) {
  .promises { grid-template-columns: repeat(2, 1fr); }
  .promise:nth-child(2n) { border-right: 0; }
  .promise:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .promises { grid-template-columns: 1fr; }
  .promise { border-right: 0; border-bottom: 1px solid var(--line); }
  .promise:last-child { border-bottom: 0; }
}

/* ============================================================
   About / details
   ============================================================ */
.about { background: var(--surface-2); }
.about__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(34px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 5/5.4; box-shadow: var(--sh-md); }
.about__badge {
  position: absolute; right: -16px; bottom: 34px;
  background: var(--blue); color: #fff; border-radius: var(--r-md);
  padding: 22px 26px; box-shadow: var(--sh-blue); text-align: center; min-width: 158px;
}
.about__badge b { display: block; font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.about__badge small { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.checks { display: grid; gap: 18px; margin-top: 34px; }
.check { display: flex; gap: 15px; align-items: flex-start; }
.check i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; flex: none; margin-top: 2px; }
.check svg { width: 13px; height: 13px; }
.check b { display: block; font-weight: 800; color: var(--ink); font-size: 1.02rem; margin-bottom: 3px; }
.check p { font-size: .94rem; }
.about__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 40px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__frame { aspect-ratio: 16/11; }
  .about__badge { right: 16px; bottom: -22px; }
}

/* ============================================================
   Services
   ============================================================ */
.services__grid { grid-template-columns: repeat(2, 1fr); margin-top: 52px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: grid; grid-template-columns: 1fr 210px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: transparent; }
.service__body { padding: clamp(24px, 2.6vw, 34px); display: flex; flex-direction: column; }
.service__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue); margin-bottom: 22px; transition: background .22s, color .22s; }
.service:hover .service__icon { background: var(--blue); color: #fff; }
.service__icon svg { width: 26px; height: 26px; }
.service h3 { margin-bottom: 10px; }
.service p { font-size: .95rem; }
.service__list { margin: 18px 0 24px; display: grid; gap: 8px; }
.service__list li { display: flex; gap: 9px; align-items: center; font-size: .9rem; color: var(--muted); font-weight: 600; }
.service__list svg { width: 14px; height: 14px; color: var(--blue); flex: none; }
.service__link { margin-top: auto; display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: .92rem; color: var(--blue); }
.service__link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.service:hover .service__link svg { transform: translateX(4px); }
.service__media { position: relative; }
@media (max-width: 1080px) { .service { grid-template-columns: 1fr 170px; } }
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .service { grid-template-columns: 1fr; }
  .service__media { aspect-ratio: 16/9; order: -1; }
}

/* ============================================================
   Industries
   ============================================================ */
.industries { background: var(--ink); color: #fff; }
.industries h2, .industries .head b { color: #fff; }
.industries .head p { color: rgba(255,255,255,.62); }
.industries .eyebrow { background: rgba(27,95,224,.2); color: #7aa8ff; }
.industries .eyebrow::before { background: #7aa8ff; }
.industry__grid { grid-template-columns: repeat(6, 1fr); margin-top: 52px; }
.industry {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--r-md); padding: 28px 18px; text-align: center;
  transition: background .22s, transform .22s, border-color .22s;
}
.industry:hover { background: rgba(27,95,224,.16); border-color: rgba(27,95,224,.55); transform: translateY(-5px); }
.industry i { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; }
.industry:hover i { background: var(--blue); }
.industry svg { width: 23px; height: 23px; }
.industry span { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.86); }
@media (max-width: 1020px) { .industry__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .industry__grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   Process
   ============================================================ */
.steps { grid-template-columns: repeat(4, 1fr); margin-top: 56px; counter-reset: step; }
.step { position: relative; padding-top: 34px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -14px; right: 6px;
  font-size: 3.6rem; font-weight: 800; letter-spacing: -.05em;
  color: var(--surface-3); z-index: 0; line-height: 1;
}
.step > * { position: relative; z-index: 1; }
.step i { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: var(--sh-blue); margin-bottom: 22px; }
.step svg { width: 26px; height: 26px; }
.step h3 { font-size: 1.08rem; margin-bottom: 9px; }
.step p { font-size: .94rem; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   Stats
   ============================================================ */
.stats { background: var(--blue); color: #fff; }
.stats__grid { grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding-inline: 12px; border-right: 1px solid rgba(255,255,255,.2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); }
@media (max-width: 860px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(2n) { border-right: 0; }
}

/* ============================================================
   Testimonials
   ============================================================ */
.reviews { background: var(--surface-2); }
.rating-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 26px; margin-bottom: 34px; box-shadow: var(--sh-sm);
}
.rating-card__score { display: flex; align-items: center; gap: 20px; }
.rating-card__score b { font-size: 3.1rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.rating-card__score .stars svg { width: 22px; height: 22px; }
.rating-card__score small { display: block; margin-top: 6px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rating-card__logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rating-card__logos span { font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; color: var(--muted-light); }

.reviews__grid { grid-template-columns: repeat(3, 1fr); }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 34px); display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.review:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.review__quote { width: 34px; height: 34px; color: var(--blue-050); margin-bottom: 4px; }
.review .stars { margin-bottom: 16px; }
.review p { color: var(--text); font-size: 1rem; line-height: 1.7; }
.review__by { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.review__by i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 800; font-size: .95rem; color: #fff; background: linear-gradient(140deg, var(--blue), var(--ink)); flex: none; font-style: normal; }
.review__by b { display: block; font-size: .96rem; color: var(--ink); }
.review__by small { font-size: .85rem; color: var(--muted); }
@media (max-width: 980px) { .reviews__grid { grid-template-columns: 1fr; } }
/* Same reason as the thank-you card: a nowrap button wider than the screen
   pushes the whole page sideways. */
@media (max-width: 560px) {
  .rating-card .btn { width: 100%; white-space: normal; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--surface-2); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.faq__aside .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 14px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq__item.is-open { border-color: var(--blue); box-shadow: var(--sh-sm); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px clamp(20px, 2.4vw, 28px); text-align: left;
  font-weight: 700; font-size: 1.02rem; color: var(--ink); letter-spacing: -.015em;
}
.faq__q i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); color: var(--ink); flex: none; transition: background .2s, color .2s, transform .25s; }
.faq__item.is-open .faq__q i { background: var(--blue); color: #fff; transform: rotate(45deg); }
.faq__q svg { width: 14px; height: 14px; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 clamp(20px, 2.4vw, 28px) 24px; font-size: .96rem; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } }

/* ============================================================
   Quote / CTA
   ============================================================ */
.quote { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.quote::before {
  content: ""; position: absolute; left: -180px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,95,224,.36), transparent 62%);
}
.quote .wrap { position: relative; }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 70px); align-items: center; }
.quote h2 { color: #fff; }
.quote .eyebrow { background: rgba(27,95,224,.2); color: #7aa8ff; }
.quote .eyebrow::before { background: #7aa8ff; }
.quote__lead { color: rgba(255,255,255,.68); margin-top: 20px; font-size: 1.05rem; }
.quote__contacts { display: grid; gap: 18px; margin-top: 38px; }
.quote__contact { display: flex; align-items: center; gap: 15px; }
.quote__contact i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); color: #7aa8ff; flex: none; }
.quote__contact svg { width: 20px; height: 20px; }
.quote__contact small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 700; }
.quote__contact b { font-size: 1.05rem; font-weight: 700; }

/* The card sits inside .quote, which paints its text white for the dark
   section around it. Without resetting that here, everything typed into
   the fields is white on a near-white background. */
.form {
  background: #fff; color: var(--text);
  border-radius: var(--r-xl); padding: clamp(26px, 3.2vw, 40px); box-shadow: var(--sh-lg);
}
.form h3 { margin-bottom: 6px; }
.form > p { font-size: .93rem; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text); font-size: .95rem;
  transition: border-color .18s, background .18s;
}
/* The native dropdown list is drawn outside the card, so it inherits nothing
   and needs its own colours. */
.field select option { color: var(--text); background: #fff; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--captcha { margin-bottom: 18px; }
.field--captcha:empty { display: none; }   /* stays hidden until Netlify injects the widget */
.field--captcha > div { max-width: 100%; }
.form__note { margin-top: 14px; font-size: .82rem; text-align: center; }
.form__msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue-700); font-size: .9rem; font-weight: 600; }
.form__msg.is-visible { display: block; }
@media (max-width: 940px) { .quote__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field--row { grid-template-columns: 1fr; } }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #060a13; color: rgba(255,255,255,.6); padding-block: clamp(56px, 7vw, 88px) 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: clamp(28px, 4vw, 56px); }
.footer p { color: rgba(255,255,255,.55); font-size: .94rem; }
.footer__about p { margin-top: 22px; max-width: 320px; }
.footer__socials { display: flex; gap: 11px; margin-top: 26px; }
.footer__socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; transition: background .18s, transform .18s; }
.footer__socials a:hover { background: var(--blue); transform: translateY(-3px); }
.footer__socials svg { width: 16px; height: 16px; }
.footer h4 { color: #fff; font-size: .84rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 22px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { font-size: .94rem; transition: color .18s, padding-left .18s; }
.footer__links a:hover { color: #fff; padding-left: 5px; }
.footer__contact { display: grid; gap: 16px; }
.footer__contact li { display: flex; gap: 13px; align-items: flex-start; font-size: .94rem; }
.footer__contact svg { width: 17px; height: 17px; color: var(--blue); flex: none; margin-top: 4px; }
.footer__contact a:hover { color: #fff; }
.footer__bottom {
  margin-top: clamp(44px, 5vw, 64px); padding-block: 26px; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .87rem;
}
.footer__bottom nav { display: flex; gap: 24px; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 940px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .footer__bottom { justify-content: flex-start; } }

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff; font-weight: 700; font-size: .92rem;
  padding: 14px 20px; border-radius: var(--r-pill);
  box-shadow: 0 12px 28px rgba(37, 211, 102, .35);
  transition: transform .18s ease;
}
.wa:hover { transform: translateY(-3px); }
.wa svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 560px) { .wa { padding: 14px; right: 16px; bottom: 16px; } .wa span { display: none; } }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Thank-you page
   ============================================================ */
.thanks {
  min-height: 100vh; display: grid; place-items: center;
  padding-block: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(27,95,224,.12), transparent 70%),
    var(--surface-2);
}
.thanks__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: clamp(32px, 5vw, 64px);
  /* The parent centres .wrap, not this card: .wrap fills its width, so without
     an auto margin the card sits against its left edge. */
  max-width: 620px; margin-inline: auto;
  text-align: center; display: grid; justify-items: center;
}
.thanks__check {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: var(--sh-blue); margin: 32px 0 28px;
}
.thanks__check svg { width: 36px; height: 36px; }
.thanks h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); margin-bottom: 16px; }
.thanks p { font-size: 1.04rem; max-width: 430px; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.thanks__note { margin-top: 30px; font-size: .92rem; }
/* Buttons never wrap by default, which is right on a wide row but forces this
   card wider than a phone screen: the phone button alone is 376px. Let them
   fill the card and break their text instead. */
@media (max-width: 560px) {
  .thanks__actions { width: 100%; }
  .thanks__actions .btn { width: 100%; white-space: normal; }
}
.thanks__note a { color: var(--blue); font-weight: 700; }

/* ============================================================
   Skip link
   ============================================================ */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ============================================================
   Language switch
   ============================================================ */
.langsw {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--surface-3); border-radius: var(--r-pill); padding: 3px;
  font-size: .8rem; font-weight: 800; letter-spacing: .04em;
}
.langsw span, .langsw a {
  display: grid; place-items: center; min-width: 34px; padding: 6px 4px;
  border-radius: var(--r-pill); transition: background .18s, color .18s;
}
.langsw__on { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.langsw a { color: var(--muted); }
.langsw a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
@media (max-width: 900px) { .langsw { order: -1; } }
/* Below this the row cannot hold the logo, the language switch, the button
   and the menu toggle at once. The quote CTA is the one to drop: it is
   repeated in the hero and reachable through Contacto in the menu. */
@media (max-width: 560px) { .nav__cta .btn { display: none; } }
/* On the narrowest phones the logo, the language switch and the menu toggle
   still do not fit at full size. Shrink the mark and tighten the gaps rather
   than letting the header push the page sideways. */
@media (max-width: 380px) {
  .nav .wrap { gap: 12px; }
  .nav__cta { gap: 10px; }
  .logo__mark { height: 42px; }
}

/* Grid tracks take their minimum from the content, so a long word or a wide
   child refuses to shrink and pushes the page sideways on narrow phones.
   min-width: 0 lets the track shrink and the text wrap instead. */
.stats__grid > .stat,
.quote__grid > * { min-width: 0; }

/* Centred as a grid item, this wrapper sizes to its content rather than to the
   space available, so a card wider than the screen drags the page with it. */
.thanks .wrap { min-width: 0; max-width: 100%; }
@media (max-width: 380px) {
  .thanks__card { padding: 30px 22px; }
}

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.pagehead {
  background:
    radial-gradient(80% 120% at 85% 0%, rgba(27,95,224,.22), transparent 65%),
    var(--ink);
  color: #fff; padding-block: clamp(44px, 6vw, 78px) clamp(48px, 7vw, 86px);
}
.pagehead h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16ch; }
.pagehead p { color: rgba(255,255,255,.66); margin-top: 20px; max-width: 62ch; font-size: 1.05rem; }
.pagehead .eyebrow { background: rgba(27,95,224,.24); color: #7aa8ff; }
.pagehead .eyebrow::before { background: #7aa8ff; }
.crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .86rem; color: rgba(255,255,255,.5); margin-bottom: 26px;
}
.crumbs a { color: rgba(255,255,255,.75); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .4; }
.crumbs span[aria-current] { color: #fff; font-weight: 600; }

/* ============================================================
   Values grid (About)
   ============================================================ */
.values { grid-template-columns: repeat(4, 1fr); margin-top: 52px; }
.value {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.6vw, 32px);
  transition: transform .22s ease, box-shadow .22s ease;
}
.value:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.value i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--blue-050); color: var(--blue); margin-bottom: 20px; }
.value svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.05rem; margin-bottom: 9px; }
.value p { font-size: .93rem; }
@media (max-width: 1020px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ============================================================
   Service detail rows (Services page)
   ============================================================ */
.svc__list { display: grid; gap: clamp(48px, 7vw, 96px); }
.svc { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; }
.svc--flip .svc__media { order: 2; }
.svc__frame { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3.4; box-shadow: var(--sh-md); }
.svc__body h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.svc__body > p { font-size: 1.02rem; }
.svc__sub {
  font-size: .8rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--line);
}
.svc__incl { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.svc__incl li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--muted); }
.svc__incl svg { width: 15px; height: 15px; color: var(--blue); flex: none; margin-top: 4px; }
.svc__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
@media (max-width: 900px) {
  .svc { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .svc__frame { aspect-ratio: 16/10; }
}
@media (max-width: 520px) { .svc__incl { grid-template-columns: 1fr; } }

/* ============================================================
   Service areas (Contact)
   ============================================================ */
.areas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 44px; }
.area {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 11px 22px; font-size: .93rem; font-weight: 600; color: var(--ink);
  transition: border-color .18s, transform .18s;
}
.area:hover { border-color: var(--blue); transform: translateY(-2px); }
.quote__note { margin-top: 26px; font-size: .88rem; color: rgba(255,255,255,.5); }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { background: var(--ink); }
.ctaband__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center;
  background: linear-gradient(120deg, var(--blue-700), var(--blue));
  border-radius: var(--r-xl); padding: clamp(32px, 4.5vw, 58px);
  box-shadow: var(--sh-lg);
}
.ctaband h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.ctaband p { color: rgba(255,255,255,.8); margin-top: 14px; }
.ctaband__actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: flex-end; }
@media (max-width: 860px) {
  .ctaband__inner { grid-template-columns: 1fr; }
  .ctaband__actions { justify-content: flex-start; }
}

/* ============================================================
   Legal prose
   ============================================================ */
.prose { max-width: 78ch; margin-inline: auto; }
.prose__date {
  display: inline-block; background: var(--blue-050); color: var(--blue);
  font-size: .82rem; font-weight: 700; padding: 8px 16px;
  border-radius: var(--r-pill); margin-bottom: 40px;
}
.prose h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin: 44px 0 16px;
  padding-top: 30px; border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose p { margin-bottom: 16px; line-height: 1.75; }
.prose ul { margin: 0 0 18px; padding-left: 4px; display: grid; gap: 11px; }
.prose li { position: relative; padding-left: 24px; color: var(--muted); line-height: 1.7; }
.prose li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.prose a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--blue-700); }
.prose b { color: var(--ink); }

/* ============================================================
   Blog
   ============================================================ */
.blog__grid { grid-template-columns: repeat(3, 1fr); }
.blog__empty { text-align: center; color: var(--muted); padding: 40px 0; }

.pcard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.pcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__media .ph { aspect-ratio: 16 / 10; }
.pcard__body { padding: clamp(20px, 2.4vw, 28px); display: flex; flex-direction: column; flex: 1; }
.pcard__meta {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-light); margin-bottom: 12px;
}
.pcard h3 { font-size: 1.12rem; margin-bottom: 10px; line-height: 1.3; }
.pcard h3 a { transition: color .18s; }
.pcard:hover h3 a { color: var(--blue); }
.pcard p { font-size: .94rem; margin-bottom: 20px; }
.pcard .service__link { margin-top: auto; }
@media (max-width: 1020px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .blog__grid { grid-template-columns: 1fr; } }

/* ---------- Single post ---------- */
.pagehead--post h1 { max-width: 22ch; }
.post__meta {
  color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 600;
  margin-top: 20px; letter-spacing: .02em;
}
.post__hero, .post__video { max-width: 860px; margin: 0 auto clamp(32px, 4vw, 48px); }
.post__hero img {
  width: 100%; height: auto; border-radius: var(--r-xl);
  box-shadow: var(--sh-md); display: block;
}
.post__video {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-md); background: var(--ink);
}
.post__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post__body { max-width: 720px; }
.post__body h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.post__body img { width: 100%; height: auto; border-radius: var(--r-lg); margin: 28px 0; }
.post__body blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--blue);
  font-size: 1.06rem; color: var(--ink);
}
.post__body code {
  background: var(--surface-3); padding: 2px 6px; border-radius: 5px; font-size: .92em;
}
.post__back { max-width: 720px; margin: clamp(36px, 4vw, 52px) auto 0; }
.post__back .btn svg { transform: rotate(180deg); }

/* ============================================================
   Quote pop-up
   ============================================================ */
.pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.pop[hidden] { display: none; }
.pop__veil {
  position: absolute; inset: 0; background: rgba(11, 17, 30, .62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: popFade .22s ease;
}
.pop__box {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: .82fr 1.18fr;
  width: 100%; max-width: 940px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: var(--r-xl); overflow: auto;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45);
  animation: popIn .26s cubic-bezier(.2, .8, .3, 1);
}
@keyframes popFade { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }

.pop__intro {
  background:
    radial-gradient(80% 70% at 20% 0%, rgba(27,95,224,.34), transparent 70%),
    var(--ink);
  color: #fff; padding: clamp(28px, 3.4vw, 44px);
  display: flex; flex-direction: column; justify-content: center;
}
.pop__intro .eyebrow { background: rgba(27,95,224,.24); color: #7aa8ff; }
.pop__intro .eyebrow::before { background: #7aa8ff; }
.pop__intro h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.pop__intro p { color: rgba(255,255,255,.68); margin-top: 14px; font-size: .98rem; }
.pop__trust {
  display: flex; align-items: center; gap: 10px; margin-top: 26px;
  font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.82);
}
.pop__trust svg { width: 20px; height: 20px; color: #7aa8ff; flex: none; }

.pop__form { padding: clamp(22px, 2.6vw, 34px); min-width: 0; }
.pop__form .form {
  box-shadow: none; padding: 0; border-radius: 0; background: transparent;
}
.pop__form .form h3 { font-size: 1.15rem; }

.pop__x {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink);
  box-shadow: var(--sh-sm); transition: background .18s, transform .18s;
}
.pop__x:hover { background: #fff; transform: rotate(90deg); }
.pop__x svg { width: 16px; height: 16px; }

.pop__later {
  display: block; margin: 16px auto 0; padding: 6px 10px;
  font: 600 .88rem var(--font); color: var(--muted-light);
}
.pop__later:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 820px) {
  .pop__box { grid-template-columns: 1fr; max-width: 520px; }
  .pop__intro { padding: 26px 24px 22px; }
  .pop__intro p { margin-top: 10px; font-size: .93rem; }
  .pop__trust { margin-top: 18px; }
}
@media (max-width: 420px) {
  .pop { padding: 12px; }
  .pop__box { max-height: calc(100vh - 24px); }
  .pop__intro h2 { font-size: 1.22rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pop__veil, .pop__box { animation: none; }
}
