/* pdfműhely – site.css */
:root{
  --bg:#FBFAF7; --surface:#FFFFFF; --text:#17181A; --muted:#5C6066; --faint:#7A7E85;
  --border:#E6E3DC; --border-soft:#EEECE6;
  --accent:#1E4D8C; --accent-hover:#163A6B; --accent-soft:#F6F8FB; --on-accent:#FFFFFF;
  --warm:#9A5B1E; --blob-a:rgba(30,77,140,.10); --blob-b:rgba(201,146,72,.12);
  --shadow:0 12px 40px rgba(23,24,26,.05);
  --serif:'Fraunces',Georgia,'Times New Roman',serif; --sans:'Manrope',system-ui,-apple-system,'Segoe UI',sans-serif;
  --radius:16px; --gutter:16px; --max:1280px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#141516; --surface:#1C1D1F; --text:#ECEAE4; --muted:#A5A8AE; --faint:#7F838A;
    --border:#2C2E31; --border-soft:#26282B;
    --accent:#7FA9E6; --accent-hover:#A3C1F0; --accent-soft:#1B2330; --on-accent:#0E1420;
    --warm:#D9A365; --blob-a:rgba(127,169,230,.08); --blob-b:rgba(217,163,101,.07);
    --shadow:0 12px 40px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"]{
  --bg:#141516; --surface:#1C1D1F; --text:#ECEAE4; --muted:#A5A8AE; --faint:#7F838A;
  --border:#2C2E31; --border-soft:#26282B;
  --accent:#7FA9E6; --accent-hover:#A3C1F0; --accent-soft:#1B2330; --on-accent:#0E1420;
  --warm:#D9A365; --blob-a:rgba(127,169,230,.08); --blob-b:rgba(217,163,101,.07);
  --shadow:0 12px 40px rgba(0,0,0,.35);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.55;position:relative;overflow-x:hidden;min-height:100vh;display:flex;flex-direction:column}
a{color:var(--accent);text-decoration:none}a:hover{color:var(--accent-hover)}
h1,h2,h3{font-family:var(--serif);font-weight:400;letter-spacing:-.015em;margin:0}
h1{font-size:clamp(34px,6vw,60px);line-height:1.08}
h2{font-size:clamp(26px,3.2vw,32px);line-height:1.15}
h3{font-size:22px}
p{margin:0}
main{flex:1 0 auto;width:100%;max-width:var(--max);margin:0 auto;padding:0 var(--gutter);position:relative}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--on-accent);padding:8px 12px;border-radius:8px;z-index:100}
.skip:focus{left:12px;top:12px}

.bg-blob{position:absolute;border-radius:50%;pointer-events:none;z-index:0}
.bg-blob-a{left:-180px;top:120px;width:720px;height:720px;background:radial-gradient(circle,var(--blob-a) 0%,transparent 70%)}
.bg-blob-b{right:-220px;top:260px;width:760px;height:760px;background:radial-gradient(circle,var(--blob-b) 0%,transparent 70%)}
@media (max-width:640px){.bg-blob-a{left:-160px;top:40px;width:420px;height:420px}.bg-blob-b{right:-180px;top:220px;width:420px;height:420px}}

