/* Dealavo Kit — styl jak w Radarach (Michal 25.11.2026: fonty, elementy i przyciski z Radarow; aplikacja, nie landing):
   Inter, szare tlo, biale karty z cienka ramka, turkus Dealavo, zolty przycisk glownej akcji. */
:root {
  --bg: #F0F2F5; --card: #fff; --border: #e2e8f0; --text: #1e293b; --muted: #64748b;
  --accent: #5CC8E3; --accent-light: #E0F4FA; --link: #0E7490; --red: #B91C1C;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -.3px; }
h2 { font-size: 18px; margin: 0 0 10px; }
h3 { font-size: 14.5px; margin: 16px 0 6px; }
p { margin: 6px 0; max-width: 100ch; }
ul { margin: 6px 0; padding-left: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.lead { color: var(--muted); font-size: 14px; max-width: 80ch; margin-bottom: 14px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
code { background: #F1F5F9; padding: 1px 5px; border-radius: 4px; }
pre { background: #0F172A; color: #E2E8F0; border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; margin: 8px 0 12px; }
pre code { background: none; padding: 0; }
pre .c { color: #7DD3E8; }

/* --- belka ------------------------------------------------------------------------------- */
.top-nav { position: sticky; top: 0; z-index: 200; min-height: 60px; background: rgba(255,255,255,.9); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid rgba(0,0,0,.07); display: flex; align-items: center; padding: 0 24px; flex-wrap: wrap; }
.top-nav a { text-decoration: none; }
.top-nav-brand { display: flex; align-items: center; padding-right: 24px; border-right: 1px solid rgba(0,0,0,.07); height: 44px; }
.top-nav-brand img { height: 40px; width: auto; display: block; }
.top-nav-links { display: flex; align-items: center; gap: 2px; margin-left: 18px; margin-right: auto; flex-wrap: wrap; }
.top-nav-links a { color: #6B7280; font-weight: 500; font-size: 13px; padding: 7px 14px; border-radius: 8px; display: flex; align-items: center; gap: 7px; }
.top-nav-links a i { font-size: 12px; }
.top-nav-links a:hover { color: #111827; background: rgba(0,0,0,.04); }
.top-nav-links a.active { color: var(--link); background: var(--accent-light); }
.top-nav-right { display: flex; align-items: center; gap: 8px; }
.pub-user { font-size: 13px; color: #334155; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-switch { display: inline-flex; gap: 2px; font-size: 11px; font-weight: 700; letter-spacing: .04em; margin-right: 4px; }
.lang-switch a { color: var(--muted); padding: 4px 5px; border-radius: 6px; }
.lang-switch a:hover { background: var(--accent-light); color: var(--text); }
.lang-switch a.on { color: var(--link); background: var(--accent-light); }
@media (max-width: 700px) { .top-nav { padding: 8px 14px; gap: 6px; position: static; } .top-nav-brand { border-right: 0; padding-right: 8px; } .top-nav-links { margin-left: 0; order: 3; width: 100%; } .pub-user { display: none; } }

/* --- przyciski, pola ---------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; color: var(--link); border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #F1F5F9; text-decoration: none; }
.btn.go { border-color: #F2A51C; background: #FFBB36; color: #233044; }
.btn.go:hover { filter: brightness(.94); background: #FFBB36; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger { color: var(--red); border-color: #FCA5A5; }
.btn.danger:hover { background: #FEF2F2; }
.btn.wide { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 4px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { min-height: 70px; resize: vertical; }
.field { margin: 0 0 14px; }
.check { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; font-weight: 400; font-size: 13px; margin: 0 0 10px; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--link); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.phone { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 8px; }
.error { background: #FEE2E2; color: #991B1B; border-radius: 8px; padding: 9px 14px; margin: 0 0 14px; font-size: 13.5px; }
.notice { background: #FEF3C7; color: #92400E; border-radius: 8px; padding: 9px 14px; margin: 0 0 14px; font-size: 13.5px; }

/* --- uklad i karty ------------------------------------------------------------------------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sheet { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin: 10px 0 14px; }
.sheet.soft { background: #F8FAFC; }
.sheet > h2:first-child { margin-top: 0; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: #F1F5F9; color: #475569; }
.tag.get { background: #DCFCE7; color: #166534; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid #f1f5f9; vertical-align: top; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); white-space: nowrap; border-top: 0; border-bottom: 2px solid var(--border); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
footer { color: var(--muted); font-size: 12.5px; padding: 8px 0 32px; }
footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

/* --- wejscie (strona glowna bez sesji) i formularze ----------------------------------------- */
.entry { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 420px); gap: 20px; align-items: start; padding-top: 28px; }
@media (max-width: 860px) { .entry { grid-template-columns: minmax(0, 1fr); } }
.feat { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.feat li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.feat i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-light); color: var(--link); display: grid; place-items: center; font-size: 13px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 28px 24px 60px; }

/* --- panel i dokumentacja: dwie kolumny ----------------------------------------------------- */
.cols { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 50px; align-items: start; }
.side { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; font-size: 13px; }
.side h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin: 12px 8px 4px; }
.side h4:first-child { margin-top: 4px; }
.side a { display: block; padding: 5px 8px; border-radius: 6px; color: #334155; }
.side a:hover { background: #F1F5F9; text-decoration: none; }
.side a[aria-current] { background: var(--accent-light); color: var(--link); font-weight: 600; }
.main h2 { margin: 26px 0 8px; }
.main .sheet > h2 { margin-top: 0; }
.main section.sheet { margin-bottom: 16px; }
.main > h2:first-of-type { margin-top: 18px; }
@media (max-width: 860px) { .cols { grid-template-columns: minmax(0, 1fr); gap: 12px; } .side { position: static; max-height: none; } }

.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.step:first-child { border-top: 0; padding-top: 2px; }
.step .n { counter-increment: step; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-light); color: var(--link); display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.step .n::before { content: counter(step); }
.step h3 { margin: 2px 0 4px; }

.tabs { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; gap: 2px; margin: 4px 0; }
.tabs button { padding: 5px 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 6px; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--accent); color: #fff; }

.meters { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.meter { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.meter .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.3; }
.meter .v small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.meter .bar { height: 6px; border-radius: 4px; margin-top: 8px; overflow: hidden; background: #e2e8f0; }
.meter .bar i { display: block; height: 100%; background: var(--accent); }
.meter.hot .bar i { background: #DC2626; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center; }
.checklist .box { width: 18px; height: 18px; border: 1.5px solid #cbd5e1; border-radius: 5px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; }
.checklist .done .box { background: #16a34a; border-color: #16a34a; }
.secret { background: #FEF3C7; border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 13.5px; color: #92400E; }
.secret .mono { display: block; background: #fff; border: 1px solid #FDE68A; border-radius: 6px; padding: 8px 10px; margin: 6px 0 8px; word-break: break-all; color: var(--text); font-size: 13px; }
.copy { background: none; border: 1px solid var(--border); border-radius: 6px; color: var(--link); cursor: pointer; font: inherit; font-size: 12px; padding: 2px 8px; }
.copy.done { background: #DCFCE7; border-color: #BBF7D0; color: #166534; }

/* --- referencja API ------------------------------------------------------------------------- */
.op { background: var(--card); border: 1px solid var(--border); border-radius: 10px; margin: 0 0 8px; }
.op > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 14px; align-items: center; }
.op > summary::-webkit-details-marker { display: none; }
.op > summary .url { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.op > summary .sum { grid-column: 2; color: var(--muted); font-size: 12.5px; }
.op[open] > summary { border-bottom: 1px solid var(--border); background: #F8FAFC; border-radius: 10px 10px 0 0; }
.op .body { padding: 12px 14px 4px; }
.req { color: #DC2626; font-weight: 700; }
.tool { padding: 10px 0; border-top: 1px solid var(--border); }
.tool:first-of-type { border-top: 0; }
.tool .name { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
