/**
 * PrestaHU
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact info@presta.hu
 *
 * @author    PrestaHU <info@presta.hu>
 * @copyright PrestaHU
 * @license   commercial
 */

/*
 * PrestaHU UI kit v2 (phu-*) — the ONLY component set for new presta.hu pages.
 * Source: ~/.claude/skills/prestahu-design-system/assets/ph-ui.css
 * Copy:   themes/prestahu-default/assets/css/ph-ui.css (loaded on every page, after custom.css)
 * Spec:   references/components.md (anatomy + measurements), references/layout-rhythm.md
 *
 * Rules baked in here:
 * - one page background (--ph-bg), at most one .phu-section--band per page, white only on cards
 * - single seam: a section owns only its TOP gap; padding-bottom is 0 except the last section
 * - role type tokens only (--ph-type-*), DM Sans, uppercase only in .phu-eyebrow / .phu-chip
 * - radii: sm 10 (controls, chips' images, insets), md 16 (cards), lg 20 (featured), pill (buttons)
 * - motion from the ph-m-* kit; transitions only with --ph-dur-* / --ph-ease-*
 * Do not add page-specific rules here: a page composes these classes; its own CSS holds layout only.
 */

/* ───────────────────────── Page shell ───────────────────────── */

/* A phu page removes the Bootstrap page chrome around it (border, white fill, margins). */
.page-wrapper:has(.phu-page),
#content-wrapper:has(.phu-page) .page-content {
    margin-block: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
/* The theme's wrapper bottom padding + footer top margin would add ~66px to the last section's end inset. */
body:not(#index) #wrapper:has(.phu-page), #wrapper:has(.phu-page) { padding-bottom: 0; }   /* beats the theme's body:not(#index) #wrapper */
body:has(.phu-page) #footer { margin-top: 0; }

.phu-page {
    color: var(--ph-ink);
    font-family: var(--ph-font-sans);
    font-size: var(--ph-type-body);
    line-height: var(--ph-type-body-lh);
}
.phu-page *,
.phu-page *::before,
.phu-page *::after { box-sizing: border-box; }

/* ───────────────────────── Sections + rhythm ───────────────────────── */

.phu-section {
    padding-top: var(--ph-section);
    padding-bottom: 0;
}
.phu-page > .phu-section:last-child { padding-bottom: var(--ph-section-end); }

/* The one band per page: it draws a visible edge, so it pads both sides inside. */
.phu-section--band {
    background: var(--ph-surface-band);
    padding-bottom: var(--ph-section);
    margin-top: var(--ph-section);
    /* full viewport width even inside the theme's boxed wrapper, without horizontal overflow */
    box-shadow: 0 0 0 100vmax var(--ph-surface-band);
    clip-path: inset(0 -100vmax);
}
.phu-section--band + .phu-section { padding-top: var(--ph-section); }

/* Hero: first section, same background, left aligned text column. */
.phu-hero { padding-top: var(--ph-section); }
.phu-hero__body { max-width: 760px; }
.phu-hero .phu-display + .phu-lead { margin-top: var(--ph-stack-xs); }
.phu-hero__action { margin-top: var(--ph-stack-md); }
.phu-hero__body > .phu-badge { margin-bottom: var(--ph-stack-sm); }
/* Hero with a real image / video: text column + media column from 992 (the media is content, never a decorative box). */
.phu-hero--media .phu-hero__grid { display: grid; gap: var(--ph-stack-md); grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 992px) {
    .phu-hero--media .phu-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--ph-stack-lg); }
}
.phu-hero--media .phu-hero__media { min-width: 0; }

/* Section head: eyebrow / title / lead, then a fixed gap to the content. */
.phu-head { margin-bottom: var(--ph-stack-md); max-width: var(--ph-measure); }
.phu-head > * + * { margin-top: var(--ph-stack-2xs); }
.phu-head > .phu-lead { margin-top: var(--ph-stack-xs); }
.phu-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--ph-stack-sm);
    flex-wrap: wrap;
}

/* ───────────────────────── Type roles ───────────────────────── */

/* Reset at element specificity (0,0,1): beats Bootstrap's `p, ol, ul { margin-bottom: 1rem }` because this file
   loads later, while any component or page class (0,1,0) still wins over it. */
:where(.phu-page) :is(h1, h2, h3, h4, p, ul, ol, dl, figure) { margin: 0; }

