/* ================================================
   StarNet Technology S.A.S — Main Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Figtree:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── Design Tokens ─────────────────────────── */
:root {
  /* Colors */
  --bg:           #f4f7fb;
  --surface:      #ffffff;
  --surface-alt:  #f0f4f9;
  --border:       #dde3ed;
  --border-light: #eaeef5;

  --text-1: #0d1b2a;
  --text-2: #3d5166;
  --text-3: #7a8fa3;

  --accent:       #f97316;
  --accent-hover: #ea6c10;
  --accent-light: #fff3e8;
  --accent-dim:   rgba(249,115,22,0.12);

  --navy:       #0d2240;
  --navy-mid:   #1a3860;
  --navy-light: #e8eef7;

  --green:  #22c55e;
  --blue:   #3b82f6;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Figtree', sans-serif;

  --text-xs:   clamp(0.72rem,  0.68rem + 0.2vw,  0.82rem);
  --text-sm:   clamp(0.85rem,  0.80rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem,     0.96rem + 0.2vw,  1.05rem);
  --text-lg:   clamp(1.1rem,   1.0rem  + 0.5vw,  1.3rem);
  --text-xl:   clamp(1.3rem,   1.1rem  + 0.9vw,  1.6rem);
  --text-2xl:  clamp(1.6rem,   1.25rem + 1.6vw,  2.25rem);
  --text-3xl:  clamp(2rem,     1.5rem  + 2.5vw,  3.25rem);
  --text-4xl:  clamp(2.6rem,   1.8rem  + 4vw,    4.5rem);

  /* Spacing */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem;    --s10: 2.5rem;
  --s12: 3rem;   --s16: 4rem;  --s20: 5rem;   --s24: 6rem;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(13,27,42,.04);
  --shadow-sm: 0 2px 8px rgba(13,27,42,.06), 0 1px 2px rgba(13,27,42,.04);
  --shadow-md: 0 4px 16px rgba(13,27,42,.08), 0 2px 4px rgba(13,27,42,.04);
  --shadow-lg: 0 12px 32px rgba(13,27,42,.10), 0 4px 8px rgba(13,27,42,.05);
  --shadow-xl: 0 24px 56px rgba(13,27,42,.13), 0 8px 16px rgba(13,27,42,.06);

  /* Radii */
  --r-sm: 0.5rem;  --r-md: 0.875rem; --r-lg: 1.25rem;
  --r-xl: 1.75rem; --r-2xl: 2.5rem;  --r-full: 9999px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.64, 0, 0.78, 0);
  --t-fast:   150ms var(--ease-out);
  --t-base:   280ms var(--ease-out);
  --t-slow:   480ms var(--ease-out);

  /* Layout */
  --max-w: 1220px;
  --pad-x: clamp(1rem, 5vw, 2.5rem);
  --nav-h: 70px;
}

/* ─── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ─── Layout ─────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ─── Typography ─────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--text-1); }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--s16);
}
.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--s4);
  color: var(--text-1);
}
.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.6;
}

/* ─── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.7em 1.6em;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: .01em;
  transition: var(--t-base);
  white-space: nowrap;
  line-height: 1;
}
.btn--lg { padding: 0.85em 2em; font-size: var(--text-base); }
.btn--sm { padding: 0.55em 1.2em; font-size: var(--text-xs); }
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(249,115,22,.35);
}
.btn--accent:hover { background: var(--accent-hover); box-shadow: 0 6px 20px rgba(249,115,22,.45); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--text-1);
  box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.btn--navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13,34,64,.3);
}
.btn--navy:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn--white {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn--white:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.btn--outline-white {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45);
}
.btn--outline-white:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn svg { flex-shrink: 0; }

/* ─── Preloader ───────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease-in), visibility 0.5s var(--ease-in);
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__content { text-align: center; }
.preloader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
}
.preloader__signal {
  width: 64px;
  height: 64px;
}
.signal-core {
  opacity: 0;
  animation: signal-core-in 0.4s var(--ease-out) 0.2s forwards;
}
.signal-wave {
  opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: signal-wave-in 0.7s var(--ease-out) forwards;
}
.signal-wave--1 { animation-delay: 0.4s; }
.signal-wave--2 { animation-delay: 0.6s; }
.signal-wave--3 { animation-delay: 0.8s; }
.preloader__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--navy);
  opacity: 0;
  animation: fade-up-in 0.5s var(--ease-out) 0.5s forwards;
}
.preloader__bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-inline: auto;
}
.preloader__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: var(--r-full);
  animation: bar-fill 1.4s var(--ease-out) 0.2s forwards;
}

@keyframes signal-core-in { to { opacity: 1; } }
@keyframes signal-wave-in { to { opacity: 1; stroke-dashoffset: 0; } }
@keyframes bar-fill { to { width: 100%; } }
@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Logo Variants & Nav Over Dark ──────────── */
.nav__logo-svg        { width: 140px; height: 40px; display: block; flex-shrink: 0; }
.nav__logo-svg--light { display: none; }
.nav__logo-svg--dark  { display: block; }

