/* ═══════════════════════════════════════════════════════════
   MIRAIA — Landing Page · styles.css · v20260516
   Archetype: Mouse-Reactive Gradient · Palette: Miraia Blues
═══════════════════════════════════════════════════════════ */

/* ───────────────────── TOKENS ───────────────────── */
:root {
  --bg:          #ffffff;
  --bg-2:        #f5f5f5;
  --bg-3:        #eef2f7;
  --ink:         #003d82;
  --ink-body:    #333333;
  --ink-soft:    #555555;
  --ink-mute:    #888888;
  --cyan:        #00a9ce;
  --blue:        #003d82;
  --blue-mid:    #0055a5;
  --blue-deep:   #002855;
  --glass:       rgba(255, 255, 255, 0.85);
  --glass-2:     rgba(255, 255, 255, 0.97);
  --line:        rgba(0, 61, 130, 0.12);
  --line-2:      rgba(0, 61, 130, 0.08);
  --radius:      14px;
  --radius-lg:   20px;
  --nav-h:       88px;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ───────────────────── RESET ───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  overflow-x: clip;           /* not hidden — preserves sticky */
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  background: var(--bg);
  color: var(--ink-body);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
textarea, input { font: inherit; }

/* ───────────────────── GRAIN ───────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ───────────────────── CURSOR ───────────────────── */
.cursor {
  opacity: 0;                 /* hidden until first mousemove — A.3 */
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  transition: opacity 0.3s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(0, 169, 206, 0.5);
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: width 0.28s var(--ease-out), height 0.28s var(--ease-out), border-color 0.28s;
}
.cursor.is-hovering .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--cyan);
}
@media (hover: none) { .cursor { display: none; } }

/* ───────────────────── CONTAINER ───────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* ───────────────────── TYPOGRAPHY ───────────────────── */
.section-kicker {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.section-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.section-title em {
  font-style: italic;
  color: var(--cyan);
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.7;
  margin-bottom: 3.5rem;
}
/* Dark-section overrides — hero, stats, footer keep white text */
.hero .section-kicker,
.section-stats .section-kicker { color: var(--cyan); }
.hero .section-title,
.section-stats .section-title { color: #ffffff; }
.hero .section-sub,
.section-stats .section-sub { color: rgba(255,255,255,0.75); }

/* ───────────────────── REVEAL SYSTEM ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Defensive — gotcha A.4.5 */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* ───────────────────── BUTTONS ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--cyan);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(0, 169, 206, 0.4);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 169, 206, 0.3);
}
.btn-cyan:hover {
  box-shadow: 0 6px 32px rgba(0, 169, 206, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}

/* Magnetic button container (JS sets transform) */
.btn-magnetic { will-change: transform; }

/* ───────────────────── CARD (light theme) ───────────────────── */
.glass-card {
  background: #ffffff;
  border: 1px solid rgba(0, 61, 130, 0.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 61, 130, 0.07);
}

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 61, 130, 0.1);
  transition: box-shadow 0.35s var(--ease-out);
}
.nav.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 61, 130, 0.1);
}
.nav-logo { flex-shrink: 0; }
.nav-brand {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 3.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--cyan); }

@media (max-width: 960px) {
  .nav-links { display: none; }
}

.nav-lang {
  margin-left: auto;
}

