/* ============================================================
   Trilha do Ecommerce — Landing page do ebook "O Mapa da Trilha"
   Sistema visual: etiqueta de envio / carimbo / ficha técnica
   ============================================================ */

/* ---- Fontes auto-hospedadas (sem chamadas externas) ---- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  --navy-deep: #0A0828;
  --navy-ink: #15123F;
  --orange-burn: #D85D1E;
  --orange-glow: #F0934D;
  --paper: #F5F1E8;
  --kraft: #C9A878;

  --white: #FFFFFF;
  --ink-soft: rgba(21, 18, 63, 0.62);
  --on-dark-soft: rgba(245, 241, 232, 0.62);
  --success: #2F8F5B;
  --error: #C23B3B;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-md: 0 14px 30px rgba(10, 8, 40, 0.16);
  --shadow-lg: 0 28px 64px rgba(10, 8, 40, 0.30);
  --container-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ol,
dl {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--orange-burn);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-burn);
  margin: 0 0 12px;
}

.eyebrow--light {
  color: var(--orange-glow);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 10px;
}

.section-subtitle {
  color: var(--ink-soft);
  margin: 0 0 48px;
  font-size: 1.02rem;
  max-width: 56ch;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-ink);
  border-bottom: 1px solid rgba(245, 241, 232, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--orange-glow);
}

/* ---- Botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 15px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--orange-burn);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 10px 18px;
  font-size: 0.85rem;
}

.btn--ghost:hover {
  border-color: var(--orange-glow);
  color: var(--orange-glow);
}

/* ---- Hero ---- */
.hero {
  background: var(--navy-ink);
  color: var(--paper);
  padding-block: 64px 88px;
  position: relative;
  overflow: hidden;
}

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

/* Etiqueta de envio: o "remetente / destinatário" no topo do hero */
.tag-label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px dashed var(--kraft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 28px;
  background: rgba(245, 241, 232, 0.04);
}

.tag-label__row {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-soft);
}

.tag-label__row b {
  color: var(--paper);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--paper);
}

.text-orange {
  color: var(--orange-glow);
}

.hero__subtitle {
  font-size: 1.08rem;
  color: var(--on-dark-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero__trust {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgba(245, 241, 232, 0.45);
}

/* ---- Formulário de captura ---- */
.lead-form {
  max-width: 480px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.lead-form input[type="email"],
.lead-form input[type="text"],
.lead-form input[type="tel"] {
  flex: 1 1 60px;
  padding: 15px 16px;
  margin: 5px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(245, 241, 232, 0.22);
  background: rgba(245, 241, 232, 0.06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

.lead-form input[type="text"]::placeholder,
.lead-form input[type="email"]::placeholder,
.lead-form input[type="tel"]::placeholder {
  color: rgba(245, 241, 232, 0.4);
}

.lead-form input[type="email"]:focus,
.lead-form input[type="text"]:focus,
.lead-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--orange-glow);
  background: rgba(245, 241, 232, 0.1);
}

.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.5);
  margin-top: 14px;
  cursor: pointer;
}

.lead-form__consent--center {
  justify-content: center;
  text-align: left;
  max-width: 420px;
  margin-inline: auto;
  margin-top: 16px;
}

.lead-form__consent input {
  margin-top: 3px;
  flex-shrink: 0;
}

.lead-form__feedback {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
}

.cta-final .lead-form__feedback[data-state="error"] {
  background: rgba(245, 241, 232, 0.95);
  color: #7A2020;
}

.cta-final .lead-form__feedback[data-state="info"] {
  background: rgba(245, 241, 232, 0.95);
  color: var(--navy-ink);
}

.cta-final .lead-form__feedback[data-state="success"] {
  background: rgba(245, 241, 232, 0.95);
  color: #1F6B3F;
}

/* ---- Capa do ebook (imagem real no hero) ---- */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__cover {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 28px 48px rgba(10, 8, 40, 0.45));
}

/* ---- Trilha / rota das 5 fases ---- */
.route {
  padding-block: 96px;
  background: var(--paper);
}

.route__list {
  list-style: none;
  position: relative;
  max-width: 720px;
}

.route__list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background-image: linear-gradient(var(--kraft) 60%, transparent 0%);
  background-size: 2px 12px;
  background-repeat: repeat-y;
}

.route__stop {
  position: relative;
  display: flex;
  gap: 24px;
  padding-bottom: 44px;
}

.route__stop--last {
  padding-bottom: 0;
}

.route__marker {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy-ink);
  color: var(--orange-glow);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange-burn);
  position: relative;
  z-index: 1;
}

.route__body {
  padding-top: 8px;
}

.route__body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy-ink);
  margin: 0 0 8px;
}

.route__body p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* ---- Ficha técnica do autor ---- */
.spec {
  padding-block: 96px;
  background: var(--navy-ink);
  color: var(--paper);
}

.spec__inner {
  max-width: 760px;
}

.spec .section-title {
  color: var(--paper);
}

.spec__sheet {
  border: 1.5px solid rgba(245, 241, 232, 0.18);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 12px;
}

.spec__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(245, 241, 232, 0.14);
}

.spec__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.spec__row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(245, 241, 232, 0.5);
}

.spec__row dd {
  margin: 0;
  font-weight: 600;
  color: var(--paper);
}

.spec__note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 241, 232, 0.14);
  font-style: italic;
  color: rgba(245, 241, 232, 0.7);
  font-size: 1.02rem;
  line-height: 1.6;
}

/* ---- CTA final ---- */
.cta-final {
  background: var(--orange-burn);
  color: var(--white);
  padding-block: 88px;
  text-align: center;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-final h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--white);
}

.cta-final__sub {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 32px;
}

.cta-final .lead-form {
  margin-inline: auto;
}

.cta-final .lead-form input[type="text"],
.cta-final .lead-form input[type="email"],
.cta-final .lead-form input[type="tel"] {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.cta-final .lead-form input[type="text"]::placeholder,
.cta-final .lead-form input[type="email"]::placeholder,
.cta-final .lead-form input[type="tel"]::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.cta-final .lead-form__consent {
  color: rgba(255, 255, 255, 0.85);
}

.cta-final .btn--primary {
  background: var(--navy-ink);
}

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

.cta-final .lead-form__feedback[data-state="info"] {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

/* ---- Rodapé ---- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(245, 241, 232, 0.55);
  padding-block: 40px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.site-footer__brand {
  font-family: var(--font-mono);
  color: var(--paper);
  font-weight: 700;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer__links a {
  color: rgba(245, 241, 232, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-footer__links a:hover {
  color: var(--orange-glow);
}

.site-footer__legal {
  font-size: 0.76rem;
  margin: 0;
}

.hidden-iframe {
  display: none;
}

/* ---- Responsivo ---- */
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    margin-bottom: 8px;
  }

  .hero__cover {
    max-width: 220px;
  }

  .spec__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .lead-form__row {
    flex-direction: column;
  }

  .btn--primary {
    width: 100%;
  }

  .route__list::before {
    left: 23px;
  }

  .route__marker {
    width: 48px;
    height: 48px;
    font-size: 0.85rem;
  }

  .route__stop {
    gap: 18px;
  }
}