/* MyDebt Fighter — marketing site layout (uses brand.css tokens) */

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body.mdf-site {
  --mdf-nav-height: 4.75rem; /* logo 44px + py-4 */
  --mdf-sticky-bar-height: 0px;
  --mdf-fab-sticky-offset: 0px;
  --mdf-fab-inset: 1rem;
  --mdf-fab-bottom: calc(var(--mdf-fab-inset) + env(safe-area-inset-bottom, 0px) + var(--mdf-fab-sticky-offset));
  padding-top: var(--mdf-nav-height);
}

body.modal-open {
  overflow: hidden;
}

.mdf-site .container {
  max-width: 1280px;
}

.mdf-site section {
  scroll-margin-top: 100px;
  position: relative;
}

/* Nav — fixed so the bar stays put while scrolling (sticky breaks with backdrop-filter on some browsers) */
.mdf-site nav,
.mdf-site #mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--mdf-border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.mdf-site nav.scrolled {
  background: rgba(6, 11, 20, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.mdf-site nav a {
  color: var(--mdf-muted);
}

.mdf-site nav a:hover {
  color: var(--mdf-ink);
}

/* Buttons */
.mdf-site .btn-primary {
  background: linear-gradient(135deg, var(--mdf-accent), #1ec4a8);
  color: #041218;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(39, 225, 193, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 14px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 640px) {
  .mdf-site .btn-primary {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }
}

@media (min-width: 641px) {
  .mdf-site .btn-primary {
    padding: 1rem 2rem;
    min-height: 3rem;
  }

  .mdf-site .hero-cta-secondary {
    min-height: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.mdf-site .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(39, 225, 193, 0.45);
}

.mdf-site .btn-primary:active {
  transform: translateY(0);
}

.mdf-site .btn-shine {
  isolation: isolate;
}

.mdf-site .btn-shine > * {
  position: relative;
  z-index: 1;
}

.store-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.store-cta-icon__svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.store-cta-icon--sm .store-cta-icon__svg {
  width: 1rem;
  height: 1rem;
}

.mdf-site .btn-shine::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 44%,
    rgba(255, 255, 255, 0.72) 50%,
    rgba(255, 255, 255, 0.14) 56%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-18deg);
  animation: mdf-btn-shine-sweep 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes mdf-btn-shine-sweep {
  0%,
  68% {
    transform: translateX(-120%) skewX(-18deg);
  }

  100% {
    transform: translateX(120%) skewX(-18deg);
  }
}

.mdf-site .hero-cta-secondary {
  padding: 0.875rem 1.75rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--mdf-ink);
  transition: background 0.2s ease, border-color 0.2s ease;
}

/* Glass cards — subtle hover only */
.mdf-site .glass {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mdf-site .glass:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.mdf-site .calculator-card:hover {
  transform: none;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  opacity: 0;
  z-index: 60;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--mdf-ink);
  font-weight: 600;
  background: rgba(6, 11, 20, 0.92);
  border: 1px solid var(--mdf-border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Fade in hero */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--mdf-accent), var(--mdf-accent-bright));
  z-index: 100;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s ease;
}

/* Richer body text on marketing site */
.mdf-site .text-slate-400 {
  color: var(--mdf-muted-soft) !important;
}

.mdf-site .text-slate-300 {
  color: var(--mdf-muted) !important;
}

.mdf-site .text-slate-500 {
  color: #7a8aa3 !important;
}

/* App showcase carousel band */
.app-showcase-section {
  position: relative;
  background:
    linear-gradient(180deg, transparent 0%, rgba(19, 31, 51, 0.65) 18%, rgba(19, 31, 51, 0.85) 50%, rgba(19, 31, 51, 0.65) 82%, transparent 100%);
  border-top: 1px solid rgba(39, 225, 193, 0.12);
  border-bottom: 1px solid rgba(39, 225, 193, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(39, 225, 193, 0.08), transparent 70%);
  pointer-events: none;
}

.app-showcase-section .container {
  position: relative;
  z-index: 1;
}

/* Carousel */
.carousel {
  overflow: hidden;
  position: relative;
}

.carousel::before,
.carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 10;
  pointer-events: none;
}

.carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--mdf-bg), transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--mdf-bg), transparent);
}

.track {
  display: flex;
  gap: 28px;
  animation: carouselScroll 45s linear infinite;
  will-change: transform;
}

