/* Momu — la misma paleta y tipografía que la app (Sources/Views/Theme.swift). */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff8e7;
  --sky: #d9f1ff;
  --ink: #2f2a3b;
  --ink-soft: #6e6880;
  --coral: #ff6b6b;
  --coral-deep: #d94f4f;
  --sun: #ffd23f;
  --sun-deep: #d9ad1c;
  --mint: #4fd18b;
  --blue: #4d96ff;
  --lavender: #b28dff;
  --pink: #ff8fb1;
  --orange: #ff9f43;
  --card: #ffffff;
  --radius: 28px;
  --shadow: 0 2px 0 rgba(47, 42, 59, 0.06), 0 14px 34px -14px rgba(47, 42, 59, 0.22);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ── Cielo con nubes, como el fondo de la app ── */
.sky {
  position: relative;
  background: linear-gradient(180deg, var(--sky) 0%, #ecf8ff 45%, var(--cream) 100%);
  overflow: hidden;
}
.cloud {
  position: absolute;
  width: 160px; height: 56px;
  background: #fff;
  border-radius: 60px;
  opacity: 0.9;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.cloud::before, .cloud::after {
  content: ""; position: absolute; background: #fff; border-radius: 50%;
}
.cloud::before { width: 70px; height: 70px; top: -34px; left: 24px; }
.cloud::after { width: 90px; height: 90px; top: -48px; right: 22px; }
.c1 { top: 120px; left: -40px; transform: scale(0.9); }
.c2 { top: 70px; right: 8%; transform: scale(0.6); animation-delay: -3s; }
.c3 { top: 520px; left: 42%; transform: scale(0.5); animation-delay: -6s; opacity: 0.7; }
.dot { position: absolute; border-radius: 50%; pointer-events: none; animation: float 7s ease-in-out infinite; }
.d1 { width: 26px; height: 26px; background: rgba(255, 143, 177, 0.35); top: 260px; left: 8%; }
.d2 { width: 18px; height: 18px; background: rgba(79, 209, 139, 0.35); top: 180px; right: 34%; animation-delay: -2s; }
.d3 { width: 22px; height: 22px; background: rgba(255, 210, 63, 0.55); top: 460px; right: 6%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 10px -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cloud, .dot, .bob { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Navegación ── */
.nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 26px; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--shadow); }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.lang {
  font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.8); color: var(--ink) !important;
}
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }

/* ── Botón gordito con borde inferior, como ChunkyButtonStyle ── */
.btn {
  --c: var(--coral); --d: var(--coral-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 14px 28px;
  border-radius: 26px;
  background: var(--c);
  box-shadow: 0 7px 0 var(--d);
  color: var(--ink);
  font: 600 19px/1.1 "Fredoka", system-ui, sans-serif;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 5px 0 var(--d); }
.btn:active { transform: translateY(7px); box-shadow: 0 0 0 var(--d); }
.btn.sun { --c: var(--sun); --d: var(--sun-deep); }
.btn.small { min-height: 44px; padding: 10px 18px; font-size: 16px; border-radius: 18px; box-shadow: 0 5px 0 var(--d); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: 0.75; }

/* ── Héroe ── */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 40px;
  padding: 36px 0 90px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--coral-deep);
  background: #fff; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(40px, 6vw, 66px); margin: 18px 0 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: 6px; height: 16px;
  background: var(--sun); border-radius: 8px; z-index: -1; opacity: 0.85;
}
.hero .lead { font-size: 21px; color: var(--ink-soft); max-width: 34ch; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }
.hero .note { font-size: 15px; color: var(--ink-soft); }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .momu {
  position: absolute; left: -10px; bottom: -40px; width: 46%; max-width: 230px;
  filter: drop-shadow(0 14px 18px rgba(47, 42, 59, 0.18));
}
.bob { animation: bob 3.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.bubble {
  position: absolute; top: 4%; right: -6px; max-width: 220px;
  background: #fff; border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow);
  font-weight: 500; font-size: 17px;
}
.bubble::after {
  content: ""; position: absolute; left: 28px; bottom: -12px;
  border: 12px solid transparent; border-top-color: #fff; border-bottom: 0;
}
.bubble .mic { color: var(--coral-deep); font-weight: 600; }

/* ── Teléfono ── */
.phone {
  width: min(300px, 70vw);
  aspect-ratio: 1320 / 2868;
  border-radius: 44px;
  padding: 10px;
  background: #1f1b29;
  box-shadow: 0 30px 60px -24px rgba(47, 42, 59, 0.45), inset 0 0 0 2px #3a3447;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.phone.sm { width: min(250px, 62vw); border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 30px; }

/* ── Secciones ── */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); }
.section-head p { font-size: 19px; color: var(--ink-soft); margin-top: 14px; }
.tag { display: inline-block; width: 34px; height: 6px; border-radius: 6px; background: var(--coral); margin-bottom: 14px; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  position: relative;
}
.step .n {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 600; font-size: 22px; margin-bottom: 18px;
}
.step h3 { font-size: 23px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 17px; }
.quote { font-weight: 600; color: var(--ink); }

