/* ================================
   CÓSMICA — Landing Page Styles
   ================================ */

:root {
  --cream: #fff2bd;
  --blue: #375af4;
  --ink: #353535;
  --ink-55: rgba(53,53,53,0.55);
  --ink-12: rgba(53,53,53,0.12);
  --ink-08: rgba(53,53,53,0.08);
  --white-88: rgba(255,255,255,0.88);
  --white-80: rgba(255,255,255,0.8);
  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* prevent horizontal scroll on all browsers */
}

/* Visually hidden but readable by screen readers / search engines —
   for semantic headings that would otherwise disrupt a section's visual layout. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
}

/* ================================
   BUTTONS
   ================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--cream);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: .88; transform: translateY(-1px); }

/* ================================
   NAV
   ================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--blue);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 80px;
  display: flex;
  align-items: stretch;
}
.nav-center {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}
/* Equal flexible spacers on both sides of each divider — puts each divider exactly
   halfway between logo↔links and links↔cta, regardless of how much room is available. */
.nav-spacer {
  flex: 1 1 0;
}
.nav-divider {
  width: 1px;
  align-self: stretch;
  background: var(--blue);
  flex-shrink: 0;
  /* .nav-inner has vertical padding, which would otherwise leave the divider short of
     the navbar's true top/bottom edges — break out of it so it runs edge to edge. */
  margin: -12px 0;
}
.nav-divider--mobile {
  display: none;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img { height: 36px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  text-decoration: none;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: .65; }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-signin {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .2s;
}
.link-signin:hover { opacity: .65; }
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-bar {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-hamburger.open .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open .hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.open .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ================================
   MOBILE NAV OVERLAY
   ================================ */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 98;
  overflow: hidden;
  background: var(--blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  clip-path: circle(0% at calc(100% - 42px) 42px);
  transition: clip-path .55s cubic-bezier(.77,0,.18,1),
              opacity .2s ease;
}
.mnav.open {
  opacity: 1;
  pointer-events: all;
  clip-path: circle(150% at calc(100% - 42px) 42px);
  transition: clip-path .6s cubic-bezier(.77,0,.18,1),
              opacity .1s ease;
}

/* Background decorative character */
.mnav-bg-deco {
  position: absolute;
  bottom: -60px;
  right: -30px;
  font-size: 320px;
  line-height: 1;
  color: rgba(255,255,255,.05);
  font-family: var(--font-heading);
  font-weight: 800;
  pointer-events: none;
  user-select: none;
}

/* Links */
.mnav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}
.mnav-link {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(44px, 12vw, 64px);
  color: var(--cream);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(48px) skewY(4deg);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.68,0,1.2), color .2s;
}
.mnav.open .mnav-link:nth-child(1) { opacity: 1; transform: none; transition-delay: .12s; }
.mnav.open .mnav-link:nth-child(2) { opacity: 1; transform: none; transition-delay: .20s; }
.mnav.open .mnav-link:nth-child(3) { opacity: 1; transform: none; transition-delay: .28s; }
.mnav-link:hover { color: rgba(255,242,189,.6); }

/* CTA */
.mnav-cta {
  background: var(--cream);
  color: var(--blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .4s ease .36s, transform .4s cubic-bezier(.22,.68,0,1.2) .36s, background .2s;
}
.mnav.open .mnav-cta { opacity: 1; transform: translateY(0); }
.mnav-cta:hover { opacity: .85; }

/* Footer trust line */
.mnav-footer {
  position: absolute;
  bottom: 36px;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,242,189,.5);
  opacity: 0;
  transition: opacity .4s ease .44s;
}
.mnav.open .mnav-footer { opacity: 1; }

/* ================================
   HERO
   ================================ */
.hero {
  padding: 80px 80px 0;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 480px;
  flex-shrink: 0;
  padding-top: 40px;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(34px, 3vw, 50px);
  line-height: 1.15;
  color: var(--blue);
  text-align: left;
  margin-bottom: 20px;
}
.hero-subtitle {
  max-width: 420px;
  color: var(--blue);
  opacity: .8;
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
  margin-bottom: 28px;
}
.hero-cta {
  margin-bottom: 0;
}
.hero-visual {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}
/* Phone-mockup.png anchor slot + the real #pm-phone element are defined further down,
   in the shared "Phone (center)" block near .srv-scroll — see .phone-anchor / .pm-phone */

