/* ==========================================================================
   Ronin Carreiras — estilos compartilhados
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0B1A2E;   /* fundo principal */
  --navy-800: #10223B;   /* superfícies / cards */
  --navy-700: #13233B;   /* texto sobre creme */
  --line:     #1E3150;   /* bordas */
  --line-2:   #3A4F6E;   /* bordas fortes / conectores */

  --cream:    #F4F1EA;
  --cream-2:  #E2DDD2;
  --white:    #FFFFFF;

  --text:       #F4F1EA;
  --text-muted: #C9D2DE;
  --text-dim:   #A9B4C4;
  --ink-muted:  #3D4B60;  /* texto secundário sobre creme */
  --ink-dim:    #55637A;

  --red:        #E5383B;  /* acento principal */
  --red-deep:   #B3261E;
  --coral:      #FF6B61;
  --coral-2:    #FF5A4E;
  --pill-bg:    #2A1A26;
  --bar-muted:  #8C98AA;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}
a { color: var(--cream); }
a:hover { color: var(--coral); }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
strong { font-weight: 700; }

@keyframes blink { 50% { opacity: 0; } }

/* ---------- Layout ---------- */
.container        { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.container--md    { max-width: 1000px; }
.container--sm    { max-width: 900px; }
.row              { display: flex; flex-wrap: wrap; }
.stack            { display: flex; flex-direction: column; }
.center           { text-align: center; }
.min0             { min-width: 0; }

.section--alt   { background: var(--navy-800); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--light { background: var(--cream); color: var(--navy-700); }
.section--red   { background: var(--red); color: var(--white); }

/* ---------- Tipografia ---------- */
.eyebrow { font-family: var(--font-mono); font-size: 14px; color: var(--coral); margin-bottom: 14px; }
.section--light .eyebrow, .eyebrow--deep { color: var(--red-deep); }

.display {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -1px;
}
.h2 { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
.h2--sm { font-size: clamp(28px, 3.2vw, 38px); }
.h2--fixed { font-size: 32px; line-height: 1.2; }
.h2--30 { font-size: 30px; line-height: 1.55; }
.h3 { font-family: var(--font-head); font-size: 21px; margin-bottom: 8px; }
.head { font-family: var(--font-head); }
.lead  { font-size: 19px; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.dim   { color: var(--text-dim); }
.section--light .muted, .ink-muted { color: var(--ink-muted); }
.source { font-size: 13px; color: var(--ink-dim); }
.accent { color: var(--coral); }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 15px 24px; border-radius: 8px; font-weight: 700;
  border: 0; cursor: pointer; font-family: inherit;
}
.btn--lg      { padding: 17px 28px; font-size: 17px; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { color: var(--white); filter: brightness(1.08); }
.btn--outline { border: 1px solid var(--cream); color: var(--cream); }
.btn--ghost   { border: 1px solid var(--line-2); color: var(--cream); font-weight: 600; }
.btn--light   { background: var(--cream); color: var(--navy-900); }
.btn--dark    { background: var(--navy-900); color: var(--white); }
.btn--ink     { background: var(--navy-700); color: var(--cream); }
.btn--on-red  { border: 1px solid var(--white); color: var(--white); font-weight: 600; }
.btn--dark:hover, .btn--on-red:hover { color: var(--cream); }

/* ---------- Cabeçalho ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 40px; height: 40px; border: 2px solid var(--cream); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; font-size: 20px; color: var(--cream);
}
.brand__cursor {
  display: inline-block; width: 3px; height: 18px; background: var(--red); margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--cream); }
.brand__name span { color: var(--text-dim); font-weight: 500; }

.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.nav__link { text-decoration: none; color: var(--text-muted); }
.nav__link[aria-current="page"] { color: var(--cream); font-weight: 600; }
.nav__cta {
  text-decoration: none; background: var(--red); color: var(--white);
  padding: 11px 18px; border-radius: 6px; font-weight: 600;
}
.nav__cta:hover { color: var(--white); }

@media (max-width: 640px) {
  .nav__links { gap: 14px 20px; }
}

/* ---------- Rodapé ---------- */
.site-footer { font-size: 14px; color: var(--text-dim); padding-top: 40px; padding-bottom: 48px; }
.site-footer--bordered { border-top: 1px solid var(--line); }
.site-footer__brand { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--cream); margin-bottom: 8px; }

/* ---------- Cards ---------- */
.card {
  background: var(--navy-800); border: 1px solid var(--line);
  border-radius: 14px; padding: 30px;
}
.card--accent { border: 2px solid var(--red); }
.card--tile   { background: var(--navy-900); border: 0; border-radius: 10px; padding: 26px; font-size: 17px; }
.card--white  { background: var(--white); border: 0; border-radius: 10px; padding: 20px; color: var(--navy-700); }
.card--cream  { background: var(--cream); color: var(--navy-700); border: 0; }

/* Estatística com régua no topo */
.stat { flex: 1 1 240px; border-top: 3px solid var(--navy-700); padding-top: 18px; }
.stat--accent { border-top-color: var(--red); }
.stat__value { font-family: var(--font-head); font-weight: 700; font-size: 40px; }
.stat p { margin-top: 6px; color: var(--ink-muted); }

/* Selo de passo */
.badge {
  display: inline-block; font-family: var(--font-mono); font-size: 13px;
  background: var(--red); color: var(--white); padding: 5px 12px; border-radius: 4px;
}
.badge--ink { background: var(--navy-700); color: var(--cream); }

/* Conector vertical entre passos */
.connector { display: flex; justify-content: center; padding: 20px 0; }
.connector::before { content: ""; width: 2px; height: 56px; background: var(--line-2); }

/* Chips */
.chip { border: 1px solid var(--line-2); border-radius: 20px; padding: 6px 14px; font-size: 14px; }

/* Linha do tempo */
.timeline { display: flex; flex-wrap: wrap; margin-bottom: 28px; }
.timeline__item { flex: 1 1 120px; border-top: 3px solid var(--line-2); padding: 12px 12px 0 0; }
.timeline__item--now { border-top-color: var(--red); }
.timeline__year { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); }
.timeline__item--now .timeline__year { color: var(--coral); }
.timeline__label { font-size: 15px; }

/* Destaque com barra lateral */
.callout { border-left: 3px solid var(--red); padding-left: 18px; }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- Formulário ---------- */
.form {
  flex: 1 1 420px; min-width: 0; background: var(--navy-900); border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px; color: var(--text);
}
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text-muted); }
.field input {
  height: 46px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--navy-800);
  color: var(--cream); padding: 0 14px; font-size: 16px; font-family: inherit;
}
.field input:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.form .btn { height: 52px; padding: 0; border: 0; font-size: 17px; margin-top: 6px; }

