:root{
  --bg:#F5F7FA; --surface:#FFFFFF; --surface-2:#EEF1F6; --surface-3:#E6EAF1;
  --border:#DFE4EC; --border-strong:#CBD3E0;
  --text:#161C29; --text-muted:#5A6577; --text-faint:#8B96A8;
  --ink:#2F45C9; --ink-hover:#2739A6; --ink-soft:rgba(47,69,201,.09); --ink-line:rgba(47,69,201,.22);
  --pass:#12945A; --pass-soft:rgba(18,148,90,.12);
  --warn:#B26A08; --warn-soft:rgba(178,106,8,.13);
  --fail:#CB3A3A; --fail-soft:rgba(203,58,58,.11);
  --shadow:0 1px 2px rgba(20,28,45,.04), 0 8px 24px rgba(20,28,45,.06);
  --radius:14px; --radius-sm:10px;
  --font-display:'Space Grotesk','Inter',system-ui,sans-serif;
  --font-body:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;
}
[data-theme="dark"]{
  --bg:#0C0F16; --surface:#141922; --surface-2:#1B212C; --surface-3:#232B38;
  --border:#242C39; --border-strong:#333D4D;
  --text:#E7EBF2; --text-muted:#96A1B4; --text-faint:#6B7688;
  --ink:#7A90FF; --ink-hover:#93A5FF; --ink-soft:rgba(122,144,255,.13); --ink-line:rgba(122,144,255,.28);
  --pass:#3ECB86; --pass-soft:rgba(62,203,134,.14);
  --warn:#E0993B; --warn-soft:rgba(224,153,59,.15);
  --fail:#F26A64; --fail-soft:rgba(242,106,100,.14);
  --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
}
@media (prefers-color-scheme:dark){
  :root[data-theme="auto"]{
    --bg:#0C0F16; --surface:#141922; --surface-2:#1B212C; --surface-3:#232B38;
    --border:#242C39; --border-strong:#333D4D;
    --text:#E7EBF2; --text-muted:#96A1B4; --text-faint:#6B7688;
    --ink:#7A90FF; --ink-hover:#93A5FF; --ink-soft:rgba(122,144,255,.13); --ink-line:rgba(122,144,255,.28);
    --pass:#3ECB86; --pass-soft:rgba(62,203,134,.14);
    --warn:#E0993B; --warn-soft:rgba(224,153,59,.15);
    --fail:#F26A64; --fail-soft:rgba(242,106,100,.14);
    --shadow:0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto} *{animation-duration:.001ms!important;transition-duration:.001ms!important}}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:var(--font-body);font-size:15px;line-height:1.55;
  -webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01";
}
.wrap{max-width:1120px;margin:0 auto;padding:0 22px}
h1,h2,h3{font-family:var(--font-display);font-weight:600;letter-spacing:-.02em;margin:0}
.mono{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
a{color:var(--ink);text-decoration:none}
button{font-family:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px;border-radius:6px}

header{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.bar{display:flex;align-items:center;gap:20px;height:62px}
.brand{display:flex;align-items:center;gap:10px;font-family:var(--font-display);font-weight:700;font-size:19px;letter-spacing:-.03em}
.mark{width:26px;height:26px;border-radius:7px;background:var(--ink);position:relative;flex:0 0 auto}
.logo-img{height:46px;width:auto;flex:0 0 auto;display:block}
.logo-link{display:flex;align-items:center;text-decoration:none;line-height:0}
.mark::after{content:"";position:absolute;left:7px;top:12px;width:5px;height:9px;border:2.4px solid #fff;border-top:0;border-left:0;transform:rotate(42deg);border-radius:0 0 1px 0}
nav{margin-left:auto;display:flex;align-items:center;gap:6px}
nav a{color:var(--text-muted);font-weight:500;font-size:14px;padding:7px 12px;border-radius:8px}
nav a:hover{color:var(--text);background:var(--surface-2)}
.toggle{width:38px;height:38px;border-radius:9px;border:1px solid var(--border);background:var(--surface);
  color:var(--text-muted);cursor:pointer;display:grid;place-items:center;transition:.15s}
.toggle:hover{color:var(--text);border-color:var(--border-strong)}
@media (max-width:680px){
  .bar{flex-direction:column;align-items:flex-start;height:auto;padding:12px 0}
  nav{margin-left:0;width:100%;flex-wrap:wrap;row-gap:8px;padding-bottom:4px}
  nav a{padding:6px 10px;font-size:13.5px}
}
.toggle svg{width:18px;height:18px}

.hero{padding:60px 0 36px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-mono);font-size:12px;
  letter-spacing:.04em;color:var(--ink);background:var(--ink-soft);border:1px solid var(--ink-line);
  padding:5px 11px;border-radius:100px;margin-bottom:22px}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:var(--ink)}
.hero h1{font-size:clamp(32px,5.6vw,50px);line-height:1.03;max-width:17ch}
.hero h1 em{font-style:normal;color:var(--ink)}
.hero p.sub{font-size:clamp(15px,2.2vw,18px);color:var(--text-muted);max-width:56ch;margin:18px 0 0}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.chip{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:var(--text-muted);
  background:var(--surface);border:1px solid var(--border);padding:8px 13px;border-radius:100px}
.chip svg{width:15px;height:15px;color:var(--pass)}

section.block{padding:30px 0}
.sec-head{display:flex;align-items:baseline;gap:14px;margin-bottom:20px;flex-wrap:wrap}
.sec-num{font-family:var(--font-mono);font-size:13px;color:var(--text-faint)}
.sec-head h2{font-size:clamp(21px,3.2vw,27px)}
.sec-head p{margin:0;color:var(--text-muted);font-size:13.5px}
.jump{display:flex;gap:8px;flex-wrap:wrap;margin:2px 0 22px}
.jump a{font-size:12.5px;color:var(--text-muted);background:var(--surface);border:1px solid var(--border);
  padding:6px 12px;border-radius:100px;font-weight:500}
.jump a:hover{color:var(--ink);border-color:var(--ink-line)}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}

