/* ==========================================================
   APOSTILA PLATAFORMA DE PETRÓLEO — base (funil claro, mobile first)
   Paleta: azul-petróleo profundo, laranja de segurança, amarelo do capacete.
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f1e8;
  --navy: #0b1522;
  --navy-2: #182a42;
  --surface: #ffffff;
  --border: #e7e0d4;
  --border-strong: #cfc5b4;
  --text: #0f1b2d;
  --text-2: #3f4b5e;
  --muted: #6b7686;
  --accent: #f26b1d;
  --accent-dark: #d6591a;
  --accent-soft: #fdebdf;
  --accent-ink: #160a02;
  --yellow: #ffc838;
  --yellow-soft: #fff4d6;
  --yellow-ink: #1a1204;
  --green: #1f9d63;
  --amber: #e69500;
  --amber-soft: #fff4de;
  --danger: #c62828;
  --danger-soft: #fdecea;
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 34, 0.05), 0 2px 8px rgba(11, 21, 34, 0.06);
  --shadow: 0 12px 32px rgba(11, 21, 34, 0.14);
  --container: 1140px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; line-height: 1; margin: 0 0 0.5em; letter-spacing: 0; color: var(--navy); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }
.lead { font-size: 1.1rem; color: var(--text-2); }
.pixel-img { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--accent); flex: none; }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1;
  text-decoration: none; cursor: pointer; text-align: center;
  min-height: 48px; transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -8px rgba(242, 107, 29, 0.6); }
.btn--primary:hover { background: #ff8a3d; box-shadow: 0 12px 28px -8px rgba(242, 107, 29, 0.7); }
.btn--primary:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: #fff; border-color: var(--border-strong); color: var(--navy); }
.btn--outline:hover { border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--link { background: none; border: 0; color: var(--muted); font-family: var(--font); font-weight: 500; font-size: 0.95rem; letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 3px; padding: 10px; min-height: 0; }
.btn--link:hover { color: var(--navy); }
.btn--lg { padding: 16px 28px; font-size: 1.25rem; min-height: 56px; }
.btn--xl { padding: 18px 30px; font-size: 1.35rem; min-height: 60px; }
.btn--sm { padding: 9px 16px; font-size: 1rem; min-height: 40px; border-radius: 6px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }
.btn__spinner { display: none; position: absolute; width: 20px; height: 20px; border: 3px solid rgba(0, 0, 0, 0.25); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(11, 21, 34, 0.15); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: middle; }

/* ---------- Cards e grids ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 20px; box-shadow: var(--shadow-sm); }
.panel__text { color: var(--text-2); }
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) { .panel { padding: 36px; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; }
.logo__mark { width: 38px; height: 38px; flex: none; }
.logo__text b { color: var(--accent); font-weight: 800; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.site-nav { display: none; gap: 26px; }
.site-nav a { font-size: 0.95rem; font-weight: 500; color: var(--text-2); text-decoration: none; }
.site-nav a:hover { color: var(--navy); }
.site-header__inner > .btn { display: none; white-space: nowrap; }
@media (min-width: 640px) { .site-header__inner > .btn { display: inline-flex; } }
@media (min-width: 960px) { .site-nav { display: flex; } }
.secure-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.secure-badge svg { width: 16px; height: 16px; color: var(--green); }

/* Etapas (checkout) */
.steps-bar { display: none; list-style: none; align-items: center; gap: 22px; }
.steps-bar__item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.steps-bar__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; background: var(--bg-alt); border: 1.5px solid var(--border-strong); color: var(--muted); }
.steps-bar__item.step-active { color: var(--navy); }
.steps-bar__item.step-active .steps-bar__num { background: var(--navy); border-color: var(--navy); color: #fff; }
.steps-bar__item.step-done { color: var(--green); }
.steps-bar__item.step-done .steps-bar__num { background: var(--green); border-color: var(--green); color: #fff; }
@media (min-width: 760px) { .steps-bar { display: flex; } }

/* ---------- Footer (escuro em todas as páginas) ---------- */
.site-footer { background: var(--navy); color: rgba(243, 238, 230, 0.72); border-top: 1px solid rgba(243, 238, 230, 0.12); padding: 48px 0 32px; margin-top: 48px; }
.site-footer .logo { color: #f3eee6; }
.site-footer .logo__text b { color: var(--yellow); }
.site-footer__grid { display: grid; gap: 28px; margin-bottom: 28px; }
.site-footer__brand p { font-size: 0.92rem; margin: 14px 0 0; max-width: 360px; }
.site-footer__col { display: grid; gap: 8px; align-content: start; font-size: 0.92rem; }
.site-footer__col h4 { font-size: 0.82rem; letter-spacing: 0.14em; color: var(--yellow); margin: 0 0 4px; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--yellow); }
.site-footer__disclaimer { font-size: 0.82rem; max-width: 760px; border-top: 1px solid rgba(243, 238, 230, 0.12); padding-top: 22px; }
.site-footer__copy { font-size: 0.8rem; margin: 0; opacity: 0.8; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Formulários ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 8px; border: 1.5px solid var(--border-strong);
  background: #fff; color: var(--text); font: inherit; font-size: 1rem; min-height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #9aa4b2; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.field__error { color: var(--danger); font-size: 0.82rem; margin: 6px 0 0; }
.form__error { background: var(--danger-soft); border: 1px solid rgba(198, 40, 40, 0.3); color: #9b1c1c; padding: 12px 14px; border-radius: 8px; font-size: 0.92rem; margin: 0 0 14px; }
.form__legal { font-size: 0.82rem; color: var(--muted); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.form__legal a { color: var(--text-2); }
.notice { padding: 12px 14px; border-radius: 8px; font-size: 0.92rem; margin: 0 0 18px; border: 1px solid var(--border-strong); background: var(--bg-alt); }
.notice--warn { border-color: #f3cf7a; background: var(--amber-soft); color: #7a4b00; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-alt); border: 1px solid var(--border-strong); color: var(--text-2); }
.status-pill--danger { border-color: rgba(198, 40, 40, 0.3); color: var(--danger); background: var(--danger-soft); }
.status-pill.is-paid { border-color: var(--green); color: var(--green); background: #e6f6ee; }

/* ---------- Checklist / passos ---------- */
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--text-2); font-size: 1.02rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 5px; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23160a02' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center;
}
.checklist--compact { gap: 9px; }
.checklist--compact li { font-size: 0.95rem; }

.steps { list-style: none; display: grid; gap: 20px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step__num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; background: var(--navy); }
.step h3 { margin-bottom: 4px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--text-2); }
.steps--compact { gap: 12px; }
.steps--compact .step__num { width: 32px; height: 32px; font-size: 0.95rem; }
.steps--compact h3 { font-size: 1.05rem; }
.steps--compact p { font-size: 0.9rem; }

/* ---------- Capa do material (desenhada em CSS) ---------- */
.cover {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.15em;
  aspect-ratio: 3 / 4; padding: 12% 10% 10%; border-radius: 4px 10px 10px 4px; color: #fff; overflow: hidden;
  font-family: var(--font-display); text-transform: uppercase; line-height: 0.95;
  background: linear-gradient(160deg, #1a2e4a 0%, #0f1e33 55%, #0b1522 100%); box-shadow: var(--shadow);
  border-left: 0.35em solid #060d18;
}
.cover::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 0.5em; background: repeating-linear-gradient(-45deg, var(--accent) 0 0.7em, #0b1522 0.7em 1.4em); }
.cover__label { font-size: 0.55em; font-weight: 700; letter-spacing: 0.14em; color: var(--yellow); margin-bottom: auto; }
.cover__title { font-weight: 900; font-size: 2.1em; letter-spacing: -0.01em; }
.cover__big { font-weight: 700; font-size: 0.95em; color: var(--accent); margin-top: 0.3em; }
.cover__sub { font-size: 0.55em; font-weight: 600; letter-spacing: 0.08em; color: rgba(243, 238, 230, 0.7); margin-top: 0.6em; }
.cover--thumb { width: 66px; font-size: 7.5px; border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-sm); flex: none; }

/* ---------- Garantia ---------- */
.guarantee { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); color: var(--text-2); font-size: 0.9rem; }
.guarantee svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.guarantee p { margin: 0; }
.guarantee strong { color: var(--navy); }

/* ---------- Barra promocional (cronômetro) — fixa no topo, amarelo capacete ---------- */
:root { --promo-bar-h: 52px; }
@media (min-width: 760px) { :root { --promo-bar-h: 64px; } }
.promo-bar { position: sticky; top: 0; z-index: 70; min-height: var(--promo-bar-h); display: flex; align-items: center; background: var(--yellow); color: var(--yellow-ink); box-shadow: 0 4px 18px rgba(255, 200, 56, 0.35); font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.05em; }
.promo-bar__inner { display: flex; align-items: center; justify-content: center; min-height: var(--promo-bar-h); }
.promo-bar__state { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 18px; width: 100%; text-align: center; }
.promo-bar__label { display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 1.05rem; font-weight: 600; }
.promo-bar b { color: var(--yellow-ink); font-weight: 800; }
.promo-bar .promo-bar__tag { font-weight: 800; letter-spacing: 0.1em; font-size: 0.8rem; background: var(--yellow-ink); color: var(--yellow); padding: 4px 9px; border-radius: 4px; }
.promo-bar s { color: rgba(26, 18, 4, 0.6); text-decoration-thickness: 2px; }
.promo-bar .promo-bar__price { background: var(--yellow-ink); color: var(--yellow); padding: 2px 10px; border-radius: 4px; font-size: 1.3rem; font-weight: 900; }
.promo-bar__clock { display: inline-flex; align-items: center; gap: 8px; background: rgba(26, 18, 4, 0.12); border-radius: 8px; padding: 5px 14px; font-size: 0.9rem; font-weight: 700; }
.promo-bar__clock svg { width: 20px; height: 20px; }
.promo-bar__clock b { font-size: 1.6rem; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; animation: promo-blink 1s steps(1) infinite; }
@keyframes promo-blink { 50% { opacity: 0.7; } }
.promo-bar [hidden] { display: none !important; }
.site-header { top: var(--promo-bar-h); }
@media (max-width: 759px) {
  .promo-bar__long { display: none; }
  .promo-bar__state { gap: 4px 10px; }
  .promo-bar__label { font-size: 0.86rem; gap: 6px; }
  .promo-bar__tag { font-size: 0.66rem; padding: 3px 6px; }
  .promo-bar__price { font-size: 1.05rem; padding: 1px 8px; }
  .promo-bar__clock { padding: 3px 10px; gap: 6px; }
  .promo-bar__clock svg { width: 16px; height: 16px; }
  .promo-bar__clock b { font-size: 1.2rem; }
}

/* ---------- Preços "de/por" ---------- */
.price-was { font-size: 0.9rem; color: var(--muted); }
.price-was s { color: var(--danger); text-decoration-thickness: 2px; }
.savings-pill { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; font-size: 0.82rem; padding: 5px 12px; border-radius: 999px; }
.savings-pill b { color: var(--accent-dark); }
[data-countdown] { font-variant-numeric: tabular-nums; }

.notice--success { border-color: rgba(31, 157, 99, 0.35); background: #e6f6ee; color: #0b5c36; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.85rem; }

/* ---------- Modais ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 21, 34, 0.7); backdrop-filter: blur(2px); }
.modal__card { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: var(--radius-lg); padding: 28px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); animation: modal-in 0.25s ease; max-height: calc(100vh - 32px); overflow: auto; }
.modal__card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--navy) 14px 28px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 14px; right: 10px; width: 36px; height: 36px; border: 0; background: var(--bg-alt); border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal__eyebrow { display: block; font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--danger); margin: 6px 0 8px; }
.modal__title { font-size: 1.7rem; margin-bottom: 10px; padding-right: 28px; }
.modal__text { color: var(--text-2); font-size: 0.95rem; }
.modal__price { display: grid; justify-items: center; gap: 2px; padding: 14px; margin: 14px 0 16px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--border); text-align: center; }
.modal__price s { color: var(--muted); font-size: 1rem; }
.modal__price b { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.modal__price span { font-size: 0.82rem; color: var(--muted); }
.modal__list { list-style: none; display: grid; gap: 8px; margin: 0 0 6px; font-size: 0.9rem; color: var(--text-2); }
.modal__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; background: var(--bg-alt); border-radius: 8px; }
.modal__list s { color: var(--muted); margin-right: 4px; }
.modal__list b { color: var(--accent-dark); }
.modal .btn--link { display: block; width: 100%; margin-top: 6px; }
body.modal-open { overflow: hidden; }
@media (min-width: 640px) { .modal__card { padding: 34px 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