/* ================================
   STATS BAR
   ================================ */
.stats-bar {
  background: var(--cream);
  padding: 32px 80px;
  border-top: 1px solid rgba(55,90,244,.12);
  border-bottom: 1px solid rgba(55,90,244,.12);
  position: relative;
  z-index: 4; /* above .pm-phone (z-index 3) so it visually covers it */
}
.stats-inner {
  max-width: 1132px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.stat-number {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--blue);
  white-space: nowrap;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--blue);
  opacity: .7;
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 52px;
  background: var(--blue);
  opacity: .15;
  flex-shrink: 0;
}

/* ================================
   SERVICES — scroll sticky
   ================================ */
.srv-scroll {
  height: 240vh;
  position: relative;
}
.srv-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.srv-stage {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 48px;
  align-items: center;
}

/* ── Cards ── */
.srv-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 280px;
}
.srv-card {
  position: absolute;
  width: 100%;
  max-width: 370px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  /* Fade only — same appear/disappear treatment as the phone's screen image */
  transition: opacity .3s ease;
  pointer-events: none;
  will-change: opacity;
}
.srv-card.active {
  opacity: 1;
  pointer-events: all;
}
.srv-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--blue);
  line-height: 1.3;
}
.srv-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--blue);
  opacity: .55;
  line-height: 1.65;
}
.srv-card .btn-primary {
  align-self: flex-start;
  font-size: 14px;
  padding: 11px 22px;
}

/* ── Phone (center) ── */
/* Invisible placeholder — reserves layout space; #pmPhone (fixed) tracks its rect via JS.
   Same box-model as the real phone so the tracked size/position lines up exactly. */
.phone-anchor {
  position: relative;
  visibility: hidden;
}
.phone-anchor::before {
  content: '';
  display: block;
  padding-top: calc(932 / 454 * 100%); /* Phone-mockup.png aspect ratio */
}
.phone-anchor--hero {
  width: 342px;
  max-width: 90%;
  margin-bottom: -100px; /* debe quedar <= altura real de .stats-bar (~120px) para que no sobresalga */
}
.phone-anchor--srv {
  width: 260px;
  flex-shrink: 0;
}

/* ── The single continuous phone (Hero → Servicios), position/size driven by script.js ── */
.pm-phone {
  position: fixed;
  top: 0;
  left: 0;
  width: 342px; /* base size — srv phase scales down via transform, computed in JS */
  z-index: 3;
  pointer-events: none;
  transform-origin: top left;
  will-change: transform, opacity;
}
.pm-phone::before {
  content: '';
  display: block;
  padding-top: calc(932 / 454 * 100%);
}
.pm-screen {
  position: absolute;
  left: 4.63%;
  top: 7.3%;
  width: 90.97%;
  height: 90.88%;
  overflow: hidden;
  background: var(--cream);
}
.pm-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: opacity .3s ease;
}
#pmScreenImgNext {
  opacity: 0;
}
.pm-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--cream) 92%);
  opacity: 1; /* on during Hero, toggled off by JS once settled in servicios */
  transition: opacity .3s ease;
}
.pm-fade-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, transparent 55%, var(--cream) 92%);
  opacity: 0; /* toggled by JS as the phone re-emerges into servicios */
  transition: opacity .3s ease;
}
/* The mockup frame always renders on top, masking the screen's square corners */
.pm-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* ================================
   SERVICES — MOBILE LAYOUT
   (hidden on desktop, shown ≤900px)
   ================================ */
.srv-mobile {
  display: none; /* shown via media query */
  flex-direction: column;
  gap: 80px; /* large gap so only one item is in the active zone at a time */
  padding: 60px 20px 80px;
}

/* Sequential scroll reveal — appears AND disappears one at a time */
.srv-m-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.68,0,1.2);
}
.srv-m-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card */
.srv-m-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.srv-m-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue);
  line-height: 1.3;
}
.srv-m-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--blue);
  opacity: .6;
  line-height: 1.65;
}
.srv-m-card .btn-primary {
  align-self: flex-start;
  font-size: 14px;
  padding: 11px 22px;
}

