/* ==========================================================================
   Blue81 — landing page
   Implementação estática de "Blue Landing.dc.html" (Claude Design).
   Os estilos inline do template foram consolidados aqui, com tokens.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --blue: #08278e;
  --blue-hover: #242c49;
  --blue-soft: #3f6dbc;
  --amber: #F0A500;

  --ink: #0D1C37;
  --muted: #5F6368;
  --muted-light: #858585;
  --line: #d0d2d6;

  --white: #FFFFFF;
  --surface: #F8F9FA;
  --surface-2: #FAFAFA;
  --surface-3: #EEF0F4;

  --blue-tint-04: rgba(8, 39, 142, 0.04);
  --blue-tint-06: rgba(8, 39, 142, 0.06);
  --blue-tint-08: rgba(8, 39, 142, 0.08);
  --on-blue-70: rgba(255, 255, 255, 0.7);
  --on-blue-85: rgba(255, 255, 255, 0.85);

  --radius-lg: 1.5rem;
  --radius-md: 1.25rem;
  --radius-sm: 0.75rem;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px rgba(60, 64, 67, .15);
  --shadow-md: 0 1px 2px rgba(60, 64, 67, .3), 0 8px 24px rgba(60, 64, 67, .1);
  --shadow-lg: 0 1px 2px rgba(60, 64, 67, .3), 0 8px 30px rgba(60, 64, 67, .12);

  --wrap: 1120px;
  --gutter: 24px;
  --header-h: 64px;

  --font: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-size: 15px;
}
.skip-link:focus { left: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

.center { text-align: center; }

/* --------------------------------------------------------------------------
   Botões e links utilitários
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  transition: background .2s, color .2s, border-color .2s;
}

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  padding: 15px 24px;
}
.btn--ghost:hover { background: var(--surface-3); }

.btn--sm { font-size: 15px; padding: 10px 20px; white-space: nowrap; }

.wordmark {
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.wordmark--sm { font-size: 18px; }
.wordmark--footer { font-size: 24px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--onblue { color: var(--on-blue-70); }

/* --------------------------------------------------------------------------
   Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 26px; }

.nav__link {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  transition: color .2s;
}
.nav__link:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.section { padding: 104px var(--gutter); }
.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.section__title {
  margin: 0 0 20px;
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section__title--lg { margin-bottom: 56px; }
.section__title--flush { margin-bottom: 20px; }
.section__title--onblue { margin-bottom: 24px; }
.section__title-accent { color: var(--blue); font-size: 1.08em; }

.section__lead {
  margin: 0 0 48px;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 620px;
}
.section__lead--wide { max-width: 823px; }

/* --------------------------------------------------------------------------
   Grids de cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}
.cards--gap-lg { margin-bottom: 48px; }

/* --------------------------------------------------------------------------
   01 · Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 148px var(--gutter) 96px;
  overflow: hidden;
}

.hero__blueprint {
  position: absolute;
  right: -80px;
  top: 40px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

.hero__copy { max-width: 620px; }

.hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__highlight {
  position: relative;
  white-space: nowrap;
  color: var(--blue);
}

.hero__rule {
  position: absolute;
  left: 0;
  bottom: -14px;
  overflow: visible;
}

.hero__lead {
  margin: 40px 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
}
.hero__lead--tight { margin-top: 20px; }

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

/* Mockup do chat (prancha) */
.sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.sheet__tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.sheet__body { padding: 24px 22px 26px; }

.chat__greeting { margin: 0 0 22px; font-size: 20px; color: var(--ink); }
.chat__row { display: flex; }
.chat__row--out { justify-content: flex-end; margin-bottom: 20px; }
.chat__row--in { justify-content: flex-start; margin-bottom: 18px; }

.bubble { font-size: 14.5px; }

.bubble--user {
  margin: 0;
  max-width: 82%;
  background: var(--blue);
  color: var(--white);
  padding: 12px 16px;
  border-radius: 1rem 1rem 0.25rem 1rem;
}

.bubble--blue {
  max-width: 90%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 1rem 1rem 1rem 0.25rem;
}
.bubble--blue p { margin: 0 0 10px; }
.bubble--blue p:last-child { margin-bottom: 0; }
.bubble__aside { color: var(--muted); }