/* ---- application pack ---- */
.pack{display:grid;grid-template-columns:1fr;gap:0}
.pack-top{padding:22px 24px;border-bottom:1px solid var(--border);display:flex;flex-wrap:wrap;gap:16px;align-items:center}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}
select,.btn,input[type=number],input[type=text],textarea{font-family:inherit;font-size:14px}
select{appearance:none;background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);
  padding:11px 38px 11px 14px;border-radius:10px;min-width:260px;cursor:pointer;font-weight:500;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238B96A8' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center}
.verified{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-size:12.5px;color:var(--pass);
  background:var(--pass-soft);padding:6px 12px;border-radius:100px;font-weight:500}
.verified svg{width:14px;height:14px}
.pack-body{display:grid;grid-template-columns:1fr 1fr;gap:0}
@media (max-width:760px){.pack-body{grid-template-columns:1fr}}
.pack-item{padding:22px 24px;border-right:1px solid var(--border)}
.pack-item:last-child{border-right:0}
@media (max-width:760px){.pack-item{border-right:0;border-bottom:1px solid var(--border)}}
.item-name{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:10px;flex-wrap:wrap}
.item-name h3{font-size:16px}
.item-name .req{font-family:var(--font-mono);font-size:11.5px;color:var(--text-faint)}

.drop{display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1.5px dashed var(--border-strong);border-radius:12px;padding:20px;text-align:center;
  cursor:pointer;transition:.15s;background:var(--surface-2)}
.drop:hover,.drop.over{border-color:var(--ink);background:var(--ink-soft)}
.drop svg{width:26px;height:26px;color:var(--text-faint);margin-bottom:6px;flex:0 0 auto}
.drop .t{font-size:14px;font-weight:500}
.drop .h{font-size:12.5px;color:var(--text-faint);margin-top:3px}
.drop input{display:none}

.result{margin-top:16px;display:none}
.result.show{display:block}
.preview{display:flex;gap:14px;align-items:flex-start;margin-bottom:14px}
.preview img{width:74px;height:84px;object-fit:cover;border-radius:8px;border:1px solid var(--border);background:var(--surface-3)}
.checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;flex:1}
.check{display:flex;align-items:flex-start;gap:10px;font-size:13.5px}
.check .ic{width:19px;height:19px;border-radius:50%;flex:0 0 auto;display:grid;place-items:center;margin-top:1px}
.check .ic svg{width:12px;height:12px;color:#fff}
.check.ok .ic{background:var(--pass)} .check.warn .ic{background:var(--warn)} .check.bad .ic{background:var(--fail)}
.check .lbl{color:var(--text)} .check .val{color:var(--text-muted)}
.check .val b{font-family:var(--font-mono);font-weight:500;color:var(--text)}
.status-bar{display:flex;align-items:center;gap:11px;padding:12px 14px;border-radius:10px;font-weight:600;font-size:14px;margin-bottom:14px}
.status-bar.pass{background:var(--pass-soft);color:var(--pass)}
.status-bar.fix{background:var(--warn-soft);color:var(--warn)}
.status-bar svg{width:18px;height:18px;flex:0 0 auto}
.act-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}

.btn{border:1px solid var(--border-strong);background:var(--surface);color:var(--text);padding:10px 16px;
  border-radius:10px;cursor:pointer;font-weight:600;transition:.15s;display:inline-flex;align-items:center;gap:8px}