/* Visual (phone screenshot) */
.srv-m-visual {
  position: relative;
  width: 220px;
  margin: 0 auto;
}
.srv-m-phone {
  width: 100%;
  display: block;
  border-radius: 22px;
  mix-blend-mode: darken;
}
.srv-m-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--cream) 90%);
  border-radius: 22px;
  pointer-events: none;
}
/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
  padding: 48px 80px 120px;
  max-width: 1440px;
  margin: 0 auto;
}
.testimonials-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--blue);
  text-align: center;
  margin-bottom: 32px;
}
.testimonials-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--blue);
  border-radius: 24px;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 12px 28px rgba(55,90,244,.22);
}
.stars { display: flex; gap: 1px; align-items: center; }
.stars iconify-icon { display: block; }
.testimonial-text {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream);
  opacity: .92;
  line-height: 1.65;
  flex: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.google-badge { height: 18px; width: auto; display: block; }
.testimonial-author span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--cream);
}

/* ================================
   ABOUT / WHO WE ARE
   ================================ */
.about {
  padding: 0 80px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.about-inner { max-width: 720px; }
.about h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 6px;
}
.about-no-surprises {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
}
.about-text {
  font-size: 13px;
  color: var(--ink);
  opacity: .7;
  line-height: 1.6;
  max-width: 540px;
}

/* ================================
   PRICING
   ================================ */
.pricing {
  padding: 60px 80px 100px;
  max-width: 1440px;
  margin: 0 auto;
}
.pricing-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.pricing-header {
  text-align: center;
  max-width: 560px;
}
.pricing-header h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 10px;
}
.pricing-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--blue);
  opacity: .7;
  line-height: 1.65;
  margin-bottom: 8px;
}
.pricing-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
}

/* Classic side-by-side pricing row — the middle (Pro) plan sits slightly elevated */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 1100px;
  align-items: center;
}

.plan-card {
  background: var(--cream);
  border: 1.5px solid rgba(55,90,244,.18);
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(55,90,244,.08);
}
.plan-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--blue);
  margin-bottom: 6px;
}
.plan-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--blue);
  opacity: .8;
  margin-bottom: 16px;
}
.plan-divider {
  height: 1px;
  background: rgba(55,90,244,.15);
  margin-bottom: 16px;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-features li {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--blue);
  opacity: .8;
  padding-left: 14px;
  position: relative;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(55,90,244,.65);
}

/* Pro plan (highlighted) — solid blue, scaled up slightly to stand out in the row */
.plan-pro {
  background: var(--blue);
  border-color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 12px 32px rgba(55,90,244,.28);
  z-index: 1;
}
.plan-pro h3 { color: var(--cream); }
.plan-pro .plan-price { color: var(--cream); }
.plan-pro .plan-divider { background: rgba(255,242,189,.15); }
.plan-pro .plan-features li { color: var(--cream); opacity: .9; }
.plan-pro .plan-features li::before { background: rgba(255,242,189,.65); }

.plan-badge {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,242,189,.2);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 100px;
}

/* ================================
   FAQ
   ================================ */
.faq {
  padding: 80px;
  max-width: 1440px;
  margin: 0 auto;
}
.faq-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--blue);
  line-height: 1.1;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: var(--cream);
  border: 1.5px solid rgba(55,90,244,.18);
  border-radius: 18px;
  padding: 4px 22px;
  box-shadow: 0 4px 20px rgba(55,90,244,.06);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  line-height: 1.4;
}
.faq-icon {
  color: var(--blue);
  font-size: 14px;
  flex-shrink: 0;
  transition: transform .25s;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 18px;
}
.faq-answer p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--blue);
  opacity: .7;
  line-height: 1.6;
}

/* ================================
   FINAL CTA
   ================================ */
.cta-final {
  padding: 100px 80px;
  text-align: center;
  border-top: 1px solid rgba(55,90,244,.12);
}
.cta-final-inner {
  max-width: 1082px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(32px, 4.5vw, 64px);
  color: var(--blue);
  line-height: 1.1;
}
.cta-subtitle {
  max-width: 486px;
  font-size: 14px;
  color: var(--blue);
  opacity: .7;
  line-height: 1.65;
}

