/* ENTER 2030 — landing + hra „Pondělí 2030“
   Fonty: Outfit (náhrada za Greycliff CF, který v projektu není licencovaně k dispozici),
   Fira Sans a Fira Mono. Vše self-hosted (SIL OFL 1.1). Kvůli výkonu jen řezy
   Outfit 500/600/700, Fira Sans 400/500, Fira Mono 400 (rozsahy font-weight bez syntézy). */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/outfit-latin-500-normal.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; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/outfit-latin-600-normal.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; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-600-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/outfit-latin-700-normal.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; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/outfit-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/fira-sans-latin-400-normal.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; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/fira-sans-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fira-sans-latin-500-normal.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; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(/assets/fonts/fira-sans-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/fira-mono-latin-400-normal.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; }
@font-face { font-family: 'Fira Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/fira-mono-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --green: #41E39E;
  --green-hover: #5BEAAE;
  --green-ink: #0A6B44;
  --green-tint: #E3FAF0;
  --ink: #17202E;
  --ink-2: #222C3C;
  --ink-3: #2E3A4D;
  --paper: #FBFBFB;
  --white: #FFFFFF;
  --line: #E2E6EA;
  --line-2: #C9D0D7;
  --muted: #535D6C;
  --on-dark: #E9EDF1;
  --on-dark-muted: #A9B3C1;
  --err: #B42318;
  --f-display: 'Outfit', 'Greycliff CF', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-body: 'Fira Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Fira Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r: 14px;
  --r-lg: 22px;
  --t: 200ms cubic-bezier(.2, .7, .2, 1);
  --gutter: 16px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1100px 760px at 88% -8%, rgba(65, 227, 158, .17), rgba(65, 227, 158, 0) 70%) no-repeat, var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.site-foot :focus-visible, .sec-b :focus-visible, .desk :focus-visible, .preview-card :focus-visible { outline-color: var(--green); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.arr { display: inline-block; font-family: var(--f-body); transition: transform var(--t); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.btn:hover .arr, .link-arrow:hover .arr, .seat:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--green-hover); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { min-height: 60px; padding: 16px 30px; font-size: 1.15rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-text {
  display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 8px 4px;
  background: none; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--f-body); font-weight: 500; font-size: 1rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.btn-text:hover { text-decoration-thickness: 2px; }
.btn-text[disabled] { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.link-arrow { font-family: var(--f-display); font-weight: 600; font-size: 1.0625rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; text-decoration-color: var(--green); display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }

/* ---------- Header ---------- */
.site-head { position: relative; z-index: 10; }
.head-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; }
.logo-svg { height: 28px; width: auto; }
.head-right { display: flex; align-items: center; gap: 4px; }
.lang { display: flex; align-items: center; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-family: var(--f-mono); font-size: .875rem; letter-spacing: .06em; text-decoration: none; color: var(--muted); border-radius: 8px;
}
.lang a[aria-current="true"] { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang a:hover { color: var(--ink); }
.head-write { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px 0 12px; font-size: .9375rem; color: var(--muted); text-decoration: none; }
.head-write:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.eyebrow, .kicker {
  font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.hero { position: relative; padding: 4px 0 40px; }

.hero-grid { display: grid; gap: 40px; }
.hero-copy { max-width: 720px; }
.hero-title {
  margin-top: 10px; font-weight: 700; font-size: clamp(2.15rem, 1.35rem + 4.1vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance;
}
.hero-sub { margin-top: 14px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + .9vw, 1.6rem); line-height: 1.3; color: var(--ink); text-wrap: pretty; max-width: 34ch; }
.hero-body { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.hero-q { margin-top: 26px; }
.hero-q-title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; }
.seats { margin-top: 14px; display: grid; gap: 10px; }
@media (min-width: 560px) { .seats { grid-template-columns: 1fr 1fr; gap: 12px; } }
.seat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  min-height: 58px; padding: 14px 18px; border-radius: var(--r); cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line-2); color: var(--ink);
  font-family: var(--f-display); font-weight: 500; font-size: 1.125rem; line-height: 1.25;
  box-shadow: 0 1px 0 rgba(23, 32, 46, .04);
  transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
}
.seat .arr { color: var(--green-ink); font-size: 1.1rem; }
.seat:hover { border-color: var(--ink); box-shadow: 0 6px 18px -10px rgba(23, 32, 46, .35); }
.seat:active { transform: translateY(1px); }
.seat[aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.seat[aria-pressed="true"] .arr { color: var(--ink); }
.hero-micro { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .9375rem; color: var(--muted); }
.hero-micro .dot { color: var(--line-2); }
@media (max-width: 559px) { .hero-micro { flex-direction: column; gap: 2px; } .hero-micro .dot { display: none; } }
.hero-resume { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--green-tint); font-size: 1rem; }
.hero-resume a { font-weight: 600; text-underline-offset: 4px; }
.hero-cta { margin-top: 10px; }
.noscript { margin-top: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: 10px; }

/* Teaser stolu (dekorativní) */
.hero-desk { display: none; }
@media (min-width: 1000px) {
  .hero { padding: 24px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .hero-desk { display: block; }
}
.td {
  position: relative; background: var(--ink); color: var(--on-dark); border-radius: 26px; padding: 26px;
  box-shadow: 0 30px 60px -30px rgba(23, 32, 46, .55), 0 0 0 1px rgba(23, 32, 46, .9);
  transform: rotate(1.2deg);
}
.hero-desk { position: relative; }
.hero-desk::before {
  content: ''; position: absolute; inset: 18px -16px -18px 18px; border-radius: 26px; background: var(--green); transform: rotate(-2.5deg);
}
.td-invite { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--ink-3); }
.td-cal { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--green); position: relative; }
.td-cal::after { content: ''; position: absolute; inset: 9px 8px 8px; border: 2px solid var(--ink); border-top-width: 5px; border-radius: 3px; }
.td-invite-t { font-family: var(--f-mono); font-size: .8125rem; color: var(--on-dark-muted); letter-spacing: .03em; }
.td-invite-s { font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; margin-top: 2px; }
.td-zone { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark-muted); }
.td-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--ink); font-weight: 500; letter-spacing: 0; }
.td-cards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.td-cards li {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #263247; border-left: 3px solid var(--green);
  animation: tdIn 240ms var(--t) both; animation-delay: calc(var(--i) * 90ms + 150ms);
}
.td-t { font-weight: 500; font-size: 1rem; }
.td-m { font-family: var(--f-mono); font-size: .8125rem; color: var(--on-dark-muted); }
.td-voice { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-display); font-size: 1.0625rem; color: var(--on-dark); }
.td-role { flex: none; font-family: var(--f-mono); font-size: .75rem; padding: 3px 8px; border-radius: 6px; border: 1px solid #44526A; color: var(--on-dark-muted); letter-spacing: .08em; }
@keyframes tdIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 104px 0; } }
.sec-head { max-width: 760px; }
.sec-title { margin-top: 12px; font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance; }
.sec-lead { margin-top: 18px; font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.sec-a { border-top: 1px solid var(--line); }
.label-chip { display: inline-block; margin-top: 40px; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); }
.dir-cards { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .dir-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.dir-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 24px 28px; }
.dir-n { font-family: var(--f-mono); font-size: .875rem; color: var(--green-ink); font-weight: 500; }
.dir-card h3 { margin-top: 18px; font-size: 1.375rem; font-weight: 600; line-height: 1.2; }
.dir-card p { margin-top: 8px; color: var(--muted); }
.sec-micro { margin-top: 26px; font-family: var(--f-display); font-size: 1.125rem; color: var(--ink); max-width: 60ch; padding-left: 14px; border-left: 3px solid var(--green); }

