/* Styles for the product site, shared by / and /es/ */
/* Layout: a wrapped present. A pink ribbon band runs down the hero and ties
   off on the closing call to action; everything between sits on lavender
   paper with white cards only where something is an object (the video, the receipt). */
:root {
  --bg: #FAF9FF;
  --paper: #F3F0FF;
  --card: #FFFFFF;
  --line: #E6E2F5;
  --ink: #241E4E;
  --muted: #625D8A;
  --brand: #5A50F0;
  --brand-ink: #FFFFFF;
  --bunny: #6C63FF;
  --ribbon: #FF6584;
  --ribbon-soft: rgba(255, 101, 132, .14);
  --ok: #1F8A5F;
  --deep: #241E4E;
  --deep-fg: #F3F0FF;
  --deep-muted: #BDB8E0;
  --deep-card: #2E2860;
  --deep-line: #433C7A;
  --shadow: 0 24px 60px rgba(36, 30, 78, .12), 0 4px 14px rgba(36, 30, 78, .06);
  --display: 'Baloo 2', 'Trebuchet MS', 'Arial Rounded MT Bold', sans-serif;
  --body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1160px;
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15132B; --paper: #1C1938; --card: #232046; --line: #36315F; --ink: #F3F0FF; --muted: #AEA9D2;
    --brand: #A29BFF; --brand-ink: #15132B; --bunny: #8F87FF; --ribbon: #FF7F98; --ribbon-soft: rgba(255, 127, 152, .12);
    --deep: #0E0C20; --deep-card: #1C1938; --deep-line: #36315F; --ok: #4CC994; --shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15132B; --paper: #1C1938; --card: #232046; --line: #36315F; --ink: #F3F0FF; --muted: #AEA9D2;
  --brand: #A29BFF; --brand-ink: #15132B; --bunny: #8F87FF; --ribbon: #FF7F98; --ribbon-soft: rgba(255, 127, 152, .12);
  --deep: #0E0C20; --deep-card: #1C1938; --deep-line: #36315F; --ok: #4CC994; --shadow: 0 24px 60px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .25); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; line-height: 1.15; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.lead { font-size: 21px; color: var(--muted); max-width: 34em; }
:focus-visible { outline: 3px solid var(--ribbon); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 16px; font: 700 17px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 24px rgba(90, 80, 240, .28); }
.btn-quiet { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.store { display: inline-flex; flex-direction: column; justify-content: center; height: 54px; padding: 0 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; line-height: 1.2; }
.store b { color: var(--ink); font-size: 16px; }

/* Header */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 24px var(--display); color: var(--ink); text-decoration: none; margin-right: auto; }
.logo svg { width: 38px; height: auto; }
.logo > span { flex-shrink: 0; display: flex; }
.logo, .nav a.lang, .nav .btn { white-space: nowrap; }
.nav a.link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a.link:hover { color: var(--brand); }
.nav a.lang { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.nav a.lang .short { display: none; }
.nav a.lang:hover { color: var(--brand); border-color: var(--brand); }
.nav .btn { height: 44px; font-size: 16px; padding: 0 18px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 48px 72px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); font-weight: 800; margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--ribbon); }
.hero .lead { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--muted); }
.present { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; border-radius: 36px; background: var(--paper); border: 1px solid var(--line); }
.present::before, .present::after { content: ''; position: absolute; background: var(--ribbon-soft); }
.present::before { left: 50%; top: 0; bottom: 0; width: 64px; margin-left: -32px; }
.present::after { top: 50%; left: 0; right: 0; height: 64px; margin-top: -32px; }
.present .mark { position: absolute; left: 50%; top: 50%; width: 58%; transform: translate(-50%, -46%); z-index: 1; cursor: pointer; filter: drop-shadow(0 18px 30px rgba(36, 30, 78, .18)); }
.tag { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; white-space: nowrap; animation: tag-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.tag .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.tag.t1 { left: -6%; top: 14%; animation-delay: 1.5s; }
.tag.t2 { right: -6%; top: 40%; animation-delay: 1.8s; }
.tag.t3 { left: 4%; bottom: 8%; animation-delay: 2.1s; }
@keyframes tag-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* Story */
section { padding-block: 96px; }
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.story-grid h2 { margin-top: 14px; }
.story-copy { display: grid; gap: 18px; color: var(--muted); font-size: 19px; max-width: 34em; }
.story-copy strong { color: var(--ink); }
.before { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.before li { display: flex; gap: 12px; align-items: baseline; }
.before li::before { content: ''; flex-shrink: 0; width: 18px; height: 2px; background: var(--ribbon); transform: translateY(-5px); }

/* How it works */
.how-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 760px; }
.player { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; padding: 18px 20px; border-radius: 18px; cursor: pointer; border: 1px solid transparent; background: none; text-align: left; font: inherit; color: inherit; width: 100%; transition: background .2s, border-color .2s; }
.step:hover { background: var(--paper); }
.step[aria-selected="true"] { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.step .num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--display); background: var(--paper); color: var(--brand); border: 1px solid var(--line); }
.step[aria-selected="true"] .num { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.step h3 { font-size: 22px; align-self: center; }
.step p { color: var(--muted); font-size: 16px; }
.step .progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; border-radius: 2px; background: var(--ribbon); transform-origin: left; transform: scaleX(0); opacity: 0; }
.step[aria-selected="true"] .progress { opacity: 1; }
.screen-frame { position: relative; border-radius: 30px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1; max-width: 100%; }
.screen-frame video { width: 100%; height: 100%; object-fit: cover; }
.toggle-play { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(36, 30, 78, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.toggle-play svg { width: 18px; height: 18px; }

/* Touches */
.touches { background: var(--paper); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.touch { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.touch .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); color: var(--brand); display: grid; place-items: center; margin-bottom: 6px; }
.touch .ico svg { width: 24px; height: 24px; }
.touch p { color: var(--muted); font-size: 17px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 48px; }
.highlights { display: grid; gap: 28px; }
.highlights h3 { margin-bottom: 8px; }
.highlights p { color: var(--muted); font-size: 17px; }
.sub-head { margin-top: 80px; }
.sub-head + .grid3 { margin-top: 24px; }

/* AI */
.ai { background: var(--paper); }
.ai .pill, .ai .tools li, .ai .guard { background: var(--bg); }
.ai-head { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; max-width: 900px; }
.ai-head .visor { width: 150px; filter: drop-shadow(0 16px 26px rgba(36, 30, 78, .2)); }
.ai-head h2 { margin: 12px 0 14px; }
.pill { display: inline-block; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .04em; vertical-align: 1px; }
.tools { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.guard { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.guard svg { width: 26px; height: 26px; color: var(--ok); }
.guard p { font-size: 16px; }
.guard b { color: var(--ink); }

/* Occasions */
.occasions { padding-block: 64px; overflow: hidden; }
.occ-row { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 22px; }
.occ { font: 700 clamp(22px, 3vw, 30px) var(--display); padding: 8px 22px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); }
.occ:nth-child(3n+1) { border-color: var(--bunny); }
.occ:nth-child(3n+2) { border-color: var(--ribbon); }
.occ small { font: 600 14px var(--body); color: var(--muted); margin-left: 6px; }

/* Money */
.money-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.facts { display: grid; gap: 18px; margin-top: 28px; }
.fact { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.fact svg { width: 24px; height: 24px; color: var(--ok); margin-top: 3px; }
.fact b { display: block; }
.fact span { color: var(--muted); font-size: 17px; }
.receipt { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; font-size: 17px; max-width: 460px; justify-self: center; width: 100%; }
.receipt h3 { margin-bottom: 4px; }
.receipt .sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.line-item { display: flex; justify-content: space-between; gap: 16px; padding-block: 10px; font-variant-numeric: tabular-nums; }
.line-item + .line-item { border-top: 1px dashed var(--line); }
.line-item.total { border-top: 2px solid var(--ink); font-weight: 700; font-size: 20px; margin-top: 4px; }
.line-item.total span:last-child { color: var(--brand); }
.pay-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--paper); margin-bottom: 16px; }
.pay-switch button { height: 40px; border: 0; border-radius: 10px; background: none; font: 600 15px var(--body); color: var(--muted); cursor: pointer; }
.pay-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(36, 30, 78, .1); }
.receipt .note { font-size: 14px; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.receipt .note svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Partners */
.partners { background: var(--deep); color: var(--deep-fg); }
.partners .eyebrow { color: var(--ribbon); }
.partners .lead { color: var(--deep-muted); }
.partners .grid3 .touch { background: var(--deep-card); border-color: var(--deep-line); }
.partners .touch p { color: var(--deep-muted); }
.partners .touch .ico { background: var(--deep-line); color: var(--deep-fg); }
.partners .touch ul { margin: 6px 0 0; padding-left: 20px; color: var(--deep-muted); font-size: 16px; display: grid; gap: 6px; }
.partner-cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.partner-cta .btn-primary { background: var(--ribbon); color: #241E4E; box-shadow: none; }
.partner-cta span { color: var(--deep-muted); }
.partner-cta code { font-family: var(--mono); font-size: 16px; color: var(--deep-fg); user-select: all; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 18px; background: var(--card); padding: 0 22px; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-weight: 700; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font: 700 26px var(--display); color: var(--brand); transition: transform .2s; flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; max-width: 40em; }

/* Closing */
.closing { padding-block: 24px 96px; }
.bow { position: relative; overflow: hidden; border-radius: 36px; background: var(--brand); color: var(--brand-ink); padding: 64px 48px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.bow::before { content: ''; position: absolute; top: 0; bottom: 0; left: 140px; width: 56px; background: var(--ribbon); opacity: .35; }
.bow .mark { position: relative; width: 200px; }
.bow h2 { position: relative; color: var(--brand-ink); margin-bottom: 14px; }
.bow p { position: relative; font-size: 20px; opacity: .88; margin-bottom: 28px; max-width: 32em; }
.bow .cta-row { position: relative; }
.bow .btn-primary { background: var(--brand-ink); color: var(--brand); box-shadow: none; }
.bow .store { border-color: color-mix(in srgb, var(--brand-ink) 45%, transparent); color: color-mix(in srgb, var(--brand-ink) 80%, transparent); }
.bow .store b { color: var(--brand-ink); }

footer { border-top: 1px solid var(--line); padding-block: 36px 48px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--brand); }

@media (max-width: 960px) {
  .hero-grid, .story-grid, .player, .money-grid, .faq-grid, .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row .screen-frame { max-width: 560px; justify-self: center; width: 100%; }
  .player .screen-frame { order: -1; max-width: 560px; justify-self: center; width: 100%; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .present { max-width: 420px; }
}
@media (max-width: 400px) {
  .nav a.lang .long { display: none; }
  .nav a.lang .short { display: inline; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 16px; }
  .nav a.link { display: none; }
  .nav { gap: 8px; }
  .logo { font-size: 20px; gap: 8px; }
  .logo svg { width: 30px; }
  .nav a.lang { font-size: 14px; padding: 5px 10px; }
  .nav .btn { height: 40px; padding: 0 12px; font-size: 14px; }
  section { padding-block: 64px; }
  .hero { padding-block: 24px 56px; }
  .grid3 { grid-template-columns: 1fr; }
  .tag { font-size: 13px; padding: 8px 10px; }
  .tag.t1 { left: 3%; top: 4%; }
  .tag.t2 { right: 3%; top: auto; bottom: 22%; }
  .tag.t3 { left: 3%; bottom: 4%; }
  .bow { grid-template-columns: 1fr; padding: 40px 24px; gap: 24px; }
  .bow::before { left: 64px; }
  .bow .mark { width: 120px; }
  .step { padding: 14px; grid-template-columns: 38px 1fr; }
  .ai-head { grid-template-columns: 1fr; gap: 16px; }
  .ai-head .visor { width: 96px; }
  .pill { margin: 8px 0 0; display: table; }
  .step .num { width: 38px; height: 38px; font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tag { animation: none; }
  .btn:hover { transform: none; }
}
