/* Decide It — site estático. Sem fontes nem scripts externos. */
:root {
  --bg: #e7e9f0;
  --surface: #f6f7fb;
  --text: #111111;
  --muted: #595954;
  --line: #deded8;
  --accent: #ff5a1f;
  --accent-ink: #b83a08;
  --on-accent: #111111;
  --focus: #111111;
  --ph-bg: #ffe6da;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0d;
    --surface: #1a1a18;
    --text: #f2f2ee;
    --muted: #a8a8a2;
    --line: #2f2f2b;
    --accent-ink: #ff8a5c;
    --focus: #ffffff;
    --ph-bg: #3b2318;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

a { color: var(--accent-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--text); color: var(--bg); padding: 0.6rem 1rem; border-radius: 6px; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 44rem; }

/* Cabeçalho */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; text-decoration: none; }
.brand .dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--accent); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; font-size: 0.9375rem; }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; padding: 0.35rem 0; display: inline-block; }
.nav a:hover { color: var(--text); text-decoration: underline; }
.nav a[aria-current] { color: var(--text); font-weight: 600; }
.lang { border-left: 1px solid var(--line); padding-left: 1.25rem; }
.lang a { font-weight: 600; letter-spacing: 0.02em; }
@media (max-width: 40rem) {
  .nav { width: 100%; }
  .lang { border-left: 0; padding-left: 0; margin-left: auto; }
}

/* Tipografia */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 750; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 0 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--muted); margin: 0 0 1rem; }
.lead { font-size: 1.1875rem; color: var(--muted); max-width: 36rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.55rem 1.4rem; border-radius: 0.75rem; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(0.95); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn[hidden] { display: none; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.stores .btn { min-width: 10.5rem; }

/* Landing */
.hero { display: grid; gap: 2.5rem; padding: 3rem 1rem 3.5rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.15fr 0.85fr; padding: 5rem 1rem; } }

.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.25rem; max-width: 22rem; justify-self: center; width: 100%; }
.mock .chip { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 0.15rem 0.6rem; margin-bottom: 0.9rem; }
.mock .q { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 1.1rem; }
.mock .opt { position: relative; border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.7rem 0.9rem; margin: 0 0 0.6rem; display: flex; justify-content: space-between; font-weight: 600; overflow: hidden; }
.mock .opt > span { position: relative; }
.mock .opt::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); background: var(--bar, transparent); }
.mock .opt.win { --bar: color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.mock .opt.w62 { --w: 62%; }
.mock .opt.w38 { --w: 38%; --bar: color-mix(in srgb, var(--muted) 18%, transparent); }
.mock .foot { margin: 0.9rem 0 0; font-size: 0.875rem; color: var(--muted); }

.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section > .wrap > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 1.75rem; }
.grid { display: grid; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 40rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.grid li { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem; }
.grid h3 { margin-bottom: 0.4rem; }
.grid p { margin: 0; color: var(--muted); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1.25rem; margin: 0; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 0.6rem; }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* Páginas de texto */
.page { padding: 2.5rem 1rem 4rem; }
.page h1 { font-size: clamp(2rem, 6vw, 2.9rem); margin-bottom: 0.75rem; }
.meta { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem 1.25rem; margin: 1.5rem 0 2.5rem; }
.toc h2 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.4rem; columns: 1; }
@media (min-width: 40rem) { .toc ol { columns: 2; column-gap: 2rem; } }
.toc li { break-inside: avoid; padding: 0.1rem 0; }
.prose section { margin-top: 2.5rem; scroll-margin-top: 1rem; }
.prose h2 { margin-bottom: 0.75rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.facts { margin: 0 0 1rem; }
.facts > div { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; margin-bottom: 0.15rem; }
.facts dd { margin: 0; color: var(--muted); }
@media (min-width: 40rem) {
  .facts > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; }
  .facts dt { margin: 0; }
}
.note { border-left: 4px solid var(--accent); background: var(--surface); padding: 0.9rem 1.1rem; border-radius: 0 0.75rem 0.75rem 0; margin: 0 0 1.25rem; }
.note p:last-child { margin-bottom: 0; }
.steps-list { padding-left: 1.4rem; }

/* Convite */
.invite { padding-block: 3rem 4rem; }
.invite h1 { margin-bottom: 1rem; }
.invite .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0.75rem; }
.invite .code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; color: var(--muted); }

/* Rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Voto de convidado */
.vote { padding-block: 2.5rem 1rem; }
.vote h1 { margin: 0 0 0.5rem; }
.vote #vote-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.875rem; margin: 1.25rem 0; }
.opt { position: relative; display: flex; flex-direction: column; gap: 0.625rem; padding: 0.625rem; background: var(--surface); border: 2px solid var(--line); border-radius: 1rem; cursor: pointer; }
.opt:hover { border-color: var(--muted); }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--accent); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.opt:has(input:disabled) { cursor: default; }
.opt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.625rem; background: var(--line); }
.opt-label { font-weight: 700; text-align: center; padding: 0.25rem 0.25rem 0.375rem; overflow-wrap: anywhere; }
.opt-tag { align-self: center; background: var(--accent); color: var(--on-accent); font-size: 0.75rem; font-weight: 800; padding: 0.15rem 0.7rem; border-radius: 999px; margin-bottom: 0.25rem; }
.vote-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.vote-form[hidden], .vote [hidden] { display: none; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.vote-msg { min-height: 1.5rem; margin: 0.5rem 0 0; color: var(--muted); }
.vote-msg.is-error { color: var(--accent-ink); font-weight: 600; }
.vote-after h2 { margin: 0 0 0.25rem; }
.vote-cta { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.vote-cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.vote-after { margin-top: 0.5rem; }
.vote-form[hidden] { display: none; }

/* Botões das lojas ainda sem link (app não publicado) */
.btn.is-soon { cursor: default; opacity: 0.85; border-style: dashed; }
.btn.is-soon small { font-weight: 500; font-size: 0.8125rem; margin-left: 0.35rem; color: var(--muted); }
