/* DiaryPack — veřejný web (landing page + zásady ochrany soukromí).
   Vizuální jazyk appky: černobílé chrome, barvu nesou jen emoce, Inter.
   Bez frameworku a bez externích zdrojů. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fff;
  --fg: #111;
  --text: #333;
  --muted: #666;
  --soft: #8c8c8c;
  --line: #e6e6e6;
  --border: #d4d4d4;
  --surface: #f5f5f5;
  --track: #ededed;
  --loop: #16161a;
  --knob: #fff;
  --hatch: repeating-linear-gradient(135deg, #8c8c8c 0 1.5px, #f4f4f4 1.5px 4px);
  --pad: 20px;
  color-scheme: light dark;
}
/* Režim: podle systému, nebo ručně přepínačem v liště (data-theme na <html>,
   volba v localStorage). Tmavé hodnoty jsou proto dvakrát: pro systémový
   tmavý režim bez ruční volby a pro ručně zvolený tmavý. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --fg: #f3f3f3;
    --text: #cfcfcf;
    --muted: #a0a0a0;
    --soft: #6f6f73;
    --line: #232325;
    --border: #3a3a3c;
    --surface: #161618;
    --track: #242426;
    --loop: #f3f3f3;
    --knob: #0b0b0c;
    --hatch: repeating-linear-gradient(135deg, #8c8c8c 0 1.5px, #1c1c1e 1.5px 4px);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --fg: #f3f3f3;
  --text: #cfcfcf;
  --muted: #a0a0a0;
  --soft: #6f6f73;
  --line: #232325;
  --border: #3a3a3c;
  --surface: #161618;
  --track: #242426;
  --loop: #f3f3f3;
  --knob: #0b0b0c;
  --hatch: repeating-linear-gradient(135deg, #8c8c8c 0 1.5px, #1c1c1e 1.5px 4px);
}
:root[data-theme="light"] { color-scheme: light; }
/* Sekce, které jsou tmavé vždy (Soukromí). */
.dark {
  --bg: #0b0b0c;
  --fg: #f3f3f3;
  --text: #cfcfcf;
  --muted: #a0a0a0;
  --soft: #6f6f73;
  --line: #232325;
  --border: #3a3a3c;
  --surface: #161618;
  --track: #242426;
  background: var(--bg);
  color: var(--fg);
}
@media (min-width: 720px) { :root { --pad: 40px; } }
@media (min-width: 1040px) { :root { --pad: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 var(--pad); }

/* ── Emoce ─────────────────────────────────────────────────────────── */
.ec { background: var(--c); }
.ef { fill: var(--c); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ec { background: var(--cd); }
  :root:not([data-theme="light"]) .ef { fill: var(--cd); }
}
:root[data-theme="dark"] .ec { background: var(--cd); }
:root[data-theme="dark"] .ef { fill: var(--cd); }
.dark .ec { background: var(--cd); }
.dark .ef { fill: var(--cd); }
.hatch { background: var(--hatch); }

/* Emoční pruh (řádek vzpomínky): segmenty + značka celkového pocitu. */
.bar { display: flex; align-items: center; gap: 10px; }
.bar-track { flex: 1; height: 5px; background: var(--track); border-radius: 3px; display: flex; gap: 1px; overflow: hidden; }
.bar-track > span { height: 100%; flex: none; transition: width .24s ease-out; }
.mark { position: relative; width: 30px; height: 12px; flex: none; }
.mark::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1.5px; background: var(--soft); }
.mark::after { content: ""; position: absolute; left: 50%; top: 2px; width: 1.5px; height: 8px; background: var(--soft); }
.mark i { position: absolute; z-index: 1; top: 0; width: 10px; height: 10px; border: 2px solid var(--fg); background: var(--bg); border-radius: 50%; transform: translateX(-50%); transition: left .24s ease-out, opacity .2s; }
.mark i.neg { background: var(--fg); }