.carousel:hover .track {
  animation-play-state: paused;
}

.phone {
  flex: 0 0 280px;
  height: auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid rgba(39, 225, 193, 0.22);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(39, 225, 193, 0.15);
  background: #0a1220;
  padding: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.phone:hover {
  transform: translateY(-6px);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.6), 0 0 56px rgba(39, 225, 193, 0.3);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

@keyframes carouselScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-308px * 5));
  }
}

@media (max-width: 768px) {
  .phone {
    flex: 0 0 240px;
  }

  @keyframes carouselScroll {
    100% {
      transform: translateX(calc(-268px * 5));
    }
  }

  .carousel::before,
  .carousel::after {
    width: 48px;
  }
}

/* Feature / trust cards */
.feature-card,
.testimonial-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover,
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(39, 225, 193, 0.32);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4), 0 0 28px rgba(39, 225, 193, 0.12);
}

.mdf-site .trust-icon,
.mdf-site .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mdf-accent-dim);
  border: 1px solid var(--mdf-border-strong);
  color: var(--mdf-accent);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* Steps */
.step-card {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.5s ease forwards;
}

.step-card:nth-child(1) {
  animation-delay: 0.08s;
}
.step-card:nth-child(2) {
  animation-delay: 0.16s;
}
.step-card:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pricing */
.pricing-popular {
  position: relative;
  border: 1px solid rgba(39, 225, 193, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(39, 225, 193, 0.12);
  background: linear-gradient(155deg, rgba(22, 34, 56, 0.9), rgba(11, 18, 32, 0.85));
  border-radius: var(--mdf-radius-xl);
}

.premium-check li {
  position: relative;
  padding-left: 1.6rem;
}

.premium-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--mdf-accent);
  font-weight: 700;
}

/* Calculator */
.calc-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--mdf-radius-2xl);
  border: 1px solid rgba(39, 225, 193, 0.22);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .calc-shell {
    padding: 2.5rem;
  }
}

.calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.calc-subtitle {
  color: var(--mdf-muted);
  font-size: 0.9375rem;
  margin: 0;
}

.calc-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .calc-layout {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }

  .calc-shell--has-result .calc-layout {
    align-items: stretch;
  }
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.calc-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mdf-ink);
}

.calc-hint {
  font-size: 0.8125rem;
  color: var(--mdf-muted-soft);
  margin: 0 0 0.25rem;
  line-height: 1.45;
}

.calc-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-input-wrap:focus-within {
  border-color: var(--mdf-accent);
  box-shadow: 0 0 0 3px rgba(39, 225, 193, 0.15);
}

.calc-prefix {
  padding: 0 0 0 1rem;
  color: var(--mdf-muted);
  font-weight: 600;
}

.calc-input,
.calc-select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  color: var(--mdf-ink);
  font-family: inherit;
  font-size: 1rem;
}

.calc-input--currency {
  flex: 1;
  min-width: 0;
  padding: 1rem 1rem 1rem 0.25rem;
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: right;
}

.calc-input-wrap:has(.calc-input--currency) {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.calc-input-wrap:has(.calc-input--currency) .calc-prefix {
  padding-left: 1rem;
  padding-right: 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mdf-accent-bright);
}

.calc-input:focus {
  outline: none;
}

.calc-select-wrap {
  position: relative;
}

.calc-select-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  pointer-events: none;
  border-right: 2px solid var(--mdf-muted);
  border-bottom: 2px solid var(--mdf-muted);
  transform: translateY(-65%) rotate(45deg);
}

.calc-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 0.875rem 2.75rem 0.875rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mdf-ink);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-select:hover {
  border-color: rgba(39, 225, 193, 0.28);
}

.calc-select:focus {
  outline: none;
  border-color: var(--mdf-accent);
  box-shadow: 0 0 0 3px rgba(39, 225, 193, 0.15);
}

.calc-select option {
  background: #0c1424;
  color: #f8fafc;
}

.calc-leila-cta__logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
}

.calc-input--error,
.calc-input-wrap:has(.calc-input--error) {
  border-color: #f87171;
}

.calc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.calc-chip {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 225, 193, 0.2);
  background: rgba(39, 225, 193, 0.08);
  color: var(--mdf-accent-bright);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calc-chip:hover {
  background: rgba(39, 225, 193, 0.16);
  border-color: rgba(39, 225, 193, 0.35);
}

