/* Důchodová kalkulačka (/kalkulacky/duchod) a podrobný rozbor. Barvy a písma z tokenů ve style.css (Signet). */

/* ---------- Úvod s kalkulačkou ---------- */
.dc-hero { grid-template-columns: 1fr minmax(0, 470px); padding-top: 60px; padding-bottom: 68px; align-items: center; }
.dc-intro .lead { max-width: 500px; }

.dc-card {
  background: var(--white); color: var(--text); border-radius: 16px; padding: 26px 26px 22px;
  box-shadow: 0 0 0 10px rgba(184, 147, 106, 0.12), 0 30px 60px rgba(0, 0, 0, 0.35);
  animation: fade-in-up 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.dc-inputs label { margin-bottom: 10px; }
.dc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.dc-row label { margin-bottom: 4px; }
.dc-inputs input[type="number"], .dc-inputs input[type="text"] {
  font-size: 1.05rem; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums;
}
.dc-field-note { margin: 0 0 12px; font-size: 0.78rem; font-weight: 400; color: var(--muted); line-height: 1.4; }
.dc-money input[type="text"] { margin-bottom: 2px; }

/* Posuvník mzdy ve značce: mosazná vyplněná část, světlá stopa, bílý jezdec. */
.dc-inputs input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 26px; margin: 0; padding: 0;
  border: 0; background: transparent; cursor: pointer;
}
.dc-inputs input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(to right, var(--copper) var(--p, 50%), var(--cream-dark) var(--p, 50%));
}
.dc-inputs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--copper); box-shadow: 0 1px 4px rgba(21, 43, 57, 0.25);
}
.dc-inputs input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--cream-dark); }
.dc-inputs input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--copper); }
.dc-inputs input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 2px solid var(--copper);
}
.dc-inputs input[type="range"]:focus-visible { outline: 2px solid var(--copper-dark); outline-offset: 2px; }
html.js .dc-nojs { display: none; }
.dc-nojs { margin-bottom: 12px; }

