/* PDF in Seconds — tool-page template styles (v3 rebuild).
   Loaded AFTER main.css on tool pages only. v3: #F5F5FA page, centred 42px/600
   H1 30px below the 60px header, 22px subheading, 330x80px solid-teal main
   button (24px/500, radius 12, shadow) with two 36px teal cloud circles
   stacked 12px to its right, 14px drop line. Pre-upload the page shows only
   H1 + subheading + button + drop line: options panels and the action row
   stay hidden until a file (or pasted text) is present, when tools-ui.js
   adds .has-file to .tool-area. */

.tool-page{background:#F5F5FA}
body.tool-page{padding-bottom:44px}
.tool-page .tool-area{background:#F5F5FA;padding-top:0;padding-bottom:72px}
.tool-page .tool-area section:nth-of-type(2) .container{max-width:960px}

/* Hero: H1 30px below the fixed 60px header; button top ~212px on desktop. */
.tool-page .tool-hero{padding:30px 20px 0}
.tool-page .tool-hero h1{font-size:42px;font-weight:600;color:#33333B;letter-spacing:0;line-height:52px;margin:0}
.tool-page .tool-hero h2{font-size:22px;font-weight:400;color:#47474F;max-width:1200px;margin:8px auto 0;line-height:32px}

/* Dropzone: plain surface, no box, no icon. */
.tool-page .dropzone{background:transparent;border:0;min-height:0;padding:30px 20px 0;gap:12px}
.tool-page .dropzone.drag-over{background:#DCE9ED;border-radius:16px}

/* Main button + stacked cloud circles. Button 330x80, 24px/500, radius 12,
   shadow; circles 36x36, 12px right of the button, 6px vertical gap. */
.tool-page .choose-row{gap:6px 12px}
.tool-page .choose-row .btn{width:330px;max-width:calc(100vw - 150px);height:80px;border-radius:12px;font-size:24px;font-weight:500;padding:24px 48px;box-shadow:0 3px 6px rgba(0,0,0,.14);display:inline-flex;align-items:center;justify-content:center}
.tool-page .cloud-stack{grid-row:1 / span 2;display:flex;flex-direction:column;gap:6px}
.tool-page .cloud-btn{width:36px;height:36px;box-shadow:0 3px 6px rgba(0,0,0,.14)}
.tool-page .cloud-btn svg{width:18px;height:18px}

/* Drop line + status notes. */
.tool-page .dz-note.drop-line{font-size:14px;color:#47474F;line-height:20px}
.tool-page #empty-state{display:none!important}
.tool-page .file-list:empty{display:none}
.tool-page .file-list{margin:28px 0 0}

/* Pre-upload: options panels and the action row are hidden. */
.tool-page .tool-area:not(.has-file) .tool-options{display:none!important}
.tool-page .tool-area:not(.has-file) .tool-actions{display:none!important}
.tool-page .tool-options{margin-top:28px}

/* Post-upload blocks keep their own layout; the wrapper is neutral. */
.tool-page .tool-actions{margin:28px 0 24px}
.tool-page .result-box{margin-bottom:32px}

/* Scan to PDF: two cards side by side. */
.tool-page .scan-cards{display:grid;grid-template-columns:1fr 1fr;gap:24px;max-width:960px;margin:8px auto 0}
.tool-page .scan-card{background:#fff;border-radius:16px;box-shadow:0 8px 30px rgba(11,43,75,.10);padding:32px 28px;text-align:center}
.tool-page .scan-card h3{font-size:1.25rem;font-weight:700;color:#0B2B4B;margin:0 0 16px}
.tool-page .scan-card img{width:200px;height:200px;margin:0 auto 16px}
.tool-page .scan-card p{color:#5B6B7A;margin:0 0 16px}
.tool-page .scan-card p:last-child{margin-bottom:0}
.tool-page .scan-card .dropzone{padding:0;gap:12px}
.tool-page .scan-card .choose-row .btn{width:100%;max-width:340px;height:64px;font-size:1.25rem}
.tool-page .scan-card .cloud-btn{width:44px;height:44px}
.tool-page .scan-card .cloud-btn svg{width:22px;height:22px}
.tool-page .scan-card .dz-note.drop-line{font-size:1rem}
.tool-page .scan-card .camera-link{margin-top:16px}
.tool-page .scan-card-disabled{color:#9AA7B4}
.tool-page .scan-card-disabled h3{color:#9AA7B4}
.tool-page .scan-card-disabled p{color:#9AA7B4}
.tool-page .scan-status{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#9AA7B4;margin-bottom:16px}
.tool-page .scan-status svg{width:18px;height:18px}
.tool-page .scan-illustration{margin:8px auto 0;max-width:220px;color:#C3CEDA}
.tool-page .scan-illustration svg{width:100%;height:auto}

/* Paste toggle (Text to PDF): the paste box is the tool's other input. */
.tool-page .paste-toggle{text-align:center;margin:6px 0 0}
.tool-page .paste-toggle button{background:none;border:0;padding:0;color:var(--teal);font:inherit;font-size:1rem;font-weight:600;cursor:pointer;text-decoration:underline}
.tool-page .paste-toggle button:hover{color:var(--teal-dark)}

/* Tool footer is the fixed 44px bar from main.css; no extra padding here. */
.tool-page .tool-footer{padding:0}

@media (max-width:700px){
  .tool-page .tool-hero{padding:30px 20px 0}
  .tool-page .tool-hero h1{font-size:24px;line-height:32px}
  .tool-page .tool-hero h2{font-size:16px;line-height:24px}
  .tool-page .choose-row{display:flex;flex-direction:column;align-items:center;gap:12px}
  .tool-page .cloud-stack{flex-direction:row;gap:12px}
  .tool-page .choose-row .btn{width:312px;max-width:calc(100vw - 48px);height:80px;font-size:22px;border-radius:12px}
  .tool-page .cloud-btn{width:36px;height:36px}
  .tool-page .cloud-btn svg{width:18px;height:18px}
  .tool-page .dz-note.drop-line{font-size:14px}
  .tool-page .scan-cards{grid-template-columns:1fr}
}
