/* ═══════════════════════════════════════════════════════════════
   BookManager product page — tokens first, then sections in page order,
   then the privacy page, dialogs, reveal and breakpoints.
   Built on ../photoselector's system: a light, airy product page with a few
   deep chapters; the screenshots are the colour. The reader chapter borrows
   the app's own warm reader accent. 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: #1a62d0;          /* the app's AccentColor, darkened to 5.2:1 on --bg */
    --accent-hover: #1552b0;
    --dark: #121318;            /* the app's library background */
    --dark-2: #1c1d24;
    --dark-text: #f5f5f7;
    --dark-2nd: #bdc2cf;
    --dark-border: rgba(255, 255, 255, .12);
    --sky: #6aa6ff;             /* dark-band kickers (the app's dark accent) */
    --room: #221d18;            /* the reader's room colour */
    --room-2: #2d261f;
    --amber: #e0a341;           /* the app's ReaderAccent (dark) */
    --paper: #f3e6cc;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;

    --wrap: 1200px;
    --hero: 1440px;
    --gutter: clamp(20px, 3.5vw, 48px);
    --band-y: clamp(64px, 9vw, 120px);
    --r-shot: 14px;             /* macOS window corners at page scale */
    --r-phone: 34px;            /* iPhone screen corners at page scale */
    --r-card: 20px;
    --r-stage: 26px;
    --shadow-hero: 0 40px 80px -40px rgba(18, 19, 24, .6), 0 14px 30px -18px rgba(18, 19, 24, .3);
    --shadow-shot: 0 30px 60px -28px rgba(18, 19, 24, .5), 0 10px 24px -12px rgba(18, 19, 24, .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; }
h1, h2 { text-wrap: balance; }
.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); }
.note a { text-decoration: underline; }   /* not told apart by colour alone */
/* A serif accent word in headings: the app's reader voice. */
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.02em; }

/* ── 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: var(--text-2); }
.lang-btn:hover { color: var(--text); text-decoration: none; }
.lang-btn.active { color: var(--text); background: rgba(0, 0, 0, .06); }
.lang-btn img { width: 20px; height: 10px; border-radius: 2px; }   /* flagcdn's flags are 2:1 */
.nav-lang { display: none; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: clamp(32px, 4.5vw, 64px) 0 clamp(48px, 6vw, 80px); text-align: center; overflow: hidden; }
.hero-copy { max-width: 1000px; display: flex; flex-direction: column; align-items: center; }
.hero-icon { width: 96px; height: 96px; margin-bottom: 18px; }
html[lang="hu"] .hero h1 { font-size: clamp(36px, 5vw, 72px); }
.lede { margin-top: 18px; max-width: 680px; 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: 28px; }

/* Platforms: a pill per store. Pre-release each says "Coming soon"; on release day it becomes a link. */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0; }
.store {
    display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 18px 8px 14px;
    border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-align: left;
}
a.store:hover { text-decoration: none; border-color: var(--muted); }
.store svg { width: 24px; height: 24px; flex: 0 0 auto; fill: currentColor; }
.store b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.store small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.store small::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; border: 1.5px solid var(--muted); vertical-align: 1px; }   /* hollow: not yet available */
.band-dark .store { background: var(--dark-2); border-color: var(--dark-border); color: var(--dark-text); }
.band-dark .store small { color: var(--dark-2nd); }
.band-dark .store small::before { border-color: var(--dark-2nd); }

/* The hero stage: the Mac library with the iPhone reader overlapping its corner. Never cropped by CSS. */
.stage { position: relative; width: min(100% - 48px, 1280px); margin: clamp(36px, 4.5vw, 60px) auto 0; padding-right: clamp(0px, 7vw, 110px); }
.stage-mac img { width: 100%; border-radius: var(--r-shot); box-shadow: var(--shadow-hero); background: var(--dark); }
.shot.stage-phone {
    position: absolute; right: 0; bottom: clamp(-40px, -3vw, -16px); width: clamp(120px, 21%, 260px);
    border-radius: var(--r-phone); padding: 7px; background: #0b0b0e; box-shadow: var(--shadow-hero), inset 0 0 0 1.5px #3a3a40;
}
.shot.stage-phone img { width: 100%; border-radius: calc(var(--r-phone) - 7px); }
.meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 64px); font-size: 15px; color: var(--muted); }
.meta li + li::before { content: '·'; margin: 0 10px; }

