/*
 * A vitrine: o que quem ainda não tem conta vê em railstools.com.br.
 *
 * Separada de `application.css` pela mesma razão que no analytics e no monitoring: lá está o
 * sistema (barra, cartão, botão, formulário), aqui estão as telas. A separação não é arrumação —
 * é o que permite mexer na página de entrada sem tocar em nada que o painel usa.
 *
 * **Nenhuma cor literal aqui.** Toda cor é token, e há teste conferindo: uma regra com `#fff`
 * dentro fica errada em um dos dois temas, e quem escreve costuma olhar só o tema em que está.
 *
 * O respiro é MAIOR que o do painel, de propósito. São duas leituras diferentes: no painel se
 * procura um número; aqui se lê uma frase e se decide.
 */

/* ------------------------------------------------------------------ hero -- */
.hero { position: relative; padding: 72px 0 56px; text-align: center; overflow: hidden; }

/* O brilho atrás do título. É `::before` e não um elemento: assim ele não entra na ordem de
   leitura de quem usa leitor de tela, que é o certo para enfeite. */
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  width: 720px;
  height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.hero-title {
  max-width: 18ch;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.hero-title em { font-style: normal; color: var(--accent); }

.hero-lead { max-width: 56ch; font-size: 17px; line-height: 1.6; color: var(--text-soft); }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero-note { font-size: 12px; color: var(--text-faint); }

/* -------------------------------------------------------------- produtos -- */
.section { padding: 48px 0; }
.section-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 24px; }
.section-title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.section-lead { font-size: 15px; color: var(--text-soft); max-width: 60ch; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.product {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), background var(--ease);
}
.product:hover { border-color: var(--line-strong); background: var(--surface-hover); }

.product-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}
.product-name { font-size: 16px; font-weight: 600; }
.product-text { font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.product-link { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--accent); }

/* --------------------------------------------------------------- motivos -- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.reason { display: flex; flex-direction: column; gap: 7px; }
.reason-title { font-size: 15px; font-weight: 600; }
.reason-text { font-size: 14px; line-height: 1.6; color: var(--text-soft); }

/* ----------------------------------------------------------------- passos -- */
.steps { counter-reset: passo; display: flex; flex-direction: column; gap: 2px; }
.step {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step::before {
  counter-increment: passo;
  content: counter(passo);
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.step-body { display: flex; flex-direction: column; gap: 4px; }
.step-title { font-size: 15px; font-weight: 600; }
.step-text { font-size: 14px; line-height: 1.6; color: var(--text-soft); }

/* ------------------------------------------------------------------- cta -- */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 44px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
}
.cta-title { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.cta-text { max-width: 52ch; font-size: 15px; color: var(--text-soft); }

/* ---------------------------------------------------------------- rodapé -- */
.foot {
  margin-top: 56px;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 32px; max-width: none; }
  .hero-lead { font-size: 15px; }
  .section { padding: 36px 0; }
  .section-title, .cta-title { font-size: 20px; }
}