.phu-display {
    font-family: var(--ph-font-display);
    font-size: var(--ph-type-display);
    line-height: var(--ph-type-display-lh);
    letter-spacing: var(--ph-type-display-ls);
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink);
    text-transform: none;
    text-wrap: balance;
}
.phu-h2 {
    font-family: var(--ph-font-display);
    font-size: var(--ph-type-h2);
    line-height: var(--ph-type-h2-lh);
    letter-spacing: var(--ph-type-h2-ls);
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink);
    text-transform: none;
    text-wrap: balance;
}
.phu-h3 {
    font-family: var(--ph-font-display);
    font-size: var(--ph-type-h3);
    line-height: var(--ph-type-h3-lh);
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink);
    text-transform: none;
}
.phu-title {
    font-size: var(--ph-type-title);
    line-height: var(--ph-type-title-lh);
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink);
    text-transform: none;
}
.phu-lead {
    font-size: var(--ph-type-lead);
    line-height: var(--ph-type-lead-lh);
    color: var(--ph-ink-muted);
    max-width: var(--ph-measure);
}
.phu-body { font-size: var(--ph-type-body); line-height: var(--ph-type-body-lh); color: var(--ph-ink); }
.phu-small { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }
.phu-caption { font-size: var(--ph-type-caption); line-height: var(--ph-type-caption-lh); color: var(--ph-ink-muted); }
.phu-eyebrow {
    font-size: var(--ph-type-caption);
    line-height: var(--ph-type-caption-lh);
    font-weight: var(--ph-weight-semibold);
    letter-spacing: var(--ph-type-eyebrow-ls);
    text-transform: uppercase;
    color: var(--ph-brand-strong);
}
/* Prose: CMS / rich text. The text column stops at --ph-measure, left aligned; the container stays header width. */
.phu-prose { max-width: var(--ph-measure); font-size: var(--ph-type-body); line-height: var(--ph-type-body-lh); color: var(--ph-ink); }
.phu-prose > * + * { margin-top: var(--ph-stack-sm); }
.phu-prose > h2 { margin-top: var(--ph-stack-lg); font-family: var(--ph-font-display); font-size: var(--ph-type-h2); line-height: var(--ph-type-h2-lh); letter-spacing: var(--ph-type-h2-ls); font-weight: var(--ph-weight-bold); }
.phu-prose > h3 { margin-top: var(--ph-stack-md); font-family: var(--ph-font-display); font-size: var(--ph-type-h3); line-height: var(--ph-type-h3-lh); font-weight: var(--ph-weight-bold); }
.phu-prose > h4 { margin-top: var(--ph-stack-md); font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); }
.phu-prose > :first-child { margin-top: 0; }
.phu-prose :is(h2, h3, h4) + * { margin-top: var(--ph-stack-xs); }
.phu-prose ul, .phu-prose ol { padding-left: var(--ph-space-5); }
.phu-prose ul { list-style: disc; }
.phu-prose ol { list-style: decimal; }
.phu-prose li + li { margin-top: var(--ph-space-2); }
.phu-prose li::marker { color: var(--ph-brand-strong); }
.phu-prose a { color: var(--ph-brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.phu-prose a:hover { color: var(--ph-brand); }
.phu-prose strong, .phu-prose b { font-weight: var(--ph-weight-bold); }
.phu-prose img { max-width: 100%; height: auto; border-radius: var(--ph-radius-md); }
.phu-prose figure img { display: block; width: 100%; border: var(--ph-border-w) solid var(--ph-border); }
.phu-prose figcaption { margin-top: var(--ph-space-2); font-size: var(--ph-type-caption); line-height: var(--ph-type-caption-lh); color: var(--ph-ink-muted); }
.phu-prose blockquote { margin: 0; padding: var(--ph-card-pad); border-radius: var(--ph-radius-md); background: var(--ph-brand-soft); }
.phu-prose hr { border: 0; border-top: var(--ph-border-w) solid var(--ph-border); }
.phu-prose code { padding: 2px var(--ph-space-1); border-radius: var(--ph-radius-sm); background: var(--ph-surface-sunken); font-family: var(--ph-font-mono); font-size: .9em; }
.phu-prose pre { padding: var(--ph-space-4); overflow-x: auto; border-radius: var(--ph-radius-md); background: var(--ph-surface-sunken); font-size: var(--ph-type-small); }
.phu-prose pre code { padding: 0; background: none; }
/* tables scroll inside the text column, never the page (CMS HTML has no wrapper, so the table itself scrolls) */
.phu-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); }
.phu-prose th, .phu-prose td { padding: var(--ph-space-3); border-bottom: var(--ph-border-w) solid var(--ph-border); text-align: left; vertical-align: top; }
.phu-prose th { background: var(--ph-surface-sunken); font-weight: var(--ph-weight-bold); }
.phu-num { font-variant-numeric: tabular-nums; }

.phu-link {
    color: var(--ph-brand-strong);
    font-weight: var(--ph-weight-semibold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--ph-space-1);
}
.phu-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────── Grids ───────────────────────── */

.phu-grid { display: grid; gap: var(--ph-grid-gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
    .phu-grid--2, .phu-grid--3, .phu-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .phu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .phu-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Main column + sidebar (blog list, blog post, account). Sidebar 320px, stacks under 992px. */
.phu-split { display: grid; gap: var(--ph-stack-md); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) {
    .phu-split { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--ph-stack-lg); }
    .phu-split__aside { position: sticky; top: var(--ph-space-5); }
}
.phu-split__aside { display: grid; gap: var(--ph-grid-gap); }

.phu-stack { display: grid; gap: var(--ph-stack-sm); }
.phu-stack--xs { gap: var(--ph-stack-xs); }
.phu-stack--md { gap: var(--ph-stack-md); }

/* ───────────────────────── Card ───────────────────────── */

.phu-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ph-surface-card);
    border: var(--ph-border-w) solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    box-shadow: var(--ph-shadow-sm);
    padding: var(--ph-card-pad);
    min-width: 0;
}
.phu-card--lg { padding: var(--ph-card-pad-lg); border-radius: var(--ph-radius-lg); }
.phu-card--flush { padding: 0; overflow: hidden; }
.phu-card--link {
    color: inherit;
    text-decoration: none;
    transition: border-color var(--ph-dur-fast) var(--ph-ease-out),
                box-shadow var(--ph-dur) var(--ph-ease-out),
                transform var(--ph-dur) var(--ph-ease-out);
}
.phu-card--link:hover,
.phu-card--link:focus-visible {
    border-color: var(--ph-border-strong);
    box-shadow: var(--ph-shadow-md);
    transform: translateY(-2px);
}
.phu-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--ph-radius-sm);
    background: var(--ph-brand-soft);
    color: var(--ph-brand-strong);
    font-size: 20px;
    margin-bottom: var(--ph-stack-sm);
    flex: 0 0 auto;
}
.phu-card__icon--warning { background: var(--ph-warning-soft); color: var(--ph-warning-strong); }
.phu-card__icon--danger { background: var(--ph-danger-soft); color: var(--ph-danger); }
.phu-card__icon--info { background: var(--ph-info-soft); color: var(--ph-info); }
.phu-card__title { font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); }
.phu-card__text { margin-top: var(--ph-space-2); font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }
.phu-card__foot {
    margin-top: auto;
    padding-top: var(--ph-stack-xs);
    border-top: var(--ph-border-w) solid var(--ph-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-space-3);
    font-size: var(--ph-type-caption);
    color: var(--ph-ink-muted);
}
.phu-card__body + .phu-card__foot,
.phu-card__text + .phu-card__foot { margin-top: var(--ph-stack-sm); }
.phu-card--row { flex-direction: row; align-items: center; gap: var(--ph-stack-sm); }
.phu-card--row .phu-card__icon { margin-bottom: 0; }

