/* ===========================================================
   EduCraft — sdílený styl produktových podstránek
   Navazuje na vizuální jazyk hlavní stránky (navy + gold).
   =========================================================== */

:root {
  --navy: #1f3a5f;
  --navy-dark: #152945;
  --navy-deep: #0f1f36;
  --gold: #f5c518;
  --gold-dark: #d9a90f;
  --gold-soft: #fde68a;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-card: #ffffff;
  --border: #e1e7ef;
  --text: #1f3a5f;
  --text-muted: #5a6a7e;
  --text-dim: #8a95a5;
  --white: #ffffff;

  /* semafor */
  --sem-green: #34a05a;
  --sem-yellow: #f0c020;
  --sem-orange: #e8902a;
  --sem-red: #d65745;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1080px;
  --section-pad: 88px;
  --shadow-sm: 0 1px 3px rgba(31, 58, 95, 0.06);
  --shadow-md: 0 6px 24px rgba(31, 58, 95, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 31, 54, 0.18);

  /* per-product accent (default = gold); přepiš na <body style="--accent:..."> */
  --accent: var(--gold);
  --accent-dark: var(--gold-dark);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---------- NAV ---------- */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; max-width: var(--maxw); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.logo img.logo-full { height: 44px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-back { font-weight: 600; }
.nav-back::before { content: "← "; color: var(--accent-dark); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-accent:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: var(--shadow-md); }
.btn-outline-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--navy-deep); border-color: var(--white); }

/* ---------- SECTIONS / TYPO ---------- */
section { padding: var(--section-pad) 0; }
section.tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 16px;
}
.eyebrow.muted { color: var(--navy); opacity: 0.7; }
h1, h2, h3, h4 { letter-spacing: -0.02em; font-weight: 700; line-height: 1.18; color: var(--navy-dark); }
h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 18px; }
h3 { font-size: 21px; margin-bottom: 10px; }
h4 { font-size: 17px; margin-bottom: 8px; }
p { color: var(--text-muted); }
p + p { margin-top: 14px; }
.lead { font-size: 19px; color: var(--text-muted); max-width: 760px; }
.prose p { font-size: 17px; line-height: 1.75; }
.prose p + p { margin-top: 16px; }
strong { color: var(--navy); }

/* ---------- PRODUCT HERO ---------- */
.phero {
  padding: 84px 0 64px;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 45%),
    radial-gradient(circle at 8% 88%, rgba(31, 58, 95, 0.06), transparent 50%),
    var(--bg);
}
.phero .eyebrow { margin-bottom: 14px; }
.phero h1 { font-size: clamp(38px, 5.4vw, 60px); color: var(--navy-dark); letter-spacing: -0.03em; }
.phero .tagline {
  font-size: clamp(19px, 2.4vw, 24px); color: var(--navy);
  font-weight: 500; margin-top: 16px; max-width: 720px; line-height: 1.45;
}
.phero .lead { margin-top: 18px; }
.phero-ctas { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* status badge */
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  vertical-align: middle;
}
.badge-live { background: rgba(34,160,90,0.13); color: #1c7a45; border: 1px solid rgba(34,160,90,0.35); }
.badge-pilot { background: rgba(245,197,24,0.22); color: var(--gold-dark); border: 1px solid rgba(245,197,24,0.55); }
.badge-soon { background: rgba(31,58,95,0.08); color: var(--text-muted); border: 1px solid var(--border); }

/* ---------- STAT ROW ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px;
}
.stat {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.stat .lbl { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

/* ---------- FEATURE GRID ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.fgrid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fcard {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.fcard:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.fcard h3 { font-size: 18px; color: var(--navy-dark); }
.fcard p { font-size: 14.5px; }
.fcard .dot {
  width: 36px; height: 36px; border-radius: 9px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 15px;
}

/* ---------- ROLE COLUMNS ---------- */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.role {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--accent);
}
.role .role-name {
  font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 12px;
}
.role h3 { font-size: 18px; margin-bottom: 12px; }
.role ul { list-style: none; display: grid; gap: 9px; }
.role ul li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }
.role ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- STEP LIST ---------- */
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; margin-top: 28px; }
.steps li {
  position: relative; padding: 20px 22px 20px 64px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); font-size: 15.5px; color: var(--text-muted); line-height: 1.6;
}
.steps li strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 2px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}