/* ───────────────────── LANG SELECT ───────────────────── */
.lang-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 1.6rem 0.3rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23003d82' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.lang-select:hover { border-color: var(--cyan); }
.lang-select:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* Footer variant — on dark background */
.lang-select--footer {
  color: rgba(255,255,255,0.85);
  border: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.lang-select--footer option { color: #003d82; background: #fff; }

.nav-cta { flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);  /* navy on white nav */
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: calc(100svh - var(--nav-h));
  z-index: 490;
  background: #ffffff;
  border-top: 1px solid rgba(0, 61, 130, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 3rem;
  gap: 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open {
  transform: none;
  pointer-events: auto;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.mm-link {
  font-size: 1.2rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.mm-link:hover { color: var(--cyan); }

@media (max-width: 767px) {
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-lang { gap: 0; }
}

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  padding-bottom: 6rem;
  overflow: hidden;
}

/* Hero base: navy gradient */
.hero {
  background: linear-gradient(135deg, #003d82 0%, #005aaa 50%, #00789e 100%);
  color: #ffffff;
}

/* Mouse-reactive gradient — Archetype 05 signature */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle 800px at var(--mx, 50%) var(--my, 45%),
      rgba(0, 169, 206, 0.35) 0%, transparent 65%),
    radial-gradient(circle 600px at calc(100% - var(--mx, 50%)) calc(var(--my, 55%) + 10%),
      rgba(0, 61, 130, 0.5) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: -40% -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 85, 165, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 169, 206, 0.25) 0%, transparent 60%);
  filter: blur(80px);
  pointer-events: none;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 40, 85, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 40, 85, 0.3) 0%, transparent 30%, transparent 70%, rgba(0, 40, 85, 0.5) 100%);
  pointer-events: none;
}

/* ── Wave layers — SVG GPU-accelerated ── */
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 68%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.wave-track {
  position: absolute;
  bottom: 0; left: 0;
  width: 200%;
  height: 100%;
  will-change: transform;
}
.wave-bob {
  width: 100%; height: 100%;
  will-change: transform;
}
.wave-track svg {
  display: block;
  width: 100%; height: 100%;
}

.wave-track-1 path { fill: rgba(0,28,70,0.32); }
.wave-track-2 path { fill: rgba(0,61,130,0.24); }
.wave-track-3 path { fill: rgba(0,100,175,0.18); }
.wave-track-4 path { fill: rgba(0,169,206,0.13); }

/* Horizontal scroll — translateX(-50%) = one full wave period */
@keyframes waveScroll {
  to { transform: translateX(-50%); }
}

/* Vertical orbital swell per layer */
@keyframes waveSwell1 {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-38px); }
}
@keyframes waveSwell2 {
  0%, 100% { transform: translateY(-12px); }
  50%       { transform: translateY(26px);  }
}
@keyframes waveSwell3 {
  0%, 100% { transform: translateY(0);     }
  50%       { transform: translateY(-24px); }
}
@keyframes waveSwell4 {
  0%, 100% { transform: translateY(-8px);  }
  50%       { transform: translateY(18px);  }
}

.wave-track-1 { animation: waveScroll 16s linear infinite; }
.wave-bob-1   { animation: waveSwell1 7s ease-in-out infinite; }

.wave-track-2 { animation: waveScroll 10s linear infinite; animation-delay: -4s; }
.wave-bob-2   { animation: waveSwell2 9s ease-in-out infinite 1.2s; }

.wave-track-3 { animation: waveScroll 7s linear infinite; animation-delay: -1s; }
.wave-bob-3   { animation: waveSwell3 6s ease-in-out infinite 0.5s; }

.wave-track-4 { animation: waveScroll 5s linear infinite; animation-delay: -2.5s; }
.wave-bob-4   { animation: waveSwell4 5s ease-in-out infinite 2s; }

@media (prefers-reduced-motion: reduce) {
  .wave-track, .wave-bob { animation: none; }
}

@media (max-width: 767px) {
  .hero-waves { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hero-eyebrow {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px var(--cyan); }
  50% { box-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(41,197,246,0.4); }
}

.hero-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  line-height: 1.03;
  text-wrap: balance;
  max-width: 14ch;
  color: #ffffff;
}
.hero-title em {
  font-style: italic;
  color: rgba(0, 210, 255, 0.9);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Hero stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0;
  margin-top: 4rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0, 30, 70, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hstat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.2rem 2rem;
  text-align: center;
}
.hstat-val {
  display: flex;
  align-items: baseline;
  gap: 0.1rem;
}
.hstat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}
.hstat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(0, 210, 255, 0.9);
}
.hstat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}
.hstat-sep {
  width: 1px;
  background: rgba(255,255,255,0.15);
  align-self: stretch;
}

