:root {
  color-scheme: dark;
  --bg: #0b0a08; --card: #15120d; --card-2: #1f1a12; --line: rgba(245, 238, 225, .12);
  --text: #f5eee1; --muted: #b9ae9c; --gold: #d4a23c; --gold-light: #f3d27a; --gold-dark: #8a5a12;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); }
a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }

.top, main, .bottom { width: min(100% - 32px, 1080px); margin: 0 auto; }
.doc main, .doc .top, .doc .bottom { width: min(100% - 32px, 820px); }
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 24px 0 8px; }
.brand img { width: 150px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

main { padding: 16px 0 56px; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.15; margin: 20px 0 6px; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 32px 0 8px; }
p, li, td { color: var(--muted); }
strong { color: var(--text); }
ul { padding-left: 1.2rem; }
.updated { font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; margin: 24px 0; }
.card li { margin: 6px 0; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 22px; margin-top: 40px; }
summary { cursor: pointer; font-weight: 700; color: var(--text); }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; padding: 24px 0 8px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1fr 1.25fr; } }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .18em; font-size: .8rem; text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 10px 0 12px; }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 22px; }
.shot { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.stores li { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 8px 14px; color: var(--text); font-weight: 600; font-size: .92rem; }
.stores li span { color: var(--muted); font-weight: 500; }
.stores li.on { padding: 0; border-color: var(--gold); }
.stores li.on a { display: block; padding: 8px 14px; color: var(--text); text-decoration: none; }
.stores li.on span { color: var(--gold-light); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 40px 0; padding: 0; list-style: none; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.features h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--text); }
.features p { margin: 0; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; margin: 48px 0; }
@media (min-width: 900px) { .split { grid-template-columns: 1.25fr 1fr; } }
.note { background: linear-gradient(135deg, rgba(212, 162, 60, .14), rgba(212, 162, 60, .03)); border: 1px solid rgba(212, 162, 60, .35); border-radius: 14px; padding: 16px 20px; }
.note p { margin: 0; color: var(--text); }

.bottom { border-top: 1px solid var(--line); padding: 20px 0 40px; font-size: .9rem; }
.bottom p { margin: 6px 0; }
/* Grid items default to min-width: auto, and the 1440-px screenshot would widen the column past a phone's width. */
.hero > *, .split > * { min-width: 0; }
/* The language switch (EN/PT) at the end of the menu. */
nav a.lang { border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; color: var(--text); }
nav a.lang:hover { border-color: var(--gold); }

/* Baixar (/baixar): one card per store where the app is live, like the Fusion's /baixar. */
.downloads .intro { text-align: center; padding: 24px 0 28px; }
.downloads .intro .lead { margin: 0 0 20px; }
.downloads h1 span { color: var(--gold); }
.share { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; max-width: 100%; }
.share code { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.share button { font: inherit; cursor: pointer; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px 12px; font-weight: 700; }
.share button.primary { background: var(--gold); border-color: var(--gold); color: #1a1208; }
.share button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.dl { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.dl-top { display: flex; gap: 14px; align-items: flex-start; }
.dl-logo { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff; }
.dl-logo.dark { background: #0d0d0d; border: 1px solid var(--line); }
.dl-logo svg { width: 30px; height: 30px; }
.dl h2 { font-size: 1.08rem; margin: 2px 0 4px; color: var(--text); }
.dl p { margin: 0; font-size: .92rem; }
.dl-ok { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; border: 1px solid rgba(95, 211, 141, .45); border-radius: 999px; padding: 2px 10px; color: #5fd38d; font-size: .78rem; font-weight: 800; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: auto; }
.dl-get { color: var(--gold-light); font-weight: 800; text-decoration: none; }
.dl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dl-links button, .store-preview header button { font: inherit; font-size: .88rem; cursor: pointer; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 6px 11px; font-weight: 700; }
.dl-links button:hover, .store-preview header button:hover { border-color: var(--gold); }
.dl-links button:focus-visible, .store-preview header button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
/* "Ver na loja": the store page photo, over the page. */
.store-preview { width: min(960px, 92vw); padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); }
.store-preview::backdrop { background: rgba(0, 0, 0, .78); }
.store-preview header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.store-preview h2 { margin: 0; font-size: 1.1rem; }
.store-preview img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #000; }
.store-preview p { margin: 0; padding: 12px 16px 16px; }
.downloads .fine { margin-top: 32px; font-size: .85rem; }
