/* dxftonc1.com — CutForge Converter. Bez externých fontov a knižníc (žiadne cookies, žiadne volania tretích strán). */
:root {
  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #eef3f9; --ink: #0f1a2a; --muted: #4f5d70; --line: #dbe3ee;
  --brand: #1a6fd6; --brand-ink: #ffffff; --brand-soft: #e3effd; --accent: #e07700; --ok: #13804b; --bad: #c0362c;
  --code-bg: #0e1726; --code-ink: #d8e4f3;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 26, 42, .06), 0 8px 24px rgba(15, 26, 42, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --surface: #111b2d; --surface-2: #0f1a2b; --ink: #e6edf6; --muted: #9fb0c4; --line: #22324a;
    --brand: #4c9bff; --brand-ink: #06101f; --brand-soft: #132a47; --accent: #ffa23a; --ok: #43c37e; --bad: #ff7b70;
    --code-bg: #070d18; --code-ink: #cfe0f5; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, label.btn:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); letter-spacing: -.01em; }
h3, .h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 820px; }
.small { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* hlavička */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.05; }
.logo { font: 800 1.15rem/1 var(--mono); letter-spacing: -.02em; }
.logo .arr { color: var(--accent); margin: 0 .1em; }
.logo.small { font-size: 1rem; }
.by { font-size: .72rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--brand); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; font-weight: 700; font-size: .85rem; padding: 6px 10px;
  border: 1px solid var(--line); border-radius: 8px; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; right: 0; top: 110%; list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 150px; }
.lang li a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.lang li a[aria-current] { background: var(--brand-soft); font-weight: 700; }
@media (max-width: 900px) { .nav { display: none; } .top-in { justify-content: space-between; } .lang { margin-left: auto; } }

/* tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand);
  color: var(--brand-ink); border: 1px solid var(--brand); border-radius: 10px; padding: 12px 20px; font: 600 1rem var(--font);
  text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* hero */
.hero { padding-block: 56px 28px; background: radial-gradient(1200px 400px at 80% -10%, var(--brand-soft), transparent 70%); }
.hero.small { padding-block: 44px 10px; }
.hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-in > * { min-width: 0; }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; } }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .82rem;
  border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; }
.hero-art { width: 100%; height: auto; max-width: 560px; justify-self: end; }
.art-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.art-lbl { font: 700 13px var(--mono); fill: var(--muted); }
.art-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.art-dash { stroke: var(--muted); stroke-dasharray: 6 4; stroke-width: 1; }
.art-hole { fill: none; stroke: var(--brand); stroke-width: 2; }
.art-dim { stroke: var(--brand); stroke-width: 1.2; }
.art-num { font: 12px var(--mono); fill: var(--brand); }
.art-arrow { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-code { font: 12px var(--mono); fill: var(--ink); white-space: pre; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font: 800 1.7rem/1.1 var(--font); color: var(--brand); font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: var(--muted); }

/* sekcie */
.sec { padding-block: 56px; }
.sec.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.promise { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #000));
  color: #fff; }
.promise h2, .promise a { color: #fff; }
.promise p { color: rgba(255, 255, 255, .92); font-size: 1.08rem; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 26px 0 0; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid3 > * { min-width: 0; }
@media (max-width: 900px) { .grid3 { grid-template-columns: 1fr; } }
.tablewrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 30%; color: var(--muted); font-weight: 600; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
pre.code { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto;
  font: 13.5px/1.5 var(--mono); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }
.box { background: var(--brand-soft); border-radius: var(--radius); padding: 22px 24px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 24px; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.facts b { display: block; } .facts span { font-size: .9rem; color: var(--muted); }

/* cenník */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: 18px; margin: 26px 0 14px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price b { font-size: 2.4rem; font-variant-numeric: tabular-nums; }
.plan .btn { width: 100%; }

/* formulár */
.form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin-top: 18px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: 1rem var(--font); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; }
.msg { margin: 0; font-weight: 600; } .msg.ok { color: var(--ok); } .msg.bad { color: var(--bad); }

/* FAQ, karty */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; }
.faq details > div { padding: 0 18px 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 14px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--brand); }
.card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* pätička */
.foot { border-top: 1px solid var(--line); padding-block: 40px 20px; margin-top: 0; background: var(--surface); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } }
.foot h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.foot a { display: block; color: var(--ink); text-decoration: none; margin-bottom: 6px; font-size: .95rem; }
.foot a:hover { color: var(--brand); }
.copy { margin-top: 18px; }

/* online prehliadač */
.viewer-sec { padding-block: 10px 30px; }
.viewer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.v-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.v-local { margin-left: auto; }
.v-main { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; min-height: 560px; }
@media (max-width: 1000px) { .v-main { grid-template-columns: 1fr; } .v-files { max-height: 160px; } }
.v-files, .v-info { padding: 12px 14px; overflow: auto; font-size: .9rem; }
.v-files { border-right: 1px solid var(--line); }
.v-info { border-left: 1px solid var(--line); }
.v-files h3, .v-info h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; }
#v-list { list-style: none; margin: 0; padding: 0; }
#v-list button { width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 6px; cursor: pointer;
  font: .9rem var(--mono); color: var(--ink); }
#v-list button[aria-current="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.v-canvas { position: relative; min-height: 420px; background: #0f1119; }
.v-canvas.drag { outline: 3px dashed var(--accent); outline-offset: -8px; }
#v-canvas { width: 100%; height: 100%; min-height: 420px; display: block; touch-action: none; cursor: grab; }
.v-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: #c8d3e1; margin: 0; padding: 20px; }
.v-empty[hidden], [hidden] { display: none !important; }
.v-hint { position: absolute; bottom: 6px; right: 10px; margin: 0; color: #8a96a8; }
.v-info table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.v-info th, .v-info td { text-align: left; padding: 3px 6px; border-bottom: 1px solid var(--line); }
.v-info th { color: var(--muted); font-weight: 600; }
#v-warn p { color: var(--accent); font-size: .85rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.toc ol { margin: 0; padding-left: 1.2em; }
