/* ============================================================================
 *  SolárKalk — design system (čistě bílý, jeden teplý akcent)
 * ==========================================================================*/
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e7e9ee;
  --line-2: #f1f3f7;
  --accent: #f5a524;        /* solární zlatá */
  --accent-ink: #a86a08;
  --accent-soft: #fff7e8;
  --accent-soft-2: #fdeccb;
  --ok: #16a34a;
  --ok-soft: #eafaf0;
  --blue: #2563eb;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.05);
  --shadow-lg: 0 2px 6px rgba(15,23,42,.05), 0 24px 60px rgba(15,23,42,.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Outfit', var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; margin: 0; }
button { font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.mono-num { font-variant-numeric: tabular-nums; }

/* ---------------------------- App bar --------------------------------- */
.appbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #ffd071, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(168,106,8,.25);
}
.brand .logo svg { width: 18px; height: 18px; }
.appbar .step-count { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------------------------- Layout ---------------------------------- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0 80px; }

/* ----------------------------- Hero ----------------------------------- */
.hero { text-align: center; padding: 64px 0 24px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .82rem; font-weight: 500; color: var(--accent-ink);
  background: var(--accent-soft); border: 1px solid var(--accent-soft-2);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); line-height: 1.05; }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin: 18px auto 30px; }
.hero .cta-row { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.hero .note { color: var(--faint); font-size: .9rem; }
.hero-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 56px; }
.hero-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: left;
  background: var(--panel); box-shadow: var(--shadow);
}
.hero-card .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-ink); }
.hero-card h3 { font-size: 1.02rem; }
.hero-card p { color: var(--muted); font-size: .9rem; margin: 6px 0 0; }

/* --------------------------- Stepper (moderní propojený) -------------- */
.stepper { padding-top: 30px; }
.stepnodes { position: relative; display: flex; justify-content: space-between; }
.stepnodes::before {           /* podkladová stopa */
  content: ''; position: absolute; top: 17px; left: 6%; right: 6%; height: 2px;
  background: var(--line); border-radius: 999px; z-index: 0;
}
.track-fill {                  /* plnicí stopa (gold) */
  position: absolute; top: 17px; left: 6%; height: 2px; width: 0;
  background: linear-gradient(90deg, #ffce7a, var(--accent)); border-radius: 999px;
  z-index: 0; transition: width .45s cubic-bezier(.4,0,.2,1);
}
.stepnode { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; background: transparent; border: none; padding: 0; cursor: pointer; }
.sn-dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: .92rem; color: var(--faint);
  background: #fff; border: 2px solid var(--line);
  box-shadow: 0 0 0 5px #fff; transition: .28s cubic-bezier(.4,0,.2,1);
}
.sn-label { font-size: .82rem; color: var(--faint); font-weight: 500; transition: .25s; }
.stepnode:hover .sn-dot { border-color: var(--accent-soft-2); }
.stepnode.done .sn-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepnode.done .sn-label { color: var(--ink-2); }
.stepnode.active .sn-dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--accent-soft); transform: scale(1.1); }
.stepnode.active .sn-label { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .sn-label { font-size: .72rem; }
  .stepnode:not(.active) .sn-label { display: none; }
  .sn-dot { width: 32px; height: 32px; font-size: .85rem; }
  .stepnodes::before, .track-fill { top: 15px; }
}

/* ----------------------------- Card ----------------------------------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 34px 32px; box-shadow: var(--shadow); margin-top: 24px;
}
.step-head { margin-bottom: 26px; }
.step-head .kicker { font-size: .8rem; font-weight: 600; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.step-head h2 { font-size: 1.7rem; margin-top: 6px; }
.step-head p { color: var(--muted); margin: 8px 0 0; }
.fade-in { animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px);} to {opacity:1; transform:none;} }

/* ----------------------------- Fields --------------------------------- */
.field { margin-bottom: 22px; }
.field > label.lbl { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 10px; }
.field .hint { font-weight: 400; color: var(--faint); font-size: .85rem; margin-left: 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
@media (max-width: 560px){ .grid-2 { grid-template-columns: 1fr; } }

/* segmentový přepínač */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-btn {
  flex: 1 1 auto; min-width: 84px; text-align: center;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: .94rem; font-weight: 500; transition: .15s;
}
.seg-btn:hover { border-color: var(--accent-soft-2); background: var(--accent-soft); }
.seg-btn.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--accent); }
.seg-btn .ico { display: block; font-size: 1.2rem; margin-bottom: 2px; }