/* ── Tlačítka ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 99px;
  font-weight: 700; font-size: 17px; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease-out, background .15s;
}
.btn:hover { color: inherit; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { color: var(--bg); opacity: .88; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-soon { background: var(--surface); border-color: var(--border); color: var(--muted); cursor: default; }
.btn-soon:active { transform: none; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600; }
.btn svg { width: 20px; height: 20px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* ── Horní lišta ───────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand:hover { color: inherit; }
.brand svg { width: 24px; height: 28px; }
.logo-loop { fill: var(--loop); }
.logo-knob { fill: var(--knob); }
.nav { display: none; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; }
.top-right { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lang a { text-decoration: none; padding: 4px 2px; }
.lang a[aria-current] { color: var(--fg); font-weight: 800; }
.top .btn-sm { display: none; }
.theme { display: none; width: 40px; height: 40px; padding: 0; border: 1.5px solid var(--border); border-radius: 50%; background: transparent; color: var(--fg); cursor: pointer; place-items: center; }
html.js .theme { display: grid; }
.theme:hover { background: var(--surface); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn-sm { display: inline-flex; }
}

/* ── Sekce obecně ──────────────────────────────────────────────────── */
section { position: relative; }
.sec { padding: 96px 0; }
@media (min-width: 1040px) { .sec { padding: 144px 0; } }
.eyebrow { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: var(--muted); }
.h2 { margin: 0; font-size: clamp(40px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.lead { margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; color: var(--text); max-width: 600px; text-wrap: pretty; }
.sec-head { max-width: 900px; margin-bottom: 56px; }
@media (min-width: 1040px) { .sec-head { margin-bottom: 80px; } }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: start; }
.hero-pre { margin: 0; font-size: clamp(24px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--soft); }
.hero-h1 { margin: 10px 0 0 -.05em; font-size: clamp(56px, 15vw, 172px); text-wrap: balance; font-weight: 800; letter-spacing: -.058em; line-height: .9; }
.hero-q { display: grid; }
.hero-q .q { grid-area: 1 / 1; visibility: hidden; }
.hero-q .q.on { visibility: visible; }
.hero-q .q, .hero-sub { text-wrap: balance; }
.hero-sub { margin-top: 18px; }
.hero .lead { margin-top: 32px; max-width: 560px; }
.hero .ctas { margin-top: 32px; }
.hero-bar { margin-top: 56px; margin-left: calc(-1 * var(--pad)); }
.hero-bar-row { display: flex; align-items: center; gap: 18px; }
.hero-track { flex: 1; height: 48px; background: var(--track); border-radius: 0 24px 24px 0; display: flex; gap: 4px; overflow: hidden; }
.hero-track span { display: flex; align-items: center; padding-left: 18px; font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; }
.hero-mark { position: relative; width: 64px; height: 30px; flex: none; }
.hero-mark::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2.5px; background: var(--soft); }
.hero-mark::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2.5px; height: 18px; background: var(--soft); }
.hero-mark i { position: absolute; z-index: 1; left: 83%; top: 1px; width: 28px; height: 28px; border: 4px solid var(--fg); background: var(--bg); border-radius: 50%; transform: translateX(-50%); }
.hero-legend { display: flex; justify-content: space-between; padding-left: var(--pad); margin-top: 10px; font-size: 14px; color: var(--muted); }
.hero-phone { display: none; }
@media (min-width: 720px) {
  .hero-track { height: 60px; border-radius: 30px; }
  .hero-bar { margin-left: 0; }
  .hero-legend { padding-left: 0; }
  .hero-track span { font-size: 18px; padding-left: 24px; }
  .hero-mark { width: 96px; height: 36px; }
  .hero-mark::before { top: 17px; }
  .hero-mark::after { top: 8px; height: 20px; }
  .hero-mark i { width: 32px; height: 32px; top: 2px; }
}
@media (min-width: 1040px) {
  .hero { padding: 56px 0 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 64px; }
  .hero-phone { display: block; margin-top: 8px; }
  .hero-h1 { font-size: min(8.2vw, 128px); }
  .hero-bar { margin-top: 72px; }
}
/* Pruh se po načtení natáhne: délka = síla, kolečko = celkově. */
@media (prefers-reduced-motion: no-preference) {
  .hero-q .q { opacity: 0; transition: opacity .5s, visibility .5s; }
  .hero-q .q.on { opacity: 1; }
  .hero-track span { animation: grow .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-track span:nth-child(2) { animation-delay: .15s; }
  .hero-mark i { animation: slide .3s ease-out .75s both; }
}
@keyframes grow { from { max-width: 0; } to { max-width: 100%; } }
@keyframes slide { from { left: 50%; opacity: 0; } to { left: 83%; opacity: 1; } }

/* ── HTML telefon ──────────────────────────────────────────────────── */
.phone { width: 330px; padding: 9px; background: #111; border-radius: 54px; color: #111; font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1.5px #2a2a2a; }
.phone { --bg: #fff; --fg: #111; --muted: #666; --soft: #999; --track: #eee; --line: #e6e6e6; --border: #d4d4d4; }
.phone .ec { background: var(--c) !important; } /* telefon je vždy světlý */
.screen { position: relative; height: 740px; background: #fff; border-radius: 45px; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 26px 4px; font-size: 13px; font-weight: 600; }
.ph-batt { width: 18px; height: 10px; border: 1.5px solid #111; border-radius: 3px; position: relative; }
.ph-batt::after { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #111; border-radius: 1px; }
.ph-title { display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 10px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.ph-strip { display: flex; align-items: center; gap: 2px; height: 92px; }
.ph-tile { width: 92px; height: 92px; flex: none; background: #111; color: #fff; border-radius: 0 46px 46px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-size: 12px; }
.ph-tile b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.ph-days { flex: 1; display: flex; justify-content: space-around; padding-right: 6px; }
.ph-day { width: 36px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; border-radius: 20px; border: 2px solid transparent; }
.ph-day.sel { border-color: #111; }
.ph-day small { font-size: 10.5px; color: #555; }
.ph-day b { font-size: 18px; line-height: 1; }
.ph-day em { font-style: normal; font-size: 9.5px; color: #777; }
.ph-ind { display: flex; gap: 1px; height: 3px; width: 22px; background: #eee; border-radius: 2px; overflow: hidden; }
.ph-ind span { width: 6px; flex: none; }
.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.seg { display: flex; border: 1.5px solid #d4d4d4; border-radius: 99px; padding: 2px; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.seg span { padding: 4px 10px; color: #777; border-radius: 99px; }
.seg span.on { background: #111; color: #fff; }
.ph-row { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid #e6e6e6; }
.ph-row.hl { border: 2px solid #111; border-radius: 14px; margin: 0 6px; }
.ph-time { width: 38px; flex: none; font-size: 12px; color: #666; padding-top: 2px; }
.ph-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ph-names { font-size: 12px; color: #666; }
.ph-card { margin: 14px 14px 0; border: 1.5px solid #d4d4d4; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.ph-card-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.ph-card-h span { display: flex; align-items: center; gap: 6px; }
.ph-card-h small { font-size: 11.5px; color: #666; font-weight: 400; }
.ph-fab { position: absolute; right: 16px; bottom: 76px; width: 52px; height: 52px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; }
.ph-nav { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1.5px solid #e6e6e6; display: flex; justify-content: space-around; align-items: center; font-size: 10px; color: #666; }
.ph-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ph-nav span.on { color: #111; font-weight: 700; }

/* ── Mapa pocitů ───────────────────────────────────────────────────── */
.feel-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1040px) { .feel-grid { grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 64px; } }
.mapbox { display: grid; grid-template-columns: 18px 1fr; grid-template-rows: 1fr auto; gap: 8px 10px; }
.map-y { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.map-y span { writing-mode: vertical-rl; transform: rotate(180deg); }
.map-y svg { width: 14px; height: 14px; }
.map {
  position: relative; aspect-ratio: 1 / 1.12; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; cursor: crosshair; overflow: hidden;
}
@media (min-width: 720px) { .map { aspect-ratio: 1 / 1; } }
.map::before, .map::after { content: ""; position: absolute; background: var(--border); pointer-events: none; }
.map::before { left: 50%; top: 0; bottom: 0; width: 1.5px; }
.map::after { top: 50%; left: 0; right: 0; height: 1.5px; }
.map-q { position: absolute; font-size: 13px; color: var(--muted); pointer-events: none; z-index: 2; }
.map-q.tl { left: 14px; top: 10px; } .map-q.tr { right: 14px; top: 10px; }
.map-q.bl { left: 14px; bottom: 10px; } .map-q.br { right: 14px; bottom: 10px; }
.map-x { grid-column: 2; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); }
.dot {
  position: absolute; z-index: 1; width: 28px; height: 28px; margin: -14px 0 0 -14px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.dot::before { content: ""; width: var(--s, 11px); height: var(--s, 11px); border-radius: 50%; background: var(--c); transition: width .14s ease-out, height .14s ease-out, box-shadow .14s; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dot::before { background: var(--cd); } }
:root[data-theme="dark"] .dot::before { background: var(--cd); }
.dot.hover { z-index: 25; --s: 17px; }
.dot.hover::before { box-shadow: 0 0 0 2.5px var(--surface), 0 0 0 4px var(--fg); }
.dot.sel { z-index: 20; --s: 22px; }
.dot.sel::before { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--fg); }
.dot-label { position: absolute; z-index: 30; transform: translate(-50%, calc(-100% - 18px)); background: var(--fg); color: var(--bg); font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .dot::before, .bar-track > span, .mark i { transition: none; } }

.panel { display: flex; flex-direction: column; gap: 28px; }
.panel h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; display: flex; justify-content: space-between; align-items: baseline; }
.panel h3 small { font-size: 13px; font-weight: 500; color: var(--muted); }
.panel .hint { margin: 0; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip .hatch { width: 16px; height: 10px; border-radius: 3px; }
.echip { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px 0 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; font-weight: 700; }
.echip .dotc { width: 10px; height: 10px; border-radius: 50%; }
.pips { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.pip { width: 10px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.pip::before { content: ""; width: 4px; height: var(--h); border-radius: 2px; background: var(--border); }
.pip.on::before { background: var(--fg); }
.x { width: 32px; height: 32px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.x:hover { background: var(--surface); }
.scale { position: relative; display: flex; justify-content: space-between; align-items: center; height: 36px; }
.scale::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: var(--border); }
.step { position: relative; z-index: 1; width: 36px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.step::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--soft); background: var(--bg); transition: all .2s ease-out; }
.step.on::before { width: 28px; height: 28px; border: 3px solid var(--fg); }
.step.on.neg::before { background: var(--fg); }
.scale-l { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Řádek vzpomínky (náhled ve výpisu). */
.row-card { border: 1.5px solid var(--border); border-radius: 16px; padding: 16px 18px; background: var(--bg); }
.row-card > small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.mrow { display: flex; gap: 16px; }
.mdate { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-variant-numeric: tabular-nums; }
.mdate small { font-size: 12px; color: var(--muted); }
.mdate b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.mbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.mtext { font: inherit; font-size: 16px; line-height: 1.45; color: inherit; border: 0; padding: 0 0 4px; background: none; width: 100%; outline: none; resize: none; border-bottom: 1.5px dashed var(--border); }
.mtext:focus { border-bottom-color: var(--fg); }
.mnames { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* ── Tři kroky ─────────────────────────────────────────────────────── */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.stepc { border: 1.5px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 20px; background: var(--bg); }
.stepc h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; display: flex; gap: 12px; align-items: baseline; }
.stepc h3::before { counter-increment: step; content: counter(step); font-size: 14px; font-weight: 800; background: var(--fg); color: var(--bg); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.stepc p { margin: 0; color: var(--text); font-size: 16px; }
.mock { background: var(--surface); border-radius: 14px; padding: 18px; min-height: 172px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.mock-date { display: inline-flex; align-self: flex-start; gap: 10px; align-items: center; height: 38px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: 99px; background: var(--bg); font-size: 14px; font-variant-numeric: tabular-nums; }
.mock-date span { color: var(--muted); }
.mock-text { font-size: 17px; line-height: 1.45; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--fg); vertical-align: -3px; margin-left: 1px; }
@media (prefers-reduced-motion: no-preference) { .caret { animation: blink 1s steps(1) infinite; } }
@keyframes blink { 50% { opacity: 0; } }
.qchip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--border); background: var(--bg); font-size: 15px; font-weight: 600; }
.qchip .dotc { width: 10px; height: 10px; border-radius: 50%; position: relative; }
.qchip.on { border: 2px solid var(--fg); }
.qchip .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; opacity: .26; }
.qchip > span:not(.fill) { position: relative; }
.mock-hint { font-size: 13px; color: var(--muted); }

/* ── Vzpomínky se vracejí ──────────────────────────────────────────── */
.back-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1040px) { .back-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } }
.strip { display: flex; align-items: center; gap: 4px; height: 96px; margin: 40px 0 24px; max-width: 520px; }
.strip-tile { width: 96px; height: 96px; flex: none; background: var(--fg); color: var(--bg); border-radius: 0 48px 48px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; font-size: 13px; margin-left: calc(-1 * var(--pad)); padding-left: var(--pad); width: calc(96px + var(--pad)); }
.strip-tile b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
@media (min-width: 1040px) { .strip-tile { margin-left: 0; padding-left: 0; width: 96px; border-radius: 14px 48px 48px 14px; } }
.strip-days { flex: 1; display: flex; justify-content: space-around; }
.sday { width: 40px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; border-radius: 22px; border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.sday small { font-size: 11px; color: var(--muted); }
.sday b { font-size: 19px; line-height: 1; }
.sday em { font-style: normal; font-size: 10px; color: var(--muted); }
.sday .ind { display: flex; gap: 1px; height: 3px; width: 24px; background: var(--track); border-radius: 2px; overflow: hidden; }
.sday .ind span { width: 7px; flex: none; }
.sday.sel { border-color: var(--fg); }
.ago { border: 1.5px solid var(--border); border-radius: 18px; padding: 20px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.ago-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.ago-h span { display: flex; align-items: center; gap: 8px; }
.ago-h small { font-size: 13px; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.ago-body { display: flex; gap: 16px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.ago-photo { width: 76px; height: 76px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #7fb6d6, #2e6f8f 55%, #c9a35f); }
.ago-foot { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.year { max-width: 500px; justify-self: center; width: 100%; }
.year svg { width: 100%; height: auto; }
.year figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); }
.yr-grey { fill: var(--track); }
@media (prefers-reduced-motion: no-preference) {
  html.js .rv .sday { opacity: 0; transform: translateX(24px); transition: opacity .3s ease-out, transform .3s ease-out; transition-delay: calc(var(--i) * 40ms); }
  html.js .rv.in .sday { opacity: 1; transform: none; }
  html.js .rv .sday.sel { border-color: transparent; transition: opacity .3s ease-out, transform .3s ease-out, border-color .2s .45s; }
  html.js .rv.in .sday.sel { border-color: var(--fg); animation: shake .18s ease-in-out .5s 2; }
  html.js .rv .ago { opacity: 0; transform: translateY(24px); filter: grayscale(1); transition: opacity .7s ease-out, transform .7s ease-out, filter .7s ease-out .3s; }
  html.js .rv.in .ago { opacity: 1; transform: none; filter: none; }
  html.js .rv .yr-day { opacity: 0; transition: opacity .25s linear; transition-delay: calc(var(--i) * 4.4ms); }
  html.js .rv.in .yr-day { opacity: 1; }
  html.js .rv .stepc { opacity: 0; transform: translateY(20px); transition: opacity .5s ease-out, transform .5s ease-out; transition-delay: calc(var(--i) * 160ms); }
  html.js .rv.in .stepc { opacity: 1; transform: none; }
  html.js .rv .qchip .fill { width: 0; transition: width .6s ease-out .9s; }
  html.js .rv.in .qchip .fill { width: 60%; }
  html.js .rv:not(.in) .grow > span { width: 0 !important; }
  html.js .rv.in .grow > span { transition: width .5s ease-out 1.3s; }
}
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ── Souvislosti ───────────────────────────────────────────────────── */
.cards3 { display: grid; gap: 20px; }
@media (min-width: 900px) { .cards3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1.5px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.card h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--text); font-size: 16px; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); display: grid; place-items: center; font-size: 22px; font-weight: 800; flex: none; }
.person b { display: block; font-size: 20px; letter-spacing: -.02em; }
.person small { font-size: 13px; color: var(--muted); }
.mini-map { position: relative; height: 112px; border-radius: 12px; background-color: var(--surface); background-image: linear-gradient(var(--line) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--line) 1.5px, transparent 1.5px); background-size: 28px 28px; overflow: hidden; }
.mini-map::before { content: ""; position: absolute; left: -10%; top: 58%; width: 120%; height: 10px; background: var(--border); transform: rotate(-8deg); }
.pin { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -100%); width: 30px; height: 30px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--fg); display: grid; place-items: center; }
.pin::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.place-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 34px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; }
.photos { display: flex; gap: 8px; }
.photos span { width: 56px; height: 56px; border-radius: 10px; }
.searchbox { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--fg); font-size: 16px; }
.hits { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.hits mark { background: var(--track); color: inherit; font-weight: 800; border-radius: 3px; padding: 0 1px; }
.hits small { display: block; font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }

/* ── Soukromí ──────────────────────────────────────────────────────── */
.privacy-grid { display: grid; gap: 1.5px; background: var(--line); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 720px) { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .privacy-grid { grid-template-columns: repeat(3, 1fr); } }
.pv { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.pv svg { width: 28px; height: 28px; margin-bottom: 6px; }
.pv h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.pv p { margin: 0; color: var(--text); font-size: 15.5px; }
.pv-note { margin: 28px 0 0; color: var(--muted); font-size: 15px; max-width: 760px; }
.pv-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; font-size: 17px; }

/* ── Klid místo tlaku ──────────────────────────────────────────────── */
.calm-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.calm-list li { font-size: clamp(32px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.08; color: var(--soft); text-decoration: line-through; text-decoration-thickness: .07em; text-decoration-color: var(--fg); }
.calm-end { margin: 40px 0 0; font-size: clamp(32px, 5.4vw, 72px); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; max-width: 1000px; text-wrap: balance; }

/* ── Pro ───────────────────────────────────────────────────────────── */
.pro { border: 1.5px solid var(--border); border-radius: 24px; padding: 32px; display: grid; gap: 28px; }
@media (min-width: 1040px) {
  .pro { grid-template-columns: 1fr 1fr 1fr; padding: 40px; align-items: start; }
  /* Nadpisy funkcí na úrovni „DiaryPack Pro“ (štítek 28px + odsazení nadpisu). */
  .pro > div + div { padding-top: 55px; }
}
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; color: var(--muted); }
.pro h2 { margin: 14px 0 0; font-size: 36px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pro h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.pro p { margin: 0; color: var(--text); font-size: 16px; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 900px; border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(19px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; border-right: 2.5px solid var(--fg); border-bottom: 2.5px solid var(--fg); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { margin: 0 0 24px; color: var(--text); max-width: 720px; }

/* ── Závěr a patička ───────────────────────────────────────────────── */
.final { text-align: left; }
.final-logo { width: 56px; height: 65px; margin-bottom: 36px; }
.final .h2 { font-size: clamp(56px, 10vw, 140px); letter-spacing: -.055em; }
.final .ctas { margin-top: 40px; }
.foot { border-top: 1.5px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot .lang { font-size: inherit; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .brand { color: var(--fg); font-size: 17px; }
.foot .studio { color: var(--fg); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot .studio:hover { text-decoration-color: currentColor; }

/* ── Zásady ochrany soukromí ───────────────────────────────────────── */
.legal-hero { padding: 48px 0 40px; }
.legal-hero h1 { margin: 0; font-size: clamp(44px, 7vw, 96px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.legal-hero .lead { max-width: 680px; }
.legal-sum { display: grid; gap: 1.5px; background: var(--line); border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 72px; }
@media (min-width: 720px) { .legal-sum { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .legal-sum { grid-template-columns: repeat(3, 1fr); } }
.legal-grid { display: grid; gap: 40px; padding-bottom: 96px; }
@media (min-width: 1040px) { .legal-grid { grid-template-columns: 260px minmax(0, 720px); gap: 80px; } }
.toc { font-size: 15px; }
@media (min-width: 1040px) { .toc { position: sticky; top: 96px; align-self: start; } }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0 0 0 1.4em; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--fg); text-decoration: underline; }
.toc .toc-lang { margin-top: 20px; display: block; font-weight: 700; }
.legal { font-size: 17px; line-height: 1.65; color: var(--text); }
.legal section + section { margin-top: 96px; padding-top: 72px; border-top: 1.5px solid var(--line); }
.legal > section:first-of-type > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.legal h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--fg); }
.legal h3 { margin: 48px 0 12px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--fg); scroll-margin-top: 96px; }
.legal p { margin: 0 0 14px; }
.legal .muted { color: var(--muted); font-size: 15px; margin: 12px 0 28px; }
.legal strong { color: var(--fg); background: linear-gradient(transparent 62%, var(--track) 62%); }
.legal code { font-size: .88em; background: var(--surface); padding: 1px 6px; border-radius: 5px; }
.legal a { color: var(--fg); }