/* ================================
   MODAL
   ================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(53, 53, 53, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--cream);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(53,53,53,.18), 0 0 0 1px rgba(53,53,53,.06);
  transform: translateY(16px) scale(.97);
  transition: transform .28s cubic-bezier(.22,.68,0,1.2);
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 100px;
  border: 1.5px solid var(--ink-12);
  background: rgba(255,255,255,.6);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.modal-close:hover {
  background: rgba(255,255,255,.95);
  border-color: var(--ink-12);
}
.modal-header {
  margin-bottom: 28px;
}
.modal-logo {
  margin-bottom: 16px;
}
.modal-logo img { display: block; }
.modal-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
  margin-bottom: 6px;
  line-height: 1.2;
}
.modal-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-55);
  line-height: 1.5;
}

/* ── Form inside modal ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  color: var(--ink);
  letter-spacing: .01em;
}
.required { color: var(--blue); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.75);
  border: 1.5px solid var(--ink-12);
  border-radius: 10px;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
  resize: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-55); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(55,90,244,.1);
  background: #fff;
}
.form-submit { width: 100%; margin-top: 4px; }
.form-error {
  font-family: var(--font-body);
  font-size: 13px;
  color: #d93025;
  margin-top: -4px;
}

/* ── Success state ── */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 32px 0 16px;
}
.success-icon {
  width: 60px; height: 60px;
  background: var(--blue);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  font-weight: 700;
}
.form-success h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--blue);
}
.form-success p {
  font-size: 14px;
  color: var(--ink-55);
}

/* ================================
   FOOTER
   ================================ */
.footer {
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}
.footer-card {
  background: var(--blue);
  border-radius: 32px;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 0 20px 48px rgba(55,90,244,.28);
}
.footer-brand {
  display: flex;
  justify-content: flex-start;
}
.footer-logo-mark {
  display: block;
  height: 36px;
  width: auto;
  /* logo.png is solid blue — brightness(0) flattens it to a black silhouette
     (keeping the PNG's alpha), then invert(1) flips that to white. Plain CSS
     filters, no CSS Mask support required. */
  filter: brightness(0) invert(1);
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: var(--cream);
  opacity: .55;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.footer-col a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--cream);
  text-decoration: none;
  transition: opacity .2s;
  line-height: 1.4;
}
.footer-col a:hover { opacity: .65; }
.footer-note {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--cream);
  opacity: .6;
  text-align: center;
}

/* ================================
   SCROLL REVEAL ANIMATIONS
   ================================ */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1100px) {
  .nav-inner { padding: 12px 40px; }
  .hero { padding: 60px 40px 0; }
  .stats-bar { padding: 26px 40px; }
  .stats-inner { gap: 16px; }
  .stat-number { font-size: 18px; }
  .stat-label { font-size: 11px; }
  .services { padding: 80px 40px; }
  .testimonials { padding: 60px 40px; }
  .pricing { padding: 60px 40px; }
  .faq { padding: 60px 40px; }
  .cta-final { padding: 80px 40px; }
  .footer { padding: 60px 40px; }
}

@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-divider--mobile {
    display: block;
    width: 1px;
    align-self: stretch;
    background: var(--blue);
    flex-shrink: 0;
    margin: -12px 0;
  }

  /* Hero: back to the stacked, centered layout on mobile (two-column is desktop-only) */
  .hero { flex-direction: column; gap: 32px; }
  .hero-copy { align-items: center; max-width: 100%; }
  .hero-title, .hero-subtitle { text-align: center; }
  .hero-visual { width: 100%; }
  .phone-anchor--hero { margin: 0 auto -100px; }

  .stats-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
  }
  .stat-divider { display: none; }

  /* Services: swap desktop ↔ mobile versions */
  .srv-scroll { display: none; }
  .srv-mobile { display: flex; }
  .srv-dots { display: none; }

  .testimonials-inner { grid-template-columns: 1fr; }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
  .plan-pro { transform: none; }

  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-card { padding: 36px 32px; }
}

@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 12px 20px; }
  .hero { padding: 48px 20px 0; }
  .hero-title { font-size: 32px; }
  .stats-bar { padding: 20px; }
  .services { padding: 60px 20px; }
  .testimonials { padding: 48px 20px; }
  .pricing { padding: 48px 20px; }
  .faq { padding: 48px 20px; }
  .cta-final { padding: 60px 20px; }
  .footer { padding: 48px 20px; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-card { padding: 28px 22px; border-radius: 24px; }
  .cta-title { font-size: 28px; }
}