/* ───────────────────────── Blog post card ───────────────────────── */

.phu-post { padding: 0; overflow: hidden; }
.phu-post__media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--ph-brand-soft);
    overflow: hidden;
}
.phu-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phu-post__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: var(--ph-card-pad);
    gap: var(--ph-stack-xs);
}
.phu-post__title { font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); }
.phu-post__title a { color: inherit; text-decoration: none; }
.phu-post__title a:hover { color: var(--ph-brand-strong); }
.phu-post__excerpt {
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.phu-post .phu-card__foot { margin: auto 0 0; }
.phu-post__title a::after { content: ''; position: absolute; inset: 0; }   /* whole card clickable */
.phu-post .phu-chip, .phu-post .phu-card__foot a { position: relative; z-index: 1; }

/* Featured post: image left, text right from 768px. */
@media (min-width: 768px) {
    .phu-post--feature { flex-direction: row; }
    .phu-post--feature .phu-post__media { flex: 0 0 46%; aspect-ratio: auto; min-height: 280px; }
    .phu-post--feature .phu-post__body { padding: var(--ph-card-pad-lg); justify-content: center; }
    .phu-post--feature .phu-post__title { font-size: var(--ph-type-h2); line-height: var(--ph-type-h2-lh); letter-spacing: var(--ph-type-h2-ls); }
    .phu-post--feature .phu-post__excerpt { font-size: var(--ph-type-body); -webkit-line-clamp: 4; }
}

/* ───────────────────────── Chip + badge ───────────────────────── */

/* Chip: category / tag label. Uppercase caption. */
.phu-chip {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: var(--ph-space-1);
    padding: var(--ph-space-1) var(--ph-space-2);
    border-radius: var(--ph-radius-pill);
    background: var(--ph-brand-soft);
    color: var(--ph-brand-strong);
    font-size: var(--ph-type-caption);
    line-height: var(--ph-type-caption-lh);
    font-weight: var(--ph-weight-semibold);
    letter-spacing: var(--ph-type-eyebrow-ls);
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.phu-chip--neutral { background: var(--ph-surface-band); color: var(--ph-ink-muted); }
.phu-chip--info { background: var(--ph-info-soft); color: var(--ph-info); }
.phu-chip--warning { background: var(--ph-warning-soft); color: var(--ph-warning-strong); }
.phu-chip--danger { background: var(--ph-danger-soft); color: var(--ph-danger); }

/* Tag: a filter or keyword, normal case, outlined (blog tag cloud). */
.phu-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--ph-space-1) var(--ph-space-3);
    border: var(--ph-border-w) solid var(--ph-border);
    border-radius: var(--ph-radius-pill);
    background: var(--ph-surface-card);
    color: var(--ph-ink-muted);
    font-size: var(--ph-type-caption);
    line-height: var(--ph-type-caption-lh);
    text-decoration: none;
    transition: border-color var(--ph-dur-fast) var(--ph-ease-out), color var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-tag:hover { border-color: var(--ph-brand); color: var(--ph-brand-strong); }
.phu-tags { display: flex; flex-wrap: wrap; gap: var(--ph-space-2); }

/* Badge: a short status pill with a dot ("Ingyenes gyorsteszt", "Aktív"). Normal case. */
.phu-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--ph-space-2);
    padding: var(--ph-space-1) var(--ph-space-3);
    border-radius: var(--ph-radius-pill);
    background: var(--ph-brand-soft);
    color: var(--ph-brand-strong);
    font-size: var(--ph-type-caption);
    line-height: var(--ph-type-caption-lh);
    font-weight: var(--ph-weight-semibold);
}
.phu-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--ph-radius-pill);
    background: currentColor;
}
.phu-badge--warning { background: var(--ph-warning-soft); color: var(--ph-warning-strong); }
.phu-badge--danger { background: var(--ph-danger-soft); color: var(--ph-danger); }
.phu-badge--neutral { background: var(--ph-surface-band); color: var(--ph-ink-muted); }

/* ───────────────────────── Buttons ───────────────────────── */

.phu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ph-space-2);
    min-height: var(--ph-control-h);
    padding: 0 var(--ph-space-5);
    border: var(--ph-border-w) solid transparent;
    border-radius: var(--ph-radius-pill);
    font-family: var(--ph-font-sans);
    font-size: var(--ph-type-body);
    font-weight: var(--ph-weight-semibold);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--ph-dur-fast) var(--ph-ease-out),
                border-color var(--ph-dur-fast) var(--ph-ease-out),
                color var(--ph-dur-fast) var(--ph-ease-out),
                transform var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-btn:active { transform: translateY(1px); }
