/* getpillao.com landing. Palette D from docs/BRAND.md; the legal pages use style.css. */
:root {
  --violet: #6C3CF5;
  --violet-light: #8B5CFF;
  --violet-deep: #4A1FD1;
  --lavender: #B79CFF;
  --yellow: #FFC530;
  --yellow-light: #FFE27A;
  --green: #10B981;
  --ink: #1E1433;
  --ink-soft: #5B4E75;
  --ink-mute: #8A7FA3;
  --bg: #FBF9FF;
  --tint: #F3EEFF;
  --surface: #FFFFFF;
  --line: #E9E2FB;
  --night: #140D24;
  --radius: 28px;
  --shadow-sm: 0 1px 2px rgba(30, 20, 51, 0.06), 0 4px 12px -4px rgba(74, 31, 209, 0.10);
  --shadow-lg: 0 40px 80px -32px rgba(74, 31, 209, 0.45), 0 12px 32px -12px rgba(30, 20, 51, 0.25);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--violet-deep); }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Both languages are in the page; lang.js shows one. Without it, both stay visible. */
html[data-lang="es"] [lang="en"]:not(html),
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 inherit; font-family: inherit; text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--violet-deep); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; box-shadow: var(--shadow-sm); }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 24px 0 20px; border-radius: 16px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}
.store-btn svg { width: 26px; height: 30px; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 12px; font-weight: 500; opacity: 0.85; }
.store-text strong { font: 600 21px/1.1 -apple-system, "SF Pro Display", "Plus Jakarta Sans", sans-serif; letter-spacing: -0.01em; }
.store-btn-light { background: #fff; color: var(--ink); }
.store-btn.is-soon { cursor: default; }

/* ---------------------------------------------------------------- Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(251, 249, 255, 0.86); }
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 22px/1 var(--display); letter-spacing: -0.02em;
}
.logo img { border-radius: 10px; box-shadow: 0 2px 8px -2px rgba(74, 31, 209, 0.45); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);
  font-weight: 500; font-size: 15px; text-decoration: none; transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(108, 60, 245, 0.08); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.langs { display: flex; padding: 3px; border-radius: 999px; background: rgba(108, 60, 245, 0.08); }
.langs button {
  font: 600 13px/1 inherit; font-family: inherit; letter-spacing: 0.02em;
  padding: 7px 10px; border: 0; border-radius: 999px; background: none; color: var(--ink-soft); cursor: pointer;
}
.langs button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------------------------------------------------------- Hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: -1; }
.glow-a { width: 560px; height: 560px; left: -160px; top: -120px; background: rgba(139, 92, 255, 0.30); }
.glow-b { width: 520px; height: 520px; right: -120px; top: 120px; background: rgba(255, 197, 48, 0.32); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }

.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; line-height: 1.0; letter-spacing: -0.035em;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--violet-light), var(--violet-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; margin: 0 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cta-row .btn-ghost { height: 60px; border-radius: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 28px 0 0; list-style: none; font-size: 14px; color: var(--ink-mute); font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Phones */
.phone {
  position: relative; border-radius: 15% / 7%; padding: 7px;
  background: linear-gradient(145deg, #2A2140, #0E0A18);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.phone img { display: block; width: 100%; height: auto; border-radius: 13% / 6%; }

.hero-visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 5 / 6.4; justify-self: center; }
.hero-visual .phone { position: absolute; }
.phone-front { width: 56%; right: 6%; top: 0; transform: rotate(3deg); z-index: 2; }
.phone-back { width: 50%; left: 2%; top: 9%; transform: rotate(-7deg); z-index: 1; }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -16px rgba(74, 31, 209, 0.40);
  font-size: 14px; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float strong { display: block; font-weight: 700; }
.float small { display: block; color: var(--ink-mute); font-size: 12px; }
.float-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); font-size: 18px; }
.float-toast { left: 0; top: 62%; }
.float-points { right: -2%; top: 22%; font-weight: 600; animation-delay: -3s; }
.float-points b { padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, 0.14); color: #047857; font-size: 13px; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.hero-pillo {
  position: absolute; z-index: 4; width: 28%; height: auto; right: -2%; bottom: 0;
  filter: drop-shadow(0 16px 20px rgba(30, 20, 51, 0.25)); transform: rotate(8deg);
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------------------------------------------------------------- Stats */
.stats { padding: 0 0 24px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.stat { padding: 28px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font: 800 40px/1.1 var(--display); letter-spacing: -0.03em; color: var(--violet); margin-bottom: 4px; }
.stat span { color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 112px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head-left { text-align: left; margin: 0; }
.kicker {
  display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--violet);
}
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; line-height: 1.05; margin-bottom: 16px; }
.section-head p:not(.kicker) { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.feature + .feature { margin-top: 96px; }
.feature-flip .feature-copy { order: 2; }
.feature-copy { max-width: 480px; justify-self: end; }
.feature-flip .feature-copy { justify-self: start; }
.step-num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 16px; background: linear-gradient(135deg, var(--violet-light), var(--violet-deep)); color: #fff;
  font: 800 17px/1 var(--display); box-shadow: 0 10px 20px -8px rgba(74, 31, 209, 0.6);
}
.feature h3 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.feature-copy p { color: var(--ink-soft); font-size: 18px; margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 16px; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: rgba(108, 60, 245, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%236C3CF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.feature-shot { position: relative; display: grid; place-items: center; padding: 48px 0; }
.feature-shot::before {
  content: ""; position: absolute; inset: 0 8%; z-index: -1; border-radius: 40px;
  background: linear-gradient(160deg, #EDE5FF, #FFF4D6);
}
.feature-flip .feature-shot::before { background: linear-gradient(200deg, #FFF4D6, #EDE5FF); }
.feature-shot .phone { width: 280px; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mode {
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.mode:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(74, 31, 209, 0.35); }
.mode-emoji {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 16px; background: var(--tint); font-size: 26px;
}
.mode h3 { font-size: 24px; font-weight: 800; }
.mode-meta { margin: 4px 0 12px; font-size: 14px; font-weight: 700; color: var(--violet); }
.mode p:last-child { margin: 0; color: var(--ink-soft); font-size: 16px; }
.mode-hot { background: linear-gradient(135deg, var(--violet-light), var(--violet) 50%, var(--violet-deep)); border-color: transparent; color: #fff; }
.mode-hot .mode-emoji { background: rgba(255, 255, 255, 0.18); }
.mode-hot .mode-meta { color: var(--yellow-light); }
.mode-hot p:last-child { color: rgba(255, 255, 255, 0.85); }

/* Packs */
.packs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pack {
  display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pack:hover { border-color: var(--lavender); box-shadow: var(--shadow-sm); }
.pack-emoji { font-size: 32px; line-height: 1; }
.pack h3 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pack p { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
.pack-free { background: linear-gradient(160deg, #FFF8E1, #FFFFFF 70%); border-color: #FBE3A0; }
.badge {
  padding: 3px 9px; border-radius: 999px; background: var(--yellow); color: var(--ink);
  font: 700 11px/1.4 "Plus Jakarta Sans", sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}

/* Dark section */
.section-dark {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(600px 400px at 85% 0%, rgba(139, 92, 255, 0.35), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(255, 197, 48, 0.12), transparent 70%),
    var(--night);
}
.section-dark .kicker { color: var(--yellow); }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.extra { padding: 32px; background: rgba(20, 13, 36, 0.92); }
.extra-icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 22px;
}
.extra h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.extra p { margin: 0; color: rgba(243, 238, 255, 0.68); font-size: 15px; }
.gallery { display: flex; justify-content: center; align-items: flex-start; gap: 32px; margin-top: 88px; }
.gallery .phone { width: 250px; flex: none; }
.gallery .phone:nth-child(2) { margin-top: -32px; }
.section-dark .phone { box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 112px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 700 19px/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  border-radius: 50%; background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4v8M4 8h8' stroke='%236C3CF5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -8px 0 24px; color: var(--ink-soft); padding-right: 40px; }

/* Final CTA */
.final { padding: 0 0 112px; }
.final-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px;
  padding: 64px 72px; border-radius: 40px; color: #fff;
  background:
    radial-gradient(400px 300px at 90% 10%, rgba(255, 226, 122, 0.35), transparent 70%),
    linear-gradient(135deg, var(--violet-light) 0%, var(--violet) 50%, var(--violet-deep) 100%);
  box-shadow: 0 40px 80px -32px rgba(74, 31, 209, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.final h2 { font-size: clamp(40px, 5.5vw, 68px); font-weight: 800; line-height: 1; margin-bottom: 16px; }
.final-copy p { font-size: 19px; margin: 0 0 32px; color: rgba(255, 255, 255, 0.88); max-width: 28em; }
.final-pillo { width: 260px; height: auto; filter: drop-shadow(0 20px 24px rgba(30, 20, 51, 0.35)); transform: rotate(-6deg); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; }
.footer-brand p { margin: 8px 0 0; color: var(--ink-mute); font-size: 15px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.footer-links a:hover { color: var(--violet); }
.footer-copy { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-mute); font-size: 14px; }

/* Scroll reveal: landing.js adds .js to <html> and .is-in as each block appears. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .modes, .packs { grid-template-columns: repeat(2, 1fr); }
  .feature { gap: 48px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 40px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .trust { justify-content: center; }
  .hero-visual { max-width: 460px; margin-top: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 32px; }
  .feature-flip .feature-copy { order: 0; }
  .feature-copy, .feature-flip .feature-copy { justify-self: center; max-width: 560px; }
  .feature + .feature { margin-top: 72px; }
  .extras { grid-template-columns: repeat(2, 1fr); }
  .gallery { gap: 16px; }
  .gallery .phone { width: 30%; }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid .section-head { position: static; }
  .final-card { grid-template-columns: 1fr; text-align: center; padding: 56px 32px 0; justify-items: center; }
  .final-copy p { margin-left: auto; margin-right: auto; }
  .final-pillo { width: 200px; margin-top: 8px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { padding: 0 16px; }
  .nav-end .btn { display: none; }
  .hero h1 { font-size: 42px; }
  .lede { font-size: 17px; }
  .float { padding: 10px 12px; font-size: 13px; gap: 8px; }
  .float-icon { width: 30px; height: 30px; font-size: 15px; }
  .float-points { right: 0; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; max-width: 300px; }
  .cta-row .store-btn, .cta-row .btn { justify-content: center; }
  .stat { padding: 20px 12px; }
  .stat strong { font-size: 30px; }
  .stat span { font-size: 13px; }
  .modes, .packs, .extras { grid-template-columns: 1fr; }
  .pack { flex-direction: row; align-items: flex-start; padding: 20px; }
  .pack-emoji { font-size: 28px; }
  .feature-shot .phone { width: 230px; }
  .gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin: 56px -16px 0; padding: 32px 16px 8px; }
  .gallery .phone { width: 210px; scroll-snap-align: center; }
  .final-card { border-radius: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
}