/* Výsledek: tmavý panel uvnitř bílé karty */
.dc-result {
  margin: 8px 0 14px; padding: 20px 20px 16px; border-radius: 12px; color: var(--cream);
  background: radial-gradient(ellipse 80% 100% at 0% 0%, rgba(184, 147, 106, 0.22), transparent 65%), var(--navy);
}
.dc-label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--copper); }
.dc-main { text-align: center; }
.dc-big {
  display: block; font-family: var(--font-serif); font-weight: 600; font-size: 2.6rem; line-height: 1.1; margin: 6px 0 2px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.dc-sub { font-size: 0.85rem; color: rgba(246, 242, 234, 0.7); }
.dc-meter { height: 8px; border-radius: 999px; margin: 16px 0 14px; overflow: hidden; background: rgba(184, 147, 106, 0.45); }
.dc-meter-fill { display: block; height: 100%; border-radius: 999px; background: var(--cream); transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.dc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dc-pair > div { background: rgba(246, 242, 234, 0.06); border-radius: 8px; padding: 10px 12px; }
.dc-pair .dc-label { color: rgba(246, 242, 234, 0.7); font-size: 0.68rem; }
.dc-pair strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-gap strong { color: var(--copper); }
.dc-ratio { margin: 12px 0 0; font-size: 0.86rem; line-height: 1.5; color: rgba(246, 242, 234, 0.8); }
.dc-ratio b { color: var(--cream); }
.dc-warnings { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-warnings:empty { display: none; }
.dc-warnings li { font-size: 0.8rem; line-height: 1.45; padding-left: 10px; border-left: 2px solid var(--copper); color: rgba(246, 242, 234, 0.85); }
.dc-error { margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #fbeae7; color: var(--danger); font-size: 0.86rem; font-weight: 600; }
.dc-result > div, .dc-result > p:not(.dc-error) { transition: opacity 0.2s ease; }
.dc-result.is-error > div, .dc-result.is-error > p:not(.dc-error), .dc-result.is-error > ul { opacity: 0.35; }

.dc-disclaimer {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px;
  background: #faf6ef; border-left: 3px solid var(--copper); font-size: 0.84rem; line-height: 1.45; color: var(--text);
}
.dc-disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--copper-dark); }
.dc-disclaimer strong { color: var(--navy); }
.dc-disclaimer a { color: var(--copper-dark); }
.dc-card .btn-block { padding: 14px 20px; font-size: 1rem; }

/* ---------- Formulář na podrobný rozbor ---------- */
.dc-lead { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.dc-lead-copy > p:not(.eyebrow) { color: var(--text); line-height: 1.6; }
.dc-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.dc-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--navy); line-height: 1.4; }
.dc-list svg { width: 20px; height: 20px; color: var(--copper-dark); flex-shrink: 0; margin-top: 1px; }
.dc-form { border: 1px solid var(--border); box-shadow: var(--shadow-md); animation: none; }

/* ---------- Výrazné upozornění ---------- */
.dc-notice {
  display: grid; grid-template-columns: 52px 1fr; gap: 22px; max-width: 860px; margin: 0 auto;
  background: var(--white); border: 2px solid var(--copper); border-radius: 16px; padding: 30px 32px; box-shadow: var(--shadow);
}
.dc-notice-icon { width: 52px; height: 52px; border-radius: 999px; background: var(--navy); color: var(--copper); display: flex; align-items: center; justify-content: center; }
.dc-notice-icon svg { width: 26px; height: 26px; }
.dc-notice h2 { font-size: 1.4rem; color: var(--navy); margin: 4px 0 10px; line-height: 1.2; }
.dc-notice p { line-height: 1.6; margin: 0 0 14px; }
.dc-notice p:last-child { margin-bottom: 0; }
.dc-notice .plain-list { margin: 0 0 16px; }
.dc-notice .plain-list li { font-size: 0.94rem; line-height: 1.55; }

/* ---------- Podrobný rozbor ---------- */
.dc-head { padding: 40px 0 44px; }
.dc-head .hero-eyebrow svg { color: var(--copper); }
.dc-head-input { margin: 10px 0 0; font-size: 0.9rem; color: rgba(246, 242, 234, 0.6); }
.dc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.dc-section { padding-top: 40px; padding-bottom: 40px; }
.dc-warnings-page { max-width: 680px; margin: 16px auto 0; }
.dc-warnings-page li { color: var(--text); }
.center-text { text-align: center; }

.dc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.dc-panel { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 26px 26px 20px; box-shadow: var(--shadow); }
.dc-panel h2 { font-size: 1.35rem; color: var(--navy); margin: 0 0 12px; line-height: 1.25; }
.dc-panel-big { display: block; font-size: 2.3rem; color: var(--copper-dark); font-variant-numeric: tabular-nums; }
.dc-panel p { line-height: 1.6; margin: 0 0 12px; }
.dc-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; }
.dc-table th, .dc-table td { padding: 10px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.dc-table th { text-align: left; font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.dc-table th span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.dc-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; padding-left: 12px; }
.dc-table-sum th, .dc-table-sum td { border-bottom: 0; border-top: 2px solid var(--navy); font-size: 1.05rem; }

.dc-bars { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; display: flex; flex-direction: column; gap: 10px; }
.dc-bars li {
  display: grid; grid-template-columns: 230px 1fr 140px; gap: 16px; align-items: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px;
}
.dc-bars li.is-base { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(184, 147, 106, 0.15); }
.dc-bar-label { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.dc-bar-label strong { display: block; color: var(--navy); font-size: 0.95rem; }
.dc-bar-track { height: 12px; background: var(--cream-dark); border-radius: 999px; overflow: hidden; }
.dc-bar { display: block; height: 100%; width: var(--w); border-radius: 999px; background: var(--navy-light); }
.is-base .dc-bar { background: var(--copper); }
html.js .reveal .dc-bar { width: 0; transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .reveal.is-visible .dc-bar { width: var(--w); }
html.js .reveal.is-visible li:nth-child(2) .dc-bar { transition-delay: 0.04s; }
html.js .reveal.is-visible li:nth-child(3) .dc-bar { transition-delay: 0.08s; }
html.js .reveal.is-visible li:nth-child(4) .dc-bar { transition-delay: 0.12s; }
html.js .reveal.is-visible li:nth-child(5) .dc-bar { transition-delay: 0.16s; }
.dc-bar-value { text-align: right; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-bar-value small { display: block; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.dc-print-only { display: none; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .dc-hero { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 44px; gap: 26px; }
  .dc-lead { grid-template-columns: 1fr; gap: 26px; }
  .dc-grid { grid-template-columns: 1fr; }
  .dc-notice { grid-template-columns: 1fr; gap: 14px; padding: 24px 20px; }
}
@media (max-width: 560px) {
  /* Na telefonu ať je kalkulačka co nejvýš. */
  .dc-checks, .dc-intro .hero-trust { display: none; }
  .dc-intro .lead { margin-bottom: 0; }
  .dc-card { padding: 20px 16px 16px; }
  .dc-result { padding: 16px 14px 14px; }
  .dc-big { font-size: 2.2rem; }
  .dc-pair strong { font-size: 1.15rem; }
  .dc-bars li { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px; }
  .dc-bar-track { grid-column: 1 / -1; grid-row: 2; }
  .dc-bar-value { grid-row: 1; grid-column: 2; }
  .dc-panel { padding: 22px 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dc-card { animation: none; }
  html.js .reveal .dc-bar { transition: none; width: var(--w); }
}

/* ---------- Tisk / PDF ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .whatsapp-float, .cookie-bar, .dc-actions, .dc-no-print, .flash { display: none !important; }
  .dc-head { background: none; color: var(--navy); padding: 0 0 8px; }
  .dc-head .wb-watch-title { color: var(--navy); font-size: 22pt; }
  .dc-head .wb-watch-sub, .dc-head-input { color: var(--muted); }
  .dc-head .hero-eyebrow { color: var(--copper-dark); }
  .wb-watch-head, .reveal, html.js .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  html.js .reveal .dc-bar { width: var(--w); transition: none; }
  .dc-section { padding: 10px 0; }
  .wb-stat, .dc-panel, .dc-bars li, .dc-notice { box-shadow: none; break-inside: avoid; }
  .wb-stat.is-gap { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dc-bar, .dc-bar-track, .dc-notice-icon { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .dc-print-only { display: block; text-align: center; font-size: 9pt; color: var(--muted); margin-top: 8px; }
}
