:root {
  --bg: #0B0D10; --surface: #16191E; --subtle: #1F2329; --line: #2A2E35;
  --ink: #F4F4F0; --muted: #A1A7B0; --accent: #FFD60A; --on-accent: #111418;
  --link: #FFD60A; --success: #3DDC84; --frame: #2A2E35;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #FAFAF7; --surface: #FFFFFF; --subtle: #F0F0EA; --line: #E2E2DC;
    --ink: #111418; --muted: #5F6670; --link: #111418; --success: #0A7A3D; --frame: #111418;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--link); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 72px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 800; margin: 20px 0 18px; }
h1 mark { background: var(--accent); color: var(--on-accent); padding: 0 0.12em;
  border-radius: 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.lede { font-size: 19px; color: var(--muted); max-width: 500px; margin: 0 0 28px; }
/* Official store badges at the same visible height. The Google Play PNGs (646x250) carry
   transparent clear space that differs per language, so each is cropped to its visible badge:
   --x/--y = offset of the badge, --w/--h = its size (px in the PNG). */
.stores { --badge-h: 52px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.stores a { display: block; height: var(--badge-h); line-height: 0; }
.stores img { height: 100%; width: auto; display: block; }
.stores .gp { --x: 41; --y: 41; --w: 564; --h: 168;
  width: calc(var(--badge-h) * var(--w) / var(--h)); overflow: hidden; }
.stores .gp.es { --x: 0; --y: 29; --w: 646; --h: 192; }
.stores .gp img { height: calc(var(--badge-h) * 250 / var(--h)); max-width: none;
  margin-left: calc(var(--badge-h) * var(--x) / var(--h) * -1);
  margin-top: calc(var(--badge-h) * var(--y) / var(--h) * -1); }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }

.phone { width: 100%; max-width: 300px; aspect-ratio: 1320 / 2868; border-radius: 44px;
  border: 9px solid var(--frame); background: #FAFAF7; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.55), 0 0 0 1px var(--line); }
.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art::before { content: ""; position: absolute; inset: 10% 5% 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 28%, transparent), transparent);
  filter: blur(20px); }
.hero-art .phone { position: relative; }
.chip { position: absolute; left: -8px; top: 30%; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.5); }
.chip .check { width: 30px; height: 30px; border-radius: 50%; background: var(--success);
  display: grid; place-items: center; color: #0B0D10; font-weight: 800; }
.chip b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.chip span { color: var(--muted); font-size: 13px; }

section { padding: 56px 0; }
h2 { font-size: clamp(28px, 3.6vw, 36px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 620px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { font-size: 18px; margin: 12px 0 6px; letter-spacing: -0.01em; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--subtle);
  display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.card.hi { background: var(--accent); border-color: var(--accent); }
.card.hi h3, .card.hi p { color: var(--on-accent); }
.card.hi .icon { background: rgba(17,20,24,.1); }
.card.hi .icon svg { stroke: var(--on-accent); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shots figure { margin: 0; text-align: center; }
.shots .phone { max-width: none; border-width: 7px; border-radius: 34px; }
.shots figcaption { color: var(--muted); font-size: 15px; margin-top: 12px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr); counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; color: var(--ink); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; margin-bottom: 14px; }
.steps li span { color: var(--muted); display: block; font-size: 16px; margin-top: 4px; }

.two { grid-template-columns: repeat(2, 1fr); }
.plans .card b { font-size: 26px; letter-spacing: -0.02em; display: block; margin-top: 4px; }
.plans .card .tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); }
.plans .card.hi .tag { color: var(--on-accent); opacity: .7; }
.note { color: var(--muted); max-width: 720px; margin: 20px 0 0; font-size: 16px; }

.data { max-width: 720px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; margin-top: 32px; font-size: 14px; color: var(--muted); }
footer nav { margin-bottom: 14px; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--ink); font-size: 14px; }
footer p { margin: 6px 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 40px; }
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(4, 220px); overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .shots figure { scroll-snap-align: start; }
}
@media (max-width: 600px) {
  header nav a.hide-sm { display: none; }
  .grid, .steps, .two { grid-template-columns: 1fr; }
  .chip { left: 0; }
  section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- Micro-animations. Everything here is skipped with reduced motion. ---- */
.stores a, .card, .shots .phone, .lang { transition: transform .2s ease, box-shadow .2s ease,
  border-color .2s ease, background-color .2s ease; }
header { transition: box-shadow .25s ease; }
header.scrolled { box-shadow: 0 8px 24px -16px rgba(0,0,0,.6); }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: content comes in one line at a time, the phone rises, then the "Paid" chip pops. */
  .hero > div:first-child > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
  .hero > div:first-child > :nth-child(3) { animation-delay: .16s; }
  .hero > div:first-child > :nth-child(4) { animation-delay: .24s; }
  .hero > div:first-child > :nth-child(5) { animation-delay: .32s; }
  .hero-art .phone { animation: rise .8s .15s cubic-bezier(.2,.7,.2,1) both,
    float 6s 1.2s ease-in-out infinite; }
  .chip { animation: pop .5s 1s cubic-bezier(.3,1.5,.5,1) both, float 6s 1.8s ease-in-out infinite; }
  .chip .check { animation: pop .4s 1.25s cubic-bezier(.3,1.6,.5,1) both; }
  /* The yellow highlight on "tap." sweeps in. */
  h1 mark { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / 0% 100%;
    animation: sweep .5s .7s cubic-bezier(.6,0,.2,1) both; }
  .eyebrow .dot { animation: pulse 2.4s ease-out infinite; }

  /* Hover: cards, badges and screenshots lift a little. */
  .stores a:hover { transform: translateY(-2px); }
  .card:hover, .steps li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,0,.6); }
  .card:not(.hi):hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
  .steps li { transition: transform .2s ease, box-shadow .2s ease; }
  .card .icon svg { transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
  .card:hover .icon svg { transform: scale(1.12) rotate(-4deg); }
  .shots figure:hover .phone { transform: translateY(-6px); }
  /* Tap to Pay icon: the waves ripple out on hover. */
  .card.hi:hover .icon path { animation: wave 1.2s ease-in-out infinite; }
  .card.hi:hover .icon path:nth-child(2) { animation-delay: .15s; }
  .card.hi:hover .icon path:nth-child(3) { animation-delay: .3s; }

  /* Scroll reveal (js/motion.js adds .motion to <html> and .in when an element is in view). */
  .motion :is(section > h2, section > .sub, section > .data, section > .note,
    .grid > .card, .steps > li, .shots > figure) {
    opacity: 0; transform: translateY(18px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .2s ease,
      border-color .2s ease;
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .motion :is(section > h2, section > .sub, section > .data, section > .note,
    .grid > .card, .steps > li, .shots > figure).in { opacity: 1; transform: none; }
  /* Once revealed (js/motion.js resets --i), hover reacts quickly. */
  .motion .in.settled:is(.card, li) { transition-duration: .2s; }
  .motion .steps > li.in::before { animation: pop .45s calc(var(--i, 0) * 70ms + .2s) cubic-bezier(.3,1.6,.5,1) both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes sweep { from { color: var(--ink); } to { background-size: 100% 100%; color: var(--on-accent); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; } }
@keyframes wave { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