.nav__logo-img { display: none; width: 140px; height: 40px; object-fit: contain; }
.nav__logo-img--dark[src]:not([src=""])  { display: block; }
.nav__logo-img--light[src]:not([src=""]) { display: none; }

/* When real image is loaded → hide SVG fallback */
.nav__logo:has(.nav__logo-img--dark[src]:not([src=""])) .nav__logo-svg--dark   { display: none; }
.nav__logo:has(.nav__logo-img--light[src]:not([src=""])) .nav__logo-svg--light { display: none; }

/* ── nav--over-dark: transparent nav over dark hero ── */
/* Show light logo, hide dark logo */
.nav--over-dark:not(.is-scrolled) .nav__logo-svg--dark  { display: none; }
.nav--over-dark:not(.is-scrolled) .nav__logo-svg--light { display: block; }
.nav--over-dark:not(.is-scrolled) .nav__logo-img--dark  { display: none !important; }
.nav--over-dark:not(.is-scrolled) .nav__logo-img--light[src]:not([src=""]) { display: block !important; }
/* Light nav links */
.nav--over-dark:not(.is-scrolled) .nav__link { color: rgba(255,255,255,.72); }
.nav--over-dark:not(.is-scrolled) .nav__link:hover { color: #fff; }
.nav--over-dark:not(.is-scrolled) .nav__link--active { color: var(--accent); }
.nav--over-dark:not(.is-scrolled) .nav__link--active::after { background: var(--accent); }
.nav--over-dark:not(.is-scrolled) .nav__hamburger span { background: rgba(255,255,255,.9); }

/* Mobile menu open — restore dark text even when nav is over dark hero */
.nav--over-dark .nav__links.is-open .nav__link        { color: var(--text-2); }
.nav--over-dark .nav__links.is-open .nav__link:hover  { color: var(--text-1); }
.nav--over-dark .nav__links.is-open .nav__link--active { color: var(--accent); }
/* Hamburger bars back to dark when menu is expanded */
.nav--over-dark .nav__hamburger[aria-expanded="true"] span { background: var(--text-2); }

/* Footer logo */
.footer__logo-img { display: none; width: 130px; height: 36px; object-fit: contain; }
.footer__logo-img[src]:not([src=""]) { display: block; }
.footer__logo:has(.footer__logo-img[src]:not([src=""])) .footer__logo-svg { display: none; }
.footer__logo-svg { display: block; }

/* ─── Navigation ──────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base), box-shadow var(--t-base);
}
.nav.is-scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light), 0 4px 16px rgba(13,27,42,.06);
}
.nav__container {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--s6);
}
.nav__logo-svg { width: 140px; height: 40px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s1);
  margin-left: auto;
}
.nav__link {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  padding: var(--s2) var(--s3);
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  position: relative;
}
.nav__link:hover, .nav__link--active { color: var(--accent); }
.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--s3);
  right: var(--s3);
  height: 2px;
  background: var(--accent);
  border-radius: var(--r-full);
}
.nav__cta { margin-left: var(--s2); }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: var(--s2);
  border-radius: var(--r-sm);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: var(--r-full);
  transition: var(--t-base);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #e8eef8 0%, #f4f7fb 40%, #fef3e8 100%);
  padding-top: var(--nav-h);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
  padding-block: var(--s20);
}
.hero__content { max-width: 560px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-light);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-full);
  margin-bottom: var(--s6);
  letter-spacing: .03em;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.2);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
  50%       { box-shadow: 0 0 0 6px rgba(249,115,22,.08); }
}
.hero__title {
  font-size: var(--text-4xl);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: var(--s6);
  color: var(--navy);
}
.hero__title-accent {
  color: var(--accent);
  position: relative;
}
.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: var(--r-full);
  opacity: .4;
}
.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: var(--s8);
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

.hero__visual {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
}
.hero__card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: #fff;
  padding: var(--s4) var(--s6);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  animation: float-card 6s ease-in-out infinite;
}
.hero__card--main   { animation-delay: 0s; }
.hero__card--secondary { animation-delay: -2s; margin-left: var(--s12); }
.hero__card--tertiary  { animation-delay: -4s; }
@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.hero__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero__card-icon--blue  { background: #eff6ff; }
.hero__card-icon--green { background: #f0fdf4; }
.hero__card-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}
.hero__card-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-1);
}

.hero__scroll {
  position: absolute;
  bottom: var(--s8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: .06em;
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ─── Stats Strip ─────────────────────────────── */
.stats {
  background: var(--navy);
  padding: var(--s12) 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s8);
  text-align: center;
}
.stats__item { position: relative; }
.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255,255,255,.1);
}
.stats__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s2);
}
.stats__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  font-weight: 500;
}

