/* ============================================================
   /stiahnut – načítava sa PO style.css a Pozadie.css.
   Len dve platformy: Android a Windows.

   Vizuálna DNA je účtenka – rovnaká ako v billingu:
   perforovaná trhacia čiara, riadky s bodkovaným vodičom
   („veľkosť ····· 24,3 MB") a všetky čísla v mono s tabular-nums.
   Farby berieme výhradne z accent systému (/js/accent.js).
   ============================================================ */

   body:has(.dl-wrap) {
    --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --f-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --dl-w: 900px;
    --dl-pad: 20px;
    --dl-r: 20px;
    padding-bottom: 0;
  }
  
  /* ambientné svetlo – tri jemné ohniská, nie jeden veľký gradient */
  body:has(.dl-wrap)::before {
    content: "";
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
      radial-gradient(48% 36% at 50% -8%, rgba(var(--accent-rgb), .26), transparent 70%),
      radial-gradient(34% 28% at 102% 14%, rgba(var(--accent-rgb), .12), transparent 72%),
      radial-gradient(30% 26% at -6% 64%, rgba(var(--accent-rgb), .09), transparent 74%);
  }
  
  /* ---------- hlavička ---------- */
  .dl-head {
    position: sticky; top: 0; z-index: 20;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: none; margin: 0;
    padding: 12px max(var(--dl-pad), calc((100% - var(--dl-w)) / 2 + var(--dl-pad)));
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid var(--border);
  }
  .dl-head .brand {
    font-family: var(--f-display); font-weight: 800; font-size: 1.28rem;
    letter-spacing: -.02em; text-decoration: none; color: var(--text);
  }
  .dl-head .brand span { color: var(--accent); }
  
  /* ---------- hero ---------- */
  .dl-wrap {
    max-width: var(--dl-w); margin: 0 auto;
    padding: 52px var(--dl-pad) calc(64px + env(safe-area-inset-bottom));
  }
  .dl-hero { text-align: center; }
  .dl-eyebrow {
    font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
    letter-spacing: .24em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 14px;
  }
  .dl-hero h1 {
    font-family: var(--f-display); font-weight: 800;
    font-size: clamp(2.1rem, 7vw, 3.15rem);
    line-height: 1.03; letter-spacing: -.04em;
  }
  /* podčiarknutie kreslíme ako background, aby text ostal navrchu */
  .dl-hero h1 span {
    color: var(--accent);
    background: linear-gradient(rgba(var(--accent-rgb), .2), rgba(var(--accent-rgb), .2))
                bottom / 100% .16em no-repeat;
  }
  .dl-lead {
    color: var(--text-secondary);
    margin: 16px auto 0; max-width: 46ch;
    font-size: 1.02rem; line-height: 1.6;
  }
  
  /* razítko verzie – vyzerá ako hlavička účtenky */
  .dl-stamp {
    display: inline-flex; align-items: center; gap: 9px;
    margin-top: 24px; padding: 6px 15px;
    font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    border: 1px dashed rgba(var(--accent-rgb), .38); border-radius: 99px;
  }
  .dl-stamp .dl-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
    animation: dlPing 2.6s ease-out infinite;
  }
  @keyframes dlPing {
    0%   { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), .55); }
    70%  { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
  }
  
  /* ---------- perforácia ---------- */
  .dl-tear {
    position: relative; height: 1px; margin: 40px 0 30px;
    background: repeating-linear-gradient(90deg,
      rgba(var(--accent-rgb), .40) 0 7px, transparent 7px 15px);
  }
  .dl-tear::before, .dl-tear::after {
    content: ""; position: absolute; top: 50%;
    width: 7px; height: 7px; border-radius: 50%;
    transform: translateY(-50%); background: rgba(var(--accent-rgb), .5);
  }
  .dl-tear::before { left: -3px; }
  .dl-tear::after  { right: -3px; }
  
  /* ---------- dve platformy ---------- */
  .dl-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px; align-items: start;
  }
  
  .dl-plat {
    position: relative; overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--dl-r);
    padding: 24px 22px 22px;
    transition: transform .18s ease, box-shadow .22s ease, border-color .22s ease;
  }
  .dl-plat:not(.is-soon):hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), .32);
    box-shadow: 0 16px 40px rgba(var(--accent-rgb), .16);
  }
  /* karta pre zistené zariadenie – jediné miesto, kde tlačíme na plyn */
  .dl-plat.is-you {
    border-color: rgba(var(--accent-rgb), .45);
    box-shadow: 0 24px 58px rgba(var(--accent-rgb), .22);
  }
  .dl-plat.is-you::before {
    content: ""; position: absolute; left: 50%; top: -150px;
    width: 360px; height: 250px; transform: translateX(-50%);
    background: radial-gradient(circle, rgba(var(--accent-rgb), .28), transparent 66%);
    pointer-events: none;
  }
  .dl-plat > * { position: relative; }
  
  .dl-plat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
  .dl-plat h2 {
    font-family: var(--f-display); font-weight: 700;
    font-size: 1.12rem; letter-spacing: -.015em; margin: 0;
  }
  .dl-ic {
    display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: 13px;
    background: rgba(var(--accent-rgb), .13); color: var(--accent);
  }
  .dl-ic svg { width: 22px; height: 22px; }
  .dl-tag {
    margin-left: auto; white-space: nowrap;
    font-family: var(--f-mono); font-size: .61rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); background: rgba(var(--accent-rgb), .14);
    padding: 5px 10px; border-radius: 99px;
  }
  .dl-sub {
    font-size: .87rem; line-height: 1.55;
    color: var(--text-secondary); margin: 0 0 18px;
  }
  
  /* akčné tlačidlo */
  .dl-plat .btn.dl-big {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 14px 20px; border-radius: 14px;
    font-size: .97rem; text-decoration: none;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  }
  .dl-plat .btn.dl-big svg { width: 17px; height: 17px; flex: none; }
  .dl-plat.is-you .btn.dl-big { box-shadow: 0 10px 26px rgba(var(--accent-rgb), .38); }
  .dl-plat .btn.dl-big:hover { transform: translateY(-2px); }
  .dl-plat.is-you .btn.dl-big:hover { box-shadow: 0 14px 32px rgba(var(--accent-rgb), .48); }
  /* druhá platforma – tichšia, ale stále čitateľná */
  .dl-plat .btn.dl-big.ghost {
    background: rgba(var(--accent-rgb), .08);
    border: 1px solid rgba(var(--accent-rgb), .28);
    color: var(--accent);
  }
  .dl-plat .btn.dl-big.ghost:hover { background: rgba(var(--accent-rgb), .14); }
  
  .dl-soon-btn {
    width: 100%; padding: 14px; border-radius: 14px; text-align: center;
    font-family: var(--f-mono); font-size: .82rem; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-muted);
    background: var(--surface-light); border: 1px dashed var(--border);
  }
  
  /* riadky účtenky: názov ····· hodnota */
  .dl-meta {
    margin-top: 16px; display: grid; gap: 7px;
    font-family: var(--f-mono); font-size: .75rem;
    font-variant-numeric: tabular-nums;
  }
  .dl-meta .r { display: flex; align-items: baseline; gap: 8px; }
  .dl-meta .r > span { color: var(--text-muted); }
  .dl-meta .r > i {
    flex: 1 1 auto; min-width: 12px; align-self: center;
    border-bottom: 1px dotted rgba(var(--accent-rgb), .38);
  }
  .dl-meta .r > b { font-weight: 500; color: var(--text-secondary); }
  
  /* iné architektúry */
  .dl-alt {
    margin-top: 12px; font-family: var(--f-mono);
    font-size: .73rem; color: var(--text-muted); line-height: 1.7;
  }
  .dl-alt a {
    color: var(--accent); text-decoration: none;
    border-bottom: 1px dotted currentColor;
  }
  .dl-alt a:hover { border-bottom-style: solid; }
  
  /* kontrolný súčet */
  .dl-hash { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--f-mono); font-size: .69rem; }
  .dl-hash code {
    flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text-muted); background: var(--surface-light);
    padding: 4px 8px; border-radius: 7px;
  }
  .dl-copy {
    flex: none; cursor: pointer; font-family: var(--f-mono); font-size: .68rem;
    color: var(--accent); background: rgba(var(--accent-rgb), .12);
    border: 0; border-radius: 7px; padding: 5px 10px;
  }
  .dl-copy:hover { background: rgba(var(--accent-rgb), .2); }
  
  /* ---------- návod na inštaláciu ---------- */
  .dl-help {
    margin-top: 14px; background: var(--surface-light);
    border: 1px solid transparent; border-radius: 13px; padding: 0 14px;
  }
  .dl-help[open] { border-color: var(--border); }
  .dl-help summary {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; list-style: none; padding: 11px 0;
    font-size: .84rem; font-weight: 600; color: var(--accent);
  }
  .dl-help summary::-webkit-details-marker { display: none; }
  .dl-help summary::after {
    content: "\203A"; margin-left: auto; font-size: 1.2rem; line-height: 1;
    transition: transform .2s ease;
  }
  .dl-help[open] summary::after { transform: rotate(90deg); }
  .dl-help ol { margin: 0 0 12px 18px; font-size: .85rem; line-height: 1.75; }
  .dl-help li::marker { color: var(--accent); font-family: var(--f-mono); }
  .dl-help p { margin: 0 0 12px; font-size: .78rem; line-height: 1.6; color: var(--text-muted); }
  .dl-help code {
    font-family: var(--f-mono); background: var(--surface);
    padding: 2px 6px; border-radius: 6px; font-size: .86em;
  }
  
  /* ---------- kostra pri načítaní ---------- */
  .dl-skel {
    border: 1px solid var(--border); border-radius: var(--dl-r);
    background: var(--surface); padding: 26px 22px; min-height: 236px;
  }
  .dl-skel .l {
    display: block; height: 12px; border-radius: 99px; margin-bottom: 14px;
    background: linear-gradient(90deg,
      var(--surface-light) 25%, var(--surface-hover) 37%, var(--surface-light) 63%);
    background-size: 400% 100%;
    animation: dlShimmer 1.5s ease-in-out infinite;
  }
  .dl-skel .w40 { width: 40%; } .dl-skel .w45 { width: 45%; }
  .dl-skel .w55 { width: 55%; } .dl-skel .w70 { width: 70%; }
  .dl-skel .btn { height: 46px; border-radius: 14px; margin: 22px 0 20px; }
  @keyframes dlShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
  
  /* ---------- chyba ---------- */
  .dl-fail {
    grid-column: 1 / -1; text-align: center;
    border: 1px dashed rgba(var(--accent-rgb), .4); border-radius: var(--dl-r);
    padding: 34px 22px; background: var(--surface);
  }
  .dl-fail p { color: var(--text-secondary); margin-bottom: 16px; font-size: .92rem; }
  
  /* ---------- web fallback ---------- */
  .dl-web {
    margin-top: 22px; text-align: center;
    font-size: .89rem; line-height: 1.6; color: var(--text-secondary);
  }
  .dl-web a { color: var(--accent); text-decoration: none; font-weight: 600; }
  .dl-web a:hover { text-decoration: underline; }
  
  /* ---------- vlastnosti ---------- */
  .dl-features {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px; margin-bottom: 34px;
  }
  .dl-features > div {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 16px; padding: 20px;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  }
  .dl-features > div:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--accent-rgb), .36);
    box-shadow: 0 12px 30px rgba(var(--accent-rgb), .16);
  }
  .dl-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 13px;
    background: rgba(var(--accent-rgb), .13); color: var(--accent);
  }
  .dl-ico svg { width: 21px; height: 21px; }
  .dl-features b { display: block; margin-top: 13px; font-size: .95rem; }
  .dl-features p { font-size: .82rem; line-height: 1.55; margin-top: 5px; }
  
  /* ---------- pätička ---------- */
  .dl-legal { text-align: center; font-size: .76rem; color: var(--text-muted); line-height: 2; }
  .dl-legal a { color: var(--text-secondary); text-decoration: none; }
  .dl-legal a:hover { color: var(--accent); text-decoration: underline; }
  
  /* ---------- focus ---------- */
  .dl-wrap a:focus-visible, .dl-head a:focus-visible,
  .dl-help summary:focus-visible, .dl-copy:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
  }
  
  /* ---------- mobil ---------- */
  @media (max-width: 640px) {
    body:has(.dl-wrap) { --dl-pad: 16px; }
    .dl-wrap { padding-top: 34px; }
    .dl-grid { grid-template-columns: 1fr; gap: 14px; }
    .dl-plat { padding: 20px 18px 18px; border-radius: 18px; }
    .dl-plat:not(.is-soon):hover { transform: none; }
    .dl-tear { margin: 32px 0 24px; }
    .dl-features { grid-template-columns: 1fr; gap: 10px; }
    .dl-features > div {
      display: grid; grid-template-columns: 42px 1fr; column-gap: 14px;
    }
    .dl-features > div:hover { transform: none; }
    .dl-ico { grid-row: span 2; }
    .dl-features b { margin-top: 0; align-self: end; }
    .dl-features p { margin-top: 2px; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .dl-stamp .dl-dot, .dl-skel .l { animation: none; }
    .dl-plat, .dl-features > div, .dl-plat .btn.dl-big { transition: none; }
    .dl-plat:hover, .dl-features > div:hover, .dl-plat .btn.dl-big:hover { transform: none; }
  }