/* Pricing page (landing/price-list-for-clients) on top of home_v2.css: billing switch, package cards,
   comparison table, promise tiles and footnotes. */

/* Billing switch in the hero: two segments, the yearly one with its saving badge. */
.hv2-billing { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 14px; background: #ffffff; border: 1px solid var(--hv2-line); }
.hv2-billing__btn {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 18px; border: 0; border-radius: 10px;
    background: transparent; color: var(--hv2-muted); font: inherit; font-weight: 800; font-size: 16px; cursor: pointer;
}
.hv2-billing__btn:hover { color: var(--hv2-navy); }
.hv2-billing__btn.is-active { background: var(--hv2-navy); color: #ffffff; }
.hv2-billing__btn:focus-visible { outline: 2px solid var(--hv2-green); outline-offset: 2px; }
.hv2-billing__save { padding: 2px 8px; border-radius: 999px; background: #E6F1EA; color: var(--hv2-green); font-size: 13px; font-weight: 800; }
.hv2-billing__btn.is-active .hv2-billing__save { background: var(--hv2-green-light); color: #0b1c2b; }

/* Monthly / yearly: both prices are in the HTML, the page attribute decides which one shows. */
.hv2[data-billing="month"] [data-period="year"],
.hv2[data-billing="year"] [data-period="month"] { display: none; }

/* Package cards: 4 in a row from 1100 px, 2 from 640 px, 1 below. */
.hv2-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 640px) { .hv2-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
    /* Prices in one line across the cards: the "who is it for" text takes up to four lines. */
    .hv2-plans .hv2-plan__for { min-height: 6em; }
    .hv2-plans--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hv2-plans--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hv2-plan {
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    padding: 28px 24px; border-radius: 18px;
    background: #ffffff; border: 1px solid var(--hv2-line);
    min-width: 0;
}
.hv2-plan--featured { border: 2px solid var(--hv2-green); box-shadow: 0 18px 40px rgba(19, 101, 47, 0.14); }
.hv2-plan__badge {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    padding: 5px 14px; border-radius: 999px; background: var(--hv2-green); color: #ffffff;
    font-size: 13px; font-weight: 800; white-space: nowrap;
}
.hv2-plan__name { margin: 0; font-size: 22px; font-weight: 800; color: var(--hv2-navy); line-height: 1.2; }
.hv2-plan__for { margin: 0; color: var(--hv2-muted); font-size: 15px; line-height: 1.5; }
@media (min-width: 640px) { .hv2-plan__for { min-height: 4.5em; } }
.hv2-plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 14px; border-top: 1px solid var(--hv2-line); }
.hv2-plan__amount { font-family: 'Anton', Impact, sans-serif; font-size: 44px; line-height: 1; color: var(--hv2-navy); text-transform: uppercase; }
.hv2-plan--featured .hv2-plan__amount { color: var(--hv2-green); }
.hv2-plan__period { font-size: 15px; font-weight: 600; color: var(--hv2-muted); }
.hv2-plan__yearly { min-height: 2.9em; font-size: 14px; line-height: 1.45; color: var(--hv2-green); font-weight: 700; }
.hv2-plan .hv2-btn { width: 100%; }
.hv2-plan__list-title { margin-top: 6px; font-size: 14px; font-weight: 800; color: var(--hv2-navy); }
.hv2 a.hv2-plan__more { margin-top: auto; padding-top: 6px; font-weight: 800; font-size: 15px; min-height: 32px; display: inline-flex; align-items: center; text-decoration: none; }
.hv2-plans__note { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--hv2-muted); }
.hv2-plans__trial { margin-top: 32px; }

html[lang="uk"] .hv2-plan__amount { font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; letter-spacing: -0.01em; }

/* Comparison table: plan names stick to the top while scrolling the page; on narrow screens the
   table scrolls sideways with the feature column pinned on the left. */
/* position: relative keeps the visually-hidden cell labels (position: absolute) inside the scroll box —
   without it they escaped past the screen edge and the whole page scrolled sideways below ~700 px. */
.hv2-compare {
    position: relative;
    margin-top: 32px; border-radius: 16px; background: #ffffff; border: 1px solid var(--hv2-line);
    overflow-x: auto; overscroll-behavior-x: contain;
}
.hv2-compare:focus-visible { outline: 2px solid var(--hv2-green); outline-offset: 2px; }
.hv2-compare__table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.hv2-compare__table th, .hv2-compare__table td { padding: 12px 14px; border-bottom: 1px solid var(--hv2-line); text-align: center; vertical-align: middle; }
.hv2-compare__table thead th { position: sticky; top: 0; z-index: 2; background: #ffffff; border-bottom: 2px solid var(--hv2-line); }
.hv2-compare__table .hv2-compare__feature { text-align: left; font-weight: 600; color: var(--hv2-navy); position: sticky; left: 0; z-index: 1; background: #ffffff; min-width: 220px; }
.hv2-compare__table thead .hv2-compare__feature { z-index: 3; font-size: 14px; color: var(--hv2-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 800; }
.hv2-compare__table .hv2-compare__feature a { color: var(--hv2-navy); text-decoration: underline dotted; text-underline-offset: 3px; }
.hv2-compare__table .hv2-compare__feature a:hover { color: var(--hv2-green); text-decoration-style: solid; }
.hv2-compare__plan { display: block; font-weight: 800; font-size: 16px; color: var(--hv2-navy); }
.hv2-compare__price { display: block; margin-top: 2px; font-size: 14px; color: var(--hv2-muted); font-weight: 600; }
.hv2-compare__table .is-featured { background: #f2faf5; }
.hv2-compare__table thead th.is-featured { background: #E6F1EA; }
.hv2-compare__group th {
    text-align: left; background: var(--hv2-grey); color: var(--hv2-navy);
    font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    position: sticky; left: 0;
}
.hv2-compare__yes { display: inline-flex; }
.hv2-compare__no { color: #a9b6c3; font-weight: 700; }
.hv2-compare__limit { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #E6F1EA; color: var(--hv2-green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.hv2-compare__table tbody tr:last-child td, .hv2-compare__table tbody tr:last-child th { border-bottom-color: var(--hv2-line); }
@media (max-width: 767.98px) {
    .hv2-compare__table { font-size: 14px; }
    .hv2-compare__table th, .hv2-compare__table td { padding: 10px 10px; }
    .hv2-compare__table .hv2-compare__feature { min-width: 160px; max-width: 180px; }
}

/* Risk-free start: four tiles on the navy section. */
.hv2-promise-tiles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .hv2-promise-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hv2-promise-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hv2-promise-tiles li { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); color: var(--hv2-on-navy); font-size: 16px; line-height: 1.5; }
.hv2-promise-tiles strong { color: #ffffff; font-size: 18px; }

/* Footnotes under the FAQ: plain small print, no box. */
.hv2-footnotes { margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--hv2-line); display: flex; flex-direction: column; gap: 10px; }
.hv2-footnotes p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--hv2-muted); }

/* What the package brings, grouped: one block per feature group — icon and short title in a row, the
   short feature names below at full card width (PricingPage::cardGroups). */
.hv2-plan__groups { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.hv2-plan__groups li { display: flex; flex-direction: column; gap: 6px; }
.hv2-plan__group-head { display: flex; align-items: center; gap: 10px; }
.hv2-plan__group-head strong { color: var(--hv2-navy); font-weight: 800; font-size: 15px; }
.hv2-plan__group-items { font-size: 14.5px; line-height: 1.5; color: var(--hv2-muted); }
.hv2-plan__group-icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; background: #E6F1EA; color: var(--hv2-green); font-size: 16px;
}
.hv2-plan--featured .hv2-plan__group-icon { background: var(--hv2-green); color: #ffffff; }

/* Feature description in the comparison table: the name opens a short text with "learn more". */
.hv2-compare__details summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; }
.hv2-compare__details summary span { text-decoration: underline dotted; text-underline-offset: 3px; }
.hv2-compare__details summary::-webkit-details-marker { display: none; }
.hv2-compare__details summary i { font-size: 18px; color: var(--hv2-muted); transition: transform .2s; text-decoration: none; }
.hv2-compare__details[open] summary i { transform: rotate(180deg); }
.hv2-compare__details summary:hover { color: var(--hv2-green); }
.hv2-compare__details p { margin: 8px 0 2px; max-width: 320px; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--hv2-muted); white-space: normal; }
.hv2-compare__details p a { font-weight: 700; color: var(--hv2-green); }

/* "Porównaj pakiety" buttons (open #planCompareModal). */
.hv2 .hv2-compare-open { gap: 8px; flex: none; }
.hv2-plans__compare {
    display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; padding: 0; border: 0; background: none;
    color: var(--hv2-green); font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.hv2-plans__compare:hover { color: var(--hv2-green-dark); }

/* Hover on a package card (mouse only): the card lifts a little, gets a green outline and shadow,
   and its group icons turn solid green — like the "most popular" card. */
.hv2-plan { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.hv2-plan__group-icon { transition: background-color .22s ease, color .22s ease; }
@media (hover: hover) and (pointer: fine) {
    .hv2-plan:hover { transform: translateY(-6px); border-color: var(--hv2-green); box-shadow: 0 22px 48px rgba(19, 101, 47, 0.16); }
    .hv2-plan:hover .hv2-plan__group-icon { background: var(--hv2-green); color: #ffffff; }
    .hv2-plan:not(.hv2-plan--featured):hover .hv2-btn--outline-navy { background: var(--hv2-navy); color: #ffffff; }
}
@media (prefers-reduced-motion: reduce) {
    .hv2-plan, .hv2-plan__group-icon { transition: none; }
    .hv2-plan:hover { transform: none; }
}

/* Card groups are links: the title to its group on "all features", each feature to its own page. */
.hv2 a.hv2-plan__group-head { text-decoration: none; color: inherit; align-self: flex-start; }
.hv2 a.hv2-plan__group-head:hover strong { color: var(--hv2-green); text-decoration: underline; text-underline-offset: 3px; }
.hv2 .hv2-plan__group-items a { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; text-decoration-color: #b8c6d3; }
.hv2 .hv2-plan__group-items a:hover { color: var(--hv2-green); text-decoration-color: currentColor; }