.phu-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ph-focus-ring); }
.phu-btn[disabled], .phu-btn.is-disabled { opacity: .55; cursor: default; pointer-events: none; }
.phu-btn--primary { background: var(--ph-brand); color: var(--ph-brand-ink); }
.phu-btn--primary:hover { background: var(--ph-brand-strong); color: var(--ph-brand-ink); }
.phu-btn--secondary { background: var(--ph-surface-card); border-color: var(--ph-border-strong); color: var(--ph-ink); }
.phu-btn--secondary:hover { border-color: var(--ph-brand); color: var(--ph-brand-strong); }
.phu-btn--ghost { background: transparent; color: var(--ph-brand-strong); padding-inline: var(--ph-space-3); }
.phu-btn--ghost:hover { background: var(--ph-brand-soft); }
.phu-btn--lg { min-height: var(--ph-control-h-lg); padding-inline: var(--ph-space-6); }
.phu-btn--sm { min-height: 40px; padding-inline: var(--ph-space-4); font-size: var(--ph-type-small); }
.phu-btn--block { width: 100%; }
.phu-btn iconify-icon { font-size: 18px; }

.phu-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--ph-radius-pill);
    animation: phu-spin var(--ph-dur-spin) linear infinite;
}
.is-busy .phu-spinner { display: inline-block; }
.is-busy .phu-btn__label { opacity: .6; }
@keyframes phu-spin { to { transform: rotate(360deg); } }

/* ───────────────────────── Forms ───────────────────────── */

.phu-field { display: grid; gap: var(--ph-stack-2xs); min-width: 0; }
.phu-label { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); font-weight: var(--ph-weight-semibold); color: var(--ph-ink); }
.phu-input,
.phu-select,
.phu-textarea {
    width: 100%;
    min-height: var(--ph-control-h);
    padding: 0 var(--ph-space-4);
    border: var(--ph-border-w) solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-surface-card);
    color: var(--ph-ink);
    font-family: var(--ph-font-sans);
    font-size: var(--ph-type-body);   /* 16: no iOS zoom */
    line-height: 1.4;
    transition: border-color var(--ph-dur-fast) var(--ph-ease-out), box-shadow var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-textarea { padding-block: var(--ph-space-3); min-height: 112px; resize: vertical; }
.phu-input::placeholder, .phu-textarea::placeholder { color: var(--ph-ink-subtle); }
.phu-input:hover, .phu-select:hover, .phu-textarea:hover { border-color: var(--ph-border-strong); }
.phu-input:focus, .phu-select:focus, .phu-textarea:focus {
    outline: none;
    border-color: var(--ph-brand);
    box-shadow: 0 0 0 3px var(--ph-focus-ring);
}
.phu-field.is-invalid .phu-input,
.phu-field.is-invalid .phu-textarea,
.phu-input.is-invalid { border-color: var(--ph-danger); }
.phu-help { font-size: var(--ph-type-caption); line-height: var(--ph-type-caption-lh); color: var(--ph-ink-muted); }
.phu-error {
    display: flex;
    align-items: center;
    gap: var(--ph-space-2);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-danger);
}
.phu-error[hidden], .phu-success[hidden] { display: none; }
.phu-success {
    display: flex;
    align-items: center;
    gap: var(--ph-space-2);
    font-size: var(--ph-type-small);
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-brand-strong);
}
.phu-form-grid { display: grid; gap: var(--ph-stack-sm); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
    .phu-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .phu-form-grid > .phu-field--wide { grid-column: 1 / -1; }
}
.phu-form-actions { margin-top: var(--ph-stack-md); display: flex; flex-wrap: wrap; gap: var(--ph-space-3); align-items: center; }
.phu-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Hero input group: one big field + one button, the single task of a tool landing. */
.phu-inputgroup { display: flex; gap: var(--ph-space-3); max-width: 600px; }
.phu-inputgroup .phu-input { min-height: var(--ph-control-h-lg); font-size: var(--ph-type-lead); padding-inline: var(--ph-space-5); }
.phu-inputgroup .phu-btn { min-height: var(--ph-control-h-lg); flex: 0 0 auto; }
@media (max-width: 639px) {
    .phu-inputgroup { flex-direction: column; }
    .phu-inputgroup .phu-btn { width: 100%; }
}

/* Trust micro-line under an input or button. */
.phu-note {
    display: flex;
    align-items: center;
    gap: var(--ph-space-2);
    margin-top: var(--ph-stack-xs);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-muted);
}
.phu-note iconify-icon { font-size: 16px; color: var(--ph-ink-subtle); flex: 0 0 auto; }

/* ───────────────────────── Callout + inset ───────────────────────── */

.phu-callout {
    display: grid;
    gap: var(--ph-space-2);
    padding: var(--ph-card-pad);
    border-radius: var(--ph-radius-md);
    border: var(--ph-border-w) solid var(--ph-border);
    background: var(--ph-surface-card);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink);
}
.phu-callout__title {
    display: flex;
    align-items: center;
    gap: var(--ph-space-2);
    font-size: var(--ph-type-body);
    font-weight: var(--ph-weight-bold);
}
.phu-callout--warning { background: var(--ph-warning-soft); border-color: transparent; }
.phu-callout--warning .phu-callout__title { color: var(--ph-warning-strong); }
.phu-callout--danger { background: var(--ph-danger-soft); border-color: transparent; }
.phu-callout--danger .phu-callout__title { color: var(--ph-danger); }
.phu-callout--success { background: var(--ph-brand-soft); border-color: transparent; }
.phu-callout--success .phu-callout__title { color: var(--ph-brand-strong); }
.phu-callout--info { background: var(--ph-info-soft); border-color: transparent; }
.phu-callout--info .phu-callout__title { color: var(--ph-info); }

/* Inset: a quiet note inside a card. */
.phu-inset {
    padding: var(--ph-space-3) var(--ph-space-4);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-surface-sunken);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-muted);
}

/* ───────────────────────── Steps ───────────────────────── */