/* Scroll arrow */
.hero-scroll-arrow {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: rgba(255,255,255,0.6);
  transition: border-color 0.2s, color 0.2s;
  animation: arrowBob 2s ease-in-out infinite;
}
.hero-scroll-arrow svg { width: 16px; height: 16px; }
.hero-scroll-arrow:hover { border-color: rgba(255,255,255,0.8); color: #fff; }
@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS (shared)
═══════════════════════════════════════════════════════════ */
.section {
  padding-block: clamp(5rem, 10vw, 8rem);
}
.section-problem { background: var(--bg-2); }
.section-solution { background: var(--bg); }
.section-features { background: var(--bg-2); }
.section-process  { background: var(--bg); }
.section-stats    { background: linear-gradient(135deg, #003d82 0%, #002855 100%); color: #ffffff; }
.section-testimonials { background: var(--bg-2); }
.section-contact  { background: var(--bg); }

/* ═══════════════════════════════════════════════════════════
   PROBLEM
═══════════════════════════════════════════════════════════ */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pain-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.pain-card:hover {
  border-color: rgba(0, 169, 206, 0.35);
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.1);
  transform: translateY(-4px);
}
.pain-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 169, 206, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}
.pain-icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.pain-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.pain-card p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   SOLUTION
═══════════════════════════════════════════════════════════ */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.5rem;
  border-top: 2px solid rgba(0, 61, 130, 0.12);
  position: relative;
  transition: border-color 0.25s;
}
.pillar::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  transition: width 0.5s var(--ease-out);
}
.pillar:hover::before { width: 100%; }
.pillar-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  opacity: 0.8;
}
.pillar-icon { width: 40px; height: 40px; }
.pillar-icon svg { width: 28px; height: 28px; stroke: var(--cyan); }
.pillar h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.pillar p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   FEATURES
═══════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.feature-card:hover {
  border-color: rgba(0, 169, 206, 0.35);
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.1);
  transform: translateY(-3px);
}
.fc-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 169, 206, 0.1);
  border-radius: 9px;
  flex-shrink: 0;
}
.fc-icon svg { width: 20px; height: 20px; stroke: var(--cyan); }
.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.feature-card p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════════ */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}
.process-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1.5rem;
  padding-block: 2.5rem;
}
.process-connector {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--cyan) 0%, transparent 100%);
  margin-left: 35px;
  opacity: 0.3;
}
.ps-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--cyan);
  opacity: 0.35;
  line-height: 1;
  align-self: flex-start;
  padding-top: 0.2rem;
}
.ps-content { display: flex; flex-direction: column; gap: 0.6rem; }
.ps-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}
.ps-content p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
}
.stat-val {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1;
}
.stat-suffix {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 400;
  color: rgba(0, 210, 255, 0.9);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  max-width: 16ch;
}

/* ═══════════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testi-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.25s, transform 0.3s var(--ease-out);
}
.testi-card:hover {
  border-color: rgba(0, 169, 206, 0.3);
  box-shadow: 0 8px 24px rgba(0, 61, 130, 0.1);
  transform: translateY(-3px);
}
.testi-stars {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.testi-card blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-top: 1px solid rgba(0, 61, 130, 0.1);
  padding-top: 1.25rem;
}
.testi-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 61, 130, 0.15);
  filter: grayscale(0.15);
}
.testi-meta { display: flex; flex-direction: column; gap: 0.15rem; }
.testi-meta strong { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.testi-meta span { font-size: 0.78rem; color: var(--ink-mute); }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}
.contact-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cd-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-body);
}
.cd-item svg { width: 18px; height: 18px; stroke: var(--cyan); flex-shrink: 0; }

/* Form */
.contact-form-wrap { padding: 2.5rem; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid rgba(0, 61, 130, 0.18);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--ink-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-mute); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 169, 206, 0.12);
}
.form-group input.is-invalid { border-color: #e05050; }

/* Submit button states */
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
}
.btn-sending,
.btn-done { display: none; }
.contact-form.is-sending .btn-label,
.contact-form.is-done .btn-label { display: none; }
.contact-form.is-sending .btn-sending { display: inline; }
.contact-form.is-done .btn-done {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form.is-done { pointer-events: none; }

/* SVG check animation */
.check-svg { width: 20px; height: 20px; }
.check-path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  transition: stroke-dashoffset 0.45s var(--ease-out) 0.1s;
}
.contact-form.is-done .check-path { stroke-dashoffset: 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--blue-deep);   /* #002855 */
  color: rgba(255, 255, 255, 0.75);
  border-top: none;
  padding-block: 3.5rem 2rem;
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1;
}
.footer-logo-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-right: auto;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-link:hover {
  color: #fff;
  border-color: var(--cyan);
  background: rgba(0, 169, 206, 0.15);
}

