/* kamolabs.cz interior pages (Kamo Chat, Kamo CZ, legal, 404) — "Kamo Lab" brand.
   Shares the tokens/type of the home page (assets/home.css) so the whole site reads as
   one design: navy #16306B / red #D7141A / white-ice, Nunito + Plus Jakarta Sans.
   No inline styles/scripts (site CSP: script-src 'none', style-src 'self'). */

:root {
  color-scheme: light;
  --display: "Nunito", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --navy: #16306B;
  --navy-deep: #0F2350;
  --navy-ink: #101A33;
  --navy-soft: #1E3F8A;
  --red: #D7141A;
  --red-dark: #A80F14;
  --ink: #17233F;
  --muted: #56617A;
  --muted-2: #8A93A8;
  --white: #ffffff;
  --ice: #F2F6FD;
  --line: #DCE5F5;
  --line-soft: #E8EEF9;
  --blue-tint: #E7EEFC;
  --blue-line: #C9D8F2;
  --green: #1F7A4D;
  --green-dark: #155537;
  --green-bg: #EDF6EE;
  --shadow: 0 24px 60px rgba(15, 35, 80, 0.14);
}

* { box-sizing: border-box; }

html { min-width: 320px; overflow-x: clip; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin-left: auto; margin-right: auto; padding-left: clamp(20px, 5vw, 40px); padding-right: clamp(20px, 5vw, 40px); }

/* ---------- Shared shell (matches home) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(20px, 5vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-name { font-family: var(--display); font-weight: 900; font-size: 21px; color: var(--navy); letter-spacing: -0.01em; }
.brand-name em { font-style: normal; color: var(--red); }

.site-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.nav-link { color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s; }
.nav-link.active { color: var(--navy); font-weight: 700; }
.nav-link:hover { color: var(--navy); }

.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  padding: 26px clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-mark { width: 28px; height: 28px; display: block; }
.footer-name { font-family: var(--display); font-weight: 800; color: var(--navy); }
.footer-name em { font-style: normal; color: var(--red); }
.site-footer .foot-copy { margin-left: auto; }
.site-footer a { color: var(--muted); font-weight: 600; text-decoration: none; }
.site-footer a:hover { color: var(--navy); }

/* ---------- Product pages (Kamo Chat / Kamo CZ) ---------- */
.p-hero {
  background:
    radial-gradient(1000px 460px at 88% -10%, rgba(22, 48, 107, .08), transparent 60%),
    linear-gradient(180deg, var(--ice), #fff 90%);
}
.p-hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(52px, 8vw, 92px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow.chat { color: var(--navy-soft); }
.eyebrow.cz { color: var(--red); }
.p-hero h1 {
  margin: 0; font-family: var(--display); font-weight: 900;
  font-size: clamp(36px, 5vw, 52px); line-height: 1.06; letter-spacing: -0.02em; color: var(--navy-deep);
  text-wrap: pretty;
}
.lede { max-width: 560px; margin: 20px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 19px); line-height: 1.6; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--navy);
  background: #fff; color: var(--navy);
  font-size: 15px; font-weight: 700; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(215, 20, 26, .22); }
