/* ═══════════════════════════════════════════════════════════════
   DriveManager landing page — tokens first, then sections in page order,
   then dialogs, reveal and breakpoints.
   Light, airy product page with a few deep chapters; the screenshots are the
   colour. System font only: nothing is loaded from a font service.
═══════════════════════════════════════════════════════════════ */
:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-2: #515157;
    --muted: #6e6e73;
    --border: #dadae0;
    --accent: #0066cc;
    --accent-hover: #0055aa;
    --dark: #10131b;
    --dark-2: #191d28;
    --dark-text: #f5f5f7;
    --dark-2nd: #bbc4d4;
    --dark-border: rgba(255, 255, 255, .12);
    --glow: #dce9ff;
    --cyan: #3cc4ff;           /* the app icon's folder colour, used sparingly */

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

    --wrap: 1200px;
    --stage: 1240px;
    --gutter: clamp(20px, 3.5vw, 48px);
    --band-y: clamp(64px, 9vw, 120px);
    --r-shot: 14px;             /* the app windows' own corner radius at page scale */
    --r-card: 20px;
    --r-stage: 28px;
    --shadow-shot: 0 30px 60px -28px rgba(16, 19, 27, .45), 0 10px 24px -12px rgba(16, 19, 27, .25);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 18px/1.55 var(--font); -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 650; line-height: 1.08; letter-spacing: -.028em; }
h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.note { font-size: 15px; color: var(--muted); }
.center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 0; cursor: pointer;
    background: var(--accent); color: #fff; font: 500 17px/1 var(--font); text-decoration: none;
    transition: background .2s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 18px; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(245, 245, 247, .82); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0 auto; padding: 0; }