/* ─── Services Section ────────────────────────── */
.services {
  padding: var(--s24) 0;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  position: relative;
  transition: var(--t-slow);
  box-shadow: var(--shadow-sm);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card--featured {
  background: var(--navy);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.service-card--featured .service-card__title { color: #fff; }
.service-card--featured .service-card__desc  { color: rgba(255,255,255,.6); }
.service-card--featured .service-card__features li { color: rgba(255,255,255,.8); }
.service-card--featured .service-card__features li::before { background: var(--accent); }
.service-card--featured .service-card__link { color: var(--accent); }
.service-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--s1) var(--s4);
  border-radius: var(--r-full);
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(249,115,22,.4);
}
.service-card__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  margin-bottom: var(--s2);
}
.service-card--featured .service-card__icon-wrap { background: rgba(249,115,22,.15); }
.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  flex: 1;
}
.service-card__features {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.service-card__features li {
  font-size: var(--text-sm);
  color: var(--text-2);
  padding-left: var(--s5);
  position: relative;
}
.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--accent);
  margin-top: var(--s2);
  transition: var(--t-fast);
}
.service-card__link:hover { gap: var(--s3); }

/* ─── Features Section ────────────────────────── */
.features {
  background: var(--surface-alt);
  padding: var(--s24) 0;
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,.06) 0%, transparent 70%);
  pointer-events: none;
}
.features__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s20);
  align-items: center;
}
.features__left { max-width: 480px; }
.features__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--s6);
  line-height: 1.1;
}
.features__desc {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: var(--s8);
}
.features__right {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s4);
  background: var(--surface);
  padding: var(--s5) var(--s6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-light);
  transition: var(--t-base);
}
.feature-item:hover {
  border-color: var(--accent-dim);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-item__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--s1);
}
.feature-item__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
}

/* ─── How It Works ────────────────────────────── */
.how-it-works {
  padding: var(--s24) 0;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--s12);
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-inline: var(--s6);
}
.step__connector {
  width: 80px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 50%, var(--border) 50%);
  background-size: 8px 2px;
  margin-top: 36px;
}
.step__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--accent);
  opacity: .15;
  line-height: 1;
  margin-bottom: var(--s4);
}
.step__content {}
.step__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--s3);
}
.step__desc {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 280px;
  margin-inline: auto;
}

