/* Página inicial do Jumie (pt, en, es usam o mesmo arquivo).
   Tokens do app (ElevenLabs via awesome-design): canvas off-white, tinta quente, Newsreader Light + Inter,
   orbe pastel como atmosfera. Formas: pill para tudo que é clicável, 28px para superfícies, 48px para o aparelho. */
:root {
  --canvas: #f5f5f5;
  --canvas-soft: #fafafa;
  --card: #ffffff;
  --strong: #f0efed;
  --ink: #0c0a09;
  --primary: #292524;
  --on-primary: #ffffff;
  --body: #4e4e4e;
  --muted: #6f6962;
  --hairline: #e7e5e4;
  --hairline-strong: #d6d3d1;
  --orb-opacity: 0.9;
  --mint: #a7e5d3;
  --peach: #f4c5a8;
  --lavender: #c8b8e0;
  --sky: #a8c8e8;
  --shadow: 12, 10, 9;
  --glass: rgba(255, 255, 255, 0.72);
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0c0a09; --canvas-soft: #141210; --card: #1c1917; --strong: #292524;
    --ink: #fafaf9; --primary: #f5f5f5; --on-primary: #0c0a09; --body: #d6d3d1; --muted: #a8a29e;
    --hairline: #292524; --hairline-strong: #44403c; --orb-opacity: 0.55; --shadow: 0, 0, 0;
    --glass: rgba(28, 25, 23, 0.72);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0c0a09; --canvas-soft: #141210; --card: #1c1917; --strong: #292524;
  --ink: #fafaf9; --primary: #f5f5f5; --on-primary: #0c0a09; --body: #d6d3d1; --muted: #a8a29e;
  --hairline: #292524; --hairline-strong: #44403c; --orb-opacity: 0.55; --shadow: 0, 0, 0;
  --glass: rgba(28, 25, 23, 0.72);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font: 400 16px/1.55 var(--sans);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 300; color: var(--ink); margin: 0; font-optical-sizing: auto; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
main { overflow-x: clip; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--card); padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
.nw { white-space: nowrap; }

/* Botões: o pill de tinta é a única cor de ação. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: 0; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset; }
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(var(--shadow), .45); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-outline:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Topo: fixo; ganha vidro e linha quando a página rola. */
.top {
  position: sticky; top: 0; z-index: 20;
  transition: background-color .3s, box-shadow .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
}
.top.scrolled {
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--hairline);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 300 26px/1 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.top nav { display: flex; align-items: center; gap: 28px; font: 500 15px/1.4 var(--sans); }
.top nav a:not(.btn) { text-decoration: none; color: var(--body); transition: color .2s; }
.top nav a:not(.btn):hover { color: var(--ink); }
.top .btn { height: 40px; padding: 0 18px; }
#top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-top: clamp(24px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 120px);
}
.hero h1 { font-size: clamp(46px, 6.4vw, 88px); line-height: 1.0; letter-spacing: -0.035em; text-wrap: balance; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-style: italic; }
:lang(es) .hero h1 { font-size: clamp(42px, 5.4vw, 76px); }
.hero .lede { margin-top: 28px; max-width: 36ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stage { position: relative; display: grid; justify-items: center; align-items: center; min-height: 560px; }
.stage canvas {
  position: absolute; left: 50%; top: 50%; width: min(130%, 700px); aspect-ratio: 1; translate: -50% -50%;
  filter: blur(clamp(22px, 3vw, 40px)) saturate(1.2); pointer-events: none;
}
.device {
  position: relative; margin: 0; width: min(100%, 300px); aspect-ratio: 1320 / 2868;
  border-radius: 46px; padding: 10px; background: #0c0a09;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 50px 80px -30px rgba(var(--shadow), .45),
    0 0 0 1px var(--hairline-strong);
}
.device::before {
  content: ""; position: absolute; z-index: 2; top: 20px; left: 50%; width: 30%; height: 22px;
  translate: -50% 0; border-radius: 999px; background: #0c0a09;
}
.device .screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden; background: #f5f5f5;
}
.device .screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .device { z-index: 1; }

