:root {
  --bg: #09090f;
  --bg-2: #0f0f1a;
  --bg-3: #14142a;
  --accent: #7c6cff;
  --accent-2: #a89bff;
  --violeta: #b9a7e8;
  --text: #f0eff8;
  --muted: #8885a8;
  --border: rgba(124, 108, 255, 0.15);
  --border-2: rgba(255, 255, 255, 0.07);
  --radius: 18px;
  --max: 760px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(124, 108, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(185, 167, 232, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 16px/1.7 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: "Syne", "DM Sans", sans-serif; line-height: 1.2; margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(9, 9, 15, 0.72);
  border-bottom: 1px solid var(--border-2);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img { width: 28px; height: 28px; border-radius: 8px; }

.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { margin: 0 6px; opacity: 0.5; }

main { max-width: var(--max); margin: 0 auto; padding: 48px 20px 80px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(32px, 6vw, 48px); font-weight: 800; }
.hero p.lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 60ch; }
.meta { color: var(--muted); font-size: 14px; margin-top: 18px; }

.card {
  background: linear-gradient(180deg, rgba(20, 20, 42, 0.9), rgba(15, 15, 26, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.summary { margin: 36px 0; }
.summary h2 { font-size: 18px; margin-bottom: 14px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.summary li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.summary li::before { content: "✦"; color: var(--violeta); }

.toc { margin: 0 0 40px; }
.toc h2 { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent-2); }

section.policy { padding-top: 8px; border-top: 1px solid var(--border-2); margin-top: 36px; scroll-margin-top: 80px; }
section.policy h2 { font-size: 22px; margin: 28px 0 12px; }
section.policy h3 { font-size: 16px; margin: 20px 0 6px; color: var(--violeta); }
section.policy p, section.policy li { color: #d7d5e8; }
section.policy ul { padding-left: 20px; }
section.policy li { margin: 6px 0; }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border-2); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { text-align: left; padding: 12px 14px; vertical-align: top; border-bottom: 1px solid var(--border-2); }
th { color: var(--muted); font-weight: 600; background: rgba(255, 255, 255, 0.02); }
tr:last-child td { border-bottom: 0; }

.note {
  border-left: 3px solid var(--accent);
  background: rgba(124, 108, 255, 0.08);
  padding: 14px 16px;
  border-radius: 0 12px 12px 0;
  margin: 16px 0;
}

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 32px 0; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.app-card { display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.app-card:hover { border-color: rgba(124, 108, 255, 0.45); transform: translateY(-2px); color: var(--text); }
.app-card .icon { width: 64px; height: 64px; border-radius: 16px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #7b6da3, #4a3d68); font: 800 28px "Syne", sans-serif; }
.app-card h2 { font-size: 20px; }
.app-card p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--text);
  text-decoration: none; font-weight: 600; background: rgba(255, 255, 255, 0.03);
}
.button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button:hover { color: #fff; border-color: var(--accent-2); }

.site-footer { border-top: 1px solid var(--border-2); color: var(--muted); font-size: 13px; }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  main { padding-top: 32px; }
  .crumbs { display: none; }
  .card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .app-card { transition: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .site-header, .toc, .site-footer { display: none; }
  section.policy p, section.policy li, .hero p.lead, .meta { color: #000; }
  .card, .note { background: none; border-color: #ccc; }
  a { color: #000; }
}

/* Vitrine: celular com um pedaço vivo do app, controles ao lado. */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 36px 0 8px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(124, 108, 255, 0.08), transparent 55%), var(--bg-2);
}
.showcase .controls { display: grid; gap: 16px; min-width: 0; }
.showcase .controls h2 { font-size: 22px; }
.showcase .controls p { margin: 0; color: var(--muted); font-size: 15px; }
.showcase label { display: grid; gap: 6px; font-size: 14px; color: var(--text); }
.showcase label span { display: flex; justify-content: space-between; gap: 12px; }
.showcase label output { color: var(--accent-2); font-variant-numeric: tabular-nums; }
.showcase input[type="range"] { width: 100%; accent-color: var(--accent); }
.showcase .fine { margin: 0; font-size: 13px; color: var(--muted); }

.phone {
  width: 260px;
  max-width: 100%;
  aspect-ratio: 9 / 19;
  border-radius: 42px;
  padding: 10px;
  background: #1b1b2b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -20px var(--glow, rgba(124, 108, 255, 0.35));
}
.phone .screen {
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 34px 14px 14px;
  font-size: 12px;
  line-height: 1.35;
}
.phone .screen::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 78px;
  height: 22px;
  border-radius: 12px;
  background: #000;
}

@media (max-width: 640px) {
  .showcase { grid-template-columns: 1fr; justify-items: center; padding: 18px; }
  .showcase .controls { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .phone * { transition: none !important; animation: none !important; } }
