/* ==========================================================================
   s3-page.css: the generated pages (landing pages, /soukromi, 404) in the S3
   "Dlaždice" look, 2026-09-23. Loaded AFTER css/s3.css, which supplies the
   tokens, the nav, the tiles, the FAQ, the buttons and the footer. This file
   only adds what long-form reading needs: a head tile, white document tiles
   (the sources' .sheet), lists, the feature grid, price rows and cards, the
   closing CTA tile, and the privacy/404 layouts. Scoped to body.page.
   Replaces style.css + page.css for these pages (both kept for rollback).
   ========================================================================== */

/* the nav on these pages marks the page you are on (the homepage marks sections instead) */
.page .nav-links a[aria-current="page"] { color: var(--ink); }
.page .nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--blue); }
.page .mobile-menu a[aria-current="page"] { color: var(--blue); }

/* ---------- head tile: breadcrumb, eyebrow, H1, lead, two ways in, the three promises ---------- */
.page-head { min-height: 0; padding: 72px var(--sp-4) 64px; }
.page-head .crumbs { font-size: 14px; font-weight: 500; opacity: .88; margin-bottom: 18px; }
.page-head .crumbs a { color: inherit; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.page-title { font-size: clamp(2.4rem, 1.1rem + 4.2vw, 4.75rem); line-height: 1.03; font-weight: 600; letter-spacing: -.032em; margin-top: 8px; text-wrap: balance; max-width: 16em; }
.page-head .tile__lead { max-width: 38em; }
.page-assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: var(--sp-3); font-size: 15px; }
.page-assure li { padding-left: 22px; position: relative; }
.page-assure li::before { content: "✓"; position: absolute; left: 0; font-weight: 600; }
.page-assure strong { font-weight: 600; }
.tile--sky .crumbs, .tile--sky .page-title, .page-assure { text-shadow: 0 1px 14px rgba(8, 30, 62, .38); }
/* the promises row sits at the bottom of the tile, where the default shade has already faded out */
.page-head::before { background: linear-gradient(180deg, rgba(8, 30, 62, .40) 0%, rgba(8, 30, 62, .26) 45%, rgba(8, 30, 62, .44) 100%); }