.calc-error {
  font-size: 0.75rem;
  color: #f87171;
}

.calc-submit {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

@media (max-width: 899px) {
  .calc-output {
    display: none;
  }

  .calc-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 900px) {
  .calc-modal {
    display: none !important;
  }
}

.calc-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.calc-modal.hidden {
  display: none;
}

.calc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.calc-modal__sheet {
  position: relative;
  width: 100%;
  max-height: min(92vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(39, 225, 193, 0.22);
  border-bottom: none;
  background: linear-gradient(180deg, #0c1424 0%, #060b14 100%);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.55);
  animation: calc-modal-in 0.32s ease;
}

@keyframes calc-modal-in {
  from {
    transform: translateY(100%);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.calc-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--mdf-border);
  flex-shrink: 0;
}

.calc-modal__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--mdf-ink);
}

.calc-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mdf-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.calc-modal__close:hover {
  color: var(--mdf-ink);
  border-color: rgba(255, 255, 255, 0.2);
}

.calc-modal__body {
  overflow-y: auto;
  padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
}

.calc-modal__body .calc-result {
  border: none;
  background: transparent;
  padding: 1rem 0 0.5rem;
}

.calc-output {
  min-height: 280px;
}

.calc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
  padding: 2rem 1.25rem;
  border-radius: var(--mdf-radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.calc-empty-icon {
  color: var(--mdf-muted-soft);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.calc-empty-title {
  font-weight: 700;
  color: var(--mdf-muted);
  margin: 0 0 0.35rem;
}

.calc-empty-desc {
  font-size: 0.875rem;
  color: var(--mdf-muted-soft);
  margin: 0;
  max-width: 18rem;
  line-height: 1.5;
}

.calc-shell--has-result .calc-empty {
  display: none;
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--mdf-radius-lg);
  border: 1px solid rgba(39, 225, 193, 0.25);
  background: linear-gradient(160deg, rgba(39, 225, 193, 0.08), rgba(6, 11, 20, 0.6));
}

.calc-result-hero {
  text-align: center;
}

.calc-result-kicker {
  display: block;
  font-size: 0.8125rem;
  color: var(--mdf-muted);
  margin-bottom: 0.35rem;
}

.calc-result-date {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.calc-result-meta {
  font-size: 0.875rem;
  color: var(--mdf-muted);
  margin: 0;
}

.calc-result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.calc-stat {
  padding: 0.875rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.calc-stat-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mdf-muted-soft);
  margin-bottom: 0.35rem;
}

.calc-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
}

.calc-stat-value--warn {
  color: #fca5a5;
}

.calc-stat-value--accent {
  color: var(--mdf-accent-bright);
}

.calc-breakdown {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.calc-breakdown-head {
  font-size: 0.8125rem;
  color: var(--mdf-muted);
  margin-bottom: 0.65rem;
}

.calc-breakdown-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 0.65rem;
}

.calc-breakdown-bar__principal {
  background: var(--mdf-accent);
  transition: width 0.6s ease;
}

.calc-breakdown-bar__interest {
  background: #f87171;
  transition: width 0.6s ease;
}

.calc-breakdown-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--mdf-muted);
}

.calc-breakdown-legend strong {
  color: var(--mdf-ink);
  margin-left: 0.25rem;
}

.calc-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.25rem;
}

.calc-dot--principal {
  background: var(--mdf-accent);
}

.calc-dot--interest {
  background: #f87171;
}

.calc-boost {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.calc-boost-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.2);
  color: var(--mdf-warm);
  font-weight: 800;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-boost p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--mdf-muted);
  line-height: 1.5;
}

.calc-note {
  font-size: 0.75rem;
  color: var(--mdf-muted-soft);
  line-height: 1.5;
  margin: 0;
}

.calc-reset {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--mdf-border);
  background: transparent;
  color: var(--mdf-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calc-reset:hover {
  color: var(--mdf-ink);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.calc-download-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .calc-download-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .calc-download-row .btn-primary {
    flex: 1;
    min-width: 12rem;
  }

  .calc-reset {
    width: auto;
    min-width: 9rem;
  }
}

/* Footer newsletter */
.mdf-newsletter {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mdf-border);
}

.mdf-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

@media (min-width: 480px) {
  .mdf-newsletter-form {
    flex-direction: row;
  }
}