.sources {
  border-top: 1px dashed var(--line);
  padding-top: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.sources__icon { margin-top: 2px; flex-shrink: 0; }
.sources__text { margin: 0; font-size: 12.5px; color: var(--muted); }
.sources__text strong { color: var(--ink); font-weight: 500; }

/* --------------------------------------------------------------------------
   02 · Como funciona (abas por papel acadêmico)
   -------------------------------------------------------------------------- */
.roles { margin-top: 72px; }

.roles__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.pill {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  transition: background .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }
.pill.is-selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.roles__panel[hidden] { display: none; }
.roles__panel:focus { outline: none; }

.qa {
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.qa__label {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qa__text { margin: 0; line-height: 1.5; }

.qa--question {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}
.qa--question .qa__label { color: var(--on-blue-70); }
.qa--question .qa__text { font-size: 1.1rem; }

.qa--answer {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.qa--answer .qa__label { color: var(--blue); font-weight: 500; }
.qa--answer .qa__text { font-size: 1.05rem; color: var(--ink); }

/* --------------------------------------------------------------------------
   03 · Confiança
   -------------------------------------------------------------------------- */
.compare { margin-bottom: 40px; }

.compare__card {
  border-radius: var(--radius-md);
  padding: 32px 28px;
}
.compare__card--generic {
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.compare__card--blue {
  border: 1.5px solid var(--blue);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.compare__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.compare__badge {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compare__badge--neutral { background: var(--surface-3); }
.compare__badge--blue { background: var(--blue-tint-08); }

.compare__label {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare__label--blue { color: var(--blue); font-weight: 500; }

.compare__text {
  margin: 27px 0 0;
  color: var(--muted-light);
  font-style: italic;
}

.compare__answer {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: var(--ink);
}
.compare__card--blue .sources__text { font-size: 13px; }

/* --------------------------------------------------------------------------
   04 · Contexto
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.split__text {
  margin: 0;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 480px;
}

.scope {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.scope__label {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.scope__list { display: flex; flex-direction: column; gap: 10px; }

.scope__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.scope__item svg { flex-shrink: 0; }
.scope__item--active {
  border: 1.5px solid var(--blue);
  background: var(--blue-tint-04);
  color: var(--blue);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   05 · Organização
   -------------------------------------------------------------------------- */
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--blue-tint-06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature__title {
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 1.25rem;
}

.feature__highlight { margin: 0 0 14px; font-size: 1.05rem; color: var(--ink); }
.feature__text { margin: 0; color: var(--muted); font-size: 15px; }

.swatches {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.swatch { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.swatch__chip { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.swatch__chip--blue { background: var(--blue); }
.swatch__chip--soft { background: var(--blue-soft); }
.swatch__chip--amber { background: var(--amber); }

/* --------------------------------------------------------------------------
   06 · Curadoria (fluxo editorial)
   -------------------------------------------------------------------------- */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 4px 8px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 124px;
}

.flow__num {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 500;
}

.flow__label {
  font-size: 16px;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.flow__arrow { color: var(--line); margin-top: 22px; }
.flow__arrow--blue { color: var(--blue); }

.flow__step--final .flow__num {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.flow__step--final .flow__label { color: var(--blue); font-weight: 500; }

/* --------------------------------------------------------------------------
   07 · Para a instituição
   -------------------------------------------------------------------------- */
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 28px;
}
.tile .feature__icon { margin-bottom: 18px; }
.tile__title { margin: 0 0 8px; font-weight: 500; font-size: 1.2rem; }
.tile__text { margin: 0; color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   08 · Afinidade
   -------------------------------------------------------------------------- */
.affinity {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: 104px var(--gutter);
}

.affinity__blueprint {
  position: absolute;
  left: -60px;
  bottom: -40px;
  opacity: 0.18;
  pointer-events: none;
}

.affinity__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.affinity__text {
  margin: 0 0 28px;
  font-size: 1.15rem;
  color: var(--on-blue-85);
}

.affinity__kicker {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   CTA final + formulário
   -------------------------------------------------------------------------- */
.cta {
  padding: 112px var(--gutter);
  border-top: 1px solid var(--line);
}

.cta__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta__wordmark {
  margin: 0 0 28px;
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.cta__title {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: #3E3E3EC3;
}

.cta__sub { margin: 0 0 40px; font-size: 1.05rem; color: var(--muted); }

.form {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form__title {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 1.15rem;
  text-align: center;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.field input {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field input:hover { border-color: var(--blue-soft); }
.field input:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint-08);
}
.field input[aria-invalid="true"] { border-color: #b3261e; }

/* min-height reserva o espaço do widget (300×65) antes de ele carregar,
   para o botão não pular quando o Turnstile aparece. */
.form__turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-top: 4px;
}

.form__submit {
  margin-top: 4px;
  border: none;
  width: 100%;
}

.form__submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.form__status {
  margin: 0;
  min-height: 1.4em;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.form__status[data-state="error"] { color: #b3261e; }
.form__status[data-state="ok"] { color: var(--blue); }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 15px var(--gutter);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__brand { display: flex; align-items: baseline; gap: 10px; }
.site-footer__links { display: flex; gap: 24px; }

.site-footer__link {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color .2s;
}
.site-footer__link:hover { color: var(--blue); }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .nav__links { display: none; }
  .hero { padding-top: 120px; }
  /* O grafismo cruza o texto em telas estreitas; aqui ele só ambienta. */
  .hero__blueprint { opacity: 0.25; }
  .flow { justify-content: flex-start; }
}

@media (min-width: 768px) {
  .cards--2, .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: repeat(2, 1fr); }
  .form__submit { width: auto; justify-self: center; padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 1120px) {
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Impressão
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .skip-link { display: none; }
  .hero { padding-top: 32px; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .roles__panel[hidden] { display: block; }
}