/* Balões da conversa de exemplo, por cima do aparelho */
.talk {
  position: absolute; z-index: 2; left: 50%; width: min(460px, 100%); translate: -50% 0; bottom: 13%;
  display: grid; gap: 10px; pointer-events: none;
}
.bubble {
  max-width: 78%; padding: 12px 16px; border-radius: 22px;
  font-size: 15px; line-height: 1.45; color: var(--ink);
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset, 0 18px 40px -18px rgba(var(--shadow), .35), 0 0 0 1px var(--hairline);
  opacity: 0; transform: translateY(12px) scale(.97);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.bubble.on { opacity: 1; transform: none; }
.bubble.me { justify-self: end; border-bottom-right-radius: 8px; min-height: 47px; }
.bubble.me span { opacity: 0; filter: blur(5px); transition: opacity .3s ease, filter .3s ease; }
.bubble.me span.on { opacity: 1; filter: blur(0); }
.bubble.jumie { justify-self: start; border-bottom-left-radius: 8px; }
.bubble.jumie .from { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.bubble.jumie .from img { width: 16px; height: 16px; border-radius: 5px; }
.try { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.chip {
  height: 36px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--sans); color: var(--ink); background: color-mix(in srgb, var(--canvas) 60%, transparent);
  border: 1px solid var(--hairline-strong);
  transition: background-color .2s, border-color .2s, color .2s, transform .35s var(--ease);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Seções */
section { padding: var(--section) 0; }
.hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }
h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; text-wrap: balance; }
.intro { margin-top: 22px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 19px); }
.center { text-align: center; }
.center h2, .center .intro { margin-left: auto; margin-right: auto; }