.mdf-newsletter-form input {
  flex: 1;
  padding: 0.65rem 0.875rem;
  border-radius: 12px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mdf-ink);
  font-family: inherit;
  font-size: 0.875rem;
}

.mdf-newsletter-form input::placeholder {
  color: var(--mdf-muted-soft);
}

.mdf-newsletter-form input:focus {
  outline: none;
  border-color: var(--mdf-accent);
}

.mdf-newsletter-form button {
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--mdf-accent), #1ec4a8);
  color: #041218;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
}

.mdf-newsletter-note {
  font-size: 0.75rem;
  color: var(--mdf-muted-soft);
  margin-top: 0.5rem;
}

/* Platform modal */
#platformModal .glass {
  max-width: 28rem;
}

/* Sticky download bar (mobile) */
.sticky-download-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 0 max(12px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-right, 0px));
  pointer-events: none;
  visibility: hidden;
}

.sticky-download-bar.is-eligible {
  visibility: visible;
}

.sticky-download-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid rgba(39, 225, 193, 0.22);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(39, 225, 193, 0.08);
  transform: translate3d(0, calc(100% + 20px), 0);
  opacity: 0;
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease;
  will-change: transform;
}

.sticky-download-bar.is-eligible.is-open {
  pointer-events: auto;
}

.sticky-download-bar.is-eligible.is-open .sticky-download-bar__inner {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

@media (max-width: 767px) {
  .sticky-download-bar.is-eligible {
    bottom: env(safe-area-inset-bottom, 0px);
    padding-bottom: 12px;
  }
}

.sticky-download-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sticky-download-bar__copy strong {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
}

.sticky-download-bar__copy span {
  color: var(--mdf-muted);
  font-size: 0.75rem;
}

.sticky-download-bar__btn {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mdf-accent), #1ec4a8);
  color: #041218;
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 18px rgba(39, 225, 193, 0.35);
}

.sticky-download-bar__btn::after {
  content: '';
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.12) 44%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.12) 56%,
    transparent 62%
  );
  transform: translateX(-120%) skewX(-18deg);
  animation: mdf-btn-shine-sweep 2.75s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 767px) {
  body.mdf-sticky-bar-visible .mdf-footer {
    padding-bottom: calc(2rem + var(--mdf-sticky-bar-height));
  }
}

@media (min-width: 768px) {
  .sticky-download-bar {
    display: none !important;
  }
}

/* Help / chat widget */
.chat-widget {
  position: fixed;
  bottom: var(--mdf-fab-bottom);
  right: var(--mdf-fab-inset);
  z-index: 80;
  transition: bottom 0.35s ease;
}

.chat-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mdf-accent), #1ec4a8);
  border: 2px solid rgba(255, 255, 255, 0.22);
  color: #041218;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(39, 225, 193, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mdf-help-fab-float 2.8s ease-in-out infinite;
  transition: box-shadow 0.2s ease, bottom 0.35s ease;
}

