/* DDX Logística: estilos do site. Sem framework: cores e medidas nas variáveis
   de :root (ver DESIGN.md). As fontes ficam em ./fonts, ao lado deste arquivo. */

@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0F2340;
  --navy-2: #16305A;
  --navy-3: #0B1A30;
  --amber: #F5A524;
  --amber-hover: #E8961A;
  --amber-text: #B7791F;
  --amber-soft: #FEF3DC;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --muted-dark: #A9B6CC;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --success: #16A34A;
  --error: #DC2626;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 12px 32px rgb(15 35 64 / 0.08);
  --container: 1160px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.5vw + 1rem, 2.25rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: var(--radius); }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { font: 600 .8125rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-text); margin-bottom: .75rem; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--amber); color: var(--navy); }
.btn--primary:hover { background: var(--amber-hover); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--lg { padding: 14px 24px; font-size: 1.0625rem; }
.btn--sm { padding: 8px 16px; font-size: .9375rem; }

/* Topo */
.topbar { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); font-weight: 500; text-decoration: none; }
.nav a:not(.btn):hover { color: var(--navy); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
@media (max-width: 820px) {
  .js .menu-toggle { display: inline-flex; }
  /* Sem JS, a navegação fica visível numa segunda linha do topo. */
  .topbar__inner { flex-wrap: wrap; height: auto; min-height: 72px; }
  .nav { flex-wrap: wrap; gap: 8px 20px; padding-bottom: 12px; }
  .js .topbar__inner { flex-wrap: nowrap; height: 72px; }
  .js .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .nav.is-open { display: flex; }
  .js .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .js .nav .btn { margin-top: 16px; }
}

/* Topo da home */
.hero { background: var(--bg-alt); padding: 72px 0 80px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.125rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note { margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.track { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.track__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 20px; }
.track__id { font: 600 1rem var(--font-head); color: var(--navy); }
.track__status { font-size: .8125rem; font-weight: 600; color: var(--amber-text); background: var(--amber-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.track__steps { list-style: none; margin: 0; padding: 0; }
.track__steps li { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.track__steps li:last-child { padding-bottom: 0; }
.track__steps li:not(:last-child)::before { content: ""; position: absolute; left: 6px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.track__steps li.is-done::before { background: var(--success); }
.track__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-strong); margin-top: 5px; flex: none; }
.is-done .track__dot { background: var(--success); }
.is-current .track__dot { background: var(--amber); box-shadow: 0 0 0 5px rgb(245 165 36 / .25); }
.track__steps strong { display: block; color: var(--navy); font-weight: 600; font-size: .9375rem; }
.track__steps small { font-size: .8125rem; color: var(--muted); }
.track__steps li:not(.is-done):not(.is-current) strong { color: var(--muted); }
.track__proof { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.track__proof .icon { color: var(--success); width: 20px; height: 20px; }
@media (max-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* Números */
.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.stats__grid div { padding: 28px 12px; text-align: center; }
.stats strong { display: block; font: 700 1.75rem/1.2 var(--font-head); }
.stats span { font-size: .875rem; color: var(--muted-dark); }
@media (max-width: 820px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid div:last-child { grid-column: 1 / -1; }
}

/* Seções */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 48px 0 88px; }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section__head p:last-child { color: var(--muted); margin-bottom: 0; }
.section--dark { background: var(--navy); color: var(--muted-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--amber); }
.section--dark .section__head p:last-child { color: var(--muted-dark); }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* Clientes */
.clients { padding: 56px 0; border-bottom: 1px solid var(--line); }
.clients__title { font: 600 .8125rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--muted); margin-bottom: 28px; }
.clients__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px 32px; align-items: center; }
.clients__grid img { width: 100%; height: 56px; object-fit: contain; filter: grayscale(1); opacity: .7; mix-blend-mode: multiply; transition: filter .2s, opacity .2s; }
.clients__grid img:hover { filter: none; opacity: 1; }
@media (max-width: 900px) { .clients__grid { grid-template-columns: repeat(4, 1fr); } }

/* Cartões */
.cards { display: grid; gap: 20px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
/* Flex para a última linha incompleta ficar centralizada. */
.cards--auto { display: flex; flex-wrap: wrap; justify-content: center; }
.cards--auto > * { flex: 1 1 300px; max-width: 360px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--amber-soft); color: var(--navy); margin-bottom: 20px; }
.card__tag { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-text); margin-bottom: .25rem; }
.card p:last-child { margin-bottom: 0; color: var(--muted); font-size: .9375rem; }
.section--dark .card { background: var(--navy-2); border-color: rgb(255 255 255 / .08); }
.section--dark .card:hover { border-color: rgb(245 165 36 / .5); box-shadow: none; }
.section--dark .card__icon { background: rgb(245 165 36 / .14); color: var(--amber); }
.section--dark .card p:last-child { color: var(--muted-dark); }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--4 { grid-template-columns: 1fr; } }

/* Como funciona */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { position: relative; }
.steps__n { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1rem var(--font-head); margin-bottom: 16px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 56px; right: -16px; height: 2px; background: repeating-linear-gradient(90deg, var(--amber) 0 8px, transparent 8px 14px); }
.steps p { color: var(--muted); font-size: .9375rem; margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Diferenciais */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.feature { display: flex; gap: 16px; }
.feature .icon { color: var(--amber-text); width: 28px; height: 28px; margin-top: 2px; }
.feature p { color: var(--muted); font-size: .9375rem; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* Quem somos */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about p { color: var(--muted); }
.seals { list-style: none; margin: 0; padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.seals img { max-height: 72px; width: auto; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 32px; } }

/* Perguntas frequentes */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font: 600 1rem/1.4 var(--font-head); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 600 1.25rem/1 var(--font-body); color: var(--amber-text); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Chamada final */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--muted-dark); padding: 64px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { margin: 0; }

/* Rodapé */
.footer { background: var(--navy-3); color: var(--muted-dark); padding: 64px 0 0; font-size: .9375rem; }
.footer a { color: #DCE3EE; text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 40px; }
.footer__grid img { height: 40px; width: auto; margin-bottom: 16px; }
.footer__title { font: 600 .8125rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer address { font-style: normal; line-height: 1.7; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 48px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgb(255 255 255 / .08); font-size: .8125rem; }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Cadastro */
.page-head { background: var(--bg-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-head p:last-child { color: var(--muted); max-width: 40em; margin: 0; font-size: 1.0625rem; }
.signup { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.signup__form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 500; font-size: .9375rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 14px; font: 400 1rem/1.4 var(--font-body); color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgb(15 35 64 / .12); }
.req { color: var(--error); }
.field--error label { color: var(--error); }
.field--error input, .field--error textarea { border-color: var(--error); }
.field--error input:focus, .field--error textarea:focus { box-shadow: 0 0 0 3px rgb(220 38 38 / .15); }
.field__error { margin: 6px 0 0; font-size: .875rem; color: var(--error); }
.form-note { font-size: .875rem; color: var(--muted); margin: 20px 0; }
.cf-turnstile { margin-top: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 500; border: 1px solid; }
.alert--success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert--error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.signup__aside h2 { font-size: 1.25rem; }
.next { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: next; display: grid; gap: 20px; }
.next li { counter-increment: next; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; }
.next li::before { content: counter(next); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--amber-soft); color: var(--navy); font: 700 .875rem/32px var(--font-head); text-align: center; }
.next strong { color: var(--navy); }
.next span { font-size: .9375rem; color: var(--muted); }
.signup__proof { font-weight: 600; color: var(--navy); }
.signup__track { font-size: .9375rem; color: var(--muted); }
.signup__contact { font-size: .9375rem; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .signup { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .signup__form { padding: 24px 20px; }
}
