/* Trama — playtrama.com. Paleta e tipografia do app (Design/Theme.swift, modo escuro). */

@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("/fonts/BodoniModa-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #141016;
  --bg-2: #1c171c;
  --raised: #251e25;
  --ink: #f1e9ec;
  --muted: #a99ba2;
  --line: #352b32;
  --gold: #d4af37;
  --gold-soft: #f3dc8c;
  --gold-deep: #b8902b;
  --wine: #c9476f;
  --wine-deep: #4a0f24;
  --copper: #d08a56;
  --display: "Bodoni Moda", "Didot", Georgia, serif;
  --read: "Newsreader", Georgia, serif;
  --ui: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 24px;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--ui);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--wine-deep); color: var(--gold-soft); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* ---------- tipografia editorial ---------- */
.kicker {
  font: 500 12px/1 var(--ui); letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.title {
  font: 400 clamp(38px, 5.4vw, 64px)/1.04 var(--display); letter-spacing: -.01em; color: var(--ink);
}
.title em { font-style: italic; color: var(--gold-soft); }
.body { color: var(--muted); max-width: 54ch; margin-top: 22px; }
.center .body { margin-left: auto; margin-right: auto; }

/* ---------- navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 68px;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(20, 16, 22, .82); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: auto; filter: drop-shadow(0 0 10px rgba(212, 175, 55, .25)); }
.brand span { font: 500 23px/1 var(--display); color: var(--gold); letter-spacing: .02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.langs { display: flex; gap: 2px; }
.langs a {
  font: 500 12px/1 var(--ui); letter-spacing: .08em; color: var(--muted); text-decoration: none;
  padding: 7px 7px; border-radius: 8px; transition: color .2s, background .2s;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] { color: var(--gold); background: rgba(212, 175, 55, .1); }
.menu-btn { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.menu-btn i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.menu-btn i:first-of-type { top: 15px; }
.menu-btn i:last-of-type { top: 24px; }
.menu-btn[aria-expanded="true"] i:first-of-type { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-of-type { top: 19.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-art {
  position: absolute; inset: 0 0 0 34%; z-index: -1; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; animation: drift 24s ease-in-out infinite alternate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20, 16, 22, .9) 30%, rgba(20, 16, 22, .35) 46%, rgba(20, 16, 22, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(20, 16, 22, 0) 22%);
}
.hero-inner { padding-top: 120px; padding-bottom: 90px; }
.hero-inner > * { max-width: 560px; }
.logo {
  font: 500 clamp(84px, 13vw, 168px)/.9 var(--display); letter-spacing: .01em;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, .28));
  margin-left: -.04em;
}
.tagline { font: italic 400 clamp(22px, 2.6vw, 30px)/1.25 var(--display); color: var(--gold-soft); margin-top: 14px; }
.lead { color: #cdbfc5; margin-top: 26px; font-size: 18px; max-width: 48ch; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 18px; }
.try {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 44px;
  font: 500 13px/1 var(--ui); letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
}
.try span { animation: nudge 2.2s ease-in-out infinite; }

/* ---------- botões das lojas ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.center .stores { justify-content: center; }
.store {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 172px; height: 58px; padding: 0 22px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(180deg, #2b222b, #1e181f); border: 1px solid rgba(212, 175, 55, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.store:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212, 175, 55, .15); }
.store-top { font-size: 11px; line-height: 1.2; color: var(--muted); letter-spacing: .04em; }
.store-name { font: 500 19px/1.2 var(--ui); color: var(--ink); }
.store.is-soon { cursor: default; border-style: dashed; border-color: rgba(212, 175, 55, .3); }
.store.is-soon .store-name { color: #d9cdd2; }
.store-soon {
  position: absolute; top: -9px; right: 12px; padding: 3px 9px; border-radius: 999px;
  font: 500 10px/1.3 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--bg);
}

/* ---------- seções ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.split-rev > figure { order: 2; }
.art-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(212, 175, 55, .14);
}
.art-frame img { width: 100%; height: 100%; object-fit: cover; }
.art-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 22, .45), transparent 40%); }

/* como funciona */
.steps { margin-top: 44px; display: grid; gap: 34px; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.step-n { font: italic 400 34px/1 var(--display); color: var(--gold); padding-top: 2px; }
.steps h3 { font: 400 25px/1.25 var(--display); color: var(--ink); }
.steps p { color: var(--muted); margin-top: 8px; }

/* ---------- demo / leitor ---------- */
.demo { background: radial-gradient(ellipse 70% 60% at 75% 45%, rgba(74, 15, 36, .55), transparent 70%), var(--bg); }
.demo-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.demo-intro { position: sticky; top: 140px; }
.demo-hint { margin-top: 30px; font: 500 13px/1 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.reader {
  max-width: 500px; width: 100%; justify-self: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 30px; overflow: hidden;
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 175, 55, .08);
}
.reader-art { position: relative; aspect-ratio: 3 / 2; }
.reader-art img { width: 100%; height: 100%; object-fit: cover; }
.reader-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg-2) 0%, rgba(28, 23, 28, 0) 45%); }
.reader-body { padding: 4px 34px 38px; font: 400 19px/1.7 var(--read); color: #ece2e6; }
.reader-chapter { font: 500 11px/1 var(--ui); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.reader-text p, .reader-outcome p { margin: 0 0 .85em; }
.dropcap::first-letter {
  float: left; font: 500 3.4em/.82 var(--display); color: var(--gold); padding: .06em .1em 0 0;
}
.reader-choices { margin-top: 28px; display: grid; gap: 10px; }
.reader-prompt { font: 500 12px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.choice {
  text-align: left; padding: 14px 18px; border: 0; border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0; background: rgba(212, 175, 55, .07);
  font: italic 400 18px/1.45 var(--read); color: var(--gold-soft);
  transition: background .25s, transform .25s, opacity .35s;
}
.choice:hover { background: rgba(212, 175, 55, .14); transform: translateX(4px); }
.reader.is-chosen .reader-choices { display: none; }
.reader-outcome { margin-top: 26px; animation: rise .6s ease both; }
.choice-made { font: italic 400 17px/1.5 var(--read); color: var(--muted); padding-left: 16px; border-left: 2px solid var(--line); }
.fx {
  display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 22px !important;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(212, 175, 55, .45);
  background: rgba(212, 175, 55, .08); font: 500 13px/1.2 var(--ui); color: var(--gold);
  animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) .25s both;
}
.reader-end { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; animation: rise .6s ease .2s both; }
.ornament { display: block; font-size: 22px; color: var(--gold); line-height: 1; text-shadow: 0 0 16px rgba(212, 175, 55, .6); }
.reader-end h3 { font: italic 400 28px/1.2 var(--display); color: var(--gold-soft); margin-top: 12px; }
.reader-end p { font: 400 16px/1.6 var(--ui); color: var(--muted); margin: 12px auto 0; max-width: 36ch; }
.ghost {
  margin-top: 22px; padding: 12px 22px; border-radius: 999px; background: none;
  border: 1px solid rgba(212, 175, 55, .45); font: 500 14px/1 var(--ui); color: var(--gold);
  transition: background .25s;
}
.ghost:hover { background: rgba(212, 175, 55, .1); }

/* ---------- conversas ---------- */
.conversas { background: radial-gradient(ellipse 60% 55% at 22% 50%, rgba(74, 15, 36, .45), transparent 70%), var(--bg); }
.phone-col { max-width: 390px; width: 100%; justify-self: center; }
.phone {
  position: relative; display: flex; flex-direction: column;
  background: #0f0c10; border: 1px solid var(--line); border-radius: 36px; overflow: hidden;
  box-shadow: 0 50px 140px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 175, 55, .08);
}
.notif {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 5;
  display: flex; gap: 11px; align-items: flex-start; padding: 11px 13px; border-radius: 18px;
  background: rgba(52, 43, 52, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 13.5px; line-height: 1.35;
  opacity: 0; transform: translateY(-130%); transition: transform .5s cubic-bezier(.2, 1.1, .3, 1), opacity .4s;
}
.notif.is-shown { opacity: 1; transform: none; }
.notif img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.notif strong { font-weight: 500; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(212, 175, 55, .5); }
.chat-head strong { display: block; font: 500 16px/1.2 var(--ui); }
.chat-status { font-size: 12.5px; color: var(--muted); transition: color .2s; }
.chat-status.is-typing { color: var(--gold); }
.chat-body {
  display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 16px; height: 430px;
  overflow-y: auto; scrollbar-width: none; scroll-behavior: smooth;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 15, 36, .35), transparent 70%);
}
.chat-body::-webkit-scrollbar { display: none; }
.chat-body > :first-child { margin-top: auto; }
.msg { max-width: 82%; padding: 8px 12px 7px 13px; border-radius: 18px; font: 400 15.5px/1.4 var(--ui); animation: rise .35s ease both; }
.msg[hidden] { display: none; }
.msg.in { align-self: flex-start; background: #2a2229; border-bottom-left-radius: 6px; color: #f1e9ec; }
.msg.out { align-self: flex-end; background: linear-gradient(180deg, #7a2443, #5c1830); border-bottom-right-radius: 6px; color: #fbe9ef; }
.msg.in + .msg.out, .msg.out + .msg.in { margin-top: 8px; }
.meta { display: inline-block; margin-left: 10px; font-size: 10.5px; color: rgba(241, 233, 236, .5); position: relative; top: 4px; white-space: nowrap; }
.ticks { margin-left: 3px; color: var(--gold-soft); letter-spacing: -3px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 13px 14px; background: #2a2229; border-radius: 18px; border-bottom-left-radius: 6px; }
.typing[hidden] { display: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
.composer { display: flex; align-items: center; gap: 8px; padding: 10px 12px 16px; background: var(--bg-2); border-top: 1px solid var(--line); }
.composer-field {
  flex: 1; min-height: 42px; display: flex; align-items: center; padding: 9px 16px; border-radius: 22px;
  background: #2a2229; font: 400 15px/1.35 var(--ui); color: var(--ink); overflow: hidden;
}
.ph { color: var(--muted); }
.ph[hidden], .caret[hidden] { display: none; }
.caret { display: inline-block; width: 1.5px; height: 1.15em; margin-left: 1px; background: var(--gold); animation: caret 1s steps(1) infinite; }
.send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-soft), var(--gold)); transition: transform .2s; }
.send.is-pressed { transform: scale(.88); }
.send svg { width: 19px; height: 19px; fill: var(--bg); }
.chat-caption { margin-top: 22px; text-align: center; font: 500 14px/1.5 var(--ui); color: var(--gold); }
.link-btn { margin-left: 8px; padding: 0; background: none; border: 0; font: inherit; color: var(--gold-soft); text-decoration: underline; text-underline-offset: 3px; }
.link-btn[hidden] { display: none; }
.points { margin-top: 36px; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes caret { 50% { opacity: 0; } }

/* ---------- histórias ---------- */
.shelf-wrap { position: relative; }
.shelf {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter);
}
.story {
  position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .05);
}
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.story:hover img { transform: scale(1.05); }
.story::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(20, 16, 22, .98) 0%, rgba(20, 16, 22, .9) 34%, rgba(20, 16, 22, .55) 54%, rgba(20, 16, 22, 0) 74%);
}
.story-body { position: absolute; inset: auto 0 0; padding: 20px 18px 20px; }
.story h3 { font: 400 23px/1.15 var(--display); color: var(--ink); margin-top: 10px; }
.story p { font-size: 13.5px; line-height: 1.5; color: #c9bcc2; margin-top: 8px; }
.universe {
  display: inline-block; font: 500 10.5px/1 var(--ui); letter-spacing: .2em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor;
}
.universe-ela { color: var(--wine); }
.universe-ele { color: var(--copper); }
.badge-free {
  position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: 999px;
  font: 500 11px/1 var(--ui); letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--bg);
  box-shadow: 0 6px 20px rgba(212, 175, 55, .35);
}
.more { margin-top: 34px; font: italic 400 20px/1.4 var(--display); color: var(--muted); }

