/* klidas.cz — nástroje pro OSVČ. Klidná, čitelná varianta bez závislosti na CDN. */

:root{
  --bg: #FAF8F4;
  --surface: #FFFFFF;
  --border: #E4DFD4;
  --ink: #22302A;
  --muted: #63706A;
  --brand: #1E6E5C;      /* klidný petrolejově zelený — důvěra, "v klidu" */
  --brand-dark: #154F42;
  --brand-tint: #E8F2EE;
  --accent: #D97A3D;     /* teplá pro CTA/zvýraznění, použita střídmě */
  --accent-dark: #B85F26;
  --good: #1E7A4C;
  --bad: #B3452F;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 10px 30px -12px rgba(30, 48, 42, .18);
  --max: 920px;
}

:root[data-theme="dark"]{
  --bg: #14201B;
  --surface: #1B2A23;
  --border: #2C3F36;
  --ink: #EDF3EF;
  --muted: #9FB3AA;
  --brand: #4FBE9E;
  --brand-dark: #6FD4B6;
  --brand-tint: #1E332B;
  --accent: #E89257;
  --accent-dark: #F2AB78;
  --good: #58C48A;
  --bad: #E37A63;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #14201B;
    --surface: #1B2A23;
    --border: #2C3F36;
    --ink: #EDF3EF;
    --muted: #9FB3AA;
    --brand: #4FBE9E;
    --brand-dark: #6FD4B6;
    --brand-tint: #1E332B;
    --accent: #E89257;
    --accent-dark: #F2AB78;
    --good: #58C48A;
    --bad: #E37A63;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
  }
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
img{ max-width:100%; }
a{ color: var(--brand-dark); }
:root[data-theme="dark"] a, @media (prefers-color-scheme: dark){ a{ color: var(--brand); } }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header{
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px; gap: 16px; flex-wrap: wrap;
}
.logo{
  font-weight: 800; font-size: 20px; text-decoration:none; color: var(--ink);
  letter-spacing: -0.01em;
}
.logo span{ color: var(--brand); }
.nav{ display:flex; gap: 18px; flex-wrap: wrap; }
.nav a{ color: var(--muted); text-decoration:none; font-size:14px; font-weight:600; }
.nav a:hover{ color: var(--ink); }

/* Hero */
.hero{ padding: 48px 0 28px; }
.eyebrow{
  display:inline-block; font-size:12px; font-weight:700; letter-spacing:.06em;
  text-transform: uppercase; color: var(--brand-dark); background: var(--brand-tint);
  padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
h1{ font-size: 34px; line-height:1.15; margin: 0 0 12px; letter-spacing:-0.01em; }
.lede{ color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 8px; }

/* Tool cards grid */
.tool-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:16px; margin: 28px 0 8px; }
@media (max-width: 760px){ .tool-grid{ grid-template-columns: 1fr; } }
.tool-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 20px; text-decoration:none; color: var(--ink); display:flex; flex-direction:column; gap:8px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow); }
.tool-card .icon{ font-size: 26px; }
.tool-card h3{ margin:0; font-size: 17px; }
.tool-card p{ margin:0; color: var(--muted); font-size: 14px; }
.tool-card .go{ margin-top:auto; font-size: 13px; font-weight:700; color: var(--brand-dark); }

/* Content sections */
main{ padding-bottom: 64px; }
section{ padding: 28px 0; }
h2{ font-size: 22px; margin: 0 0 14px; }
h3{ font-size: 17px; margin: 20px 0 8px; }
p{ margin: 0 0 12px; }
.muted{ color: var(--muted); }

/* Calculator card */
.calc{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.calc-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width:640px){ .calc-grid{ grid-template-columns: 1fr; } }
.field{ display:flex; flex-direction:column; gap:6px; margin-bottom: 14px; }
.field label{ font-size: 13px; font-weight:700; color: var(--ink); }
.field .hint{ font-size:12px; color: var(--muted); }
input[type="text"], input[type="number"], select, textarea{
  font: inherit; padding: 10px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  width: 100%;
}
input:focus, select:focus, textarea:focus{ outline: 2px solid var(--brand); outline-offset: 1px; }
fieldset{ border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 14px; }
legend{ font-size: 13px; font-weight:700; padding: 0 4px; }
.radio-row{ display:flex; gap:14px; flex-wrap:wrap; font-size: 14px; }
.radio-row label{ display:flex; align-items:center; gap:6px; font-weight:500; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight:700; font-size:15px;
  text-decoration:none; border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background: var(--brand); color:#fff; }
.btn-primary:hover{ background: var(--brand-dark); }
.btn-outline{ background:transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--bg); }
.btn-accent{ background: var(--accent); color:#fff; }
.btn-accent:hover{ background: var(--accent-dark); }

/* Results */
.result{
  margin-top: 18px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--brand-tint); border: 1px solid var(--border);
}
.result .big{ font-size: 30px; font-weight:800; color: var(--brand-dark); }
.result .row{ display:flex; justify-content:space-between; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size:14px; }
.result .row:last-child{ border-bottom:none; }
.result .row .v{ font-weight:700; }
.badge-good{ color: var(--good); font-weight:700; }
.badge-bad{ color: var(--bad); font-weight:700; }

table.compare{ width:100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
table.compare th, table.compare td{ padding: 10px; border-bottom: 1px solid var(--border); text-align: right; }
table.compare th:first-child, table.compare td:first-child{ text-align:left; }
table.compare thead th{ color: var(--muted); font-weight:700; font-size:12px; text-transform:uppercase; letter-spacing:.04em; }
tr.winner{ background: var(--brand-tint); }
tr.winner td:first-child{ font-weight:700; }

/* CTA block (pdq.cz) */
.cta{
  margin-top: 30px; border-radius: var(--radius); padding: 26px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.cta h3{ margin:0 0 6px; color:#fff; font-size:19px; }
.cta p{ margin:0; color: rgba(255,255,255,.88); max-width: 480px; font-size:14px; }
.cta .btn-accent{ flex-shrink:0; }

/* Ad / affiliate placeholders — swap for real units once accounts are live */
.slot{
  margin: 26px 0; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 16px; text-align:center; color: var(--muted); font-size: 12px; background: var(--surface);
}

.disclaimer{
  font-size: 13px; color: var(--muted); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 24px;
}
.disclaimer strong{ color: var(--ink); }

.faq details{ border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary{ font-weight:700; cursor:pointer; }
.faq summary::marker{ color: var(--brand); }

.site-footer{
  border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px;
}
.site-footer .wrap{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.breadcrumb{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a{ color: var(--muted); text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }

.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