/* header */
.site-header{position:relative;z-index:2;width:100%;max-width:var(--max);margin:0 auto;padding:18px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:16px}
@media (min-width:900px){.site-header{padding:28px var(--gutter)}}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);font-family:var(--serif);font-weight:600;font-size:24px;letter-spacing:-.01em}
.brand svg{color:var(--accent);flex:none}
.brand em,.brand-small em{font-style:normal;color:var(--accent)}
.site-nav{display:none;align-items:center;gap:32px;font-size:15px;font-weight:500}
.site-nav a{color:var(--text)}.site-nav a:hover{color:var(--accent)}
.theme-toggle,.menu-toggle{width:44px;height:44px;border-radius:22px;border:1px solid var(--border);background:var(--surface);color:var(--text);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
@media (min-width:900px){.site-nav{display:flex}.menu-toggle{display:none}}
.theme-toggle .ico-sun{display:none}
:root[data-theme="dark"] .theme-toggle .ico-sun{display:block}
:root[data-theme="dark"] .theme-toggle .ico-moon{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .theme-toggle .ico-sun{display:block}:root:not([data-theme="light"]) .theme-toggle .ico-moon{display:none}}
.mobile-nav{position:relative;z-index:2;max-width:var(--max);margin:0 auto;padding:0 var(--gutter) 12px;display:flex;flex-direction:column;gap:4px}
.mobile-nav[hidden]{display:none}
.mobile-nav a,.theme-toggle-text{display:block;padding:12px 14px;border-radius:12px;background:var(--surface);border:1px solid var(--border);color:var(--text);font:inherit;font-weight:500;text-align:left;cursor:pointer;width:100%}

/* hero */
.hero{position:relative;z-index:1;text-align:center;padding:24px 0 8px;display:flex;flex-direction:column;align-items:center;gap:18px}
@media (min-width:900px){.hero{padding:48px 0 16px}}
.hero h1{max-width:900px}.hero h1 em{font-style:italic;color:var(--accent)}
.lead{font-size:clamp(16px,2vw,19px);line-height:1.55;color:var(--muted);max-width:640px}
.lead strong{color:var(--text);font-weight:600}
.hero-drop{position:relative;z-index:1;display:flex;justify-content:center;padding:8px 0 0}
.orbit{position:absolute;inset:0;display:flex;justify-content:center;pointer-events:none}
.orbit svg{width:min(640px,100%);height:auto}
.orbit-a{stroke:var(--accent);stroke-opacity:.9;stroke-width:1.5}
.orbit-b{stroke:#C99248;stroke-opacity:.55;stroke-width:1}
.orbit-c{stroke:var(--accent);stroke-opacity:.25;stroke-width:1}
@media (max-width:640px){.orbit{display:none}}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px 20px;border-radius:var(--radius);color:var(--text);outline:none;cursor:pointer}
.drop svg{color:var(--accent)}
.drop-home{width:min(640px,100%);min-height:280px;justify-content:center}
@media (min-width:641px){.drop-home{min-height:400px}}
.drop-title{font-family:var(--serif);font-size:24px}
.drop-or{font-size:14px;color:var(--muted)}
.drop-hint{font-size:13px;color:var(--faint);max-width:380px;line-height:1.5}
.drop.is-over{background:var(--accent-soft)}
.tool-panel .drop{border:1.5px dashed var(--accent);background:var(--accent-soft)}
.tool-panel .drop:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 26px;border-radius:24px;border:1px solid transparent;font:inherit;font-weight:600;font-size:15px;cursor:pointer;white-space:nowrap}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-primary:hover{background:var(--accent-hover);color:var(--on-accent)}
.btn-ghost{background:var(--surface);border-color:var(--border);color:var(--text)}
.btn-lg{height:52px;padding:0 32px;font-size:16px}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btn input[type=file]{display:none}

.usp-row{position:relative;z-index:1;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px 0 0}
.chip{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:999px;background:var(--surface);border:1px solid var(--border);font-size:14px;font-weight:500}
.chip svg{color:var(--accent);flex:none}

