/* Strona główna (templates/site/pages/home.html.twig). Prefiks hh-. Tokeny z site.css, identyfikacja: claude/identyfikacja.md. */

/* ── Metka: etykieta w kształcie metki (szpic z lewej, kropka-dziurka) ── */
.metka { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 22px; border-radius: 0 8px 8px 0;
    clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); background: var(--brand-soft); color: var(--brand-700);
    font: 600 13px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.metka::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--paper); flex: none; }
.metka--glass { background: rgba(255,255,255,.16); color: #fff; }
.metka--glass::before { background: var(--ink); }
.metka--white { background: #fff; color: var(--ink); font: 900 15px/1 var(--font); letter-spacing: -.02em; text-transform: none; padding: 5px 10px 5px 17px; gap: 0; }
.metka--white::before { display: none; }
.metka--chip { background: var(--paper); color: var(--ink); font: 700 16px/1 var(--font); letter-spacing: 0; text-transform: none; min-height: 44px; padding-block: 0; box-sizing: border-box; }
.metka--chip::before { background: var(--brand); }
.metka--chip b { font: 600 12px var(--mono); color: var(--brand); }
.metka--num { background: var(--brand); color: #fff; font: 900 22px/1 var(--font); letter-spacing: -.02em; text-transform: none; padding: 8px 16px 8px 24px; transform: rotate(-14deg); align-self: flex-start; }
.metka--tilt { background: var(--brand); color: #fff; font: 700 15px/1.2 var(--font); letter-spacing: 0; text-transform: none; transform: rotate(-14deg); }
.metka--tilt::before { background: var(--paper); }
.metka--ink { background: var(--ink); color: #fff; }
.metka--sun { background: var(--sun); color: var(--ink); font-weight: 800; }
.metka--lg { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; padding: 10px 18px 10px 26px; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%); border-radius: 0 10px 10px 0; }

.hh-kicker { font: 600 13px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.hh-text { font-size: clamp(17px, 1.4vw, 19px); font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.hh-head { display: flex; flex-direction: column; gap: 20px; max-width: 860px; margin-bottom: 48px; }
.hh-head h2 { font-size: clamp(38px, 4.8vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.hh-head--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px 64px; align-items: end; max-width: none; }
.hh-head--split > div { display: flex; flex-direction: column; gap: 20px; }
.hh-head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; max-width: none; }
.hh-head--row > div:first-child { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.hh-h3 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hh-mono { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ── Hero z wideo ── */
/* Wysokość ekranu (svh: bez paska adresu na telefonie), najwyżej 1080 px; przy niskim oknie rośnie z treścią */
.hh-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff;
    display: flex; flex-direction: column; justify-content: center; min-height: min(100vh, 1080px); min-height: min(100svh, 1080px); }
.hh-hero-poster, .hh-hero-poster img, .hh-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Wideo startuje po wczytaniu strony (site.js) i dopiero wtedy wjeżdża na plakat. */
.hh-hero-video { opacity: 0; transition: opacity .6s ease; }
.hh-hero-video.is-playing { opacity: 1; }
.hh-hero-scrim { position: absolute; inset: 0; background: rgba(15,18,22,.58); }
.hh-hero-body { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; gap: 22px;
    padding-top: calc(var(--header-h) + clamp(24px, 5vh, 64px)); padding-bottom: clamp(64px, 10vh, 120px); }
.hh-hero h1 { max-width: 980px; color: #fff; font-size: clamp(36px, 5.74vw, 81px); font-weight: 800; letter-spacing: -.05em; line-height: .94; }
.hh-lead { max-width: 600px; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.5; color: #E6E8EB; }
.metka--glass { align-self: flex-start; }
.hh-form { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.hh-consent { font-size: 14px; color: #C9CCD1; }
.hh-form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hh-form input { flex: 1 1 260px; height: 60px; padding: 0 20px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 12px;
    font: 500 18px var(--font); background: rgba(15,18,22,.45); color: #fff; }
.hh-form input::placeholder { color: #B8BEC6; }
.hh-form button { flex: 1 1 200px; height: 60px; padding: 0 28px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); font: 700 18px var(--font); cursor: pointer; }
.hh-form button:hover { background: var(--brand-soft); }
.hh-proof { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 16px; font-weight: 600; }
.hh-proof > span { display: inline-flex; align-items: center; gap: 10px; }
.hh-proof a { font-weight: 500; color: #fff; text-underline-offset: 5px; }

main section[id] { scroll-margin-top: 72px; }

/* ── 01 · Co to jest ── */
.hh-what { background: var(--paper-2); padding-block: clamp(72px, 9vw, 112px); }
.hh-what .hh-text { max-width: 680px; }
.hh-what-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: start; }
.hh-tabs { display: flex; flex-direction: column; gap: 10px; }
.hh-tabs-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.hh-tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px 14px 26px; border: 0; cursor: pointer;
    border-radius: 0 12px 12px 0; clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
    background: #fff; color: var(--ink); font: 700 18px/1.25 var(--font); letter-spacing: -.01em; text-align: left; }
.hh-tab b { font: 600 13px var(--mono); opacity: .7; }
.hh-tab span { flex: 1 1 auto; }
.hh-tab:hover { background: var(--brand-soft); }
.hh-tab[aria-selected="true"] { background: var(--brand); color: #fff; }
.hh-panel { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.hh-panel-main { padding: 28px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.hh-panel-brand { display: flex; align-items: center; gap: 10px; font: 600 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.hh-panel h3 { font-size: 32px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.hh-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hh-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; font-weight: 500; line-height: 1.45; }
.hh-checks .ico { color: var(--brand); margin-top: 1px; }
.hh-facts { list-style: none; margin: 48px 0 0; padding: 32px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.hh-facts li { display: flex; flex-direction: column; gap: 6px; }
.hh-facts strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.hh-facts span { font-size: 15px; color: var(--muted); }

/* ── 02 · Dlaczego my ── */
.hh-why { background: var(--ink); color: #fff; padding-block: clamp(72px, 9vw, 112px); }
.hh-why .hh-kicker { color: #fff; }
.hh-why .hh-text { color: #C9CCD1; }
.hh-why .metka--ink { background: #fff; color: var(--ink); }
.hh-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 48px 72px; align-items: center; }
.hh-why-big { display: flex; flex-direction: column; gap: 6px; }
.hh-years { display: flex; align-items: flex-end; gap: 18px; }
.hh-years > span:first-child { font-size: clamp(140px, 17vw, 240px); font-weight: 900; letter-spacing: -.07em; line-height: .82; color: #fff; }
.hh-years .metka { margin-bottom: 14px; }
.hh-why-sub { margin-top: 14px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.hh-why-copy { display: flex; flex-direction: column; gap: 28px; }
.hh-why-copy .hh-text { font-size: 20px; }
.hh-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.hh-pillars li { background: #1C2027; border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 1px #2A2E35; }
.hh-pillars strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.hh-pillars span { font-size: 15px; line-height: 1.45; color: #9AA0A8; }

/* ── Cennik ── */
.hh-pricing { background: #fff; border-top: 1px solid var(--line); padding-block: clamp(72px, 9vw, 112px); }
.hh-billing { display: inline-flex; gap: 4px; padding: 5px; background: var(--paper-2); border-radius: 999px; }
.hh-billing button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
    color: var(--ink); font: 700 15px var(--font); cursor: pointer; white-space: nowrap; }
.hh-billing button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 560px) { .hh-billing { width: 100%; } .hh-billing button { flex: 1 1 0; justify-content: center; padding: 0 10px; } }
.hh-billing em { font-style: normal; font-size: 13px; font-weight: 800; color: var(--ink); background: var(--sun); padding: 2px 8px; border-radius: 999px; }
/* Plany w jednym rzędzie (karta min. 294 px); co się nie mieści, przewija się w poziomie (scroll-snap + strzałki). */
.hh-pricing .container { max-width: 1480px; }
.hh-plans { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(294px, 1fr); gap: 12px; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
    padding: 22px 2px 44px; margin: -22px -2px -32px; scrollbar-width: none; }
.hh-plans::-webkit-scrollbar { display: none; } /* bez paska: przewija się gładzikiem, palcem i strzałkami */
.hh-plans:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 18px; }
.hh-plans .hh-plan { padding: 24px 18px; gap: 12px; border-radius: 16px; }
.hh-plans .hh-plan h3 { font-size: 20px; }
.hh-plans .hh-plan-desc { font-size: 14px; min-height: 60px; }
.hh-plans .hh-price strong { font-size: 32px; }
.hh-plans .hh-price .hh-price-custom { font-size: 22px; }
.hh-plans .hh-price span { font-size: 13px; }
.hh-plans .hh-price-note { font-size: 11px; min-height: 28px; }
.hh-plans .pill-btn { height: 46px; font-size: 14px; padding: 0 12px; }
.hh-plans .hh-plan-feats { gap: 8px; padding-top: 12px; }
.hh-plans .hh-plan-feats li { font-size: 13px; gap: 7px; }
.hh-plans .hh-plan-badge { left: 14px; font-size: 12px; }
.hh-plans > .hh-plan { scroll-snap-align: start; }
@media (max-width: 640px) { .hh-plans { grid-auto-columns: 86%; } }
.hh-pricing-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hh-rail-nav { display: inline-flex; gap: 8px; }
.hh-rail-nav[hidden] { display: none; }
.hh-rail-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.hh-rail-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.hh-rail-btn:disabled { opacity: .3; cursor: default; }
.hh-rail-btn--prev .ico, .hh-rail-btn--prev svg { transform: rotate(180deg); }
@media (max-width: 560px) { .hh-pricing-tools { width: 100%; } .hh-rail-nav { display: none; } }
/* Kropki pod rzędem planów: jedna na kartę, aktywna = pierwsza widoczna karta; klik przewija do karty. */
.hh-rail-dots { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.hh-rail-dots[hidden] { display: none; }
.hh-rail-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hh-rail-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: rgba(15,18,22,.2); transition: background .2s, transform .2s; }
.hh-rail-dots button[aria-current="true"]::before { background: var(--ink); transform: scale(1.25); }
.hh-rail-dots button:hover::before { background: rgba(15,18,22,.45); }
@media (prefers-reduced-motion: reduce) { .hh-rail-dots button::before { transition: none; } }
.hh-plan { position: relative; border-radius: 18px; padding: 30px 26px; display: flex; flex-direction: column; gap: 14px; background: var(--paper-2); color: var(--ink); }
.hh-plan h3 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: inherit; }
.hh-plan-desc { font-size: 15px; line-height: 1.45; opacity: .8; min-height: 44px; }
.hh-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.hh-price strong { font-size: 44px; font-weight: 900; letter-spacing: -.045em; line-height: 1; }
.hh-price .hh-price-custom { font-size: 28px; letter-spacing: -.03em; overflow-wrap: anywhere; }
.hh-price span { font-size: 15px; font-weight: 600; opacity: .75; }
.hh-price-note { font: 12px var(--mono); opacity: .7; min-height: 16px; }
.hh-plan .pill-btn { flex: none; }
.pill-btn--ink { background: var(--ink); color: #fff; }
.pill-btn--ink:hover { background: #262B34; }
.hh-plan-feats { list-style: none; margin: 0; padding: 16px 0 0; border-top: 2px dashed rgba(15,18,22,.14); display: grid; gap: 10px; }
.hh-plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; line-height: 1.4; }
.hh-plan-feats .ico { margin-top: 1px; }
.hh-plan--featured { background: var(--ink); color: #fff; box-shadow: 0 24px 48px rgba(15,18,22,.18); }
.hh-plan--featured .hh-plan-feats { border-top-color: rgba(255,255,255,.18); }
.hh-plan-badge { position: absolute; top: -14px; left: 22px; transform: rotate(-6deg); font-size: 13px; padding: 6px 14px 6px 20px; }
.hh-note { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hh-note a { color: var(--brand); font-weight: 600; }
.hh-pricing[data-period="yearly"] .price-monthly, .hh-pricing[data-period="monthly"] .price-yearly { display: none; }

/* ── Zamknięcie ── */
.hh-close { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding-block: clamp(72px, 9vw, 104px); }
.hh-close .supertag { position: absolute; right: -260px; bottom: -300px; width: 720px; height: 720px; }
.hh-close .container { position: relative; display: flex; flex-direction: column; gap: 24px; }
.hh-close h2 { max-width: 820px; color: #fff; font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -.05em; line-height: .98; }
.hh-close .hh-text { max-width: 560px; color: var(--brand-soft); }
.hh-close .hh-form input { background: rgba(15,18,22,.2); border-color: rgba(255,255,255,.6); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