/* ─── Plans Section ───────────────────────────── */
.plans-section {
  padding: var(--s24) 0;
}
.plans-tabs {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  margin-bottom: var(--s12);
  background: var(--surface);
  padding: var(--s2);
  border-radius: var(--r-full);
  width: fit-content;
  margin-inline: auto;
  box-shadow: var(--shadow-sm);
}
.plans-tab {
  padding: 0.6em 1.6em;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--t-base);
}
.plans-tab.is-active, .plans-tab:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(249,115,22,.35);
}
.plans-panel { display: none; }
.plans-panel.is-active { display: block; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s6);
  max-width: 960px;
  margin-inline: auto;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  transition: var(--t-slow);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.plan-card--highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan-card__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.plan-card__speed {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}
.plan-card__speed span {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-2);
}
.plan-card__type {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.plan-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
}
.plan-card__features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.plan-card__features li {
  font-size: var(--text-sm);
  color: var(--text-2);
  padding-left: var(--s5);
  position: relative;
}
.plan-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: var(--s1);
  margin-top: var(--s2);
}
.plan-card__price-note {
  font-size: var(--text-sm);
  color: var(--text-3);
}
.plan-card .btn { width: 100%; justify-content: center; }

/* ─── Plans Hero ──────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--nav-h) + var(--s16)) 0 var(--s16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,.15);
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: 5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(249,115,22,.1);
}
.page-hero__content { position: relative; z-index: 1; text-align: center; }
.page-hero__tag { color: var(--accent); margin-bottom: var(--s4); }
.page-hero__tag::before { background: var(--accent); }
.page-hero__title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--s4);
}
.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.65);
  max-width: 540px;
  margin-inline: auto;
}

/* ─── FAQ ─────────────────────────────────────── */
.faq-section {
  padding: var(--s24) 0;
  background: var(--surface-alt);
}
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.faq-item__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  width: 100%;
  padding: var(--s5) var(--s6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  transition: var(--t-fast);
}
.faq-item__btn:hover { color: var(--accent); }
.faq-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--text-2);
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1;
  transition: var(--t-base);
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); background: var(--accent-dim); color: var(--accent); }
.faq-item__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-base);
}
.faq-item.is-open .faq-item__body { grid-template-rows: 1fr; }
.faq-item__inner {
  overflow: hidden;
  padding: 0 var(--s6) 0;
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}
.faq-item.is-open .faq-item__inner { padding-bottom: var(--s5); }

/* ─── Contact Section ─────────────────────────── */
.contact-section {
  padding: var(--s24) 0;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s16);
  align-items: start;
}
.contact-info {}
.contact-info__title {
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--s4);
}
.contact-info__desc {
  color: var(--text-2);
  margin-bottom: var(--s8);
  line-height: 1.65;
}
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.contact-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s5);
  transition: var(--t-base);
}
.contact-card:hover { border-color: var(--accent-dim); transform: translateX(4px); }
/* Text column inside contact card must be able to shrink and wrap */
.contact-card > div:not(.contact-card__icon) { min-width: 0; flex: 1; }
.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--accent-light);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card__icon--green { background: #f0fdf4; color: var(--green); }
.contact-card__icon--blue  { background: #eff6ff; color: var(--blue); }
.contact-card__label {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 2px;
}
.contact-card__value {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s10);
  overflow: hidden;       /* prevents reCAPTCHA or any child from breaking out */
  max-width: 100%;        /* safety net */
  box-shadow: var(--shadow-md);
}
.contact-form__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--s6);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.form-group--full { grid-column: 1 / -1; }
.form-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-input,
.form-select,
.form-textarea {
  padding: 0.75em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text-1);
  font-size: var(--text-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  width: 100%;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-submit {
  margin-top: var(--s2);
  width: 100%;
  justify-content: center;
}
.form-success {
  display: none;
  text-align: center;
  padding: var(--s10);
  color: var(--green);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
}
.map-section {
  padding: 0 0 var(--s24);
}
.map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 380px;
  border: 1px solid var(--border-light);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* ─── Child Protection ────────────────────────── */
.protection-section {
  padding: var(--s24) 0;
}
.protection-intro {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: var(--s16);
}
.protection-intro p { color: var(--text-2); line-height: 1.7; margin-top: var(--s4); }
.law-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-bottom: var(--s16);
}
@media (max-width: 900px) { .law-cards { grid-template-columns: 1fr 1fr; } }
.law-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s8);
}
.law-card__number {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .05em;
  margin-bottom: var(--s3);
}
.law-card__title { font-size: var(--text-lg); font-weight: 700; margin-bottom: var(--s3); color: #fff; }
.law-card__desc { font-size: var(--text-sm); color: rgba(255,255,255,.65); line-height: 1.6; }

.report-section {
  background: var(--surface-alt);
  padding: var(--s16) 0;
  margin-bottom: var(--s16);
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
  max-width: 800px;
  margin-inline: auto;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s6);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.report-card__org {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent);
}
.report-card__name { font-size: var(--text-base); font-weight: 700; }
.report-card__phone {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--navy);
}
.report-card__phone a { color: inherit; }
.report-card__phone a:hover { color: var(--accent); }

