/* ==========================================================================
   Compass — fonts
   Self-hosted so the browser never waits on fonts.googleapis.com, which is
   render-blocking and costs 200–400 ms of LCP. Variable weight 100–900.
   ========================================================================== */

@font-face {
  font-family: "Hanken Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  /* Czech diacritics — ě š č ř ž ů ď ť ň — live in this range. */
  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: "Hanken Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* ==========================================================================
   Compass — design tokens
   Ported from the "Aplikace škola — MVP" design source. Keep in sync.
   ========================================================================== */

:root {
  /* Lime (brand accent) */
  --lime-700: #6e8f0f;
  --lime-600: #9bcb18;
  --lime-500: #b9e52b;
  --lime-400: #cbee5a;
  --lime-300: #ddf48f;
  --lime-200: #e9f8b8;
  --lime-100: #f2fbd6;

  /* Orange */
  --orange-700: #e23a15;
  --orange-600: #ff5220;
  --orange-500: #ff6a2b;
  --orange-400: #ff8a54;
  --orange-200: #ffcba8;
  --orange-100: #fbe0ce;

  /* Yellow */
  --yellow-600: #e09a00;
  --yellow-500: #f7b31a;
  --yellow-300: #fdd873;
  --yellow-100: #fff4d6;

  /* Ink / neutrals */
  --ink-900: #141414;
  --ink-700: #3a3a3a;
  --ink-500: #6b6b6b;
  --ink-400: #8a8a8a;
  --ink-300: #a8a8a8;
  --ink-200: #d6d6d6;
  --ink-100: #ececec;
  --paper: #f4f3ef;
  --white: #ffffff;

  /* Semantic */
  --bg-app: var(--paper);
  --surface-card: var(--white);
  --text-primary: var(--ink-900);
  --text-secondary: var(--ink-500);
  --text-muted: var(--ink-400);
  --border-subtle: var(--ink-200);
  --border-strong: var(--ink-900);
  --brand-accent: var(--lime-500);
  --link: var(--orange-600);
  --link-hover: var(--orange-700);
  --focus-ring: var(--lime-500);

  /* Typography */
  --font-display: "Hanken Grotesk Variable", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--font-display);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(20, 20, 20, 0.07);
  --shadow-md: 0 6px 18px rgba(20, 20, 20, 0.1);
  --shadow-lg: 0 14px 34px rgba(20, 20, 20, 0.14);
  --shadow-sticker: 3px 3px 0 var(--ink-900);

  /* Motion */
  --dur-base: 200ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  transition: color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

a:hover {
  color: var(--link-hover);
  border-bottom-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

strong {
  font-weight: 700;
}

/* ==========================================================================
   Wordmark
   ========================================================================== */

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  border-bottom: none;
}

.wordmark:hover {
  color: var(--text-primary);
}

.wordmark__mark {
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

/* Two fixed columns — the mark on the left, the Kontakt button hard right.
   A grid (not a wrapping flex row) so the button can never fold underneath
   the mark on a narrow screen. */
.site-header,
.doc-nav {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

/* Sticker-style call to action */
.btn-contact {
  display: inline-flex;
  align-items: center;
  background: var(--lime-500);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.btn-contact:hover {
  color: var(--ink-900);
  border-color: var(--ink-900);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink-900);
}

.btn-contact:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink-900);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up,
  .eyebrow__dot {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Landing page
   ========================================================================== */

.landing {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 28px 24px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.landing__hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px 0;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--lime-500);
  color: var(--ink-900);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sticker);
  padding: 7px 16px 7px 13px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-900);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.hero__title {
  font-size: clamp(44px, 9.5vw, 92px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 22px;
}

.hero__title em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
}

/* Highlighter mark — overlaps the lower part of the letters, not a underline. */
.hero__title em::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  bottom: 0.24em;
  height: 0.22em;
  background: var(--lime-500);
  border-radius: 3px;
  z-index: -1;
}

.hero__lead {
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.5;
  color: var(--ink-700);
  max-width: 34em;
  margin: 0 0 18px;
}

.hero__note {
  font-size: 16.5px;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 0 34px;
}

.contact-card {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  background: var(--surface-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  padding: 14px 20px;
  font-size: 16px;
}

.contact-card__label {
  color: var(--text-secondary);
}

.contact-card a {
  font-weight: 700;
  font-size: 17px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1.5px solid var(--border-subtle);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 14.5px;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--link-hover);
}

/* ==========================================================================
   Document pages (terms / privacy)
   ========================================================================== */

.doc-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 24px 24px;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.doc-nav {
  margin-bottom: 52px;
}

.doc-nav__back {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.doc-body h1 {
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 8px;
}

.doc-body h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 46px 0 14px;
  padding-top: 26px;
  border-top: 1.5px solid var(--border-subtle);
}

.doc-body h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin: 30px 0 10px;
}

.doc-body p,
.doc-body li {
  color: var(--ink-700);
  font-size: 16.5px;
  line-height: 1.65;
}

.doc-body ul,
.doc-body ol {
  padding-left: 22px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body p {
  margin: 0 0 14px;
}

/* Question-and-answer pages */

.doc-body h3 + p {
  margin-top: 0;
}

.doc-body h2 + h3 {
  margin-top: 18px;
}

/* Deferred-feature list */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}

.feature {
  background: var(--surface-card);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sticker);
  padding: 18px 22px 20px;
  margin: 0;
}

.feature h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
  padding: 0;
  border: none;
}

.feature p {
  margin: 0;
  font-size: 16px;
}

.callout {
  background: var(--lime-100);
  border: 1.5px solid var(--lime-500);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 26px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--draft {
  background: var(--yellow-100);
  border-color: var(--yellow-500);
}

.doc-body .doc-footer-space {
  height: 64px;
}

/* Placeholder markers that still need real company data */
.todo {
  background: var(--yellow-300);
  border-radius: 4px;
  padding: 0 5px;
  font-weight: 700;
  white-space: nowrap;
}

/* ==========================================================================
   Entrance animation
   ========================================================================== */

.fade-up {
  animation: fade-up 620ms var(--ease-out) both;
}

.fade-up:nth-child(1) {
  animation-delay: 40ms;
}
.fade-up:nth-child(2) {
  animation-delay: 110ms;
}
.fade-up:nth-child(3) {
  animation-delay: 180ms;
}
.fade-up:nth-child(4) {
  animation-delay: 250ms;
}
.fade-up:nth-child(5) {
  animation-delay: 320ms;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .landing,
  .doc-page {
    padding: 22px max(20px, env(safe-area-inset-right)) 20px
      max(20px, env(safe-area-inset-left));
  }
  .landing__hero {
    padding: 34px 0 44px;
  }
  .doc-nav {
    margin-bottom: 36px;
  }

  /* Keep the top row to mark + button; the back link drops to its own row
     underneath so the button stays opposite the mark. */
  .nav-actions {
    display: contents;
  }
  .nav-actions .btn-contact {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
  .doc-nav__back {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  /* 44px minimum tap target */
  .btn-contact {
    min-height: 44px;
    padding: 10px 18px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