/* ---------- document tiles: every <section class="sheet"> in pages/*.html ---------- */
.page .sheet { grid-column: 1 / -1; background: var(--white); border-radius: var(--radius-tile); padding: var(--sp-5) var(--sp-4); }
.page .sheet > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.page .sheet > .sheet-grid, .page .sheet > .pricing { max-width: 1060px; }
.page .sheet > :first-child { margin-top: 0; }
.page .sheet > :last-child { margin-bottom: 0; }
.page .sheet h2 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.1; font-weight: 600; letter-spacing: -.025em; margin-bottom: 18px; text-wrap: balance; }
.page .sheet h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; margin: 28px auto 6px; }
.page .sheet p { color: var(--ink-2); margin-bottom: 16px; }
.page .sheet strong { color: var(--ink); font-weight: 600; }
.page .sheet a { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.page .sheet a:hover { color: var(--blue-hover); }
/* s3.css strips list styling globally (tiles use lists as layout); prose lists get it back */
.page .sheet ul, .page .sheet ol { margin-bottom: 16px; color: var(--ink-2); display: grid; gap: 8px; }
.page .sheet ul > li { padding-left: 22px; position: relative; }
.page .sheet ul > li::before { content: ""; position: absolute; left: 4px; top: .66em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.page .sheet ol { list-style: decimal; padding-left: 1.4em; }
.page .sheet ol > li { padding-left: 4px; }
.page .sheet ol > li::marker { color: var(--blue); font-weight: 600; font-variant-numeric: tabular-nums; }
.page .sheet .faq { margin-top: 8px; }
.page .sheet .faq details p { max-width: none; }

/* the feature grid: hairline-topped columns, like the homepage's Služby */
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 32px; margin-top: 28px; }
.sheet-grid > div { border-top: 1px solid var(--line); padding: 18px 0 8px; }
.page .sheet .sheet-grid h3 { margin: 0 0 6px; }
.page .sheet .sheet-grid p { font-size: 16px; margin-bottom: 0; }

/* price rows (/cenik): name left, amount right, description below */
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.price-row:first-of-type { border-top: 0; padding-top: 6px; }
.page .sheet .price-row h3 { margin: 0; flex: 1 1 14rem; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); }
.price-row .amount { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.price-row .amount small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.page .sheet .price-row p { flex: 1 1 100%; margin: 4px 0 0; font-size: 16px; }

/* price cards inside a document tile (/tvorba-webovych-stranek): the homepage cards in miniature */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 12px; margin: 26px auto 22px; }
.price-card { background: var(--bg); border-radius: 22px; padding: 32px 30px; display: flex; flex-direction: column; gap: 6px; }
.price-featured { background: var(--navy); color: var(--navy-ink); }
.page .sheet .price-badge { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--blue-on-navy); margin: 0; } /* .sheet p would otherwise grey it out on navy */
.page .sheet .price-for { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0; }
.page .sheet .price-featured .price-for { color: var(--navy-muted); }
.page .sheet .price-card h3 { margin: 0; }
.page .sheet .price-card__amt { font-size: clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; color: var(--ink); margin: 6px 0 4px; white-space: nowrap; }
.page .sheet .price-featured .price-card__amt { color: #fff; }
.price-od { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-right: 2px; }
.price-featured .price-od { color: var(--navy-muted); }
.page .sheet .price-card ul { margin: 10px 0 22px; font-size: 16px; }
.page .sheet .price-featured ul { color: var(--navy-muted); }
.page .sheet .price-featured ul > li::before { background: var(--blue-on-navy); }
.page .sheet .price-card .btn { margin-top: auto; align-self: flex-start; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid #cfd6e0; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.page .sheet .btn-primary { color: #fff; }

/* ---------- closing CTA tile ---------- */
.page-cta { min-height: 0; padding: var(--sp-6) var(--sp-4); }
.page-cta::before { background: linear-gradient(180deg, rgba(8, 30, 62, .40) 0%, rgba(8, 30, 62, .32) 50%, rgba(8, 30, 62, .52) 100%); }
.page-cta .tile__title { max-width: 18em; }
.page-cta .tile__lead { max-width: 32em; }
.page-cta .btn-ghost, .page-error .tile__links .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); background: rgba(8, 30, 62, .32); }
.page-cta .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }
.page-cta-direct { margin-top: var(--sp-3); font-size: 16px; text-shadow: 0 1px 12px rgba(8, 30, 62, .45); }
.page-cta-direct a { color: #fff; text-underline-offset: .22em; }
.page-cta-note { margin-top: 10px; font-size: 15px; max-width: 40em; opacity: .92; text-shadow: 0 1px 12px rgba(8, 30, 62, .45); }

/* ---------- /soukromi: a plain document (white head, one reading tile) ---------- */
.page-head--doc { background: var(--white); color: var(--ink); padding: 64px var(--sp-4) 40px; }
.page-head--doc .crumbs { color: var(--muted); opacity: 1; }
.page-head--doc .page-title { font-size: clamp(2.1rem, 1.2rem + 2.8vw, 3.5rem); }
.page-head--doc .tile__eyebrow { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 10px auto 18px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.doc th { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.page .sheet.doc h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); margin-top: 40px; margin-bottom: 10px; }
.page .sheet.doc h2:first-child { margin-top: 0; }

/* ---------- 404: one sky tile ---------- */
.page-error { min-height: min(72vh, 720px); justify-content: center; padding: var(--sp-6) var(--sp-4); }
/* the words sit mid-tile and the cloud bank rises behind them: an even, deeper shade than the default */
.page-error::before { background: linear-gradient(180deg, rgba(8, 30, 62, .34) 0%, rgba(8, 30, 62, .42) 55%, rgba(8, 30, 62, .52) 100%); }
.page-error .tile__eyebrow, .page-error .tile__lead, .page-error-foot { text-shadow: 0 1px 12px rgba(8, 30, 62, .5); }
.page-error .tile__links .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); color: #fff; }
.page-error-foot { margin-top: var(--sp-4); font-size: 15px; opacity: .92; }
.page-error-foot a { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .page-head { padding: 52px 22px 48px; }
  .page .sheet { padding: 44px 24px; }
  .page-cta { padding: 72px 22px; }
  .page-head--doc { padding: 44px 22px 28px; }
  .doc table, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc tr:first-child { display: none; }            /* the header row: on a phone each row reads as a pair */
  .doc td { border-bottom: 0; padding: 0; }
  .doc td:first-child { font-weight: 600; color: var(--ink); padding-top: 14px; }
  .doc td:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .price-card { padding: 28px 22px; }
}

@media print {
  .page .sheet { padding: 0; }
  .page-head, .page-cta, .page-error { color: #000 !important; }
}