.chat-toggle:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 36px rgba(39, 225, 193, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.chat-toggle:active {
  animation-play-state: paused;
  transform: translateY(0) scale(0.98);
}

@keyframes mdf-help-fab-float {
  0%,
  100% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.chat-toggle svg {
  display: block;
}

.chat-panel {
  position: absolute;
  bottom: calc(3.5rem + 12px);
  right: 0;
  width: min(300px, calc(100vw - 2rem));
  background: linear-gradient(155deg, rgba(22, 34, 56, 0.98), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.chat-panel.open {
  display: flex;
}

.chat-header {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(39, 225, 193, 0.14);
  border: 1px solid rgba(39, 225, 193, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mdf-accent);
}

.chat-title {
  font-weight: 700;
  color: #f8fafc;
  font-size: 14px;
}

.chat-status {
  font-size: 11px;
  color: #94a3b8;
}

.chat-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.chat-close:hover {
  color: #f8fafc;
}

.chat-messages {
  padding: 14px 16px;
  max-height: 120px;
  overflow-y: auto;
}

.chat-message.bot .message-content {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.chat-quick-actions {
  padding: 12px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-action {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(39, 225, 193, 0.12);
  border: 1px solid rgba(39, 225, 193, 0.22);
  color: var(--mdf-accent);
  cursor: pointer;
  transition: background 0.2s;
}

.quick-action:hover {
  background: rgba(39, 225, 193, 0.2);
}

@media (max-width: 767px) {
  .chat-widget {
    right: var(--mdf-fab-inset);
    left: auto;
  }

  .chat-panel {
    right: 0;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-download-bar__btn::after,
  .mdf-site .btn-shine::after,
  .chat-toggle,
  .sticky-download-bar__inner {
    animation: none;
    transition: none;
  }

  .chat-toggle:hover {
    transform: translateY(-2px);
  }
}

/* Leila section */
.leila-section {
  padding-top: 0;
}

.leila-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .leila-grid {
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 3rem;
  }

  .leila-visual {
    order: 2;
  }
}

.leila-benefits {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.leila-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--mdf-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.leila-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--mdf-accent-dim);
  color: var(--mdf-accent);
}

.leila-check svg {
  width: 14px;
  height: 14px;
}

.leila-disclaimer {
  font-size: 0.75rem;
  color: var(--mdf-muted-soft);
  margin: 0 0 1.25rem;
  line-height: 1.45;
}

.leila-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.leila-ai-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 1.5rem 1rem 0.5rem;
}

.leila-ai-stage:not(.is-awake) .leila-ai-core {
  opacity: 0;
  transform: scale(0.82);
  animation-play-state: paused;
}

.leila-ai-stage:not(.is-awake) .leila-ai-ring,
.leila-ai-stage:not(.is-awake) .leila-ai-glow {
  opacity: 0;
  animation-play-state: paused;
}

.leila-ai-stage:not(.is-awake) .leila-ai-waves {
  opacity: 0;
}

.leila-ai-stage:not(.is-awake) .leila-ai-waves span {
  animation-play-state: paused;
}

.leila-ai-stage:not(.is-awake) .leila-ai-status {
  opacity: 0;
  transform: translateY(10px);
}

.leila-ai-orb {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.leila-ai-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.leila-ai-ring--outer {
  inset: 0;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(39, 225, 193, 0.85) 70deg, transparent 140deg, rgba(82, 230, 255, 0.5) 220deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  animation: leila-ai-spin 9s linear infinite;
  opacity: 0.9;
}

.leila-ai-ring--mid {
  inset: 18px;
  background: conic-gradient(from 180deg, transparent 0deg, rgba(251, 191, 36, 0.45) 55deg, transparent 120deg, rgba(39, 225, 193, 0.65) 200deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  animation: leila-ai-spin 6s linear infinite reverse;
  opacity: 0.75;
}

.leila-ai-ring--inner {
  inset: 36px;
  border: 1px solid rgba(39, 225, 193, 0.25);
  background: radial-gradient(circle at 30% 30%, rgba(39, 225, 193, 0.12), transparent 55%);
  animation: leila-ai-spin 14s linear infinite;
  opacity: 0.8;
}

.leila-ai-glow {
  position: absolute;
  inset: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 225, 193, 0.35) 0%, rgba(39, 225, 193, 0.08) 45%, transparent 70%);
  animation: leila-ai-pulse 2.8s ease-in-out infinite;
}

.leila-ai-core {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), rgba(6, 11, 20, 0.95) 62%);
  border: 1px solid rgba(39, 225, 193, 0.35);
  box-shadow:
    0 0 32px rgba(39, 225, 193, 0.35),
    0 0 64px rgba(39, 225, 193, 0.12),
    inset 0 0 24px rgba(39, 225, 193, 0.08);
  animation: leila-ai-core-pulse 2.8s ease-in-out infinite;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.leila-ai-stage.is-awake .leila-ai-core {
  opacity: 1;
  transform: scale(1);
  animation-delay: 0.85s;
}

.leila-ai-ring,
.leila-ai-glow {
  transition: opacity 1s ease;
}

.leila-ai-stage.is-awake .leila-ai-ring--inner {
  opacity: 0.8;
  transition-delay: 0.75s;
  animation-delay: 1.25s;
}

.leila-ai-stage.is-awake .leila-ai-ring--mid {
  opacity: 0.75;
  transition-delay: 1.15s;
  animation-delay: 1.65s;
}

.leila-ai-stage.is-awake .leila-ai-ring--outer {
  opacity: 0.9;
  transition-delay: 1.55s;
  animation-delay: 2.05s;
}

.leila-ai-stage.is-awake .leila-ai-glow {
  opacity: 1;
  transition-delay: 1.85s;
  animation-delay: 2.35s;
}

.leila-ai-core img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  filter: drop-shadow(0 4px 12px rgba(39, 225, 193, 0.35));
}

.leila-ai-waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 36px;
  margin-top: 1.25rem;
  transition: opacity 0.85s ease;
}

.leila-ai-stage.is-awake .leila-ai-waves {
  opacity: 1;
  transition-delay: 2.25s;
}

.leila-ai-waves span {
  display: block;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--mdf-accent-bright), var(--mdf-accent));
  transform-origin: center bottom;
  animation: leila-ai-wave 1.15s ease-in-out infinite;
  opacity: 0.85;
}

