/* ============================================================
   classroom.now — PŘEBARVENÝ STYLESHEET (hotová verze)
   Paleta odvozená z finálního loga: #0E2A47 (navy) + #C79A4B (zlatá)
   Přesně dle classroom-now-tokens.css.

   Použití: nahraď jím původní assets/style.css.
   Beze změny layoutu, typografie a struktury — jen barvy.
   Součástí je i .brand-logo (vsazené logo v hlavičce/patičce).
   ============================================================ */

/* ==========================================================================
   classroom.now — marketing site foundation stylesheet
   Shared by: index.html, for-companies.html, for-training-companies.html,
              for-lecturers.html, for-authors.html
   Self-contained: system font stack only, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Bilingual visibility — THE core mechanism. Every piece of copy exists
      twice: <span lang="cs">…</span><span lang="en">…</span> (or <p>/<div>
      with a lang attribute for block variants). assets/lang.js toggles
      <html data-lang="cs|en">; these two rules do the rest.
   -------------------------------------------------------------------------- */
html[data-lang="cs"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="cs"] { display: none !important; }

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* ── Přebarveno na brand navy #0E2A47 + zlatá #C79A4B (odvozeno z loga) ──
     Názvy proměnných (--indigo/--accent) ZŮSTÁVAJÍ kvůli zbytku CSS —
     mění se jen hodnoty. Popisky = role, ne původní barva. */
  --indigo:       #0E2A47;   /* hlavní navy (tlačítka, ikony, aktivní prvky) */
  --indigo-deep:  #0A2038;   /* tmavší navy (gradienty) */
  --indigo-dark:  #0A2038;   /* nejtmavší navy = --ink-deep (patička, terminál) */
  --indigo-mid:   #16395E;   /* světlejší navy = --ink-soft (hover, konec gradientu) */
  --indigo-soft:  #DFE4EA;   /* mlžné pozadí = --mist (panely, ikon-boxy, aktivní nav) */
  --indigo-line:  #D8D5CC;   /* jemná linka = --line */
  --accent:       #C79A4B;   /* zlatá = --gold (výplně a velké prvky, ne text na krému) */
  --accent-deep:  #8E6A25;   /* zlatá pro TEXT = --gold-text (kontrast ~4,4) */
  --accent-soft:  #E8D9B4;   /* zlatý nádech = --gold-soft (badge, „warm" ikon-box) */
  --accent-line:  #D9C48F;   /* zlatá linka (o odstín tmavší --gold-soft, ať je vidět) */
  --link:         #1B4A7A;   /* odkazy = --link (kontrast 8,05) */
  --ink:          #0E2A47;   /* hlavní text a nadpisy = --ink */
  --muted:        #5A6B7D;   /* sekundární text = --slate (kontrast 4,85) */
  --line:         #D8D5CC;   /* hairline = --line */
  --bg:           #F3F1EA;   /* pozadí stránky = --cream */
  --bg-soft:      #DFE4EA;   /* alternativní sekce = --mist */
  --surface:      #FAF9F5;   /* karty a povrchy = --cream-raised */
  --focus:        #C79A4B;   /* focus ring = --gold */
  --radius:       16px;
  --shadow-sm: 0 1px 2px rgba(14,42,71,.06), 0 1px 3px rgba(14,42,71,.08);
  --shadow-md: 0 6px 24px rgba(14,42,71,.12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--indigo); color: #fff; }

section[id], div[id] { scroll-margin-top: 84px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-tight { padding: 60px 0; }

.section-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.lead { font-size: 1.12rem; color: var(--muted); }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 36px; }
}

/* --------------------------------------------------------------------------
   5. Buttons & badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: background .18s, box-shadow .18s, transform .18s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-deep); }

.btn-light { background: var(--surface); color: var(--indigo-deep); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--indigo-soft); }

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.55);
  color: #fff;
}
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.btn-sm { padding: .5rem 1rem; font-size: .9rem; border-radius: 8px; }

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-deep);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   6. Header (identical on every page)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--indigo);
  padding: .6rem 1rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243,241,234,.9); /* krémové sklo místo bílého */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .brand-dot { color: var(--accent); } /* zlaté „.now" jako v logu */