/* ---------- recursos ---------- */
.recursos { background: linear-gradient(180deg, var(--bg), var(--bg-2) 50%, var(--bg)); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features li { background: var(--bg); padding: 38px 34px 40px; transition: background .3s; }
.features li:hover { background: #18131a; }
.icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, .4); color: var(--gold); margin-bottom: 22px;
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { font: 400 23px/1.25 var(--display); }
.features p { color: var(--muted); margin-top: 8px; font-size: 16px; }

/* ---------- privacidade ---------- */
.privacy-list { margin-top: 40px; display: grid; gap: 26px; }
.privacy-list li { position: relative; padding-left: 30px; }
.privacy-list li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 9px; height: 9px;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px rgba(212, 175, 55, .6);
}
.privacy-list h3 { font: 400 23px/1.3 var(--display); }
.privacy-list p { color: var(--muted); margin-top: 4px; }
.site-note { margin-top: 36px; font: italic 400 17px/1.5 var(--read); color: var(--muted); }

/* ---------- dúvidas ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 400 23px/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font: 300 30px/1 var(--ui); color: var(--gold); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 48px 28px 0; }

/* ---------- final ---------- */
.final {
  padding: 120px 0 140px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(74, 15, 36, .7), transparent 70%);
}
.final-mask { width: 240px; margin: 0 auto 34px; filter: drop-shadow(0 0 40px rgba(212, 175, 55, .35)); animation: float 7s ease-in-out infinite; }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 46px 0 56px; font-size: 14px; color: var(--muted); }
.footer-inner { display: grid; gap: 12px; justify-items: center; text-align: center; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.langs-foot a { margin: 0 4px; }
.langs-foot a[aria-current="page"] { color: var(--gold); }
.rights { font-size: 13px; opacity: .75; }

/* ---------- sugestão de idioma ---------- */
.langbar {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 18px; border-radius: 999px;
  background: rgba(37, 30, 37, .94); border: 1px solid rgba(212, 175, 55, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5); animation: rise .5s ease both; white-space: nowrap;
}
.langbar[hidden] { display: none; }
.langbar a { font: 500 14px/1 var(--ui); color: var(--gold); text-decoration: none; }
.langbar button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 20px; line-height: 1; }
.langbar button:hover { background: rgba(255, 255, 255, .06); color: var(--ink); }

