/* ===========================================================
   Monyz — Landing CSS
   Design tokens, base styles, utilities.
   =========================================================== */

:root {
  /* Palette — soft pastel, blue-led with mint + lavender accents */
  --cream:        #FAF7F0;
  --cream-2:      #F3EEE3;
  --ink:          #14172B;
  --ink-2:        #2A2F4A;
  --muted:        #5E6480;
  --muted-2:      #8A90A8;
  --line:         #E8E2D3;
  --line-2:       #D6CFBE;

  /* Brand — VIOLET primary */
  --primary-50:   #F2EEFF;
  --primary-100:  #E4DCFF;
  --primary-200:  #C8B8FA;
  --primary-400:  #8B6FE0;
  --primary-500:  #7558D6;
  --primary-600:  #5E45B8;
  --primary-700:  #4A348F;

  /* Sky kept as secondary accent (limited use) */
  --sky-50:       #EEF3FF;
  --sky-100:      #DCE7FF;
  --sky-200:      #B8CDFF;
  --sky-400:      #6B8FFF;
  --sky-500:      #4F6FF0;
  --sky-700:      #2E48C8;

  --mint-50:      #ECFAF1;
  --mint-100:     #D2F2DF;
  --mint-200:     #A6E5C0;
  --mint-400:     #3DBE7E;
  --mint-600:     #1F8A5B;

  --lav-50:       #F2EEFF;
  --lav-100:      #E4DCFF;
  --lav-200:      #C8B8FA;
  --lav-400:      #8B6FE0;
  --lav-600:      #5E45B8;

  --peach-100:    #FFE3C9;
  --peach-200:    #FFCBA0;
  --sun-100:      #FFE9A8;
  --sun-200:      #FFD46B;

  /* Surfaces */
  --bg:           var(--cream);
  --card:         #FFFFFF;
  --card-2:       #FBF7EC;

  /* Type */
  --ff-display:   "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --ff-body:      "Geist", "Inter", system-ui, -apple-system, sans-serif;

  /* Warm dark — replaces cold navy for dark sections so they stay in the cream family
     instead of feeling like a copy-pasted section from a different site. */
  --ink-warm:     #2A1F12;
  --ink-warm-2:   #3A2E1F;

  /* Radii */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-2xl: 48px;

  /* Shadows — tactile, layered */
  --sh-sm: 0 1px 0 rgba(20,23,43,.04), 0 2px 6px rgba(20,23,43,.04);
  --sh-md: 0 1px 0 rgba(20,23,43,.05), 0 8px 24px -8px rgba(20,23,43,.12);
  --sh-lg: 0 1px 0 rgba(20,23,43,.06), 0 24px 60px -24px rgba(20,23,43,.22);
  --sh-pop: 0 1px 0 rgba(255,255,255,.6) inset, 0 14px 30px -10px rgba(91,127,255,.35);
  --sh-press: 0 4px 0 0 rgba(46,72,200,.65);

  /* Layout */
  --maxw: 1180px;
  --pad-x: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  line-height: 1.55;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Focus-visible ----------
   Keyboard users need a visible focus indicator. We use a soft violet ring
   instead of the default browser outline so it matches the brand. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary-400);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Typography ---------- */
.font-display { font-family: var(--ff-display); letter-spacing: -0.02em; font-weight: 700; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
  font-weight: 700;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding: 7px 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--mint-400);
  box-shadow: 0 0 0 4px rgba(61,190,126,.18);
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
}
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 24px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 16px;
  border: 0;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  font-family: var(--ff-body);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn-primary, .btn-accent {
  background: var(--primary-500);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 6px 0 0 var(--primary-700), 0 14px 30px -8px rgba(117,88,214,.45);
}
.btn-primary:hover, .btn-accent:hover { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 4px 0 0 var(--primary-700), 0 12px 24px -10px rgba(117,88,214,.5); }
.btn-primary:active, .btn-accent:active { transform: translateY(6px); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 0 0 0 var(--primary-700); }

.btn-ghost {
  background: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
}
.btn-ghost:hover { background: #FBF7EC; }

.btn-sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 20px 30px; font-size: 17px; border-radius: 18px; }

/* ---------- Card ----------
   Removed the 1px outline. Elevation comes from shadow alone, the border was
   doubling the signal and giving the "generic card" look (border + shadow + white bg). */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* ---------- Floating bits ---------- */
