/* Sdílený základ pro index.html, /rozbor a /prompty (redesign) */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/schibsted-grotesk-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: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/schibsted-grotesk-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 {
  --ink: #15213A;
  --muted: #4B5670;
  --paper: #F2F3F5;
  --night: #0F1626;
  --night-2: #1D2742;
  --cobalt: #2B47E8;
  --cobalt-dark: #1C33C2;
  --accent: #2B47E8; --accent-dark: #1C33C2; --accent-text: #2B47E8; --accent-soft: #E6EAFD; --accent-soft-ink: #2238C4; --accent-tint: #F3F6FF;
  --lilac: #8FA0FF;
  --line: #DDE1E7;
  --red: #B42318;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --py: clamp(64px, 9vw, 120px);
}
/* podstránky funnelu (/test, /strih, /prompty, /rozbor, /start): jediná oranžová z obálek knih, žádný druhý odstín.
   Oranžová je jen na plochy, tlačítka (bílý tučný text od 19 px), velké prvky a focus; text a odkazy jsou v barvě textu. Homepage třídu nemá. */
.accent-orange { --accent: #FF4A1B; --accent-dark: #FF4A1B; --accent-text: var(--ink); --accent-soft: #E6E9EE; --accent-soft-ink: var(--ink); --accent-tint: #F6F7F9; }
.accent-orange .btn:hover { opacity: .88; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y pinch-zoom; }
body { margin: 0; overflow-x: clip; background: #fff; color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
@media (min-width: 900px) { body { font-size: 21px; } }
a { color: inherit; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 40px; }
@media (max-width: 700px) { .wrap { padding: 0 20px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* tvary: pravý squircle. squircle.js ořízne prvek clip-pathem podle jeho rozměru (poloměr z --sq-r).
   Prohlížeče s corner-shape použijí nativní tvar. border-radius je záloha před spuštěním skriptu. */
.sq-btn { --sq-r: 22px; border-radius: 18px; }
.sq-card { --sq-r: 40px; border-radius: 28px; }
.field .sq-btn { --sq-r: 18px; }
@supports (corner-shape: squircle) { .sq-btn { corner-shape: squircle; border-radius: 30px; } .sq-card { corner-shape: squircle; border-radius: 56px; } .field .sq-btn { border-radius: 24px; } }
@media (max-width: 700px) {
  .sq-btn { --sq-r: 20px; border-radius: 16px; }
  .sq-card { --sq-r: 32px; border-radius: 24px; }
  @supports (corner-shape: squircle) { .sq-btn { border-radius: 28px; } .sq-card { border-radius: 44px; } }
}
.sq-js .sq-btn[data-sq], .sq-js .sq-card[data-sq] { border-radius: 0; }
/* clip-path ořezává i outline, proto má focus kroužek uvnitř prvku */
.sq-js .btn:focus-visible, .sq-js .sq-btn:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.sq-js .btn.light:focus-visible, .sq-js .field .sq-btn:focus-visible, .sq-js .chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: -6px; }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 30px; background: var(--accent); color: #fff; font: 700 19px/1.2 var(--font); text-decoration: none; text-align: center; border: 0; cursor: pointer; transition: transform .14s ease, background-color .18s ease, color .18s ease; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #E9ECF6; color: var(--ink); }
.btn.block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: default; }
.link-lilac { font-size: 18px; font-weight: 600; color: var(--lilac); text-decoration: none; }
.link-lilac:hover { color: #fff; }
.link-cobalt { font-size: 18px; font-weight: 600; color: var(--accent-text); text-decoration: none; }
.link-cobalt:hover { color: var(--accent-dark); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .btn:active { transform: none; } }

/* hlavička */
.top { position: sticky; top: 12px; z-index: 50; width: min(1100px, calc(100% - 24px)); max-width: none; margin: 12px auto 0; padding: 10px 12px 10px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 999px;
  /* liquid glass: průsvitné sklo, rozostření a sytost pozadí, světelný okraj a odlesk */
  background: linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .4)); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), inset 0 -1px 1px rgba(21, 33, 58, .07), 0 10px 32px rgba(21, 33, 58, .13), 0 1px 3px rgba(21, 33, 58, .08); }
