/* Kattokorjaamo — komponenttityylit. Kaikki värit tokeneista (tokens.css). */
.kk-root, body { font-family: var(--font-body); color: var(--ink); background: var(--surface); }
*, *::before, *::after { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.kk-logo { display: block; }
.kk-eyebrow { margin: 0; font: 600 13px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--action-text); }

/* Button */
.kk-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 2px solid transparent; border-radius: var(--radius-md); font-family: var(--font-body); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.kk-btn-md { min-height: 48px; padding: 0 var(--space-5); font-size: 16px; }
.kk-btn-sm { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.kk-btn-lg { min-height: 56px; padding: 0 var(--space-6); font-size: 17px; }
.kk-btn-primary { background: var(--action); color: var(--on-action); }
.kk-btn-primary:hover { background: var(--action-hover); }
.kk-btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.kk-btn-secondary:hover { background: var(--ink); color: var(--surface); }
.kk-btn-ghost { background: transparent; color: var(--action-text); padding-left: var(--space-2); padding-right: var(--space-2); }
.kk-btn-ghost:hover { text-decoration: underline; text-underline-offset: 4px; }
.kk-btn-inverse { background: var(--on-inverse); color: var(--surface-inverse); }
.kk-btn-inverse:hover { background: var(--surface-alt); }
.kk-btn-arrow { transition: transform .15s; }
.kk-btn:hover .kk-btn-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .kk-btn, .kk-btn-arrow { transition: none; } }

/* SiteHeader */
.kk-header { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-4) var(--space-5); background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.kk-header-inverse { background: var(--surface-inverse); border-bottom-color: transparent; }
.kk-header-brand { flex: none; }
.kk-header-nav { display: flex; gap: var(--space-5); flex: 1; flex-wrap: wrap; }
.kk-header-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: var(--space-1) 0; border-bottom: 2px solid transparent; }
.kk-header-link:hover, .kk-header-link.is-current { border-bottom-color: var(--brand-red); }
.kk-header-inverse .kk-header-link { color: var(--on-inverse); }
.kk-header-actions { display: flex; align-items: center; gap: var(--space-4); }
.kk-header-phone { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.15; }
.kk-header-inverse .kk-header-phone { color: var(--on-inverse); }
.kk-header-phone-label { font-size: 12px; color: var(--ink-muted); }
.kk-header-inverse .kk-header-phone-label { color: var(--on-inverse-muted); }
.kk-header-phone-num { font: 800 19px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }

/* CallBar */
.kk-callbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); flex-wrap: wrap; padding: var(--space-6) var(--space-6); background: var(--surface-inverse); color: var(--on-inverse); border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.kk-callbar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-red); }
.kk-callbar-text { min-width: 0; flex: 1 1 280px; }
.kk-callbar-title { margin: 0; font: 800 28px/1.1 var(--font-display); }
.kk-callbar-sub { margin: var(--space-2) 0 0; color: var(--on-inverse-muted); font-size: 15px; line-height: 1.55; max-width: 52ch; }
.kk-callbar-actions { display: flex; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.kk-callbar-phone { font: 800 32px/1 var(--font-display); color: var(--on-inverse); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.kk-callbar-phone:hover { text-decoration: underline; text-decoration-color: var(--brand-red); text-underline-offset: 6px; }

/* ServiceCard */
.kk-service { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; }
.kk-service-title { margin: 0; font: 700 22px/1.25 var(--font-display); color: var(--ink); text-wrap: balance; }
.kk-service-body { color: var(--ink-muted); font-size: 15px; line-height: 1.65; }
.kk-service-body p { margin: 0; }
.kk-service-link { margin-top: auto; padding-top: var(--space-2); color: var(--action-text); font-weight: 600; text-decoration: none; }
.kk-service-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ProcessSteps */
.kk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: none; }
.kk-step { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); align-items: start; position: relative; }
.kk-step:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 44px; bottom: calc(-1 * var(--space-5) + 4px); width: 2px; background: var(--line); }
.kk-step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-inverse); color: var(--on-inverse); font: 800 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.kk-step:first-child .kk-step-num { background: var(--brand-red); color: var(--on-brand); }
.kk-step-body { min-width: 0; padding-top: 6px; }
.kk-step-title { margin: 0; font: 700 18px/1.3 var(--font-display); color: var(--ink); }
.kk-step-text { margin: var(--space-1) 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted); max-width: 60ch; }
.kk-steps-compact { gap: var(--space-3); }
.kk-steps-compact .kk-step-text { display: none; }
.kk-steps-compact .kk-step-body { padding-top: 9px; }

