/* Páginas dos apps (geradas por tools/build-apps.mjs). A cor --accent vem do ícone de cada app. */
:root {
  --accent: #4f46e5;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #15172a;
  --muted: #5b6075;
  --line: #e6e7ef;
  --soft: color-mix(in srgb, var(--accent) 8%, var(--bg));
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1020;
    --surface: #161a2e;
    --text: #eef0f8;
    --muted: #a3a9c2;
    --line: #262b45;
    --soft: color-mix(in srgb, var(--accent) 18%, var(--bg));
  }
}
:root[data-theme="dark"] {
  --bg: #0e1020; --surface: #161a2e; --text: #eef0f8; --muted: #a3a9c2; --line: #262b45;
  --soft: color-mix(in srgb, var(--accent) 18%, var(--bg));
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: color-mix(in srgb, var(--accent) 45%, white); } }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 20px; }
h3 { font-size: 1.08rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
section.wrap { padding-top: 56px; padding-bottom: 8px; }

.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem; }
.brand img { border-radius: 8px; }
.bar nav { display: flex; gap: 18px; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.bar nav a:hover { color: var(--text); }
@media (max-width: 520px) { .bar nav { display: none; } }

.hero { background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--soft); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; gap: 36px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 860px) { .hero-in { grid-template-columns: 1.25fr .75fr; padding-top: 72px; padding-bottom: 72px; } }
.app-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 12px 32px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.hero h1 { font-size: clamp(2rem, 5.5vw, 3.2rem); margin: 10px 0 14px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 38ch; }
.status { display: inline-block; margin: 18px 0 0; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 650; letter-spacing: .02em; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.status-producao { color: #0f7a4f; border-color: #a7e3c8; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 16px; border-radius: 14px; background: #111; color: #fff !important; text-decoration: none; font-weight: 650; font-size: 1.08rem; line-height: 1.1; min-height: 56px; }
.play-btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.play-btn:hover { background: #000; }
.play-btn.is-soon { background: var(--surface); color: var(--muted) !important; border: 1px dashed var(--line); cursor: default; }
.ghost-btn { display: inline-flex; align-items: center; min-height: 56px; padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; text-decoration: none; font-weight: 600; }
.ghost-btn:hover { border-color: var(--accent); }
.hero-phone { justify-self: center; max-width: 300px; }
.hero-phone img { border-radius: 28px; border: 8px solid #12131c; box-shadow: 0 30px 60px -25px rgba(10, 12, 30, .55); }

.about p { max-width: 70ch; font-size: 1.05rem; }

.shots { padding-top: 56px; }
.shots-row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; max-width: 1080px; margin: 0 auto; }
@media (min-width: 720px) { .shots-row { padding: 4px 28px 18px; } }
.shots-row img { flex: 0 0 auto; width: min(62vw, 230px); border-radius: 20px; border: 1px solid var(--line); scroll-snap-align: start; background: var(--surface); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card, .plan, .note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { color: var(--text); }
.card h3::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 14px; }
.card p, .card li, .note p, .note li { color: var(--muted); font-size: .97rem; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }
li { margin: 4px 0; }

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.plan { border-top: 4px solid var(--accent); }
.plan p, .plan li { font-size: .98rem; }
.fine { color: var(--muted); font-size: .88rem; margin-top: 14px; }

.notes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.note { background: var(--soft); }

details { border-bottom: 1px solid var(--line); padding: 4px 0; max-width: 820px; }
summary { cursor: pointer; font-weight: 620; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

.final { text-align: center; padding-bottom: 64px !important; }
.final img { margin: 0 auto 14px; border-radius: 16px; }
.final p { color: var(--muted); }
.final .play-btn { margin-top: 10px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.foot p { margin: 6px 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
