/* Illex shared design system.
 *
 * Goals, in priority order:
 *   1. A person under stress can use it without reading instructions.
 *   2. Plain words. No file-format vocabulary anywhere the user can see.
 *   3. Warnings stay unmissable. Simplifying the language must never soften
 *      the message — a tool that reassures someone into publishing an unsafe
 *      photo is worse than one that confuses them.
 *
 * Light by default because it reads as calmer and more ordinary; dark honoured
 * when the system asks for it.
 */

:root{
  --bg:#faf8f5;
  --surface:#ffffff;
  --line:#e6e0d8;
  --ink:#231f1c;
  --soft:#6c635b;
  --accent:#3b6ea5;
  --accent-ink:#ffffff;
  --good:#1f7a4d;
  --good-bg:#e8f5ee;
  --bad:#b3261e;
  --bad-bg:#fdeceb;
  --warn:#8a5a00;
  --warn-bg:#fdf3e2;
  --radius:14px;
  --shadow:0 1px 2px rgba(35,31,28,.05), 0 8px 24px rgba(35,31,28,.06);
}

@media (prefers-color-scheme: dark){
  :root{
    --bg:#16151a; --surface:#1e1d24; --line:#33313c; --ink:#f0eee9;
    --soft:#a29aa8; --accent:#8fb4dd; --accent-ink:#12121a;
    --good:#6ede9f; --good-bg:#14301f; --bad:#ff9b93; --bad-bg:#361715;
    --warn:#ffc46b; --warn-bg:#332409;
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:17px/1.65 ui-rounded,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
  padding:0 20px 90px;
}
.wrap{max-width:760px;margin:0 auto}
.wrap.wide{max-width:1060px}

/* ── header ─────────────────────────────────────────────── */
.top{display:flex;align-items:center;gap:14px;padding:34px 0 6px}
.top a.home{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.top h1{font-size:27px;margin:0;letter-spacing:-.02em;font-weight:650}
.top .sub{color:var(--soft);font-size:15px;margin-top:3px}
.back{font-size:15px;color:var(--accent);text-decoration:none;margin-left:auto}
.back:hover{text-decoration:underline}

.lede{font-size:19px;line-height:1.6;margin:22px 0 0;color:var(--ink)}
.lede .hi{color:var(--accent);font-weight:600}

/* ── generic surface ────────────────────────────────────── */
.card{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:22px 24px;
}
.card + .card{margin-top:16px}
h2.section{font-size:15px;font-weight:650;margin:34px 0 12px;color:var(--soft);
  letter-spacing:.01em}

/* ── the drop target: the main entry point ──────────────── */
.drop{
  border:2px dashed var(--line); border-radius:var(--radius);
  background:var(--surface); padding:44px 24px; text-align:center;
  cursor:pointer; transition:.15s; margin-top:22px;
}
.drop:hover,.drop.hot{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 5%,var(--surface))}
.drop .big{font-size:19px;font-weight:600;display:block}
.drop .small{color:var(--soft);font-size:15px;margin-top:6px;display:block}

/* ── choices ────────────────────────────────────────────── */
.choices{display:grid;gap:10px;margin-top:4px}
.choice{
  display:flex;gap:13px;align-items:flex-start;
  border:1.5px solid var(--line); border-radius:12px; padding:15px 17px;
  cursor:pointer; background:var(--surface); transition:.13s;
}
.choice:hover{border-color:var(--accent)}
.choice input{margin:3px 0 0;accent-color:var(--accent);width:19px;height:19px;flex:none}
.choice .t{font-weight:600;display:block}
.choice .d{color:var(--soft);font-size:14.5px;display:block;margin-top:2px;line-height:1.45}
.choice.picked{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 6%,var(--surface))}
.choice.risky.picked{border-color:var(--bad);background:var(--bad-bg)}
.tagbad{color:var(--bad);font-weight:600}

/* ── buttons ────────────────────────────────────────────── */
.btn{
  font:inherit;font-weight:600;font-size:17px;
  border:1.5px solid var(--line); background:var(--surface); color:var(--ink);
  border-radius:11px; padding:13px 22px; cursor:pointer; transition:.13s;
}
.btn:hover:not(:disabled){border-color:var(--accent)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.btn.primary:hover:not(:disabled){filter:brightness(1.07)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btnrow{display:flex;gap:11px;flex-wrap:wrap;margin-top:20px;align-items:center}

/* ── result banner: must be unmissable ──────────────────── */
.result{border-radius:var(--radius);padding:20px 22px;margin-top:22px;
  border:2px solid var(--line);background:var(--surface)}
.result .head{font-size:19px;font-weight:650;display:flex;gap:10px;align-items:flex-start}
.result .body{margin-top:8px;font-size:15.5px;line-height:1.6;color:var(--soft)}
.result.good{border-color:var(--good);background:var(--good-bg)}
.result.good .head{color:var(--good)}
.result.bad{border-color:var(--bad);background:var(--bad-bg)}
.result.bad .head{color:var(--bad)}
.result.busy{border-style:dashed}

/* ── "what we found" list, plain english ────────────────── */
.found{list-style:none;padding:0;margin:14px 0 0}
.found li{display:flex;gap:12px;align-items:flex-start;padding:11px 0;
  border-top:1px solid var(--line);font-size:15.5px;line-height:1.5}
.found li:first-child{border-top:0}
.found .ic{font-size:19px;line-height:1.3;flex:none;width:24px;text-align:center}
.found .what{font-weight:600}
.found .detail{color:var(--soft);font-size:14.5px;display:block;margin-top:1px}
.found li.gone .what{font-weight:500;color:var(--soft);text-decoration:line-through}

/* ── image comparison ───────────────────────────────────── */
.compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
@media(max-width:720px){.compare{grid-template-columns:1fr}}
.pane{background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.pane h3{margin:0;padding:13px 17px;font-size:14.5px;font-weight:650;
  border-bottom:1px solid var(--line);color:var(--soft)}
.pane .holder{padding:14px;display:flex;justify-content:center;align-items:center;min-height:150px}
.pane canvas{max-width:100%;height:auto;border-radius:9px;display:block}
.pane .hint{padding:0 17px 14px;font-size:13.5px;color:var(--soft);line-height:1.5}

/* ── honesty note: quieter, never absent ────────────────── */
.caveat{margin-top:26px;padding:17px 19px;border-radius:12px;
  background:var(--warn-bg);border:1px solid color-mix(in srgb,var(--warn) 35%,transparent);
  font-size:15px;line-height:1.6;color:var(--ink)}
.caveat b{color:var(--warn)}

.foot{margin-top:56px;padding-top:22px;border-top:1px solid var(--line);
  font-size:14.5px;color:var(--soft);line-height:1.7}
a{color:var(--accent)}
.quiet{color:var(--soft);font-size:14.5px}
.hidden{display:none !important}
