/* Képeszköz – one stylesheet for every page.
   Built for people who are not "computer people": light, large, high contrast, one obvious button. */
:root {
    --bg: #f6f4ef;
    --card: #ffffff;
    --ink: #1a1a1a;
    --soft: #4a4a4a;
    --line: #d9d4c7;
    --brand: #1d4ed8;
    --brand-dark: #1e3a8a;
    --brand-soft: #e7eefc;
    --go: #15803d;
    --go-dark: #166534;
    --go-soft: #e6f4ea;
    --warn: #b91c1c;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .06);
    --font: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 19px/1.65 var(--font); }
@media (min-width: 720px) { body { font-size: 20px; } }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* header / footer */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; color: var(--ink); text-decoration: none; }
.logo img { width: 38px; height: 38px; }
.all-tools { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 17px; padding: 10px 16px; border-radius: 12px;
    border: 2px solid var(--brand); color: var(--brand); text-decoration: none; white-space: nowrap; }
.all-tools:hover { background: var(--brand-soft); }
.crumbs { font-size: 16px; color: var(--soft); margin: 18px 0 0; }
.crumbs a { color: var(--soft); }
footer { margin-top: 64px; padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: 16px; background: var(--card); }
footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer h4 { margin: 0 0 8px; color: var(--ink); font-size: 17px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--soft); }