/* ---------- BULLET LIST (prose) ---------- */
.blist { list-style: none; display: grid; gap: 11px; margin-top: 8px; }
.blist li { position: relative; padding-left: 24px; font-size: 16px; color: var(--text-muted); line-height: 1.6; }
.blist li::before {
  content: ""; position: absolute; left: 0; top: 10px; width: 12px; height: 3px;
  background: var(--accent); border-radius: 2px;
}
.blist li strong { color: var(--navy); }

/* ---------- SEMAFOR ---------- */
.semafor { display: grid; gap: 10px; margin-top: 26px; }
.sem-row {
  display: grid; grid-template-columns: 16px 150px 1fr; gap: 16px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.sem-dot { width: 16px; height: 16px; border-radius: 50%; }
.sem-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.sem-desc { font-size: 14.5px; color: var(--text-muted); }
.sem-green { background: var(--sem-green); }
.sem-yellow { background: var(--sem-yellow); }
.sem-orange { background: var(--sem-orange); }
.sem-red { background: var(--sem-red); }

/* ---------- TABLE ---------- */
.tbl-wrap { margin-top: 26px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--bg-card); }
table.data th, table.data td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { background: var(--bg-soft); color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data .code { font-weight: 800; color: var(--accent-dark); white-space: nowrap; }

/* ---------- NOTE / CALLOUT ---------- */
.note {
  margin-top: 26px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-left: 4px solid var(--accent); color: var(--navy);
}
.note p { color: var(--navy); }
.note.info { background: rgba(31,58,95,0.05); border-left-color: var(--navy); }
.note .note-label { font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-dark); font-size: 22px; font-weight: 700; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 22px 20px; font-size: 15.5px; }

/* ---------- ECOSYSTEM STRIP ---------- */
.eco-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.eco-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card);
  font-size: 14px; color: var(--text-muted); font-weight: 600;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.eco-chip:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }
.eco-chip.is-current { background: var(--navy); color: var(--white); border-color: var(--navy); }
.eco-chip .role-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

/* ---------- CTA BAND ---------- */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 50%),
    radial-gradient(circle at 15% 80%, rgba(31, 58, 95, 0.12), transparent 50%),
    var(--navy);
  color: var(--white); text-align: center; padding: 96px 0;
}
.cta-band h2 { color: var(--white); max-width: 680px; margin: 0 auto 16px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 28px; font-size: 17px; }
.cta-band .eyebrow { color: var(--gold); }
.cta-band .phero-ctas { justify-content: center; }

/* ---------- FOOTER ---------- */
footer.site-footer { background: var(--navy-deep); color: var(--white); padding: 52px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
footer .brand-block img.logo-footer { height: 42px; width: auto; }
footer .meta { color: rgba(255,255,255,0.6); font-size: 13px; margin-top: 16px; }
footer .foot-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
footer .foot-links a { color: rgba(255,255,255,0.8); font-size: 14px; transition: color .2s ease; }
footer .foot-links a:hover { color: var(--gold); }

/* ---------- TIMELINE ---------- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.tl-step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; border-top: 3px solid var(--accent);
}
.tl-step .when { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 8px; }
.tl-step p { font-size: 14.5px; }

/* ---------- TWO-COL ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  :root { --section-pad: 56px; }
  .nav-links a:not(.btn):not(.nav-back) { display: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .fgrid, .fgrid.cols-2, .roles, .timeline { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .phero { padding: 52px 0 44px; }
  .phero-ctas { flex-direction: column; }
  .phero-ctas .btn { text-align: center; width: 100%; }
  .sem-row { grid-template-columns: 16px 1fr; }
  .sem-desc { grid-column: 1 / -1; padding-left: 32px; }
  .logo img.logo-full { height: 36px; }
  .nav-inner { padding: 10px 16px; }
  .cta-band { padding: 72px 0; }
}
