/* Clioos Image Upscaler — probe. Clean, responsive, no fixed widths. */
* { box-sizing: border-box; }
:root {
  --ink: #1a1a1a; --mut: #5b5b5b; --line: #e5e5e5; --bg: #ffffff;
  --soft: #f6f6f4; --accent: #0f766e; --accent-soft: #e6f4f2;
  --warn-bg: #fff7e6; --warn-ink: #8a5a00; --err: #b91c1c;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.brand { border-bottom: 1px solid var(--line); }
.brand-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.brand-row img { width: 36px; height: 36px; display: block; }
.brand-row .name { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand-row .home { margin-left: auto; font-size: 14px; color: var(--mut); text-decoration: none; }
.brand-row .home:hover { color: var(--accent); }
main { padding: 28px 0 48px; }
h1 { font-size: 34px; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 23px; margin: 34px 0 10px; line-height: 1.35; }
h3 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 0 0 14px; }
.answer { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 14px 18px; margin: 18px 0 22px; border-radius: 0 8px 8px 0; }
.answer p { margin: 0; }
.answer b { color: var(--accent); }
.lede { font-size: 18px; color: #333; }
.muted { color: var(--mut); font-size: 15px; }
.small { font-size: 14px; color: var(--mut); }

/* ---- upscaler widget ---- */
.tool { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: var(--soft); margin: 24px 0; }
.tool h2 { margin-top: 0; }
.drop { border: 2px dashed #b9b9b9; border-radius: 10px; padding: 28px 16px; text-align: center; cursor: pointer; background: #fff; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { display: none; }
.drop .big { font-size: 18px; font-weight: 600; }
.drop .sub { color: var(--mut); font-size: 14px; margin-top: 4px; }
.quota { font-size: 14px; color: var(--mut); margin: 12px 0 0; }
.quota b { color: var(--ink); }
.previews { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 720px) { .previews { grid-template-columns: 1fr; } }
.pane { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 120px; }
.pane h3 { margin: 0 0 8px; font-size: 15px; }
.pane canvas, .pane img { max-width: 100%; height: auto; display: block; margin: 0 auto; image-rendering: auto; }
.pane .ph { color: #999; font-size: 14px; text-align: center; padding: 28px 0; }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.error { background: #fdecec; color: var(--err); border-radius: 8px; padding: 10px 14px; font-size: 14px; margin: 12px 0 0; }
.progress { margin: 14px 0 0; }
.progress .bar { height: 10px; background: #e3e3e3; border-radius: 5px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.progress .lbl { font-size: 14px; color: var(--mut); margin-top: 6px; }
.btn { display: inline-block; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 650; padding: 12px 26px; cursor: pointer; margin-top: 14px; }
.btn:disabled { background: #9aa5a3; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--accent); border: 1px solid var(--accent); }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; }
.step b { display: block; font-size: 15px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--mut); }
.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq h3 { font-size: 17px; margin: 0; padding: 14px 0 4px; }
.faq p { margin: 0 0 6px; }
footer { border-top: 1px solid var(--line); padding: 20px 0 32px; font-size: 14px; color: var(--mut); }
footer a { color: var(--mut); text-decoration: none; margin-right: 16px; }
footer a:hover { color: var(--accent); }
@media (max-width: 480px) {
  body { font-size: 16px; }
  h1 { font-size: 27px; }
  .tool { padding: 14px; }
}
