/* Landing ambient — chips premium cortados por el borde (Copilot / MDF dashboard) */

/* Lenis: evita scroll fantasma con html/body height:100% del site.css */
html.lenis,
html.lenis body {
  height: auto;
  min-height: 100%;
}

html.lenis {
  scroll-behavior: auto !important;
}

body.mdf-landing-active {
  height: auto;
  min-height: 100%;
}

.mdf-ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
  perspective: 1500px;
}

@media (max-width: 768px) {
  #hero-showcase,
  #carousel .showcase-featured {
    perspective: 1200px;
    perspective-origin: 50% 50%;
  }

  #hero-showcase .mdf-showcase-depth {
    transform-origin: 50% 50%;
  }

  .mdf-showcase-depth {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform;
  }

  .mdf-ambient-overlay {
    transform-style: preserve-3d;
    backface-visibility: hidden;
  }

  .ambient-chip {
    transform-style: preserve-3d;
  }
}

@media (min-width: 769px) {
  .mdf-ambient-layer {
    display: none !important;
  }
}

.mdf-ambient-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(ellipse 100% 82% at 50% 40%, rgba(2, 5, 12, 0.88) 0%, rgba(6, 10, 20, 0.55) 42%, rgba(8, 14, 24, 0.22) 68%, transparent 82%),
    linear-gradient(180deg, rgba(4, 8, 16, 0.52) 0%, rgba(2, 6, 12, 0.38) 100%);
  transition: none;
}

.mdf-site.mdf-landing-active nav,
.mdf-site.mdf-landing-active #mainNav {
  z-index: 50;
}

.mdf-site.mdf-landing-active .hero-landing,
.mdf-site.mdf-landing-active section[id],
.mdf-site.mdf-landing-active .mdf-section,
.mdf-site.mdf-landing-active .mdf-footer {
  position: relative;
  z-index: 2;
}

.mdf-ambient-layer::before,
.mdf-ambient-layer::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(28vw, 380px);
  z-index: -1;
  pointer-events: none;
}

.mdf-ambient-layer::before {
  left: 0;
  background: radial-gradient(ellipse 100% 60% at -8% 50%, rgba(34, 211, 238, 0.09) 0%, transparent 68%);
}

.mdf-ambient-layer::after {
  right: 0;
  background: radial-gradient(ellipse 100% 60% at 108% 50%, rgba(74, 251, 229, 0.08) 0%, transparent 68%);
}

/* ── Chip base — asoma desde el borde ── */
.ambient-chip {
  position: fixed;
  z-index: 1;
  width: min(240px, 21vw);
  transform-style: preserve-3d;
  will-change: transform, opacity;
}

.ambient-chip--wide {
  width: min(272px, 24vw);
}

/* Cortados por el borde de pantalla */
.ambient-chip--left.ambient-chip--peek-deep  { left: -82px; }
.ambient-chip--left.ambient-chip--peek-mid    { left: -48px; }
.ambient-chip--left.ambient-chip--peek-light  { left: -18px; }

.ambient-chip--right.ambient-chip--peek-deep { right: -82px; }
.ambient-chip--right.ambient-chip--peek-mid   { right: -48px; }
.ambient-chip--right.ambient-chip--peek-light { right: -18px; }

.ambient-chip--wide.ambient-chip--left.ambient-chip--peek-deep  { left: -96px; }
.ambient-chip--wide.ambient-chip--left.ambient-chip--peek-mid    { left: -58px; }
.ambient-chip--wide.ambient-chip--right.ambient-chip--peek-deep { right: -96px; }
.ambient-chip--wide.ambient-chip--right.ambient-chip--peek-mid  { right: -58px; }

.ambient-chip__stack {
  position: relative;
  transform-style: preserve-3d;
}

/* Inclinación hacia afuera — ancla en el borde interior para que el contenido mire al centro */
.ambient-chip--left .ambient-chip__stack {
  transform-origin: 88% 50%;
  transform: rotateY(-16deg) rotateX(3deg) rotateZ(-1.2deg);
}