/* number / text input */
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit input {
  width: 100%; padding: 13px 15px; padding-right: 56px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--ink); background: #fff; font-variant-numeric: tabular-nums;
  transition: .15s; font-family: inherit;
}
.input-unit input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-unit .unit { position: absolute; right: 14px; color: var(--faint); font-size: .9rem; pointer-events: none; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* slider */
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row .ends { font-size: .82rem; color: var(--faint); white-space: nowrap; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: var(--shadow); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: pointer; }
.slider-val { min-width: 64px; text-align: center; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; font-size: .9rem; }

/* check cards */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px){ .check-grid { grid-template-columns: 1fr; } }
.check-card {
  display: flex; align-items: center; gap: 13px; padding: 14px 15px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; transition: .15s; user-select: none;
}
.check-card:hover { border-color: var(--accent-soft-2); }
.check-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.check-card .cc-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--line-2); font-size: 1.2rem; flex: none; }
.check-card.is-active .cc-ico { background: #fff; }
.check-card .cc-t { font-weight: 600; font-size: .95rem; }
.check-card .cc-d { font-size: .82rem; color: var(--muted); }
.check-card .cc-box { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.check-card.is-active .cc-box { background: var(--accent); border-color: var(--accent); }

/* conditional reveal */
.reveal { margin-top: 14px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--line-2); }

/* ----------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 12px; font-size: 1rem; font-weight: 600;
  border: 1.5px solid transparent; transition: .15s; text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e293b; transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-accent { background: var(--accent); color: #3b2700; }
.btn-accent:hover { background: #ffb53d; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; gap: 12px; }

/* ----------------------------- Results -------------------------------- */
.result-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.result-head h2 { font-size: 1.9rem; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.headline {
  position: relative; overflow: hidden;
  border-radius: 22px; padding: 34px 34px; margin-top: 18px; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, #2b3a55 0%, #0f172a 55%);
  box-shadow: var(--shadow-lg);
}
.headline .sun { position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,165,36,.55), transparent 65%); }
.headline .big { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.headline .big .num { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4rem); font-weight: 700; line-height: 1; }
.headline .big .num .u { font-size: .42em; color: var(--accent); margin-left: 4px; }
.headline .sub { color: #cbd5e1; margin-top: 14px; font-size: 1.05rem; }
.headline .sub b { color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 720px){ .kpis { grid-template-columns: repeat(2,1fr); } }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; box-shadow: var(--shadow); }
.kpi .k-ic { color: var(--accent-ink); margin-bottom: 8px; }
.kpi .k-val { font-family: var(--display); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi .k-lbl { color: var(--muted); font-size: .86rem; margin-top: 2px; }

.panel-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px){ .panel-grid { grid-template-columns: 1fr; } }
.box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.box h3 { font-size: 1.1rem; margin-bottom: 4px; }
.box .box-sub { color: var(--muted); font-size: .86rem; margin-bottom: 14px; }
.chart-holder { position: relative; height: 280px; }
.chart-holder.sm { height: 230px; }

/* tables */
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.tbl th, table.tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2); }
table.tbl th { color: var(--muted); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr.total td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: none; }
table.tbl .tag-plan { font-size: .72rem; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; margin-left: 7px; }
.legend-pill { display:inline-flex; align-items:center; gap:7px; font-size:.85rem; color:var(--muted); margin-right:16px; }
.legend-pill i { width:11px; height:11px; border-radius:3px; display:inline-block; }

