:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10213c;
  background: #f6f9fc;
  font-synthesis: none;
  --navy: #071c38;
  --text: #10213c;
  --muted: #607085;
  --line: #dfe7ef;
  --blue: #2865e8;
  --teal: #23aebe;
  --green: #14924e;
  --amber: #d99209;
  --purple: #7b4dde;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 0%, #ffffff 0, #f8fafc 40%, #f3f7fb 100%); }
button, input, textarea, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.topbar { position: sticky; top: 0; z-index: 30; background: linear-gradient(90deg, #08264a 0%, #051932 100%); box-shadow: 0 10px 30px rgba(6,24,48,.18); }
.topbar-inner { width: min(1400px, calc(100% - 42px)); min-height: 76px; margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; margin-right: auto; }
.logo-pin { position: relative; width: 37px; height: 47px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: linear-gradient(145deg, #3ac8d6, #199eb9); box-shadow: 0 4px 12px rgba(25,168,189,.35); }
.logo-pin::before { content: ""; position: absolute; inset: 8px; border-radius: 999px; background: #0a294b; }
.logo-pin span { position: absolute; width: 10px; height: 10px; left: 13px; top: 13px; border-radius: 999px; background: #93e8ef; z-index: 1; }
.logo-name { color: #fff; font-size: clamp(1.6rem, 2.5vw, 2.15rem); font-weight: 900; letter-spacing: -.03em; }
.logo-name span { color: #23b9c8; }
.topnav { display: flex; align-items: center; gap: 32px; }
.topnav a { color: rgba(255,255,255,.93); font-size: .98rem; font-weight: 650; }
.topnav a:hover { color: #fff; }
.nav-button { min-width: 104px; min-height: 46px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff; border: 1px solid rgba(255,255,255,.36); border-radius: 13px; background: rgba(255,255,255,.03); font-weight: 700; }

.page-shell { width: min(1400px, calc(100% - 42px)); margin: 0 auto; padding: 28px 0 50px; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(470px,.98fr); gap: 42px; align-items: start; padding: 22px 18px 0; }
.hero-copy { padding-top: 18px; }
.hero-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 16px; border-radius: 999px; color: #078a9d; background: #e9f4fb; font-weight: 700; font-size: .92rem; }
.hero-copy h1 { max-width: 650px; margin: 28px 0 20px; color: #10233e; font-size: clamp(3rem, 4.7vw, 4.85rem); line-height: 1.01; letter-spacing: -.05em; }
.hero-copy h1 span { color: var(--teal); }
.hero-text { max-width: 670px; margin: 0; color: #536378; font-size: 1.08rem; line-height: 1.62; }
.hero-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 36px; }
.hero-features article { display: flex; gap: 13px; align-items: flex-start; }
.hero-features strong { display: block; margin-bottom: 5px; font-size: .95rem; }
.hero-features p { margin: 0; color: #5f6f82; font-size: .9rem; line-height: 1.55; }
.feature-symbol { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; font-size: 1.35rem; font-weight: 900; }
.feature-symbol.teal { color: #16a4b8; }
.feature-symbol.blue { color: #2c66d9; }
.privacy-highlight { display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(180deg,#ecf8f4,#e7f3ef); border: 1px solid #d3eae1; }
.lock-symbol { color: #15934e; font-size: 1.45rem; font-weight: 900; }
.privacy-highlight strong { display: block; margin-bottom: 5px; color: #187354; font-size: 1.05rem; }
.privacy-highlight p { margin: 0; color: #37695e; font-size: .95rem; line-height: 1.55; }

.upload-panel, .result { background: rgba(255,255,255,.97); border: 1px solid #dde5ee; border-radius: 18px; box-shadow: 0 18px 54px rgba(20,39,64,.10); }
.upload-panel { padding: 24px 26px; }
.upload-title-row { display: flex; align-items: flex-start; gap: 14px; }
.panel-doc { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 999px; flex: 0 0 auto; background: #f0f5ff; color: #2b64df; font-size: 1.45rem; }
.upload-title-row h2 { margin: 0 0 5px; font-size: 1.42rem; letter-spacing: -.02em; }
.upload-title-row p { margin: 0; color: #647286; font-size: .95rem; }
.dropzone { position: relative; display: flex; min-height: 225px; margin-top: 22px; padding: 25px; border: 2px dashed #cfd9e5; border-radius: 15px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; background: #fff; text-align: center; transition: .2s ease; }
.dropzone:hover { border-color: #9eb5d2; background: #fbfdff; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-symbol { color: #2d64df; font-size: 3.2rem; line-height: 1; }
.dropzone strong { color: #142642; font-size: 1rem; }
.dropzone > span:not(.upload-symbol), .dropzone small { color: #697a8d; font-size: .9rem; line-height: 1.5; }
#analyze-button, .next-step button, #payment-button, .download-report-button { width: 100%; margin-top: 14px; border: 0; border-radius: 12px; padding: 14px 18px; background: #10233e; color: #fff; font-weight: 800; }
#analyze-button:disabled, .next-step button:disabled, #payment-button:disabled, .download-report-button:disabled { opacity: .5; cursor: not-allowed; }
.info-strip { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 13px 15px; border-radius: 12px; }
.info-strip span { font-size: 1.1rem; }
.info-strip p { margin: 0; line-height: 1.5; font-size: .87rem; }
.info-blue { background: #eef4ff; color: #315cb4; }
.commercial-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.commercial-box { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; }
.commercial-box > span { font-size: 1.25rem; font-weight: 900; }
.commercial-box strong { display: block; margin-bottom: 2px; font-size: .9rem; }
.commercial-box p { margin: 0; font-size: .84rem; color: #4d5f73; }
.commercial-box.amber { background: #fff8e9; color: #d58d09; }
.commercial-box.green { background: #eef8f1; color: #15924e; }
.privacy-note { margin-top: 12px; text-align: center; color: #728092; font-size: .78rem; }
.status { margin-top: 15px; border-radius: 12px; padding: 12px 14px; background: #edf2f7; }
.status.success { background: #edf8f1; color: #23673f; }
.status.error { background: #fff1f1; color: #8a3434; }

.preview-intro { max-width: 900px; margin: 30px auto 0; text-align: center; }
.preview-intro h2 { margin: 0; font-size: 1.35rem; }
.preview-intro p { margin: 7px 0 0; color: #5d6d80; font-size: .93rem; }

.result { max-width: 1180px; margin: 28px auto 0; padding: 28px; }
.eyebrow { display: inline-block; margin-top: 0; color: #647386; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-title h2 { margin: 5px 0 0; font-size: 1.65rem; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.metric { min-height: 104px; padding: 18px; border: 1px solid #e6ecf2; border-radius: 15px; background: #f8fafc; display: flex; flex-direction: column; justify-content: space-between; }
.metric span { color: #748293; font-size: .8rem; }
.metric strong { font-size: 1.03rem; }
.warnings { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: #fff8e8; border: 1px solid #f3e0ad; }
.warnings ul { margin: 8px 0 0; padding-left: 20px; }
.route-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(280px,.75fr); gap: 14px; margin-top: 22px; }
.route-panel, .events-panel, .stops-panel { border: 1px solid #e2e8ef; background: #fbfcfe; border-radius: 18px; padding: 18px; }
.stops-panel { margin-top: 14px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.panel-heading h3 { margin: 5px 0 0; font-size: 1.08rem; }
.privacy-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border-radius: 999px; background: #edf4f0; color: #476454; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.panel-note { margin: 10px 2px 0; color: #748293; font-size: .78rem; line-height: 1.45; }
.route-map { min-height: 310px; margin-top: 16px; border: 1px solid #e3e9ef; border-radius: 16px; overflow: hidden; background: #f7f9fb; display: grid; place-items: center; }
.route-map svg { width: 100%; height: auto; display: block; }
.route-grid-line { fill: none; stroke: #e6ebf0; stroke-width: 1; }
.route-line { fill: none; stroke: #263849; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.route-start { fill: #2f855a; stroke: #fff; stroke-width: 3; }
.route-end { fill: #b83280; stroke: #fff; stroke-width: 3; }
.route-turn { fill: #c17817; stroke: #fff; stroke-width: 3; }
.route-label { fill: #526273; font-size: 15px; font-weight: 800; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.events-list { margin-top: 16px; display: grid; gap: 2px; }
.event-row { display: grid; grid-template-columns: 14px 1fr; gap: 10px; min-height: 64px; position: relative; }
.event-row:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 17px; bottom: -8px; width: 1px; background: #d9e1e8; }
.event-dot { width: 13px; height: 13px; margin-top: 4px; border-radius: 999px; border: 3px solid #fff; background: #60758a; box-shadow: 0 0 0 1px #cfd8e2; z-index: 1; }
.event-row > div { display: grid; gap: 2px; padding-bottom: 12px; }
.event-row time { color: #7b8998; font-size: .72rem; font-weight: 800; }
.event-row strong { font-size: .86rem; }
.event-row div > span { color: #667789; font-size: .78rem; }
.event-speed .event-dot { background: #c17817; }
.event-turning_point .event-dot { background: #7c5cbd; }
.stops-list { margin-top: 14px; display: grid; gap: 8px; }
.stop-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid #e8edf2; }
.stop-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f0f4f8; font-size: .72rem; font-weight: 900; color: #68798a; }
.stop-main { min-width: 0; display: grid; gap: 4px; }
.stop-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.stop-main span { color: #718091; font-size: .76rem; }
.stop-duration { font-size: .82rem; white-space: nowrap; }
.empty-state { width: 100%; min-height: 180px; padding: 24px; display: grid; place-items: center; text-align: center; color: #738395; line-height: 1.5; }
.empty-state.compact { min-height: 80px; padding: 18px; border: 1px dashed #dce4eb; border-radius: 14px; }
.next-step { margin-top: 22px; padding-top: 22px; border-top: 1px solid #e4e9ef; display: grid; grid-template-columns: 1fr 230px; align-items: center; gap: 20px; }
.next-step p { margin: 6px 0 0; color: #6c7b8a; line-height: 1.5; }
.next-step button { margin-top: 0; }

.payment-panel { margin-top: 20px; padding: 22px; border-radius: 18px; border: 1px solid #dce4ec; background: linear-gradient(180deg,#fff,#f8fbfd); }
.payment-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.payment-heading h3 { margin: 5px 0; font-size: 1.22rem; }
.payment-heading p { margin: 0; color: #69798a; line-height: 1.5; }
.payment-price { font-size: 1.45rem; white-space: nowrap; }
.payment-mode-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #fff7dc; border: 1px solid #f1dc96; color: #765d16; font-size: .84rem; }
.payment-form { display: grid; grid-template-columns: 1fr 220px 170px; gap: 12px; align-items: end; margin-top: 18px; }
.payment-form label { display: grid; gap: 6px; }
.payment-form label span { font-size: .78rem; color: #68798a; font-weight: 800; }
.payment-form input { width: 100%; min-height: 46px; border: 1px solid #d7e0e8; border-radius: 12px; padding: 0 12px; background: #fff; color: #16202a; outline: none; }
.payment-form input:focus { border-color: #74879a; box-shadow: 0 0 0 3px rgba(61,86,110,.08); }
#payment-button { margin-top: 0; min-height: 46px; padding: 0 14px; }
.payment-privacy { margin: 10px 0 0; color: #758495; font-size: .76rem; line-height: 1.45; }
.pix-panel { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 20px; padding: 18px; border-radius: 16px; border: 1px solid #e2e8ef; background: #fff; }
.pix-qr-wrap { width: 180px; height: 180px; padding: 8px; border: 1px solid #e1e7ed; border-radius: 14px; background: #fff; }
.pix-qr-wrap img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pix-content { min-width: 0; display: grid; align-content: start; gap: 8px; }
.pix-content > p { margin: 0; color: #69798a; line-height: 1.5; font-size: .88rem; }
#pix-code { width: 100%; min-height: 74px; resize: vertical; margin-top: 4px; border: 1px solid #dce4ec; border-radius: 12px; padding: 10px; background: #f8fafc; color: #4e6071; font-size: .72rem; }
.pix-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.secondary-button, .secondary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #d5dee7; border-radius: 10px; padding: 0 12px; background: #fff; color: #263849; font-size: .78rem; font-weight: 800; text-decoration: none; }
.payment-status { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: #f0f4f8; color: #607184; font-size: .82rem; font-weight: 800; }
.payment-status.approved { background: #eaf7ef; color: #286342; }
.payment-status.rejected { background: #fff0f0; color: #8b3b3b; }
.download-report-button { margin-top: 16px; background: #245c42; }

.how-it-works { margin-top: 26px; }
.separator { height: 1px; background: #e4ebf2; margin: 0 0 12px; }
.how-it-works > h2 { margin: 0; text-align: center; font-size: 1.35rem; }
.steps-grid { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr 34px 1fr 34px 1fr; gap: 10px; align-items: start; margin-top: 18px; }
.step { text-align: left; }
.step-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 15px; font-size: 1.9rem; font-weight: 800; }
.step-icon.green { background: #ecf8ef; color: var(--green); }
.step-icon.blue { background: #eef4ff; color: var(--blue); }
.step-icon.purple { background: #f3edff; color: var(--purple); }
.step-icon.amber { background: #fff8e8; color: var(--amber); }
.step-number { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 7px; border-radius: 999px; font-size: .72rem; }
.step-number.green { background: #dff5e6; color: var(--green); }
.step-number.blue { background: #e4efff; color: var(--blue); }
.step-number.purple { background: #eee5ff; color: var(--purple); }
.step-number.amber { background: #fff0c9; color: var(--amber); }
.step strong { font-size: .88rem; }
.step p { margin: 7px 0 0; color: #5e6e80; font-size: .83rem; line-height: 1.55; }
.arrow { display: grid; place-items: center; padding-top: 28px; color: #c7d0db; font-size: 1.55rem; }
.footer-note { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 920px; margin: 25px auto 0; padding: 13px 17px; border-radius: 12px; background: #eef4ff; color: #315eb9; font-size: .82rem; }
.footer-note p { margin: 0; line-height: 1.5; }

@media (max-width: 1180px) {
  .topnav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .upload-panel { max-width: 900px; }
  .cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .steps-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .arrow { display: none; }
}

@media (max-width: 820px) {
  .page-shell, .topbar-inner { width: min(100% - 22px, 1400px); }
  .hero-grid { padding-left: 0; padding-right: 0; }
  .hero-features, .commercial-row, .cards, .route-grid, .steps-grid { grid-template-columns: 1fr; }
  .payment-form { grid-template-columns: 1fr 1fr; }
  #payment-button { grid-column: 1 / -1; }
  .next-step { grid-template-columns: 1fr; }
  .pix-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .topbar-inner { min-height: 68px; }
  .logo-name { font-size: 1.4rem; }
  .nav-button { min-width: auto; min-height: 40px; padding: 0 12px; }
  .hero-copy h1 { font-size: 2.45rem; }
  .upload-panel, .result { padding: 19px; }
  .dropzone { min-height: 210px; }
  .payment-form { grid-template-columns: 1fr; }
  #payment-button { grid-column: auto; }
  .stop-row { grid-template-columns: 38px minmax(0,1fr); }
  .stop-duration { grid-column: 2; }
  .privacy-chip { display: none; }
  .footer-note { align-items: flex-start; }
}
