/* ==========================================================
   Recruit by Cavora — landing page
   Design system: clareza acima de tudo.
   ========================================================== */

:root {
  --navy: #122341;
  --navy-hover: #1D3355;
  --teal: #089E97;
  --teal-dark: #0A7B76;
  --teal-on-dark: #4FD6CE;
  --text: #122341;
  --text-2: #5A6472;
  --border: #E5E7EB;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --radius: 12px;
  --nav-height: 72px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--nav-height);
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--bg-alt);
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.section-head {
  max-width: 768px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
}

.body-text {
  margin-top: 24px;
  color: var(--text-2);
}

/* Linha-assinatura: conecta as seções (jornada Currículo → Decisão) */
.thread {
  display: block;
  width: 1px;
  height: 48px;
  margin: 0 auto 32px;
  background: var(--border);
}

/* ---------- Tipografia ---------- */
h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: #D2D6DD;
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  background: #E8ECF2;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 15px;
}

/* ---------- Navegação ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--nav-height);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu {
  display: none;
}

.nav-menu a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
}

.nav-menu a:not(.btn):hover {
  color: var(--teal-dark);
}

.nav-menu.open {
  display: flex;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  background: rgba(8, 158, 151, 0.08);
  border: 1px solid rgba(8, 158, 151, 0.24);
  border-radius: 999px;
  padding: 4px 16px;
}

.hero h1 {
  max-width: 896px;
  margin: 24px auto 0;
}

.hero-text {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-2);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

/* ---------- Mock do painel (HTML/CSS puro) ---------- */
.hero-mock {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: left;
}

.mock-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow:
    0 1px 2px rgba(18, 35, 65, 0.16),
    0 24px 48px -24px rgba(18, 35, 65, 0.45);
}

.mock-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mock-name {
  font-size: 18px;
  font-weight: 600;
}

.mock-role {
  font-size: 15px;
  color: #93A1B8;
  margin-top: 4px;
}

.mock-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-on-dark);
  background: rgba(8, 158, 151, 0.16);
  border: 1px solid rgba(8, 158, 151, 0.4);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.mock-badge-strong {
  color: var(--navy);
  background: var(--teal);
  border-color: var(--teal);
}

.mock-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93A1B8;
}

.mock-score {
  margin-top: 32px;
}

.mock-score-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.mock-score-value {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.mock-score-value span {
  font-size: 16px;
  font-weight: 500;
  color: #93A1B8;
}

.mock-bar {
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mock-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--teal);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.mock-cell {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.mock-cell-value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-top: 8px;
}

.mock-chips {
  margin-top: 32px;
}

.mock-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-on-dark);
  background: rgba(8, 158, 151, 0.14);
  border-radius: 999px;
  padding: 4px 12px;
}

.mock-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-footer-note {
  font-size: 13px;
  color: #93A1B8;
}

/* ---------- Cards (problema / pilares) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(18, 35, 65, 0.04);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--navy);
  margin-bottom: 24px;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Fluxo "Como funciona" ---------- */
.flow {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.flow::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.flow-step {
  position: relative;
  padding-left: 48px;
}

.flow-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--bg);
}

.flow-step h3 {
  font-size: 20px;
  font-weight: 600;
}

.flow-step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}

/* ---------- Transparência ---------- */
.transparencia-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1024px;
  margin: 0 auto;
}

.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(18, 35, 65, 0.04);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline li {
  position: relative;
  padding-left: 32px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #A6AFBD;
  box-shadow: 0 0 0 4px #fff;
}

.timeline li:last-child::before {
  background: var(--teal);
  border-color: var(--teal);
}

.tl-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.tl-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ---------- Segurança ---------- */
.security-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 768px;
  margin: 0 auto;
}

.security-items li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
}

.security-items svg {
  flex-shrink: 0;
  color: var(--navy);
}

/* ---------- Planos ---------- */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 1px 2px rgba(18, 35, 65, 0.04);
}

.plan-featured {
  border-color: var(--teal);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--teal);
  border-radius: 999px;
  padding: 4px 12px;
}

.plan-name {
  font-size: 18px;
  font-weight: 600;
}

.plan-price {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 16px;
}

.plan-price span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.plan-volume {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 8px;
  margin-bottom: 32px;
}

.plan-card .btn {
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 768px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-2);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list details p {
  padding-bottom: 24px;
  color: var(--text-2);
}

/* ---------- CTA final ---------- */
.cta {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta p {
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.78);
}

.cta .btn {
  margin-top: 32px;
}

.cta :focus-visible {
  outline-color: #fff;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 16px;
}

.footer-contact a {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-seo {
  font-size: 13px;
  color: var(--text-2);
  max-width: 768px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 16px;
}

/* ---------- Animação de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .card-grid,
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .security-items {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .mock-card {
    padding: 32px;
  }
}

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

  .section {
    padding: 96px 0;
  }

  .hero {
    padding: 96px 0;
  }

  .cta {
    padding: 96px 0;
  }

  .section-head {
    margin-bottom: 64px;
  }

  .thread {
    height: 64px;
    margin-bottom: 48px;
  }

  h1 {
    font-size: 64px;
  }

  h2 {
    font-size: 48px;
  }

  h3 {
    font-size: 32px;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
  }
}

@media (min-width: 960px) {
  .transparencia-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

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

@media (min-width: 1120px) {
  .plans-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