.phu-steps { list-style: none; padding: 0; counter-reset: phu-step; }
.phu-step { counter-increment: phu-step; }
.phu-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ph-radius-pill);
    background: var(--ph-brand-soft);
    color: var(--ph-brand-strong);
    font-size: var(--ph-type-small);
    font-weight: var(--ph-weight-bold);
    font-variant-numeric: tabular-nums;
    margin-bottom: var(--ph-stack-sm);
}
.phu-step__num:empty::before { content: counter(phu-step); }

/* ───────────────────────── FAQ ───────────────────────── */

.phu-faq { display: grid; gap: var(--ph-space-3); }
.phu-faq__item {
    background: var(--ph-surface-card);
    border: var(--ph-border-w) solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    transition: border-color var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-faq__item[open] { border-color: var(--ph-border-strong); }
.phu-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--ph-space-4);
    padding: var(--ph-space-4) var(--ph-card-pad);
    font-size: var(--ph-type-body);
    line-height: 1.4;
    font-weight: var(--ph-weight-semibold);
    color: var(--ph-ink);
    cursor: pointer;
    list-style: none;
}
.phu-faq__q::-webkit-details-marker { display: none; }
.phu-faq__q::after {
    content: '';
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--ph-ink-muted);
    border-bottom: 2px solid var(--ph-ink-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--ph-dur) var(--ph-ease-out);
}
.phu-faq__item[open] .phu-faq__q::after { transform: rotate(225deg) translate(-2px, -2px); }
.phu-faq__q:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ph-focus-ring); border-radius: var(--ph-radius-md); }
.phu-faq__a {
    padding: 0 var(--ph-card-pad) var(--ph-space-4);
    font-size: var(--ph-type-small);
    line-height: var(--ph-type-small-lh);
    color: var(--ph-ink-muted);
    max-width: var(--ph-measure);
}

/* ───────────────────────── Tabs + pager + numbered list ───────────────────────── */

.phu-tabs {
    display: flex;
    gap: var(--ph-space-5);
    border-bottom: var(--ph-border-w) solid var(--ph-border);
    overflow-x: auto;
    scrollbar-width: none;
}
.phu-tabs::-webkit-scrollbar { display: none; }
.phu-tab {
    position: relative;
    padding: var(--ph-space-3) 0;
    font-size: var(--ph-type-small);
    font-weight: var(--ph-weight-medium);
    color: var(--ph-ink-muted);
    text-decoration: none;
    white-space: nowrap;
}
.phu-tab:hover { color: var(--ph-ink); }
.phu-tab.is-active, .phu-tab[aria-current="page"] { color: var(--ph-brand-strong); font-weight: var(--ph-weight-semibold); }
.phu-tab.is-active::after, .phu-tab[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    border-radius: var(--ph-radius-pill);
    background: var(--ph-brand);
}

.phu-pager { display: flex; justify-content: center; align-items: center; gap: var(--ph-space-2); flex-wrap: wrap; }
.phu-pager__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--ph-space-3);
    border: var(--ph-border-w) solid var(--ph-border);
    border-radius: var(--ph-radius-sm);
    background: var(--ph-surface-card);
    color: var(--ph-ink);
    font-size: var(--ph-type-small);
    font-weight: var(--ph-weight-semibold);
    text-decoration: none;
}
.phu-pager__item:hover { border-color: var(--ph-brand); color: var(--ph-brand-strong); }
.phu-pager__item.is-active, .phu-pager__item[aria-current="page"] { background: var(--ph-brand); border-color: var(--ph-brand); color: var(--ph-brand-ink); }
.phu-pager__item.is-disabled { opacity: .45; pointer-events: none; }

/* Numbered link list (sidebar "Legutóbbi"), rows divided by 1px lines. */
.phu-numlist { list-style: none; padding: 0; counter-reset: phu-num; }
.phu-numlist > li {
    counter-increment: phu-num;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--ph-space-3);
    padding: var(--ph-space-3) 0;
    border-top: var(--ph-border-w) solid var(--ph-border);
}
.phu-numlist > li:first-child { border-top: 0; padding-top: 0; }
.phu-numlist > li::before {
    content: counter(phu-num);
    font-family: var(--ph-font-display);
    font-size: var(--ph-type-h3);
    line-height: 1.2;
    font-weight: var(--ph-weight-bold);
    color: var(--ph-ink-subtle);
}
.phu-numlist a { color: var(--ph-ink); text-decoration: none; font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); font-weight: var(--ph-weight-semibold); }
.phu-numlist a:hover { color: var(--ph-brand-strong); }

/* Sidebar box title. */
.phu-side__title { font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); margin-bottom: var(--ph-stack-sm); }

/* Meta row: date · reading time · author. */
.phu-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-2); font-size: var(--ph-type-caption); color: var(--ph-ink-muted); }
.phu-meta > * + *::before { content: '·'; margin-right: var(--ph-space-2); color: var(--ph-ink-subtle); }