.parental-section {
  padding: var(--s8) 0;
}
.parental-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s16);
  align-items: center;
}
.parental-tips { display: flex; flex-direction: column; gap: var(--s4); }
.parental-tip {
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
}
.parental-tip__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.parental-tip__title { font-weight: 600; margin-bottom: var(--s1); }
.parental-tip__desc { font-size: var(--text-sm); color: var(--text-2); }
.parental-tool-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-xl);
  padding: var(--s8);
  color: #fff;
}
.parental-tool-card__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.parental-tool-card__title { font-size: var(--text-xl); font-weight: 800; margin-bottom: var(--s4); color: #fff; }
.parental-tool-card__desc { font-size: var(--text-sm); color: rgba(255,255,255,.65); line-height: 1.6; margin-bottom: var(--s6); }
.parental-tool-card__features { display: flex; flex-direction: column; gap: var(--s2); }
.parental-tool-card__features li {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.75);
  padding-left: var(--s5);
  position: relative;
}
.parental-tool-card__features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ─── Speed Test ──────────────────────────────── */
.speedtest-section {
  padding: var(--s24) 0;
}
/* ─── Speed Test Widget ──────────────────────── */
.speedtest-widget {
  max-width: 560px;
  margin-inline: auto;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--r-xl);
  padding: var(--s10) var(--s8) var(--s8);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 24px 64px rgba(13,27,42,.25);
}
.stw-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s6);
}
.stw-gauge-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}
.stw-gauge-svg { width: 100%; height: 100%; }
.stw-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stw-speed-val {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  min-width: 4ch;
  text-align: center;
}
.stw-speed-unit {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: .05em;
  margin-top: 2px;
}
.stw-phase {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin-top: var(--s2);
  text-align: center;
  max-width: 130px;
}
.stw-start-btn { gap: var(--s2); min-width: 180px; justify-content: center; }
.stw-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  margin-top: var(--s8);
  padding-top: var(--s8);
  border-top: 1px solid rgba(255,255,255,.08);
}
.stw-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  text-align: center;
}
.stw-metric__icon { display: flex; margin-bottom: 2px; }
.stw-metric__data { display: flex; align-items: baseline; gap: 3px; }
.stw-metric__val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  min-width: 2ch;
  text-align: right;
}
.stw-metric__unit { font-size: var(--text-xs); color: rgba(255,255,255,.4); font-weight: 600; }
.stw-metric__label { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .07em; }
.stw-credit {
  text-align: center;
  margin-top: var(--s6);
  font-size: 11px;
  color: rgba(255,255,255,.22);
}
.stw-credit strong { color: rgba(255,255,255,.35); font-weight: 600; }
.speedtest-tips {
  padding: var(--s16) 0 var(--s8);
}
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  padding: var(--s6);
}
.tip-card__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
  margin-bottom: var(--s3);
}
.tip-card__title { font-weight: 700; margin-bottom: var(--s2); }
.tip-card__desc { font-size: var(--text-sm); color: var(--text-2); line-height: 1.6; }

