@font-face { font-family:'DM Sans'; src:url('fonts/dmsans.ttf') format('truetype'); font-weight:100 1000; font-display:swap; }
:root { --ink:#17123D; --blue:#3A2BD9; --deep:#2A1DB0; --mist:#F3F2FD; --amber:#FFB52E; --muted:#5B577D; --line:#DEDBF3; --ok:#0B7A53; --err:#B3261E; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:#fff; color:var(--ink); font:1.0625rem/1.6 'DM Sans',system-ui,sans-serif; }
a { color:inherit; }
:focus-visible { outline:3px solid var(--amber); outline-offset:3px; }
.wrap { width:min(1160px,100% - 32px); margin-inline:auto; }
.skip { position:absolute; left:-9999px; } .skip:focus { left:16px; top:8px; z-index:5; background:#fff; padding:8px 14px; }
h1,h2,h3 { line-height:1.1; letter-spacing:-.02em; margin:0; text-wrap:balance; }
h1 { font-size:clamp(2.4rem,5.2vw,4rem); font-weight:800; letter-spacing:-.035em; line-height:1.03; }
h2 { font-size:clamp(1.8rem,3.5vw,2.5rem); font-weight:800; }
h3 { font-size:1.25rem; font-weight:700; }

.hero { background:var(--blue); color:#fff; padding-bottom:72px; }
.top { display:flex; align-items:center; gap:24px; padding:20px 0; }
.brand { display:flex; } .brand img { height:44px; width:auto; }
.menu { display:flex; gap:26px; margin-left:auto; }
.menu a { text-decoration:none; font-weight:500; } .menu a:hover { text-decoration:underline; text-underline-offset:6px; }
.langs { display:flex; background:var(--deep); border-radius:99px; padding:4px; }
.langs a { text-decoration:none; font-size:.875rem; font-weight:700; padding:3px 12px; border-radius:99px; }
.langs a[aria-current] { background:var(--amber); color:var(--ink); }

.stage { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; padding-top:48px; }
.stage > * { min-width:0; }
.lead { font-size:1.2rem; color:#E4E1FF; max-width:34em; }
.facts { list-style:none; padding:0; margin:32px 0 0; display:grid; gap:12px; }
.facts li { display:flex; gap:12px; align-items:center; }
.facts li::before { content:''; flex:none; width:12px; height:15px; background:var(--amber); clip-path:polygon(0 0,62% 0,100% 32%,100% 100%,0 100%); }

/* A folha com o canto dobrado: vira um pouco mais quando se arrasta um arquivo. */
#drop { position:relative; display:flex; flex-direction:column; align-items:center; gap:14px; padding:56px 24px 40px; text-align:center;
  color:var(--ink); background:#fff; border-radius:24px; cursor:pointer;
  clip-path:polygon(0 0,calc(100% - var(--f)) 0,100% var(--f),100% 100%,0 100%); --f:64px; transition:clip-path .25s; }
.fold { position:absolute; top:0; right:0; width:var(--f); height:var(--f); background:var(--amber); border-bottom-left-radius:16px;
  clip-path:polygon(0 0,100% 100%,0 100%); transition:width .25s,height .25s; }
#drop:hover, #drop.over { --f:92px; }
#drop.over { background:#FFF8EA; }
#drop::after { content:''; position:absolute; inset:14px; border:2px dashed var(--line); border-radius:16px; pointer-events:none; z-index:-1; }
#drop { isolation:isolate; } #drop.over::after { border-color:var(--amber); }
#drop:focus-within::after { border-color:var(--blue); border-style:solid; }
#drop strong { font-size:1.5rem; letter-spacing:-.02em; line-height:1.2; }
.button, #list button, #list .dl { display:inline-block; font:inherit; font-weight:700; border:0; border-radius:12px; padding:11px 22px;
  background:var(--blue); color:#fff; cursor:pointer; text-decoration:none; }
.button:hover, #list button:hover { background:var(--deep); }
.hint { color:var(--muted); font-size:.95rem; }
#file { position:absolute; opacity:0; width:1px; height:1px; }

#list { list-style:none; padding:0; margin:20px 0 0; display:grid; gap:12px; }
#list li { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px 14px; align-items:center; background:#fff; color:var(--ink); border-radius:16px; padding:14px; }
.ext { width:46px; height:54px; display:grid; place-items:end center; padding-bottom:7px; font-size:.7rem; font-weight:800; text-transform:uppercase;
  background:var(--mist); color:var(--blue); clip-path:polygon(0 0,68% 0,100% 28%,100% 100%,0 100%); border-radius:6px; overflow:hidden; }
.info { min-width:0; } .name { display:block; font-weight:700; overflow-wrap:anywhere; line-height:1.3; }
.status { display:block; font-size:.9rem; color:var(--muted); overflow-wrap:anywhere; }
.status.ok { color:var(--ok); font-weight:600; } .status.err { color:var(--err); font-weight:600; }
.remove { grid-column:3; grid-row:1; }
#list button.remove { background:transparent; color:var(--muted); padding:4px 10px; font-size:1.4rem; line-height:1; }
#list button.remove:hover { background:var(--mist); color:var(--ink); }
.actions { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; align-items:center; }
.actions label { margin-right:auto; display:flex; gap:10px; align-items:center; color:var(--muted); font-size:.95rem; }
select { font:inherit; font-weight:600; color:var(--ink); background:#fff; border:2px solid var(--line); border-radius:12px; padding:8px 12px; }
#list .dl { background:var(--amber); color:var(--ink); }
#list button:disabled { opacity:.45; cursor:default; }
progress { grid-column:1/-1; width:100%; height:6px; accent-color:var(--blue); }

.block { padding-block:88px; scroll-margin-top:16px; }
.block h2 { margin-bottom:36px; }
.formats { width:100%; border-collapse:collapse; text-align:left; }
.formats th, .formats td { padding:18px 16px 18px 0; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.formats thead th { color:var(--muted); font-weight:500; font-size:.95rem; border-bottom:2px solid var(--ink); }
.formats tbody th { font-size:1.2rem; width:24%; } .formats td:nth-child(2) { color:var(--muted); width:34%; } .formats td:last-child { font-weight:600; }
.band { background:var(--mist); }
.steps { list-style:none; counter-reset:s; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:40px; }
.steps li { counter-increment:s; border-top:3px solid var(--blue); padding-top:20px; }
.steps li::before { content:counter(s); display:block; font-size:3.5rem; font-weight:800; color:var(--blue); line-height:1; margin-bottom:14px; }
.steps p { color:var(--muted); margin:8px 0 0; }
.tips { margin-top:56px; background:#fff; border-left:6px solid var(--amber); border-radius:4px 18px 18px 4px; padding:28px 32px; }
.tips ul { margin:14px 0 0; padding-left:20px; columns:2; column-gap:48px; } .tips li { margin-bottom:10px; break-inside:avoid; } .tips li::marker { color:var(--blue); }
.faq { display:grid; grid-template-columns:1fr 1.6fr; gap:48px; align-items:start; }
details { border-bottom:1px solid var(--line); }
summary { display:flex; justify-content:space-between; gap:16px; cursor:pointer; font-weight:700; font-size:1.15rem; padding:20px 0; list-style:none; }
summary::-webkit-details-marker { display:none; }
summary::after { content:'+'; color:var(--blue); font-size:1.6rem; line-height:1; } details[open] summary::after { content:'−'; }
details p { margin:0 0 22px; color:var(--muted); }

footer { background:var(--ink); color:#fff; padding-top:64px; }
.cols { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.6fr; gap:40px; padding-bottom:48px; }
.cols img { height:44px; width:auto; }
.cols h2 { font-size:1rem; letter-spacing:0; margin-bottom:14px; color:var(--amber); }
.cols p { color:#C5C2E0; font-size:.95rem; }
.cols h2 + p { margin-top:0; }
.cols a { display:block; text-decoration:none; color:#E4E2F5; padding:3px 0; } .cols a:hover { text-decoration:underline; }
.legal { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; border-top:1px solid #38325F; padding-block:22px; font-size:.9rem; color:#C5C2E0; }

@media (max-width:900px) {
  .stage, .faq { grid-template-columns:minmax(0,1fr); gap:36px; }
  .steps { grid-template-columns:1fr; } .tips ul { columns:1; }
  .cols { grid-template-columns:1fr 1fr; }
}
@media (max-width:640px) {
  .menu { display:none; } .langs { margin-left:auto; } .brand img { height:36px; }
  .top { gap:12px; } .stage { padding-top:20px; } .block { padding-block:60px; }
  .formats thead { display:none; }
  .formats tr, .formats th, .formats td { display:block; width:auto !important; }
  .formats tr { border-bottom:1px solid var(--line); padding:16px 0; }
  .formats th, .formats td { border:0; padding:3px 0; }
  .formats td::before { content:attr(data-label) ': '; color:var(--muted); font-weight:500; }
  .tips { padding:22px; } .cols { grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { transition:none !important; } }

.about { padding-top:64px; } .about h2 { margin-bottom:16px; } .about p { max-width:44em; color:var(--muted); }
.about .crumbs { font-size:.9rem; margin:0 0 20px; }
.popular { padding-bottom:0; }
.popular ul { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:12px; }
.popular a { display:block; height:100%; text-decoration:none; font-weight:700; padding:16px 20px; background:var(--mist); border:2px solid transparent; border-radius:4px 18px 4px 4px; }
.popular a:hover, .popular a[aria-current] { border-color:var(--blue); }
