/* Free calculator pages (termin badania, kara za brak OC, PIT, rękojmia): the app's paper, ink and amber. */
:root { color-scheme: light dark; --paper: #fbf7f0; --sheet: #ffffff; --ink: #2a2118; --muted: #7a6d5e; --line: #eadfcf; --stamp: #b86e00; --accent: #f2a93b; --on-accent: #1d150b; --red: #d9432f; --soft: #fbefd9; }
@media (prefers-color-scheme: dark) { :root { --paper: #16130f; --sheet: #221d17; --ink: #f4ede3; --muted: #a89b8a; --line: #352d24; --stamp: #f2a93b; --red: #ff6b57; --soft: #3a2e1c; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 680px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 16px 56px; }
a { color: var(--stamp); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font-size: 22px; font-weight: 800; color: var(--stamp); border: 2.5px solid currentColor; border-radius: 8px; padding: 0 9px 1px; transform: rotate(-3deg); text-decoration: none; }
.top .start { font-weight: 600; font-size: 15px; text-decoration: none; }
h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin: 28px 0 10px; }
.lede { color: var(--muted); font-size: 18px; margin: 0 0 22px; }
h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 34px 0 8px; }
p, li { max-width: 68ch; }
ul, ol { padding-left: 20px; }
li { margin: 6px 0; }
.calc { background: var(--sheet); border-radius: 20px; padding: 20px; box-shadow: 0 1px 0 rgba(42,33,24,.05), 0 12px 30px -18px rgba(42,33,24,.35); }
.calc label { display: block; font-weight: 650; font-size: 15px; margin: 0 0 6px; }
.calc .field { margin: 0 0 16px; }
.calc small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 5px; }
input, select { width: 100%; min-height: 48px; font: inherit; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
input[type=date] { -webkit-appearance: none; appearance: none; line-height: 46px; }
input[type=checkbox] { width: 22px; min-height: 22px; height: 22px; accent-color: var(--stamp); }
.check { display: flex !important; gap: 10px; align-items: center; font-weight: 500 !important; min-height: 44px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--line); }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 4px 6px; border-radius: 11px; font-weight: 650; font-size: 14.5px; color: var(--muted); text-align: center; line-height: 1.2; cursor: pointer; }
.seg input:checked + span { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.result { margin-top: 6px; padding: 16px; border-radius: 14px; background: var(--soft); }
.result:empty { display: none; }
.result .big { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.result .sub { color: var(--muted); margin-top: 4px; }
.result ol { margin: 10px 0 0; }
.warn { color: var(--red); font-size: 14.5px; margin: 10px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 650; }
td.num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.cta { margin: 36px 0 0; padding: 22px; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0 0 16px; }
.cta a { display: inline-block; min-height: 48px; line-height: 48px; padding: 0 22px; border-radius: 12px; background: var(--on-accent); color: var(--accent); font-weight: 700; text-decoration: none; }
.more { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.more ul { list-style: none; padding: 0; }
.more a { display: inline-block; padding: 6px 0; }
.foot { margin-top: 28px; font-size: 13.5px; color: var(--muted); }
