/* Prezentační web Evidky – vzhled „účtenka“: papír, inkoustové linky, čísla strojovým písmem, jedna razítková červená */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }
.center { text-align: center; }
.mono { font-family: var(--mono); }

/* Trhací linka jako na pokladní pásce */
.tear { border: 0; border-top: 1px dashed var(--rule); margin: 0; }

.topbar { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--rule); }
.topbar-inner { display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.topnav { display: flex; gap: 1.25rem; margin-left: 1rem; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 550; font-size: 0.95rem; }
.topnav a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; color: var(--text); }
.topbar-cta { margin-left: auto; display: flex; gap: 0.5rem; }

.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--rule); padding: 0.3rem 0.7rem; font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.5rem; }
.eyebrow strong { color: var(--accent); }
.pulse { width: 8px; height: 8px; background: var(--accent); }
.hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 1.1rem; }
/* Druhý řádek nadpisu podtržený „fixou“, ne jinou barvou */
.hl { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; text-decoration-skip-ink: none; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.lead-sm { font-size: 1.05rem; color: var(--muted); }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }
.sandbox-out { margin: 0 0 1.25rem; max-width: 36rem; border-color: var(--rule); }
.sandbox-pre { background: var(--text); color: var(--bg); border-radius: 0; padding: 0.75rem; font-size: 0.78rem; overflow-x: auto; margin: 0; white-space: pre; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.checks li::before { content: '[✓]'; font-family: var(--mono); font-size: 0.85em; margin-right: 0.5rem; }

/* Účtenka v úvodu: papír se zubatým okrajem nahoře i dole */
.hero-visual { position: relative; min-height: 560px; }
.paper { width: 290px; margin-left: auto; margin-right: 40px; filter: drop-shadow(0 0 0.6px rgb(0 0 0 / 45%)) drop-shadow(0 14px 22px rgb(40 30 10 / 10%)); }
.paper-in {
  --zub: 12px;
  background: #fffdf8; color: #161513; padding: 26px 20px 30px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; position: relative;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zub) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zub) 51% repeat-x;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / var(--zub) 51% repeat-x,
                conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--zub) 51% repeat-x;
}
.r-head { text-align: center; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.r-head span { display: block; font-weight: 400; text-transform: none; letter-spacing: 0; color: #5f5a50; font-size: 0.72rem; }
.r-sep { border-top: 1px dashed #161513; margin: 0.6rem 0; }
.ph-line { display: flex; justify-content: space-between; gap: 1rem; }
.ph-line.muted { color: #5f5a50; }
.r-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; }
.stamp { display: table; margin: 1rem auto 0; border: 2px solid #b3261e; color: #b3261e; padding: 0.15rem 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; transform: rotate(-7deg); background: #fffdf8; }

.code-float { position: absolute; left: 0; bottom: 0; width: 280px; }
.code-card, .code-float { background: #161513; color: #e9e3d6; border-radius: 0; overflow: hidden; border: 1px solid #161513; }
.code-head { display: flex; align-items: center; gap: 6px; padding: 0.5rem 0.8rem; font-family: var(--mono); font-size: 0.75rem; color: #a59f92; border-bottom: 1px dashed #4a463e; text-transform: uppercase; letter-spacing: 0.06em; }
.code-head span { display: none; }
.code-card pre, .code-float pre { margin: 0; padding: 0.9rem 1rem; font-size: 0.8rem; line-height: 1.55; overflow-x: auto; }
.c-ok { color: #9fd4ad; }
.c-com { color: #8c8678; }

/* Pás s fakty */
.band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 1.4rem 1.25rem; border-left: 1px dashed var(--rule); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-v { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.fact-l { color: var(--muted); font-size: 0.9rem; }

/* Sekce: číslované jako položky na účtence, nadpis vlevo pod linkou */
main { counter-reset: oddil; }
.section { padding: 72px 0; counter-increment: oddil; }
.section-alt { background: var(--surface-2); }
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 1.75rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }
.section-title::before { content: counter(oddil, decimal-leading-zero) " /"; display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 400; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.4rem; }
/* Všechno zarovnané k jedné levé hraně jako na dokladu; úzké sekce jen omezí šířku textu */
.section .wrap.narrow, .hero .wrap.narrow { max-width: 1140px; }
.section .wrap.narrow > *, .hero .wrap.narrow > * { max-width: 760px; }
.section .center { text-align: left; }

/* Pro koho: tři sloupce oddělené čárkovanou linkou, bez kartiček */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.cards-3 .card { background: none; border: 0; border-left: 1px dashed var(--rule); border-radius: 0; padding: 0.25rem 1.5rem 0.5rem; }
.cards-3 .card:first-child { border-left: 0; padding-left: 0; }
.feature h3 { font-size: 1.25rem; }
.feature a { font-weight: 650; color: var(--text); text-decoration-thickness: 1px; }
.feature a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.f-ico { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 0.6rem; letter-spacing: 0.06em; }

.dev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.55rem; }
.list li { padding-left: 1.5rem; position: relative; }
.list li::before { content: '—'; position: absolute; left: 0; top: 0; font-family: var(--mono); color: var(--muted); }

/* Srovnávací tabulka: náš sloupec orámovaný inkoustem */
.compare { margin-bottom: 0.75rem; border-color: var(--rule); border-radius: 0; background: var(--surface); }
.compare td.us { background: var(--bg); font-weight: 600; }
.compare th.us { background: var(--text); color: var(--bg); }
.compare th { border-bottom-color: var(--rule); }

/* Na mobilu se srovnání skládá do bloků: řádek = nadpis, pod ním tři popsané hodnoty */
@media (max-width: 640px) {
  .compare.stack thead { display: none; }
  .compare.stack table, .compare.stack tbody, .compare.stack tr, .compare.stack td { display: block; width: 100%; }
  .compare.stack tr { border-bottom: 1px dashed var(--rule); padding: 0.75rem 0.85rem; }
  .compare.stack tr:last-child { border-bottom: 0; }
  .compare.stack td { border: 0; padding: 0.12rem 0; display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; }
  .compare.stack td:first-child { display: block; font-weight: 700; padding-bottom: 0.4rem; }
  .compare.stack td[data-k]::before { content: attr(data-k); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 0.2rem; }
  .compare.stack td.us { background: none; }
  .compare.stack td.us::before { color: var(--accent); font-weight: 700; }
}

/* Ceník */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 1.5rem; align-items: stretch; border: 1px solid var(--rule); background: var(--surface); }
.price { display: flex; flex-direction: column; position: relative; border: 0; border-left: 1px dashed var(--rule); border-radius: 0; background: none; }
.price:first-child { border-left: 0; }
.price h3 { font-size: 1.05rem; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--mono); font-weight: 700; }
.price .list { flex: 1; font-size: 0.93rem; }
.p-v { font-family: var(--mono); font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.4rem 0 0.5rem; }
.p-v span { font-size: 0.85rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price.featured { background: var(--bg); outline: 2px solid var(--rule); outline-offset: -1px; z-index: 1; }
.ribbon { position: absolute; top: 14px; right: 14px; border: 2px solid var(--accent); color: var(--accent); background: transparent; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.1rem 0.4rem; transform: rotate(4deg); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.services .card { border: 1px dashed var(--rule); border-radius: 0; background: none; }
.service { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.service h3 { font-size: 1.05rem; }
.service p { margin: 0; }
.s-v { font-family: var(--mono); font-weight: 700; font-size: 1.1rem; white-space: nowrap; }

/* Harmonogram: čtverečky a čárkovaná osa */
.timeline { list-style: none; padding: 0; margin: 0; max-width: 760px; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 1.25rem; padding: 0 0 1.25rem 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 133px; top: 0.4rem; width: 10px; height: 10px; background: var(--bg); border: 1px solid var(--rule); }
.timeline li::after { content: ''; position: absolute; left: 138px; top: 1.15rem; bottom: -0.15rem; border-left: 1px dashed var(--rule); }
.timeline li:last-child::after { display: none; }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); }
.timeline li.now time { color: var(--accent); }
.timeline time { font-family: var(--mono); font-weight: 700; text-align: right; font-size: 0.92rem; }
.timeline li > div { padding-left: 1.75rem; }
.timeline p { margin: 0.15rem 0 0; }

/* Otázky: řádky oddělené čárkovanou linkou */
.faq { border-bottom: 1px dashed var(--rule); padding: 0.9rem 0; }
.faq:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; }
.faq[open] summary::after { content: '−'; }
.faq p { margin: 0.6rem 0 0; color: var(--muted); }

/* Patička jako konec pásky: inkoustová */
.footer { padding: 36px 0; background: var(--text); color: var(--bg); }
.footer a { color: var(--bg); }
.footer .logo { color: var(--bg); }
.footer .logo-mark { background: var(--bg); color: var(--text); }
.footer .muted { color: color-mix(in srgb, var(--bg) 70%, var(--text)); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; font-size: 0.92rem; }

@media (max-width: 960px) {
  .topnav { display: none; }
  .hero-grid, .dev-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; display: grid; gap: 1rem; }
  .paper { margin: 0 auto; }
  .code-float { position: static; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px dashed var(--rule); }
  .cards-3, .pricing, .services { grid-template-columns: 1fr; }
  .cards-3 .card { border-left: 0; padding: 1.25rem 0; border-top: 1px dashed var(--rule); }
  .cards-3 .card:first-child { border-top: 0; padding-top: 0; }
  .price { border-left: 0; border-top: 1px dashed var(--rule); }
  .price:first-child { border-top: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; padding-left: 1.75rem; }
  .timeline li::before { left: 0; }
  .timeline li::after { left: 5px; }
  .timeline time { text-align: left; }
  .timeline li > div { padding-left: 0; }
}
@media (max-width: 480px) {
  .topbar-cta .btn-ghost { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; padding-left: 0; }
  .fact + .fact { border-top: 1px dashed var(--rule); }
}