/* ---------- Tabela comparativa ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 16px; }
.table thead { background: var(--navy-800); }
.table th, .table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { font-weight: 600; }
.table th.is-highlight { font-weight: 700; color: var(--coral); }

/* ---------- Planos ---------- */
.plan {
  flex: 1 1 320px; min-width: 0; background: var(--navy-800); border: 1px solid var(--line);
  border-radius: 16px; padding: 34px; display: flex; flex-direction: column; gap: 18px;
}
.plan--featured { background: var(--cream); color: var(--navy-700); border: 3px solid var(--red); }
.plan__tag { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.plan--featured .plan__tag {
  display: inline-block; background: var(--red); color: var(--white); padding: 3px 10px; border-radius: 4px;
}
.plan__name  { font-family: var(--font-head); font-size: 26px; }
.plan__price { font-family: var(--font-head); font-size: 46px; font-weight: 700; }
.plan__terms { margin-top: 2px; font-size: 14px; color: var(--text-dim); }
.plan--featured .plan__terms { color: var(--ink-dim); }
.plan--featured .muted { color: var(--ink-muted); }
.plan__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

/* ---------- Página: Início ---------- */
.hero { padding-top: 88px; padding-bottom: 80px; gap: 56px; align-items: center; }
.pill {
  display: inline-block; margin-bottom: 20px; font-size: 14px; font-weight: 600;
  color: var(--coral); background: var(--pill-bg); padding: 6px 12px; border-radius: 20px;
}
.hero__title {
  margin-bottom: 24px; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(40px, 5.4vw, 66px); line-height: 1.04; letter-spacing: -1.2px;
}
.hero__title span { color: var(--coral-2); }
.hero__lead { margin-bottom: 34px; font-size: 20px; color: var(--text-muted); max-width: 580px; }
.checks { gap: 22px; font-size: 15px; color: var(--text-dim); }

.salary { flex: 1 1 380px; min-width: 0; background: var(--cream); color: var(--navy-700); border-radius: 14px; padding: 32px; }
.salary__kicker { margin-bottom: 4px; font-family: var(--font-mono); font-size: 13px; color: var(--red-deep); }
.salary__title  { margin-bottom: 24px; font-family: var(--font-head); font-size: 24px; font-weight: 700; line-height: 1.2; }
.bar__label { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 6px; }
.bar { height: 12px; background: var(--cream-2); border-radius: 6px; }
.bar__fill { height: 12px; border-radius: 6px; background: var(--navy-700); }
.bar__fill--muted  { background: var(--bar-muted); }
.bar__fill--accent { background: var(--red); }
.salary__note { margin-top: 22px; font-size: 12px; color: var(--ink-dim); }

.step-line { flex: 1 1 220px; border-left: 3px solid var(--line-2); padding: 4px 0 4px 18px; }
.step-line--active { border-left-color: var(--red); }
.step-line strong { display: block; font-size: 18px; }

/* Passos numerados (Como funciona) */
.numbered { display: flex; gap: 22px; align-items: flex-start; padding: 28px; }
.numbered__n {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
}
.numbered h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 6px; }

/* Perfis (Quem somos) */
.profile { padding: 44px; border-radius: 16px; gap: 44px; }
.profile__aside { flex: 0 0 220px; display: flex; flex-direction: column; gap: 20px; }
.profile__photo {
  width: 200px; height: 200px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--red); display: block;
}
.profile__num   { font-family: var(--font-head); font-size: 34px; font-weight: 700; line-height: 1; }
.profile__role  { font-family: var(--font-mono); font-size: 13px; color: var(--coral); margin-bottom: 6px; }
.profile__name  { font-family: var(--font-head); font-size: 36px; margin-bottom: 16px; }
.profile__body  { flex: 1 1 480px; min-width: 0; }
.profile__body > p:not([class]) { font-size: 18px; color: var(--text-muted); }