/* A screenshot is a link to its full-resolution file; main.js opens it in 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; }
/* iPhone screenshots: a thin device bezel, the screen's own rounded corners. */
.shot-phone { border-radius: var(--r-phone); padding: 6px; background: #0b0b0e; box-shadow: var(--shadow-shot), inset 0 0 0 1.5px #3a3a40; }
.shot-phone img { border-radius: calc(var(--r-phone) - 6px); }

/* ── 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); }
/* The reader chapter: the app's warm reading room. */
.band-room { background: radial-gradient(120% 80% at 50% 0%, var(--room-2), var(--room) 60%); color: var(--dark-text); }
.band-room .head > p:not(.kicker), .band-room figcaption, .band-room .note { color: #d6cbbd; }
.band-room .kicker { color: var(--amber); }
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.head-center { margin-inline: auto; text-align: center; }
.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(--sky); }
.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ── How it works ────────────────────────────────────────── */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: flow; }
.flow li { counter-increment: flow; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; }
.flow h3 { font-size: 21px; }
.flow p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.flow-plain li::before { content: none; }
.flow-plain li { border-top: 3px solid var(--accent); }

/* ── Sources ─────────────────────────────────────────────── */
.src-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.src { padding: 26px 24px; border-radius: var(--r-card); background: var(--bg); }
.src svg { width: 30px; height: 30px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.src h3 { margin-top: 14px; font-size: 19px; }
.src p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.src-note { margin-top: clamp(28px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; list-style: none; padding: 0; }
.src-note li { padding-top: 16px; border-top: 2px solid var(--accent); color: var(--text-2); font-size: 17px; }
.src-note b { display: block; margin-bottom: 6px; color: var(--text); font-size: 18px; }

/* ── 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-copy p { margin-top: 14px; color: var(--text-2); }
.band-dark .split-copy p { color: var(--dark-2nd); }
.band-room .split-copy p { color: #d6cbbd; }
.split-copy .mt { margin-top: 32px; }
.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); }
.wide { margin: 0 0 clamp(40px, 5vw, 72px); }
.wide figcaption { margin-top: 16px; font-size: 15px; }
/* The reader: two iPhone screens, the second a step lower. */
.reader-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.reader-phones .shot:nth-child(2) { margin-top: clamp(32px, 6vw, 80px); }

.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); margin-top: 22px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks-dark li { color: var(--dark-2nd); }
.band-room .ticks li { color: #d6cbbd; }
.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: #2f7be6; }
.band-room .ticks li::before { background-color: #a8701c; }

/* Formats: a row of quiet chips. */
.formats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 clamp(36px, 4vw, 52px); }
.formats li { padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--paper); background: rgba(243, 230, 204, .08); border: 1px solid rgba(243, 230, 204, .18); }

/* ── Devices ─────────────────────────────────────────────── */
.devices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 4vw, 56px); }
.device { padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.device svg { width: 34px; height: 34px; color: var(--text); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.device h3 { margin-top: 14px; font-size: 21px; }
.device p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.device .req { margin-top: 14px; font-size: 14px; color: var(--muted); }
.sync { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sync article { padding: 26px 28px; border-radius: var(--r-card); background: var(--bg); }
.sync h3 { font-size: 19px; }
.sync p { margin-top: 8px; color: var(--text-2); font-size: 16px; }

/* ── 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 {
    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 { display: none; }
.catalog summary::after, .qa 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; }
.cat-list { margin: 0; padding: 0 0 22px 20px; color: var(--text-2); font-size: 16px; line-height: 1.5; }
.cat-list li + li { margin-top: 4px; }

/* ── Trust ───────────────────────────────────────────────── */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio article { padding: 28px; border-radius: var(--r-card); background: var(--dark-2); border: 1px solid var(--dark-border); }
.trio h3 { font-size: 21px; }
.trio p { margin-top: 10px; color: var(--dark-2nd); font-size: 17px; }
.trio-foot { margin-top: 28px; }
.lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sync-note { margin-top: 24px; max-width: 52em; }
.band-dark .trio-foot a { color: var(--sky); text-decoration: underline; }

/* ── Availability ────────────────────────────────────────── */
.avail { max-width: 760px; 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 { margin: 6px 0 4px; }
.amount b { font-size: 48px; font-weight: 700; letter-spacing: -.025em; margin-right: 8px; }
.amount span { color: var(--text-2); }
.amount .amount-label { display: block; margin-bottom: 2px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.avail .stores { margin: 8px 0 4px; }
.hero .stores { margin-top: 28px; }

/* ── 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 h2 { max-width: 14em; margin-inline: auto; }
.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 p a { text-decoration: underline; }
.foot-copy { grid-column: 1 / -1; font-size: 12px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ── Privacy Policy page (privacy.html, body.pv) ────────────
   After ../photoselector's: summary cards, then a sticky contents list beside the article. */
.pv-wrap { width: min(100% - 2 * var(--gutter), 1120px); margin-inline: auto; }
.pv [id] { scroll-margin-top: 76px; }

.pv-hero { padding: clamp(36px, 5.5vw, 72px) 0 clamp(28px, 3.5vw, 44px); }
.pv-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.pv-headline { margin-top: 14px; max-width: 16em; font-size: clamp(36px, 4.6vw, 60px); font-weight: 700; line-height: 1.05; letter-spacing: -.032em; color: var(--text); text-wrap: balance; }
.pv-sub { margin-top: 18px; max-width: 38em; font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); text-wrap: pretty; }
.pv-doc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border); max-width: 760px; }
.pv-doc h1 { font-size: 17px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.pv-doc p { font-size: 15px; color: var(--muted); }
.pv-doc p::before { content: '·'; margin-right: 12px; }

.pv-cards { list-style: none; margin: clamp(28px, 3.5vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pv-card { padding: 22px 20px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border); }
.pv-card svg { width: 28px; height: 28px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-card h3 { margin-top: 14px; font-size: 18px; }
.pv-card p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--text-2); }

.pv-body { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 56px; align-items: start; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.pv-toc { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding-bottom: 8px; }
.pv-toc .label, .pv-toc-m summary { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pv-toc ol, .pv-toc-m ol { list-style: none; margin: 10px 0 0; padding: 0; }
.pv-toc a, .pv-toc-m a {
    display: block; padding: 7px 12px; min-height: 36px; border-left: 2px solid var(--border);
    color: var(--text-2); font-size: 15px; line-height: 1.35;
}
.pv-toc a:hover, .pv-toc-m a:hover { color: var(--text); text-decoration: none; border-left-color: var(--muted); }
.pv-toc a[aria-current="true"] { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.pv-toc-m { display: none; margin-bottom: 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pv-toc-m summary { min-height: 48px; display: flex; align-items: center; padding: 0 18px; cursor: pointer; list-style: none; }
.pv-toc-m summary::-webkit-details-marker { display: none; }
.pv-toc-m summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 400; color: var(--accent); }
.pv-toc-m[open] summary::after { content: '–'; }
.pv-toc-m ol { margin: 0; padding: 0 10px 12px; }
.pv-toc-m a { min-height: 44px; display: flex; align-items: center; }

.pv-article { max-width: 760px; }
.pv-article section + section { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--border); }
.pv-article h2 { position: relative; font-size: clamp(22px, 2.1vw, 27px); margin-bottom: 12px; }
.pv-article h3 { font-size: 18px; margin: 20px 0 8px; }
.pv-anchor { margin-left: 8px; color: var(--muted); font-weight: 400; opacity: 0; text-decoration: none; }
.pv-article h2:hover .pv-anchor, .pv-anchor:focus-visible { opacity: 1; }
.pv-article p, .pv-article li { color: var(--text-2); font-size: 17px; text-wrap: pretty; }
.pv-article p + p, .pv-article p + ul, .pv-article ul + p { margin-top: 12px; }
.pv-article ul { margin: 0; padding-left: 1.2em; }
.pv-article li + li { margin-top: 8px; }
.pv-article b { color: var(--text); font-weight: 600; }
.pv-article p a, .pv-article li a, .pv-contact p a { text-decoration: underline; }

.pv-contact { margin-bottom: clamp(48px, 6vw, 88px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--border);
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; }
.pv-contact h2 { font-size: clamp(22px, 2.1vw, 27px); }
.pv-contact p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
.pv-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pv-contact .btn-ghost { color: var(--accent); }

@media (max-width: 1023px) {
    .pv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pv-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pv-toc { display: none; }
    .pv-toc-m { display: block; }
    .pv-article { margin-inline: auto; max-width: 760px; }
}
@media (max-width: 700px) {
    .pv-cards { grid-template-columns: minmax(0, 1fr); }
    .pv-contact { grid-template-columns: minmax(0, 1fr); }
    .pv-anchor { display: none; }
    .pv-doc p::before { content: none; }
}

/* ── Zoom dialog ─────────────────────────────────────────── */
.dlg {
    padding: 0; border: 0; border-radius: 18px; background: #0c0d11; color: var(--dark-text);
    width: min(96vw, 1600px); max-height: 94vh; overflow: hidden;
}
.dlg.is-tall { width: min(96vw, 560px); }   /* a phone screenshot */
.dlg::backdrop { background: rgba(5, 6, 10, .82); }
.dlg-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px 10px 20px; }
.dlg-cap { flex: 1; min-width: 0; 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); }
.zoom-body { overflow: auto; max-height: calc(94vh - 56px); -webkit-overflow-scrolling: touch; }
.zoom-body img { width: 100%; height: auto; }
.zoom-body.is-actual img { width: auto; max-width: none; }
.zoom-error { padding: 40px 20px; text-align: center; color: var(--dark-2nd); }
@media (max-width: 700px) {
    .dlg, .dlg.is-tall { width: 100vw; max-width: 100vw; max-height: 100dvh; border-radius: 0; }
    .zoom-body { max-height: calc(100dvh - 56px); }
}

/* ── 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; }
    .src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@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-cta { margin-left: auto; }
    .nav-cta .lang-sw { display: none; }
    .nav-lang { display: block; padding: 10px 0 0; margin-top: 6px; border-top: 1px solid var(--border); }
    .nav-lang .lang-sw { gap: 8px; }
    .nav-lang .lang-btn { display: inline-flex; padding: 10px 12px; font-size: 15px; }
    html:not(.js) .nav-toggle { display: none; }
    html:not(.js) .nav-lang { margin: 0; padding: 0; border: 0; }
    html:not(.js) .nav-in { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 4px 24px; }
    html:not(.js) .nav-links { display: flex; position: static; order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; gap: 0 18px; padding: 0; background: none; border: 0; }
    html:not(.js) .nav-links a { padding: 6px 0; font-size: 15px; }
    .split { grid-template-columns: minmax(0, 1fr); }
    .flow, .devices { grid-template-columns: minmax(0, 1fr); }
    .src-note, .trio, .sync { grid-template-columns: minmax(0, 1fr); }
    .foot-in { grid-template-columns: minmax(0, 1fr); }
    .meta { flex-direction: column; gap: 2px; }
    .meta li + li::before { content: none; }
}
@media (max-width: 720px) {
    body { font-size: 17px; }
    .duo, .catalog, .ticks, .src-grid { grid-template-columns: minmax(0, 1fr); }
    .nav .btn-sm { display: none; }
    .hero-icon { width: 80px; height: 80px; }
    .stage { width: calc(100% - 24px); padding-right: 0; }
    .shot.stage-phone { position: relative; right: auto; bottom: auto; width: 62%; margin: -28% auto 0; }
    .stores { flex-direction: column; align-items: stretch; width: 100%; max-width: 340px; }
    .lib-grid { grid-template-columns: minmax(0, 1fr); }
    .flow li, .device { padding: 22px; }
    .meta { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal.in { animation: none; }
    .shot { transition: none; }
    .shot:hover { transform: none; }
}