.brand-logo { display: block; height: 30px; width: auto; }        /* lockup 1224×136 → ~270px */

.site-nav { display: flex; gap: 2px; flex: 1; justify-content: center; }
.site-nav a {
  padding: .45rem .7rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
.site-nav a.is-current { color: var(--indigo); background: var(--indigo-soft); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: .3rem .72rem;
  border-radius: 999px;
  font: inherit;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang-switch button.is-active { background: var(--indigo); color: #fff; }

@media (max-width: 920px) {
  .header-inner { gap: 10px; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .header-cta { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(199,154,75,.30), transparent 60%),
    linear-gradient(140deg, var(--indigo-deep) 0%, var(--indigo) 55%, var(--indigo-mid) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 100px;
}

.hero-eyebrow {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.14rem;
  color: rgba(255,255,255,.86);
  max-width: 36em;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(10,12,50,.35));
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 60px; padding-bottom: 64px; gap: 40px; }
}
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   8. Value props (stat-free strip)
   -------------------------------------------------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }

.value { border-top: 3px solid var(--indigo); padding-top: 20px; }
.value:nth-child(2) { border-top-color: var(--accent); }
.value:nth-child(3) { border-top-color: var(--indigo-mid); }
.value h3 { font-size: 1.08rem; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }

@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --------------------------------------------------------------------------
   9. Cards (features, AI, personas)
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; margin: 14px 0 8px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.card-sm { padding: 22px 20px; }
.card-sm h3 { margin-top: 0; font-size: 1rem; }

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo-soft);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.warm { background: var(--accent-soft); color: var(--accent-deep); }

/* Persona teaser cards — whole card is a link */
.persona-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.persona-card:hover {
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--indigo-line);
}
.persona-kicker {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.persona-card h3 { font-size: 1.1rem; margin: 0 0 8px; }
.persona-card p { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.persona-more { margin-top: auto; color: var(--indigo); font-weight: 650; font-size: .95rem; }

/* --------------------------------------------------------------------------
   10. "How it works" steps
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-weight: 750;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11. Highlight panel (marketplace section) & check list
   -------------------------------------------------------------------------- */
.panel {
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-line);
  border-radius: 24px;
  padding: 52px;
}
.panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 820px) {
  .panel { padding: 30px 24px; }
  .panel-grid { grid-template-columns: 1fr; gap: 28px; }
}

.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 9px 0 9px 36px; }
.check-list li::before {
  content: "\2713"; /* ✓ */
  position: absolute;
  left: 0;
  top: 11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--indigo);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.check-list li.soon::before {
  content: "\2192"; /* → */
  background: var(--accent-deep);
}

/* --------------------------------------------------------------------------
   12. Fact grid (self-host / security)
   -------------------------------------------------------------------------- */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.fact { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fact h3 { font-size: 1rem; margin: 0 0 6px; }
.fact p { color: var(--muted); font-size: .95rem; margin: 0; }

@media (max-width: 760px) { .fact-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   13. CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(199,154,75,.32), transparent 60%),
    linear-gradient(135deg, var(--indigo-deep), var(--indigo) 60%, var(--indigo-mid));
  border-radius: 28px;
  color: #fff;
  padding: 68px 32px;
  text-align: center;
}
.cta-panel h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.cta-panel > p { color: rgba(255,255,255,.86); max-width: 42em; margin: 0 auto 30px; }
.cta-email {
  display: block;
  margin-top: 18px;
  color: rgba(255,255,255,.8);
  font-family: var(--mono);
  font-size: .95rem;
}
.cta-email:hover { color: #fff; }

@media (max-width: 560px) { .cta-panel { padding: 44px 20px; } }

/* --------------------------------------------------------------------------
   14. Footer (identical on every page)
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,.72);
  padding: 60px 0 32px;
  font-size: .95rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.site-footer .brand { color: #fff; }
.site-footer .brand .brand-dot { color: var(--accent); }
.site-footer .brand-logo { height: 34px; }
.footer-tag { margin: 12px 0 0; max-width: 26em; color: rgba(255,255,255,.6); }

.footer-col h3 {
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a { display: block; color: rgba(255,255,255,.72); padding: 4px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }

@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
