/* ScalingSkills AI — paleta inspirovaná Claude: krémová, terakota, inkoust. */
/* Světlá varianta ve stylu bedigit.cz (bílá + světle modrošedá, černý text, jemné linky),
   tmavá varianta v inkoustových tónech. Akcent zůstává terakota (Claude). */
:root {
  --bg: #f0f4ff; --bg-2: #e6ebf7; --surface: #ffffff; --surface-2: #f5f5f5;
  --ink: #000000; --ink-2: rgba(0,0,0,.74); --muted: rgba(0,0,0,.5); --line: rgba(0,0,0,.1); --line-2: rgba(0,0,0,.18);
  --accent: #D97757; --accent-2: #C4643F; --accent-soft: rgba(217,119,87,.14); --accent-ink: #B5582F;
  --ok: #2f7a4f; --ok-soft: #e3f3e8; --err: #b5402f; --err-soft: #fbe6e2; --warn-soft: #fbf0d9;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 32px -14px rgba(31,39,58,.22);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif; --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0d111a; --bg-2: #121722; --surface: #161c28; --surface-2: #1b2230;
  --ink: #f4f7ff; --ink-2: rgba(244,247,255,.78); --muted: rgba(244,247,255,.56); --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.2);
  --accent: #E08866; --accent-2: #EE9B7B; --accent-soft: rgba(224,136,102,.16); --accent-ink: #F2B49C;
  --ok: #7DBA98; --ok-soft: #1e3328; --err: #E48374; --err-soft: #3c2522; --warn-soft: #3b3322;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 36px -16px rgba(0,0,0,.7); color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0d111a; --bg-2: #121722; --surface: #161c28; --surface-2: #1b2230;
  --ink: #f4f7ff; --ink-2: rgba(244,247,255,.78); --muted: rgba(244,247,255,.56); --line: rgba(255,255,255,.11); --line-2: rgba(255,255,255,.2);
  --accent: #E08866; --accent-2: #EE9B7B; --accent-soft: rgba(224,136,102,.16); --accent-ink: #F2B49C;
  --ok: #7DBA98; --ok-soft: #1e3328; --err: #E48374; --err-soft: #3c2522; --warn-soft: #3b3322;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 36px -16px rgba(0,0,0,.7); color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
code { background: var(--bg-2); padding: .1em .35em; border-radius: 5px; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; overflow: auto; }
pre code { background: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.hint { font-size: .9rem; color: var(--muted); }
.empty { color: var(--muted); padding: 32px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); cursor: pointer; transition: background-color .15s, border-color .15s, transform .08s; text-decoration: none !important; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger { background: var(--err); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* header */
.announce { background: var(--ink); color: var(--bg); text-align: center; font-size: .9rem; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: .95rem; }
.nav-links a { color: var(--ink-2); }
.nav-links a[aria-current] { color: var(--ink); }
.nav-links .lang { color: var(--muted); font-size: .85rem; }
.announce { background: var(--ink); color: var(--bg); }
.cart-link { position: relative; display: inline-flex; color: var(--ink); }
.badge { position: absolute; top: -8px; right: -10px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }

/* flashes */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .95rem; border: 1px solid var(--line); background: var(--surface); }
.flash-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.flash-err { background: var(--err-soft); color: var(--err); border-color: transparent; }
.flash-warn { background: var(--warn-soft); color: #7A5A12; border-color: transparent; }

/* sections */
.section { padding: 64px 0; }
.section.pt-0 { padding-top: 0; }
.section-alt { background: var(--bg-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.more { font-weight: 500; }
.page-head { padding-bottom: 24px; }
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: flex; justify-content: center; }
.skill-file { width: min(100%, 440px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1.2deg); }
.skill-file-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.skill-file-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.skill-file-bar span:first-child { background: var(--accent); }
.skill-file-bar em { margin-left: auto; font: 500 .78rem var(--sans); color: var(--muted); }
.skill-file pre { border: 0; border-radius: 0; margin: 0; font-size: .8rem; line-height: 1.55; padding: 16px 18px; background: transparent; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-media { aspect-ratio: 16/9; background: var(--surface-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { background: var(--surface-2); }
.art { display: block; width: 100%; height: 100%; }
.product-art { overflow: hidden; aspect-ratio: 16/9; }
.product-art .art { height: auto; }
:root[data-theme="dark"] .art text, :root[data-theme="dark"] .art rect[fill="#ffffff"] { }
.glyph { font-family: var(--serif); font-size: 2.6rem; color: var(--accent); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.card-foot { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.price { font-weight: 600; }
.compare { color: var(--muted); font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.chip small { color: var(--muted); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip.on small { color: inherit; opacity: .7; }
.chip:hover { text-decoration: none; background: var(--bg-2); }
.chip.on:hover { background: var(--ink); }

/* steps + faq */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); align-items: center; justify-content: center; font-weight: 600; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* product */
.product-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.product-cover { border-radius: var(--radius); border: 1px solid var(--line); margin: 20px 0 28px; }
.prose h2, .includes h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.includes ul { list-style: none; padding: 0; }
.includes li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.includes li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.buy-box { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.buy-box form { display: grid; gap: 8px; margin: 14px 0; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-big { font-family: var(--serif); font-size: 2.2rem; }
.vat-note { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.meta { display: grid; gap: 6px; margin: 16px 0 0; font-size: .9rem; }
.meta div { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 6px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tags span { font-size: .78rem; background: var(--bg-2); padding: 3px 9px; border-radius: 999px; color: var(--ink-2); }
.trust { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 18px; }
.related { margin-top: 64px; }

/* cart */
.cart-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.cart-list li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.cart-item-media { width: 72px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-media .glyph { font-size: 1.4rem; }
.cart-item-body { display: grid; }
.cart-item-body .muted { font-size: .85rem; }
.cart-item-price { font-weight: 600; }
.cart-list .link-btn { font-size: 1.4rem; color: var(--muted); line-height: 1; }
.cart-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coupon label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-on { display: inline-block; background: var(--ok-soft); color: var(--ok); padding: 6px 12px; border-radius: 999px; font-weight: 600; margin-right: 8px; }
.totals { margin: 0; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals dd { margin: 0; font-weight: 500; }
.totals .grand { font-size: 1.25rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.checkout { margin-top: 24px; display: grid; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }

/* inputs */
input:not([type="checkbox"]):not([type="file"]), select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; }
.stack { display: grid; gap: 14px; }
.stack label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }

/* order & library */
.dl-list { list-style: none; padding: 0; margin: 24px 0 8px; display: grid; gap: 10px; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.install { margin-top: 32px; }
.install h2 { font-size: 1.3rem; }
.lib-order { margin: 28px 0; }
.lib-head { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; }
.spinner { display: inline-block; width: .8em; height: .8em; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal p, .legal li { font-size: .97rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 12px 0 18px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.form-sample { font-family: var(--sans); font-size: .9rem; white-space: pre-wrap; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 48px 0 24px; font-size: .9rem; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 32px; }
.foot-col { display: grid; gap: 8px; align-content: start; }
.foot-col a { color: var(--ink-2); }
.foot-company { color: var(--muted); font-size: .85rem; }
.foot-brand p { color: var(--muted); margin-top: 6px; }
.currency-form { margin-top: 8px; }
.currency-form label { display: inline-flex; gap: 8px; align-items: center; }
.currency-form select { width: auto; padding: 4px 8px; font-size: .85rem; }
.copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .hero-grid, .product-grid, .cart-bottom { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .buy-box { position: static; }
  .hero-art { display: none; }
  .hero { padding: 48px 0 32px; }
  .section { padding: 44px 0; }
}
@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: .9rem; }
  .nav-links .lang { display: none; }
  .brand { font-size: 1.05rem; gap: 6px; white-space: nowrap; }
  .foot { grid-template-columns: 1fr; }
  .cart-list li { grid-template-columns: 1fr auto; }
  .cart-item-media { display: none; }
  .dl-list li { flex-direction: column; align-items: flex-start; }
}

/* přepínač světlý/tmavý (ve stylu bedigit.cz) */
.theme-switch { --w: 62px; --h: 30px; --pad: 3px; --knob: 24px; position: relative; display: inline-flex; width: var(--w); height: var(--h); flex: 0 0 auto; }
.theme-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.theme-switch__track { position: relative; display: block; width: 100%; height: 100%; border-radius: 999px; cursor: pointer; overflow: hidden;
  background: linear-gradient(145deg, #f7f9fd 0%, #e8edf4 52%, #d9dfe8 100%); border: 1px solid rgba(255,255,255,.86);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.95), inset 0 -4px 9px rgba(82,92,112,.1), 0 4px 10px rgba(31,39,58,.16), 0 1px 2px rgba(31,39,58,.14);
  transition: background-color .32s ease, box-shadow .32s ease; }
.theme-switch__track::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 2px 6px rgba(22,30,48,.18), inset 0 -1px 0 rgba(255,255,255,.65); pointer-events: none; }
.theme-switch__knob { position: absolute; z-index: 2; left: var(--pad); top: 50%; width: var(--knob); height: var(--knob); border-radius: 50%; transform: translate(calc(var(--w) - var(--knob) - var(--pad) * 2 - 2px), -50%);
  background: linear-gradient(145deg, #f9fbff 0%, #e8edf5 100%); border: 1px solid rgba(255,255,255,.84);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.96), inset 0 -2px 4px rgba(80,89,107,.14), 0 1px 2px rgba(18,27,48,.22), 0 3px 8px rgba(18,27,48,.24);
  transition: transform .34s cubic-bezier(.34,1.36,.64,1); }
.theme-switch__icon { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; fill: none; stroke: #aeb5c2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transform: translate(-50%,-50%); transition: opacity .24s ease, transform .3s ease; }
.theme-switch__icon--sun { opacity: 1; stroke: #e2a24a; }
.theme-switch__icon--moon { opacity: 0; transform: translate(-50%,-50%) scale(.72) rotate(-16deg); }
.theme-switch input:checked + .theme-switch__track { background: linear-gradient(145deg, #2a3142 0%, #171c28 60%, #0f131c 100%); border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 1px rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.35); }
.theme-switch input:checked + .theme-switch__track .theme-switch__knob { transform: translate(0, -50%); background: linear-gradient(145deg, #3a4257 0%, #222838 100%); border-color: rgba(255,255,255,.14); }
.theme-switch input:checked + .theme-switch__track .theme-switch__icon--sun { opacity: 0; transform: translate(-50%,-50%) scale(.72) rotate(16deg); }
.theme-switch input:checked + .theme-switch__track .theme-switch__icon--moon { opacity: 1; stroke: #cfd6e6; transform: translate(-50%,-50%) scale(1) rotate(0); }
.theme-switch input:focus-visible + .theme-switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