/* ConditionClass */
.kk-kl { display: inline-flex; align-items: stretch; border-radius: var(--radius-sm); overflow: hidden; font-size: 14px; line-height: 1; }
.kk-kl-code { padding: 7px 10px; font: 800 14px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.kk-kl-label { padding: 7px 10px; background: var(--surface-alt); color: var(--ink); font-weight: 500; }
.kk-kl-1 .kk-kl-code, .kk-klscale-seg.kk-kl-1 { background: var(--kl-1); color: var(--on-kl-1); }
.kk-kl-2 .kk-kl-code, .kk-klscale-seg.kk-kl-2 { background: var(--kl-2); color: var(--on-kl-2); }
.kk-kl-3 .kk-kl-code, .kk-klscale-seg.kk-kl-3 { background: var(--kl-3); color: var(--on-kl-3); }
.kk-kl-4 .kk-kl-code, .kk-klscale-seg.kk-kl-4 { background: var(--kl-4); color: var(--on-kl-4); }
.kk-kl-5 .kk-kl-code, .kk-klscale-seg.kk-kl-5 { background: var(--kl-5); color: var(--on-kl-5); }
.kk-klscale { display: grid; gap: var(--space-3); max-width: 420px; }
.kk-klscale-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.kk-klscale-seg { height: 28px; display: grid; place-items: center; font: 700 13px/1 var(--font-display); opacity: .35; border-radius: 2px; }
.kk-klscale-seg.is-active { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.kk-klscale-life { margin: 0; font-size: 14px; color: var(--ink-muted); }
.kk-klscale-life strong { color: var(--ink); }

/* Testimonial */
.kk-quote { margin: 0; padding: var(--space-6) 0 0; border-top: 3px solid var(--brand-red); max-width: 640px; }
.kk-quote-text { margin: 0; font: 600 22px/1.4 var(--font-display); color: var(--ink); text-wrap: pretty; }
.kk-quote-text::before { content: "\201D"; }
.kk-quote-text::after { content: "\201D"; }
.kk-quote-by { margin-top: var(--space-4); display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.kk-quote-name { font-weight: 600; color: var(--ink); }
.kk-quote-role { color: var(--ink-muted); }

/* TrustBar */
.kk-trust { list-style: none; margin: 0; padding: var(--space-4) 0; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kk-trust-item { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; font-weight: 500; color: var(--ink); }
.kk-trust-mark { width: 9px; height: 9px; background: var(--brand-red); transform: rotate(45deg); flex: none; }

/* Field */
.kk-field { display: grid; gap: 6px; min-width: 0; }
.kk-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.kk-req { color: var(--action-text); }
.kk-input { width: 100%; min-height: 48px; padding: 12px 14px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); }
textarea.kk-input { resize: vertical; min-height: 110px; }
.kk-input:hover { border-color: var(--ink-muted); }
.kk-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.kk-input.has-error { border-color: var(--danger); }
.kk-hint { margin: 0; font-size: 13px; color: var(--ink-muted); }
.kk-error { margin: 0; font-size: 13px; font-weight: 500; color: var(--danger); }
.kk-error::before { content: "Korjaa: "; font-weight: 600; }
