/* digipas.cz — hlavní brand Digital Product Pass
   Identita: teplá papírová bílá + hluboká lesní zelená
   Typografie: Bricolage Grotesque (nadpisy) + Work Sans (text) */

:root {
  --paper: #FBFAF6;
  --paper-tint: #F3F1E9;
  --ink: #1D2823;
  --ink-soft: #46514B;
  --green: #175C3F;
  --green-dark: #0F4530;
  --green-tint: #E7EFE9;
  --line: #E2DFD4;
  --radius: 12px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Work Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Work Sans", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; max-width: var(--max); margin: 0 auto; padding: 0 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700; font-size: 1.35rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo svg { display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 9px 18px;
  border-radius: 999px; font-weight: 600 !important;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--green-dark); }
@media (max-width: 760px) { .nav-links li:not(.cta-li) { display: none; } }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 15ch; }
.hero p.lead {
  margin-top: 22px; font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch;
}
.hero-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* timeline karta v hero */
.timeline-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: 0 12px 32px rgba(29, 40, 35, 0.07);
}
.timeline-card h2 {
  font-size: 1rem; font-weight: 600; color: var(--ink-soft);
  font-family: "Work Sans", sans-serif; letter-spacing: 0; margin-bottom: 18px;
}
.tl { list-style: none; }
.tl li {
  display: grid; grid-template-columns: 112px 1fr; gap: 14px;
  padding: 12px 0; border-top: 1px solid var(--paper-tint); align-items: baseline;
}
.tl li:first-child { border-top: 0; }
.tl time { font-weight: 700; font-size: 0.95rem; color: var(--green); white-space: nowrap; }
.tl span { font-size: 0.97rem; color: var(--ink); }
.tl .muted { color: var(--ink-soft); font-size: 0.85rem; display: block; }
.badge-live {
  display: inline-block; background: var(--green-tint); color: var(--green-dark);
  font-size: 0.75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  margin-left: 6px; vertical-align: middle;
}

@media (max-width: 880px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- sekce ---------- */
section { padding: 76px 0; }
section.tinted { background: var(--paper-tint); }
.section-head { max-width: 62ch; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.08rem; }

/* co je DPP: split s diagramem */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .prose p + p { margin-top: 16px; }
.split .prose p { color: var(--ink-soft); }
.split .prose p strong { color: var(--ink); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }

/* schématický diagram pasu (poctivé schéma, ne fake UI) */
.pass-diagram {
  background: var(--green); border-radius: var(--radius); padding: 30px 28px;
  color: #fff; position: relative;
}
.pass-diagram .pd-label {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: #A9C7B4; margin-bottom: 18px;
}
.pass-diagram ul { list-style: none; }
.pass-diagram li {
  padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.97rem; display: flex; justify-content: space-between; gap: 16px;
}
.pass-diagram li:first-child { border-top: 0; }
.pass-diagram li span:last-child { color: #BCD4C4; text-align: right; }
.pd-foot {
  margin-top: 18px; font-size: 0.85rem; color: #A9C7B4;
}

/* harmonogram karty */
.sector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.sector {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px;
}
.sector.now { border-color: var(--green); border-width: 1.5px; }
.sector h3 { font-size: 1.12rem; }
.sector time { font-weight: 700; color: var(--green); font-size: 1rem; }
.sector p { color: var(--ink-soft); font-size: 0.93rem; }
.sector .status { font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); }
.sector.now .status { color: var(--green-dark); }
@media (max-width: 880px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }
.timeline-note { margin-top: 22px; color: var(--ink-soft); font-size: 0.92rem; max-width: 70ch; }

/* rizika: prostý seznam s linkami */
.risk-list { list-style: none; max-width: 74ch; }
.risk-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.risk-list li:last-child { border-bottom: 1px solid var(--line); }
.risk-list h3 { font-size: 1.1rem; margin-bottom: 6px; }
.risk-list p { color: var(--ink-soft); font-size: 0.98rem; max-width: 68ch; }

/* jak se připravit */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* o nás */
.about-band p { max-width: 66ch; color: var(--ink-soft); }
.about-band p + p { margin-top: 16px; }
.about-band p strong { color: var(--ink); }

/* CTA závěr */
.cta-band { background: var(--green); border-radius: 20px; padding: 56px 48px; color: #fff; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); max-width: 22ch; }
.cta-band p { margin-top: 14px; color: #C4D8CC; max-width: 52ch; }
.cta-band .btn-light {
  margin-top: 28px; background: #fff; color: var(--green-dark);
}
.cta-band .btn-light:hover { background: var(--green-tint); }
@media (max-width: 640px) { .cta-band { padding: 40px 28px; } }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 44px 0 52px; }
.foot-grid {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  align-items: flex-start;
}
.foot-grid p { color: var(--ink-soft); font-size: 0.92rem; max-width: 44ch; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.foot-links a { color: var(--ink-soft); font-size: 0.92rem; }
.foot-note { margin-top: 28px; font-size: 0.85rem; color: var(--ink-soft); }