.sec-b { background: var(--ink); color: var(--on-dark); }
.sec-b .kicker { color: var(--on-dark-muted); }
.sec-b .sec-title { color: var(--white); max-width: 22ch; }
.timeline { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tl-item { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid #334055; }
.tl-time { font-family: var(--f-mono); font-size: 1.75rem; font-weight: 500; color: var(--green); letter-spacing: -.02em; line-height: 1; }
.tl-item h3 { font-size: 1.3rem; color: var(--white); }
.tl-item p { margin-top: 8px; color: var(--on-dark-muted); }
.tl-label { margin: 22px 0 30px; font-size: .9375rem; color: var(--on-dark-muted); max-width: 70ch; display: flex; gap: 10px; }
.tl-label::before { content: 'i'; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--on-dark-muted); font-family: var(--f-mono); font-size: .75rem; }

.c-grid, .e-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .c-grid, .e-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.c-body > p { font-size: 1.125rem; color: var(--ink); }
.c-body > p + p { margin-top: 14px; color: var(--muted); }
.proofs { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.proofs li { padding: 18px 0 18px 38px; border-bottom: 1px solid var(--line); position: relative; }
.proofs li::before { content: ''; position: absolute; left: 4px; top: 24px; width: 16px; height: 9px; border-left: 3px solid var(--green-ink); border-bottom: 3px solid var(--green-ink); transform: rotate(-45deg); }
.proofs h3 { font-size: 1.15rem; font-weight: 600; }
.proofs p { margin-top: 4px; color: var(--muted); }

.sec-e { border-top: 1px solid var(--line); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { font-size: 1.15rem; font-weight: 500; }
.faq-item p { padding: 0 40px 22px 0; color: var(--muted); }
.faq-ico, .disc-ico { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: transform var(--t), background var(--t); }
.faq-ico::before, .faq-ico::after, .disc-ico::before, .disc-ico::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.faq-ico::after, .disc-ico::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t); }
details[open] > summary .faq-ico::after, details[open] > summary .disc-ico::after { transform: translate(-50%, -50%) rotate(0deg); }
details[open] > summary .faq-ico, details[open] > summary .disc-ico { background: var(--green); border-color: var(--green); }

.sec-final { background: var(--green); color: var(--ink); }
.final-in { text-align: left; }
.final-title { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; line-height: 1.04; margin-bottom: 28px; }
.final-micro { margin-top: 16px; font-size: .9375rem; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: var(--on-dark-muted); padding: 56px 0 32px; font-size: .9375rem; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.logo-foot { color: var(--white); }
.foot-addr { margin-top: 18px; line-height: 1.7; }
.foot-h { font-family: var(--f-mono); font-size: .8125rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.foot-links { list-style: none; padding: 0; margin: 12px 0 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--on-dark); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid #2E3A4D; }

/* =====================================================================
   HRA
   ===================================================================== */
body.is-playing { background: var(--paper); }
.app { min-height: calc(100vh - 64px); }
.app-bar { position: sticky; top: 0; z-index: 20; background: rgba(251, 251, 251, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.app-bar-in { display: flex; align-items: center; gap: 12px 24px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.app-name { font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: none; }
@media (min-width: 1100px) { .app-name { display: block; } }
.chapters { flex: 1 1 auto; min-width: 0; order: 3; width: 100%; }
@media (min-width: 760px) { .chapters { order: 0; width: auto; } }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ch { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 6px; align-items: center; min-width: 0; color: var(--muted); }
.ch-num { grid-row: 1; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: .75rem; border: 1.5px solid var(--line-2); }
.ch-text { min-width: 0; }
.ch-name { display: block; font-size: .875rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-dots { grid-column: 1 / -1; display: flex; gap: 3px; }
.ch-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background var(--t); }
.ch-dots i.on { background: var(--ink); }
.ch-dots i.cur { background: var(--green); }
.ch.is-current { color: var(--ink); }
.ch.is-current .ch-num { background: var(--ink); color: var(--white); border-color: var(--ink); }
.ch.is-done .ch-num { background: var(--green); border-color: var(--green); color: var(--ink); }
@media (max-width: 759px) { .chapters ol { display: flex; } .ch { flex: 1 1 0; } .ch.is-current { flex: 3.2 1 0; } .ch:not(.is-current) .ch-name { display: none; } }
.app-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.btn-leave span { font-size: 1.3rem; line-height: 1; text-decoration: none; }

.app-body { padding-top: 28px; padding-bottom: 64px; }
.app-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .app-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); gap: 64px; align-items: start; } }

.desk-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 14px; border-radius: 12px; background: var(--ink); color: var(--on-dark); font-size: .9375rem; margin-bottom: 22px; }
.desk-compact .dc-chapter { font-family: var(--f-mono); font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--green); width: 100%; }
.desk-compact b { font-family: var(--f-mono); font-weight: 500; color: var(--green); }
@media (min-width: 1000px) { .desk-compact { display: none; } }

.step { max-width: 680px; }
.step-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; font-family: var(--f-mono); font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.voice { margin: 18px 0 0; display: flex; gap: 12px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); max-width: 560px; }
.voice-role { flex: none; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--white); }
.voice blockquote { margin: 0; font-family: var(--f-display); font-size: 1.0625rem; line-height: 1.35; }
.step-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-legend { padding: 0; margin: 20px 0 0; width: 100%; }
.step-title { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.55rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; outline: none; }
.step-title:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
.step-hint { margin-top: 10px; color: var(--muted); }
.opts { margin-top: 22px; display: grid; gap: 10px; }
.opts-unknown { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 58px; padding: 14px 18px 14px 16px;
  border-radius: var(--r); background: var(--white); border: 1.5px solid var(--line-2); cursor: pointer;
  transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.opt:hover { border-color: var(--ink); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--white); position: relative; transition: border-color var(--t), background var(--t); }
