/* Projektifiilis – IQI-aligned look (option B "Kevyt laventeli"). */

@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/urbanist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/urbanist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/urbanist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Urbanist"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/urbanist-latin-700-normal.woff2") format("woff2"); }

:root {
	--pf-periwinkle: #7d7dff;
	--pf-indigo: #6464f0;
	--pf-link: #4b4bd6;
	--pf-plum: #91007d;
	--pf-plum-dark: #74006a;
	--pf-amber: #ffaf00;
	--pf-amber-soft: #fff4d9;
	--pf-lav: #ededff;
	--pf-lav-2: #dcdcff;
	--pf-lav-3: #f7f7ff;
	--pf-ink: #1c1c1c;
	--pf-text: #323232;
	--pf-muted: #555566;
	--pf-green: #1a7f4b;
	--pf-red: #b3261e;
	--pf-radius: 24px;
	--pf-shadow: 0 16px 48px rgba(60, 60, 160, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pf { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--pf-lav); color: var(--pf-text); font: 400 17px/1.5 Urbanist, "Segoe UI", system-ui, sans-serif; position: relative; overflow-x: hidden; }
.pf a { color: var(--pf-link); }
.pf a:hover { color: var(--pf-plum); }
.pf h1, .pf h2 { color: var(--pf-ink); line-height: 1.15; margin: 0; }
.pf h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 600; }
.pf h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.pf [hidden] { display: none !important; }
.pf :focus-visible { outline: 3px solid var(--pf-plum); outline-offset: 2px; border-radius: 6px; }
.pf-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Decorative arcs */
.pf-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.pf-arc { position: absolute; border-radius: 50%; border: solid var(--pf-lav-2); }
.pf-arc-1 { width: 700px; height: 700px; left: -260px; bottom: -320px; border-width: 110px; }
.pf-arc-2 { width: 420px; height: 420px; right: -140px; top: -150px; border-width: 70px; }

/* Header and footer */
.pf-header, .pf-main, .pf-footer { position: relative; z-index: 1; }
.pf-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px clamp(16px, 5vw, 64px); }
.pf-brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; color: var(--pf-ink) !important; font-size: 22px; font-weight: 600; }
.pf-nav { display: flex; gap: 20px; font-weight: 600; }
.pf-nav a { text-decoration: none; color: var(--pf-ink); min-height: 44px; display: inline-flex; align-items: center; }
.pf-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 40px; }
.pf-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; padding: 24px 16px 32px; font-size: 14px; color: var(--pf-muted); }

/* Cards */
.pf-card { background: #fff; border-radius: var(--pf-radius); padding: clamp(24px, 4vw, 52px) clamp(20px, 4vw, 56px); box-shadow: var(--pf-shadow); max-width: 760px; margin: 0 auto 24px; }
.pf-card-wide { max-width: 860px; }
.pf-card-flush { max-width: none; padding: 24px clamp(18px, 3vw, 32px); margin: 0 0 16px; box-shadow: none; }
.pf-head { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; margin-bottom: 28px; }
.pf-head p { margin: 0; color: var(--pf-muted); font-size: 18px; }
.pf-head-left { align-items: flex-start; text-align: left; }
.pf-eyebrow { margin: 0; font-size: 13px !important; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--pf-plum) !important; }
.pf-center { text-align: center; }
.pf-muted { color: var(--pf-muted); font-size: 15px; }