/* sections */
.section{position:relative;z-index:1;padding:56px 0 0;display:flex;flex-direction:column;gap:24px}
.section.narrow{max-width:760px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}
.section-head a{font-size:15px;font-weight:600}
.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:700px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media (min-width:1000px){.card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.card{display:flex;flex-direction:column;gap:10px;padding:18px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border);color:var(--text);transition:border-color .15s,transform .15s}
.card:hover{border-color:var(--accent);color:var(--text);transform:translateY(-1px)}
.card-icon{color:var(--accent);display:block;height:28px}
.card-icon svg{width:28px;height:28px}
.card-title{font-size:16px;font-weight:600}
.card-text{font-size:14px;color:var(--muted);line-height:1.45}
.card-note{font-size:12px;color:var(--warm);font-weight:600}
.cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
@media (min-width:700px){.cat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1000px){.cat-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.cat{display:flex;flex-direction:column;gap:2px}
.cat-name,.box-label{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:8px}
.cat a{font-size:15px;color:var(--text);padding:7px 0;border-bottom:1px solid var(--border-soft)}
.cat a:hover{color:var(--accent)}
.why{position:relative;z-index:1;margin-top:56px;padding:32px;border-radius:24px;background:var(--surface);border:1px solid var(--border);display:grid;grid-template-columns:1fr;gap:28px}
@media (min-width:900px){.why{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;padding:48px}}
.why h3{font-size:24px;margin-bottom:10px}.why p{font-size:15px;line-height:1.6;color:var(--muted)}

/* tool page */
.crumbs{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;font-size:14px;color:var(--muted);padding:8px 0 0}
.crumbs a{color:var(--muted)}.crumbs a:hover{color:var(--accent)}
.tool-head{position:relative;z-index:1;text-align:center;padding:28px 0 8px;display:flex;flex-direction:column;align-items:center;gap:14px}
@media (min-width:900px){.tool-head{padding:40px 0 8px}}
.page .tool-head{text-align:left;align-items:flex-start}
.tool-panel{position:relative;z-index:1;width:min(880px,100%);margin:24px auto 0;display:flex;flex-direction:column;gap:20px;padding:16px;border-radius:24px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow)}
@media (min-width:700px){.tool-panel{padding:32px}}
.files{display:flex;flex-direction:column;gap:8px}
.files-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;color:var(--muted);padding:0 4px}
.file-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.file{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--border);background:var(--surface)}
.file.is-dragging{opacity:.5}
.file-n{width:28px;height:28px;border-radius:14px;background:var(--accent);color:var(--on-accent);font-size:13px;font-weight:700;display:flex;align-items:center;justify-content:center;flex:none;cursor:grab;touch-action:none}
.file-thumb{width:38px;height:50px;border-radius:4px;border:1px solid var(--border);background:var(--bg);flex:none;object-fit:cover}
.file-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.file-name{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-meta{font-size:13px;color:var(--muted)}
.file-actions{display:flex;gap:2px;flex:none}
.icon-btn{width:44px;height:44px;border-radius:22px;border:none;background:transparent;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.icon-btn:hover{background:var(--accent-soft);color:var(--accent)}
.tool-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tool-options{display:flex;flex-wrap:wrap;gap:12px 20px;font-size:14px}
.tool-options label{display:flex;align-items:center;gap:8px}
.tool-options input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}
.tool-options select,.tool-options input[type=text],.tool-options input[type=number],.tool-options input[type=password]{font:inherit;padding:8px 10px;border-radius:10px;border:1px solid var(--border);background:var(--bg);color:var(--text)}
@media (max-width:640px){.tool-actions .btn{width:100%}}
.progress{display:flex;flex-direction:column;gap:8px}
.progress .bar{height:6px;border-radius:3px;background:var(--border);overflow:hidden;position:relative}
.progress .bar::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--p,0%);background:var(--accent);transition:width .2s}
.progress-text{font-size:14px;color:var(--muted)}
.result{display:flex;flex-direction:column;gap:10px;padding:20px;border-radius:16px;background:var(--accent-soft);border:1px solid var(--border)}
.result-title{font-family:var(--serif);font-size:24px}
.result-meta{font-size:14px;color:var(--muted)}
.result-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.error{padding:14px 16px;border-radius:12px;background:#FBEAEA;color:#8A1F1F;font-size:14px}
:root[data-theme="dark"] .error{background:#3A1E1E;color:#F3B4B4}
[hidden]{display:none !important}

.steps{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:800px){.steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}}
.step{display:flex;flex-direction:column;gap:8px;padding:22px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border)}
.step-n{font-family:var(--serif);font-size:36px;color:var(--accent);line-height:1}
.step-title{font-size:16px;font-weight:600}
.step-text{font-size:14px;color:var(--muted);line-height:1.5}
.two-col{display:grid;grid-template-columns:1fr;gap:40px}
@media (min-width:1000px){.two-col{grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:64px}}
.prose{font-size:16px;line-height:1.7;display:flex;flex-direction:column;gap:16px}
.prose h2{margin-top:8px}.prose h3{font-family:var(--sans);font-size:20px;font-weight:600;margin-top:6px}
.prose ul,.prose ol{margin:0;padding-left:22px;display:flex;flex-direction:column;gap:6px}
.prose a{text-decoration:underline;text-underline-offset:3px}
.side{display:flex;flex-direction:column;gap:24px}
.box{display:flex;flex-direction:column;gap:2px;padding:22px;border-radius:var(--radius);background:var(--surface);border:1px solid var(--border)}
.box a{font-size:15px;color:var(--text);padding:9px 0;border-bottom:1px solid var(--border-soft)}
.box a:last-child{border-bottom:none}.box a:hover{color:var(--accent)}
.box details{border-bottom:1px solid var(--border-soft);padding:10px 0}
.box details:last-child{border-bottom:none}
.box summary{font-size:15px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:10px}
.box summary::after{content:"+";color:var(--accent);font-weight:400}
.box details[open] summary::after{content:"–"}
.box details p{margin-top:8px;font-size:14px;color:var(--muted);line-height:1.5}

