/* Página de apresentação. As cores repetem as do app (src/mybyd/static/auth.css). */
:root {
  color-scheme: light;
  --page: #f4f4f2;
  --surface-1: #fcfcfb;
  --border: #e3e2de;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #6b6a66;
  --good: #0ca30c;
  /* O verde da marca escurecido até o contraste AA com texto branco e sobre o fundo. */
  --accent: #087a08;
  --accent-text: #ffffff;
  --link: #087a08;
  --critical: #c02f2f;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #111110;
    --surface-1: #1a1a19;
    --border: #2e2e2c;
    --text-primary: #f0efec;
    --text-secondary: #c3c2b7;
    --text-muted: #9a9990;
    --accent: #2fbf2f;
    --accent-text: #0b0b0b;
    --link: #4fd34f;
    --critical: #f07070;
  }
}
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-1.1/Outfit.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--page); color: var(--text-primary);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
p { margin: 0 0 10px; }
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(34px, 6vw, 56px); margin: 0 0 16px; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin: 0 0 18px; }
h3 { font-size: 19px; margin: 8px 0 6px; }
.wrap { max-width: 1080px; margin-left: auto; margin-right: auto; padding: 0 20px; }
main > section { margin-top: 72px; }
.muted { color: var(--text-muted); }
.small { font-size: 14px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }

/* Cabeçalho fino, fixo ao rolar. */
.top {
  position: sticky; top: 0; z-index: 10; background: var(--page);
  border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-primary); text-decoration: none;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 500; font-size: 24px; letter-spacing: -0.01em;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 14px; }
.nav .link { font-weight: 600; text-decoration: none; }
select {
  font: inherit; font-size: 15px; min-height: 38px; padding: 4px 8px; color: var(--text-primary);
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 7px;
}

/* Topo */
.hero { margin-top: 48px; display: grid; gap: 36px; }
.lead { font-size: 19px; color: var(--text-secondary); max-width: 660px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border-radius: 8px;
  color: var(--text-primary); background: var(--surface-1); border: 1px solid var(--border);
}
.button.primary { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.button:disabled { opacity: .65; cursor: default; }
/* O botão do topo espera a resposta do cadastro (lista de espera ou teste) com um indicador de
   carregamento, para não trocar de texto na frente da pessoa; sem script, o texto volta em 3 s. */
.button.pending { position: relative; color: transparent; pointer-events: none; animation: reveal 0s 3s forwards; }
.button.pending::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 1.1em; height: 1.1em;
  border: 2px solid var(--accent-text); border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite, done 0s 3s forwards;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes done { to { visibility: hidden; } }
@keyframes reveal { to { color: var(--accent-text); pointer-events: auto; } }
.shot { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface-1); }
.shot img { width: 100%; }

/* Funcionalidades */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface-1); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card p { color: var(--text-secondary); margin: 0; }
.card svg { width: 28px; height: 28px; fill: none; stroke: var(--good); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shots { display: grid; gap: 14px; margin-top: 18px; }
.shots picture { display: block; }

/* Como funciona e modelos */
.two { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.steps li::marker { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; color: var(--link); }

/* Preços */
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.currency { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 15px; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 14px; }
.plan h3 { margin-top: 0; }
.price { font-family: "Outfit", system-ui, sans-serif; font-size: 22px; font-weight: 500; color: var(--text-primary) !important; margin-bottom: 6px !important; }

/* Perguntas */
.faq { display: grid; gap: 8px; }
details { background: var(--surface-1); border: 1px solid var(--border); border-radius: 10px; padding: 0 16px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details p { color: var(--text-secondary); padding-bottom: 6px; }

/* Lista de espera */
.wait { border-color: var(--good); border-width: 2px; padding: 28px; }
.wait h2 { margin-bottom: 10px; }
.wait form { margin-top: 18px; }
.wait label { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row input {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 16px; min-height: 46px; padding: 8px 12px;
  color: var(--text-primary); background: var(--page); border: 1px solid var(--border); border-radius: 8px;
}
.status { margin: 12px 0 0; min-height: 1.5em; font-weight: 600; }
.status.error { color: var(--critical); }

/* Termos e privacidade: texto corrido, numa coluna estreita. */
.doc { max-width: 760px; margin-top: 48px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text-secondary); }
.doc ul { margin: 0 0 10px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .version { font-size: 15px; margin-bottom: 14px; }

.foot { margin-top: 56px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 15px; }
.foot p { margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 18px; }

@media (min-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { max-width: 760px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  main > section { margin-top: 56px; }
  .brand { font-size: 21px; }
  .nav { gap: 10px; }
  .nav select { max-width: 112px; }
  .lead { font-size: 17px; }
  .actions .button { flex: 1 1 100%; }
  .row .button { flex: 1 1 100%; }
  .wait { padding: 20px; }
}
