/* /kuntaraportti (J97). Built on style.css + mid.css like /postipelastus: same header, footer, tokens, night theme.
   New here: the price box and the excerpt of the real Joensuu sample in the first screen (the one memorable element),
   the four-step order sequence and two-column text sections. */

.kr-hero { padding: clamp(24px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.kr-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "copy offer" "sample offer"; gap: clamp(20px, 3vw, 36px) clamp(28px, 5vw, 72px); align-items: start; }
.kr-copy { grid-area: copy; }
.kr-offer { grid-area: offer; }
.kr-sample { grid-area: sample; }
.kr-for { color: var(--open); font-weight: 700; margin-bottom: 12px; }
.kr-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); max-width: 15ch; line-height: 1.02; letter-spacing: -.035em; }
.kr-intro { margin-top: 16px; color: var(--graphite); max-width: 56ch; font-size: 1.08rem; line-height: 1.5; }

/* price box */
.kr-offer { background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(18px, 2.6vw, 28px); }
.kr-offer-h { font-size: 1rem; color: var(--graphite); font-weight: 600; }
.kr-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.kr-price b { font-size: clamp(2.8rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.kr-price span { color: var(--graphite); font-size: 1.05rem; }
.kr-area { margin-top: 12px; color: var(--graphite); line-height: 1.45; font-size: .98rem; }
.kr-cta { width: 100%; margin-top: 16px; }
.kr-small { margin-top: 10px; font-size: .88rem; color: var(--graphite); }
.kr-small a { color: var(--ink); }

/* excerpt of the real sample: the report's own table, not an illustration */
.kr-sample { margin: 0; padding: 16px 0 0; border-top: 2px solid var(--ink); max-width: 640px; }
.kr-sample figcaption { font-size: .92rem; color: var(--graphite); }
.kr-rows { margin-top: 8px; }
.kr-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 8.5em; gap: 4px 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.kr-k { font-weight: 600; }
.kr-v { display: grid; grid-template-columns: 3.6em minmax(0, 1fr); gap: 10px; align-items: center; }
.kr-v b { font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kr-bar { display: block; height: 10px; border-radius: 99px; background: var(--rule); overflow: hidden; }
.kr-bar i { display: block; height: 100%; background: var(--pen); }
.kr-m { color: var(--graphite); font-size: .88rem; font-variant-numeric: tabular-nums; text-align: right; }
.kr-open { display: inline-block; margin-top: 12px; color: var(--ink); font-weight: 700; padding-block: 6px; }

@media (max-width: 860px) {
  .kr-hero { padding-top: 12px; }
  .kr-hero .wrap { grid-template-columns: 1fr; grid-template-areas: "copy" "offer" "sample"; gap: 16px; }
}
@media (max-width: 560px) {
  .kr-for { font-size: .88rem; margin-bottom: 6px; }
  .kr-hero h1 { font-size: 1.85rem; }
  .kr-intro { font-size: .95rem; margin-top: 8px; line-height: 1.42; }
  .kr-offer { padding: 12px 16px 14px; }
  .kr-offer-h { display: none; }
  .kr-price { margin-top: 0; }
  .kr-price b { font-size: 2.4rem; }
  .kr-area { margin-top: 4px; font-size: .88rem; line-height: 1.38; }
  .kr-cta { margin-top: 10px; min-height: 44px; }
  .kr-small { font-size: .82rem; margin-top: 6px; }
  .kr-row { grid-template-columns: minmax(0, 1fr) auto; }
  .kr-v { grid-column: 1 / -1; grid-row: 2; }
  .kr-m { grid-column: 2; grid-row: 1; }
}

/* text sections: heading left, content right */
.kr-two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px clamp(32px, 6vw, 96px); align-items: start; }
.kr-two .head { display: block; margin-bottom: 0; }
.kr-two .head p { margin-top: 12px; max-width: 34ch; }
#tilaa .head { align-items: start; margin-bottom: 24px; }
#tilaa .head p { max-width: 60ch; }
.kr-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.kr-list li { padding: 14px 0 14px 26px; border-bottom: 1px solid var(--rule); position: relative; line-height: 1.45; }
.kr-list li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 10px; height: 10px; border-radius: 2px; background: var(--open); }
.kr-prose p { color: var(--graphite); max-width: 64ch; }
.kr-prose p + p { margin-top: 12px; }
.kr-prose a, #tilaa .head a { color: var(--ink); }
@media (max-width: 860px) { .kr-two { grid-template-columns: 1fr; } }

/* order sequence: four real steps in order */
.kr-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(16px, 3vw, 32px); border-top: 2px solid var(--ink); }
.kr-steps li { counter-increment: s; position: relative; padding: 18px 0 18px 46px; }
.kr-steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.kr-steps h3 { font-size: 1.08rem; }
.kr-steps p { color: var(--graphite); margin-top: 4px; font-size: .95rem; }
.kr-mail { margin-top: 18px; }
@media (max-width: 860px) { .kr-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .kr-steps { grid-template-columns: 1fr; } .kr-steps li { padding: 12px 0 12px 46px; border-bottom: 1px solid var(--rule); } .kr-steps li::before { top: 10px; } .kr-mail { width: 100%; } }

footer .wrap span a { display: inline-block; padding-block: 6px; }
.kr-open:focus-visible, .kr-prose a:focus-visible, .kr-small a:focus-visible, #tilaa .head a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }

/* J105: touch areas for inline links (P10), e-mail address kept on one line, sample report list */
.nw { white-space: nowrap; }
.kr-prose a, #tilaa .head a, .kr-small a { padding-block: 6px; }
.kr-samples-h { font-size: 1rem; margin-top: 20px; }
.kr-samples { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.kr-samples a { display: inline-block; padding-block: 8px; color: var(--ink); }
.kr-samples a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
