/* Portál spotřeby – customer-facing UI. Calm, readable (18 px for residents), light and dark. */
:root {
  --bg: #f1f5f9; --panel: #ffffff; --soft: #f8fafc; --line: #e2e8f0; --text: #0f172a; --muted: #475569;
  --brand: #0077b6; --brand-2: #2d6a4f; --sky: #0ea5e9; --sky-soft: #e0f2fe; --brand-ink: #ffffff;
  --accent: #f59e0b; --accent-ink: #b45309; --ok: #047857; --warn: #b45309; --err: #e11d48;
  --grad: linear-gradient(135deg, #0077b6, #2d6a4f);
  --r-card: 24px; --r-box: 16px; --r-btn: 12px; --r-sm: 8px;
  --shadow: 0 4px 6px -1px #0000000d, 0 2px 4px -1px #00000008;
  --shadow-lg: 0 30px 60px -15px rgb(15 23 42 / .18);
  --shadow-cta: 0 10px 25px -5px rgb(0 119 182 / .3);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0b1220; --panel: #111a2b; --soft: #16213a; --line: #243045; --text: #e2e8f0; --muted: #94a3b8;
  --brand: #38bdf8; --brand-2: #34d399; --sky: #38bdf8; --sky-soft: #0c2a3f; --brand-ink: #04111d;
  --accent: #fbbf24; --accent-ink: #fbbf24; --ok: #34d399; --warn: #fbbf24; --err: #fb7185;
  --grad: linear-gradient(135deg, #0ea5e9, #10b981);
  --shadow: 0 1px 2px rgb(0 0 0 / .4), 0 4px 14px rgb(0 0 0 / .25);
  --shadow-lg: 0 30px 60px -15px rgb(0 0 0 / .6);
  --shadow-cta: 0 10px 25px -5px rgb(14 165 233 / .35);
  color-scheme: dark; } }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 7px 14px; font-weight: 500; }