.ambient-chip--right .ambient-chip__stack {
  transform-origin: 12% 50%;
  transform: rotateY(16deg) rotateX(3deg) rotateZ(1.2deg);
}

.ambient-chip__glow {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 14%;
  bottom: -32%;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--chip-glow, rgba(34, 211, 238, 0.42)) 0%, transparent 68%);
  transform: translateZ(-62px) scale(1.2);
  filter: blur(22px);
  opacity: 0.75;
}

.ambient-chip__shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  height: 16px;
  bottom: -12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(14px);
  transform: translateZ(-36px) rotateX(84deg);
  opacity: 0.58;
}

/* ── Card shell común ── */
.ambient-chip__card {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 3px 6px rgba(0, 0, 0, 0.3),
    0 14px 28px rgba(0, 0, 0, 0.4),
    0 26px 52px rgba(0, 0, 0, 0.3);
  transform: translateZ(16px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

/* ── Transacción / pago ── */
.ambient-chip__card--tx {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.9rem 0.72rem 0.78rem;
  background: var(--mdf-grad-ledger);
}

.ambient-chip__accent {
  position: absolute;
  left: 0;
  top: 16%;
  bottom: 16%;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--chip-accent, linear-gradient(180deg, #4afbe5 0%, #22d3ee 100%));
}

.ambient-chip__avatar {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.ambient-chip__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ambient-chip__name {
  font-size: 0.82rem;
  font-weight: 650;
  color: #f4f8fc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.ambient-chip__cat {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--chip-cat, rgba(74, 251, 229, 0.85));
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  background: var(--chip-cat-bg, rgba(34, 211, 238, 0.14));
  border: 1px solid var(--chip-cat-border, rgba(74, 251, 229, 0.22));
}

.ambient-chip__amount {
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 750;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ambient-chip__card--sub {
  --chip-accent: linear-gradient(180deg, #4afbe5 0%, #22d3ee 100%);
  --chip-glow: rgba(34, 211, 238, 0.38);
  --chip-cat: rgba(74, 251, 229, 0.85);
  --chip-cat-bg: rgba(34, 211, 238, 0.14);
  --chip-cat-border: rgba(74, 251, 229, 0.22);
}

.ambient-chip__card--fixed {
  --chip-accent: linear-gradient(180deg, #7eb6e8 0%, #5a8fc4 100%);
  --chip-glow: rgba(126, 182, 232, 0.32);
  --chip-cat: rgba(184, 224, 254, 0.85);
  --chip-cat-bg: rgba(126, 182, 232, 0.14);
  --chip-cat-border: rgba(184, 224, 254, 0.22);
}

.ambient-chip__card--debt {
  --chip-accent: linear-gradient(180deg, #e8c77b 0%, #c9a45a 100%);
  --chip-glow: rgba(232, 199, 123, 0.32);
  --chip-cat: rgba(255, 244, 232, 0.9);
  --chip-cat-bg: rgba(232, 199, 123, 0.14);
  --chip-cat-border: rgba(232, 199, 123, 0.28);
}

.ambient-chip__card--expense {
  --chip-accent: linear-gradient(180deg, #48d1bf 0%, #2eb89e 100%);
  --chip-glow: rgba(72, 209, 191, 0.32);
  --chip-cat: rgba(72, 209, 191, 0.9);
  --chip-cat-bg: rgba(72, 209, 191, 0.12);
  --chip-cat-border: rgba(72, 209, 191, 0.24);
}

.ambient-chip__card--insurance {
  --chip-accent: linear-gradient(180deg, #a78bfa 0%, #7c5cbf 100%);
  --chip-glow: rgba(167, 139, 250, 0.3);
  --chip-cat: rgba(216, 200, 255, 0.88);
  --chip-cat-bg: rgba(167, 139, 250, 0.14);
  --chip-cat-border: rgba(167, 139, 250, 0.24);
}

/* ── Goal card ── */
.ambient-chip__card--goal {
  padding: 0.85rem 0.95rem 0.9rem;
  background: var(--mdf-grad-goal);
  --chip-glow: rgba(72, 209, 191, 0.35);
}

.ambient-chip__card--goal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.ambient-chip__goal-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.ambient-chip__goal-emoji {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.ambient-chip__goal-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.ambient-chip__goal-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fcff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-chip__goal-meta {
  font-size: 0.64rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

.ambient-chip__goal-pct {
  font-size: 0.88rem;
  font-weight: 800;
  color: #b8f5e8;
  font-variant-numeric: tabular-nums;
}

.ambient-chip__goal-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ambient-chip__goal-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2eb89e 0%, #4afbe5 55%, #7eb6e8 100%);
  box-shadow: 0 0 12px rgba(74, 251, 229, 0.45);
}

/* ── Insight mini-card ── */
.ambient-chip__card--insight {
  padding: 0.8rem 1rem;
  background: var(--mdf-grad-insight);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  --chip-glow: rgba(126, 182, 232, 0.28);
}

.ambient-chip__insight-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(200, 216, 232, 0.75);
}

.ambient-chip__insight-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ambient-chip__insight-sub {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
}

/* ── Free cash chip ── */
.ambient-chip__card--freecash {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.95rem;
  background: linear-gradient(135deg, #152632 0%, #121c28 55%, #0f172a 100%);
  border-color: rgba(72, 209, 191, 0.28);
  --chip-glow: rgba(72, 209, 191, 0.38);
}

.ambient-chip__freecash-icon {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(72, 209, 191, 0.35));
}

.ambient-chip__freecash-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ambient-chip__freecash-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mdf-free-cash, #48d1bf);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ambient-chip__freecash-sub {
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Tarjeta del sol (dashboard.dart — Progreso general) ── */
.ambient-chip--sun {
  width: min(340px, 32vw);
}

.ambient-chip--sun.ambient-chip--wide {
  width: min(340px, 32vw);
}

.ambient-chip--sun.ambient-chip--left.ambient-chip--peek-mid   { left: -14px; }
.ambient-chip--sun.ambient-chip--left.ambient-chip--peek-light { left: -8px; }
.ambient-chip--sun.ambient-chip--left.ambient-chip--peek-deep  { left: -52px; }
.ambient-chip--sun.ambient-chip--right.ambient-chip--peek-mid  { right: -62px; }
.ambient-chip--sun.ambient-chip--right.ambient-chip--peek-light { right: -28px; }

.ambient-chip__card--sun {
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(135deg, #1e2438 0%, #171e32 50%, #101520 100%);
  overflow: hidden;
  --chip-glow: rgba(255, 200, 100, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 10px rgba(0, 0, 0, 0.42),
    0 14px 30px rgba(0, 0, 0, 0.48),
    0 26px 52px rgba(0, 0, 0, 0.38),
    6px 10px 32px rgba(0, 0, 0, 0.55),
    0 8px 22px rgba(91, 212, 196, 0.14),
    0 0 40px rgba(255, 200, 100, 0.12);
}

.ambient-chip--sun .ambient-chip__shadow {
  left: 14%;
  right: -6%;
  height: 28px;
  bottom: -18px;
  background: rgba(0, 0, 0, 0.88);
  filter: blur(28px);
  opacity: 0.82;
  transform: translateZ(-36px) rotateX(84deg) translateX(10px);
}

.ambient-chip--sun .ambient-chip__glow {
  opacity: 0.85;
  filter: blur(26px);
  background: radial-gradient(ellipse, rgba(255, 200, 100, 0.32) 0%, rgba(91, 212, 196, 0.12) 42%, transparent 72%);
}

.sun-card__breath {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 85% 8%, rgba(91, 212, 196, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 12%, rgba(255, 200, 100, 0.08) 0%, transparent 50%);
  pointer-events: none;
  animation: sun-breath 5s ease-in-out infinite;
}

@keyframes sun-breath {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.sun-card__rays {
  position: absolute;
  right: -50px;
  top: -48px;
  width: 140px;
  height: 140px;
  opacity: 0.84;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 200, 100, 0.2));
}

.sun-card__orb-halo {
  position: absolute;
  right: -8px;
  top: -6px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(91, 212, 196, 0.07) 0%,
    rgba(255, 200, 100, 0.28) 22%,
    rgba(255, 179, 71, 0.09) 48%,
    transparent 100%);
  pointer-events: none;
}

.sun-card__orb {
  position: absolute;
  right: 2px;
  top: 4px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%,
    #fff0b4 0%,
    #ffc864 45%,
    #ffb347 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 25px rgba(255, 200, 100, 0.7),
    0 0 15px rgba(255, 179, 71, 0.5),
    inset 0 0 10px rgba(255, 240, 180, 0.5);
  pointer-events: none;
}

.sun-card__orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 240, 180, 0.3) 35%,
    transparent 70%);
}

.sun-card__body {
  position: relative;
  z-index: 1;
  padding: 13px 14px 13px;
  max-width: calc(100% - 50px);
}

.sun-card__title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-family: 'Poppins', system-ui, sans-serif;
}

.sun-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.sun-card__health {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #fff;
  background: rgba(6, 18, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sun-card__heart {
  color: #34d399;
  font-size: 0.72rem;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.5));
}

.sun-card__strategy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25);
  border: 0.5px solid rgba(255, 255, 255, 0.24);
}

.sun-card__bar-track {
  position: relative;
  width: 78%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(0, 0, 0, 0.2) 100%);
  border: 0.5px solid rgba(0, 0, 0, 0.15);
  margin-bottom: 5px;
}

.sun-card__bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc107 0%, #ff9800 50%, #ff6b00 100%);
}

.sun-card__bar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 193, 7, 0) 30%,
    rgba(255, 152, 0, 0.45) 50%,
    rgba(255, 193, 7, 0) 70%,
    transparent 100%);
  background-size: 200% 100%;
  animation: sun-bar-shine 3.2s ease-in-out infinite;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