.button-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button-ghost:hover { background: var(--navy); color: #fff; }

/* device mockups (pure CSS, restyled navy) */
.p-hero-grid.reverse .p-scene { order: 1; }
.p-hero-grid.reverse .p-hero-copy { order: 2; }
.p-scene { display: flex; justify-content: center; }
.device {
  width: min(300px, 82vw);
  background: var(--navy-ink); border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 35, 80, .30);
}
.device-bar { width: 92px; height: 20px; margin: 0 auto 10px; border-radius: 999px; background: #05070f; }
.screen { padding: 20px; border-radius: 28px; background: #fff; }
.screen-title { margin-bottom: 18px; font-family: var(--display); font-size: 20px; font-weight: 900; color: var(--navy-deep); }
.transcript-line { margin: 0 0 10px; padding: 12px 13px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.transcript-line.source { background: #F1F4FA; color: var(--ink); }
.transcript-line.target { background: var(--blue-tint); color: var(--navy); }
.transcript-line.small { background: #fff; border: 1.5px solid var(--line); color: var(--muted); font-weight: 600; }
.wave-row { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 18px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; }
.wave-row span { width: 16%; min-width: 14px; border-radius: 999px; background: var(--red); }
.wave-row span:nth-child(1) { height: 24px; }
.wave-row span:nth-child(2) { height: 40px; }
.wave-row span:nth-child(3) { height: 54px; background: var(--navy); }
.wave-row span:nth-child(4) { height: 32px; }
.wave-row span:nth-child(5) { height: 46px; }

.exam-visual { width: min(340px, 84vw); padding: 20px; border-radius: 24px; background: #fff; border: 1.5px solid var(--line); box-shadow: 0 30px 60px rgba(15, 35, 80, .12); }
.paper { padding: 20px; border-radius: 16px; background: var(--ice); }
.paper-heading { margin-bottom: 18px; font-family: var(--display); font-size: 19px; font-weight: 900; color: var(--navy-deep); }
.answer-row { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 11px; min-height: 46px; margin-bottom: 10px; padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600; }
.answer-row span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--line-soft); font-family: var(--display); font-weight: 800; color: var(--muted); }
.answer-row.active { border-color: var(--green); background: var(--green-bg); }
.answer-row.active span { background: var(--green); color: #fff; }
.answer-row.active strong { color: var(--green-dark); }
.score-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.score-line b { font-family: var(--display); color: var(--red); font-size: 38px; }
.score-line em { color: var(--muted); font-style: normal; font-weight: 700; }

/* feature row */
.p-features { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(40px, 6vw, 64px); }
.p-features h2 { margin: 0 0 28px; font-family: var(--display); font-weight: 900; font-size: clamp(26px, 3.6vw, 34px); color: var(--navy-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 26px 24px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 28px rgba(15, 35, 80, .05); }
.feature-ico { width: 30px; height: 30px; color: var(--red); margin-bottom: 14px; display: block; }
.feature h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--navy-deep); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* closing band */
.p-band { background: var(--navy-deep); }
.p-band-inner { padding-top: clamp(48px, 7vw, 72px); padding-bottom: clamp(48px, 7vw, 72px); text-align: center; }
.p-band h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 900; font-size: clamp(28px, 4vw, 40px); color: #fff; }
.p-band p { margin: 0 auto 26px; max-width: 560px; color: #B9C5E4; font-size: 17px; line-height: 1.65; }
.p-policies { display: inline-flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; font-size: 14px; }
.p-policies a { color: #9FB0D8; font-weight: 700; text-decoration: none; }
.p-policies a:hover { color: #fff; }

/* ---------- 404 ---------- */
.hero, .hero-compact { }
.hero-compact { padding: clamp(72px, 12vw, 140px) clamp(20px, 5vw, 40px); text-align: center; }
.hero-compact .hero-copy { max-width: 620px; margin: 0 auto; }
.hero-compact .eyebrow { color: var(--red); }
.hero-compact h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 60px); color: var(--navy-deep); }
.hero-compact .actions { justify-content: center; }

/* ---------- Legal pages ---------- */
.legal-body { background: #fff; }
.legal-page { max-width: 820px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 40px) 80px; }
.legal-page .eyebrow { color: var(--red); }
.legal-page h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; color: var(--navy-deep); }
.legal-page h2 { margin: 38px 0 10px; font-family: var(--display); font-weight: 800; font-size: 23px; color: var(--navy-deep); }
.legal-page p, .legal-page li { color: var(--muted); font-size: 17px; line-height: 1.68; }
.legal-page a { color: var(--navy); font-weight: 700; }
.legal-page a:hover { color: var(--red); }
.legal-meta { margin-top: 20px; color: var(--muted-2); }
.legal-page ul { margin: 12px 0 18px; padding-left: 1.4em; }
.legal-page li { margin-bottom: 8px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; }
.legal-page th, .legal-page td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; line-height: 1.55; color: var(--muted); }
.legal-page th { font-family: var(--display); font-weight: 800; color: var(--navy-deep); background: var(--ice); }
.lang-switcher { margin: 0 0 22px; color: var(--muted); font-size: 0.92rem; }
.lang-switcher a { color: var(--navy); font-weight: 600; text-decoration: none; }
.lang-switcher a:hover { text-decoration: underline; color: var(--red); }
.lang-switcher strong { color: var(--ink); font-weight: 800; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .p-hero-grid, .p-hero-grid.reverse { grid-template-columns: 1fr; gap: 32px; }
  .p-hero-grid.reverse .p-scene, .p-hero-grid.reverse .p-hero-copy { order: initial; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { gap: 10px 16px; }
  .site-nav { gap: 16px; width: 100%; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .site-footer .foot-copy { margin-left: 0; width: 100%; }
}