/* ---------- movimento ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@keyframes drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.1) translateY(-1.5%); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.langbar { animation-name: rise-bar; }
@keyframes rise-bar { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsivo ---------- */
@media (max-width: 1080px) {
  .shelf {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(240px, 34vw);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    padding-bottom: 18px; scrollbar-width: none; max-width: none;
  }
  .shelf::-webkit-scrollbar { display: none; }
  .story { scroll-snap-align: start; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; margin: 0;
    background: rgba(20, 16, 22, .97); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav-links a:last-child { border-bottom: 0; }
  .langs { margin-left: auto; }
  .menu-btn { display: block; }
  .nav.menu-open { background: rgba(20, 16, 22, .97); border-color: var(--line); }

  .hero { align-items: flex-end; min-height: 100svh; }
  .hero-art {
    inset: 0 0 auto; height: 66svh;
    -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  }
  .hero-art img { object-position: 50% 28%; }
  .hero::before { background: linear-gradient(180deg, rgba(20, 16, 22, .45) 0%, rgba(20, 16, 22, 0) 16%); }
  .hero-inner { padding-top: 54svh; padding-bottom: 56px; }

  .section { padding: 92px 0; }
  .split, .demo-grid { grid-template-columns: 1fr; gap: 48px; }
  .split-rev > figure { order: 0; }
  .art-frame { aspect-ratio: 16 / 11; }
  .demo-intro { position: static; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-inner { gap: 10px; }
  .brand span { font-size: 21px; }
  .langs a { padding: 7px 5px; font-size: 11px; }
  .lead { font-size: 17px; }
  .stores { gap: 10px; }
  .store { min-width: 0; flex: 1 1 150px; height: 56px; padding: 0 16px; }
  .shelf { grid-auto-columns: 76vw; gap: 14px; }
  .features { grid-template-columns: 1fr; }
  .features li { padding: 30px 24px 32px; }
  .reader { border-radius: 24px; }
  .reader-body { padding: 0 22px 30px; font-size: 18px; }
  .choice { font-size: 17px; padding: 13px 15px; }
  .faq summary { font-size: 20px; padding: 22px 40px 22px 0; }
  .faq details p { padding-right: 0; }
  .final-mask { width: 180px; }
  .langbar { left: 16px; right: 16px; transform: none; justify-content: space-between; }
  @keyframes rise-bar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- páginas legais (privacidade, termos, suporte) ---------- */
.legal { padding-top: 132px; padding-bottom: 72px; }
.legal .title { font-size: clamp(34px, 5vw, 52px); margin-bottom: 28px; }
.legal h2 { font: 400 26px/1.25 var(--display); color: var(--gold-soft); margin: 44px 0 14px; }
.legal h3 { font: 500 17px/1.4 var(--ui); color: var(--ink); margin: 28px 0 8px; }
.legal p, .legal li { font: 400 18px/1.7 var(--read); color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--gold-soft); text-underline-offset: 3px; }
.legal strong { font-weight: 500; color: var(--gold-soft); }
.legal-page .langs { margin-left: auto; }
.footer .legal-links a { margin: 0 2px; }
@media (max-width: 560px) {
  .legal { padding-top: 104px; }
  .legal p, .legal li { font-size: 17px; }
}
