/* =========================================================
   Neura Cloud — sections.css
   Estilos de cada sección de la landing
   ========================================================= */

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 96px;
  background: linear-gradient(180deg, #e9f2f5 0%, var(--paper) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  margin-bottom: 22px;
}

.hero-copy .lead {
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.hero-trust svg {
  color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Features (bento) ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-card p {
  margin-top: 10px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.feature-card--wide {
  grid-column: span 4;
}

.feature-card--half {
  grid-column: span 2;
}

.feature-card--full {
  grid-column: span 6;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

/* Tarjeta IA con chat de ejemplo */

.ai-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.ai-card .feature-card-copy p {
  color: var(--on-dark-muted);
}

.ai-card .icon-chip {
  background: rgba(127, 196, 212, 0.16);
  color: #7fc4d4;
}

.ai-demo {
  background: var(--dark-soft);
  border: 1px solid var(--on-dark-line);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-demo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.ai-demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fc4d4;
  box-shadow: 0 0 8px rgba(127, 196, 212, 0.8);
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(237, 239, 234, 0.08);
  border: 1px solid var(--on-dark-line);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--on-dark);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ai-action:hover:not(.ai-action--active) {
  background: rgba(237, 239, 234, 0.16);
  border-color: rgba(237, 239, 234, 0.35);
}

.ai-action:active {
  transform: scale(0.97);
}

.ai-action:focus-visible {
  outline: 2px solid #7fc4d4;
  outline-offset: 2px;
}

.ai-action svg {
  color: #7fc4d4;
}

.ai-action--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.ai-action--active svg {
  color: #fff;
}

.ai-result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.ai-result-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-deep);
}

.ai-result strong {
  display: block;
  font-size: 0.9rem;
}

.ai-result span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.ai-result.is-loading {
  opacity: 0.7;
}

.ai-result.is-loading .ai-result-icon {
  animation: ai-pulse 0.9s ease-in-out infinite;
}

.ai-result.is-done {
  animation: ai-fade-in 0.3s ease;
}

@keyframes ai-pulse {
  50% {
    transform: scale(0.8);
    opacity: 0.5;
  }
}

@keyframes ai-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card--wide,
  .feature-card--full {
    grid-column: span 2;
  }

  .feature-card--half {
    grid-column: span 1;
  }

  .ai-card {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide,
  .feature-card--half,
  .feature-card--full {
    grid-column: span 1;
  }
}

/* ---------- Comparación antes / después ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin-inline: auto;
}

.compare-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.compare-card h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.compare-card--before .compare-label {
  color: var(--ink-faint);
}

/* Iconos distintivos por fila (estilo del diseño original) */
.cmp-ic {
  flex-shrink: 0;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 26px;
  margin-top: 1px;
}

.compare-card--before .cmp-ic {
  color: #f59e0b; /* ámbar */
}

/* Tarjeta "Con Neura Cloud": rellena en teal, iconos claros */
.compare-card--after {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-color: transparent;
  color: #fff;
}

.compare-card--after:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.compare-card--after .compare-label {
  color: #bfe9f1;
}

.compare-card--after h3,
.compare-card--after .li-title {
  color: #fff;
}

.compare-card--after .li-text {
  color: rgba(233, 241, 243, 0.85);
}

.compare-card--after .cmp-ic {
  color: #bfe9f1; /* teal claro */
}

.compare-card--after .check-list li + li {
  border-top-color: rgba(255, 255, 255, 0.16);
}

@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cómo funciona (pasos) ---------- */

.steps-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.step-item:hover {
  background: rgba(255, 255, 255, 0.7);
}

.step-item.is-active {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink-faint);
  padding-top: 2px;
  transition: color 0.25s ease;
}

.step-item.is-active .step-num {
  color: var(--clay);
}

.step-body {
  flex: 1;
}

.step-title {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.step-desc {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

.step-progress {
  display: block;
  height: 3px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.step-item.is-active .step-progress {
  opacity: 1;
}

.step-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}

.steps-layout.is-running .step-item.is-active .step-progress i {
  animation: step-fill 7s linear forwards;
}

.steps-layout:hover .step-progress i {
  animation-play-state: paused;
}

@keyframes step-fill {
  to {
    transform: scaleX(1);
  }
}

.steps-panels {
  position: relative;
  min-height: 340px;
}

.step-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.step-panel svg {
  width: min(360px, 100%);
  height: auto;
}

@media (max-width: 980px) {
  .steps-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps-panels {
    order: -1;
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps-layout.is-running .step-item.is-active .step-progress i {
    animation: none;
    transform: scaleX(1);
  }
}

/* --- Animaciones de las ilustraciones de cada paso ---
   Se disparan al activarse el panel y se reinician en cada cambio,
   porque solo aplican bajo .step-panel.is-active. */

.steps-panels svg * {
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes sv-fade {
  from {
    opacity: 0;
  }
}

@keyframes sv-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes sv-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

@keyframes sv-grow-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes sv-slide-22 {
  from {
    transform: translateX(-22px);
  }
}

@keyframes sv-slide-38 {
  from {
    transform: translateX(-38px);
  }
}

@keyframes s1-toggle-fill {
  from {
    fill: #dbe6ea;
  }
}

@keyframes s2-drop {
  0% {
    opacity: 0;
    transform: translateY(-40px);
  }
  35% {
    opacity: 1;
    transform: translateY(-8px);
  }
  55% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(34px);
  }
}

@keyframes s3-ring {
  0%,
  40%,
  100% {
    transform: rotate(0deg);
  }
  8% {
    transform: rotate(12deg);
  }
  16% {
    transform: rotate(-10deg);
  }
  24% {
    transform: rotate(8deg);
  }
  32% {
    transform: rotate(-5deg);
  }
}

@keyframes s4-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* Paso 1: perfil y configuración */

.steps-layout.is-running .step-panel.is-active .s1-card {
  animation: sv-fade 0.45s ease both;
}

.steps-layout.is-running .step-panel.is-active .s1-item-1 {
  animation: sv-fade-up 0.45s ease 0.2s both;
}

.steps-layout.is-running .step-panel.is-active .s1-item-2 {
  animation: sv-fade-up 0.45s ease 0.4s both;
}

.steps-layout.is-running .step-panel.is-active .s1-item-3 {
  animation: sv-fade-up 0.45s ease 0.6s both;
}

.steps-layout.is-running .step-panel.is-active .s1-toggle-bg {
  animation: s1-toggle-fill 0.35s ease 1.1s both;
}

.steps-layout.is-running .step-panel.is-active .s1-toggle-knob {
  animation: sv-slide-22 0.35s ease 1.1s both;
}

.steps-layout.is-running .step-panel.is-active .s1-slider-fill {
  transform-origin: left center;
  animation: sv-grow-x 0.5s ease 1.5s both;
}

.steps-layout.is-running .step-panel.is-active .s1-slider-knob {
  animation: sv-slide-38 0.5s ease 1.5s both;
}

.steps-layout.is-running .step-panel.is-active .s1-badge {
  animation: sv-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.2s both;
}

/* Paso 2: expediente que se guarda en la carpeta segura */

.steps-layout.is-running .step-panel.is-active .s2-folder {
  animation: sv-fade-up 0.5s ease both;
}

.steps-layout.is-running .step-panel.is-active .s2-doc {
  animation: s2-drop 1.7s ease-in-out 0.5s both;
}

.steps-layout.is-running .step-panel.is-active .s2-lock {
  animation: sv-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s both;
}

/* Paso 3: agenda con citas y recordatorio */

.steps-layout.is-running .step-panel.is-active .s3-card {
  animation: sv-fade 0.45s ease both;
}

.steps-layout.is-running .step-panel.is-active .s3-evt {
  animation: sv-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.steps-layout.is-running .step-panel.is-active .s3-evt-1 {
  animation-delay: 0.3s;
}

.steps-layout.is-running .step-panel.is-active .s3-evt-2 {
  animation-delay: 0.5s;
}

.steps-layout.is-running .step-panel.is-active .s3-evt-3 {
  animation-delay: 0.7s;
}

.steps-layout.is-running .step-panel.is-active .s3-evt-4 {
  animation-delay: 1s;
}

.steps-layout.is-running .step-panel.is-active .s3-bell {
  animation: sv-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both;
}

.steps-layout.is-running .step-panel.is-active .s3-bell-glyph {
  transform-origin: 50% 15%;
  animation: s3-ring 2.6s ease-in-out 2.1s infinite;
}

/* Paso 4: informe que se redacta con IA */

.steps-layout.is-running .step-panel.is-active .s4-doc {
  animation: sv-fade-up 0.45s ease both;
}

.steps-layout.is-running .step-panel.is-active .s4-line {
  transform-origin: left center;
  animation: sv-grow-x 0.4s ease both;
}

.steps-layout.is-running .step-panel.is-active .s4-line-1 {
  animation-delay: 0.4s;
}

.steps-layout.is-running .step-panel.is-active .s4-line-2 {
  animation-delay: 0.55s;
}

.steps-layout.is-running .step-panel.is-active .s4-line-3 {
  animation-delay: 0.7s;
}

.steps-layout.is-running .step-panel.is-active .s4-chip {
  animation: sv-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s both;
}

.steps-layout.is-running .step-panel.is-active .s4-line-4 {
  animation-delay: 1.5s;
}

.steps-layout.is-running .step-panel.is-active .s4-line-5 {
  animation-delay: 1.75s;
}

.steps-layout.is-running .step-panel.is-active .s4-line-6 {
  animation-delay: 2s;
}

.steps-layout.is-running .step-panel.is-active .s4-spark {
  animation: sv-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1.3s both;
}

.steps-layout.is-running .step-panel.is-active .s4-spark-2 {
  animation-delay: 1.6s;
}

.steps-layout.is-running .step-panel.is-active .s4-spark-star {
  animation: s4-pulse 2.4s ease-in-out 2.2s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .steps-panels svg *,
  .steps-layout.is-running .step-panel.is-active .s4-spark-star,
  .steps-layout.is-running .step-panel.is-active .s3-bell-glyph {
    animation: none !important;
  }
}

/* ---------- Portal del paciente ---------- */

.portal-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.portal-list {
  margin-top: 12px;
}

.portal-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.portal-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(420px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--brand-tint) 0%,
    rgba(230, 243, 246, 0) 70%
  );
}

.portal-visual img {
  position: relative;
  width: min(300px, 70%);
  filter: drop-shadow(0 30px 50px rgba(13, 42, 51, 0.25));
}

@media (max-width: 980px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ---------- Nosotros ---------- */

.about-inner {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.about-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 32px;
}

.about-text {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-inline: auto;
}

.about-text + .about-text {
  margin-top: 16px;
}

.about-founders {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.founder-avatars {
  display: flex;
}

.founder-avatars span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  border: 2px solid var(--paper);
}

.founder-avatars span:last-child {
  margin-left: -10px;
  background: var(--clay);
}

.about-founders p {
  text-align: left;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.about-founders strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

/* ---------- Calculadora ---------- */

.calc-card {
  max-width: 980px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.calc-field + .calc-field {
  margin-top: 32px;
}

.calc-field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brand-deep);
  margin: 6px 0 10px;
}

.calc-result {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-result-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.calc-result-main {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin: 14px 0 4px;
}

.calc-result-main small {
  font-size: 0.35em;
  font-weight: 500;
  color: var(--on-dark-muted);
  font-family: var(--font-body);
}

.calc-breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--on-dark-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--on-dark-muted);
}

.calc-breakdown strong {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.calc-footer {
  margin-top: 36px;
  text-align: center;
}

.calc-footer .btn {
  display: inline-block;
  white-space: normal;
  max-width: 100%;
}

.calc-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

@media (max-width: 900px) {
  .calc-card {
    padding: 28px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .calc-breakdown li {
    flex-direction: column;
    gap: 2px;
  }
}

/* ---------- Precios ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--featured {
  box-shadow: var(--shadow-lg);
}

.price-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-plan {
  font-size: 1.1rem;
}

.price-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 4px;
  min-height: 42px;
}

.card--dark .price-desc {
  color: var(--on-dark-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0;
}

.price-amount strong {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
}

.price-amount span {
  color: var(--ink-faint);
  font-size: 0.9rem;
}

.card--dark .price-amount span {
  color: var(--on-dark-muted);
}

.price-features {
  margin-top: 28px;
  flex: 1;
}

.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-block: 8px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.card--dark .price-features li {
  color: var(--on-dark-muted);
}

.price-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand);
}

.card--dark .price-features svg {
  color: #7fc4d4;
}

.price-features strong {
  color: var(--ink);
}

.card--dark .price-features strong {
  color: #fff;
}

.pricing-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 40px;
}

@media (max-width: 980px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

/* ---------- CTA final ---------- */

.cta-final {
  background: var(--dark);
  color: var(--on-dark);
  padding-block: 112px;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(39, 148, 171, 0.35) 0%,
    rgba(14, 40, 48, 0) 70%
  );
  pointer-events: none;
}

.cta-final .container {
  position: relative;
  text-align: center;
  max-width: 720px;
}

.cta-final h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta-final .lead {
  color: var(--on-dark-muted);
  margin-top: 20px;
}

.cta-final .hero-actions {
  justify-content: center;
}

.cta-final .btn-ghost {
  background: transparent;
  border-color: var(--on-dark-line);
  color: var(--on-dark);
}

.cta-final .btn-ghost:hover {
  border-color: var(--on-dark-muted);
  color: #fff;
}

.cta-final-note {
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0b2129;
  color: var(--on-dark-muted);
  padding-block: 64px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 30ch;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col li + li {
  margin-top: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
