/* ================================
   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 */
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  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(--ink-08);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.nav-links {
  justify-self: center;
}
.nav-cta {
  justify-self: end;
}
.nav-logo img { height: 36px; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.link-signin {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.link-signin:hover { color: var(--blue); }
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--cream);
  border: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { transform: scale(1.08); }
.nav-hamburger.open {
  background: var(--ink);
}
.nav-hamburger iconify-icon {
  transition: transform .35s cubic-bezier(.22,.68,0,1.2);
  display: block;
}
.nav-hamburger.open iconify-icon { transform: rotate(90deg); }

/* ================================
   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.open #mnav-login { opacity: 1 !important; transform: none !important; transition-delay: .36s !important; }
.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 { background: #fff; }

/* 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;
  text-align: center;
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.15;
  color: var(--blue);
  max-width: 826px;
  margin-bottom: 24px;
}
.hero-subtitle {
  max-width: 418px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 32px;
}
.hero-cta {
  margin-bottom: 48px;
}
.hero-phone {
  position: relative;
  width: 342px;
  max-width: 90%;
  margin: 0 auto -260px;
}
.hero-phone img {
  width: 100%;
  display: block;
  border-radius: 20px;
  mix-blend-mode: darken;
}
.hero-phone-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 38%, var(--cream) 65%);
  border-radius: 0 0 20px 20px;
}

/* ================================
   STATS BAR
   ================================ */
.stats-bar {
  background: var(--cream);
  padding: 26px 80px;
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  position: relative;
  z-index: 1;
}
.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: 4px;
  text-align: center;
}
.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);
  white-space: nowrap;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--blue);
  opacity: .3;
  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;
  background: var(--white-80);
  border: 1px solid var(--ink-08);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
  pointer-events: none;
  will-change: opacity, transform;
}
.srv-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.srv-col-left .srv-card  { transform-origin: left center; }
.srv-col-right .srv-card { transform-origin: right center; }
.srv-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  line-height: 1.3;
}
.srv-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  opacity: .6;
  line-height: 1.65;
}
.srv-card .btn-primary {
  align-self: flex-start;
  font-size: 14px;
  padding: 11px 22px;
}

/* ── Phone (center) ── */
.srv-phone-wrap {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Each screen stacks on top of each other */
.srv-screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  z-index: 0;
  /* z-index baja DESPUÉS de que termina el fade-out */
  transition: opacity .5s ease, z-index 0s .5s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Reserve space for the tallest screen */
.srv-phone-wrap::before {
  content: '';
  display: block;
  padding-top: calc(669 / 309 * 100%);
}
.srv-screen.active {
  opacity: 1;
  z-index: 1; /* sube inmediatamente al activarse */
  transition: opacity .5s ease;
  pointer-events: all;
}
.srv-screen img {
  width: 100%;
  display: block;
  border-radius: 22px;
  mix-blend-mode: darken;
}
.srv-screen-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--cream) 82%);
  border-radius: 22px;
}

/* Recommendation widget overlay (step 1) */
.srv-rec-overlay {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 108%;
}
.srv-rec-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(53,53,53,.12);
}

/* Chat overlay (step 2 — sin imagen de fondo) */
.srv-screen-chat {
  justify-content: center;
  align-items: stretch;
}
.srv-chat-overlay {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
}
.chat-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
}
.chat-incoming {
  background: var(--white-88);
  border: 1px solid rgba(53,53,53,.06);
  color: var(--ink);
  align-self: flex-start;
  backdrop-filter: blur(6px);
}
.chat-outgoing {
  background: var(--blue);
  color: var(--cream);
  align-self: flex-end;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--white-88);
  border: 1px solid rgba(53,53,53,.06);
  border-radius: 16px;
  width: 58px;
  align-self: flex-start;
  backdrop-filter: blur(6px);
}
.chat-typing span {
  width: 7px; height: 7px;
  background: var(--ink);
  opacity: .4;
  border-radius: 50%;
  animation: typing 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-3px); opacity: .8; }
}