/* Product row in a sidebar (image 48 + name + price). */
.phu-prod { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--ph-space-3); align-items: center; padding: var(--ph-space-3) 0; border-top: var(--ph-border-w) solid var(--ph-border); color: inherit; text-decoration: none; }
.phu-prod:first-of-type { border-top: 0; padding-top: 0; }
.phu-prod img { width: 48px; height: 48px; border-radius: var(--ph-radius-sm); object-fit: cover; background: var(--ph-surface-sunken); }
.phu-prod__name { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); font-weight: var(--ph-weight-semibold); color: var(--ph-ink); }
.phu-prod__price { font-size: var(--ph-type-small); font-weight: var(--ph-weight-bold); color: var(--ph-brand-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────────────────────── States ───────────────────────── */

.phu-empty {
    display: grid;
    justify-items: center;
    gap: var(--ph-stack-xs);
    padding: var(--ph-card-pad-lg);
    text-align: center;
}
.phu-empty iconify-icon { font-size: 32px; color: var(--ph-ink-subtle); }
.phu-empty .phu-small { max-width: 22em; }

/* ───────────────────────── Media ───────────────────────── */

.phu-figure { border-radius: var(--ph-radius-md); overflow: hidden; border: var(--ph-border-w) solid var(--ph-border); background: var(--ph-surface-card); }
.phu-figure img { display: block; width: 100%; height: auto; }

/* Video facade: thumbnail + play button; the iframe replaces it on click (no autoplay, no third-party load before). */
.phu-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; cursor: pointer; background: var(--ph-surface-sunken); }
.phu-video img, .phu-video iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.phu-video__play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px;
    border-radius: var(--ph-radius-pill); background: var(--ph-brand); color: var(--ph-brand-ink); font-size: 28px;
    box-shadow: var(--ph-shadow-md); transition: transform var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-video:hover .phu-video__play { transform: translate(-50%, -50%) scale(1.06); }
.phu-video:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ph-focus-ring); }

/* ───────────────────────── Commerce ───────────────────────── */

/* Price: the value comes formatted from PrestaShop (locale + currency); never a number typed in a language file. */
.phu-price { font-family: var(--ph-font-display); font-size: var(--ph-type-h2); line-height: var(--ph-type-h2-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.phu-price__old { margin-left: var(--ph-space-2); font-size: var(--ph-type-body); font-weight: var(--ph-weight-regular); color: var(--ph-ink-muted); text-decoration: line-through; }
.phu-price__note { margin-top: var(--ph-space-1); font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }

/* Price card (service packages). Featured = brand border + badge; still white. */
.phu-price-card { gap: var(--ph-stack-xs); }
.phu-price-card .phu-price { margin-top: var(--ph-stack-2xs); }
.phu-price-card .phu-checklist { margin-top: var(--ph-stack-xs); }
.phu-price-card .phu-btn { margin-top: auto; }
.phu-price-card .phu-checklist + .phu-btn { margin-top: var(--ph-stack-md); }
.phu-price-card--featured { border: 2px solid var(--ph-brand); box-shadow: var(--ph-shadow-md); }

/* Check list: icon rows (what is included). The icon is drawn, so the markup is a plain ul. */
.phu-checklist { list-style: none; padding: 0; display: grid; gap: var(--ph-space-3); }
.phu-checklist > li { position: relative; padding-left: var(--ph-space-6); font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink); }
.phu-checklist > li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: var(--ph-radius-pill);
    background: var(--ph-brand-soft);
}
.phu-checklist > li::after {
    content: ''; position: absolute; left: 6px; top: 6px; width: 6px; height: 9px;
    border-right: 2px solid var(--ph-brand-strong); border-bottom: 2px solid var(--ph-brand-strong); transform: rotate(45deg);
}
.phu-checklist--lg > li { font-size: var(--ph-type-body); line-height: var(--ph-type-body-lh); }
.phu-checklist--lg > li::before { top: 4px; }
.phu-checklist--lg > li::after { top: 8px; }

/* Key / value list (compatibility, licence data, order summary). */
.phu-dl { display: grid; }
.phu-dl__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--ph-space-3); padding: var(--ph-space-3) 0; border-top: var(--ph-border-w) solid var(--ph-border); }
.phu-dl__row:first-child { border-top: 0; padding-top: 0; }
.phu-dl__row:last-child { padding-bottom: 0; }
.phu-dl dt { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); font-weight: var(--ph-weight-regular); color: var(--ph-ink-muted); }
.phu-dl dd { margin: 0; font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); font-weight: var(--ph-weight-semibold); color: var(--ph-ink); overflow-wrap: anywhere; }
.phu-dl--total { margin-top: var(--ph-space-2); border-top: 2px solid var(--ph-ink); }
.phu-dl--total dt, .phu-dl--total dd { font-size: var(--ph-type-body); font-weight: var(--ph-weight-bold); color: var(--ph-ink); }

/* Stat tile: one real number + label (data from the server, never a typed marketing figure). */
.phu-stat { display: grid; gap: var(--ph-space-1); }
.phu-stat__value { font-family: var(--ph-font-display); font-size: var(--ph-type-h2); line-height: 1.1; font-weight: var(--ph-weight-bold); color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.phu-stat__label { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }

/* Licence key / copyable value: monospace box + copy button. */
.phu-key {
    display: flex; align-items: center; gap: var(--ph-space-2); min-width: 0;
    padding: var(--ph-space-1) var(--ph-space-1) var(--ph-space-1) var(--ph-space-4);
    border: var(--ph-border-w) solid var(--ph-border); border-radius: var(--ph-radius-sm); background: var(--ph-surface-sunken);
}
.phu-key__value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--ph-font-mono); font-size: var(--ph-type-small); color: var(--ph-ink); }
.phu-key .phu-btn { flex: 0 0 auto; }

/* Progress bar (support time used, onboarding). Width comes from the server value via --phu-pct. */
.phu-progress { height: 8px; border-radius: var(--ph-radius-pill); background: var(--ph-surface-band); overflow: hidden; }
.phu-progress__bar { display: block; width: var(--phu-pct, 0%); height: 100%; border-radius: inherit; background: var(--ph-brand); transition: width var(--ph-dur-slow) var(--ph-ease-out); }
.phu-progress--warning .phu-progress__bar { background: var(--ph-warning); }
.phu-progress--danger .phu-progress__bar { background: var(--ph-danger); }

/* ───────────────────────── Choice controls ───────────────────────── */

