:root {
  --navy-950: #071a2f;
  --navy-900: #0a2540;
  --navy-800: #103654;
  --blue-700: #075fae;
  --blue-600: #0875d1;
  --blue-100: #e9f4ff;
  --cyan-400: #21c4d6;
  --green-600: #12845b;
  --green-100: #e7f8f1;
  --red-600: #c43b45;
  --red-100: #fff0f1;
  --slate-700: #40566b;
  --slate-500: #6f8295;
  --slate-300: #cbd7e2;
  --slate-200: #e3eaf0;
  --slate-100: #f3f7fa;
  --white: #fff;
  --shadow: 0 20px 55px rgba(5, 31, 54, .13);
  --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--navy-950);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input { font: inherit; }
svg { display: block; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { height: 76px; border-bottom: 1px solid rgba(10, 37, 64, .09); background: rgba(255,255,255,.96); position: relative; z-index: 20; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1.1; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); box-shadow: 0 8px 20px rgba(8,117,209,.22); }
.brand-mark svg { width: 25px; height: 25px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 4px; color: var(--slate-500); font-size: .72rem; font-weight: 600; }
.desktop-nav { display: flex; align-items: center; gap: 25px; color: var(--slate-700); font-size: .9rem; font-weight: 650; }
.desktop-nav > a { text-decoration: none; }
.desktop-nav > a:hover, .back-link:hover { color: var(--blue-700); }
.tools-menu { position: relative; }
.tools-menu summary { cursor: pointer; list-style: none; padding: 10px 0; }
.tools-menu summary::-webkit-details-marker { display: none; }
.tools-menu summary::after { content: "⌄"; margin-left: 7px; color: var(--blue-600); }
.tools-popover { position: absolute; right: 0; top: 46px; width: 310px; padding: 9px; border: 1px solid var(--slate-200); background: white; border-radius: 14px; box-shadow: var(--shadow); }
.tools-popover a { display: flex; justify-content: space-between; gap: 20px; padding: 10px 12px; border-radius: 9px; text-decoration: none; }
.tools-popover a:hover { background: var(--slate-100); }
.tools-popover span { color: var(--slate-500); font-weight: 500; }
.back-link { color: var(--slate-700); font-weight: 700; text-decoration: none; }

