/* Huoleton: paketin valintaohje, korjaustöiden rajaus, TURVAn suojauskokonaisuus,
   toimintatestaus ja Kasvukumppanuus-nosto. Ladataan huoleton.css:n jälkeen, koska
   hintakorttien rivit ja korttityylit tulevat sieltä. */

/* Hintakortin "Sopii"-suositus */
.tier .tier-fit { margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.tier-fit-lbl { display: block; margin-bottom: 4px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pricing-mixed .tier.featured .tier-fit { color: rgba(255,255,255,.78); border-bottom-color: rgba(255,255,255,.16); }
.pricing-mixed .tier.featured .tier-fit-lbl { color: var(--orange-soft); }

/* Vertailutaulukko korttien alla */
.cmp { max-width: 1200px; margin: 48px auto 0; text-align: left; }
.cmp-title { margin: 0 0 16px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: var(--sh-md); }
.cmp-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-table thead th { padding: 22px 18px; background: var(--navy-50); color: var(--navy-dark); text-align: center; border-bottom: 0; }
.cmp-table thead .cmp-corner { background: var(--navy-50); color: var(--text-muted); font-size: 13px; font-weight: 700; text-align: left; }
.cmp-table thead .cmp-featured { background: var(--navy-dark); color: #fff; }
.cmp-table thead .cmp-turva { background: var(--grad-soft); }
.cmp-tier { display: block; font-size: 20px; font-weight: 900; letter-spacing: -.01em; }
.cmp-price { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; opacity: .8; }
.cmp-table tbody th { width: 34%; color: var(--text); font-weight: 600; text-align: left; }
.cmp-table tbody td { width: 22%; color: var(--text-muted); text-align: center; line-height: 1.45; }
.cmp-table tbody td.cmp-featured { background: rgba(35, 46, 102, .035); color: var(--navy-dark); font-weight: 600; }
.cmp-table tbody tr:hover > * { background-color: var(--surface); }
.cmp-mark { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 14px; vertical-align: middle; }
.cmp-yes { background-color: rgba(34, 197, 94, .13); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5 L6.5 12 L13 5' stroke='%2316a34a' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.cmp-no { background-color: rgba(150, 150, 150, .12); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 5 L11 11 M11 5 L5 11' stroke='%23999' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.cmp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cmp-note { margin: 12px 0 0; color: var(--text-muted); font-size: 13px; }
.cmp-note a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
body[data-platform="ai"] .cmp-table { min-width: 460px; }
body[data-platform="ai"] .cmp-table tbody td { width: 33%; }
.cmp-hint { display: none; margin: 0 0 10px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 700px) {
  .cmp-hint { display: block; }
  body[data-platform="ai"] .cmp-hint { display: none; }
  .cmp-table { min-width: 540px; table-layout: fixed; font-size: 13px; }
  body[data-platform="ai"] .cmp-table { min-width: 0; }
  .cmp-table th, .cmp-table td { padding: 12px 10px; }
  .cmp-table thead th { padding: 16px 10px; }
  .cmp-tier { font-size: 16px; }
  .cmp-price { font-size: 12px; }
  /* Ominaisuussarake pysyy näkyvissä, kun pakettisarakkeita vieritetään. */
  .cmp-table tbody th, .cmp-table thead .cmp-corner { position: sticky; left: 0; z-index: 1; width: 120px; background: #fff; box-shadow: 1px 0 0 var(--border); }
  .cmp-table tbody td, body[data-platform="ai"] .cmp-table tbody td { width: auto; }
  .cmp-table thead .cmp-corner { background: var(--navy-50); }
}

/* Pyydä suositus */
.tier-advice { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 1200px; margin: 32px auto 0; padding: 24px 28px; background: var(--grad-soft); border-radius: 20px; }
.tier-advice h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.tier-advice p { margin: 0; max-width: 680px; color: var(--text); font-size: 15px; line-height: 1.6; }
.tier-advice .btn-primary-sm { flex-shrink: 0; }

/* Mitä jos sivustolla jokin hajoaa? */
.repair-scope { max-width: 1200px; margin: 40px auto 0; padding: 36px 40px; background: #fff; border: 1.5px solid var(--navy-100); border-radius: 24px; text-align: left; }
.repair-scope h3 { margin: 0 0 14px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; scroll-margin-top: 120px; }
.repair-scope-lead { max-width: 780px; margin: 0 0 10px; font-size: 16px; line-height: 1.65; }
.repair-scope-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.repair-scope-grid li { padding: 18px 20px; background: var(--surface); border-radius: 16px; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.repair-scope-grid strong { display: block; margin-bottom: 6px; color: var(--navy-dark); font-size: 15px; }
.repair-scope-terms { margin: 18px 0 0; font-size: 14px; font-weight: 700; }
.repair-scope-terms a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.repair-scope-terms a:hover { color: var(--red); }

/* TURVAn suojauskokonaisuus */
.turva-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.turva-benefits li { padding: 20px 22px; background: #fff; border: 1px solid var(--border); border-radius: 16px; font-size: 15px; line-height: 1.6; }
.turva-benefits strong { color: var(--navy-dark); }
.turva-note { max-width: 860px; margin: 18px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.turva-case { margin: 32px 0 0; padding: 28px 32px; background: var(--navy-dark); color: rgba(255,255,255,.82); border-radius: 20px; }
.turva-case-tag { display: inline-block; margin-bottom: 12px; padding: 5px 12px; background: var(--orange-50); color: var(--navy-dark); border-radius: 999px; font-size: 12px; font-weight: 800; }
.turva-case h3 { margin: 0 0 8px; color: #fff; font-size: 20px; font-weight: 800; }
.turva-case p { max-width: 820px; margin: 0; line-height: 1.65; }
.turva-accordions-title { margin: 48px 0 0; font-size: 20px; font-weight: 800; }
.turva-accordions-title + .turva-accordions { margin-top: 8px; }

/* Maksullinen toimintatestaus */
.flow-test { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 24px; padding: 32px 40px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 24px; }
.flow-test-text { flex: 1; }
.flow-test-tag { display: inline-block; margin-bottom: 10px; padding: 5px 12px; background: #fff; color: var(--navy-dark); border: 1px solid var(--navy-100); border-radius: 999px; font-size: 12px; font-weight: 800; }
.flow-test h2 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.flow-test p { max-width: 720px; margin: 0; color: var(--text-muted); line-height: 1.65; }
.btn-ghost-sm { display: inline-flex; flex-shrink: 0; align-items: center; padding: 12px 22px; background: #fff; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.btn-ghost-sm:hover { background: var(--navy); color: #fff; }

/* Kasvukumppanuus */
.growth-teaser { margin: 0 0 48px; padding: 40px 48px; background: var(--grad-warm); border: 1.5px solid var(--orange-50); border-radius: 24px; }
.growth-teaser h2 { max-width: 760px; margin: 0 0 12px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.growth-teaser p { max-width: 760px; margin: 0 0 18px; color: var(--text-muted); line-height: 1.65; }
.growth-teaser-link { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; text-decoration: none; }
.growth-teaser-link:hover { color: var(--red); }
.growth-teaser-link .arr { transition: transform .2s; }
.growth-teaser-link:hover .arr { transform: translateX(3px); }

@media (max-width: 900px) {
  .repair-scope-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .tier-advice, .flow-test { flex-direction: column; align-items: flex-start; padding: 24px; }
  .repair-scope, .growth-teaser { padding: 28px 24px; }
  .turva-case { padding: 24px; }
  .turva-benefits { grid-template-columns: 1fr; }
}
