
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/font-311d352d93.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

  :root{
    --bg: #0E0F11;
    --surface: #1A1B1F;
    --surface-2: #202227;
    --border: #2C2E33;
    --border-soft: #232427;
    --text: #F3F1EC;
    --text-dim: #98948D;
    --text-faint: #605D58;
    --accent: #FF8A3D;
    --accent-hover: #FFA466;
    --accent-soft: rgba(255,138,61,0.12);
    --accent-dim: #7A4A2C;
    --danger: #C1543A;
    --ok: #7FA37A;
    --font-display: 'Montserrat Variable', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Montserrat Variable', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Mono', 'Consolas', 'Liberation Mono', monospace;
  }

  *{ box-sizing: border-box; }

  html, body{
    margin:0;
    padding:0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height:100vh;
  }

  body{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding: 64px 24px 48px;
  }

  @media (prefers-reduced-motion: reduce){
    *{ transition:none !important; animation:none !important; }
  }

  .stage{
    width:100%;
    max-width: 760px;
    display:flex;
    flex-direction:column;
    align-items:center;
  }

  /* ---------- Header / wordmark ---------- */
  .brand{
    text-align:center;
    margin-bottom: 56px;
  }
  .brand .brand-logo{
    height: 34px;
    width: auto;
    margin-bottom: 18px;
  }
  .brand p{
    color: var(--text-dim);
    font-size: 14.5px;
    letter-spacing: 0.01em;
    margin:0;
  }

  /* ---------- Nav / back ---------- */
  .topline{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom: 40px;
  }
  .back-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:none;
    border:none;
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing:0.02em;
    cursor:pointer;
    padding:6px 0;
  }
  .back-btn:hover{ color: var(--text); }
  .back-btn svg{ width:14px; height:14px; }
  .crumb{
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  /* ---------- View switching ---------- */
  .view{ display:none; width:100%; flex-direction:column; align-items:center; }
  .view.active{ display:flex; }

  /* ---------- Home: tool tiles ---------- */
  .home-label{
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 22px;
  }
  .tiles{
    width:100%;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  @media (max-width: 560px){
    .tiles{ grid-template-columns: 1fr; }
  }
  .tile{
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 32px 20px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:16px;
    cursor:pointer;
    transition: border-color .18s ease, transform .18s ease, background .18s ease;
  }
  .tile:hover:not(.disabled){
    border-color: var(--accent-dim);
    background: var(--surface-2);
    transform: translateY(-2px);
  }
  .tile:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
  .tile.disabled{
    cursor:not-allowed;
    opacity: 0.45;
  }
  .tile svg{ width:30px; height:30px; stroke: var(--accent); }
  .tile .tile-name{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.01em;
  }
  .tile .tile-tag{
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--border-soft);
    padding: 3px 8px;
  }
  .tile.disabled .tile-tag{ color: var(--text-faint); }
  .tile:not(.disabled) .tile-tag{ color: var(--accent); border-color: var(--accent-dim); }

  /* ---------- Dropzone ---------- */
  .dropzone{
    width:100%;
    border: 1px dashed var(--border);
    background: var(--surface);
    padding: 56px 24px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:18px;
    transition: border-color .15s ease, background .15s ease;
  }
  .dropzone.drag{
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .dropzone svg{ width:34px; height:34px; stroke: var(--text-dim); }
  .dropzone .dz-title{ font-size:15px; color: var(--text); }
  .dropzone .dz-sub{ font-size: 12.5px; color: var(--text-faint); }
  .file-input-btn{
    background: none;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 10px 22px;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: border-color .15s ease, color .15s ease;
  }
  .file-input-btn:hover{ border-color: var(--accent); color: var(--accent); }

  .unsupported{
    width:100%;
    margin-bottom: 22px;
    padding: 12px 16px;
    border-left: 2px solid var(--danger);
    background: var(--surface);
    font-size:12.5px;
    color: var(--danger);
    line-height:1.5;
    box-sizing: border-box;
  }

  /* ---------- File info card ---------- */
  .file-card{
    width:100%;
    border:1px solid var(--border);
    background: var(--surface);
    padding: 20px 24px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    margin-top: 22px;
  }
  .file-card .fc-name{
    font-size: 14px;
    color: var(--text);
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    max-width: 260px;
  }
  .file-card .fc-meta{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-faint);
    margin-top: 5px;
    letter-spacing: 0.02em;
  }
  .file-card .fc-remove{
    background:none;
    border:none;
    color: var(--text-faint);
    cursor:pointer;
    font-size: 12px;
    letter-spacing:0.04em;
    text-transform:uppercase;
    flex-shrink:0;
  }
  .file-card .fc-remove:hover{ color: var(--danger); }

  /* ---------- Quality selector ---------- */
  .section-label{
    align-self:flex-start;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 34px 0 14px;
  }
  .quality-options{
    width:100%;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  @media (max-width: 560px){
    .quality-options{ grid-template-columns: 1fr; }
  }
  .q-option{
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 18px 16px;
    cursor:pointer;
    transition: border-color .15s ease, background .15s ease;
  }
  .q-option:hover{ border-color: var(--accent-dim); }
  .q-option.selected{
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  .q-option .q-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:8px;
  }
  .q-option .q-name{ font-size: 14px; font-weight: 600; color: var(--text); }
  .q-radio{
    width:14px; height:14px;
    border-radius:50%;
    border: 1px solid var(--text-faint);
    flex-shrink:0;
    position:relative;
  }
  .q-option.selected .q-radio{ border-color: var(--accent); }
  .q-option.selected .q-radio::after{
    content:"";
    position:absolute;
    inset:3px;
    border-radius:50%;
    background: var(--accent);
  }
  .q-option .q-desc{
    font-size: 11.5px;
    color: var(--text-faint);
    line-height:1.5;
  }
  .q-option .q-estimate{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    letter-spacing: 0.02em;
  }
  .q-option.selected .q-estimate{ color: var(--accent); }

  /* ---------- Action button ---------- */
  .primary-btn{
    margin-top: 36px;
    width:100%;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 16px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
  }
  .primary-btn:hover{ background: var(--accent-hover); }
  .primary-btn:disabled{
    background: var(--surface-2);
    color: var(--text-faint);
    cursor:not-allowed;
  }
  .ghost-btn{
    margin-top: 18px;
    background:none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 13px 24px;
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.03em;
    cursor:pointer;
    width:100%;
    transition: border-color .15s ease, color .15s ease;
  }
  .ghost-btn:hover{ border-color: var(--accent); color: var(--accent); }

  /* ---------- Progress ---------- */
  .progress-wrap{
    width:100%;
    margin-top: 40px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap: 16px;
  }
  .progress-track{
    width:100%;
    height:2px;
    background: var(--border);
    position:relative;
    overflow:hidden;
  }
  .progress-fill{
    position:absolute;
    left:0; top:0; bottom:0;
    width:0%;
    background: var(--accent);
    transition: width .12s linear;
  }
  .progress-status{
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.03em;
  }

  /* ---------- Results / signature meter ---------- */
  .results{
    width:100%;
    margin-top: 8px;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .reduction-figure{
    font-family: var(--font-mono);
    font-size: clamp(56px, 12vw, 84px);
    font-weight: 500;
    color: var(--accent);
    line-height:1;
    margin: 18px 0 4px;
  }
  .reduction-figure sup{ font-size: 0.4em; margin-left: 2px; }
  .reduction-label{
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 30px;
  }
  .size-compare{
    width:100%;
    display:flex;
    align-items:center;
    gap: 18px;
    margin-bottom: 8px;
  }
  .size-block{ flex:1; text-align:center; }
  .size-block .size-tag{
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 6px;
  }
  .size-block .size-val{
    font-family: var(--font-mono);
    font-size: 20px;
    color: var(--text);
  }
  .size-block.after .size-val{ color: var(--ok); }
  .size-arrow{ color: var(--text-faint); font-size: 18px; }

  .meter-track{
    width:100%;
    height: 6px;
    background: var(--border);
    margin: 22px 0 36px;
    position:relative;
  }
  .meter-fill{
    position:absolute; left:0; top:0; bottom:0;
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    width:0%;
    transition: width .8s cubic-bezier(.2,.8,.2,1);
  }

  a.download-link{ width:100%; text-decoration:none; }

  .format-note{
    display:none;
    width:100%;
    border-left: 2px solid var(--accent-dim);
    background: var(--surface);
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-dim);
    line-height:1.5;
    margin-bottom: 22px;
  }

  .footer-note{
    margin-top: 64px;
    font-size: 11.5px;
    color: var(--text-faint);
    text-align:center;
    max-width: 420px;
    line-height:1.6;
  }
  .footer-note strong{ color: var(--text-dim); font-weight:500; }

  /* =====================================================================
     FERRAMENTAS DE PDF
     ===================================================================== */
  .home-label.home-label--tools{ margin-top: 56px; }

  .tool-tiles{
    width:100%;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  @media (max-width: 700px){ .tool-tiles{ grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 460px){ .tool-tiles{ grid-template-columns: 1fr; } }

  .tool-tile{
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 18px 18px 20px;
    display:flex;
    flex-direction:column;
    gap: 10px;
    cursor:pointer;
    text-align:left;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color .18s ease, background .18s ease;
  }
  .tool-tile:hover{ border-color: var(--accent-dim); background: var(--surface-2); }
  .tool-tile:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
  .tool-tile svg{ width:22px; height:22px; stroke: var(--accent); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
  .tool-tile .tt-name{ font-weight:600; font-size:14.5px; }
  .tool-tile .tt-desc{ font-size:12px; color: var(--text-dim); line-height:1.5; }

  /* ---------- Tool view ---------- */
  .tool-head{ width:100%; margin-bottom: 28px; }
  .tool-head h2{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
  }
  .tool-head p{ margin:0; color: var(--text-dim); font-size: 14px; line-height:1.55; max-width: 60ch; }

  .picker-hint{
    width:100%;
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.55;
  }

  .ws-toolbar{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 14px 18px;
  }
  .ws-summary{ min-width:0; }
  .ws-summary .ws-name{
    font-size: 14px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
    max-width: 420px;
  }
  .ws-summary .ws-meta{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
  .ws-actions{ display:flex; gap: 8px; flex-wrap:wrap; }

  .mini-btn{
    background:none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 12.5px;
    padding: 8px 14px;
    cursor:pointer;
    display:inline-flex; align-items:center; gap:7px;
    transition: border-color .15s ease, color .15s ease;
  }
  .mini-btn:hover{ border-color: var(--accent); color: var(--text); }
  .mini-btn svg{ width:14px; height:14px; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .mini-btn.danger:hover{ border-color: var(--danger); color: var(--danger); }

  .ws-hint{ width:100%; font-size: 12px; color: var(--text-faint); margin: 14px 0 0; line-height:1.5; }

  /* ---------- Page / file grid ---------- */
  .pg-grid{
    width:100%;
    display:grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 14px;
    margin-top: 18px;
  }
  .pg-grid.files{ grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .pg-item{
    position:relative;
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 10px 10px 8px;
    display:flex; flex-direction:column; gap:6px;
    user-select:none;
    transition: border-color .15s ease, opacity .15s ease;
  }
  .pg-item[draggable="true"]{ cursor: grab; }
  .pg-item.dragging{ opacity: .35; }
  .pg-item.drop-before{ box-shadow: -3px 0 0 0 var(--accent); }
  .pg-item.drop-after{ box-shadow: 3px 0 0 0 var(--accent); }
  .pg-item.selectable{ cursor:pointer; }
  .pg-item.selected{ border-color: var(--accent); background: var(--accent-soft); }
  .pg-item.dimmed .pg-thumb{ opacity: .35; }
  .pg-thumb{
    position:relative;
    aspect-ratio: 1 / 1.15;
    background: var(--bg);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .pg-paper{
    width: 88%; height: 88%;
    display:flex; align-items:center; justify-content:center;
    transition: transform .25s ease;
  }
  .pg-paper img{ max-width:100%; max-height:100%; object-fit:contain; display:block; box-shadow: 0 1px 0 rgba(0,0,0,.4); }
  .pg-loading{ width: 60%; height: 78%; background: var(--surface-2); }
  .pg-index{
    position:absolute; left:6px; top:6px;
    font-family: var(--font-mono); font-size: 10.5px;
    background: rgba(14,15,17,.85); color: var(--text);
    padding: 2px 6px;
  }
  .pg-check{
    position:absolute; right:6px; top:6px;
    width:18px; height:18px;
    border:1px solid var(--text-faint);
    background: rgba(14,15,17,.85);
    display:none; align-items:center; justify-content:center;
  }
  .pg-item.selectable .pg-check{ display:flex; }
  .pg-item.selected .pg-check{ background: var(--accent); border-color: var(--accent); }
  .pg-item.selected .pg-check::after{ content:""; width:8px; height:4px; border-left:2px solid var(--bg); border-bottom:2px solid var(--bg); transform: rotate(-45deg) translate(1px,-1px); }
  .pg-label{ font-size: 12px; color: var(--text); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .pg-sub{ font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); margin-top:-3px; }
  .pg-actions{ display:flex; gap:4px; justify-content:flex-start; }
  .pg-actions button{
    background:none; border:1px solid var(--border-soft); color: var(--text-dim);
    width:28px; height:26px; padding:0; cursor:pointer;
    display:inline-flex; align-items:center; justify-content:center;
  }
  .pg-actions button:hover{ border-color: var(--accent-dim); color: var(--text); }
  .pg-actions button[data-act="remove"]:hover{ border-color: var(--danger); color: var(--danger); }
  .pg-actions button:disabled{ opacity:.3; cursor:default; }
  .pg-actions svg{ width:13px; height:13px; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .pg-actions .spacer{ flex:1; }

  .pg-zoom{
    position:absolute; right:6px; bottom:6px;
    width:28px; height:28px; padding:0;
    background: rgba(14,15,17,.85); border:1px solid var(--border); color: var(--text);
    display:flex; align-items:center; justify-content:center;
    cursor: zoom-in; opacity:0; transition: opacity .15s ease, border-color .15s ease;
  }
  .pg-zoom svg{ width:14px; height:14px; stroke: currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .pg-item:hover .pg-zoom, .pg-zoom:focus-visible{ opacity:1; }
  .pg-zoom:hover{ border-color: var(--accent); }
  .pg-zoom:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }
  @media (hover: none){ .pg-zoom{ opacity:1; } }
  .pg-item.zoomable .pg-thumb{ cursor: zoom-in; }

  /* ---------- Lightbox (ampliar página) ---------- */
  .lightbox{
    position:fixed; inset:0; z-index: 50;
    background: rgba(8,8,10,.92);
    display:none; flex-direction:column;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
  }
  .lightbox.open{ display:flex; }
  .lb-bar{
    display:flex; align-items:center; justify-content:space-between; gap: 12px;
    padding: 14px 20px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border-soft);
  }
  .lb-title{ font-size: 14px; color: var(--text); }
  .lb-title small{ display:block; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 3px; }
  .lb-actions{ display:flex; gap: 8px; flex-wrap:wrap; }
  .lb-stage{ flex:1; min-height:0; display:flex; align-items:center; justify-content:center; position:relative; padding: 18px 64px; }
  .lb-frame{ position:relative; }
  .lb-frame img{
    position:absolute; left:50%; top:50%;
    background:#fff; box-shadow: 0 6px 40px rgba(0,0,0,.6);
    transition: transform .25s ease;
  }
  .lb-loading{ position:absolute; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
  .lb-nav{
    position:absolute; top:50%; transform: translateY(-50%);
    width:44px; height:64px; background: var(--surface); border:1px solid var(--border);
    color: var(--text); cursor:pointer; display:flex; align-items:center; justify-content:center;
  }
  .lb-nav:hover:not(:disabled){ border-color: var(--accent); }
  .lb-nav:disabled{ opacity:.25; cursor:default; }
  .lb-nav svg{ width:18px; height:18px; stroke: currentColor; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .lb-nav.prev{ left: 12px; } .lb-nav.next{ right: 12px; }
  .lb-nav:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (max-width: 560px){
    .lb-stage{ padding: 12px 12px 76px; }
    .lb-nav{ top:auto; bottom: 12px; transform:none; height:48px; }
  }

  /* ---------- Options ---------- */
  .opts{ width:100%; display:flex; flex-direction:column; gap: 20px; }
  .opt{ display:flex; flex-direction:column; gap: 9px; }
  .opt[hidden]{ display:none; }
  .opt-label{ font-size: 13px; color: var(--text-dim); display:flex; justify-content:space-between; gap: 10px; }
  .opt-label .opt-val{ font-family: var(--font-mono); font-size: 12px; color: var(--text); }
  .opt-hint{ font-size: 11.5px; color: var(--text-faint); line-height:1.5; }
  .opt-error{ font-size: 12px; color: var(--danger); }
  .seg{ display:flex; flex-wrap:wrap; gap: 6px; }
  .seg button{
    flex: 1 1 0;
    min-width: max-content;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 10px 14px;
    cursor:pointer;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
  }
  .seg button:hover{ border-color: var(--accent-dim); color: var(--text); }
  .seg button[aria-pressed="true"]{ border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
  .seg button:focus-visible, .mini-btn:focus-visible, .pg-actions button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
  .seg.swatches button{ flex: 0 0 auto; display:inline-flex; align-items:center; gap:8px; }
  .seg.swatches i{ width:12px; height:12px; display:inline-block; border:1px solid rgba(255,255,255,.25); }

  .pos-grid{ display:grid; grid-template-columns: repeat(3, 44px); grid-template-rows: 30px 30px; gap: 4px; padding: 8px; border:1px solid var(--border); background: var(--surface); width:max-content; }
  .pos-grid button{ background: var(--surface-2); border:1px solid var(--border-soft); cursor:pointer; position:relative; padding:0; }
  .pos-grid button:hover{ border-color: var(--accent-dim); }
  .pos-grid button[aria-pressed="true"]{ border-color: var(--accent); background: var(--accent-soft); }
  .pos-grid button[aria-pressed="true"]::after{ content:""; position:absolute; left:50%; top:50%; width:10px; height:2px; background: var(--accent); transform: translate(-50%,-50%); }
  .pos-grid button:focus-visible{ outline: 2px solid var(--accent); outline-offset: 1px; }

  .txt-input{
    width:100%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 11px 14px;
    outline:none;
  }
  .txt-input:focus{ border-color: var(--accent); }
  .txt-input.small{ width: 110px; }
  input[type="range"].rng{ width:100%; accent-color: var(--accent); }
  .chk{ display:flex; align-items:center; gap:10px; font-size: 13px; color: var(--text-dim); cursor:pointer; }
  .chk input{ width:16px; height:16px; accent-color: var(--accent); margin:0; }

  /* ---------- Preview ---------- */
  .preview-wrap{ width:100%; display:flex; flex-direction:column; align-items:center; gap: 10px; }
  .preview-box{
    position:relative;
    width:100%;
    min-height: 220px;
    background: var(--bg);
    border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    padding: 18px;
  }
  .preview-box canvas{ max-width:100%; max-height: 460px; width:auto; height:auto; display:block; box-shadow: 0 2px 14px rgba(0,0,0,.45); }
  .preview-caption{ font-size: 11.5px; color: var(--text-faint); }

  /* ---------- Signature ---------- */
  .sig-pad-wrap{ width:100%; border:1px solid var(--border); background: #FBFAF7; position:relative; }
  .sig-pad{ width:100%; height: 190px; display:block; touch-action:none; cursor: crosshair; }
  .sig-baseline{ position:absolute; left:8%; right:8%; bottom: 46px; border-bottom:1px solid #D8D4CC; pointer-events:none; }
  .sig-pad-tip{ position:absolute; left:8%; bottom: 24px; font-size: 11px; color:#A29E96; pointer-events:none; }
  .sig-stage{ position:relative; display:inline-block; line-height:0; touch-action:none; }
  .sig-stage canvas{ max-width:100%; max-height:none; box-shadow: 0 2px 14px rgba(0,0,0,.45); }
  .sig-overlay{
    position:absolute;
    outline: 1px dashed rgba(60,110,220,.9);
    cursor: move;
    touch-action:none;
  }
  .sig-overlay img{ width:100%; height:100%; display:block; pointer-events:none; }
  .sig-pager{ display:flex; align-items:center; gap: 12px; font-size: 12.5px; color: var(--text-dim); }

  /* ---------- Results ---------- */
  .done-mark{
    width: 54px; height:54px;
    border:1px solid var(--accent-dim);
    display:flex; align-items:center; justify-content:center;
    margin: 18px 0 20px;
  }
  .done-mark svg{ width:26px; height:26px; stroke: var(--ok); fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .done-title{ font-family: var(--font-display); font-size: 24px; font-weight:600; margin: 0 0 8px; text-align:center; }
  .done-detail{ font-size: 13.5px; color: var(--text-dim); text-align:center; line-height:1.55; }
  a.primary-btn{ display:block; text-align:center; text-decoration:none; }
  .out-list{ width:100%; margin-top: 18px; border:1px solid var(--border); background: var(--surface); }
  .out-list summary{ cursor:pointer; padding: 12px 16px; font-size: 13px; color: var(--text-dim); }
  .out-list summary:hover{ color: var(--text); }
  .out-list ul{ list-style:none; margin:0; padding: 0 0 6px; max-height: 260px; overflow:auto; }
  .out-list li{ display:flex; justify-content:space-between; gap: 12px; padding: 8px 16px; border-top:1px solid var(--border-soft); font-size: 12.5px; }
  .out-list li span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color: var(--text); }
  .out-list li a{ color: var(--accent); text-decoration:none; flex-shrink:0; font-family: var(--font-mono); font-size: 11.5px; }
  .out-list li a:hover{ text-decoration: underline; }

  @media (max-width: 560px){
    body{ padding: 40px 16px 40px; }
    .tool-head h2{ font-size: 22px; }
    .pg-grid{ grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
  }

  /* =====================================================================
     MENUS (tipo -> ferramentas)
     ===================================================================== */
  .cat-tiles{ width:100%; display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  @media (max-width: 680px){ .cat-tiles{ grid-template-columns: repeat(2, 1fr); } }
  .cat-tile{ font-family: var(--font-body); color: var(--text); padding: 34px 16px 28px; }
  .cat-tile svg{ fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
  .cat-count{ font-size: 12px; color: var(--text-dim); }
  .tool-tiles + .footer-note, .cat-tiles + .footer-note{ margin-top: 56px; }

  /* ---------- Recorte ---------- */
  .crop-wrap{ width:100%; display:flex; justify-content:center; background: var(--bg); border:1px solid var(--border); padding: 18px; }
  .crop-stage{ position:relative; display:inline-block; line-height:0; overflow:hidden; touch-action:none; user-select:none; }
  .crop-stage img{ max-width:100%; max-height: 520px; display:block; pointer-events:none; }
  .crop-box{ position:absolute; box-shadow: 0 0 0 9999px rgba(8,8,10,.62); outline: 1px solid rgba(255,255,255,.9); cursor: move; }
  .crop-grid{ position:absolute; inset:0; pointer-events:none;
    background-image: linear-gradient(to right, rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.35) 1px, transparent 1px);
    background-size: 33.333% 33.333%; background-position: -1px -1px; }
  .crop-h{ position:absolute; width:16px; height:16px; background: var(--accent); border:2px solid var(--bg); }
  .crop-h[data-h="nw"]{ left:-8px; top:-8px; cursor:nwse-resize; }
  .crop-h[data-h="ne"]{ right:-8px; top:-8px; cursor:nesw-resize; }
  .crop-h[data-h="sw"]{ left:-8px; bottom:-8px; cursor:nesw-resize; }
  .crop-h[data-h="se"]{ right:-8px; bottom:-8px; cursor:nwse-resize; }
  @media (hover: none){ .crop-h{ width:24px; height:24px; } .crop-h[data-h="nw"]{ left:-12px; top:-12px; } .crop-h[data-h="ne"]{ right:-12px; top:-12px; } .crop-h[data-h="sw"]{ left:-12px; bottom:-12px; } .crop-h[data-h="se"]{ right:-12px; bottom:-12px; } }
  .crop-info{ width:100%; margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }

  /* ---------- Ajustes ---------- */
  .adj-box canvas{ max-height: 520px; }
  .adj-bar{ width:100%; justify-content:flex-start; }
  #tool-custom > .preview-wrap{ margin-top: 18px; }
  #adj-compare{ user-select:none; touch-action:none; }

  /* ---------- Vídeo ---------- */
  .vid-box{ padding: 0; background:#000; }
  .vid-box video{ width:100%; max-height: 460px; display:block; background:#000; }
  .tl{ position:relative; width:100%; height: 44px; margin-top: 6px; cursor:pointer; touch-action:none; }
  .tl-track{ position:absolute; left:0; right:0; top:16px; height:12px; background: var(--surface-2); border:1px solid var(--border); }
  .tl-range{ position:absolute; top:16px; height:12px; background: var(--accent-soft); border-top:1px solid var(--accent); border-bottom:1px solid var(--accent); }
  .tl-head{ position:absolute; top:8px; width:2px; height:28px; background: var(--ok); transform: translateX(-1px); pointer-events:none; }
  .tl-handle{ position:absolute; top:6px; width:14px; height:32px; margin-left:-7px; background: var(--accent); border:2px solid var(--bg); cursor: ew-resize; padding:0; }
  .tl-handle:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
  .tl-fields{ width:100%; display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  @media (max-width: 560px){ .tl-fields{ grid-template-columns: 1fr; } }
  .tl-row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
  .tl-row .txt-input.small{ width: 120px; font-family: var(--font-mono); font-size: 13px; }
  .tl-summary{ width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; font-size: 13px; color: var(--text-dim); }
  .va-canvas{ max-height: 520px !important; }
  .va-controls{ width:100%; display:flex; align-items:center; gap: 12px; }
  .va-controls .rng{ flex:1; }
  .va-time{ font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); min-width: 64px; text-align:right; }
  .va-controls .mini-btn svg{ fill: currentColor; stroke:none; }

  /* ---------- QR code ---------- */
  .qr-panel{ width:100%; display:grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 24px; align-items:start; margin-bottom: 32px; }
  @media (max-width: 620px){ .qr-panel{ grid-template-columns: 1fr; } }
  .qr-preview{ position:relative; aspect-ratio: 1 / 1; border:1px solid var(--border);
    background-color:#fff; background-image: linear-gradient(45deg, #eee 25%, transparent 25%), linear-gradient(-45deg, #eee 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #eee 75%), linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    display:flex; align-items:center; justify-content:center; }
  .qr-preview canvas{ width:100%; height:100%; display:block; image-rendering: auto; }
  .qr-empty{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; padding: 24px; font-size: 13px; color:#6B6760; background:#FBFAF7; }
  .qr-side{ display:flex; flex-direction:column; gap: 10px; }
  .qr-side .ghost-btn{ margin-top:0; }
  .qr-content{ font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); line-height:1.5; word-break: break-all; white-space: pre-wrap; margin-top: 4px; }
  .is-disabled{ opacity: .35; pointer-events:none; }
  .utm-box{ border:1px solid var(--border); background: var(--surface); padding: 18px; display:flex; flex-direction:column; gap: 16px; margin-top: -6px; }
  .utm-box[hidden]{ display:none; }
  .utm-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  @media (max-width: 560px){ .utm-grid{ grid-template-columns: 1fr; } }
  .utm-box .opt-label{ display:block; }
  .utm-box .opt-label code{ font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-left: 4px; }
  .qr-warn{ font-size: 12px; line-height: 1.5; color: #E0B04A; border-left: 2px solid #E0B04A; padding-left: 10px; }
  .ghost-btn:disabled{ opacity:.35; cursor:default; }
  textarea.txt-input{ resize: vertical; min-height: 76px; line-height:1.5; }
  input.clr{ width: 34px; height: 26px; padding:0; border:1px solid var(--border); background:none; cursor:pointer; }

  /* ---------- SEO: títulos e links ---------- */
  .home-h1{ font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; text-align:center; margin: 0 0 10px; line-height:1.3; }
  .tool-head h1{ font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.01em; margin: 0 0 8px; }
  @media (max-width: 560px){ .tool-head h1{ font-size: 22px; } .home-h1{ font-size: 20px; } }
  a.tile, a.tool-tile{ text-decoration:none; color: inherit; }
  a.tile:focus-visible, a.tool-tile:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
  .site-nav{ width:100%; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border-soft); display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
  @media (max-width: 680px){ .site-nav{ grid-template-columns: repeat(2, 1fr); } }
  .site-nav h2{ font-family: var(--font-body); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin: 0 0 10px; }
  .site-nav h2 a{ color: inherit; text-decoration:none; }
  .site-nav ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap: 7px; }
  .site-nav li a{ font-size: 12.5px; color: var(--text-dim); text-decoration:none; }
  .site-nav a:hover{ color: var(--text); text-decoration: underline; }
  .noscript-note{ width:100%; border:1px solid var(--border); background: var(--surface); padding: 16px 18px; margin-bottom: 24px; font-size: 14px; color: var(--text-dim); text-align:center; }

  /* =====================================================================
     CELULAR E TOQUE
     ===================================================================== */
  html{ -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  button, a, input, label, .pg-item, .dropzone{ touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
  .dropzone{ cursor: pointer; }
  @media (max-width: 560px){
    body{ padding: max(22px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
    .brand{ margin-bottom: 30px; }
    .brand .brand-logo{ height: 28px; margin-bottom: 10px; }
    .brand p{ font-size: 13px; }
    .topline{ margin-bottom: 22px; }
    .tool-head{ margin-bottom: 20px; }
    .home-label.home-label--tools{ margin-top: 36px; }
    .dropzone{ padding-top: 34px; padding-bottom: 34px; }
    .ws-toolbar{ padding: 12px 14px; }
    .ws-summary{ flex: 1 1 100%; }
    .ws-summary .ws-name{ max-width: 100%; }
    .pg-grid, .pg-grid.files{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .seg button{ padding: 11px 10px; }
    .qr-preview{ width: 100%; max-width: 260px; margin: 0 auto; }
    .done-title{ font-size: 21px; }
    .site-nav{ margin-top: 44px; }
    .preview-box{ padding: 10px; }
    .crop-wrap{ padding: 10px; }
    .crop-stage img{ max-height: 62vh; }
    .adj-box canvas, .va-canvas{ max-height: 62vh !important; }
    .vid-box video{ max-height: 56vh; }
  }
  /* campos com 16px evitam o zoom automático do iPhone ao tocar */
  @media (max-width: 560px), (hover: none){
    .txt-input, textarea.txt-input, input[type="number"].txt-input{ font-size: 16px; }
  }
  /* alvos de toque maiores em telas sem mouse */
  @media (hover: none){
    .pg-actions{ gap: 6px; }
    .pg-actions button{ width: 38px; height: 36px; }
    .pg-actions svg{ width: 16px; height: 16px; }
    .pg-zoom{ width: 36px; height: 36px; }
    .mini-btn{ min-height: 42px; padding: 10px 14px; }
    .seg button{ min-height: 44px; }
    .tl{ height: 52px; }
    .tl-track, .tl-range{ top: 20px; }
    .tl-head{ top: 10px; height: 32px; }
    .tl-handle{ width: 24px; margin-left: -12px; height: 44px; top: 4px; }
    input[type="range"].rng{ height: 30px; }
    .pos-grid{ grid-template-columns: repeat(3, 56px); grid-template-rows: 40px 40px; }
    .lb-actions .mini-btn{ min-height: 40px; }
    .pg-item, .pg-item img, .crop-stage, .sig-overlay{ -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
    .tile:hover:not(.disabled), .tool-tile:hover{ background: var(--surface); }
  }
  /* reordenar com o dedo */
  .pg-item.touch-dragging{ opacity: .3; }
  .drag-ghost{ position: fixed; z-index: 70; pointer-events: none; opacity: .92; transform: scale(1.06); box-shadow: 0 10px 30px rgba(0,0,0,.55); border-color: var(--accent) !important; }
  .share-btn[hidden]{ display:none; }

  /* ---------- Marca Ajeita ---------- */
  .brand-lockup{ display:inline-flex; align-items:center; gap:12px; text-decoration:none; color: var(--text); margin-bottom: 16px; border-radius: 12px; }
  .brand-lockup:focus-visible{ outline: 2px solid var(--accent); outline-offset: 6px; }
  .brand-sym{ width:42px; height:42px; display:block; overflow:visible; }
  .bs-box{ fill: var(--accent); transform-box: fill-box; transform-origin: center; }
  .bs-check{ fill:none; stroke: var(--bg); stroke-width:7; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray: 42; stroke-dashoffset: 0; }
  .brand-word{ font-family: var(--font-display); font-weight: 800; font-size: 38px; letter-spacing: -0.04em; line-height: 1; position: relative; top: -2px; }
  .brand .brand-tag{ font-size: 14.5px; color: var(--text-dim); }
  .bs-box{ animation: ajBox .55s cubic-bezier(.34,1.56,.64,1) both; }
  .bs-check{ animation: ajCheck .4s .35s cubic-bezier(.65,0,.35,1) both; }
  .brand-word{ animation: ajWord .55s .5s cubic-bezier(.2,.8,.2,1) both; }
  .brand .brand-tag{ animation: ajFade .6s .8s ease both; }
  @keyframes ajBox{ from{ transform: scale(.35) rotate(-14deg); opacity:0; } }
  @keyframes ajCheck{ from{ stroke-dashoffset: 42; } }
  @keyframes ajWord{ from{ opacity:0; transform: translateX(-12px); } }
  @keyframes ajFade{ from{ opacity:0; } }
  @media (max-width: 560px){ .brand-sym{ width:34px; height:34px; } .brand-word{ font-size: 30px; } }

  /* ---------- Garantias na página inicial ---------- */
  .trust{ list-style:none; margin: 44px 0 0; padding: 0; display:flex; flex-wrap:wrap; justify-content:center; gap: 10px 26px; }
  .trust li{ display:flex; align-items:center; gap: 8px; font-size: 13px; color: var(--text-dim); }
  .trust svg{ width:16px; height:16px; flex: none; fill:none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- Rótulos sem caixa-alta ---------- */
  .crumb{ font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
  .section-label{ font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
  .size-block .size-tag{ font-size: 12px; letter-spacing: 0; text-transform: none; }
  .site-nav h2{ font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
  .reduction-figure{ font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .cat-tile svg{ stroke: var(--accent); }
  .q-option:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
  .reduction-label{ text-transform: none; letter-spacing: 0; font-size: 13px; }
  .primary-btn{ text-transform: none; letter-spacing: 0.01em; font-weight: 700; }

  /* ---------- Interação: busca, arquivo solto, transições ---------- */
  .sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
  .finder{ width:100%; max-width: 560px; margin: 18px 0 34px; display:flex; flex-direction:column; align-items:center; gap: 12px; }
  .finder-box{ width:100%; display:flex; align-items:center; gap: 12px; padding: 0 18px; min-height: 56px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease; }
  .finder-box:focus-within{ border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .finder-box svg{ width:20px; height:20px; flex:none; fill:none; stroke: var(--text-dim); stroke-width:2; stroke-linecap:round; }
  .finder-box:focus-within svg{ stroke: var(--accent); }
  #finder-input{ flex:1; min-width:0; background:none; border:0; outline:0; color: var(--text); font: 500 16px/1.2 var(--font-body); padding: 16px 0; }
  #finder-input::placeholder{ color: var(--text-faint); }
  #finder-input::-webkit-search-cancel-button{ filter: invert(1) opacity(.5); }
  .finder-pick{ background:none; border:0; color: var(--text-dim); font: 500 13px var(--font-body); cursor:pointer; padding: 8px 4px; text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; }
  .finder-pick:hover{ color: var(--accent); text-decoration-color: var(--accent); }
  .finder-pick:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
  .finder-panel{ width: calc(100vw - 48px); max-width: 760px; margin-top: 6px; }
  .finder-panel.pop{ animation: ajPanel .28s cubic-bezier(.2,.8,.2,1) both; }
  .finder-title{ font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 4px 0 14px; text-align:center; overflow-wrap:anywhere; }
  .finder-note{ font-size: 13.5px; color: var(--text-dim); text-align:center; padding: 6px 0; }
  .finder-tiles .tool-tile{ animation: ajPanel .3s cubic-bezier(.2,.8,.2,1) both; }
  .finder-tiles .tool-tile:nth-child(2){ animation-delay: .03s } .finder-tiles .tool-tile:nth-child(3){ animation-delay: .06s }
  .finder-tiles .tool-tile:nth-child(4){ animation-delay: .09s } .finder-tiles .tool-tile:nth-child(5){ animation-delay: .12s }
  .finder-tiles .tool-tile:nth-child(n+6){ animation-delay: .15s }
  @keyframes ajPanel{ from{ opacity:0; transform: translateY(8px); } }

  .drop-overlay{ position: fixed; inset: 0; z-index: 90; display:flex; align-items:center; justify-content:center; padding: 24px;
    background: rgba(14,15,17,.82); backdrop-filter: blur(4px); opacity:0; pointer-events:none; transition: opacity .15s ease; }
  .drop-overlay.show{ opacity:1; }
  .drop-overlay-inner{ width: min(640px, 100%); aspect-ratio: 16/9; border: 2px dashed var(--accent); border-radius: 22px;
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 18px; text-align:center; padding: 24px;
    font: 700 20px/1.3 var(--font-display); color: var(--text); background: var(--accent-soft); }
  .drop-overlay-inner svg{ width:44px; height:44px; fill:none; stroke: var(--accent); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
  .drop-overlay.show .drop-overlay-inner svg{ animation: ajBob .9s ease-in-out infinite; }
  @keyframes ajBob{ 50%{ transform: translateY(5px); } }

  .view.active{ animation: ajView .28s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes ajView{ from{ opacity:0; transform: translateY(6px); } }

  .cat-tile, .tool-tile{ border-radius: 14px; }
  .cat-tile svg, .tool-tile svg{ transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
  .cat-tile:hover, .tool-tile:hover{ border-color: var(--accent-dim); }
  .cat-tile:hover svg{ transform: translateY(-3px) scale(1.08); }
  .tool-tile:hover svg{ transform: scale(1.12); }
  .cat-tile:active, .tool-tile:active{ transform: scale(.98); }

  .dropzone{ border-radius: 16px; }
  .dropzone svg{ transition: transform .2s ease; }
  .dropzone:hover{ border-color: var(--accent-dim); }
  .dropzone.drag{ border-style: solid; }
  .dropzone.drag svg{ stroke: var(--accent); animation: ajBob .9s ease-in-out infinite; }
  .file-input-btn, .ghost-btn, .mini-btn, .q-option, .file-card, .primary-btn{ border-radius: 10px; }
  .primary-btn{ transition: background .15s ease, transform .1s ease; }
  .primary-btn:active{ transform: scale(.985); }

  .done-mark{ border-radius: 50%; border-color: var(--accent-dim); }
  .done-mark svg path{ stroke-dasharray: 24; animation: ajDraw .45s .1s cubic-bezier(.65,0,.35,1) both; }
  .done-mark{ animation: ajPop .35s cubic-bezier(.34,1.56,.64,1) both; }
  @keyframes ajDraw{ from{ stroke-dashoffset: 24; } }
  @keyframes ajPop{ from{ transform: scale(.6); opacity:0; } }
  @media (max-width: 560px){ .finder{ margin: 12px 0 26px; } .drop-overlay-inner{ font-size: 17px; } }

  /* ---------- Página inicial mais limpa ---------- */
  .brand{ margin-bottom: 40px; }
  .brand-lockup{ margin-bottom: 10px; }
  .brand-lockup:focus-visible{ outline: 1.5px solid var(--accent-dim); outline-offset: 8px; }
  .brand .brand-tag{ font-size: 13px; color: var(--text-faint); }
  body:has(#view-home.active) .brand .brand-tag{ display:none; }
  body:has(#view-home.active) .brand{ margin-bottom: 28px; }
  .home-h1{ font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; max-width: 30ch; text-wrap: balance; }
  .finder{ margin: 22px 0 48px; gap: 10px; }
  .finder-pick{ font-size: 12px; color: var(--text-faint); text-decoration-color: transparent; }
  .finder-pick:hover{ color: var(--text-dim); }
  .cat-tiles{ gap: 12px; }
  .cat-tile{ padding: 22px 14px 20px; gap: 10px; }
  .cat-tile svg{ width: 26px; height: 26px; }
  .cat-tile .tile-name{ font-size: 15px; }
  .cat-count{ font-size: 11.5px; color: var(--text-faint); }
  .trust{ margin-top: 36px; gap: 6px 22px; }
  .trust li{ font-size: 12px; color: var(--text-faint); gap: 6px; }
  .trust svg{ width: 13px; height: 13px; }
  .site-nav{ margin-top: 80px; padding-top: 32px; gap: 18px; opacity: .85; }
  .site-nav h2{ font-size: 12px; color: var(--text-faint); font-weight: 600; margin-bottom: 8px; }
  .site-nav ul{ gap: 5px; }
  .site-nav li a{ font-size: 12px; color: var(--text-faint); }
  .site-nav a:hover{ color: var(--text-dim); }
  @media (max-width: 560px){ .home-h1{ font-size: 21px; } .finder{ margin: 16px 0 32px; } .cat-tile{ padding: 18px 12px 16px; } }