/* Checkbox / radio row: native input + label text; the whole row is the hit target (min 44px). */
.phu-choice { display: flex; align-items: flex-start; gap: var(--ph-space-3); min-height: 44px; padding: var(--ph-space-2) 0; cursor: pointer; font-size: var(--ph-type-body); line-height: var(--ph-type-body-lh); color: var(--ph-ink); }
.phu-choice input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ph-brand); cursor: pointer; }
.phu-choice__text { display: grid; gap: var(--ph-space-1); min-width: 0; }
.phu-choice__help { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }
/* Radio card: a choice that needs a title + detail (period, package); selected = brand border + soft fill. */
.phu-choice--card {
    padding: var(--ph-card-pad); border: var(--ph-border-w) solid var(--ph-border); border-radius: var(--ph-radius-md);
    background: var(--ph-surface-card); transition: border-color var(--ph-dur-fast) var(--ph-ease-out), background-color var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-choice--card:hover { border-color: var(--ph-border-strong); }
.phu-choice--card:has(input:checked) { border-color: var(--ph-brand); background: var(--ph-brand-soft); }
.phu-choice--card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ph-focus-ring); }

/* Switch: a checkbox styled as an on/off toggle (setting that applies at once). */
.phu-switch { display: inline-flex; align-items: center; gap: var(--ph-space-3); min-height: 44px; cursor: pointer; font-size: var(--ph-type-body); color: var(--ph-ink); }
.phu-switch input {
    appearance: none; -webkit-appearance: none; flex: 0 0 auto; position: relative; width: 44px; height: 24px; margin: 0;
    border-radius: var(--ph-radius-pill); background: var(--ph-border-strong); cursor: pointer;
    transition: background-color var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-switch input::after {
    content: ''; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: var(--ph-radius-pill);
    background: var(--ph-surface-card); box-shadow: var(--ph-shadow-sm); transition: transform var(--ph-dur-fast) var(--ph-ease-out);
}
.phu-switch input:checked { background: var(--ph-brand); }
.phu-switch input:checked::after { transform: translateX(20px); }
.phu-switch input:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ph-focus-ring); }
.phu-switch input:disabled { opacity: .55; cursor: default; }

/* Range slider (calculator). */
.phu-range { width: 100%; accent-color: var(--ph-brand); cursor: pointer; }

/* ───────────────────────── Table ───────────────────────── */

/* Data table inside .phu-card--flush; the wrapper scrolls, never the page. Below 640 a table with > 3 columns
   becomes cards in the page's own markup (data-label), not a squeezed table. */
.phu-table-wrap { overflow-x: auto; }
.phu-table { width: 100%; border-collapse: collapse; font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); }
.phu-table th { padding: var(--ph-space-3) var(--ph-card-pad); background: var(--ph-surface-sunken); color: var(--ph-ink-muted); font-weight: var(--ph-weight-semibold); text-align: left; white-space: nowrap; }
.phu-table td { padding: var(--ph-space-3) var(--ph-card-pad); border-top: var(--ph-border-w) solid var(--ph-border); color: var(--ph-ink); vertical-align: middle; }
.phu-table tbody tr:hover td { background: var(--ph-surface-sunken); }
.phu-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ───────────────────────── Dialog + sticky bar ───────────────────────── */

/* Native <dialog>: showModal(), ESC closes, focus returns to the opener (page JS). */
.phu-dialog {
    width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto;
    border: 0; border-radius: var(--ph-radius-lg); background: var(--ph-surface-card); color: var(--ph-ink); box-shadow: var(--ph-shadow-lg);
}
.phu-dialog--wide { width: min(1100px, calc(100vw - 32px)); }
.phu-dialog::backdrop { background: var(--ph-overlay); }
.phu-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ph-space-3); padding: var(--ph-card-pad-lg) var(--ph-card-pad-lg) 0; }
.phu-dialog__body { padding: var(--ph-stack-sm) var(--ph-card-pad-lg) var(--ph-card-pad-lg); }
.phu-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--ph-space-3); padding: var(--ph-space-4) var(--ph-card-pad-lg); border-top: var(--ph-border-w) solid var(--ph-border); }
.phu-dialog__close {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto;
    border: 0; border-radius: var(--ph-radius-pill); background: transparent; color: var(--ph-ink-muted); font-size: 20px; cursor: pointer;
}
.phu-dialog__close:hover { background: var(--ph-surface-sunken); color: var(--ph-ink); }
.phu-dialog__close:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ph-focus-ring); }

/* Sticky action bar: the page's one action stays reachable on mobile after the hero scrolls away (page JS adds
   .is-visible). Hidden from 992, where the action sits in the layout. */
.phu-sticky {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1010;
    display: flex; align-items: center; justify-content: space-between; gap: var(--ph-space-3);
    padding: var(--ph-space-3) var(--ph-space-4) calc(var(--ph-space-3) + env(safe-area-inset-bottom));
    border-top: var(--ph-border-w) solid var(--ph-border); background: var(--ph-surface-card); box-shadow: var(--ph-shadow-lg);
    transform: translateY(100%); transition: transform var(--ph-dur) var(--ph-ease-out);
}
.phu-sticky.is-visible { transform: none; }
.phu-sticky .phu-price { font-size: var(--ph-type-h3); }
@media (min-width: 992px) { .phu-sticky { display: none; } }

/* ───────────────────────── Home blocks ───────────────────────── */