.opt input[type="checkbox"] + .opt-mark { border-radius: 6px; }
.opt-text { font-size: 1.0625rem; line-height: 1.35; }
.opt input:checked + .opt-mark { border-color: var(--ink); background: var(--green); }
.opt input[type="radio"]:checked + .opt-mark::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--ink); }
.opt input[type="checkbox"]:checked + .opt-mark::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #F3FDF8; }
.opt input:focus-visible + .opt-mark { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.opt:has(input:focus-visible) .opt-mark { outline: none; }
.opt-unknown { background: transparent; border-style: dashed; }
.opt-unknown .opt-text { color: var(--muted); }
.opt-unknown:has(input:checked) .opt-text { color: var(--ink); }

.group-toggle { margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; transition: background var(--t); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--t); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(18px); background: var(--green); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--ink); outline-offset: 3px; }
.switch-label { font-weight: 500; }
.field-hint { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

.reaction { margin-top: 0; font-family: var(--f-display); font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.reaction:not(:empty) { margin-top: 18px; display: flex; gap: 10px; align-items: baseline; padding: 12px 16px; border-radius: 12px; background: var(--green-tint); animation: fadeIn 220ms var(--t) both; }
.reaction:not(:empty)::before { content: '↳'; color: var(--green-ink); font-family: var(--f-body); }
.step-error { margin-top: 12px; color: var(--err); font-weight: 500; }
.step-error:empty { margin-top: 0; }
.step-nav { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.step-nav .btn-primary { margin-left: auto; min-width: 160px; }
@media (max-width: 480px) { .step-nav .btn-primary { flex: 1 1 100%; order: -1; margin-left: 0; } .step-nav .btn-ghost { flex: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Pracovní stůl ---------- */
.desk { display: none; }
@media (min-width: 1000px) {
  .desk { display: block; position: sticky; top: 88px; background: var(--ink); color: var(--on-dark); border-radius: 24px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(23, 32, 46, .6); max-height: calc(100vh - 110px); overflow: auto; }
}
.desk-time { font-family: var(--f-mono); font-size: .8125rem; color: var(--green); letter-spacing: .06em; }
.desk-title { margin-top: 4px; font-size: 1.35rem; color: var(--white); }
.desk-context { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.desk-context li { font-size: .8125rem; font-family: var(--f-mono); padding: 4px 9px; border-radius: 999px; border: 1px solid #3A475C; color: var(--on-dark); }
.desk-zones { margin-top: 16px; display: grid; gap: 12px; }
.zone { padding: 14px; border-radius: 16px; background: var(--ink-2); border: 1px solid #2F3B4F; }
.zone-title { display: flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.zone-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--green); color: var(--ink); letter-spacing: 0; }
.zone-empty { margin-top: 8px; font-size: .875rem; color: #7F8A9A; }
.zone.is-empty { background: transparent; border-style: dashed; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 14px; }
.zone.is-empty .zone-empty { margin-top: 0; }
.pile { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 10px; font-family: var(--f-mono); font-size: .8125rem; color: var(--on-dark-muted); background: #2A3548; border-left: 3px solid var(--green); box-shadow: 0 4px 0 -1px #222C3C, 0 4px 0 0 #3A475C, 0 8px 0 -1px #1D2533, 0 8px 0 0 #334055; margin-bottom: 8px; }
.pile-stack { width: 18px; height: 14px; border: 1.5px solid var(--green); border-radius: 3px; box-shadow: 3px -3px 0 -1.5px #2A3548, 3px -3px 0 0 var(--green); }
.zone-human { border-color: rgba(65, 227, 158, .45); }
.zone-human.is-empty { border-color: rgba(65, 227, 158, .3); }
.cards { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.card { display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 10px; background: #2A3548; }
.card-ico { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--on-dark-muted); }
.card-body { display: flex; flex-direction: column; min-width: 0; }
.card-title { font-size: .9375rem; line-height: 1.3; color: var(--white); }
.card-meta { font-family: var(--f-mono); font-size: .75rem; color: var(--on-dark-muted); margin-top: 1px; }
.card.k-decision { border-left: 3px solid var(--green); }
.card.k-decision .card-ico { color: var(--green); }
.card.k-link { border-left: 3px solid #8FA3C0; }
.card.k-mail { border-left: 3px solid #8FA3C0; }
.card.k-trace { background: rgba(65, 227, 158, .12); }
.card.k-trace .card-ico, .card.k-tool .card-ico { color: var(--green); }
.card.k-constraint { background: transparent; border: 1px solid #50607A; }
.card.k-human, .card.k-boundary { background: rgba(65, 227, 158, .14); border: 1px dashed rgba(65, 227, 158, .7); }
.card.k-human .card-ico, .card.k-boundary .card-ico { color: var(--green); }
.sheets { list-style: none; }
.sheet-row { list-style: none; padding: 4px 2px 6px; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.card.k-sheet { flex-direction: column; gap: 6px; background: #F2F0E9; color: var(--ink); border-radius: 6px; padding: 8px; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .6); }
.card.k-sheet .card-title { color: var(--ink); font-size: .8125rem; }
.card.k-sheet .card-meta { color: #5B6270; font-size: .6875rem; }
.card.k-sheet .card-ico { color: #5B6270; }
.sheet-row .card:nth-child(1) { transform: rotate(-2deg); }
.sheet-row .card:nth-child(2) { transform: rotate(1.5deg) translateY(3px); }
.sheet-row .card:nth-child(3) { transform: rotate(-1deg); }
.card.is-new { animation: cardIn 220ms var(--t) both; }
.sheet-row .card.is-new { animation-name: sheetIn; }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheetIn { from { opacity: 0; } to { opacity: 1; } }
.desk-note { margin-top: 14px; font-size: .8125rem; color: #8995A6; }

/* ---------- Výsledek ---------- */
.result, .thanks { display: grid; gap: 32px; }
@media (min-width: 1000px) {
  .result { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); gap: 56px; align-items: start; }
  .thanks { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 56px; align-items: start; }
}
.result-title { margin-top: 12px; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-weight: 600; line-height: 1.07; letter-spacing: -0.025em; text-wrap: balance; outline: none; max-width: 22ch; }
.result-title:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; }
.lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.result-loading { padding: 40px 0; }
.loader { display: block; margin-top: 24px; width: 120px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--green) 0 40%, var(--line) 40% 100%); background-size: 200% 100%; animation: load 1.1s linear infinite; }
@keyframes load { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.result-error { padding: 24px 0; }
.error-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.preview-card { margin-top: 28px; padding: 26px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); }
.preview-card.is-compact { margin-top: 0; }
.preview-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.preview-meta dt { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.preview-meta dd { margin: 2px 0 0; font-family: var(--f-display); font-size: 1.125rem; color: var(--white); }
.preview-kicker { margin-top: 22px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.preview-card.is-compact .preview-kicker { margin-top: 0; }
.preview-profile { margin-top: 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); line-height: 1.05; color: var(--green); letter-spacing: -0.02em; }
.preview-tagline { margin-top: 8px; font-family: var(--f-display); font-size: 1.125rem; color: var(--on-dark); }
.preview-sentence { margin-top: 20px; padding-top: 18px; border-top: 1px solid #33405A; font-size: 1.0625rem; color: var(--on-dark); }
.preview-from { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); }
.pdf-contents { margin-top: 28px; }
.pdf-contents h3 { font-size: 1.25rem; }
.pdf-contents ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .pdf-contents ol { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.pdf-contents li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
.pdf-n { font-family: var(--f-mono); font-size: .875rem; color: var(--green-ink); }

.gate { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: 0 24px 50px -40px rgba(23, 32, 46, .5); }
@media (min-width: 640px) { .gate { padding: 30px 30px; } }
@media (min-width: 1000px) { .gate { position: sticky; top: 24px; } }
.gate-title { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.gate-form { margin-top: 18px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; display: flex; align-items: baseline; gap: 8px; }
.req, .opt-tag { font-family: var(--f-body); font-weight: 400; font-size: .875rem; color: var(--muted); }
.field .field-hint { margin-top: -2px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--white); font-size: 1.0625rem; color: var(--ink);
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.45; }
.field input:hover, .field textarea:hover { border-color: #9AA5B1; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(65, 227, 158, .6); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-err { color: var(--err); font-size: .9375rem; font-weight: 500; min-height: 0; }
.field-err:empty { display: none; }
.field-count { font-size: .875rem; color: var(--muted); }
.field-count:empty { display: none; }
.field-row { display: grid; gap: 16px; align-items: end; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.disclosure { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.disclosure summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 14px; font-family: var(--f-display); font-weight: 500; font-size: 1.0625rem; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure-body { padding: 0 14px 14px; }
.disclosure-list { margin: 10px 0 6px; display: grid; gap: 0; }
.disclosure-list div { padding: 9px 0; border-top: 1px solid var(--line); }
.disclosure-list dt { font-size: .875rem; color: var(--muted); }
.disclosure-list dd { margin: 1px 0 0; font-size: 1rem; }
.consult { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.consult .switch { align-items: flex-start; }
.consult .switch-track { margin-top: 1px; }
.submit-note { font-size: .9375rem; color: var(--muted); }
.submit-note a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.form-error { color: var(--err); font-weight: 500; }
.form-error:empty { display: none; }

.thanks-main .lead { max-width: 52ch; }
.status-track { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; max-width: 460px; }
.st { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 1rem; }
.st-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; }
.st.is-wait .st-dot { border-color: var(--ink); border-right-color: transparent; animation: spin 1s linear infinite; }
.st.is-ok .st-dot { background: var(--green); border-color: var(--green); }
.st.is-ok .st-dot::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.st.is-bad .st-dot { border-color: var(--err); }
.st.is-bad .st-dot::after { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--err); }
@keyframes spin { to { transform: rotate(360deg); } }
.recipient { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.recipient b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.thanks-actions { margin-top: 28px; }
.thanks-secondary { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.fix-form { margin-top: 12px; display: grid; gap: 12px; max-width: 460px; padding: 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.thanks-msg { margin-top: 10px; color: var(--ink); font-weight: 500; }
.thanks-msg:empty { display: none; }

/* ---------- Dialog ---------- */
.confirm { border: 0; border-radius: 20px; padding: 26px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 40px 80px -30px rgba(23, 32, 46, .55); color: var(--ink); background: var(--white); }
.confirm::backdrop { background: rgba(23, 32, 46, .55); }
.confirm h2 { font-size: 1.5rem; }
.confirm p { margin-top: 8px; color: var(--muted); }
.confirm-actions { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .st.is-wait .st-dot { border-right-color: var(--ink); border-style: dotted; }
}
