/* ==========================================================================
   „Umím s AI.“ – kampaň pro HR · Test AI dovedností pro kandidáty · říjen 2026
   Sdílený design systém. Vychází z tokenů aibility.org a konceptu A (prototypy).
   ========================================================================== */

:root {
  --paper: #FFFBF4;
  --paper-2: #F7F5F2;
  --paper-3: #EFEBE5;
  --card: #FFFFFF;
  --line: #E4E0DA;
  --line-2: #D6D1C9;

  --ink: #1B1B1B;
  --ink-2: #494846;
  --ink-3: #6D6B69;
  --ink-inv: #FAF4EE;
  --inv-2: rgb(250 244 238 / .78);
  --inv-3: rgb(250 244 238 / .56);

  --violet: #5938B7;
  --violet-hover: #4A2C9E;
  --v300: #A98DF6;
  --v200: #C4B1F9;
  --lav: #DBD3F4;
  --lilac: #F1ECFF;
  --deep: #201547;
  --deep-2: #2A1D5C;
  --lime: #E6FF3A;
  --lime-2: #D4F01F;

  /* úrovně metodiky (L0–L3) */
  --l0: #C4B1F9;
  --l1: #A98DF6;
  --l2: #5938B7;
  --l3: #201547;

  --display: "Signika", "Geist", system-ui, sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Fraunces", Georgia, serif;

  --maxw: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 7vw + 40px, 168px);

  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

  --sh-1: 0 1px 2px rgb(27 27 27 / .06), 0 2px 8px rgb(27 27 27 / .04);
  --sh-2: 0 2px 6px rgb(27 27 27 / .06), 0 18px 40px -12px rgb(27 27 27 / .18);
  --sh-3: 0 40px 90px -30px rgb(32 21 71 / .45), 0 10px 30px -10px rgb(27 27 27 / .18);

  --out: cubic-bezier(.16, 1, .3, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --inout: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--ink-inv); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--section); position: relative; }

/* ---------- typografie ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 1px rgb(27 27 27 / .18); }
.eyebrow.plain::before { display: none; }
.d1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 3.2rem + 3.6vw, 112px); line-height: .94; letter-spacing: -.028em; }
.d2 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 1.6rem + 2.6vw, 72px); line-height: .98; letter-spacing: -.024em; }
.d3 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 1.2rem + 1.2vw, 40px); line-height: 1.06; letter-spacing: -.018em; }
.lead { font-size: clamp(18px, 1.05rem + .35vw, 22px); line-height: 1.5; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; line-height: 1.5; }
.mono { font-family: var(--mono); }
.q { font-feature-settings: "ss01"; }

/* ---------- tlačítka ---------- */
.btn {
  --bg: var(--violet); --fg: #fff;
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border-radius: var(--r-pill); background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap; position: relative;
  transition: transform .5s var(--out), background-color .25s var(--ease), box-shadow .5s var(--out);
  box-shadow: 0 1px 0 rgb(255 255 255 / .18) inset, 0 10px 24px -12px rgb(89 56 183 / .8);
}
.btn:hover { background: var(--violet-hover); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arr { transition: transform .5s var(--out); }
.btn:hover .arr { transform: translateX(3px); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.lime { --bg: var(--lime); --fg: var(--ink); box-shadow: 0 10px 30px -12px rgb(230 255 58 / .7); }
.btn.lime:hover { background: #F0FF7A; }
.btn.inv { --bg: var(--ink-inv); --fg: var(--deep); box-shadow: none; }
.btn.inv:hover { background: #fff; }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--violet); }

/* ---------- plovoucí navigace ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 14px;
  width: max-content; max-width: calc(100vw - 24px);
  background: rgb(255 251 244 / .94); border-radius: var(--r-pill);
  box-shadow: 0 0 0 1px rgb(27 27 27 / .08), 0 12px 32px -14px rgb(32 21 71 / .35);
}
.nav .logo { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: 10px; }
.nav .logo img { height: 30px; width: auto; }
.nav a.nl { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: var(--r-pill); transition: background-color .2s var(--ease), color .2s; }
.nav a.nl:hover, .nav a.nl[aria-current="true"] { background: var(--paper-3); color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; margin-left: 6px; }
@media (max-width: 900px) { .nav a.nl { display: none; } }

/* ---------- odhalení při scrollu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--out), transform .9s var(--out); transition-delay: var(--d, 0s); }
  .rv.in { opacity: 1; transform: none; }
}

/* ---------- drobnosti ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; font-weight: 500; white-space: nowrap;
}
.lvl-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.lvl-0 { --lv: var(--l0); } .lvl-1 { --lv: var(--l1); } .lvl-2 { --lv: var(--l2); } .lvl-3 { --lv: var(--l3); }
.src { font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--ink-3); }
.src a { color: inherit; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; flex: none; }

.kbd {
  display: inline-grid; place-items: center; min-width: 2.2em; height: 1.9em; padding: 0 .5em; border-radius: .38em;
  font-family: var(--mono); font-size: .82em; font-weight: 500; background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-2), 0 2px 0 var(--line-2);
}

/* ---------- podpis autora (jen v prezentaci) ---------- */
.mk { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mk b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #CDF24A; color: #0E0F13; font-family: "Space Grotesk", var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0; }