/* footer */
.site-footer{position:relative;z-index:1;width:100%;max-width:var(--max);margin:64px auto 0;padding:32px var(--gutter);border-top:1px solid var(--border);display:flex;flex-direction:column;gap:14px;font-size:14px;color:var(--muted)}
@media (min-width:900px){.site-footer{flex-direction:row;align-items:center;justify-content:space-between;padding:40px var(--gutter)}}
.brand-small{font-family:var(--serif);font-size:18px;color:var(--text)}
.site-footer nav{display:flex;flex-wrap:wrap;gap:18px 28px}
.site-footer nav a{color:var(--muted)}.site-footer nav a:hover{color:var(--accent)}

@media (prefers-reduced-motion:reduce){*{transition:none !important}}

/* űrlap */
.contact-form{display:flex;flex-direction:column;gap:14px;max-width:560px}
.contact-form label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600}
.contact-form input,.contact-form textarea{font:inherit;font-weight:400;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.contact-form .btn{align-self:flex-start}

/* készülő eszközök */
.soon-tag{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--warm);margin-left:6px;vertical-align:middle}
.soon-panel{align-items:center;text-align:center;gap:12px}
.soon-badge{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--warm);border:1px solid var(--warm);border-radius:999px;padding:6px 12px}
.soon-title{font-family:var(--serif);font-size:26px}
.soon-text{font-size:15px;color:var(--muted);max-width:520px;line-height:1.55}
.tool-soon .steps,.tool-soon .prose:empty{display:none}

/* katalógus (kártyarács) */
.hero-compact{padding-bottom:8px}
.hero-compact .usp-row{padding-top:6px}
.catalog-search{position:relative;z-index:1;display:flex;justify-content:center;padding:20px 0 4px}
.search{display:flex;align-items:center;gap:10px;width:min(640px,100%);height:48px;padding:0 16px;border-radius:24px;background:var(--surface);border:1px solid var(--border);color:var(--muted)}
.search:focus-within{border-color:var(--accent)}
.search input{flex:1;border:none;background:transparent;font:inherit;font-size:15px;color:var(--text);outline:none;min-width:0}
.catalog{position:relative;z-index:1;display:flex;flex-direction:column;gap:44px;padding:28px 0 0}
.cat-block{display:flex;flex-direction:column;align-items:center;gap:18px}
.cat-block h2{text-align:center}
.tcards{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:100%}
.tcard{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;width:156px;min-height:132px;padding:16px 10px 12px;border-radius:14px;background:var(--surface);border:1px solid var(--border);color:var(--text);text-align:center;transition:border-color .15s,transform .15s,box-shadow .15s}
.tcard:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow);color:var(--text)}
.tcard-img{display:flex;align-items:center;justify-content:center;width:72px;height:60px;color:var(--accent)}
.tcard-img svg{width:36px;height:36px}
.tcard-img img{width:72px;height:60px;object-fit:contain}
.tcard-title{font-size:13.5px;font-weight:600;line-height:1.3}
.tcard-soon,.tcard-server{font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--warm)}
.tcard.is-soon .tcard-img{opacity:.55}
.star{position:absolute;top:6px;right:6px;width:32px;height:32px;border-radius:16px;border:none;background:transparent;color:var(--faint);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.star:hover{color:var(--accent);background:var(--accent-soft)}
.star.is-on{color:#C99248}.star.is-on svg{fill:#C99248}
.tcard.is-hidden,.cat-block.is-hidden{display:none}
.no-results{text-align:center;color:var(--muted);font-size:15px}
@media (max-width:640px){.tcard{width:calc(50% - 6px)}.tcards{gap:10px}}
