/* ===================================================================
   Tuotesivut (F1-tyyli): positiointiprojekti. Käyttää home-f1.css:n
   tokeneita ja komponentteja (body.page-f1). Uudet osat pp-etuliitteellä.
   =================================================================== */

.pp-section { padding: 110px 0; color: var(--hf-ink); }
.pp-section--white { background: #fff; }
.pp-section--paper { background: var(--hf-paper); }
.pp-section--paper2 { background: var(--hf-paper-2); }
.pp-section--dark { background: var(--hf-ink); color: #fdfffc; }
.pp-section--dark .hf-p { color: #cdd1cd; }

.pp-split { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 72px; align-items: center; }
.pp-stack { display: flex; flex-direction: column; gap: 22px; }
.pp-lead { margin: 0; font-family: var(--hf-body); font-size: var(--hf-fs-lead); line-height: 1.6; color: var(--hf-muted); max-width: 640px; }
.pp-label { font-family: var(--hf-head); font-weight: 600; font-size: 14px; color: #55555f; }

/* Kehys kuten etusivun animaatioissa: ohut reuna, pisteruudukko, oranssi L */
.pp-frame { position: relative; border: 1px solid var(--hf-line); border-radius: 6px; background: #fbfaf7 radial-gradient(rgba(18, 18, 24, 0.08) 0.7px, transparent 1px) 0 0 / 12px 12px; box-sizing: border-box; }
.pp-frame::before { content: ""; position: absolute; left: -2px; top: -2px; width: 56px; height: 56px; border-top: 4px solid var(--hf-orange); border-left: 4px solid var(--hf-orange); border-top-left-radius: 8px; box-sizing: border-box; pointer-events: none; }
.pp-frame--dark { border-color: #2c2c34; background: #17171e radial-gradient(rgba(255, 255, 255, 0.07) 0.7px, transparent 1px) 0 0 / 12px 12px; }

/* ---------- Hero ---------- */
.pp-hero { background: #fff; padding: calc(var(--header-height, 104px) + 64px) 0 96px; color: var(--hf-ink); }
.pp-hero h1 { margin: 0; font-family: var(--hf-head); font-weight: 700; font-size: var(--hf-fs-h1); line-height: 1.08; letter-spacing: -0.04em; }
.pp-facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--hf-line); }
.pp-fact { padding: 0 22px; border-left: 1px solid var(--hf-line); }
.pp-fact:first-child { padding-left: 0; border-left: 0; }
.pp-fact b { display: block; font-family: var(--hf-head); font-weight: 700; font-size: 20px; white-space: nowrap; }
.pp-fact span { font-family: var(--hf-body); font-size: 14px; color: #55555f; }

/* ---------- Ongelma ---------- */
.pp-problems { list-style: none; margin: 18px 0 0; padding: 0; }
.pp-problems li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #2c2c34; font-family: var(--hf-head); font-weight: 600; font-size: 17px; line-height: 1.4; letter-spacing: -0.02em; }
.pp-problems li:last-child { border-bottom: 1px solid #2c2c34; }
.pp-problems .pp-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hf-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.pp-chat { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.pp-chat__label { font-family: var(--hf-body); font-size: 13px; color: #a9adb3; }
.pp-bub { max-width: 330px; padding: 16px 18px; border-radius: 14px; background: #2c2c34; color: #fdfffc; font-family: var(--hf-body); font-size: var(--hf-fs-body); line-height: 1.4; }
.pp-bub small { display: block; margin-top: 6px; font-size: 12px; color: #a9adb3; }
.pp-bub--me { align-self: flex-end; background: #fdfffc; color: var(--hf-ink); text-align: right; }
.pp-bub--me small { color: #55555f; }

/* ---------- Positio-dokumentti ja tekoäly (skaalautuvat kuvat) ---------- */
.pp-doc { position: absolute; left: 40px; top: 44px; width: 330px; background: #fff; border: 1px solid var(--hf-line); border-radius: 12px; box-shadow: 0 1px 3px rgba(18, 18, 24, 0.06); overflow: hidden; }
.pp-doc__head { padding: 10px 16px; border-bottom: 1px solid var(--hf-line); font-family: var(--hf-head); font-weight: 600; font-size: 13px; color: #55555f; }
.pp-doc__body { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-family: var(--hf-body); font-size: 14px; line-height: 1.4; }
.pp-doc__body b { font-family: var(--hf-head); }
.pp-doc__body span { color: #55555f; }
.pp-doc__hl { padding: 10px 12px; margin: 0 -4px; border-radius: 8px; background: #ffe3d6; }
.pp-doc__hl b { color: #ff5912; }
.pp-doc__hl span { color: var(--hf-ink); }
.pp-doc pre { margin: 0; padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.7; color: var(--hf-ink); white-space: pre-wrap; }
.pp-doc pre span { color: #55555f; }
.hf-viz-wrap--doc { width: 600px; }

/* ---------- Lopputulokset ---------- */
.pp-rows { margin-top: 48px; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1fr) 600px; gap: 72px; align-items: center; padding: 48px 0; border-top: 1px solid var(--hf-line); }
.pp-row:last-child { border-bottom: 1px solid var(--hf-line); }
.pp-num { font-family: var(--hf-head); font-weight: 700; font-size: 15px; color: var(--hf-orange); }
.pp-row h3 { margin: 0; font-family: var(--hf-head); font-weight: 700; font-size: var(--hf-fs-h4); line-height: 1.15; letter-spacing: -0.03em; }
.pp-row .pp-frame { height: 300px; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp-mock { width: 100%; max-width: 380px; height: 250px; box-sizing: border-box; padding: 22px; background: #fff; border: 1px solid var(--hf-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(18, 18, 24, 0.06); display: flex; flex-direction: column; color: var(--hf-ink); }
.pp-mock__h { font-family: var(--hf-head); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.pp-mock__s { font-family: var(--hf-body); font-size: 11px; font-weight: 600; color: #55555f; margin: 6px 0 5px; }
.pp-sk { display: block; height: 7px; border-radius: 4px; background: #e6e3dc; margin-bottom: 6px; }
.pp-sk--o { background: #ffc6ac; }
.pp-sk--b { height: 12px; background: var(--hf-ink); margin-bottom: 8px; }
.pp-bl { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.pp-bl i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--hf-orange); }
.pp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.pp-tab { font-family: var(--hf-head); font-weight: 600; font-size: 11px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--hf-line); color: #55555f; }
.pp-tab--on { background: var(--hf-ink); border-color: var(--hf-ink); color: #fff; }
.pp-seg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--hf-line); border-radius: 10px; }
.pp-seg b { flex: none; width: 92px; font-family: var(--hf-head); font-size: 12px; }
.pp-seg em { margin-left: auto; font-style: normal; font-family: var(--hf-head); font-weight: 600; font-size: 11px; color: #ff5912; }
.pp-seg--best { border-color: var(--hf-orange); background: #fff7f2; }
.pp-cmp { width: 100%; border-collapse: collapse; font-family: var(--hf-head); font-size: 12px; }
.pp-cmp th { font-weight: 600; color: #55555f; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--hf-line); }
.pp-cmp th:first-child { text-align: left; }
.pp-cmp td { padding: 10px 4px; text-align: center; border-bottom: 1px solid #efebe4; font-weight: 700; color: #8a8a93; }
.pp-cmp td:first-child { text-align: left; }
.pp-cmp .pp-cmp__te { color: #ff5912; background: #fff7f2; }
/* Listanäkymät tuotesivujen kuvissa: ajastetut tehtävät ja raportti */
.pp-mock--list { max-width: 420px; height: auto; }
.pp-frame--auto { height: auto !important; min-height: 300px; }
.pp-list__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pp-list__title { font-family: var(--hf-head); font-weight: 700; font-size: var(--hf-fs-small); }
.pp-list__meta { font-family: var(--hf-head); font-weight: 600; font-size: 11px; color: #55555f; }
.pp-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--hf-line-soft); font-size: 12.5px; line-height: 1.3; }
.pp-task__when { flex: none; width: 66px; font-family: var(--hf-head); font-weight: 600; font-size: 11px; color: #55555f; }
.pp-task__what { flex: 1; }
.pp-status { flex: none; font-family: var(--hf-head); font-weight: 600; font-size: 10.5px; padding: 4px 8px; border-radius: 999px; background: var(--hf-paper-2); color: #55555f; }
.pp-status--done { color: var(--hf-ink); }
.pp-status--run { background: var(--hf-orange); color: #fff; }
.pp-status--draft { background: var(--hf-orange-soft); color: var(--hf-orange-text); }
.pp-rep__th, .pp-rep__row { display: flex; align-items: center; gap: 10px; }
.pp-rep__th { padding-bottom: 6px; font-family: var(--hf-head); font-weight: 600; font-size: 10.5px; color: #55555f; }
.pp-rep__row { padding: 6px 0; border-top: 1px solid var(--hf-line-soft); font-size: 12px; }
.pp-rep__ch { flex: none; width: 74px; font-family: var(--hf-head); font-weight: 600; }
.pp-rep__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--hf-line-soft); }
.pp-rep__bar i { display: block; height: 6px; border-radius: 3px; background: var(--hf-ink); }
.pp-rep__bar--top i { background: var(--hf-orange); }
.pp-rep__n { flex: none; width: 38px; text-align: right; }
.pp-rep__k { flex: none; width: 42px; text-align: right; font-family: var(--hf-head); font-weight: 700; }
.pp-insight { margin-top: 10px; padding: 9px 11px; border-radius: 8px; background: var(--hf-orange-soft); font-size: 11.5px; line-height: 1.4; }
.pp-insight b { font-family: var(--hf-head); color: var(--hf-orange-text); }
.pp-note { margin: 28px 0 0; font-family: var(--hf-body); font-size: var(--hf-fs-small); line-height: 1.5; color: var(--hf-muted); }

/* ---------- Asiakkaat ---------- */
.pp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: start; }

/* ---------- Hinta ---------- */
.pp-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.pp-price { border: 1px solid var(--hf-line); border-radius: 14px; background: #fff; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.pp-price--team { border-color: var(--hf-ink); }
.pp-price__value { font-family: var(--hf-head); font-weight: 700; font-size: 42px; letter-spacing: -0.04em; }
.pp-price__vat { font-family: var(--hf-body); color: #55555f; }
.pp-price ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--hf-body); font-size: var(--hf-fs-body); line-height: 1.45; color: var(--hf-muted); }
.pp-price li { display: flex; gap: 10px; }
.pp-price li::before { content: "✓"; color: var(--hf-orange); font-weight: 700; }
.pp-price .hf-btn { align-self: flex-start; margin-top: auto; }

/* ---------- Freimi-sivu: kuva ja aikajana ---------- */
.pp-split--photo { grid-template-columns: minmax(0, 1fr) 420px; }
.pp-photo { padding: 0; overflow: hidden; aspect-ratio: 4 / 5; }
.pp-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.pp-section .hf-p strong { color: var(--hf-ink); font-weight: 700; }
.pp-tl { list-style: none; margin: 40px 0 0; padding: 0; }
.pp-tl__item { position: relative; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 0 0 40px 28px; border-left: 1px solid var(--hf-line); }
.pp-tl__item:last-child { padding-bottom: 0; }
.pp-tl__item::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--hf-ink); }
.pp-tl__item:first-child::before { background: var(--hf-orange); }
.pp-tl__years { font-family: var(--hf-head); font-weight: 700; font-size: var(--hf-fs-small); color: var(--hf-orange-text); padding-top: 2px; }
.pp-tl__body { display: flex; flex-direction: column; gap: 6px; max-width: 680px; }
.pp-tl__body h3 { margin: 0; font-family: var(--hf-head); font-weight: 700; font-size: var(--hf-fs-h4); line-height: 1.2; letter-spacing: -0.02em; }
.pp-tl__role { font-family: var(--hf-head); font-weight: 600; font-size: var(--hf-fs-small); color: #55555f; }
.pp-tl__body .hf-p { margin-top: 4px; }

/* ---------- Responsiivisuus ---------- */
@media (max-width: 1100px) {
  .pp-split, .pp-split--photo, .pp-row { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pp-photo { max-width: 420px; }
  .pp-split > .hf-viz-wrap, .pp-split > .pp-frame, .pp-row > .pp-frame, .pp-row > .hf-viz-wrap { max-width: 600px; }
  .pp-quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .pp-section { padding: 72px 0; }
  .pp-hero { padding-top: calc(var(--header-height, 88px) + 40px); padding-bottom: 72px; }
  .pp-row { padding: 36px 0; }
  .pp-tl__item { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-left: 22px; }
  .pp-quotes, .pp-prices { grid-template-columns: minmax(0, 1fr); }
  .pp-chat { padding: 28px 20px; }
  .pp-bub { max-width: 85%; font-size: 16px; }
  .pp-facts { flex-direction: column; gap: 12px; }
  .pp-fact, .pp-fact:first-child { padding: 0; border-left: 0; }
  .pp-price { padding: 26px; }
  .pp-price__value { font-size: 40px; }
  .hf-viz-wrap--doc { width: 100%; height: calc(440px * var(--hf-scale, 0.55)); }
}
.pp-slide { padding: 0; overflow: hidden; align-self: start; }
.pp-slide img { display: block; width: 100%; height: auto; border-radius: 6px; }
.pp-contact { align-self: flex-start; width: 100%; max-width: 440px; padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.pp-contact__who { display: flex; flex-direction: column; gap: 2px; }
.pp-contact__who b { font-family: var(--hf-head); font-size: var(--fs-card-title); color: var(--hf-ink); }
.pp-contact__who span { font-size: var(--hf-fs-small); color: #6b6f76; }
.pp-contact__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-contact__list li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; font-size: var(--hf-fs-body); padding-top: 10px; border-top: 1px solid var(--hf-line-soft); }
.pp-contact__list span { font-size: var(--hf-fs-small); color: #6b6f76; }
.pp-contact__list a { color: var(--hf-ink); text-decoration: none; overflow-wrap: anywhere; }
.pp-contact__list a:hover { color: var(--hf-orange-text); }
.pp-problems--light li, .pp-problems--light li:last-child { border-color: var(--hf-line-soft); }