/* Slider: CSS scroll-snap track; arrows / dots are optional page JS (scrollBy), swipe works without JS. */
.phu-slider { position: relative; }
.phu-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: var(--ph-grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.phu-slider__track::-webkit-scrollbar { display: none; }
.phu-slider__track > * { scroll-snap-align: start; min-width: 0; }
.phu-slider__nav { display: flex; align-items: center; justify-content: center; gap: var(--ph-space-2); margin-top: var(--ph-stack-sm); }
.phu-slider__arrow {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: var(--ph-border-w) solid var(--ph-border); border-radius: var(--ph-radius-pill); background: var(--ph-surface-card); color: var(--ph-ink); cursor: pointer;
}
.phu-slider__arrow:hover { border-color: var(--ph-brand); color: var(--ph-brand-strong); }
.phu-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--ph-radius-pill); background: var(--ph-border-strong); cursor: pointer; }
.phu-slider__dot[aria-current="true"] { width: 24px; background: var(--ph-brand); }

/* Countdown: real deadline from the server; blocks of number + unit. */
.phu-countdown { display: inline-flex; gap: var(--ph-space-2); }
.phu-countdown__unit { display: grid; justify-items: center; min-width: 56px; padding: var(--ph-space-2) var(--ph-space-3); border: var(--ph-border-w) solid var(--ph-border); border-radius: var(--ph-radius-sm); background: var(--ph-surface-card); }
.phu-countdown__num { font-family: var(--ph-font-display); font-size: var(--ph-type-h3); line-height: 1.2; font-weight: var(--ph-weight-bold); color: var(--ph-ink); font-variant-numeric: tabular-nums; }
.phu-countdown__label { font-size: var(--ph-type-caption); line-height: var(--ph-type-caption-lh); color: var(--ph-ink-muted); }

/* Quote / person: a real review or statement, with name + role + photo. */
.phu-quote { display: grid; gap: var(--ph-stack-sm); }
.phu-quote__text { font-size: var(--ph-type-lead); line-height: var(--ph-type-lead-lh); color: var(--ph-ink); }
.phu-quote__person { display: flex; align-items: center; gap: var(--ph-space-3); }
.phu-quote__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.phu-quote__name { font-size: var(--ph-type-small); font-weight: var(--ph-weight-bold); color: var(--ph-ink); }
.phu-quote__role { font-size: var(--ph-type-caption); color: var(--ph-ink-muted); }

/* Store product card (modules grid): image, name, short line, price + button in the foot. */
.phu-product { padding: 0; overflow: hidden; }
.phu-product__media { display: block; aspect-ratio: 16 / 10; background: var(--ph-surface-sunken); overflow: hidden; }
.phu-product__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phu-product__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: var(--ph-stack-xs); padding: var(--ph-card-pad); }
.phu-product__name { font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); }
.phu-product__name a { color: inherit; text-decoration: none; }
.phu-product__name a::after { content: ''; position: absolute; inset: 0; }
.phu-product__text { font-size: var(--ph-type-small); line-height: var(--ph-type-small-lh); color: var(--ph-ink-muted); }
.phu-product__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ph-space-3); margin-top: auto; padding-top: var(--ph-stack-xs); }
.phu-product__foot .phu-price { font-size: var(--ph-type-title); }
.phu-product__foot .phu-btn { position: relative; z-index: 1; }

/* Group head: favicon/icon + name + count, above a group of cards (account licences per website). */
.phu-group-head { display: flex; align-items: center; gap: var(--ph-space-3); margin-bottom: var(--ph-stack-sm); }
.phu-group-head img, .phu-group-head iconify-icon { flex: 0 0 auto; width: 18px; height: 18px; font-size: 18px; border-radius: var(--ph-radius-sm); }
.phu-group-head__name { font-size: var(--ph-type-title); line-height: var(--ph-type-title-lh); font-weight: var(--ph-weight-bold); color: var(--ph-ink); overflow-wrap: anywhere; }
* + .phu-group-head { margin-top: var(--ph-stack-lg); }

/* Step with a screenshot (help / docs pages: one column of step cards). */
.phu-steps--stack { display: grid; gap: var(--ph-grid-gap); }
.phu-step .phu-figure { margin-top: var(--ph-stack-sm); }
.phu-step .phu-caption { margin-top: var(--ph-space-2); }

/* Path line on a card ("Fiókom → Modul licencek"): where the thing is in the UI. */
.phu-card__path { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ph-space-1); margin-top: var(--ph-stack-xs); font-size: var(--ph-type-caption); line-height: var(--ph-type-caption-lh); font-weight: var(--ph-weight-semibold); color: var(--ph-brand-strong); }

/* Rating: real average + count (stars drawn with a mask; value from the review data, never typed). */
.phu-rating { display: inline-flex; align-items: center; gap: var(--ph-space-2); font-size: var(--ph-type-small); color: var(--ph-ink-muted); }
.phu-rating__stars { --phu-rate: 100%; position: relative; display: inline-block; width: 80px; height: 16px; background: var(--ph-border-strong);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.6L8 12.2 3 15l1.2-5.6L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 80px 16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16'%3E%3Cg fill='black'%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.6L8 12.2 3 15l1.2-5.6L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 80px 16px no-repeat; }
.phu-rating__stars::before { content: ''; position: absolute; inset: 0; width: var(--phu-rate); background: var(--ph-warning); }
.phu-rating__value { font-weight: var(--ph-weight-bold); color: var(--ph-ink); font-variant-numeric: tabular-nums; }

/* ───────────────────────── Utilities ───────────────────────── */

.phu-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.phu-center { text-align: center; }
.phu-mt-sm { margin-top: var(--ph-stack-sm); }
.phu-mt-md { margin-top: var(--ph-stack-md); }

@media (prefers-reduced-motion: reduce) {
    .phu-card--link, .phu-btn, .phu-faq__q::after, .phu-sticky, .phu-switch input, .phu-switch input::after, .phu-progress__bar, .phu-video__play { transition: none; }
    .phu-card--link:hover { transform: none; }
    .phu-spinner { animation-duration: var(--ph-dur-spin-reduced); }
}