.nav-links a { color: var(--text); font-size: 13px; opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; color: var(--text); }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.lang-sw { display: flex; gap: 2px; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; color: inherit; opacity: .55; }
.lang-btn:hover { opacity: 1; text-decoration: none; }
.lang-btn.active { opacity: 1; background: rgba(0, 0, 0, .06); }
.lang-btn img { width: 16px; height: 12px; border-radius: 2px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: clamp(32px, 4.5vw, 64px) 0 clamp(56px, 7vw, 96px);
    background: radial-gradient(60% 50% at 50% 100%, var(--glow), transparent 70%), var(--bg);
    text-align: center;
}
.hero-copy { max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
/* The Hungarian title is about a third longer: a smaller size keeps it to two lines on a desktop. */
html[lang="hu"] .hero h1 { font-size: clamp(36px, 4.7vw, 68px); }
h1 { text-wrap: balance; }
.hero-icon { width: 64px; height: 64px; margin-bottom: 16px; filter: drop-shadow(0 8px 16px rgba(0, 40, 120, .2)); }
.lede { margin-top: 16px; max-width: 720px; font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px; margin-top: 26px; }
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--text-2); }
.soon::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(60, 196, 255, .2); }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.meta li + li::before { content: '·'; margin: 0 10px; }
.stage { margin: clamp(28px, 3.5vw, 48px) auto 0; width: min(100% - 40px, var(--stage)); }
.stage figcaption { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* A screenshot is a button that opens the zoom dialog. The image keeps the
   app window's own frame: no drawn traffic lights, no cropping by object-fit. */
.shot {
    display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
    border-radius: var(--r-shot); overflow: hidden; box-shadow: var(--shadow-shot);
    transition: transform .3s var(--ease);
}
.shot:hover { transform: translateY(-2px); }
.shot img { width: 100%; height: auto; }
.shot-hero { border-radius: 16px; }

/* ── Bands ───────────────────────────────────────────────── */
.band { padding: var(--band-y) 0; }
.band-soft { background: var(--surface); }
.band-dark { background: var(--dark); color: var(--dark-text); }
.band-dark .note, .band-dark figcaption, .band-dark .head p:not(.kicker) { color: var(--dark-2nd); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head > p:not(.kicker) { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); }
.kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.band-dark .kicker { color: var(--cyan); }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ── A · Sources ─────────────────────────────────────────── */
.src { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.src-pairs { position: sticky; top: 88px; padding: 32px; border-radius: var(--r-card); background: var(--dark); color: var(--dark-text); }
.src-pairs .label { color: var(--dark-2nd); }
.src-pairs ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 16px; }
.src-pairs li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; }
.pair { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--dark-2); }
.pair i { font-style: normal; }
.arrow { color: var(--dark-2nd); font-size: 14px; }
.src-pairs .note { color: var(--dark-2nd); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.dot-local { background: #8e8e93; }
.dot-cloud { background: var(--cyan); }
.dot-server { background: #5e5ce6; }
.dot-store { background: #ff9f0a; }
.src-groups { display: grid; gap: 16px; }
.group { padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.group h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
.group p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.group .setup { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #fff8e6; color: #5c4400; font-size: 15px; }
.group .setup b { display: block; margin-bottom: 2px; }

/* ── Player (the loop in #files) ─────────────────────────── */
.player { position: relative; margin: 0 0 clamp(48px, 6vw, 88px); }
.player-poster { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-shot); box-shadow: var(--shadow-shot); background: #1b1e26; }
.player-video { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--r-shot); background: transparent; }
/* The video sits exactly over the poster and is shown only once a real frame
   is on screen (main.js adds .is-live), so a failed or grey video never covers it. */
.player-video { position: absolute; inset: 0 0 auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .3s; pointer-events: none; }
.player.is-live .player-video { opacity: 1; }
.player-btn {
    position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; background: rgba(16, 19, 27, .72); color: #fff; backdrop-filter: blur(8px);
}
.player-btn svg { width: 18px; height: 18px; fill: currentColor; }
.player-btn .i-pause, .player-btn[aria-pressed="true"] .i-play { display: none; }
.player-btn[aria-pressed="true"] .i-pause { display: block; }
.player-fail {
    position: absolute; left: 16px; right: 16px; bottom: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    padding: 14px 18px; border-radius: 14px; background: rgba(16, 19, 27, .88); color: var(--dark-text); font-size: 15px;
}
.player-fail[hidden] { display: none; }
.player figcaption { margin-top: 16px; font-size: 15px; }

/* ── Splits, duos, tiles ─────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); }
.split-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-copy p { margin-top: 14px; color: var(--text-2); }
.band-dark .split-copy p { color: var(--dark-2nd); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-bottom: clamp(32px, 4vw, 56px); }
.tile { margin: 0; }
.tile figcaption { margin-top: 16px; }
.tile figcaption p { margin-top: 8px; color: var(--text-2); font-size: 17px; }
.band-dark .tile figcaption p { color: var(--dark-2nd); }
.tile-sm figcaption { font-weight: 600; font-size: 17px; }
.trio-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); margin-bottom: clamp(40px, 5vw, 64px); }
.wide { margin: 0 0 clamp(40px, 5vw, 72px); }
.wide figcaption { margin-top: 16px; font-size: 15px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.split .ticks { grid-template-columns: minmax(0, 1fr); }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks-dark li { color: var(--dark-2nd); }
.ticks li::before {
    content: ''; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.ticks-dark li::before { background-color: #2a7bd6; }

/* ── C · Viewer formats ──────────────────────────────────── */
.formats { padding: 32px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.formats ul { list-style: none; padding: 0; margin: 18px 0 0; columns: 3 240px; column-gap: 32px; }
.formats li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid #ececf0; font-size: 16px; color: var(--text-2); }

/* ── D · Utility card ────────────────────────────────────── */
.utility { max-width: 560px; padding: 24px 28px; border-radius: var(--r-card); background: var(--dark-2); border: 1px solid var(--dark-border); }
.utility h3 { font-size: 20px; }
.utility p { margin-top: 8px; color: var(--dark-2nd); font-size: 16px; }

/* ── E · Keyboard steps ──────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0 auto 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; counter-reset: step; }
.steps li {
    counter-increment: step; display: flex; align-items: center; gap: 14px;
    padding: 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); font-weight: 500;
}
.steps li::before { content: counter(step); color: var(--muted); font-size: 14px; font-weight: 600; }
kbd {
    display: inline-block; min-width: 52px; padding: 8px 12px; text-align: center;
    font: 600 15px/1 var(--font); color: var(--text);
    background: linear-gradient(#fff, #eeeef2); border: 1px solid #cfcfd6; border-bottom-width: 3px; border-radius: 9px;
}
#keys .split { margin-top: clamp(40px, 5vw, 64px); margin-bottom: 0; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* ── F · Look ────────────────────────────────────────────── */
.look-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.look-tabs button {
    min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border); cursor: pointer;
    background: var(--surface); color: var(--text); font: 500 15px/1 var(--font);
}
.look-tabs button[aria-selected="true"] { background: var(--text); color: #fff; border-color: var(--text); }
.look-tabs button[aria-selected="true"]::before { content: '✓ '; }
.look-panel { position: relative; max-width: 1160px; margin: 0 auto; }
.look-panel img { transition: opacity .2s; }
.look-panel img.swap { opacity: .35; }
.look-error { margin-top: 12px; text-align: center; color: #b3261e; font-size: 15px; }
#look .note { margin-top: 28px; }

/* ── Catalogue ───────────────────────────────────────────── */
.catalog { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.catalog details, .qa details { border-bottom: 1px solid var(--border); }
.catalog summary, .qa summary, .next summary {
    list-style: none; cursor: pointer; position: relative; padding: 20px 36px 20px 0; font-size: 19px; font-weight: 600;
}
.catalog summary::-webkit-details-marker, .qa summary::-webkit-details-marker, .next summary::-webkit-details-marker { display: none; }
.catalog summary::after, .qa summary::after, .next summary::after {
    content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s var(--ease);
}
details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.catalog details p { padding: 0 0 22px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.next { margin-top: 36px; padding: 0 24px; border-radius: 16px; border: 1px dashed #c3c3cb; }
.next p { padding-bottom: 14px; color: var(--muted); font-size: 16px; }
.next p + p { padding-bottom: 22px; }

/* ── Trust ───────────────────────────────────────────────── */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trio article { padding: 28px; border-radius: var(--r-card); background: var(--bg); }
.trio p { margin-top: 10px; color: var(--text-2); font-size: 17px; }

/* ── Availability ────────────────────────────────────────── */
.avail { max-width: 720px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.avail img { width: 112px; height: 112px; margin-bottom: 8px; }
.avail h2 + p { color: var(--text-2); font-size: 19px; }
.amount b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin-right: 8px; }
.amount span { color: var(--text-2); }
.avail .btn { margin-top: 10px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { max-width: 860px; }
.qa details p { padding: 0 0 22px; color: var(--text-2); max-width: 44em; }

/* ── End CTA ─────────────────────────────────────────────── */
.end { text-align: center; background: var(--dark); color: var(--dark-text); }
.end p { margin: 16px auto 30px; max-width: 34em; color: var(--dark-2nd); font-size: 19px; }

/* ── Footer ──────────────────────────────────────────────── */
.foot { padding: 44px 0 36px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.foot-in { display: grid; grid-template-columns: 1fr auto auto; gap: 18px 36px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 8px; }
.foot-brand b { color: var(--text); font-size: 16px; }
.foot-copy { grid-column: 1 / -1; font-size: 12px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ── Dialogs ─────────────────────────────────────────────── */
.dlg {
    padding: 0; border: 0; border-radius: 18px; background: #0c0e14; color: var(--dark-text);
    width: min(96vw, 1600px); max-height: 94vh; overflow: hidden;
}
.dlg::backdrop { background: rgba(5, 7, 12, .82); }
.dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; }
.dlg-bar h2 { font-size: 16px; font-weight: 600; letter-spacing: 0; }
.dlg-cap { font-size: 14px; color: var(--dark-2nd); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlg-x {
    flex: 0 0 auto; min-height: 36px; padding: 6px 16px; border-radius: 999px; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .14); color: #fff; font: 500 14px/1 var(--font);
}
.dlg-x:hover { background: rgba(255, 255, 255, .24); }
.dlg video { width: 100%; height: auto; max-height: calc(94vh - 56px); background: #000; }
.zoom-body { overflow: auto; max-height: calc(94vh - 56px); -webkit-overflow-scrolling: touch; }
.zoom-body img { width: 100%; height: auto; }
.zoom-error { padding: 40px 20px; text-align: center; color: var(--dark-2nd); }
/* Phones: the zoomed shot keeps its full width and pans inside the dialog,
   never widening the page. */
@media (max-width: 700px) {
    .dlg { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
    .zoom-body { max-height: calc(100dvh - 56px); }
    .zoom-body img { width: 200%; max-width: none; }
}

/* ── Reveal: content is visible by default. Once main.js arms its observer it
   plays a short entrance on each element as it arrives; nothing waits hidden. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal.in { animation: rise .35s var(--ease) both; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
    .nav-links { gap: 16px; }
}
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute; top: 52px; left: 0; right: 0; margin: 0; padding: 6px var(--gutter) 18px;
        flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 0; font-size: 17px; opacity: 1; }
    .nav .lang-sw { display: none; }
    .src, .split, .split-rev, #keys .split { grid-template-columns: minmax(0, 1fr); }
    .src-pairs { position: static; }
    .trio-shots { grid-template-columns: minmax(0, 1fr); }
    .trio { grid-template-columns: minmax(0, 1fr); }
    .foot-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    body { font-size: 17px; }
    .duo, .catalog, .ticks { grid-template-columns: minmax(0, 1fr); }
    .nav .btn-sm { display: none; }
    .stage { width: calc(100% - 24px); }
    .src-pairs, .group, .formats { padding: 22px; }
    .steps { flex-direction: column; align-items: stretch; }
    .player-fail { position: static; margin-top: 12px; }
    .meta { flex-direction: column; gap: 2px; }
    .meta li + li::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal.in { animation: none; }
    .shot, .player-video, .look-panel img { transition: none; }
    .shot:hover { transform: none; }
}