.leila-ai-waves span:nth-child(1) { animation-delay: 0s; }
.leila-ai-waves span:nth-child(2) { animation-delay: 0.12s; }
.leila-ai-waves span:nth-child(3) { animation-delay: 0.24s; }
.leila-ai-waves span:nth-child(4) { animation-delay: 0.08s; }
.leila-ai-waves span:nth-child(5) { animation-delay: 0.2s; }
.leila-ai-waves span:nth-child(6) { animation-delay: 0.16s; }
.leila-ai-waves span:nth-child(7) { animation-delay: 0.28s; }

.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(1) { animation-delay: 2.45s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(2) { animation-delay: 2.62s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(3) { animation-delay: 2.79s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(4) { animation-delay: 2.55s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(5) { animation-delay: 2.72s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(6) { animation-delay: 2.66s; }
.leila-ai-stage.is-awake .leila-ai-waves span:nth-child(7) { animation-delay: 2.88s; }

.leila-ai-status {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mdf-accent-bright);
  text-align: center;
  transition:
    opacity 0.85s ease,
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.leila-ai-stage.is-awake .leila-ai-status {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 3.05s;
}

@keyframes leila-ai-spin {
  to { transform: rotate(360deg); }
}

@keyframes leila-ai-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.65; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes leila-ai-core-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 32px rgba(39, 225, 193, 0.3), 0 0 64px rgba(39, 225, 193, 0.1), inset 0 0 24px rgba(39, 225, 193, 0.08); }
  50% { transform: scale(1.04); box-shadow: 0 0 42px rgba(39, 225, 193, 0.45), 0 0 80px rgba(39, 225, 193, 0.16), inset 0 0 28px rgba(39, 225, 193, 0.12); }
}

@keyframes leila-ai-wave {
  0%, 100% { transform: scaleY(0.35); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .leila-ai-stage:not(.is-awake) .leila-ai-core,
  .leila-ai-stage:not(.is-awake) .leila-ai-ring,
  .leila-ai-stage:not(.is-awake) .leila-ai-glow,
  .leila-ai-stage:not(.is-awake) .leila-ai-waves,
  .leila-ai-stage:not(.is-awake) .leila-ai-status {
    opacity: 1;
    transform: none;
  }

  .leila-ai-ring--outer,
  .leila-ai-ring--mid,
  .leila-ai-ring--inner,
  .leila-ai-glow,
  .leila-ai-core,
  .leila-ai-waves span {
    animation: none !important;
  }
}

/* Final download CTA */
.download-cta-section {
  padding-bottom: 2rem;
}

.download-cta-card {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-radius: var(--mdf-radius-xl);
  text-align: center;
}

@media (min-width: 768px) {
  .download-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 2.75rem;
    text-align: left;
  }
}

.download-cta-copy {
  flex: 1;
}

.download-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 280px;
  margin: 1.25rem auto 0;
}

@media (min-width: 768px) {
  .download-cta-actions {
    margin: 0;
    flex-shrink: 0;
  }
}

/* Nav active section */
.mdf-site nav .nav-link--active {
  color: var(--mdf-ink) !important;
}

.mdf-site nav .nav-link--active span[class*="bg-gradient"] {
  width: 100% !important;
}

/* Hero mini FAQ */
.hero-faq {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
  max-width: 36rem;
}

.hero-faq details {
  border-radius: 12px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem 0.85rem;
}

.hero-faq summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mdf-muted);
  list-style: none;
}

.hero-faq summary::-webkit-details-marker { display: none; }

.hero-faq details[open] summary { color: var(--mdf-accent); }

.hero-faq p {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--mdf-muted-soft);
  line-height: 1.5;
}