.btn:hover{border-color:var(--ink);color:var(--ink)}
.btn svg{width:15px;height:15px}
.btn.primary{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.primary:hover{background:var(--ink-hover);border-color:var(--ink-hover);color:#fff}
.btn.ghost{border-color:transparent;background:transparent;color:var(--text-muted);padding:10px 8px}
.btn.ghost:hover{color:var(--ink)}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn.sm{padding:7px 12px;font-size:12.5px;border-radius:8px}
.note-inline{font-size:12.5px;color:var(--text-faint);margin-top:10px;line-height:1.5}
.disclaimer{font-size:12px;color:var(--warn);background:var(--warn-soft);padding:8px 11px;border-radius:8px;margin-bottom:12px;line-height:1.5}

.pack-foot{padding:14px 24px;border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:12px;
  align-items:center;justify-content:space-between;font-size:12.5px;color:var(--text-faint)}
.report{background:none;border:0;color:var(--text-muted);cursor:pointer;font-size:12.5px;
  display:inline-flex;align-items:center;gap:6px;padding:4px 2px}
.report:hover{color:var(--ink)}
.report svg{width:14px;height:14px}

/* ---- tools grid (shared: image + pdf) ---- */
.tools{display:grid;grid-template-columns:1fr 1fr;gap:18px}
@media (max-width:820px){.tools{grid-template-columns:1fr}}
.tool{padding:22px 22px 20px}
.tool.wide{grid-column:1 / -1}
.tool-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.tool-ic{width:38px;height:38px;border-radius:10px;background:var(--ink-soft);color:var(--ink);
  display:grid;place-items:center;flex:0 0 auto}
.tool-ic svg{width:19px;height:19px}
.tool-head h3{font-size:16px}
.tag{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:100px;margin-left:auto}
.tag.beta{background:var(--warn-soft);color:var(--warn)}
.tool>p.desc{color:var(--text-muted);font-size:13px;margin:0 0 16px}
.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end;margin-bottom:12px}
.controls .field label{font-size:11px}
input[type=number]{width:88px;background:var(--surface-2);border:1px solid var(--border-strong);
  color:var(--text);padding:9px 11px;border-radius:9px}
input[type=text]{background:var(--surface-2);border:1px solid var(--border-strong);
  color:var(--text);padding:9px 11px;border-radius:9px;width:100%}
input[type=range]{accent-color:var(--ink);width:150px}
textarea{background:var(--surface-2);border:1px solid var(--border-strong);color:var(--text);
  padding:11px;border-radius:9px;width:100%;resize:vertical;font-family:var(--font-mono);font-size:12.5px}
.seg{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:9px;padding:3px}
.seg button{border:0;background:none;color:var(--text-muted);padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px;font-weight:500}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.06)}
.mini-drop{display:flex;align-items:center;justify-content:center;
  border:1.4px dashed var(--border-strong);border-radius:10px;padding:14px;text-align:center;
  cursor:pointer;font-size:13px;color:var(--text-muted);transition:.15s}