/* page */
h1 { font-size: clamp(30px, 6vw, 42px); line-height: 1.15; margin: 20px 0 10px; letter-spacing: -.5px; }
h2 { font-size: clamp(23px, 4vw, 28px); margin: 44px 0 12px; line-height: 1.25; }
h3 { font-size: 20px; margin: 20px 0 6px; }
.lead { font-size: 20px; color: var(--soft); margin: 0 0 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
@media (min-width: 720px) { .card { padding: 28px; } }

/* the tool */
#tool { display: grid; gap: 16px; }
.flow { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; counter-reset: f; font-size: 15px; font-weight: 700; color: var(--soft); }
#tool > * { min-width: 0; }
.flow li { counter-increment: f; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: #f1efe9; line-height: 1.2; }
@media (max-width: 420px) { .flow { font-size: 13px; gap: 4px; } .flow li { padding: 6px; gap: 5px; } .flow li::before { width: 22px; height: 22px; } }
.flow li::before { content: counter(f); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.flow li.now { background: var(--brand-soft); color: var(--brand-dark); }
.flow li.now::before { border-color: var(--brand); color: var(--brand); }
.flow li.done { color: var(--go-dark); }
.flow li.done::before { content: '✓'; background: var(--go); border-color: var(--go); color: #fff; }
.pick { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 22px 16px; min-height: 96px; border-radius: 16px; cursor: pointer;
    background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-dark); transition: transform .08s ease, box-shadow .08s ease; }
.pick span { font-size: 25px; font-weight: 800; line-height: 1.2; }
.pick-sub { font-size: 16px; opacity: .9; }
.pick:hover { background: #2357e6; }
.pick:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-dark); }
.pick.over { outline: 4px dashed var(--brand-dark); outline-offset: 4px; }
@media (hover: none) { .pick-sub { display: none; } }
#file:focus-visible + .pick { outline: 4px solid var(--brand-dark); outline-offset: 4px; }
.picked { margin: -4px 0 0; font-size: 16px; color: var(--soft); text-align: center; overflow-wrap: anywhere; }
.safe { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--go-soft); color: var(--go-dark); font-size: 16px; font-weight: 600; }
.opts { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; }
.opts:empty { display: none; }
.field { display: grid; gap: 6px; font-size: 16px; font-weight: 700; color: var(--ink); min-width: 0; flex: 1 1 220px; }
.field.wide { flex-basis: 100%; }
.field select, .field input[type=number] { font: inherit; font-size: 18px; font-weight: 400; padding: 12px; border-radius: 12px; border: 2px solid var(--line);
    background: #fff; color: var(--ink); width: 100%; min-height: 52px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 17px; flex-basis: 100%; }
.check input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.presets { display: flex; flex-wrap: wrap; gap: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .chip { font: inherit; font-size: 17px; font-weight: 700; padding: 12px 16px; min-height: 52px; border-radius: 12px; border: 2px solid var(--line);
    background: #fff; color: var(--ink); cursor: pointer; flex: 1 1 auto; }
.seg button[aria-pressed="true"], .chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.seg button:hover, .chip:hover { border-color: var(--brand); }
.chip.big { flex: 1 1 calc(50% - 10px); }
.adv { border: 2px solid var(--line); border-radius: 12px; background: #fbfaf7; }
.adv summary { padding: 14px 16px; font-weight: 700; font-size: 17px; cursor: pointer; min-height: 52px; }
.adv[open] summary { border-bottom: 1px solid var(--line); }
.adv > .opts { padding: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 19px; padding: 14px 22px;
    min-height: 56px; border-radius: 14px; border: 0; background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.big { width: 100%; font-size: 21px; min-height: 64px; }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); justify-self: center; }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn.dl { background: var(--go); box-shadow: 0 3px 0 var(--go-dark); }
.btn.dl:hover { background: var(--go-dark); }
.status { margin: 0; color: var(--soft); font-size: 17px; text-align: center; }
.status:empty { display: none; }
.status.err { color: var(--warn); font-weight: 700; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.results li { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; align-items: center; padding: 14px; border: 2px solid #b9dcc4; border-radius: 14px; background: var(--go-soft); }
.results .btn.dl { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) { .results li { grid-template-columns: 72px 1fr auto; } .results .btn.dl { grid-column: auto; width: auto; } }
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.thumb.pdf { display: grid; place-items: center; font-weight: 800; color: var(--warn); background: #fff; border: 2px solid var(--line); }
.meta { display: grid; min-width: 0; font-size: 17px; line-height: 1.4; }
.meta span { font-weight: 700; color: var(--go-dark); }
.meta small { color: var(--soft); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage { display: grid; gap: 12px; }
.hint { margin: 0; font-size: 17px; font-weight: 600; }
.cropview { position: relative; max-width: 100%; touch-action: none; user-select: none; line-height: 0; overflow: hidden; border-radius: 10px; justify-self: center; }
.croppic { max-width: 100%; max-height: 70vh; width: auto; height: auto; display: block; }
.cropbox { position: absolute; border: 3px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55); cursor: move; }
.round .cropbox { border-radius: 50%; }
.cropbox .h { position: absolute; width: 30px; height: 30px; background: #fff; border: 3px solid var(--brand); border-radius: 50%; }
.cropbox .nw { left: -15px; top: -15px; cursor: nwse-resize; } .cropbox .ne { right: -15px; top: -15px; cursor: nesw-resize; }
.cropbox .sw { left: -15px; bottom: -15px; cursor: nesw-resize; } .cropbox .se { right: -15px; bottom: -15px; cursor: nwse-resize; }

/* content */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 14px; align-items: baseline; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; padding: 16px 18px; min-height: 56px; }
.faq p { margin: 0; padding: 0 18px 16px; color: var(--soft); }
.trust { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 22px 0 0; }
.trust div { padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 17px; color: var(--soft); }
.trust b { display: block; color: var(--ink); font-size: 18px; }
.tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tools a { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--line); background: var(--card);
    color: var(--ink); text-decoration: none; font-weight: 800; line-height: 1.3; min-height: 72px; }
.tools a:hover { border-color: var(--brand); }
.tools a .ti { font-size: 28px; flex: none; }
.tools a .tx { min-width: 0; }
.tools a small { display: block; color: var(--soft); font-weight: 400; font-size: 15px; }
.tasks { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 8px; }
.tasks a { display: grid; gap: 4px; padding: 20px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--ink);
    text-decoration: none; box-shadow: var(--shadow); }
.tasks a:hover { border-color: var(--brand); }
.tasks .ti { font-size: 40px; line-height: 1; }
.tasks b { font-size: 22px; line-height: 1.2; }
.tasks span:last-child { color: var(--soft); font-size: 17px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 17px; background: var(--card); border-radius: 12px; overflow: hidden; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { background: var(--brand-soft); }
.legal { max-width: 720px; }
.legal h2 { font-size: 22px; }