.float-y { animation: float-y 6s ease-in-out infinite; }
.float-y-2 { animation: float-y 7.5s ease-in-out -2s infinite; }
.float-y-3 { animation: float-y 9s ease-in-out -4s infinite; }
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.spin-slow { animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll-triggered reveal (gated por .in via IntersectionObserver) ----------
   El estado inicial está oculto; cuando el observer agrega .in, anima.
   Antes la animación corría al cargar la página y para cuando bajabas al fold,
   ya había sucedido. */
.reveal { opacity: 0; transform: translateY(24px); will-change: opacity, transform; }
.reveal.in { animation: reveal-in .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal.in.reveal-d1 { animation-delay: .08s; }
.reveal.in.reveal-d2 { animation-delay: .16s; }
.reveal.in.reveal-d3 { animation-delay: .24s; }
.reveal.in.reveal-d4 { animation-delay: .32s; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Squiggle subrayado de "lección" — draw-on cuando entra el H1 ----------
   pathLength=1 en el <path> normaliza la longitud, así el dasharray/offset
   es 1 sin depender del largo real del path. */
.squiggle { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .squiggle { animation: squiggle-draw 1.1s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes squiggle-draw {
  to { stroke-dashoffset: 0; }
}

/* ---------- prefers-reduced-motion guard ----------
   Apaga animaciones decorativas y deja el contenido en su estado final.
   Bloquea: float-y (phone), marquee (social proof), wa-pulse (botón WA), spin,
   squiggle draw-on, reveals. Mantiene transiciones funcionales (<.2s). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .float-y, .float-y-2, .float-y-3, .spin-slow, .marquee-track { animation: none !important; }
  .wa-float::after { animation: none !important; opacity: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .squiggle { stroke-dashoffset: 0 !important; }
}

/* ---------- Decorative grid background ---------- */
.bg-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,23,43,.045) 1px, transparent 0);
  background-size: 22px 22px;
}
.bg-noise::before {
  content:""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
}

/* ---------- Section accent themes ---------- */
.theme-cream  { background: var(--cream); color: var(--ink); }
.theme-mint   { background: linear-gradient(180deg, #E8F7EE 0%, #D2F2DF 100%); color: var(--ink); }
.theme-sky    { background: linear-gradient(180deg, #EEF3FF 0%, #DCE7FF 100%); color: var(--ink); }
.theme-lav    { background: linear-gradient(180deg, #F4F0FF 0%, #E4DCFF 100%); color: var(--ink); }
.theme-violet { background: linear-gradient(180deg, #F4F0FF 0%, #E4DCFF 100%); color: var(--ink); }
/* Warm dark instead of cold navy → reads as same palette family as cream, not as a copy-paste accident */
.theme-ink    { background: var(--ink-warm); color: #F4F1E6; }
.theme-ink h1, .theme-ink h2, .theme-ink h3 { color: #FBF7EC; }

/* ---------- Phone mockup ---------- */
.phone {
  width: 320px; height: 660px;
  border-radius: 48px;
  background: #14172B;
  padding: 12px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 0 0 1px #0c0e1d,
    0 30px 60px -20px rgba(20,23,43,.55),
    0 80px 120px -40px rgba(91,127,255,.3);
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 36px;
  background: #FAF7F0;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #14172B;
  border-radius: 999px;
  z-index: 5;
}

/* ---------- Floating UI cards style ---------- */
.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  padding: 14px 16px;
}
.fcard-tilt-l { transform: rotate(-4deg); }
.fcard-tilt-r { transform: rotate(4deg); }

/* ---------- Progress ring ---------- */
.ring { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 30s linear infinite; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.55), 0 6px 0 0 #0fa249;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(2px); box-shadow: 0 12px 24px -10px rgba(37,211,102,.55), 0 4px 0 0 #0fa249; }
.wa-float::after {
  content: ""; position: absolute; inset: -6px; border-radius: 999px;
  border: 2px solid rgba(37,211,102,.35);
  animation: wa-pulse 2s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(.85); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: rgba(250,247,240,0.7);
  border-bottom: 1px solid rgba(20,23,43,.06);
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

/* ---------- Star + chip ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--mint-100); color: var(--mint-600);
}

/* ---------- App store buttons ---------- */
.app-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  border: 1px solid #20253E;
  transition: transform .12s ease;
}
.app-badge:hover { transform: translateY(-2px); }
.app-badge small { font-size: 10px; opacity: .7; letter-spacing: .08em; text-transform: uppercase; display: block; line-height: 1; }
.app-badge b { font-family: var(--ff-display); font-size: 15px; line-height: 1.2; font-weight: 600; }

/* ---------- Image slot fallback styling ---------- */
image-slot {
  --is-bg: rgba(255,255,255,.65);
  --is-border: rgba(20,23,43,.12);
  --is-text: rgba(20,23,43,.55);
}

/* ---------- Misc utilities ---------- */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.muted { color: var(--muted); }
.show-md { display: none; } /* inverso de hide-md: visible solo ≤920 (ver media query) */

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hide-md { display: none !important; }
  .show-md { display: flex !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .how-grid { grid-template-columns: 1fr !important; }
  .pricing-split { grid-template-columns: 1fr !important; }
  .bento .bento-cell { grid-column: span 12 !important; }
  /* Zig-zag → stack on mobile; image always above text regardless of row direction */
  .zigzag { gap: 72px !important; }
  .zigzag-row { grid-template-columns: 1fr !important; gap: 32px !important; }
  .zigzag-row .zigzag-img { order: 1 !important; }
  .zigzag-row .zigzag-text { order: 2 !important; padding: 0 !important; }
}
@media (max-width: 700px) {
  :root { --pad-x: 18px; }
  .hide-sm { display: none !important; }
}

/* ---------- FAQ (details/summary nativo) ----------
   Sin JS: el disclosure lo maneja el browser, así que funciona con teclado,
   lectores de pantalla y con la CSP estricta (no hace falta 'unsafe-inline').
   Se ocultan los markers por defecto de ambos motores. */
.faq-item {
  background: var(--card);
  border-radius: var(--r-md, 16px);
  box-shadow: var(--sh-sm, 0 6px 18px -10px rgba(20, 23, 43, .18));
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: -2px;
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--primary-500);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  padding: 0 22px 22px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* Widget suelto al costado del teléfono en los pasos: necesita aire lateral.
   En mobile el zig-zag se apila y taparía el teléfono, así que se oculta. */
@media (max-width: 920px) {
  .zigzag-side { display: none !important; }
}