.mini-drop:hover,.mini-drop.over{border-color:var(--ink);background:var(--ink-soft);color:var(--ink)}
.mini-drop input{display:none}
.tool-out{font-size:12.5px;color:var(--text-muted);margin-top:12px;min-height:18px}
.tool-out.ok{color:var(--pass)} .tool-out.err{color:var(--fail)}
.filelist{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.filerow{display:flex;align-items:center;gap:9px;background:var(--surface-2);border:1px solid var(--border);
  border-radius:8px;padding:7px 10px;font-size:12.5px;cursor:grab}
.filerow.drag{opacity:.4}
.filerow .gr{color:var(--text-faint);flex:0 0 auto}
.filerow .nm{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.filerow .rm{color:var(--text-faint);cursor:pointer;background:none;border:0;padding:2px;flex:0 0 auto}
.filerow .rm:hover{color:var(--fail)}
.progress{height:6px;background:var(--surface-3);border-radius:100px;overflow:hidden;margin-top:12px;display:none}
.progress.show{display:block}
.progress .bar{height:100%;background:var(--ink);width:0%;transition:width .2s}
.thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.thumbs .pg{width:52px;height:70px;border:1px solid var(--border);border-radius:6px;background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;font-family:var(--font-mono);font-size:11px;color:var(--text-muted);
  position:relative;cursor:pointer;overflow:hidden}
.thumbs .pg.sel{border-color:var(--ink);background:var(--ink-soft);color:var(--ink);font-weight:600}
.thumbs .pg img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.9}
.thumbs .pg span{position:relative;z-index:1;background:var(--surface);padding:1px 5px;border-radius:4px}

/* crop overlay */
.crop-stage{position:relative;display:inline-block;max-width:100%;touch-action:none;border-radius:10px;overflow:hidden;
  background:repeating-conic-gradient(var(--surface-3) 0% 25%,var(--surface-2) 0% 50%) 0 0/16px 16px}
.crop-stage img{display:block;max-width:100%;max-height:340px;user-select:none;-webkit-user-drag:none}
.crop-box{position:absolute;border:2px solid var(--ink);box-shadow:0 0 0 2000px rgba(10,14,22,.45);cursor:move}
[data-theme="dark"] .crop-box{box-shadow:0 0 0 2000px rgba(0,0,0,.6)}
.crop-box::before{content:"";position:absolute;inset:0;border:1px dashed rgba(255,255,255,.6)}
.crop-handle{position:absolute;width:13px;height:13px;background:var(--ink);border:2px solid #fff;border-radius:50%;
  right:-7px;bottom:-7px;cursor:nwse-resize}
.blur-region{position:absolute;border:2px solid var(--fail);background:rgba(203,58,58,.18);cursor:move}
.blur-region .rm{position:absolute;top:-11px;right:-11px;width:20px;height:20px;border-radius:50%;background:var(--fail);
  color:#fff;border:0;font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}

footer{border-top:1px solid var(--border);margin-top:40px;padding:34px 0 60px;color:var(--text-muted);font-size:13px}
footer h4{font-family:var(--font-display);font-size:14px;color:var(--text);margin:0 0 10px}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:28px}
@media (max-width:640px){.foot-grid{grid-template-columns:1fr}}
footer .fine{margin-top:24px;padding-top:18px;border-top:1px solid var(--border);color:var(--text-faint);font-size:12px}
.foot-links{display:flex;flex-wrap:wrap;gap:18px;margin-top:22px}
.foot-links a{color:var(--text-muted);font-size:13px;font-weight:500}
.foot-links a:hover{color:var(--ink)}

/* ---- legal / contact pages ---- */
.legal{padding:48px 0 20px;max-width:760px}
.legal h1{font-size:clamp(28px,4.5vw,38px);margin-bottom:8px}
.legal .updated{color:var(--text-faint);font-size:13px;margin-bottom:36px}
.legal h2{font-size:19px;margin-top:34px;margin-bottom:10px}
.legal p{color:var(--text-muted);margin:0 0 14px;max-width:68ch}
.legal ul{color:var(--text-muted);margin:0 0 14px;padding-left:20px;max-width:68ch}
.legal li{margin-bottom:6px}
.legal a{font-weight:500}
.contact-card{display:flex;flex-direction:column;gap:16px;margin-top:28px}
.contact-row{display:flex;align-items:center;gap:12px;padding:16px 18px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow)}
.contact-row .ic{width:38px;height:38px;border-radius:10px;background:var(--ink-soft);color:var(--ink);
  display:grid;place-items:center;flex:0 0 auto}
.contact-row .ic svg{width:18px;height:18px}
.contact-row .lbl{font-size:12px;color:var(--text-faint);text-transform:uppercase;letter-spacing:.04em;font-weight:600}
.contact-row .val{font-weight:600;font-size:15px}
.contact-row .val a{color:var(--text)}
.contact-row .val a:hover{color:var(--ink)}

/* ---- home hub cards ---- */
.hub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:8px 0 20px}
@media (max-width:820px){.hub-grid{grid-template-columns:1fr}}
.hub-card{display:block;padding:26px 24px;text-decoration:none;color:var(--text);transition:.15s;position:relative}
.hub-card:hover{border-color:var(--ink);transform:translateY(-2px)}
.hub-card .hub-ic{width:44px;height:44px;border-radius:11px;background:var(--ink-soft);color:var(--ink);
  display:grid;place-items:center;margin-bottom:16px}
.hub-card .hub-ic svg{width:22px;height:22px}
.hub-card h3{font-size:18px;margin-bottom:6px}
.hub-card p{color:var(--text-muted);font-size:13.5px;margin:0}
.hub-card .go{position:absolute;top:24px;right:22px;color:var(--text-faint);transition:.15s}
.hub-card:hover .go{color:var(--ink);transform:translateX(3px)}
.hub-card .go svg{width:18px;height:18px}
.kbd{font-family:var(--font-mono);font-size:11px;background:var(--surface-2);border:1px solid var(--border);padding:2px 6px;border-radius:5px;color:var(--text-muted)}

#toast{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);opacity:0;
  background:var(--text);color:var(--bg);padding:11px 18px;border-radius:100px;font-size:13.5px;font-weight:500;
  box-shadow:var(--shadow);transition:.25s;pointer-events:none;z-index:100;max-width:90vw}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