/* ─── CTA Banner ──────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  padding: var(--s24) 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.cta-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta-banner__title {
  font-size: var(--text-3xl);
  font-weight: 900;
  color: #fff;
  margin-bottom: var(--s4);
}
.cta-banner__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--s8);
}
.cta-banner__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s3);
}

/* ─── Footer ──────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: var(--s20) 0 var(--s8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
  gap: var(--s10);
  padding-bottom: var(--s16);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--s8);
}
.footer__logo { display: block; margin-bottom: var(--s5); }
.footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: var(--s5);
  max-width: 280px;
}
.footer__contact-quick { display: flex; flex-direction: column; gap: var(--s2); }
.footer__contact-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
}
.footer__contact-link:hover { color: var(--accent); }
.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--s5);
  letter-spacing: .03em;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  transition: color var(--t-fast);
}
.footer__links a:hover { color: var(--accent); }
.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: #25d366;
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: var(--t-base);
  margin-bottom: var(--s5);
}
.footer__whatsapp:hover { background: #22c55e; transform: translateY(-2px); }
.footer__address {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: rgba(255,255,255,.4);
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
}
.footer__copyright { font-size: var(--text-xs); color: rgba(255,255,255,.35); }
.footer__legal-links { display: flex; gap: var(--s5); }
.footer__legal-links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  transition: color var(--t-fast);
}
.footer__legal-links a:hover { color: rgba(255,255,255,.7); }

/* ─── Animations / Scroll Reveals ───────────────── */
[data-animate] {
  opacity: 0;
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-animate="fade-up"]    { transform: translateY(32px); }
[data-animate="fade-left"]  { transform: translateX(32px); }
[data-animate="fade-right"] { transform: translateX(-32px); }
[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__card    { animation: none; }
  .hero__scroll-line, .hero__badge-dot { animation: none; }
}