.tool-hero { position: relative; overflow: hidden; padding: 70px 0 76px; background: linear-gradient(145deg, #f7fbff 0%, #edf7ff 56%, #f0fbfa 100%); }
.tool-hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; right: -180px; top: -220px; background: radial-gradient(circle, rgba(33,196,214,.17), transparent 68%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(410px, .78fr); align-items: center; gap: clamp(45px, 8vw, 105px); position: relative; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--blue-700); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kicker span { width: 23px; height: 3px; border-radius: 2px; background: var(--cyan-400); }
h1, h2, p { margin-top: 0; }
.hero-copy h1 { max-width: 650px; margin: 14px 0 18px; font-size: clamp(2.45rem, 5vw, 4.4rem); line-height: 1.02; letter-spacing: -.055em; }
.lead { max-width: 650px; margin-bottom: 26px; color: var(--slate-700); font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.65; }
.trust-list { display: flex; flex-wrap: wrap; gap: 12px 20px; padding: 0; margin: 0; list-style: none; color: var(--slate-700); font-size: .88rem; font-weight: 650; }
.trust-list li { display: flex; align-items: center; gap: 7px; }
.trust-list svg { width: 18px; height: 18px; fill: none; stroke: var(--green-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.upload-card { padding: 26px; background: rgba(255,255,255,.97); border: 1px solid rgba(8,117,209,.14); border-radius: 22px; box-shadow: var(--shadow); }
.card-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 18px; }
.step-badge { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; color: white; background: var(--navy-900); font-weight: 800; }
.card-heading h2 { margin: 0 0 2px; font-size: 1.15rem; line-height: 1.2; }
.card-heading p { margin: 0; color: var(--slate-500); font-size: .84rem; }
.drop-zone { min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 2px dashed #9cc8ed; border-radius: 15px; background: #f8fcff; cursor: pointer; color: var(--slate-500); transition: .2s ease; outline: none; }
.drop-zone:hover, .drop-zone:focus-visible, .drop-zone.is-dragging { border-color: var(--blue-600); background: var(--blue-100); transform: translateY(-1px); }
.drop-zone strong { margin-top: 12px; color: var(--navy-900); font-size: 1.02rem; }
.drop-zone > span:not(.upload-icon):not(.select-label) { font-size: .82rem; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--blue-700); background: var(--blue-100); }
.upload-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.select-label { margin-top: 8px; padding: 8px 16px; border: 1px solid #b8d8f1; border-radius: 9px; background: white; color: var(--blue-700); font-size: .87rem; font-weight: 750; }
.privacy-line { display: flex; align-items: flex-start; gap: 7px; margin: 13px 2px 0; color: var(--slate-500); font-size: .75rem; line-height: 1.45; }
.privacy-line svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; fill: none; stroke: var(--green-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.file-info { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--slate-200); border-radius: 12px; background: var(--slate-100); }
.file-info > span:nth-child(2) { min-width: 0; flex: 1; }
.file-info strong, .file-info small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-info strong { font-size: .9rem; }
.file-info small { color: var(--slate-500); font-size: .75rem; }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; color: var(--green-600); background: var(--green-100); font-size: .7rem; font-weight: 850; }
.file-info button { border: 0; background: transparent; color: var(--slate-500); cursor: pointer; font-size: 1.55rem; line-height: 1; }
.primary-button { width: 100%; margin-top: 13px; padding: 13px 18px; border: 0; border-radius: 11px; color: white; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); box-shadow: 0 10px 22px rgba(8,117,209,.22); cursor: pointer; font-weight: 800; }
.primary-button:hover { filter: brightness(1.06); }
.primary-button:disabled { opacity: .6; cursor: wait; }
.status-panel { display: flex; gap: 12px; align-items: flex-start; margin-top: 15px; padding: 13px; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); }
.status-panel[data-kind="success"] { background: var(--green-100); color: var(--green-600); }
.status-panel[data-kind="error"] { background: var(--red-100); color: var(--red-600); }
.status-panel strong, .status-panel p { display: block; }
.status-panel p { margin: 2px 0 0; color: var(--slate-700); font-size: .8rem; line-height: 1.45; }
.status-panel a { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 800; }
.spinner { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.process-strip { border-block: 1px solid var(--slate-200); background: white; }
.process-grid { min-height: 105px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 25px; }
.process-grid > div:not(.process-arrow) { display: flex; align-items: center; justify-content: center; gap: 11px; }
.process-grid span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--blue-700); background: var(--blue-100); font-size: .8rem; font-weight: 850; }
.process-grid p { margin: 0; color: var(--slate-700); font-size: .9rem; }
.process-grid strong { color: var(--navy-900); }
.process-arrow { color: var(--slate-300); font-size: 1.25rem; }

