:root {
  --bg: #ffffff;
  --fg: #0d0d0d;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --soft: #f4f4f6;
  --dark: #111111;
  --radius: 999px;
  --ok: #0a7d3b;
  --err: #b42318;
  color-scheme: light;
}

* { box-sizing: border-box; }

/* Âncoras (#fila, #modelos, #pedido) não ficam embaixo da barra fixa do topo */
[id] { scroll-margin-top: 88px; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }

/* Barra de topo */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
  background: transparent; color: var(--fg); font-family: inherit;
  transition: opacity .15s ease;
}
.btn:hover { opacity: .85; }
.btn-ghost { border-color: var(--line); }
.btn-dark { background: var(--dark); color: var(--bg); margin-top: 14px; }

/* Herói */
.hero {
  display: flex; flex-direction: column; align-items: center;
  padding: 72px 20px 40px; text-align: center;
}
.hero h1 {
  margin: 0 0 28px; font-size: clamp(34px, 6vw, 56px); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.08;
}

/* Campo tipo "caixa de pergunta" */
.composer {
  position: relative; width: 100%; max-width: 620px;
  display: flex; align-items: center;
  height: 64px; padding: 6px 6px 6px 22px;
  border: 1px solid var(--line); border-radius: 32px;
  background: var(--bg);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.composer input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--fg);
}
.composer input::placeholder { color: var(--muted); }
.composer:focus-within { border-color: var(--muted); }
.send {
  flex: 0 0 auto; width: 52px; height: 52px; border: 0; border-radius: 50%;
  background: var(--dark); color: var(--bg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.send:disabled { opacity: .5; cursor: progress; }

.status { min-height: 22px; margin: 14px 0 0; font-size: 15px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.fine { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.chips a {
  height: 36px; display: inline-flex; align-items: center; padding: 0 16px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; color: var(--muted);
}
.chips a:hover { color: var(--fg); border-color: var(--muted); }

/* Destaque (Vizinhópolis) */
.feature { display: flex; justify-content: center; padding: 24px 20px 8px; }
.feature-card {
  width: 100%; max-width: 980px;
  display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 32px;
  align-items: center; padding: 24px; border-radius: 28px; background: var(--soft);
}
.feature-video {
  width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px;
  background: #000; display: block;
}
.feature-text h2 { margin: 4px 0 10px; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.feature-text p { margin: 0; color: var(--muted); font-size: 18px; }
.eyebrow { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Grade de estilos */
.grid-section { max-width: 1040px; margin: 0 auto; padding: 72px 20px 40px; }
.grid-section h2 { margin: 0 0 24px; font-size: 28px; letter-spacing: -0.02em; text-align: center; }
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.tile { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--soft); aspect-ratio: 9 / 12; }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile span {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: var(--radius);
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; font-weight: 500;
}

/* Fechamento */
.closing {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 96px 20px 72px;
}
.closing h2 { margin: 0 0 10px; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -0.02em; }
.closing p { margin: 0 0 28px; color: var(--muted); max-width: 520px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 24px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

/* Celular */
@media (max-width: 760px) {
  .feature-card { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .feature-video { max-width: 260px; margin: 0 auto; }
  .feature-text { text-align: center; }
  .feature-text h2 { font-size: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .composer { padding-left: 16px; }
  .composer input { font-size: 16px; }
  .hero { padding-top: 48px; }
}

/* Pedido de vídeo (3 perguntas + contato) */
.order {
  max-width: 720px; margin: 0 auto; padding: 72px 20px 16px;
}
.order h2 { margin: 0 0 8px; font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -0.02em; text-align: center; }
.lead { margin: 0 0 36px; color: var(--muted); text-align: center; }
.order-form { display: flex; flex-direction: column; gap: 32px; }
.q { border: 0; margin: 0; padding: 0; min-width: 0; }
.q > legend, .q > label, .q > .q-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; margin: 0 0 12px; padding: 0;
}
.num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  background: var(--dark); color: var(--bg); font-size: 13px; font-weight: 600;
}
.field-text {
  width: 100%; height: 52px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: 26px; background: var(--bg);
  font: inherit; font-size: 16px; color: var(--fg); outline: 0;
}
.field-text:focus { border-color: var(--muted); }
.field-text::placeholder { color: var(--muted); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.examples button {
  height: 32px; padding: 0 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: inherit; font-size: 13px; cursor: pointer;
}
.examples button:hover { color: var(--fg); border-color: var(--muted); }

.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.style { position: relative; cursor: pointer; display: block; }
.style input { position: absolute; opacity: 0; pointer-events: none; }
.style img {
  display: block; width: 100%; aspect-ratio: 9 / 12; object-fit: cover;
  border-radius: 16px; border: 2px solid transparent; background: var(--soft);
}
.style span { display: block; margin-top: 6px; font-size: 14px; text-align: center; color: var(--muted); }
.style input:checked + img { border-color: var(--fg); }
.style input:checked ~ span { color: var(--fg); font-weight: 600; }
.style input:focus-visible + img { outline: 2px solid var(--muted); outline-offset: 2px; }

.seg { display: flex; gap: 8px; margin-bottom: 10px; }
.seg label {
  flex: 1; cursor: pointer; text-align: center;
  height: 44px; line-height: 44px; border-radius: var(--radius);
  border: 1px solid var(--line); font-size: 15px; color: var(--muted);
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { border-color: var(--fg); color: var(--fg); font-weight: 600; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 4px; }
.btn-wide { width: 100%; height: 52px; margin-top: 0; font-size: 16px; }
.btn-wide:disabled { opacity: .5; cursor: progress; }

.order .status { text-align: center; }

/* Entrada da página: botões grandes, vídeo de como funciona e mini-app em passos */
.btn-big { height: 52px; padding: 0 26px; font-size: 16px; margin-top: 0; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .btn-dark { margin-top: 0; }

button.tile { border: 0; padding: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; color: inherit; }
button.tile:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; }

.vsl-section { max-width: 760px; margin: 0 auto; padding: 72px 20px 24px; text-align: center; }
.vsl-section h2 { margin: 0 0 8px; font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -0.02em; }
.vsl-section .lead { margin-bottom: 28px; }
.vsl-wrap { display: flex; justify-content: center; }
.vsl { width: 100%; max-width: 300px; aspect-ratio: 9 / 16; border-radius: 20px; background: #000; display: block; }
.how {
  list-style: none; padding: 0; margin: 32px auto 0; max-width: 520px;
  display: grid; gap: 10px; text-align: left; color: var(--muted);
}
.how li { padding: 14px 18px; border-radius: 16px; background: var(--soft); }
.how strong { color: var(--fg); font-weight: 600; }

/* Mini-app: progresso, passos e cartões de história */
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 0 0 8px; }
.progress span { display: block; height: 100%; width: 25%; background: var(--dark); transition: width .25s ease; }
.passo { margin: 0 0 24px; font-size: 13px; color: var(--muted); }
.step { display: flex; flex-direction: column; gap: 16px; }
.step[hidden], .outra[hidden] { display: none !important; }
.step h3 { margin: 0; font-size: 22px; letter-spacing: -0.01em; }
.step .hint { margin: -4px 0 0; }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.nav .btn-dark { min-width: 180px; height: 48px; margin-top: 0; }
.stories { display: grid; gap: 10px; }
.story { position: relative; display: block; cursor: pointer; }
.story input { position: absolute; opacity: 0; pointer-events: none; }
.story span {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px;
  font-size: 16px; color: var(--fg); transition: border-color .15s ease;
}
.story input:checked + span { border-color: var(--fg); font-weight: 600; }
.story input:focus-visible + span { outline: 2px solid var(--muted); outline-offset: 2px; }
.step .style { position: relative; }
.done { text-align: center; align-items: center; padding: 24px 0; }
.done p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