/* comparison */
.cmp-wrap { margin-top: 16px; }
.cmp-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); background: var(--line-2); }
.cmp-table { overflow-x: auto; }
.cmp-table table { width: 100%; border-collapse: collapse; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-table th:first-child, .cmp-table td:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.cmp-table thead th { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1rem; }
.cmp-table .scn { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.cmp-table .scn .x { color: var(--faint); cursor: pointer; font-size: .8rem; border:1px solid var(--line); border-radius:6px; padding:0 6px; }
.delta-pos { color: var(--ok); } .delta-neg { color: #dc2626; } .delta-zero { color: var(--faint); }

.disclaimer { color: var(--faint); font-size: .82rem; margin-top: 22px; line-height: 1.6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); opacity: 0; transition: .3s; z-index: 50; font-size: .92rem; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.foot { text-align:center; color: var(--faint); font-size: .82rem; padding: 30px 0 50px; }

/* ---------------------- „Přidat" / soft tlačítka ---------------------- */
.btn-add {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px dashed var(--line);
  background: #fff; color: var(--ink-2); font-size: .95rem; font-weight: 600; transition: .15s;
}
.btn-add span { color: var(--faint); font-weight: 400; font-size: .85rem; }
.btn-add:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.btn-add.ghost { width: auto; border-style: solid; padding: 9px 16px; font-size: .9rem; }
.exact-block { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }

/* ----------------------- Přesná data (override) ----------------------- */
.exact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
@media (max-width: 560px){ .exact-grid { grid-template-columns: 1fr; } }
.exact-row .lbl { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; color: var(--ink-2); }
.exact-row .input-unit input { padding-right: 48px; }
.exact-empty { color: var(--faint); font-size: .88rem; grid-column: 1 / -1; }

/* ----------------------------- Střechy -------------------------------- */
.roof-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px 18px 6px; margin-bottom: 14px; background: #fff; transition: .15s; }
.roof-card:hover { border-color: var(--accent-soft-2); }
.roof-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.roof-head .roof-name { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 1rem; }
.roof-head .roof-name .rn-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-ink); font-size: 1rem; }
.roof-remove { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 8px; padding: 5px 11px; font-size: .82rem; transition: .15s; }
.roof-remove:hover { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.roof-card .lbl-sm { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.roof-card .seg-btn { padding: 9px 11px; font-size: .86rem; min-width: 64px; }
.roof-field { margin-bottom: 16px; }

/* --------------------------- Sezónní výroba --------------------------- */
.season-box { margin-top: 16px; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: stretch; }
@media (max-width: 720px){ .season-grid { grid-template-columns: 1fr 1fr; } }
.season-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.season-card.summer { background: linear-gradient(135deg, #fffaf0, #fff4dc); border-color: var(--accent-soft-2); }
.season-card.winter { background: linear-gradient(135deg, #f4f8fc, #eaf1fa); border-color: #d7e3f2; }
.season-card .s-top { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; }
.season-card .s-val { font-family: var(--display); font-size: 1.7rem; font-weight: 600; margin-top: 10px; font-variant-numeric: tabular-nums; }
.season-card .s-sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.season-ratio { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--line-2); min-width: 120px; }
@media (max-width: 720px){ .season-ratio { grid-column: 1 / -1; flex-direction: row; gap: 14px; } }
.season-ratio .r-big { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--accent-ink); }
.season-ratio .r-lbl { color: var(--muted); font-size: .82rem; text-align: center; }

/* ------------------------ Porovnání variant --------------------------- */
.cmp-factors { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: .92rem; font-weight: 500; transition: .15s;
}
.cmp-chip:hover { border-color: var(--accent-soft-2); }
.cmp-chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.cmp-chip .ck { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line); display: grid; place-items: center; color: #fff; font-size: .7rem; }
.cmp-chip.on .ck { background: var(--accent); border-color: var(--accent); }
.cmp-2col { width: 100%; border-collapse: collapse; }
.cmp-2col th, .cmp-2col td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
.cmp-2col th:first-child, .cmp-2col td:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.cmp-2col thead th { font-family: var(--display); font-size: .98rem; color: var(--ink); }
.cmp-2col thead th .cap { display: block; font-size: .74rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cmp-2col thead th.col-on { color: var(--accent-ink); }
.cmp-prompt { color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: 22px; text-align: center; background: var(--line-2); }

/* ----------------------------- select -------------------------------- */
.select-wrap { position: relative; }
.select-wrap::after { content: '▾'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.select { width: 100%; padding: 13px 40px 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; color: var(--ink); background: #fff; appearance: none; -webkit-appearance: none; cursor: pointer; transition: .15s; }
.select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ----------------------- výběr velikosti (3 karty) -------------------- */
.size-picker { margin-top: 20px; }
.size-picker-head { font-weight: 600; font-size: 1.02rem; margin-bottom: 12px; }
.size-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px){ .size-cards { grid-template-columns: 1fr; } }
.size-card { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; cursor: pointer; transition: .15s; text-align: left; position: relative; box-shadow: var(--shadow); }
.size-card:hover { border-color: var(--accent-soft-2); }
.size-card.sel { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), var(--shadow); }
.size-card .sc-name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.size-card.sel .sc-name { color: var(--accent-ink); }
.size-card .sc-desc { color: var(--muted); font-size: .82rem; margin-top: 2px; min-height: 30px; }
.size-card .sc-big { font-family: var(--display); font-size: 1.55rem; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.size-card .sc-big small { font-size: .58em; color: var(--muted); font-weight: 500; }
.size-card .sc-meta { font-size: .84rem; color: var(--muted); margin-top: 8px; display: flex; flex-direction: column; gap: 3px; }
.size-card .sc-meta b { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.size-card .sc-badge { position: absolute; top: -9px; right: 14px; background: var(--accent); color: #3b2700; font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; }

/* -------------------- box soběstačnosti / síťová bilance -------------- */
.selfsuf-box { margin-top: 16px; }
.selfsuf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.selfsuf-big { text-align: right; flex: none; }
.selfsuf-big span { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--accent-ink); line-height: 1; }
.selfsuf-big small { display: block; color: var(--muted); font-size: .8rem; }
.grid-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 560px){ .grid-kpis { grid-template-columns: 1fr; } }
.grid-kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.grid-kpi .gk-val { font-family: var(--display); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.grid-kpi .gk-lbl { color: var(--muted); font-size: .82rem; margin-top: 2px; }
.grid-kpi.sun { background: var(--accent-soft); border-color: var(--accent-soft-2); }
.grid-kpi.sun .gk-val { color: var(--accent-ink); }
.grid-kpi.buy .gk-val { color: #dc2626; }
.grid-kpi.sell .gk-val { color: #2563eb; }

/* --------------------------- ekonomika ------------------------------- */
.econ-box { margin-top: 16px; }
.lowincome-row { display: inline-flex; align-items: center; gap: 9px; font-size: .92rem; margin: 6px 0 18px; cursor: pointer; user-select: none; }
.lowincome-row input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.econ-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 680px){ .econ-grid { grid-template-columns: 1fr; } }
.econ-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.econ-card.hl { background: linear-gradient(135deg, #fffaf0, #fff4dc); border-color: var(--accent-soft-2); }
.econ-card .ec-t { font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.econ-card .ec-big { font-family: var(--display); font-size: 1.55rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.econ-card .ec-big.green { color: var(--ok); }
.econ-card .ec-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.econ-card .ec-row:last-child { border-bottom: none; }
.econ-card .ec-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.econ-note { color: var(--muted); font-size: .84rem; margin-top: 12px; line-height: 1.5; }

/* ---------------------------- tooltip -------------------------------- */
.tip { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; cursor: help; position: relative; vertical-align: middle; margin-left: 3px; }
.tip:hover { background: var(--accent); color: #fff; }
.tip::after { content: attr(data-tip); position: absolute; bottom: 145%; left: 50%; transform: translateX(-50%); width: 250px; max-width: 70vw; background: var(--ink); color: #fff; font-weight: 400; font-size: .8rem; line-height: 1.45; padding: 10px 13px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .18s; z-index: 40; box-shadow: var(--shadow-lg); }
.tip:hover::after { opacity: 1; }
@media (max-width: 560px){ .tip::after { left: auto; right: -6px; transform: none; width: 200px; } }

/* ----------------------------- tisk / PDF ---------------------------- */
@media print {
  .appbar, #landing, #wizard, .result-actions, .cmp-factors, .foot, .toast, .tip { display: none !important; }
  body { background: #fff; }
  .section { padding: 0 0 10px; }
  .wrap-wide { max-width: 100%; padding: 0; }
  .box, .headline, .kpi, .size-card, .econ-card, .season-card { box-shadow: none !important; break-inside: avoid; }
  .panel-grid, .econ-grid, .grid-kpis, .size-cards, .season-grid, .kpis { break-inside: avoid; }
  canvas { max-height: 240px; }
  .modal-overlay, .legal-footer { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ======================= LANDING (marketing) ========================= */
.lp-hero { background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%); border-bottom: 1px solid var(--line-2); }
.lp-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 20px 60px; }
@media (max-width: 860px){ .lp-hero-inner { grid-template-columns: 1fr; text-align: center; gap: 16px; padding: 36px 20px 44px; } }
.lp-hero-text h1 { font-size: clamp(2.4rem, 6vw, 3.7rem); line-height: 1.05; margin-top: 14px; }
.lp-lead { color: var(--muted); font-size: 1.18rem; max-width: 470px; margin: 18px 0 26px; }
@media (max-width: 860px){ .lp-lead { margin-left: auto; margin-right: auto; } }
.lp-hero-note { color: var(--faint); font-size: .9rem; margin-top: 14px; }

/* pulzující hero CTA — na PC pulzuje z černé do zlaté */
.hero-cta { animation: heroPulse 2.2s ease-in-out infinite; will-change: transform; }
.hero-cta:hover { animation-play-state: paused; }
@keyframes heroPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(15,23,42,.18); }
  50% { transform: scale(1.05); box-shadow: 0 14px 34px rgba(245,165,36,.45); }
}
@keyframes heroPulseColor {
  0%, 100% { background-color: #0f172a; color: #fff; transform: scale(1); box-shadow: 0 6px 18px rgba(15,23,42,.18); }
  50% { background-color: #f5a524; color: #3b2700; transform: scale(1.05); box-shadow: 0 16px 38px rgba(245,165,36,.5); }
}
@media (min-width: 861px) { .hero-cta { animation-name: heroPulseColor; } }
@media (prefers-reduced-motion: reduce) { .hero-cta { animation: none !important; } }
.lp-hero-art { display: grid; place-items: center; }
.lp-hero-art svg { width: 100%; max-width: 420px; }
@media (max-width: 860px){ .lp-hero-art { order: -1; } .lp-hero-art svg { max-width: 280px; } }

.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 20px; }
@media (max-width: 720px){ .lp-steps { grid-template-columns: 1fr; } }
.lp-step { display: flex; flex-direction: column; gap: 3px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.lp-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; margin-bottom: 6px; }
.lp-step b { font-size: 1.05rem; }
.lp-step-d { color: var(--muted); font-size: .92rem; }

.lp-sec { padding: 42px 20px 8px; }
.lp-h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; margin-bottom: 26px; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px){ .lp-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px){ .lp-cards { grid-template-columns: 1fr; } }
.lp-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.lp-card .lp-emo { font-size: 1.9rem; display: block; margin-bottom: 10px; line-height: 1; }
.lp-card b { font-size: 1.1rem; display: block; margin-bottom: 3px; }
.lp-card span { color: var(--muted); font-size: .95rem; }
.lp-card.good { border-top: 3px solid var(--ok); }
.lp-card.bad { border-top: 3px solid #f59e0b; }

.lp-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 30px 0 8px; padding: 22px 24px; background: var(--accent-soft); border: 1px solid var(--accent-soft-2); border-radius: var(--radius); text-align: center; }
.lp-cta span { font-weight: 600; font-size: 1.08rem; }

.lp-final { margin-top: 50px; background: radial-gradient(120% 130% at 50% 0%, #2b3a55, #0f172a 60%); color: #fff; text-align: center; padding: 54px 20px 62px; }
.lp-final-sun { font-size: 2.4rem; }
.lp-final h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0; }
.lp-final p { color: #cbd5e1; margin-bottom: 24px; }

/* =========================== modal (lead) =========================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); backdrop-filter: blur(3px); display: grid; place-items: center; z-index: 60; padding: 18px; }
.modal { position: relative; background: #fff; border-radius: 20px; padding: 30px 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); animation: fade .25s ease; max-height: 92vh; overflow: auto; }
.modal-x { position: absolute; top: 14px; right: 14px; border: none; background: var(--line-2); width: 32px; height: 32px; border-radius: 50%; color: var(--muted); font-size: .9rem; cursor: pointer; }
.modal-x:hover { background: var(--line); }
.modal-ic { font-size: 2rem; line-height: 1; }
.modal h3 { font-size: 1.4rem; margin-top: 8px; }
.modal-sub { color: var(--muted); margin: 8px 0 18px; font-size: .95rem; }
.modal-field { margin-bottom: 12px; }
.modal-field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.modal-field .opt { color: var(--faint); font-weight: 400; }
.modal-field .req { color: var(--accent-ink); }
.modal-field input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; }
.modal-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.modal-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 6px 0 14px; cursor: pointer; }
.modal-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.modal-consent a { color: var(--accent-ink); }
.modal-err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.modal-fine { color: var(--faint); font-size: .8rem; text-align: center; margin-top: 12px; }
.lead-thanks { text-align: center; padding: 8px 0; }
.lead-check { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 1.8rem; display: grid; place-items: center; margin: 0 auto 12px; }
.lead-thanks-btns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* ========================== právní stránky ========================== */
.legal { padding: 40px 20px 56px; max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 6px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent-ink); }
.legal-upd { color: var(--faint); font-size: .9rem; }
.legal-fill { background: #fff8e6; border: 1px solid var(--accent-soft-2); border-radius: 12px; padding: 12px 16px; margin: 18px 0; font-size: .9rem; }
.legal-fill code { background: #fff; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line); }
.legal-foot { margin-top: 30px; color: var(--muted); }
.legal-footer { border-top: 1px solid var(--line-2); margin-top: 10px; }
.legal-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 24px 20px 40px; color: var(--faint); font-size: .85rem; }
.legal-footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-footer-nav a { color: var(--muted); text-decoration: none; }
.legal-footer-nav a:hover { color: var(--ink); }
