/**
 * Universidade Coordina — landing page estática.
 *
 * Cores oficiais copiadas de src/marcacoordina/brand-tokens.css (fonte de verdade; a calculadora pública usa a mesma
 * cópia). Mudanças de cor oficial devem ser replicadas aqui manualmente. Tipografia: pilha de fontes do sistema, igual ao ERP.
 */

:root {
  --coordina-brand-blue: #004997;
  --coordina-brand-purple: #7B50A6;
  --coordina-brand-orange: #F49309;
  --coordina-brand-green: #006635;

  --blue-dark: #003670;
  --ink: #0f1b2d;
  --muted: #4a5568;
  --line: #e2e8f0;
  --surface: #ffffff;
  --tint: #f2f6fb;

  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coordina-brand-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--coordina-brand-blue);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ── Header ── */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 44px;
}

.brand-text {
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--coordina-brand-blue);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.header-login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  color: var(--coordina-brand-blue);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-login:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--coordina-brand-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 73, 151, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--tint) 100%);
  padding: 32px 0 40px;
}

.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coordina-brand-blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coordina-brand-orange);
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.hero .btn {
  margin-top: 24px;
  width: 100%;
}

.microcopy {
  margin-top: 16px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.microcopy li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.microcopy svg {
  margin-top: 3px;
  fill: none;
  stroke: var(--coordina-brand-green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 54, 112, 0.22);
  background: var(--blue-dark);
  aspect-ratio: 16 / 10;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Foco no notebook e nos cartões à direita; a área à esquerda da imagem é só fundo. */
  object-position: 70% 50%;
}

@media (min-width: 480px) {
  .hero .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 64px 0 72px;
  }

  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 48px;
  }

  /* Proporção original (1672x941): sem recorte no desktop. */
  .hero-media {
    aspect-ratio: 1672 / 941;
  }
}

/* ── Seções ── */
.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section--tint {
  background: var(--tint);
}

.section-title {
  font-size: clamp(1.5rem, 4.8vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
  text-wrap: balance;
}

/* Temas */
.topics {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .topics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .topics {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.topic {
  --topic-color: var(--coordina-brand-blue);
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--topic-color);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.topic--purple { --topic-color: var(--coordina-brand-purple); }
.topic--orange { --topic-color: var(--coordina-brand-orange); }
.topic--green { --topic-color: var(--coordina-brand-green); }

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  color: var(--topic-color);
  background: color-mix(in srgb, var(--topic-color) 12%, #fff);
}

.topic-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic h3 {
  margin-top: 16px;
  font-size: 1.15rem;
  line-height: 1.3;
}

.topic p {
  margin-top: 6px;
  color: var(--muted);
}

/* Passos */
.steps {
  margin: 32px auto 0;
  max-width: 880px;
  display: grid;
  gap: 12px;
  counter-reset: none;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

@media (min-width: 768px) {
  .step {
    flex-direction: column;
    text-align: center;
    padding: 28px 20px;
  }
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--coordina-brand-blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.step p {
  font-weight: 600;
  font-size: 1.05rem;
}

.steps-note {
  margin-top: 24px;
  text-align: center;
  color: var(--muted);
}

/* Ecossistema */
.section--brand {
  background: var(--coordina-brand-blue);
  color: #fff;
}

.eco {
  max-width: 760px;
  text-align: center;
}

.eco-tagline {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eco-text {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

/* CTA final */
.final-inner {
  max-width: 680px;
  text-align: center;
}

.final-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.final-cta .btn {
  margin-top: 28px;
  width: 100%;
}

@media (min-width: 480px) {
  .final-cta .btn {
    width: auto;
  }
}

.final-micro {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-logo {
  width: auto;
  height: 48px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--coordina-brand-blue);
  font-size: 0.92rem;
  text-underline-offset: 4px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ── Movimento reduzido ── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn-primary:hover {
    transform: none;
  }
}