.content-section { padding: 90px 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(290px, .7fr); gap: clamp(50px, 9vw, 120px); align-items: start; }
.section-label { color: var(--blue-700); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.content-section h2, .faq-section h2, .legal-article h1 { margin: 9px 0 21px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; }
.content-section article > p { color: var(--slate-700); font-size: 1.02rem; }
.notice-box { display: flex; gap: 12px; margin-top: 26px; padding: 17px 18px; border-left: 4px solid var(--cyan-400); border-radius: 0 11px 11px 0; background: var(--slate-100); }
.notice-box svg { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: var(--blue-700); stroke-width: 2; stroke-linecap: round; }
.notice-box p { margin: 0; color: var(--slate-700); font-size: .88rem; }
.related-card { padding: 24px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fbfdff; }
.related-card h2 { margin: 0 0 12px; font-size: 1.05rem; letter-spacing: -.01em; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 2px; border-bottom: 1px solid var(--slate-200); text-decoration: none; }
.related-links a:last-child { border: 0; }
.related-links a > span:last-child { color: var(--blue-600); }
.related-links strong, .related-links small { display: block; }
.related-links strong { font-size: .9rem; }
.related-links small { color: var(--slate-500); font-size: .75rem; }

.guide-section { padding: 85px 0 90px; border-top: 1px solid var(--slate-200); background: #fbfdff; }
.guide-section > .container > h2 { max-width: 720px; margin: 9px 0 34px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.guide-grid article { padding: 25px; border: 1px solid var(--slate-200); border-radius: 15px; background: white; box-shadow: 0 10px 30px rgba(5,31,54,.05); }
.guide-grid h3 { margin: 0 0 13px; color: var(--navy-900); font-size: 1.08rem; line-height: 1.3; }
.guide-grid p { margin: 0 0 12px; color: var(--slate-700); font-size: .93rem; line-height: 1.65; }
.guide-grid p:last-child { margin-bottom: 0; }

.faq-section { padding: 80px 0 95px; background: var(--slate-100); }
.faq-wrap { max-width: 850px; }
.faq-list { margin-top: 30px; }
.faq-list details { border-bottom: 1px solid var(--slate-300); }
.faq-list summary { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 750; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--blue-600); font-size: 1.35rem; transition: transform .2s; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 750px; padding: 0 0 19px; margin: 0; color: var(--slate-700); }

.site-footer { padding: 50px 0 22px; color: #d8e5ef; background: var(--navy-950); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 34px; }
.footer-inner strong { color: white; font-size: 1.05rem; }
.footer-inner p { margin: 3px 0 0; color: #9fb3c4; font-size: .86rem; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-inner a { color: #bfd0dd; text-decoration: none; font-size: .86rem; }
.footer-inner a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #839caf; font-size: .74rem; }

.legal-main { padding: 75px 0 90px; background: var(--slate-100); }
.legal-article { max-width: 850px; padding: 50px; border: 1px solid var(--slate-200); border-radius: 20px; background: white; box-shadow: 0 15px 45px rgba(5,31,54,.07); }
.legal-article .updated { color: var(--slate-500); font-size: .86rem; }
.legal-article section { margin-top: 32px; }
.legal-article section h2 { margin-bottom: 8px; font-size: 1.15rem; }
.legal-article section p { margin: 0; color: var(--slate-700); }
.legal-article a { color: var(--blue-700); font-weight: 700; }
.about-lead { max-width: 720px; color: var(--slate-700); font-size: 1.08rem; }

@media (max-width: 820px) {
  .container { width: min(100% - 28px, 680px); }
  .desktop-nav > a { display: none; }
  .tools-menu summary { font-size: 0; }
  .tools-menu summary::before { content: "Ferramentas"; font-size: .86rem; }
  .tools-popover { right: -2px; width: min(310px, calc(100vw - 28px)); }
  .tool-hero { padding: 48px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; gap: 35px; }
  .hero-copy h1 { font-size: clamp(2.35rem, 11vw, 3.6rem); }
  .lead { font-size: 1rem; }
  .upload-card { padding: 20px; }
  .drop-zone { min-height: 190px; }
  .process-grid { grid-template-columns: 1fr; gap: 0; padding-block: 14px; }
  .process-grid > div:not(.process-arrow) { justify-content: flex-start; min-height: 48px; }
  .process-arrow { display: none; }
  .content-section { padding: 66px 0; }
  .content-grid { grid-template-columns: 1fr; gap: 45px; }
  .guide-section { padding: 64px 0 70px; }
  .guide-grid { grid-template-columns: 1fr; }
  .faq-section { padding: 64px 0 75px; }
  .footer-inner, .footer-bottom { flex-direction: column; }
  .footer-inner nav { gap: 16px; }
  .legal-main { padding: 35px 0 60px; }
  .legal-article { padding: 28px 22px; }
}

@media (max-width: 430px) {
  .site-header { height: 68px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: .98rem; }
  .brand small { font-size: .66rem; }
  .tools-menu summary::before { content: "Menu"; }
  .hero-copy h1 { font-size: 2.45rem; }
  .trust-list { display: grid; gap: 9px; }
  .upload-card { margin-inline: -2px; border-radius: 17px; }
  .footer-inner nav { display: grid; }
  .back-link { font-size: .78rem; }
}

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