/* Mood buttons */
.pf-moods { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pf-mood { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 124px; padding: 12px 6px; border-radius: 20px; border: 2px solid var(--pf-lav-2); background: #fff; color: var(--pf-ink); font: 600 15px Urbanist, sans-serif; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.pf-mood:hover { border-color: var(--pf-plum); transform: translateY(-2px); }
.pf-mood[aria-pressed="true"] { background: var(--pf-plum); border-color: var(--pf-plum); color: #fff; }
.pf-mood[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 600px) {
	.pf-moods { grid-template-columns: 1fr; gap: 8px; }
	.pf-mood { flex-direction: row; justify-content: flex-start; min-height: 56px; padding: 0 16px; gap: 14px; font-size: 17px; }
	.pf-mood svg { width: 32px; height: 32px; }
}

/* Forms */
.pf-form { display: flex; flex-direction: column; gap: 12px; }
.pf-form h2 { margin: 16px 0 0; font-size: 18px; }
.pf-form label, .pf-form legend { font-size: 15px; font-weight: 600; color: var(--pf-ink); }
.pf-form fieldset { border: 0; padding: 0; margin: 0; }
.pf-form input[type="text"], .pf-form input[type="email"], .pf-form input[type="month"], .pf-form input[type="date"], .pf-form input:not([type]), .pf-form select, .pf-form textarea, .pf-round-select, .pf-snap-select select {
	width: 100%; min-height: 52px; padding: 0 20px; border-radius: 50px; border: 2px solid var(--pf-lav-2); background: #fff; font: 400 17px Urbanist, sans-serif; color: var(--pf-ink);
}
.pf-form textarea { border-radius: 18px; padding: 14px 18px; min-height: 96px; resize: vertical; }
.pf-form select, .pf-round-select, .pf-snap-select select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--pf-ink) 50%), linear-gradient(135deg, var(--pf-ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pf-form input:focus, .pf-form select:focus, .pf-form textarea:focus { border-color: var(--pf-indigo); outline: none; box-shadow: 0 0 0 3px rgba(100, 100, 240, .2); }
.pf-form small { display: block; color: var(--pf-muted); font-size: 14px; margin-top: 4px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pf-span-2 { grid-column: span 2; }
.pf-field { display: flex; flex-direction: column; gap: 6px; }
.pf-grow { flex: 1; }
@media (max-width: 640px) { .pf-grid { grid-template-columns: 1fr; } .pf-span-2 { grid-column: auto; } }
.pf-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pf-row > input { flex: 1; min-width: 180px; }
.pf-row-end { justify-content: flex-end; align-items: center; }
.pf-row-between { justify-content: space-between; align-items: center; }
.pf-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pf-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; }
.pf-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pf-plum); flex-shrink: 0; }
.pf-hp { position: absolute; left: -9999px; }

.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pf-chip { position: relative; }
.pf-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pf-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 50px; border: 2px solid var(--pf-lav-2); background: #fff; font-weight: 600; font-size: 15px; }
.pf-chip input:checked + span { background: var(--pf-plum); border-color: var(--pf-plum); color: #fff; }
.pf-chip input:focus-visible + span { outline: 3px solid var(--pf-plum); outline-offset: 2px; }
.pf-chip input:disabled + span { opacity: .45; }

/* Buttons */
.pf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 32px; border-radius: 50px; border: 2px solid var(--pf-plum); background: var(--pf-plum); color: #fff !important; font: 700 17px Urbanist, sans-serif; text-decoration: none; cursor: pointer; }
.pf-btn:hover { background: var(--pf-plum-dark); border-color: var(--pf-plum-dark); }
.pf-btn[disabled] { opacity: .6; cursor: progress; }
.pf-btn-block { width: 100%; margin-top: 12px; }
.pf-btn-ghost { background: #fff; color: var(--pf-plum) !important; min-height: 44px; padding: 0 20px; font-size: 15px; }
.pf-btn-ghost:hover { background: var(--pf-lav); }
.pf-btn-danger { background: var(--pf-red); border-color: var(--pf-red); }
.pf-link { background: none; border: 0; padding: 0; color: var(--pf-link); font: inherit; text-decoration: underline; cursor: pointer; }

/* Messages */
.pf-notice { padding: 14px 18px; border-radius: 16px; background: var(--pf-amber-soft); color: var(--pf-ink); margin-bottom: 20px; }
.pf-error { padding: 12px 16px; border-radius: 14px; background: #fdecea; color: #8a1c14; font-weight: 600; }
.pf-success { color: var(--pf-green); font-weight: 600; margin: 0; }
.pf-loading { text-align: center; color: var(--pf-muted); padding: 60px 0; }
.pf-linkbox { background: var(--pf-lav-3); border-radius: 20px; padding: 20px; margin-bottom: 16px; }
.pf-linkbox label { font-weight: 600; display: block; margin-bottom: 8px; color: var(--pf-ink); }
.pf-linkbox input { flex: 1; min-height: 52px; padding: 0 20px; border-radius: 50px; border: 2px solid var(--pf-lav-2); font: 400 16px Urbanist, sans-serif; }

/* Report */
.pf-r-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.pf-r-head h1 { font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; }
.pf-r-headside { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.pf-r-headside p { margin: 0; }
.pf-r-round { color: var(--pf-muted); }
.pf-r-round strong { color: var(--pf-ink); }
.pf-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pf-tags li { padding: 6px 14px; border-radius: 50px; background: #fff; font-size: 14px; font-weight: 600; color: var(--pf-ink); }
@media (max-width: 700px) { .pf-r-headside { flex-direction: column; align-items: stretch; } .pf-r-headside .pf-btn { width: 100%; } }

.pf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pf-kpi { background: #fff; border-radius: 20px; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.pf-kpi-label { font-size: 14px; font-weight: 600; color: var(--pf-muted); }
.pf-kpi-value { font-size: 38px; font-weight: 700; color: var(--pf-ink); line-height: 1.1; }
.pf-kpi-value small { font-size: 17px; font-weight: 500; color: var(--pf-muted); }
.pf-kpi-face { display: flex; align-items: center; gap: 12px; }
.pf-kpi-face .pf-face { color: var(--pf-plum); flex-shrink: 0; }
.pf-kpi-num { display: flex; flex-direction: column; font-size: 28px; line-height: 1.1; white-space: nowrap; }
.pf-kpi-num small { font-size: 14px; }
.pf-kpi-num em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--pf-plum); margin-top: 2px; }
.pf-face { flex-shrink: 0; vertical-align: middle; }
.pf-face-open { color: var(--pf-amber); }
.pf-legend .pf-face { color: var(--pf-indigo); margin-right: -4px; }
.pf-legend .pf-face-open { color: var(--pf-amber); }
.pf-chart .pf-facemark-bg { fill: #fff; stroke: var(--pf-indigo); stroke-width: 4; }
.pf-chart .pf-facemark-eye { fill: var(--pf-indigo); }
.pf-chart .pf-facemark-mouth { fill: none; stroke: var(--pf-indigo); stroke-width: 4; stroke-linecap: round; }
.pf-chart .is-open .pf-facemark-bg { stroke: var(--pf-amber); stroke-width: 6; }
.pf-dist-row b { display: inline-flex; align-items: center; gap: 8px; }
.pf-dist-row .pf-face, .pf-dist-sum .pf-face { color: var(--pf-indigo); }
.pf-dist-sum { display: flex; align-items: center; gap: 8px; }
.pf-bars .pf-face { color: var(--pf-indigo); }
.pf-bar-val { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.pf-kpi-sub { font-size: 14px; color: var(--pf-muted); }
.pf-up { color: var(--pf-green) !important; }
.pf-down { color: var(--pf-red) !important; }
@media (max-width: 900px) { .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pf-kpi-value { font-size: 30px; } }

.pf-chart-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.pf-chart-head p { margin: 0 0 12px; }
.pf-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 50px; background: var(--pf-lav); }
.pf-toggle button { min-height: 40px; padding: 0 18px; border-radius: 50px; border: 0; background: transparent; font: 600 14px Urbanist, sans-serif; color: var(--pf-muted); cursor: pointer; }
.pf-toggle button[aria-pressed="true"] { background: #fff; color: var(--pf-ink); font-weight: 700; }
.pf-chart { width: 100%; overflow-x: auto; }
.pf-chart svg { display: block; width: 100%; height: auto; font-family: Urbanist, sans-serif; }
.pf-chart .pf-grid-line { stroke: var(--pf-lav); stroke-width: 1; }
.pf-chart .pf-axis { fill: var(--pf-muted); font-size: 13px; }
.pf-chart .pf-axis-strong { fill: var(--pf-ink); font-weight: 700; }
.pf-chart .pf-axis-muted { fill: #8a8aa8; font-size: 11px; }
.pf-chart .pf-line { fill: none; stroke: var(--pf-indigo); stroke-width: 3; stroke-linejoin: round; }
.pf-chart .pf-dot { fill: var(--pf-indigo); }
.pf-chart .pf-dot-open { fill: var(--pf-indigo); stroke: var(--pf-amber); stroke-width: 4; }
.pf-chart .pf-whisker { stroke: #b9b9ff; stroke-width: 3; stroke-linecap: round; }
.pf-chart .pf-bench { fill: none; stroke: var(--pf-amber); stroke-width: 2; stroke-dasharray: 6 5; }
.pf-chart .pf-ms { stroke: var(--pf-plum); stroke-width: 1.5; stroke-dasharray: 5 5; }
.pf-chart .pf-ms-label { fill: var(--pf-plum); font-size: 12px; font-weight: 700; }
.pf-chart .pf-future { fill: var(--pf-lav-3); }
.pf-chart .pf-val { fill: var(--pf-ink); font-size: 13px; font-weight: 700; }
.pf-chart .pf-gap { fill: none; stroke: #8a8aa8; stroke-width: 2; stroke-dasharray: 3 3; }
.pf-chart .pf-empty { fill: var(--pf-muted); font-size: 15px; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; font-size: 14px; color: var(--pf-muted); }
.pf-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pf-legend i { display: inline-block; }
.pf-add-ms { margin-top: 16px; border-top: 1px solid var(--pf-lav); padding-top: 12px; }
.pf-add-ms summary, .pf-manage summary { cursor: pointer; font-weight: 700; color: var(--pf-link); min-height: 44px; display: flex; align-items: center; }
.pf-ms-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 6px; }
.pf-ms-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 14px; border-radius: 12px; background: var(--pf-lav-3); }

.pf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.pf-two > .pf-card { margin: 0; }
@media (max-width: 900px) { .pf-two { grid-template-columns: 1fr; } }
.pf-round-select { width: auto; min-height: 44px; font-size: 15px; }
.pf-dist { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.pf-dist-row { display: grid; grid-template-columns: 150px 1fr 72px; gap: 12px; align-items: center; font-size: 15px; }
.pf-dist-row b { font-weight: 600; }
.pf-bar-track { display: block; height: 16px; border-radius: 8px; background: var(--pf-lav); overflow: hidden; }
.pf-bar-fill { display: block; height: 100%; border-radius: 8px; background: var(--pf-indigo); }
.pf-bar-plum { background: var(--pf-plum); }
.pf-dist-row span:last-child { text-align: right; }
.pf-benchmark { margin-top: 16px; padding: 14px 18px; border-radius: 14px; background: var(--pf-amber-soft); color: var(--pf-ink); font-size: 15px; }
.pf-factors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pf-factors span { padding: 8px 14px; border-radius: 50px; background: var(--pf-lav-2); color: var(--pf-ink); font-weight: 600; font-size: 14px; }
.pf-factors span:first-child { background: var(--pf-plum); color: #fff; }
.pf-comments { display: flex; flex-direction: column; gap: 8px; }
.pf-comments-toggle { font-size: 14px; color: var(--pf-muted); margin-bottom: 12px; cursor: pointer; }
.pf-comments-toggle input { width: 18px; height: 18px; }
.pf-comments blockquote { margin: 0; padding: 12px 16px; border-radius: 14px; background: var(--pf-lav-3); font-size: 15px; line-height: 1.45; }
.pf-manage details { border-top: 1px solid var(--pf-lav); padding: 6px 0; }
.pf-manage details[open] { padding-bottom: 16px; }
.pf-actions p { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.pf-manual { background: var(--pf-lav-3); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pf-manual p { margin: 0; flex-basis: 100%; }
.pf-recovered { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-recovered li { padding: 16px; border-radius: 16px; background: var(--pf-lav-3); display: flex; flex-direction: column; gap: 8px; }

/* Stats page */
.pf-stats .pf-card { max-width: none; }
.pf-stats .pf-head { margin-bottom: 20px; max-width: 760px; }
.pf-stats-period { margin: 8px 0 16px !important; }
.pf-snap-select { align-items: center; margin-bottom: 8px; }
.pf-snap-select select { width: auto; min-height: 44px; }
.pf-bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-bars li { display: grid; grid-template-columns: minmax(120px, 42%) 1fr 76px; gap: 12px; align-items: center; font-size: 15px; }
.pf-bar-val { text-align: right; font-weight: 700; color: var(--pf-ink); }
.pf-method { max-width: 760px; margin: 8px 0 24px; }
.pf-cta { text-align: center; margin-top: 16px; }
.pf-cta p { color: var(--pf-muted); }

@media (prefers-reduced-motion: reduce) { .pf-mood { transition: none; } }

/* Print / PDF: keep the results, drop links and management. */
@media print {
	body.pf { background: #fff; font-size: 13px; }
	.pf-bg, .pf-nav, .pf-footer, .pf-share, .pf-manage, .pf-toggle, .pf-add-ms, .pf-round-select, .pf-r-flash, .pf-comments-toggle { display: none !important; }
	.pf-main { max-width: none; padding: 0; }
	.pf-card, .pf-kpi { box-shadow: none; border: 1px solid #dcdcff; break-inside: avoid; }
	.pf-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.pf-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pf-tags li { border: 1px solid #dcdcff; }
}

/* Answer: final thank-you state */
.pf-done { text-align: center; padding: 12px 0; }
.pf-done-face { display: flex; justify-content: center; margin-bottom: 16px; color: var(--pf-plum); }
.pf-done-face svg { width: 88px; height: 88px; }

/* Round control and help */
.pf-r-head { position: relative; }
.pf-help-btn { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--pf-lav-2); background: #fff; color: var(--pf-plum); font: 700 20px Georgia, serif; font-style: italic; cursor: pointer; }
.pf-help-btn:hover { border-color: var(--pf-plum); }
.pf-r-head h1 { padding-right: 56px; }
.pf-round-ctrl { background: var(--pf-lav-3); border-radius: 16px; padding: 16px 18px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-round-status { margin: 0; line-height: 1.5; }
.pf-round-buttons:empty, .pf-round-buttons:not(:has(button:not([hidden]))) { display: none; }
.pf-help { max-width: 640px; width: calc(100% - 32px); border: 0; border-radius: 24px; padding: 28px 32px; box-shadow: 0 24px 64px rgba(30, 30, 90, .25); font: 400 16px/1.55 Urbanist, sans-serif; color: var(--pf-text); }
.pf-help::backdrop { background: rgba(28, 28, 60, .45); }
.pf-help-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.pf-help-head h2 { margin: 0; }
.pf-help-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pf-lav); font-size: 26px; line-height: 1; cursor: pointer; color: var(--pf-ink); }
.pf-help-list { padding-left: 22px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pf-help-list strong { color: var(--pf-ink); }
@media print { .pf-help-btn, .pf-help { display: none !important; } }

/* ---------- v2.1: landing page ---------- */
.pf-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; max-width: 1100px; margin: 16px auto 40px; }
.pf-hero h1 { font-size: clamp(36px, 6vw, 60px); margin: 10px 0 16px; }
.pf-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--pf-text); margin: 0 0 24px; max-width: 34em; }
.pf-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pf-mini-card { background: #fff; border-radius: var(--pf-radius); box-shadow: var(--pf-shadow); padding: 24px; transform: rotate(-1.5deg); }
.pf-mini-head { display: flex; gap: 14px; align-items: center; color: var(--pf-indigo); margin-bottom: 8px; }
.pf-mini-head strong { font-size: 34px; color: var(--pf-ink); }
.pf-mini-head span { color: var(--pf-muted); }
.pf-mini-head em { display: block; font-style: normal; color: var(--pf-muted); font-size: 15px; }
.pf-mini-chart { width: 100%; height: auto; display: block; }
.pf-mini-moods { display: flex; justify-content: space-between; color: var(--pf-periwinkle); margin-top: 8px; }

.pf-baro-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 1100px; margin: 0 auto 40px; padding: clamp(22px, 4vw, 40px); border-radius: var(--pf-radius); background: linear-gradient(120deg, #fff 0%, var(--pf-lav-3) 100%); box-shadow: var(--pf-shadow); border: 2px solid var(--pf-lav-2); }
.pf-baro-figure { display: flex; gap: 16px; align-items: center; color: var(--pf-indigo); }
.pf-baro-value { margin: 2px 0 0; font-size: 46px; font-weight: 700; color: var(--pf-ink); line-height: 1; }
.pf-baro-value small { font-size: 18px; color: var(--pf-muted); font-weight: 500; }
.pf-baro-value.pf-baro-wait { font-size: 17px; font-weight: 500; color: var(--pf-muted); max-width: 18em; line-height: 1.4; }
.pf-baro-text p { margin: 0 0 14px; }

.pf-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto 48px; }
.pf-benefit { background: #fff; border-radius: var(--pf-radius); padding: 28px; box-shadow: var(--pf-shadow); color: var(--pf-indigo); }
.pf-benefit h2 { font-size: 20px; margin: 14px 0 8px; }
.pf-benefit p { margin: 0; color: var(--pf-text); }

.pf-how { max-width: 1100px; margin: 0 auto 48px; scroll-margin-top: 24px; }
.pf-how > h2 { font-size: clamp(26px, 3.5vw, 34px); text-align: center; margin-bottom: 24px; }
.pf-steps { list-style: none; counter-reset: pf-step; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pf-steps li { counter-increment: pf-step; position: relative; padding: 64px 24px 24px; background: var(--pf-lav-3); border: 2px solid var(--pf-lav-2); border-radius: var(--pf-radius); }
.pf-steps li::before { content: counter(pf-step); position: absolute; top: 18px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--pf-plum); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pf-steps strong { display: block; font-size: 19px; color: var(--pf-ink); margin-bottom: 6px; }

.pf-open-list { max-width: 1100px; margin: 0 auto 40px; background: #fff; border-radius: var(--pf-radius); padding: clamp(22px, 4vw, 40px); box-shadow: var(--pf-shadow); }
.pf-open-list ul { list-style: none; margin: 16px 0 0; padding: 0; }
.pf-open-list li { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--pf-lav-2); }
.pf-open-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-open-main strong { color: var(--pf-ink); font-size: 18px; }
.pf-open-main span { color: var(--pf-text); overflow-wrap: anywhere; }
.pf-open-main small { color: var(--pf-muted); }
.pf-open-side { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.pf-open-side .pf-btn { min-height: 42px; padding: 0 22px; font-size: 16px; }
.pf-open-mean { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pf-ink); }
.pf-open-mean .pf-face { color: var(--pf-indigo); }
.pf-link-plain { font-weight: 600; }

.pf-code-entry { max-width: 1100px; margin: 0 auto 24px; padding: 20px clamp(20px, 4vw, 40px); border-radius: var(--pf-radius); border: 2px dashed var(--pf-lav-2); }
.pf-code-entry .pf-row { align-items: center; justify-content: center; }
.pf-code-entry label { font-weight: 600; color: var(--pf-ink); }
.pf-code-entry input { min-height: 48px; padding: 0 18px; border-radius: 50px; border: 2px solid var(--pf-lav-2); font: inherit; text-transform: uppercase; letter-spacing: 1px; width: 15em; max-width: 100%; }

@media (max-width: 860px) {
	.pf-hero { grid-template-columns: 1fr; }
	.pf-hero-visual { max-width: 420px; }
	.pf-benefits, .pf-steps { grid-template-columns: 1fr; }
	.pf-baro-tile { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.pf-open-list li { flex-direction: column; align-items: stretch; }
	.pf-open-side { justify-content: space-between; }
	.pf-hero-cta .pf-btn, .pf-baro-text .pf-btn { flex: 1 1 100%; }
	.pf-code-entry .pf-row { flex-direction: column; align-items: stretch; }
	.pf-code-entry input { width: 100%; }
}

/* ---------- v2.1: open surveys, barometer ---------- */
.pf-row-center { justify-content: center; align-items: center; }
.pf-kpi-wait { font-size: 28px; color: var(--pf-muted); }
.pf-desc { color: var(--pf-text); margin: 10px auto 0; max-width: 34em; text-align: center; overflow-wrap: anywhere; }
.pf-bg-q { border: 2px solid var(--pf-lav-2); border-radius: 18px; padding: 16px 18px 6px; margin: 0 0 18px; }
.pf-bg-q legend { font-weight: 600; color: var(--pf-ink); padding: 0 6px; }
.pf-bg-q .pf-muted { margin-top: 0; font-size: 15px; }
.pf-bg-q select { width: 100%; }
.pf-lead-cta { margin-top: 24px; padding: 20px; border-radius: 18px; background: var(--pf-lav-3); text-align: center; }
.pf-public-cta { max-width: none; }
.pf-public-cta .pf-row { align-items: center; margin-bottom: 12px; }
.pf-public-desc { font-size: 18px; color: var(--pf-ink); margin: 0 0 16px; overflow-wrap: anywhere; }
.pf-abuse-btn { font-size: inherit; }
.pf-visibility { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pf-visibility legend { font-weight: 600; color: var(--pf-ink); margin-bottom: 8px; }
.pf-visibility .pf-check { padding: 12px 14px; border: 2px solid var(--pf-lav-2); border-radius: 16px; align-items: flex-start; }
.pf-visibility .pf-check:has(input:checked) { border-color: var(--pf-periwinkle); background: var(--pf-lav-3); }
.pf-pow-note { text-align: center; }
.pf-baro .pf-head { max-width: 1100px; margin: 0 auto 24px; }
.pf-baro .pf-head .pf-row { margin-top: 16px; }
.pf-baro .pf-kpis { margin-bottom: 24px; }
.pf-r-public { overflow-wrap: anywhere; }
@media (max-width: 600px) {
	.pf-header { flex-wrap: wrap; row-gap: 0; padding-bottom: 8px; }
	.pf-nav { width: 100%; gap: 18px; font-size: 16px; white-space: nowrap; overflow-x: auto; }
}

/* ---------- WordPress pages in the plugin layout (privacy notice, terms) ---------- */
.pf-prose { max-width: 820px; line-height: 1.65; overflow-wrap: anywhere; }
.pf-prose-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 2px solid var(--pf-lav-2); }
.pf-prose-head .pf-muted { margin: 8px 0 0; }
.pf-prose h2 { font-size: 24px; margin: 36px 0 12px; }
.pf-prose h3 { font-size: 19px; color: var(--pf-ink); margin: 28px 0 8px; }
.pf-prose h4 { font-size: 17px; color: var(--pf-ink); margin: 22px 0 6px; }
.pf-prose p, .pf-prose ul, .pf-prose ol, .pf-prose table, .pf-prose blockquote { margin: 0 0 16px; }
.pf-prose ul, .pf-prose ol { padding-left: 1.4em; }
.pf-prose li { margin-bottom: 6px; }
.pf-prose li::marker { color: var(--pf-plum); }
.pf-prose strong { color: var(--pf-ink); }
.pf-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pf-prose th, .pf-prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--pf-lav-2); }
.pf-prose th { background: var(--pf-lav-3); color: var(--pf-ink); }
.pf-prose blockquote { border-left: 4px solid var(--pf-periwinkle); padding: 4px 0 4px 16px; color: var(--pf-muted); }
.pf-prose hr { border: 0; border-top: 2px solid var(--pf-lav-2); margin: 32px 0; }
.pf-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.pf-prose .wp-block-table { margin: 0 0 16px; overflow-x: auto; }

/* ---------- Why the service exists (landing page) ---------- */
.pf-why { max-width: 1100px; margin: 0 auto 40px; padding: clamp(24px, 4vw, 44px); border-radius: var(--pf-radius); background: var(--pf-plum); color: #fff; box-shadow: var(--pf-shadow); }
.pf-why-text { max-width: 760px; }
.pf .pf-why h2 { color: #fff; font-size: clamp(24px, 3vw, 30px); }
.pf-why p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: #fff; }
.pf-why-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 !important; }
.pf .pf-why a { color: #fff; font-weight: 700; text-decoration-color: var(--pf-amber); text-underline-offset: 4px; }
.pf .pf-why a:hover { color: var(--pf-amber); }
.pf .pf-why :focus-visible { outline-color: var(--pf-amber); }
.pf-why-note { margin: 0; font-size: 15px; }
