/* Page-specific rules for the free check: email gate, connection notice, the eight-step progress list, the problem screen,
   the results frame and the print rules for the page around the report. The report itself is styled by report.css. */
#email-gate{max-width:680px;background:var(--linen);padding:28px;margin-top:32px;border-radius:10px}#email-gate h2{margin:0 0 12px;font-size:29px;line-height:1.2;letter-spacing:-.025em}
/* One h1 per screen: the progress and problem titles are h1, styled as the page's large section title. */
#processing h1,#problem h1{margin:18px 0 24px;font-size:clamp(32px,3.1vw,46px);line-height:1.12;letter-spacing:-.035em}
#delivery-status{max-width:760px;margin:0 0 20px;padding:18px;background:var(--linen);border-left:3px solid var(--action);border-radius:10px}
#processing{min-height:70vh}#phase-detail{min-height:30px}#start-button:disabled{cursor:not-allowed}#start-error{max-width:55ch}
@media(max-width:650px){#email-gate{padding:20px}.hero h1{font-size:clamp(45px,12vw,70px)}}

h1,h2,h3{overflow-wrap:anywhere}

.connection-issue{background:var(--linen);color:var(--ink);padding:18px 6%;display:flex;gap:20px;align-items:center;justify-content:space-between}.connection-issue p{max-width:65ch;margin:0}
@media(max-width:650px){.connection-issue{align-items:start;flex-direction:column;gap:12px}}

/* Results: the report fills the page's content width; the actions sit above it. */
#results{padding-top:28px;padding-bottom:56px}
.report-actions{display:flex;align-items:center;gap:8px 24px;flex-wrap:wrap;margin:0 0 20px}
.save-report{display:inline-block;min-height:48px;padding:12px 19px;border-radius:999px;background:var(--action);color:var(--paper);font-weight:600;text-decoration:none}.save-report:hover{background:#374151}
.report-extras{margin-top:36px;padding-top:12px;border-top:1px solid var(--line)}
#source-text{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 monospace;padding:16px;background:#f8fafc;max-height:480px;overflow:auto}
#report-host{min-width:0}

/* Problem screen: three short paragraphs, the reference and the spend line. */
.problem-block{max-width:62ch;margin:0 0 20px}.problem-block h2{margin:0 0 4px;font-size:19px;line-height:1.3;font-weight:650;letter-spacing:-.01em}.problem-block p{margin:0}
#problem-reference,#problem-spend{max-width:62ch;margin:0 0 6px}#problem-reference:empty,#problem-spend:empty{display:none}
#problem .steps{margin:22px 0}
.failure-recovery{max-width:62ch;margin:20px 0}.failure-recovery p{margin:10px 0}.failure-recovery label{display:block;margin:12px 0 6px}
#check-details{box-sizing:border-box;width:100%;max-width:100%;padding:12px;font-size:16px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;resize:vertical;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:6px}

/* Check progress: eight steps from the server, each with its own status. The same list marks the stopped step on the problem screen. */
.steps{list-style:none;margin:22px 0 0;padding:0;max-width:620px}.step{position:relative;display:flex;align-items:flex-start;gap:14px;margin:0;padding:0 0 14px}.step:last-child{padding-bottom:0}.step:not(:last-child)::before{content:'';position:absolute;left:11px;top:28px;bottom:2px;width:2px;background:var(--line)}.step-done:not(:last-child)::before{background:var(--action)}
.step-mark{position:relative;flex:none;box-sizing:border-box;width:24px;height:24px;margin-top:1px;border:2px solid var(--line);border-radius:50%;background:var(--paper)}
.step-done .step-mark{border-color:var(--action);background:var(--action)}.step-done .step-mark::after{content:'';position:absolute;left:50%;top:46%;width:5px;height:10px;border:solid var(--paper);border-width:0 2px 2px 0;transform:translate(-50%,-50%) rotate(45deg)}
.step-active .step-mark,.step-waiting .step-mark{border-color:var(--accent)}.step-waiting .step-mark{border-style:dashed}.step-active .step-mark::after{content:'';position:absolute;top:3px;right:3px;bottom:3px;left:3px;border-radius:50%;background:var(--accent);animation:step-pulse 1.6s ease-in-out infinite}
.step-skipped .step-mark{border-style:dashed}.step-skipped .step-mark::after{content:'';position:absolute;left:5px;right:5px;top:9px;height:2px;background:var(--muted)}
.step-stopped .step-mark{border-color:#923820;background:#923820}.step-stopped .step-mark::after{content:'\00d7';position:absolute;top:0;left:0;right:0;text-align:center;font-size:18px;font-weight:700;line-height:20px;color:var(--paper)}
@keyframes step-pulse{0%,100%{transform:scale(.55);opacity:.55}50%{transform:scale(1);opacity:1}}
.step-text{display:flex;flex-direction:column;min-width:0;padding-top:2px}.step-label{color:#6b7280;line-height:1.4;overflow-wrap:anywhere}.step-done .step-label,.step-skipped .step-label{color:var(--ink)}.step-skipped .step-label{color:#6b7280}.step-active .step-label,.step-waiting .step-label{color:var(--ink);font-weight:650}.step-stopped .step-label,.step-stopped .step-note{color:#923820}.step-stopped .step-label{font-weight:650}.step-note{font-size:13px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.step-todo .step-note{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.elapsed{margin:12px 0 0;font-variant-numeric:tabular-nums}.elapsed:empty{display:none}
@media(prefers-reduced-motion:reduce){.step-active .step-mark::after{animation:none}}

/* Print: only the report. The page's own header, footer, notices and buttons stay off the paper; report.css prints the report itself. */
@media print{
  .skip,.preview,body>header,body>footer,#connection-issue,#intake,#processing,#problem,.report-actions,#delivery-status,.report-extras{display:none!important}
  body,.paper{background:#fff!important}
  #results.paper{padding:0!important}
}