/* ─── Image Slots (Placeholders) ─────────────── */
.img-slot {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(145deg, #eaf0f9 0%, #dce6f2 100%);
  border: 2px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  text-align: center;
  padding: var(--s8);
  transition: border-color var(--t-base);
  margin: 0;
}
.img-slot__icon { color: var(--text-3); opacity: .45; }
.img-slot__label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: .04em;
}
.img-slot__dims {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-family: monospace;
  background: rgba(255,255,255,.7);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.img-slot__hint {
  font-size: 10px;
  color: var(--text-3);
  line-height: 1.5;
  max-width: 220px;
}
.img-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Cuando el img tiene src real, oculta el placeholder */
.img-slot:has(img[src]:not([src=""])) {
  border: none;
  background: transparent;
  padding: 0;
}
.img-slot:has(img[src]:not([src=""])) .img-slot__icon,
.img-slot:has(img[src]:not([src=""])) .img-slot__label,
.img-slot:has(img[src]:not([src=""])) .img-slot__dims,
.img-slot:has(img[src]:not([src=""])) .img-slot__hint { display: none; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__grid .service-card:last-child { grid-column: 1 / -1; max-width: 400px; margin-inline: auto; }
  .features__layout { grid-template-columns: 1fr; gap: var(--s12); }
  .features__left { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero__container { grid-template-columns: 1fr; gap: var(--s10); padding-block: var(--s16); }
  .hero__visual { flex-direction: row; flex-wrap: wrap; }
  .hero__card--secondary { margin-left: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .parental-grid { grid-template-columns: 1fr; }
  .law-cards { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(16px);
    padding: var(--s8) var(--pad-x);
    gap: var(--s2);
    overflow-y: auto;
    z-index: 999;
    animation: menu-slide-in .3s var(--ease-out);
  }
  @keyframes menu-slide-in {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav__link { font-size: var(--text-base); padding: var(--s3) var(--s4); border-radius: var(--r-md); }
  .nav__cta  { display: none; }
  .nav__hamburger { display: flex; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__item:nth-child(2)::after { display: none; }
  .steps { flex-direction: column; align-items: center; }
  .step__connector { width: 2px; height: 40px; background: linear-gradient(to bottom, var(--accent) 50%, var(--border) 50%); background-size: 2px 8px; }
  .hero__visual { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .tips-grid { grid-template-columns: 1fr; }
  .plans-tabs { flex-wrap: wrap; border-radius: var(--r-xl); }
  .services__grid { grid-template-columns: 1fr; }
  .services__grid .service-card:last-child { grid-column: auto; max-width: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-banner__actions { flex-direction: column; align-items: center; }
  .law-cards { grid-template-columns: 1fr; }

  /* Reduce contact form padding on small screens so reCAPTCHA has room */
  .contact-form { padding: var(--s6); }

  /* reCAPTCHA v2 renders at a fixed 304px — scale it down to fit narrow screens */
  .g-recaptcha {
    transform: scale(0.82);
    transform-origin: left top;
    margin-bottom: calc(var(--s5) - 48px); /* compensate for vertical space freed */
  }
}

/* ─── Law Card: clickable ────────────────────── */
.law-card { transition: transform var(--t-base), box-shadow var(--t-base); }
.law-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(13,27,42,.35); }
.law-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s5);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap var(--t-fast);
}
.law-card__link:hover { gap: 10px; }

/* ─── PDF Viewer Pages ───────────────────────── */
.pdf-viewer-section { padding: var(--s10) 0 var(--s20); }
.doc-meta-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s8);
  margin-bottom: var(--s8);
  display: flex;
  align-items: flex-start;
  gap: var(--s8);
  flex-wrap: wrap;
}
.doc-meta-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.doc-meta-card__body { flex: 1; min-width: 200px; }
.doc-meta-card__label { font-size: var(--text-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; margin-bottom: var(--s2); }
.doc-meta-card__title { font-size: var(--text-xl); font-weight: 800; color: var(--text-1); margin-bottom: var(--s3); }
.doc-meta-card__desc { font-size: var(--text-sm); color: var(--text-2); line-height: 1.65; margin-bottom: var(--s6); }
.doc-meta-card__actions { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.pdf-embed-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(13,27,42,.1);
  border: 1px solid var(--border-light);
  background: var(--surface);
}
.pdf-embed {
  width: 100%;
  height: 78vh;
  min-height: 520px;
  border: none;
  display: block;
}
.pdf-fallback {
  padding: var(--s12);
  text-align: center;
  color: var(--text-2);
}

/* ─── Info / Policy Pages ────────────────────── */
.info-section { padding: var(--s16) 0; }
.info-section--alt { background: var(--surface-alt); }
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s5);
  margin-top: var(--s10);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--s8);
  min-width: 0;
  overflow-wrap: break-word;
  box-sizing: border-box;
}
.info-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-lg);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: var(--s4);
}
.info-card__title { font-size: var(--text-base); font-weight: 700; color: var(--text-1); margin-bottom: var(--s2); }
.info-card__desc { font-size: var(--text-sm); color: var(--text-2); line-height: 1.65; }
.info-card--dark {
  background: var(--navy);
  border-color: rgba(255,255,255,.07);
}
.info-card--dark .info-card__title { color: #fff; }
.info-card--dark .info-card__desc { color: rgba(255,255,255,.6); }
.info-card--dark .info-card__icon { background: rgba(249,115,22,.15); }
.policy-prose {
  max-width: 760px;
  margin-inline: auto;
}
.policy-prose p { color: var(--text-2); line-height: 1.75; margin-bottom: var(--s4); }
.policy-prose h3 { font-size: var(--text-lg); font-weight: 700; color: var(--text-1); margin: var(--s8) 0 var(--s3); }
.policy-prose ul { margin: var(--s3) 0 var(--s5) var(--s6); }
.policy-prose li { color: var(--text-2); font-size: var(--text-sm); line-height: 1.7; margin-bottom: var(--s2); }

/* ─── Video Embed ────────────────────────────── */
.video-section { padding: var(--s16) 0; background: var(--surface-alt); }
.video-embed-wrap {
  max-width: 800px;
  margin-inline: auto;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 16px 48px rgba(13,27,42,.12);
}
.video-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
