/* Paleta "Azul Corporativo" do app (lib/core/theme/app_colors.dart) */
  :root {
    --bg: #F4F6F9; --surface: #FFFFFF; --border: #E4E9F0;
    --primary: #1E5FAD; --soft-blue: #EAF1FA;
    --text: #182739; --text-2: #64748B;
    --warn: #B8760B; --warn-bg: #FBF1DE;
    --ok: #23684A; --ok-bg: #E3F2EA;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --bg: #0E141C; --surface: #18222E; --border: #2A3646;
      --primary: #4C8DE0; --soft-blue: #1B2A3F;
      --text: #EAF0F8; --text-2: #9DAABC;
      --warn: #D79A3A; --warn-bg: #3A2E17;
      --ok: #63C58C; --ok-bg: #16321F;
    }
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  .wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

  /* ── Hero ── */
  header {
    background: linear-gradient(160deg, var(--soft-blue) 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--border);
    padding: 56px 0 48px; text-align: center;
  }
  header img.logo { width: min(240px, 60vw); height: auto; }
  header h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; margin-top: 28px; letter-spacing: -.02em; }
  header p.sub { color: var(--text-2); max-width: 34rem; margin: 12px auto 0; font-size: 1.05rem; }
  .pill {
    display: inline-block; background: var(--ok-bg); color: var(--ok);
    font-weight: 700; font-size: .85rem; padding: 6px 14px; border-radius: 999px;
    margin-bottom: 20px; letter-spacing: .02em;
  }

  /* ── Badges das lojas ── */
  .stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
  .store-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--text); color: var(--bg); text-decoration: none;
    padding: 12px 20px; border-radius: 12px; transition: transform .15s ease, opacity .15s ease;
  }
  .store-btn:hover { transform: translateY(-2px); opacity: .92; }
  .store-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
  .store-btn .lines { text-align: left; line-height: 1.15; }
  .store-btn .small { font-size: .68rem; opacity: .75; }
  .store-btn .big { font-size: 1.02rem; font-weight: 700; }

  /* ── Seções ── */
  section { padding: 48px 0; }
  section + section { border-top: 1px solid var(--border); }
  h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: 8px; }
  .lead { color: var(--text-2); max-width: 40rem; }

  .card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 24px; margin-top: 24px;
  }
  .steps { list-style: none; counter-reset: passo; display: grid; gap: 14px; margin-top: 24px; }
  .steps li {
    counter-increment: passo; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 18px 20px 18px 64px; position: relative;
  }
  .steps li::before {
    content: counter(passo);
    position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--soft-blue); color: var(--primary);
    font-weight: 800; display: flex; align-items: center; justify-content: center;
  }
  .steps li > b { display: block; }
  .steps span { color: var(--text-2); font-size: .95rem; }

  .alert {
    display: flex; gap: 12px; background: var(--warn-bg);
    border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
    border-radius: 14px; padding: 16px 18px; margin-top: 18px;
  }
  .alert .ic { color: var(--warn); font-size: 1.2rem; line-height: 1.4; }
  .alert p { font-size: .95rem; }
  .alert b { color: var(--warn); }

  .btn {
    display: inline-block; background: var(--primary); color: #fff;
    text-decoration: none; font-weight: 700; padding: 13px 26px;
    border-radius: 12px; margin-top: 20px; transition: transform .15s ease, opacity .15s ease;
  }
  .btn:hover { transform: translateY(-2px); opacity: .92; }

  /* Link em texto: o azul padrão do navegador (#0000EE) some no tema escuro. */
  section a:not(.btn):not(.store-btn) { color: var(--primary); font-weight: 600; }

  .faq { display: grid; gap: 12px; margin-top: 24px; }
  .faq details {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 16px 20px;
  }
  .faq summary { font-weight: 700; cursor: pointer; }
  .faq p { color: var(--text-2); margin-top: 10px; font-size: .95rem; }

  footer {
    border-top: 1px solid var(--border); padding: 40px 0 48px;
    text-align: center; color: var(--text-2); font-size: .9rem;
  }
  footer .stores { margin-bottom: 24px; }
  footer a { color: var(--text-2); }
  .credit {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 22px; text-decoration: none; color: var(--text-2);
    font-size: .85rem; opacity: .8; transition: opacity .15s ease;
  }
  .credit:hover { opacity: 1; }
  .credit img { display: block; }
  .credit b { color: var(--text); font-weight: 700; }

  /* ── Consulta do ingresso (/consulta) ── */
  .form-consulta { display: grid; gap: 14px; margin-top: 4px; }
  .campo label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
  .campo input {
    width: 100%; font: inherit; color: var(--text);
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 16px;
  }
  .campo input:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
  }
  .campo .dica { color: var(--text-2); font-size: .82rem; margin-top: 6px; }
  button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; width: 100%; }
  button.btn[disabled] { opacity: .6; cursor: default; transform: none; }
  .privacidade {
    color: var(--text-2); font-size: .82rem; margin-top: 14px;
    display: flex; gap: 8px; align-items: flex-start;
  }

  /* Resultado */
  .resultado { margin-top: 24px; }
  .resultado[hidden] { display: none; }
  .status-card {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 4px solid var(--primary); border-radius: 16px; padding: 22px 24px;
  }
  .status-card.ok { border-left-color: var(--ok); }
  .status-card.pendente { border-left-color: var(--warn); }
  .status-card h3 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
  .status-card .msg { color: var(--text-2); font-size: .95rem; margin-top: 8px; }
  .status-card .msg + .msg { margin-top: 10px; }
  .selo {
    display: inline-block; font-weight: 700; font-size: .78rem;
    padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
    background: var(--soft-blue); color: var(--primary); letter-spacing: .02em;
  }
  .selo.ok { background: var(--ok-bg); color: var(--ok); }
  .selo.pendente { background: var(--warn-bg); color: var(--warn); }

  /* Placar da compra */
  .placar { margin-top: 22px; }
  .placar .numeros { display: flex; align-items: baseline; gap: 8px; font-weight: 800; }
  .placar .numeros b { font-size: 1.9rem; letter-spacing: -.02em; }
  .placar .numeros span { color: var(--text-2); font-weight: 600; font-size: .95rem; }
  .barra { height: 10px; border-radius: 999px; background: var(--border); margin-top: 10px; overflow: hidden; }
  .barra > i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .4s ease; }

  .ingressos { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
  .ingressos li {
    display: flex; gap: 12px; align-items: center;
    background: var(--bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 12px 14px;
    /* Sem isto o item de grid cresce com o conteúdo e o e-mail longo empurra a
       linha para fora do card no celular, em vez de truncar. */
    min-width: 0;
  }
  .ingressos .marca {
    width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800;
    background: var(--warn-bg); color: var(--warn);
  }
  .ingressos li.ok .marca { background: var(--ok-bg); color: var(--ok); }
  .ingressos .quem { flex: 1 1 auto; min-width: 0; }
  .ingressos .quem b { display: block; font-size: .95rem; }
  .ingressos .quem span {
    color: var(--text-2); font-size: .84rem;
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