/* ================================
   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 {
  background: var(--white-80);
  border: 1px solid var(--ink-08);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.srv-m-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--blue);
  line-height: 1.3;
}
.srv-m-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  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;
}
.srv-m-widget {
  display: block;
  width: 110%;
  margin: -12px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(53,53,53,.12);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* Chat visual (service 3) */
.srv-m-chat {
  width: 100%;
  background: #1c1c1e;
  border-radius: 24px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.srv-m-chat .chat-bubble {
  font-size: 13px;
}
.srv-m-chat .chat-incoming { background: #2c2c2e; color: #f5f5f5; }
.srv-m-chat .chat-outgoing { background: var(--blue); color: #fff; }
.srv-m-chat .chat-typing { background: #2c2c2e; }
.srv-m-chat .chat-typing span { background: rgba(255,255,255,.45); }

/* ================================
   TESTIMONIALS
   ================================ */
.testimonials {
  padding: 48px 80px 120px;
  max-width: 1440px;
  margin: 0 auto;
}
.testimonials-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white-88);
  border: 1px solid rgba(53,53,53,.06);
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.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(--ink);
  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(--ink);
}

/* ================================
   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: grid;
  grid-template-columns: 520px 1fr;
  gap: 0;
  align-items: center;
}

/* Left column: header + cards */
.pricing-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 32px;
}
.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(--ink);
  opacity: .65;
  line-height: 1.65;
  margin-bottom: 8px;
  max-width: 520px;
}
.pricing-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plan-card {
  background: rgba(255,255,255,.9);
  border: 1.5px solid rgba(55,90,244,.18);
  border-radius: 20px;
  padding: 20px 24px;
  position: sticky;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 4px 20px rgba(53,53,53,.07);
}
.plan-card:nth-child(1) { top: 80px;  z-index: 1; }
.plan-card:nth-child(2) { top: 100px; z-index: 2; }
.plan-card:nth-child(3) { top: 120px; z-index: 3; }
.plan-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  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(--ink);
  opacity: .85;
  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) */
.plan-pro {
  background: var(--blue);
  border-color: var(--blue);
}
.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); }
.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;
}

.pricing-dashboard {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-dashboard img {
  width: 100%;
  max-width: 580px;
  display: block;
  mix-blend-mode: multiply;
}

/* ================================
   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;
}
.faq-item {
  border-bottom: 1px solid var(--ink-12);
}
.faq-item:last-child { border-bottom: none; }
.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(--ink);
  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(--ink-55);
  line-height: 1.6;
}

/* ================================
   FINAL CTA
   ================================ */
.cta-final {
  padding: 100px 80px;
  text-align: center;
  border-top: 1px solid var(--ink-08);
}
.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(--ink);
  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 0;
  border-top: 1px solid var(--ink-08);
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
}
.footer-wordmark {
  display: flex;
  justify-content: center;
}
.footer-wordmark img {
  width: 100%;
  max-width: 1318px;
  height: auto;
  display: block;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--blue); }

/* ================================
   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);
}

/* Footer wordmark slide-up */
.footer-wordmark-anim {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .9s cubic-bezier(.22,.68,0,1.1), transform .9s cubic-bezier(.22,.68,0,1.1);
  transition-delay: .25s;
}
.footer-wordmark-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1100px) {
  .nav-inner { padding: 12px 40px; grid-template-columns: 1fr auto 1fr; }
  .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 0; }
}

@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
  }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .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-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pricing-dashboard { display: none; }
  /* Disable sticky stack on mobile — just normal flow */
  .plan-card { position: relative; top: auto; margin-bottom: 12px; }
  .plan-card:nth-child(1),
  .plan-card:nth-child(2),
  .plan-card:nth-child(3) { top: auto; z-index: auto; }

  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@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 0; }
  .footer-links { grid-template-columns: 1fr; }
  .cta-title { font-size: 28px; }
}