@keyframes sun-bar-shine {
  0% { background-position: 120% 0; }
  100% { background-position: -80% 0; }
}

.sun-card__hint {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 400;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Poppins', system-ui, sans-serif;
}

/* ── Hero dashboard ── */
.hero-cta-card,
.dash-insight-card.hero-cta-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--mdf-radius-xl);
  background: var(--mdf-grad-goal);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--mdf-glow-card), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-align: center;
}

.hero-cta-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-cta-card .mdf-badge--accent {
  margin-bottom: 1rem;
}

.hero-cta-card h1 {
  margin-bottom: 0.75rem;
}

.hero-cta-card .mdf-section-lead {
  margin-bottom: 0;
  max-width: 36rem;
}

.hero-cta-card__actions {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .hero-cta-card {
    padding: 2.5rem 2.75rem;
    text-align: left;
  }

  .hero-cta-card__copy {
    align-items: flex-start;
  }

  .hero-cta-card .mdf-section-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.dash-insight-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem 1.75rem;
  border-radius: var(--mdf-radius-card);
  background: var(--mdf-grad-insight);
  border: 1px solid rgba(184, 224, 254, 0.14);
  box-shadow: var(--mdf-glow-card);
  overflow: hidden;
}

.dash-insight-card__bar {
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #5fd4ca, #7eb6e8);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.dash-slab-card {
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.dash-slab-card__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #c8d8e8;
  margin-bottom: 0.25rem;
}