/* Funciones: fila alterna con teléfono */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px;
  padding: 36px 0;
}
.feature.flip .feature-art { order: 2; }
.feature-art { position: relative; display: flex; justify-content: center; }
.feature-art .momu {
  position: absolute; bottom: -18px; right: 4%; width: 38%; max-width: 170px;
  filter: drop-shadow(0 12px 14px rgba(47, 42, 59, 0.18));
}
.feature.flip .feature-art .momu { right: auto; left: 4%; }
.feature-text h3 { font-size: clamp(28px, 3.6vw, 40px); }
.feature-text p { font-size: 19px; color: var(--ink-soft); margin-top: 14px; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip {
  font-size: 15px; font-weight: 500; padding: 6px 14px; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 0 rgba(47, 42, 59, 0.08);
}

/* Tarjetas tipo globo de diálogo, como las láminas del App Store */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 17px; }

.band { background: #fff; }
.band.sky-soft { background: linear-gradient(180deg, var(--cream), var(--sky)); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 18px; color: var(--ink-soft); }
.list li b { color: var(--ink); font-weight: 600; }
.ico {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; color: var(--ink); font-weight: 600;
}

.honest {
  margin-top: 26px; background: var(--cream); border-radius: 22px; padding: 20px 22px;
  font-size: 16px; color: var(--ink-soft);
}
.honest b { color: var(--ink); }

/* Precios */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.plan { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.plan.featured { outline: 3px solid var(--coral); }
.plan .badge {
  position: absolute; top: -14px; right: 24px; background: var(--sun); font-weight: 600; font-size: 14px;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { font-size: 26px; }
.plan .price { font-size: 44px; font-weight: 600; margin-top: 10px; }
.plan .price small { font-size: 18px; font-weight: 500; color: var(--ink-soft); }
.plan .alt { color: var(--ink-soft); font-size: 16px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-size: 17px; color: var(--ink-soft); }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 6px; background: var(--mint);
}
.fine { max-width: 760px; margin: 26px auto 0; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Preguntas */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral-deep); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 17px; }

/* Cierre */
.final { text-align: center; position: relative; }
.final img.momu { width: 190px; margin: 0 auto 10px; filter: drop-shadow(0 12px 14px rgba(47, 42, 59, 0.18)); }
.final h2 { font-size: clamp(34px, 5vw, 54px); }
.final p { font-size: 19px; color: var(--ink-soft); margin: 14px auto 30px; max-width: 40ch; }

footer { padding: 34px 0 44px; font-size: 15px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }

/* ── Celular ── */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 70px; }
  .hero .lead { margin: 0 auto; }
  .hero .cta { justify-content: center; }
  .hero-art { margin-top: 20px; }
  .bubble { right: 0; font-size: 15px; max-width: 190px; }
  .steps { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .feature.flip .feature-art { order: 0; }
  .feature-text p { margin-left: auto; margin-right: auto; }
  .chips { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}

/* Pantallas angostas: la barra no puede empujar el ancho de la página. */
@media (max-width: 520px) {
  .nav-links { gap: 10px; }
  .nav-links .btn.small { display: none; }
  .brand { font-size: 22px; }
  .brand img { width: 38px; height: 38px; }
  .hero h1 .hl { white-space: normal; }
  .hero .lead { font-size: 19px; }
  .bubble { top: -6%; right: 2%; }
  .hero-art .momu { width: 40%; left: -4px; }
}
.chip { background: var(--cream); }