button:hover { border-color: var(--brand); }
button.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }
button.ghost { background: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input, select, textarea { background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 11px; }
.loading { padding: 40px; color: var(--muted); }

/* landing + login – same family as the sister project: Inter black headlines, slate neutrals, blue→green gradient, 24 px cards; amber = heat */
.lp { overflow-x: clip; background: var(--panel); }
.lp .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.lp .narrow { max-width: 820px; }
.lp > main { max-width: none; margin: 0; padding: 0; }
.lp section[id] { scroll-margin-top: 76px; }
.i { width: 20px; height: 20px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r-btn); font-weight: 600; text-decoration: none; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; line-height: 1.2; cursor: pointer; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.btn.grad { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-cta); }
.btn.grad:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.lg { padding: 14px 24px; font-size: 16px; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; justify-self: start; }
.lp .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--sky-soft); border: 1px solid rgb(56 189 248 / .25); color: var(--brand); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; white-space: normal; }
.lp .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.lp .pill.warn { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; }
.ic.big { width: 56px; height: 56px; border-radius: 16px; } .ic.big .i { width: 26px; height: 26px; }
.ic.sky, .ic.blue { background: var(--sky-soft); color: var(--brand); }
.ic.amber { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.ic.green { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
/* header */
.lp-nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--panel) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.02em; color: var(--text); text-decoration: none; font-size: 18px; }
.lp-logo img { display: block; }
.lp-logo b, .top .logo b { color: var(--brand); font-weight: inherit; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-act { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border-radius: var(--r-btn); border: 1px solid var(--line); display: grid; place-content: center; gap: 4px; background: var(--panel); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.nav-menu > div { position: absolute; right: 0; top: 50px; width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-box); box-shadow: var(--shadow-lg); padding: 8px; display: grid; }
.nav-menu > div a { padding: 11px 12px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 500; }
.nav-menu > div a:hover { background: var(--soft); }
/* hero */
.hero { position: relative; padding: 72px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%); opacity: .55; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-bg::before { width: 520px; height: 520px; right: -80px; top: -120px; background: rgb(14 165 233 / .18); }
.hero-bg::after { width: 460px; height: 460px; left: -140px; bottom: -160px; background: rgb(16 185 129 / .14); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1, .sh h2 { text-wrap: balance; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 900; letter-spacing: -.045em; margin: 20px 0 22px; }
.hero h1 .g { display: block; background: linear-gradient(90deg, #0077b6, #2d6a4f 55%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
@media (prefers-color-scheme: dark) { .hero h1 .g { background-image: linear-gradient(90deg, #38bdf8, #34d399 60%, #7dd3fc); } }
.lead { font-size: 18px; font-weight: 400; line-height: 1.65; color: var(--muted); margin: 0 0 30px; max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.proof { display: flex; gap: 0; margin: 40px 0 0; padding: 0; }
.proof > div { padding: 0 26px; border-left: 1px solid var(--line); } .proof > div:first-child { padding-left: 0; border-left: 0; }
.proof dt { font-size: 34px; font-weight: 900; letter-spacing: -.04em; line-height: 1.1; }
.proof dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 15ch; line-height: 1.35; }
/* hero mockup (HTML, theme-aware) */
.mock { position: relative; padding: 0 0 60px 30px; }
.mcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); }
.mcard.main { padding: 22px; display: grid; gap: 18px; }
.mh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mt { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.chip.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { border-radius: var(--r-box); padding: 14px; display: grid; gap: 2px; background: var(--soft); border: 1px solid var(--line); }
.tile .i { width: 22px; height: 22px; margin-bottom: 8px; }
.tile.heat .i { color: var(--accent); } .tile.hw .i { color: #e0663c; } .tile.cw .i { color: var(--sky); }
.tile .l, .spark .l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-feature-settings: "tnum"; }
.tile small { color: var(--muted); font-size: 13px; }
.spark { display: grid; gap: 8px; }
.sb { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 86px; }
.sb i { display: block; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.sb i.cur { background: var(--accent); }
.cmp { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cmp b { color: var(--ok); font-size: 16px; }
.mcard.float { position: absolute; left: -10px; bottom: 0; display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 18px; min-width: 290px; }
.mcard.float .l { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.mcard.float b { font-size: 15px; }
.mcard.float .bar { height: 6px; border-radius: 6px; background: var(--soft); margin-top: 7px; overflow: hidden; }
.mcard.float .bar i { display: block; height: 100%; width: 100%; background: var(--grad); }
/* sections */
.sec { padding: 88px 0; }
.sec.tint { background: var(--bg); }
.sh { text-align: center; max-width: 720px; margin: 0 auto 44px; display: grid; justify-items: center; gap: 14px; }
.sh h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.sh p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.card2 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 30px; }
.card3 { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; transition: box-shadow .2s; }
.card3:hover, .card2:hover { box-shadow: 0 4px 12px #0000001a; }
.card2 h3, .card3 h3 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
.card2 h3 { font-size: 24px; } .card3 h3 { font-size: 17px; }
.card3 p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.aud { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.aud .card2 { display: grid; gap: 18px; align-content: start; }
.aud .card2 > .btn { justify-self: start; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rows li { display: flex; gap: 14px; padding: 12px 14px; border-radius: var(--r-box); background: var(--soft); }
.rows li .i { color: var(--brand); margin-top: 2px; }
.rows span { display: grid; gap: 2px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.rows b { color: var(--text); font-size: 15px; }
.law { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.law .card3 { display: grid; gap: 12px; align-content: start; }
.deadline { margin-top: 20px; display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--r-card); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.deadline p { margin: 0; line-height: 1.6; font-size: 15px; }
.frame { margin: 0; }
.frame img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-lg); }
.frame figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.frame.wide { max-width: 1000px; margin: 0 auto; }
.gallery { display: grid; grid-template-columns: 1fr 1fr 1.45fr; gap: 28px; margin-top: 48px; align-items: start; }
.frame.ph img { aspect-ratio: 390 / 760; object-fit: cover; object-position: top; border-radius: 26px; border: 6px solid var(--panel); outline: 1px solid var(--line); }
.frame.dc img { aspect-ratio: 794 / 1000; object-fit: cover; object-position: top; border-radius: 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps .card3 { display: grid; gap: 12px; position: relative; align-content: start; }
.steps .n { position: absolute; right: 22px; top: 18px; font-size: 44px; font-weight: 900; letter-spacing: -.05em; color: var(--line); line-height: 1; }
.month { margin-top: 20px; }
.month h3 { margin-bottom: 14px; }
.month ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.month li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-box); background: var(--soft); border-top: 3px solid var(--sky); }
.month li:last-child { border-top-color: var(--accent); }
.month li span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-box); padding: 0 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; }
.entry { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; max-width: 980px; margin: 0 auto; }
.entry.solo { grid-template-columns: minmax(0, 440px); justify-content: center; }
.entry h3 { font-size: 20px; margin-bottom: 6px; }
.entry .demo { display: grid; gap: 10px; }
.entry .demo button { text-align: left; padding: 12px 14px; display: flex; gap: 14px; align-items: center; border-radius: var(--r-box); background: var(--soft); }
.entry .demo button:hover { border-color: var(--sky); background: var(--panel); }
.entry .demo button > span:last-child { display: grid; gap: 1px; }
.entry .demo button b { font-size: 15px; } .demo button small { color: var(--muted); font-size: 13px; }
.login-c { display: grid; gap: 8px; }
.login-c label { font-size: 13px; font-weight: 600; color: var(--muted); }
.login-c input { border-radius: var(--r-btn); padding: 11px 14px; }
.login-c .btn { margin-top: 8px; width: 100%; padding: 13px; }
.login-c .err { min-height: 0; }
.login-c .err:empty { display: none; }
.lp-foot { padding: 36px 0; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: start; }
.foot-in p { margin: 8px 0 0; }
.fc { display: grid; gap: 8px; }
.fc a { display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; }
.fc a:hover { color: var(--brand); }
.fc .i { width: 18px; height: 18px; color: var(--brand); }
.fr { text-align: right; } .fr span { font-size: 13px; }
.err { color: var(--err); font-size: 13px; min-height: 18px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--panel); color: var(--text); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
@media (prefers-color-scheme: dark) { .frame img { filter: brightness(.92); } }
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
  .hero-in, .entry { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mock { max-width: 560px; }
  .law { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: 1fr 1fr; } .frame.dc { grid-column: 1 / -1; max-width: 520px; justify-self: center; }
}
@media (max-width: 760px) {
  .nav-act .btn.ghost { display: none; }
  .nav-in { gap: 12px; }
  .aud, .steps, .month ol, .foot-in { grid-template-columns: minmax(0, 1fr); }
  .fr { text-align: left; }
}
@media (max-width: 600px) {
  .lp .wrap { padding: 0 16px; }
  .lp-logo { font-size: 16px; }
  .nav-act .btn.grad { display: none; }
  .nav-act { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero h1 { margin-top: 16px; }
  .lead { font-size: 16.5px; }
  .cta .btn { flex: 1 1 auto; }
  .proof > div { padding: 0 14px; } .proof dt { font-size: 28px; }
  .mock { padding: 0; }
  .mcard.main { padding: 16px; }
  .tiles { gap: 6px; } .tile { padding: 10px; } .tile b { font-size: 22px; }
  .mcard.float { position: relative; left: auto; bottom: auto; margin: 12px 12px 0; min-width: 0; }
  .sec { padding: 60px 0; }
  .sh { margin-bottom: 30px; }
  .law { grid-template-columns: minmax(0, 1fr); }
  .card2 { padding: 22px; }
  .gallery { gap: 14px; }
  .deadline { flex-direction: column; }
}

/* shell */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: color-mix(in srgb, var(--panel) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.top .logo { font-weight: 900; letter-spacing: -.02em; color: var(--text); display: flex; align-items: center; gap: 8px; }
.top .logo img { display: block; }
.top .sp { flex: 1; }
.badge { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.demo { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
nav.tabs { display: flex; gap: 4px; margin: 16px auto 0; padding: 4px; max-width: min(1160px, calc(100% - 40px)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-btn); overflow-x: auto; scrollbar-width: none; box-shadow: var(--shadow); }
nav.tabs a { padding: 8px 14px; color: var(--muted); text-decoration: none; border-radius: var(--r-sm); white-space: nowrap; font-weight: 500; font-size: 14px; }
nav.tabs a:hover { color: var(--text); background: var(--soft); }
nav.tabs a.on { color: var(--brand-ink); background: var(--brand); font-weight: 600; }
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
h1.pg { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-box); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card h2 { font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.kpi { display: grid; gap: 2px; }
.kpi .v { font-size: 34px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 15px; color: var(--muted); font-weight: 500; }
.kpi .l { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.grid > .card.kpi { border-radius: var(--r-card); padding: 20px 22px; }
.kpi .v ~ .l, .kpi .v ~ * .l { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 13px; }
.meter { height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; background: var(--grad); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td input[type=number] { width: 86px; text-align: right; }
td select { padding: 4px 6px; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.warn { color: var(--warn); } .pill.err { color: var(--err); } .pill.mut { color: var(--muted); }
.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.todo li { padding: 10px 14px; border-left: 4px solid var(--warn); background: var(--soft); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.todo li.err { border-left-color: var(--err); }
.todo li.ok { border-left-color: var(--ok); }
.toast { position: fixed; right: 16px; bottom: 16px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); z-index: 50; max-width: min(420px, calc(100vw - 32px)); }

/* resident */
.res { max-width: 720px; margin: 0 auto; font-size: 17px; }
.res .month { font-size: 15px; color: var(--muted); }
.res .big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 10px 0 6px; }
.res .big .kpi { background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-box); padding: 16px; }
.res .status { padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--panel)); color: var(--text); margin-top: 10px; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; margin: 14px 0 4px; }
.bars div { background: var(--accent); border-radius: 6px 6px 0 0; opacity: .45; min-height: 2px; position: relative; }
.bars div.cur { opacity: 1; }
.bars-l { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* branding editor */
.brand-ed { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.brand-ed form { display: grid; gap: 10px; }
.brand-ed label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.brand-ed .chk { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 14px; }
.brand-ed iframe { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.tpls label { border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; cursor: pointer; color: var(--text); }
.tpls label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--panel)); font-weight: 600; }
.tpls input { position: absolute; opacity: 0; }
.logo-prev { max-height: 48px; max-width: 160px; }

@media (max-width: 860px) {
  .brand-ed { grid-template-columns: minmax(0, 1fr); }
  .brand-ed iframe { height: 640px; }
  main { padding: 14px; }
  .res .big { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 600px) {
  .top { gap: 8px; padding: 8px 12px; }
  .top .logo { font-size: 0; } .top .logo::first-letter { font-size: 18px; }
  .top .small.muted, .top .badge:not(.demo) { display: none; }
  .top button { padding: 5px 10px; }
}

/* installable app */
[data-install] { display: none !important; }
.can-install [data-install] { display: inline-flex !important; }
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; gap: 12px; align-items: center; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 14px 40px rgb(0 0 0 / .25); max-width: 520px; margin: 0 auto; }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner div { display: grid; flex: 1; font-size: 14px; line-height: 1.3; }
.install-banner span { color: var(--muted); font-size: 13px; }
.install-banner .x { padding: 6px 9px; border: 0; }
.sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--panel); color: var(--text); width: min(520px, 100%); border-radius: 20px 20px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 10px; justify-items: start; }
.sheet img { border-radius: 12px; }
.sheet h2 { margin: 0; font-size: 20px; }
.sheet ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16px; }
.sheet button { width: 100%; padding: 12px; }
.ios-share { display: inline-block; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; font-size: 13px; color: #0a84ff; }
@media (display-mode: standalone) { .lp-nav, .top { padding-top: max(10px, env(safe-area-inset-top)); } }
@media (max-width: 600px) { .top .inst { display: none !important; } }
input[type=color] { padding: 2px; width: 48px; height: 36px; }
@media (prefers-color-scheme: dark) { .btn.grad { color: #04111d; } }

/* campaigns */
.btnlink { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-weight: 500; font-size: 14px; }
.btnlink:hover { border-color: var(--brand); }
.btnlink.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
button.small { padding: 5px 10px; font-size: 13px; }
.setf { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; align-items: end; }
.setf.one { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.setf label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 500; }
.setf textarea { width: 100%; resize: vertical; font: 14px/1.5 inherit; }
.setf fieldset { border: 1px solid var(--line); border-radius: var(--r-box); padding: 12px 14px; margin: 0; display: grid; gap: 8px; }
.setf legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.two-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.camp-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.camp-ed .prev { position: sticky; top: 76px; }
.camp-ed iframe { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: var(--r-box); background: #f1f5f9; }
@media (max-width: 1000px) { .camp-ed { grid-template-columns: minmax(0, 1fr); } .camp-ed .prev { position: static; } .camp-ed iframe { height: 600px; } }

.tw td select { max-width: 230px; }

/* landing: network, newsletter, document pages */
.netrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.netrow .card3 { display: grid; gap: 4px; text-align: center; }
.netrow b { font-size: 40px; font-weight: 900; letter-spacing: -.04em; }
.netrow span { color: var(--muted); font-size: 14px; }
.live-dot { background: var(--ok) !important; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: ldot 1.6s infinite; } @keyframes ldot { 50% { opacity: .3; } } }
.lead-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.lead-box h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 900; letter-spacing: -.03em; margin: 12px 0 10px; }
.lead-box > div > p { color: var(--muted); margin: 0 0 18px; line-height: 1.6; }
.nf { display: grid; gap: 8px; }
.nf h3 { margin: 0; font-size: 18px; }
.nf label { font-size: 13px; font-weight: 600; color: var(--muted); }
.nf input:not([type=checkbox]) { border-radius: var(--r-btn); padding: 10px 13px; }
.nf .chk { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); font-size: 13.5px; line-height: 1.5; margin-top: 4px; }
.nf .chk input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.nf .btn { margin-top: 6px; justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.doc-page { padding: 48px 0 72px; }
.doc-page h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 14px; }
.doc-page h2 { font-size: 20px; font-weight: 800; margin: 28px 0 8px; }
.doc-page p { line-height: 1.7; }
.check { padding-left: 22px; display: grid; gap: 14px; line-height: 1.65; }
.check li::marker { font-weight: 900; color: var(--brand); }
@media (max-width: 760px) { .lead-box, .netrow { grid-template-columns: minmax(0, 1fr); } }
@media print { .lp-nav, .lp-foot, .doc-page .card3 { display: none; } }
.lead-box.solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.ticks { margin: 0 0 18px; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.ticks li::marker { color: var(--brand); }

/* district map */
.czmap { margin: 0 auto 28px; max-width: 900px; }
.czmap-in { position: relative; }
.czmap-in img { display: block; width: 100%; height: auto; }
.czmap-in svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.czmap path.on { fill: color-mix(in srgb, var(--sky) 55%, transparent); stroke: var(--brand); stroke-width: 1.5; }
.czmap path.on.off { fill: color-mix(in srgb, var(--muted) 30%, transparent); stroke: var(--muted); }
.czmap .dot { fill: var(--brand); stroke: #fff; stroke-width: 2; }
.czmap .ping { fill: none; stroke: var(--sky); stroke-width: 3; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .czmap .ping { animation: ping 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes ping { 0% { opacity: .9; transform: scale(.4); } 80%, 100% { opacity: 0; transform: scale(2.6); } }
}
.czmap figcaption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 10px; line-height: 1.5; }
.czmap .src { display: block; font-size: 11.5px; opacity: .8; }

/* pricing + comparison */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tier { display: grid; gap: 14px; align-content: start; position: relative; }
.tier.feat { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.tier .pill { justify-self: start; }
.tier .price { display: grid; gap: 2px; }
.tier .price b { font-size: 40px; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.tier .price span { color: var(--muted); font-size: 14px; }
.tier .btn { justify-self: start; margin-top: auto; }
.tier.feat .btn { background: var(--grad); color: #fff; border: 0; box-shadow: var(--shadow-cta); }
.rows-ck { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.rows-ck li { padding-left: 26px; position: relative; line-height: 1.5; }
.rows-ck li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.calc { margin-top: 20px; }
.calc-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: center; }
.calc h3 { margin-bottom: 10px; }
.calc label { font-size: 13px; font-weight: 600; color: var(--muted); }
.calc-row { display: flex; gap: 14px; align-items: center; margin: 6px 0 10px; }
.calc-row input[type=number] { width: 96px; font-size: 20px; font-weight: 800; padding: 8px 12px; border-radius: var(--r-btn); }
.calc-row input[type=range] { flex: 1; accent-color: var(--brand); }
.calc-t th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.calc-t td { font-weight: 700; }
.fine { margin-top: 16px; max-width: 900px; }
.cmp-t { padding: 8px 12px; }
.cmp-t table { font-size: 14.5px; }
.cmp-t th[scope=row] { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); width: 18%; }
.cmp-t td { line-height: 1.5; vertical-align: top; padding: 12px 10px; }
.cmp-t .us { background: color-mix(in srgb, var(--sky) 9%, transparent); font-weight: 600; }
.cmp-t thead .us { color: var(--brand); }
@media (max-width: 900px) { .tiers, .calc-in { grid-template-columns: minmax(0, 1fr); } }
.cmp-t th[scope=row] { vertical-align: top; padding-top: 12px; }
@media (max-width: 600px) {
  .calc-t th:nth-child(4), .calc-t td:nth-child(4) { display: none; } .calc-t { font-size: 13.5px; }
  .cmp-t thead { display: none; }
  .cmp-t table, .cmp-t tbody, .cmp-t tr, .cmp-t th, .cmp-t td { display: block; width: auto; }
  .cmp-t tr { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .cmp-t th[scope=row] { padding: 0 0 6px; border: 0; font-size: 15px; }
  .cmp-t td { border: 0; padding: 6px 10px; border-radius: 10px; }
  .cmp-t td::before { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
  .cmp-t td:nth-of-type(1)::before { content: "Klasický rozúčtovatel"; }
  .cmp-t td.us::before { content: "Portál spotřeby"; color: var(--brand); }
}
.fine a, .czmap .src a { color: inherit; }
.tier .bands { margin-top: 10px; font-size: 14px; }
.tier .bands td { padding: 5px 0; border-bottom: 1px solid var(--line); }
.tier .bands td.n { font-weight: 700; }
.calc-t th[scope=row] .small { display: block; font-weight: 400; }

/* page headings that are styled like section headings */
.sh h1.h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.08; margin: 0; }
.login-c h1.h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; }
.teasers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.teaser { display: grid; gap: 10px; text-decoration: none; color: var(--text); }
.teaser:hover { border-color: var(--brand); }
.teaser h3 { color: var(--brand); }
.nav-links a[aria-current] { color: var(--text); font-weight: 700; }
.foot-nav { font-size: 13.5px; } .foot-nav a { color: var(--muted); }
.entry-sec { min-height: calc(100vh - 230px); }
@media (max-width: 1020px) { .teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .teasers { grid-template-columns: minmax(0, 1fr); } }