.top::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 160% at 12% 0%, rgba(255, 255, 255, .65), transparent 55%); pointer-events: none; }
.top > * { position: relative; }
.top.compact { width: min(520px, calc(100% - 24px)); padding: 6px 8px 6px 18px; }
.top.compact .wordmark { font-size: 16px; }
.top.compact .btn.sm { min-height: 38px; padding: 0 16px; font-size: 15px; }
/* zkompaktnění lišty: jméno se zkrátí na GV, tlačítko na „workshop →“ */
.wordmark, .top .btn { white-space: nowrap; }
.wm-r, .bt-x { font-weight: inherit; display: inline-block; vertical-align: top; overflow: hidden; white-space: pre; max-width: 5em; }
.bt-a { display: inline-block; vertical-align: top; overflow: hidden; max-width: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .wm-r, .bt-x, .bt-a { transition: max-width .35s cubic-bezier(.3, .8, .3, 1), opacity .25s ease, margin .35s ease; }
  .wordmark i { transition: width .35s ease, margin .35s ease, opacity .25s ease; }
  .top .btn.sm, .top .wordmark { transition: min-height .35s ease, padding .35s ease, font-size .35s ease, background-color .18s ease, color .18s ease; }
}
@media (max-width: 700px) {
  .top.compact { width: 220px; padding: 4px 5px 4px 15px; }
  .top.compact .wm-r, .top.compact .bt-x { max-width: 0; opacity: 0; }
  .top.compact .wordmark i { width: 0; margin-right: -10px; opacity: 0; }
  .top.compact .wordmark { font-size: 17px; }
  .top.compact .bt-a { max-width: 1.5em; opacity: 1; margin-left: .35em; }
  .top.compact .btn.sm { min-height: 32px; padding: 0 14px; font-size: 14px; }
}
html { scroll-padding-top: 84px; }
body > header:not(.hero) { display: contents; } /* lišta se drží celé stránky, ne jen svého rodiče */
@media (prefers-reduced-motion: no-preference) { .top { transition: width .4s cubic-bezier(.3, .8, .3, 1), padding .4s cubic-bezier(.3, .8, .3, 1); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top { background: rgba(255, 255, 255, .94); } }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.wordmark i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav .link { font-size: 16px; font-weight: 600; text-decoration: none; color: var(--ink); }
.nav .link:hover { color: var(--accent-text); }
@media (max-width: 700px) { .top { padding: 8px 8px 8px 18px; } .wordmark { font-size: 16px; } .nav .link { color: var(--accent-text); font-size: 15px; } .nav .btn.sm { min-height: 40px; padding: 0 16px; font-size: 15px; } }

/* patička */
.site-foot { background: var(--night); color: #8E98AF; font-size: 15px; }
.site-foot .wrap { padding-top: 24px; padding-bottom: 32px; border-top: 1px solid #253150; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: 1180px; }
.site-foot a { color: #8E98AF; }
.site-foot a:hover { color: #fff; }

/* formuláře (hlavní stránka i /rozbor) */
.field { display: grid; gap: 8px; margin-bottom: 18px; font-size: 16px; font-weight: 700; }
.flabel { font-size: 16px; font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea { width: 100%; min-height: 56px; padding: 0 18px; border: 2px solid transparent; background: var(--paper); color: var(--ink); font: 400 18px/1.4 var(--font); }
.field textarea { padding: 14px 18px; min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5E6880; }
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: #E5483B; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; font-weight: 600; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 20px; background: var(--paper); color: var(--ink); font-size: 17px; line-height: 1.25; transition: background-color .18s ease, color .18s ease; }
.chip span { position: relative; }
/* vybraná volba: modrá outline, ne plné vybarvení. S clip-path squircle se obrys kreslí pseudo-prvkem (kruh mezi dvěma squircle cestami z squircle.js) */
.chip input:checked + span { background: #fff; color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.sq-js .chip input:checked + span { box-shadow: none; }
.sq-js .chip input:checked + span::after { content: ""; position: absolute; inset: 0; background: var(--accent); clip-path: var(--sq-ring, inset(100%)); pointer-events: none; }
.chip:hover input:not(:checked) + span { background: #E6E9EE; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-error { color: var(--red); font-size: 15px; font-weight: 600; margin: 0; }
.hp { position: absolute; left: -9999px; }
.consent { margin: 8px 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; font-weight: 400; line-height: 1.4; cursor: pointer; }
.check input { accent-color: var(--accent); width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.consent details { margin: 10px 0 0 32px; font-size: 15px; font-weight: 400; }
.consent summary { cursor: pointer; text-decoration: underline; text-underline-offset: 4px; color: var(--accent-text); }
.consent-text { margin-top: 12px; padding: 16px 18px; background: var(--paper); max-height: 300px; overflow: auto; color: var(--muted); }
.consent-text p { margin: 0 0 10px; font-size: 15px; line-height: 1.45; }
.turnstile { min-height: 65px; margin-bottom: 10px; }
.quiz-progress { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--muted); }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; padding: 0; margin-bottom: 18px; }
.step legend:focus { outline: none; }
.quiz-nav { display: flex; align-items: center; gap: 22px; margin-top: 6px; }
.link-btn { background: none; border: 0; color: var(--accent-text); font: 600 17px var(--font); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; padding: 8px 0; }
.quiz-status { margin: 14px 0 0; min-height: 1.5em; font-size: 16px; color: var(--muted); }
.quiz-status.error { color: var(--red); }
.quiz-done:focus { outline: none; }
.quiz-done h3 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 10px; }
.quiz-done p { margin: 0 0 8px; color: var(--muted); font-size: 18px; }
.tick { display: block; margin-bottom: 18px; }
.tick circle, .tick path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tick-ring { stroke: #C9D1F8; }
@media (prefers-reduced-motion: no-preference) {
  .tick-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .6s cubic-bezier(.65,0,.25,1) forwards; }
  .tick-mark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s cubic-bezier(.65,0,.25,1) .5s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* lišta o měření návštěvnosti: liquid glass jako horní lišta */
.cookie { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60; width: min(620px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 12px 14px 12px 24px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5)); -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .95), 0 10px 32px rgba(21, 33, 58, .18), 0 1px 3px rgba(21, 33, 58, .08); }
.cookie p { margin: 0; flex: 1 1 280px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.cookie-b { display: flex; align-items: center; gap: 16px; }
.cookie .btn.sm { min-height: 40px; --sq-r: 14px; border-radius: 14px; }
@supports (corner-shape: squircle) { .cookie .btn.sm { border-radius: 20px; } }
.cookie .link-btn { font-size: 15px; padding: 6px 0; color: var(--muted); }
@media (max-width: 700px) { .cookie { padding: 14px 16px; border-radius: 24px; } .cookie-b { width: 100%; justify-content: space-between; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .cookie { background: rgba(255, 255, 255, .96); } }