/* Showcase tabs */
.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.showcase-tab {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mdf-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.showcase-tab--active,
.showcase-tab:hover {
  border-color: rgba(39, 225, 193, 0.4);
  color: var(--mdf-accent);
  background: rgba(39, 225, 193, 0.1);
}

.showcase-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.showcase-featured figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--mdf-muted);
}

/* Section marketing visuals */
.section-visual {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(39, 225, 193, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.section-visual--banner {
  max-width: 900px;
  display: block;
}

.privacy-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .privacy-split {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.privacy-split__art {
  max-height: 320px;
  object-fit: cover;
}

.feature-card__visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(39, 225, 193, 0.12);
}

.feature-card__visual--wide {
  aspect-ratio: 16 / 9;
  max-height: 220px;
}

.feature-card__title,
.feature-modal__header h3 {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .feature-card__title,
  .feature-modal__header h3 {
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
}

.feature-card--interactive {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card--interactive:hover {
  border-color: rgba(39, 225, 193, 0.32);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28), 0 0 20px rgba(39, 225, 193, 0.06);
}

.feature-card--interactive:focus-visible {
  outline: 2px solid var(--mdf-accent);
  outline-offset: 3px;
}

.feature-card--interactive:active {
  transform: translateY(0);
}

/* Feature detail modal */
.feature-modal {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.feature-modal.hidden {
  display: none;
}

.feature-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.feature-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.feature-modal.is-open .feature-modal__backdrop {
  opacity: 1;
}

.feature-modal.is-closing .feature-modal__backdrop {
  opacity: 0;
}

.feature-modal__sheet {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(86vh, 560px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(39, 225, 193, 0.22);
  background: linear-gradient(180deg, #0c1424 0%, #060b14 100%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(39, 225, 193, 0.1);
  transform: translateY(28px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}

.feature-modal.is-open .feature-modal__sheet {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.feature-modal.is-closing .feature-modal__sheet {
  transform: translateY(20px) scale(0.94);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.24s ease;
}

.feature-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--mdf-border);
  flex-shrink: 0;
}

.feature-modal__header h3 {
  margin: 0;
  font-weight: 800;
  color: var(--mdf-ink);
}

.feature-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mdf-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.feature-modal__close:hover {
  color: var(--mdf-ink);
  background: rgba(255, 255, 255, 0.1);
}

.feature-modal__body {
  padding: 1.1rem 1.25rem;
  overflow-y: auto;
}

.feature-modal__body p {
  margin: 0;
  color: var(--mdf-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.feature-modal__footer {
  padding: 0.85rem 1.25rem 1rem;
  border-top: 1px solid var(--mdf-border);
  flex-shrink: 0;
}

.feature-modal__accept {
  width: 100%;
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .feature-modal,
  .feature-modal__backdrop,
  .feature-modal__sheet {
    transition: none;
  }

  .feature-modal.is-open .feature-modal__sheet,
  .feature-modal.is-closing .feature-modal__sheet {
    transform: none;
    opacity: 1;
  }
}

.strategy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.strategy-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(39, 225, 193, 0.25);
  background: rgba(39, 225, 193, 0.08);
  color: #9ff6ea;
}

.strategy-compare {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .strategy-compare { grid-template-columns: 1fr 1fr; }
}

.strategy-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.03);
}

.strategy-card--hybrid {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(168, 85, 247, 0.06);
}

.strategy-card--speed {
  border-color: rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
}

.strategy-card h4 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.strategy-card p {
  font-size: 0.8125rem;
  color: var(--mdf-muted-soft);
  line-height: 1.45;
  margin: 0;
}

/* Pricing toggle */
.pricing-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--mdf-border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8125rem;
  color: var(--mdf-muted);
}

.pricing-card--focus {
  box-shadow: 0 0 0 2px rgba(39, 225, 193, 0.45), 0 24px 64px rgba(39, 225, 193, 0.12);
  transform: scale(1.02);
}

.pricing-toggle-row input:checked ~ span .pricing-toggle-knob,
.pricing-toggle-row:has(input:checked) .pricing-toggle-knob {
  transform: translateX(1.25rem);
}

.pricing-toggle-knob {
  transition: transform 0.2s ease;
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .step-card,
  .track {
    animation: none !important;
  }

  .mdf-site .glass:hover,
  .feature-card:hover,
  .phone:hover,
  .mdf-site .btn-primary:hover {
    transform: none;
  }
}
