/* check-alunos-oferta-transpetro · styles.css
   Sistema visual me100 (tokens-v2): prussian estrutura, terracota decide,
   hairlines e barra bicolor assinam. Sem sombras, sem vidro, sem textura. */

:root {
  --bg: #F5F5DC;             /* bege */
  --surface: #FAFAFA;        /* offwhite */
  --fg: #001B2E;             /* prussian-900 */
  --muted: #0A4470;          /* prussian-500 */
  --border: color-mix(in oklch, #001B2E 18%, transparent);
  --accent: #E2725B;         /* terracota */
  --accent-dark: #C7543D;
  --support: #A3BE6A;        /* oliva-claro */
  --font-body: Inter, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
p { text-wrap: pretty; margin: 0; }
h1, h2, h3 { text-wrap: balance; margin: 0; }

/* moldura hairline da página inteira */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}
.page::after {
  content: "";
  position: fixed;
  inset: 14px;
  border: 2px solid var(--border);
  pointer-events: none;
  z-index: 5;
}

main {
  flex: 1;
}
.container {
  width: min(1080px, calc(100% - 2 * clamp(24px, 6vw, 72px)));
  margin-inline: auto;
}

/* ---------- topbar ----------
   logo trimmed (fundo #FFF puro, espaço morto removido): a marca visível
   ocupa 100% da altura declarada — antes sobravam ~42% de padding no PNG
   e a marca real media só ~35px numa banda de 60px. Banda branca contínua
   faz o logo assentar sem emenda, sem chip ou moldura. */
.topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 6; /* acima da moldura hairline (.page::after): sem risco sobre a logo */
}
.topbar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 12px;
}
.logo { display: block; height: clamp(44px, 6vw, 64px); width: auto; }

/* ---------- hero (prussian domina a peça) ---------- */
.hero {
  background: var(--fg);
  color: var(--bg);
  padding: clamp(48px, 7vw, 92px) 0 clamp(44px, 6vw, 72px);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow-rule { width: 56px; height: 4px; background: var(--accent); margin-bottom: 26px; }
.h-hero {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  max-width: 22ch;
  margin-bottom: 18px;
}
.lead {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.55;
  color: color-mix(in oklch, var(--bg) 76%, transparent);
  max-width: 62ch;
}

/* ---------- checker card ---------- */
.checker { margin-top: clamp(28px, 4vw, 44px); max-width: 640px; }
.checker-frame {
  background: var(--surface);
  border: 2px solid color-mix(in oklch, var(--bg) 34%, transparent);
  position: relative;
  padding: clamp(22px, 3vw, 34px);
}
.checker-frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.checker-body { position: relative; z-index: 1; }
.is-hidden { display: none; }

.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field-row { display: flex; gap: 12px; }
.field-row input {
  flex: 1;
  min-width: 0;
  font: 500 17px/1.3 var(--font-body);
  color: var(--fg);
  background: #fff;
  border: 1px solid color-mix(in oklch, var(--fg) 30%, transparent);
  border-radius: 0;
  padding: 13px 14px;
}
.field-row input::placeholder { color: color-mix(in oklch, var(--muted) 55%, transparent); }
.field-row input:focus-visible,
.btn:focus-visible,
.btn-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.field-hint {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.field-hint.is-error { color: var(--accent-dark); font-weight: 600; }

/* botões */
.btn {
  font: 700 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: none;
  cursor: pointer;
  padding: 15px 22px;
  background: var(--fg);
  color: var(--surface);
  transition: background var(--ease) 160ms, transform var(--ease) 160ms;
}
.btn-accent { background: var(--accent); color: #2A0E07; }
.btn-accent:hover { background: var(--accent-dark); color: var(--surface); }
.btn:active { transform: translateY(1px); }
.btn-block { display: block; width: 100%; margin-top: 18px; }
.btn[disabled] { opacity: .6; cursor: wait; }

.btn-link {
  margin-top: 14px;
  background: none;
  border: none;
  cursor: pointer;
  font: 600 13px/1.4 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
.btn-link:hover { color: var(--fg); }

/* estados de resultado */
.spinner {
  width: 34px; height: 34px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.state-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.badge-ok { background: var(--support); color: #1F2A10; }
.badge-warn { background: var(--accent); color: #2A0E07; }
.state-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 10px;
}
.state-text { color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 52ch; }
.state-text strong { color: var(--fg); }

/* ---------- como funciona ---------- */
.steps { padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.h-section {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-top: 2px solid var(--fg);
  padding-top: 14px;
  max-width: fit-content;
  margin-bottom: 28px;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { border-top: 2px solid var(--border); padding-top: 16px; }
.step:first-child { border-top-color: var(--accent); }
.step .nb {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.step h3 { font-size: 19px; font-weight: 600; margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 32ch; }

/* ---------- footer (fecha em prussian) ---------- */
.footer { margin-top: auto; background: var(--fg); }
.footer .meta {
  padding: 20px 0 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: color-mix(in oklch, var(--bg) 72%, transparent);
}
.basebar {
  height: 14px;
  background: linear-gradient(to right, var(--accent) 0 23%, var(--support) 23% 100%);
}

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .topbar-row { flex-wrap: wrap; }
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .page::after { inset: 8px; border-width: 1px; }
}

/* ---------- telas baixas (desktop): comprime o ritmo vertical ----------
   Níveis por altura do viewport para a página caber sem scroll:
   · 981px–1100px de altura (ex.: 1920x1080) → compressão moderada
   · até 980px de altura (ex.: 1280x720, 1366x768, 1440x900) → compressão agressiva
   Restrito a largura > 720px para não afetar celulares. */
@media (min-width: 721px) and (max-height: 1100px) {
  .topbar-row { padding-block: 8px; }
  .logo { height: clamp(40px, 5vw, 52px); }
  .hero { padding: clamp(30px, 4.5vh, 52px) 0 clamp(26px, 3.5vh, 40px); }
  .eyebrow { margin-bottom: 14px; }
  .eyebrow-rule { margin-bottom: 16px; }
  .h-hero { font-size: clamp(34px, 5vw, 58px); margin-bottom: 14px; }
  .checker { margin-top: clamp(18px, 3vh, 30px); }
  .checker-frame { padding: clamp(18px, 2.5vw, 26px); }
  .steps { padding: clamp(22px, 3.5vh, 40px) 0 clamp(26px, 4vh, 44px); }
  .h-section { padding-top: 10px; margin-bottom: 18px; }
  .footer .meta { padding: 10px 0 12px; }
  .basebar { height: 10px; }
}

@media (min-width: 721px) and (max-height: 980px) {
  .topbar-row { padding-block: 6px; }
  .logo { height: 40px; }
  .hero { padding: 20px 0 16px; }
  .eyebrow { margin-bottom: 10px; }
  .eyebrow-rule { margin-bottom: 12px; }
  .h-hero { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
  .lead { font-size: 15.5px; line-height: 1.45; }
  .checker { margin-top: 14px; }
  .checker-frame { padding: 16px 20px; }
  .field-label { margin-bottom: 8px; }
  .field-hint { margin-top: 8px; }
  .steps { padding: 16px 0 16px; }
  .h-section { font-size: 22px; padding-top: 8px; margin-bottom: 14px; }
  .step { padding-top: 12px; }
  .step h3 { font-size: 17px; margin: 4px 0 6px; }
  .footer .meta { padding: 6px 0 8px; font-size: 11px; }
  .basebar { height: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