.dash-slab-card__value {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.dash-slab-card__value--gold { color: #fff4e8; }
.dash-slab-card__value--cyan { color: var(--mdf-accent-cyan); }
.dash-slab-card__value--mint { color: var(--mdf-free-cash); }

.dash-slab-btn {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--mdf-on-surface);
  font-weight: 600;
  text-decoration: none;
}

.mdf-site.mdf-landing-active .hero-cta-card { background: var(--mdf-grad-goal); }
.mdf-site.mdf-landing-active .glass { background: var(--mdf-grad-insight); }
.mdf-site.mdf-landing-active .feature-card { background: var(--mdf-grad-insight); }
.mdf-site.mdf-landing-active .testimonial-card { background: var(--mdf-grad-ledger); }
.mdf-site.mdf-landing-active .calc-shell { background: var(--mdf-grad-ledger); }
.mdf-site.mdf-landing-active .download-cta-card { background: var(--mdf-grad-goal); }

.step-card__num {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  font-weight: 800;
  color: #0b0f14;
  background: var(--mdf-grad-cta);
}

@media (max-width: 768px) {
  .ambient-chip {
    width: min(200px, 48vw);
  }

  .ambient-chip--wide {
    width: min(220px, 52vw);
  }

  .ambient-chip--left.ambient-chip--peek-deep  { left: -58px; }
  .ambient-chip--left.ambient-chip--peek-mid    { left: -34px; }
  .ambient-chip--left.ambient-chip--peek-light  { left: -12px; }
  .ambient-chip--right.ambient-chip--peek-deep { right: -58px; }
  .ambient-chip--right.ambient-chip--peek-mid   { right: -34px; }
  .ambient-chip--right.ambient-chip--peek-light { right: -12px; }

  .ambient-chip--wide.ambient-chip--left.ambient-chip--peek-deep  { left: -68px; }
  .ambient-chip--wide.ambient-chip--right.ambient-chip--peek-deep { right: -68px; }

  .ambient-chip--left .ambient-chip__stack {
    transform-origin: 86% 50%;
    transform: rotateY(-12deg) rotateX(2deg) rotateZ(-0.8deg);
  }

  .ambient-chip--right .ambient-chip__stack {
    transform-origin: 14% 50%;
    transform: rotateY(12deg) rotateX(2deg) rotateZ(0.8deg);
  }

  .ambient-chip--sun {
    width: min(320px, 78vw);
  }

  .ambient-chip--sun.ambient-chip--left .ambient-chip__stack {
    transform-origin: 84% 50%;
    transform: rotateY(-9deg) rotateX(2deg) rotateZ(-0.6deg);
  }

  .ambient-chip--sun.ambient-chip--left .ambient-chip__card--sun {
    filter: drop-shadow(6px 10px 28px rgba(0, 0, 0, 0.55));
  }

  .ambient-chip--sun.ambient-chip--left.ambient-chip--peek-mid { left: -14px; }
  .ambient-chip--sun.ambient-chip--left.ambient-chip--peek-light { left: -10px; }

  .ambient-chip--sun .ambient-chip__shadow {
    height: 34px;
    bottom: -22px;
    filter: blur(32px);
    opacity: 0.88;
  }

  .sun-card__title {
    font-size: 0.94rem;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  .sun-card__pills {
    gap: 5px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
  }

  .sun-card__health {
    padding: 4px 7px;
    font-size: 0.64rem;
  }

  .sun-card__strategy {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .sun-card__rays { width: 104px; height: 104px; right: -36px; top: -34px; }
  .sun-card__orb { width: 44px; height: 44px; right: 3px; top: 3px; }
  .sun-card__orb-halo { width: 52px; height: 52px; right: -1px; top: -1px; }

  .sun-card__body {
    padding: 11px 10px 12px 15px;
    max-width: calc(100% - 32px);
  }

  .sun-card__bar-track { width: 88%; height: 7px; margin-bottom: 5px; }
  .sun-card__hint { font-size: 0.64rem; line-height: 1.25; }

  .ambient-chip__card--tx { padding: 0.55rem 0.65rem 0.55rem 0.58rem; gap: 0.5rem; }
  .ambient-chip__avatar { width: 2rem; height: 2rem; font-size: 1rem; }
  .ambient-chip__name { font-size: 0.74rem; }
  .ambient-chip__amount { font-size: 0.76rem; }
  .ambient-chip__insight-value { font-size: 1rem; }
}

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

@media (prefers-reduced-motion: reduce) {
  .ambient-chip__stack { transform: none !important; }
  .ambient-chip__glow,
  .ambient-chip__shadow { opacity: 0.35; }
  .sun-card__breath,
  .sun-card__bar-shine { animation: none; }
}