/* Vitrine: texto rola, o aparelho fica parado e troca de tela. */
.show { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); margin-top: clamp(40px, 6vw, 88px); }
.show .steps { list-style: none; margin: 0; padding: 0; }
.show .step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.show .step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 12vh; }
.show .step:last-child { min-height: 64vh; }
.step h3 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch; }
.step p { margin-top: 14px; max-width: 40ch; font-size: 17px; }
.step q {
  align-self: flex-start; display: inline-block; margin-top: 22px; padding: 10px 16px; border-radius: 20px; border-bottom-right-radius: 6px;
  background: var(--card); border: 1px solid var(--hairline); color: var(--ink); font-size: 15px; quotes: none;
}
.step .device { display: none; }
.step h3, .step p, .step q { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.js .show .step:not(.active) h3, .js .show .step:not(.active) p, .js .show .step:not(.active) q { opacity: .28; }
.js .show .step:not(.active) q { transform: translateY(6px); }
.show .pin { position: sticky; top: calc(50vh - min(34vh, 310px)); height: min(68vh, 620px); display: grid; justify-items: center; }
.show .pin .device { width: auto; height: 100%; }
.show .pin .screen > img { opacity: 0; transform: scale(1.03); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.show .pin .screen > img.on { opacity: 1; transform: none; }
.show .pin::before {
  content: ""; position: absolute; inset: 8% -20%; z-index: -1; border-radius: 50%; filter: blur(60px);
  opacity: calc(var(--orb-opacity) * .8);
  background:
    radial-gradient(40% 40% at 25% 70%, var(--mint), transparent 70%),
    radial-gradient(35% 35% at 75% 25%, var(--peach), transparent 70%),
    radial-gradient(40% 40% at 80% 75%, var(--lavender), transparent 70%),
    radial-gradient(35% 35% at 35% 30%, var(--sky), transparent 70%);
  animation: drift 24s linear infinite;
}
.progress { position: absolute; right: -28px; top: 50%; translate: 0 -50%; display: grid; gap: 8px; }
.progress i { display: block; width: 3px; height: 18px; border-radius: 999px; background: var(--hairline-strong); transition: background-color .3s, height .5s var(--ease); }
.progress i.on { background: var(--ink); height: 34px; }
@keyframes drift { to { rotate: 360deg; } }

/* Avisos: a tela de bloqueio recebe as notificações uma a uma, e a lista ao lado acompanha. */
.alerts { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.when { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.when li {
  padding: 16px 18px; border-radius: 20px; border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, transform .5s var(--ease);
}
.when li.on { background: var(--card); border-color: var(--hairline); transform: translateY(-2px); }
.when b { display: block; font: 400 20px/1.2 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.when span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lock .screen {
  background: #ece8ef; display: flex; flex-direction: column; align-items: stretch; padding: 58px 12px 16px; isolation: isolate;
}
.lock .screen::before {
  content: ""; position: absolute; inset: -25%; z-index: -1; filter: blur(40px);
  background:
    radial-gradient(45% 35% at 25% 78%, #a7e5d3, transparent 72%),
    radial-gradient(42% 34% at 78% 22%, #f4c5a8, transparent 72%),
    radial-gradient(46% 38% at 82% 68%, #c8b8e0, transparent 72%),
    radial-gradient(42% 36% at 38% 40%, #a8c8e8, transparent 72%);
  animation: drift 40s linear infinite;
}
.clock { text-align: center; color: #0c0a09; font: 300 64px/1 var(--serif); letter-spacing: -0.02em; }
.date { text-align: center; font-size: 13px; font-weight: 500; color: #0c0a09; opacity: .7; margin-top: 4px; }
.stack { position: relative; margin-top: 22px; display: grid; gap: 8px; }
.notif {
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  border-radius: 20px; padding: 11px 13px; font-size: 12.5px; line-height: 1.38; color: #0c0a09;
  animation: drop .7s var(--ease) both;
}
.notif.out { animation: fade .45s ease both; }
.notif .head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; font-weight: 600; }
.notif .head img { width: 18px; height: 18px; border-radius: 5px; }
.notif .head time { margin-left: auto; padding-left: 8px; font-weight: 400; color: #57534e; white-space: nowrap; }
.notif .head { align-items: flex-start; }
.notif .head img { flex: none; margin-top: 1px; }
@keyframes drop { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
@keyframes fade { to { opacity: 0; transform: scale(.94); } }

/* Detalhes: grade com ritmo (2+1, 1+2, 2+1) e fundos variados. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  background: var(--card); border: 1px solid var(--hairline); min-height: 300px;
  display: flex; flex-direction: column; gap: 10px; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(var(--shadow), .3); }
.tile.w2 { grid-column: span 2; }
.tile h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -0.02em; max-width: 18ch; }
.tile p { font-size: 16px; max-width: 40ch; }
.tile .art { margin-top: auto; padding-top: 18px; }
.tile.tint-a { background: linear-gradient(140deg, color-mix(in srgb, var(--mint) 55%, var(--card)), color-mix(in srgb, var(--sky) 45%, var(--card))); border-color: transparent; }
.tile.tint-b { background: linear-gradient(150deg, color-mix(in srgb, var(--peach) 55%, var(--card)), color-mix(in srgb, var(--lavender) 50%, var(--card))); border-color: transparent; }
.tile.ink { background: #1c1917; border-color: #1c1917; }
.tile.ink h3 { color: #fafaf9; }
.tile.ink p { color: #d6d3d1; }

.receipt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: end; height: 100%; }
.receipt img { width: 100%; border-radius: 20px; box-shadow: 0 20px 40px -24px rgba(var(--shadow), .45); }

.widget {
  width: 168px; aspect-ratio: 1; border-radius: 30px; padding: 16px; margin-top: auto;
  background: rgba(255, 255, 255, .7); color: #0c0a09;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 40px -24px rgba(12, 10, 9, .4);
  transition: transform .5s var(--ease);
}
.tile:hover .widget { transform: rotate(-3deg) scale(1.03); }
.widget .blob { width: 48px; height: 48px; border-radius: 50%; filter: blur(3px);
  background: conic-gradient(from 200deg, var(--mint), var(--sky), var(--lavender), var(--peach), var(--mint)); animation: drift 10s linear infinite; }
.widget b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.widget small { display: block; font-size: 12px; color: #57534e; }

.wave { display: flex; align-items: center; gap: 5px; height: 64px; }
.wave i { flex: 1; max-width: 6px; height: 100%; border-radius: 999px; background: linear-gradient(var(--peach), var(--lavender)); transform: scaleY(.18); animation: talk 1.4s var(--ease) infinite; animation-delay: calc(var(--i) * -0.13s); }
@keyframes talk { 50% { transform: scaleY(1); } }
.voices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.voices span { padding: 6px 12px; border-radius: 999px; border: 1px solid #44403c; color: #d6d3d1; font-size: 13px; }

.rotator { position: relative; display: block; height: 1.2em; font: 300 clamp(34px, 3.4vw, 48px)/1.2 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.rotator span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(40%); filter: blur(6px); transition: opacity .6s var(--ease), transform .8s var(--ease), filter .6s; }
.rotator span.on { opacity: 1; transform: none; filter: blur(0); }
.rotator span.gone { opacity: 0; transform: translateY(-40%); filter: blur(6px); }
.rotator.small { font-size: clamp(22px, 2.1vw, 28px); }
.langs { display: grid; gap: 4px; }
.langs small { font-size: 13px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); }

.accounts { display: grid; gap: 8px; }
.accounts div { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; font-size: 14px; color: var(--ink); }
.accounts time { color: var(--muted); font-variant-numeric: tabular-nums; }
.accounts i { display: block; height: 30px; border-radius: 10px; background: color-mix(in srgb, var(--c) 70%, var(--card)); padding: 6px 10px; font-style: normal; font-size: 13px; line-height: 18px; }
.accounts i.free { background: transparent; border: 1px dashed var(--hairline-strong); color: var(--muted); }

/* Privacidade */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; margin: 56px 0 0; }
.facts div { padding: 26px 0; border-top: 1px solid var(--hairline); }
.facts dt { font: 300 24px/1.2 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.facts dd { margin: 10px 0 0; max-width: 40ch; font-size: 15.5px; }
.more { margin-top: 36px; font-size: 15px; }

/* Convite */
.invite { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(112px, 16vw, 200px) 0; }
.invite::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; filter: blur(80px); opacity: calc(var(--orb-opacity) * .75);
  background:
    radial-gradient(35% 35% at 30% 65%, var(--mint), transparent 70%),
    radial-gradient(32% 32% at 70% 30%, var(--peach), transparent 70%),
    radial-gradient(35% 35% at 72% 70%, var(--lavender), transparent 70%),
    radial-gradient(32% 32% at 38% 35%, var(--sky), transparent 70%);
  animation: drift 30s linear infinite;
}
.invite h2 { margin: 0 auto; max-width: 14ch; font-size: clamp(44px, 6vw, 84px); }
.invite p { margin: 24px auto 0; max-width: 42ch; font-size: 18px; color: var(--ink); opacity: .8; }
.invite .btn { margin-top: 36px; }
.stores { display: flex; justify-content: center; gap: 10px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.stores span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--hairline-strong); background: color-mix(in srgb, var(--canvas) 60%, transparent); }

footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--body); text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }
footer nav.lang { gap: 2px; margin: 0 -9px; align-items: center; font-weight: 500; letter-spacing: 0.04em; }
.lang a { padding: 6px 9px; border-radius: 999px; }
.lang a[aria-current] { color: var(--ink); background: var(--strong); }
.lang a[aria-current]:hover { text-decoration: none; }
.lang span { color: var(--hairline-strong); }

/* Entradas: só com JS e sem "reduzir movimento"; sem JS tudo aparece normal. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .hero h1 .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .js .hero .lede, .js .hero .actions { opacity: 0; animation: up 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
  .js .stage .device { opacity: 0; animation: phone 1.4s var(--ease) .25s forwards; }
  .js .stage canvas { opacity: 0; animation: glow 2s ease .1s forwards; }
}
@keyframes rise { to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phone { from { opacity: 0; transform: translateY(60px) rotate(4deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glow { to { opacity: 1; } }

@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .stage { min-height: 0; padding-top: 16px; }

  /* Vitrine no celular: o aparelho gruda embaixo do topo e troca de tela; os passos passam por baixo dele. */
  .show { --pin-h: min(46vh, 420px); grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
  @supports (height: 1svh) { .show { --pin-h: min(46svh, 420px); } }
  .show .pin {
    order: -1; top: 68px; z-index: 2; height: auto;
    margin: 0 calc(var(--gutter) * -1); padding: 8px 0 52px;
    background: linear-gradient(var(--canvas) calc(100% - 22px), transparent);
  }
  .show .pin::before { inset: 6% 8% 18%; filter: blur(48px); }
  .show .pin .device { height: var(--pin-h); border-radius: 34px; padding: 6px; }
  .show .pin .device .screen { border-radius: 28px; }
  .show .pin .device::before { top: 13px; height: 14px; }
  .progress { display: flex; right: auto; left: 50%; top: calc(100% + 14px); translate: -50% 0; gap: 6px; }
  .progress i { width: 16px; height: 3px; transition: background-color .3s, width .5s var(--ease); }
  .progress i.on { width: 30px; height: 3px; }
  .show .step, .show .step:first-child, .show .step:last-child {
    min-height: calc(100vh - 68px - var(--pin-h) - 68px); padding: 4px 0 40px; justify-content: flex-start;
  }
  @supports (height: 1svh) {
    .show .step, .show .step:first-child, .show .step:last-child { min-height: calc(100svh - 68px - var(--pin-h) - 68px); }
  }
  .step h3 { font-size: clamp(26px, 6.4vw, 34px); }
  .step p { margin-top: 10px; font-size: 16px; }
  .step q { margin-top: 16px; font-size: 14.5px; }
  /* Sem JS o aparelho fixo não troca de tela: cada passo mostra a sua. */
  html:not(.js) .show .pin { display: none; }
  html:not(.js) .step .device { display: block; width: min(72%, 260px); margin: 28px auto 0; }

  /* Avisos: a tela de bloqueio fica entre o texto e a lista, para os dois aparecerem juntos. */
  .alerts { grid-template-columns: 1fr; gap: 0; }
  .alerts > div { display: contents; }
  .alerts .lock { margin: 40px auto 0; }
  .alerts .when { order: 1; margin-top: 28px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.w2 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .top nav a.hide-sm { display: none; }
  .hero { padding-bottom: 64px; }
  .hero .lede { margin-top: 20px; }
  .hero .actions { margin-top: 28px; }
  .hero .actions .btn { flex: 1 1 auto; }
  .device { width: min(64vw, 250px); border-radius: 40px; padding: 8px; }
  .device .screen { border-radius: 32px; }
  .device::before { top: 16px; height: 18px; }
  /* Balões presos acima da fileira de exemplos, nunca por cima dela. */
  .talk { bottom: 104px; }
  .bubble { font-size: 14px; max-width: 88%; }
  /* Exemplos numa fileira só, que desliza de lado. */
  .try {
    justify-self: stretch; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin: 24px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }
  .try::-webkit-scrollbar, .when::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .alerts .lock { width: min(60vw, 232px); }
  .clock { font-size: 54px; }
  .lock .screen { padding-top: 50px; }
  /* Lista de avisos vira um trilho que acompanha a notificação que acabou de chegar. */
  .when {
    position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .when li { flex: 0 0 min(76%, 300px); scroll-snap-align: center; border-color: var(--hairline); }
  .when li.on { border-color: var(--hairline-strong); }
  .bento { grid-template-columns: 1fr; }
  .tile.w2 { grid-column: auto; }
  .tile { min-height: 0; }
  .receipt { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .stores { flex-direction: column; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .bubble, .notif, .widget, .top.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bubble { background: var(--card); }
  .notif, .widget { background: #fafaf9; }
}