.footer-lang { display: flex; }

.footer-nav-row {
  padding-block: 1.5rem;
  border-block: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}
.footer-nav-row nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-nav-row a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-nav-row a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal a {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--cyan); }
.footer-credit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-credit a { color: var(--cyan); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .pain-grid,
  .pillar-grid,
  .features-grid,
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-info { position: static; }
}

@media (max-width: 640px) {
  .pain-grid,
  .pillar-grid,
  .features-grid,
  .testi-grid,
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats {
    flex-direction: column;
    gap: 0;
  }
  .hstat-sep { width: 100%; height: 1px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .process-step { grid-template-columns: 48px 1fr; gap: 1rem; }
  .ps-num { font-size: 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   SCROLL DELAY STAGGER (for grid reveals)
═══════════════════════════════════════════════════════════ */
.pain-grid .reveal:nth-child(2),
.pillar-grid .reveal:nth-child(2),
.features-grid .reveal:nth-child(2),
.testi-grid .reveal:nth-child(2),
.stats-grid .reveal:nth-child(2) { transition-delay: 0.1s; }

.pain-grid .reveal:nth-child(3),
.pillar-grid .reveal:nth-child(3),
.features-grid .reveal:nth-child(3),
.testi-grid .reveal:nth-child(3),
.stats-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.features-grid .reveal:nth-child(4),
.stats-grid .reveal:nth-child(4) { transition-delay: 0.3s; }

.features-grid .reveal:nth-child(5) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════════════════════════
   CHAT WIDGET — Mirai
═══════════════════════════════════════════════════════════ */
#miraiChat {
  position: fixed !important;
  top: calc(var(--nav-h) + 1rem) !important;
  bottom: auto !important;
  right: 1.5rem !important;
  z-index: 8000;
  font-family: 'Inter', system-ui, sans-serif;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.mirai-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  box-shadow: 0 4px 20px rgba(0, 169, 206, 0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  border: none;
  position: relative;
}
.mirai-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 169, 206, 0.55);
}
.mirai-toggle svg { width: 26px; height: 26px; color: #fff; transition: opacity 0.2s; }
.mirai-toggle .icon-open  { opacity: 1; position: absolute; }
.mirai-toggle .icon-close { opacity: 0; position: absolute; }
#miraiChat.is-open .mirai-toggle .icon-open  { opacity: 0; }
#miraiChat.is-open .mirai-toggle .icon-close { opacity: 1; }

.mirai-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #e53e3e;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; color: #fff;
  transition: transform 0.3s var(--ease-out);
}
#miraiChat.is-open .mirai-badge { transform: scale(0); }

.mirai-window {
  position: absolute;
  top: calc(100% + 0.5rem);
  bottom: auto;
  right: 0;
  width: 360px;
  max-height: calc(100vh - var(--nav-h) - 100px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 61, 130, 0.18);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(-12px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
#miraiChat.is-open .mirai-window {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.mirai-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0;
}
.mirai-avatar {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600; color: #fff;
  flex-shrink: 0;
}
.mirai-header-info { flex: 1; }
.mirai-header-name { font-size: 0.95rem; font-weight: 600; color: #fff; line-height: 1.2; }
.mirai-header-status { font-size: 0.72rem; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 0.35rem; }
.mirai-status-dot { width: 6px; height: 6px; background: #48bb78; border-radius: 50%; }

.mirai-messages {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  min-height: 200px;
  max-height: 300px;
  scroll-behavior: smooth;
}
.mirai-messages::-webkit-scrollbar { width: 4px; }
.mirai-messages::-webkit-scrollbar-track { background: transparent; }
.mirai-messages::-webkit-scrollbar-thumb { background: rgba(0,61,130,0.15); border-radius: 2px; }

.mirai-msg {
  display: flex; gap: 0.5rem; align-items: flex-end;
  animation: msgSlide 0.3s var(--ease-out);
}
@keyframes msgSlide { from { opacity: 0; transform: translateY(8px); } }

.mirai-msg.user { flex-direction: row-reverse; }

.mirai-bubble {
  max-width: 80%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.mirai-msg.bot .mirai-bubble {
  background: var(--bg-3);
  color: var(--ink-body);
  border-bottom-left-radius: 4px;
}
.mirai-msg.user .mirai-bubble {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue-mid) 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mirai-typing {
  display: flex; gap: 4px; align-items: center; padding: 0.6rem 0.9rem;
  background: var(--bg-3); border-radius: 14px; border-bottom-left-radius: 4px;
  width: fit-content;
}
.mirai-typing span {
  width: 6px; height: 6px; background: var(--ink-mute);
  border-radius: 50; animation: typingDot 1.2s ease-in-out infinite;
}
.mirai-typing span:nth-child(2) { animation-delay: 0.2s; }
.mirai-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.mirai-input-row {
  border-top: 1px solid var(--line);
  padding: 0.75rem;
  display: flex; gap: 0.5rem; align-items: flex-end;
  flex-shrink: 0;
}
.mirai-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  font-family: inherit;
  resize: none;
  outline: none;
  line-height: 1.4;
  max-height: 90px;
  transition: border-color 0.2s;
}
.mirai-input:focus { border-color: var(--cyan); }
.mirai-send {
  width: 38px; height: 38px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  border: none; border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-end;
}
.mirai-send:hover { opacity: 0.9; }
.mirai-send:active { transform: scale(0.93); }
.mirai-send svg { width: 16px; height: 16px; color: #fff; }
.mirai-send:disabled { opacity: 0.45; cursor: default; }

.mirai-footer-note {
  text-align: center; font-size: 0.67rem; color: var(--ink-mute);
  padding: 0.4rem 0.75rem 0.6rem;
  border-top: 1px solid var(--line-2);
}

@media (max-width: 480px) {
  #miraiChat { bottom: 1rem; right: 1rem; }
  .mirai-window { width: calc(100vw - 2rem); right: -0.5rem; }
}

/* ═══════════════════════════════════════════
   SECCIÓN DIAGNÓSTICO MIRAIA
═══════════════════════════════════════════ */
.section-diagnostico {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.section-diagnostico .section-title { color: #ffffff; }
.section-diagnostico .section-title em { color: var(--cyan); font-style: normal; }
.section-diagnostico .section-sub { color: rgba(245,241,236,.7); }
.section-diagnostico .section-kicker { color: rgba(245,241,236,.2); }

.diag-launcher { margin-top: 2.5rem; }
.diag-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(245,241,236,.45);
  letter-spacing: 0.04em;
}

/* ── Overlay ── */
.diag-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(10,16,26,.85);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.diag-overlay.is-open {
  opacity: 1; pointer-events: all;
}

/* ── Modal ── */
.diag-modal {
  background: #0f1b2d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  display: flex; flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.diag-overlay.is-open .diag-modal { transform: translateY(0); }

/* ── Header ── */
.diag-header {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.diag-progress-wrap { flex: 1; }
.diag-step-label {
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--cyan); font-weight: 600;
  display: block; margin-bottom: 0.5rem;
}
.diag-progress-bar {
  height: 4px; background: rgba(255,255,255,.1); border-radius: 99px; overflow: hidden;
}
.diag-progress-fill {
  height: 100%; background: var(--cyan);
  border-radius: 99px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}
.diag-close {
  background: rgba(255,255,255,.08); border: none; color: rgba(255,255,255,.6);
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s; flex-shrink: 0;
}
.diag-close:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Body ── */
.diag-body { padding: 2rem 2rem 1rem; flex: 1; }

.diag-step { display: none; animation: diagFadeIn 0.3s ease; }
.diag-step.active { display: block; }
@keyframes diagFadeIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.diag-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800; color: #fff; letter-spacing: -0.02em;
  margin-bottom: 0.5rem; text-align: center;
}
.diag-accent { color: var(--cyan); }
.diag-subtitle { color: rgba(245,241,236,.6); text-align: center; margin-bottom: 2rem; font-size: 0.9rem; }
.diag-q {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: #fff; font-weight: 600; margin-bottom: 1.5rem; line-height: 1.4;
}

/* ── Options ── */
.diag-options { display: flex; flex-direction: column; gap: 0.75rem; }
.diag-options--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}
.diag-opt {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(245,241,236,.85);
  border-radius: 10px; padding: 0.85rem 1rem;
  cursor: pointer; text-align: center;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  line-height: 1.5;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.diag-opt:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.diag-opt.selected {
  background: rgba(1,207,217,.12);
  border-color: var(--cyan);
  color: #fff;
}
.diag-options:not(.diag-options--grid) .diag-opt { text-align: left; }

/* ── Email form ── */
.diag-form { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.5rem; }
.diag-form input {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 0.85rem 1rem;
  color: #fff; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.diag-form input:focus { outline: none; border-color: var(--cyan); }
.diag-form input::placeholder { color: rgba(245,241,236,.35); }
.diag-submit-btn { margin-top: 0.5rem; width: 100%; justify-content: center; }
.diag-privacy { font-size: 0.72rem; color: rgba(245,241,236,.35); text-align: center; margin-top: 0.75rem; }

/* ── Result ── */
.diag-result { text-align: center; padding: 1rem 0 0.5rem; }
.diag-score-ring {
  display: inline-flex; align-items: baseline; gap: 0.25rem;
  background: rgba(1,207,217,.08);
  border: 2px solid var(--cyan);
  border-radius: 50%; width: 140px; height: 140px;
  justify-content: center; align-items: center;
  flex-direction: column;
  margin-bottom: 1.5rem;
}
.diag-emoji { font-size: 2rem; line-height: 1; }
.diag-score-val { font-size: 2.8rem; font-weight: 800; color: var(--cyan); line-height: 1; }
.diag-score-max { font-size: 0.85rem; color: rgba(245,241,236,.4); }
.diag-nivel {
  font-size: 0.75rem; letter-spacing: 0.12em; font-weight: 700;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 0.75rem;
}
.diag-result-title { font-size: 1.2rem; color: #fff; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.4; }
.diag-result-desc { color: rgba(245,241,236,.65); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.75rem; }
.diag-result-cta { display: inline-flex; align-items: center; gap: 0.5rem; }

/* ── Footer nav ── */
.diag-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.07);
}
.diag-btn-back, .diag-btn-next {
  background: none; border: 1px solid rgba(255,255,255,.15);
  color: rgba(245,241,236,.7); border-radius: 8px;
  padding: 0.55rem 1.1rem; cursor: pointer; font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.diag-btn-back:hover:not(:disabled), .diag-btn-next:hover:not(:disabled) {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #fff;
}
.diag-btn-next { background: var(--cyan); border-color: var(--cyan); color: #0f1b2d; font-weight: 700; }
.diag-btn-next:hover:not(:disabled) { background: #00b8c6; border-color: #00b8c6; color: #0f1b2d; }
.diag-btn-back:disabled, .diag-btn-next:disabled { opacity: 0.3; cursor: default; }

/* hide footer on email/result steps */
.diag-footer.is-hidden { display: none; }

@media (max-width: 540px) {
  .diag-body { padding: 1.5rem 1.25rem 0.75rem; }
  .diag-modal { border-radius: 12px 12px 0 0; align-self: flex-end; width: 100%; }
  .diag-overlay { align-items: flex-end; }
  .diag-options--grid { grid-template-columns: repeat(2, 1fr); }
}
