/* ============================================================================
   HUBAL — skóra dokumentów publicznych (prawne, formularze DSA/odstąpienie)
   Wygląd wg pakietu design_handoff_hubal_www (jasny motyw aplikacji).
   Treść dokumentów pochodzi z produkcji i NIE jest tu zmieniana — ten plik
   odpowiada wyłącznie za wygląd.
   Wygenerowane przez scripts/relayout-legal.mjs — patrz nagłówek skryptu.
   ========================================================================== */

/* Krój interfejsu = Inter, ten sam co w aplikacji (src/shell/hubal-theme.css).
   Pliki lokalne — bez zależności od Google Fonts dla treści.
   Lato zostaje wyłącznie w logotypie (nie ma odmian 500/600, więc jako krój
   interfejsu wychodziło za cienko). */
/* Inter zmienny (100–900) w dwóch podzbiorach. latin-ext MUSI być, bo polskie
   znaki ą ć ę ł ń ś ź ż leżą w U+0100–017F — bez niego przeglądarka bierze je
   z czcionki systemowej i w środku wyrazu widać inny krój. */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --hb-bg: #f1f3f4;
    --hb-surface: #ffffff;
    --hb-surface-2: #f8f9fa;
    --hb-border: #dadce0;
    --hb-border-soft: #e5e7eb;
    --hb-text: #202124;
    --hb-body: #3c4043;
    --hb-muted: #5f6368;
    --hb-dim: #9aa0a6;
    --hb-primary: #1a73e8;
    --hb-primary-hover: #1557b0;
    --hb-primary-soft: rgba(26, 115, 232, .1);
    --hb-success: #34a853;
    --hb-success-text: #188038;
    --hb-warning: #fbbc04;
    --hb-error: #ea4335;
    --hb-error-text: #c5221f;
    --hb-accent: #8b5cf6;
    --hb-nav-bg: rgba(255, 255, 255, .92);
    --hb-shadow-card: 0 1px 2px rgba(0, 0, 0, .04);
    --hb-shadow-btn: 0 2px 6px rgba(0, 0, 0, .12);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --hb-bg: #16181c;
        --hb-surface: #202124;
        --hb-surface-2: #26282c;
        --hb-border: #3c4043;
        --hb-border-soft: #33363a;
        --hb-text: #e8eaed;
        --hb-body: #d2d5d9;
        --hb-muted: #9aa0a6;
        --hb-dim: #80868b;
        --hb-primary: #8ab4f8;
        --hb-primary-hover: #aecbfa;
        --hb-primary-soft: rgba(138, 180, 248, .12);
        --hb-success: #81c995;
        --hb-success-text: #81c995;
        --hb-error: #f28b82;
        --hb-error-text: #f28b82;
        --hb-nav-bg: rgba(32, 33, 36, .92);
        --hb-shadow-card: 0 1px 2px rgba(0, 0, 0, .3);
        --hb-shadow-btn: 0 2px 6px rgba(0, 0, 0, .5);
    }
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hb-logo__word { display: none; }
    :root:not([data-theme="light"]) .hb-logo__word--dark { display: block; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--hb-bg);
    color: var(--hb-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    /* jawnie 400 — Inter jest zmienny (100–900), więc każda odziedziczona
       deklaracja 300 rysowałaby prawdziwe Light i tekst byłby za delikatny */
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--hb-primary); text-decoration: none; transition: color 150ms ease; }
strong, b { font-weight: 600; }
a:hover { color: var(--hb-primary-hover); text-decoration: underline; }

/* Tailwindowe resztki z dawnych szablonów — neutralizacja do koloru linku */
.text-indigo-400 { color: var(--hb-primary); }

/* ---------------------------------------------------------------- nawigacja */
.hb-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--hb-nav-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--hb-border);
}

.hb-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 32px;
    min-height: 72px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
}

.hb-logo { display: flex; flex: none; align-items: center; gap: 12px; }
.hb-logo:hover { text-decoration: none; }
.hb-logo img { height: 48px; width: auto; display: block; }
/* Logotyp: znak H + ORYGINALNY plik logotypu (SVG), a nie tekst udający logo.
   Wersja na ciemne tło pokazuje się tylko przy ciemnym motywie systemu. */
.hb-logo__word { height: 34px; width: auto; display: block; }
.hb-logo__word--dark { display: none; }

.hb-nav__links { display: flex; flex: none; align-items: center; gap: 8px; }
.hb-nav__link {
    color: var(--hb-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 150ms ease, color 150ms ease;
}
.hb-nav__link:hover { background: var(--hb-bg); color: var(--hb-text); text-decoration: none; }

.hb-btn-primary {
    display: inline-block;
    background: var(--hb-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font: 500 14px 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease, box-shadow 150ms ease;
}
.hb-btn-primary:hover { background: var(--hb-primary-hover); color: #fff; text-decoration: none; box-shadow: var(--hb-shadow-btn); }

/* ------------------------------------------------------------ nagłówek dok. */
.hb-doc-header {
    background: var(--hb-surface);
    border-bottom: 1px solid var(--hb-border);
    padding: 48px 0 40px;
}
.hb-doc-header__inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hb-crumbs { font-size: 12px; color: var(--hb-dim); margin-bottom: 14px; }
.hb-crumbs a { color: var(--hb-dim); }
.hb-crumbs a:hover { color: var(--hb-muted); }
.hb-doc-header h1 {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -.02em;
    margin: 0 0 14px;
    color: var(--hb-text);
}
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--hb-muted); }
.hb-chip { padding: 4px 12px; border: 1px solid var(--hb-border); border-radius: 16px; }
.hb-chip a { color: var(--hb-muted); }

/* ------------------------------------------------------------------- układ */
.hb-main { max-width: 1200px; margin: 0 auto; padding: 40px 32px 72px; }
.hb-main--narrow { max-width: 900px; }
.hb-main--wide { max-width: 1100px; }
.hb-main--toc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }

.hb-toc { position: sticky; top: 96px; font-size: 13px; }
.hb-toc__label {
    font: 600 10px 'Inter', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hb-dim);
    margin-bottom: 10px;
}
.hb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.hb-toc a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--hb-muted);
    line-height: 1.35;
    transition: background 150ms ease, color 150ms ease;
}
.hb-toc a:hover { background: var(--hb-surface); color: var(--hb-text); text-decoration: none; }
.hb-toc a.is-active { background: var(--hb-primary-soft); color: var(--hb-primary); font-weight: 600; }

/* --------------------------------------------------------- karta z treścią */
.legal-content {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 36px 40px;
    box-shadow: var(--hb-shadow-card);
    font-size: 15px;
    line-height: 1.7;
    color: var(--hb-body);
    overflow-wrap: break-word;
}

.legal-content > :first-child { margin-top: 0; }
.legal-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--hb-text);
    margin: 36px 0 14px;
    scroll-margin-top: 96px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 17px; font-weight: 600; color: var(--hb-text); margin: 24px 0 10px; }
.legal-content h4 { font-size: 15px; font-weight: 600; color: var(--hb-text); margin: 20px 0 8px; }
.legal-content p { margin: 0 0 12px; }
.legal-content ul,
.legal-content ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { margin: 0; }
.legal-content li > ul,
.legal-content li > ol { margin-top: 8px; }
.legal-content strong { color: var(--hb-text); font-weight: 600; }
.legal-content em { color: var(--hb-muted); }
.legal-content hr { border: 0; border-top: 1px solid var(--hb-border); margin: 32px 0; }
.legal-content code {
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border-soft);
    color: var(--hb-text);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* tabele — wygląd siatki z projektu, ale nadal semantyczne <table> */
.legal-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
    margin: 0 0 24px;
}
.legal-content thead th {
    background: var(--hb-surface-2);
    border-bottom: 1px solid var(--hb-border);
    font: 600 10px 'Inter', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hb-dim);
    text-align: left;
    padding: 10px 16px;
    vertical-align: bottom;
    white-space: nowrap;
}
.legal-content tbody td {
    border-bottom: 1px solid var(--hb-border-soft);
    padding: 10px 16px;
    vertical-align: top;
    color: var(--hb-muted);
}
.legal-content tbody td:first-child { color: var(--hb-text); }
.legal-content tbody tr:last-child td { border-bottom: 0; }

.hb-table-scroll { overflow-x: auto; margin: 0 0 24px; }
.hb-table-scroll table { margin: 0; min-width: 560px; }

/* boksy informacyjne — kolorowy pasek 3 px zawsze niesie znaczenie */
.info-box,
.warning-box {
    border: 1px solid var(--hb-border);
    border-left: 3px solid var(--hb-primary);
    border-radius: 0 8px 8px 0;
    padding: 14px 18px;
    margin: 0 0 24px;
    font-size: 14px;
    background: var(--hb-surface-2);
}
.warning-box { border-left-color: var(--hb-warning); }
.info-box > :last-child,
.warning-box > :last-child { margin-bottom: 0; }
.info-box strong,
.warning-box strong { color: var(--hb-text); }

/* -------------------------------------------------- formularze (DSA, odstąpienie) */
.form-box {
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    background: var(--hb-surface-2);
    padding: 24px;
    margin: 0 0 24px;
}
.form-box > :first-child { margin-top: 0; }

.legal-content label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hb-text);
    margin: 16px 0 6px;
}
.legal-content label.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    color: var(--hb-body);
}
.legal-content input[type="checkbox"],
.legal-content input[type="radio"] {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--hb-primary);
    flex: none;
}
.legal-content input[type="text"],
.legal-content input[type="email"],
.legal-content input[type="date"],
.legal-content input[type="url"],
.legal-content input[type="tel"],
.legal-content select,
.legal-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--hb-border);
    border-radius: 8px;
    background: var(--hb-surface);
    color: var(--hb-text);
    font: 400 14px 'Inter', -apple-system, sans-serif;
    transition: border-color 150ms ease;
}
.legal-content textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.legal-content input:focus,
.legal-content select:focus,
.legal-content textarea:focus { outline: none; border-color: var(--hb-primary); }
.legal-content input::placeholder,
.legal-content textarea::placeholder { color: var(--hb-dim); }

.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.hint { font-size: 12px; color: var(--hb-dim); margin: 6px 0 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    padding: 10px 18px;
    font: 500 14px 'Inter', sans-serif;
    cursor: pointer;
    border: 1px solid var(--hb-border);
    background: var(--hb-surface);
    color: var(--hb-text);
    transition: all 150ms ease;
    text-decoration: none;
}
.btn:hover { border-color: var(--hb-primary); color: var(--hb-primary); text-decoration: none; }
.btn-primary { background: var(--hb-primary); border-color: var(--hb-primary); color: #fff; }
.btn-primary:hover { background: var(--hb-primary-hover); border-color: var(--hb-primary-hover); color: #fff; box-shadow: var(--hb-shadow-btn); }
.btn-secondary { background: var(--hb-surface); }

/* pole z wygenerowaną treścią (generator odstąpienia / DSA) */
.hb-output {
    margin-top: 20px;
    padding: 16px 18px;
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border);
    border-radius: 8px;
}
.hb-output__label {
    font: 600 10px 'Inter', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hb-dim);
    margin: 0 0 8px;
}
.hb-output pre {
    white-space: pre-wrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--hb-text);
    margin: 0;
}

/* Dwujęzyczność PL/EN (formularz DSA) — reguły przeniesione 1:1 ze starego
   szablonu strony, bo steruje nimi jej własny skrypt (body.lang-en). */
[data-lang="en"],
.legal-content [data-lang="en"] { display: none; }
body.lang-en [data-lang="pl"],
body.lang-en .legal-content [data-lang="pl"] { display: none; }
body.lang-en [data-lang="en"],
body.lang-en .legal-content [data-lang="en"] { display: block; }
body.lang-en .form-box label[data-lang="pl"],
body.lang-en .form-box .hint[data-lang="pl"] { display: none; }
body.lang-en .form-box label[data-lang="en"],
body.lang-en .form-box .hint[data-lang="en"] { display: block; }

/* przełącznik języka PL/EN (formularz DSA) */
.hb-doc-header .lang-switch { float: right; margin-left: 16px; }
.lang-switch { display: inline-flex; gap: 4px; border: 1px solid var(--hb-border); border-radius: 8px; padding: 3px; background: var(--hb-surface); }
.lang-switch button {
    border: none;
    background: transparent;
    color: var(--hb-muted);
    font: 500 13px 'Inter', sans-serif;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 150ms ease;
}
.lang-switch button:hover { color: var(--hb-text); }
.lang-switch button.active { background: var(--hb-primary); color: #fff; }

/* „TAK/NIE" w Karcie Data safety. UWAGA: klasy siedzą na komórkach <td>,
   więc nie wolno im zmieniać `display` — komórka wypadłaby z siatki tabeli. */
span.badge-yes,
span.badge-no {
    display: inline-block;
    border-radius: 16px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.legal-content tbody td.badge-yes,
.legal-content tbody td.badge-no { font-weight: 600; }
span.badge-yes,
.legal-content tbody td.badge-yes { background: rgba(52, 168, 83, .1); color: var(--hb-success-text); }
span.badge-no,
.legal-content tbody td.badge-no { background: rgba(234, 67, 53, .07); color: var(--hb-error-text); }

/* ------------------------------------------------------------------ stopka */
.hb-footer {
    background: var(--hb-surface);
    border-top: 1px solid var(--hb-border);
    padding: 40px 0 32px;
    font-size: 13px;
    color: var(--hb-muted);
}
.hb-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px 32px;
}
.hb-footer__label {
    font: 600 10px 'Inter', sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--hb-dim);
    margin: 0 0 10px;
}
.hb-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hb-footer a { color: var(--hb-muted); }
.hb-footer a:hover { color: var(--hb-primary); }
.hb-footer__bottom {
    max-width: 1200px;
    margin: 28px auto 0;
    padding: 20px 32px 0;
    border-top: 1px solid var(--hb-border);
    font-size: 12px;
    color: var(--hb-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: space-between;
}

/* ------------------------------------------------------------------- druk */
@media print {
    .hb-nav, .hb-footer, .hb-toc, .btn-row, .lang-switch, .hb-crumbs { display: none !important; }
    body { background: #fff; }
    .hb-main, .hb-main--toc { display: block; max-width: none; padding: 0; }
    .legal-content { border: 0; box-shadow: none; padding: 0; }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
    .hb-main--toc { grid-template-columns: minmax(0, 1fr); }
    /* Spis treści nad dokumentem — własna, przewijana ramka, żeby nie zajmował
       pół ekranu przed pierwszym akapitem. */
    .hb-toc {
        position: static;
        order: -1;
        background: var(--hb-surface);
        border: 1px solid var(--hb-border);
        border-radius: 12px;
        padding: 14px 16px;
        margin-bottom: 20px;
        max-height: 190px;
        overflow-y: auto;
    }
    .hb-doc-header { padding: 32px 0 28px; }
    .hb-doc-header h1 { font-size: 30px; }
    .legal-content { padding: 24px 20px; }
    .hb-nav__inner, .hb-doc-header__inner, .hb-main, .hb-footer__inner, .hb-footer__bottom { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 620px) {
    /* Na wąskim ekranie w nawigacji zostaje logo i CTA — pozostałe odnośniki
       są w stopce, a przycisk nie może uciekać poza krawędź. */
    .hb-nav__link { display: none; }
    .hb-nav__links { gap: 4px; }
    .hb-btn-primary { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 560px) {
    .hb-nav__inner { min-height: 60px; }
    .hb-logo img { height: 38px; }
    .hb-logo__word { height: 26px; }
    .hb-doc-header h1 { font-size: 25px; }
}

/* ============================================================================
   Elementy stron statycznych spoza dokumentów prawnych
   (/cennik → pricing.html, /android.html). Te same tokeny i ta sama skorupa.
   ========================================================================== */

.hb-page { max-width: 1100px; margin: 0 auto; padding: 40px 32px 72px; }
.hb-page--narrow { max-width: 900px; }
.hb-section-title { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin: 40px 0 18px; }
.hb-lead { font-size: 16px; color: var(--hb-muted); line-height: 1.7; margin: 0 0 20px; max-width: 60em; }

/* --------------------------------------------------------------- karty planów */
.hb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.hb-plan {
    position: relative;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--hb-shadow-card);
}
.hb-plan--featured { border-color: var(--hb-primary); box-shadow: 0 0 0 3px var(--hb-primary-soft); }
.hb-plan__badge {
    position: absolute;
    top: -11px;
    right: 20px;
    padding: 2px 10px;
    background: var(--hb-primary);
    color: #fff;
    font-size: 11px;
    border-radius: 9999px;
    font-weight: 600;
}
.hb-plan__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.hb-plan__name { font-size: 16px; font-weight: 600; color: var(--hb-text); }
.hb-plan__tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--hb-dim); }
.hb-plan__price { font-size: 28px; font-weight: 600; color: var(--hb-text); margin-bottom: 4px; }
.hb-plan__price small { font-size: 13px; font-weight: 400; color: var(--hb-muted); }
.hb-plan__promo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-bottom: 4px; }
.hb-plan__promo > span:first-child { color: var(--hb-dim); }
.hb-chip-promo {
    padding: 1px 8px;
    border-radius: 9999px;
    background: rgba(52, 168, 83, .12);
    color: var(--hb-success-text);
    font-size: 11px;
    font-weight: 600;
}
.hb-plan__sub { font-size: 12px; color: var(--hb-dim); margin-bottom: 16px; line-height: 1.5; }
.hb-plan ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--hb-muted); flex: 1; }
.hb-plan li { display: flex; gap: 8px; align-items: flex-start; }
.hb-plan li i { font-style: normal; color: var(--hb-success); flex: none; }
.hb-plan li.is-off { color: var(--hb-dim); }
.hb-plan li.is-off i { color: var(--hb-dim); }

/* -------------------------------------------------------------- kafle i kroki */
.hb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.hb-tile {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--hb-shadow-card);
}
.hb-tile__label { font-size: 12px; color: var(--hb-muted); margin-bottom: 6px; }
.hb-tile__value { font-size: 17px; font-weight: 600; color: var(--hb-text); }
.hb-tile__note { font-size: 12px; color: var(--hb-dim); margin-top: 6px; line-height: 1.5; }

.hb-note {
    border: 1px solid var(--hb-border);
    border-left: 3px solid var(--hb-primary);
    border-radius: 0 8px 8px 0;
    background: var(--hb-surface-2);
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hb-muted);
    margin: 0 0 16px;
}
.hb-note--warn { border-left-color: var(--hb-warning); }
.hb-note--ok { border-left-color: var(--hb-success); }
.hb-note strong { color: var(--hb-text); }

.hb-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.hb-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: var(--hb-shadow-card);
}
.hb-step__num {
    width: 34px;
    height: 34px;
    border-radius: 9999px;
    background: var(--hb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}
.hb-step h3 { font-size: 15px; font-weight: 600; margin: 6px 0 6px; color: var(--hb-text); }
.hb-step p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--hb-muted); }
.hb-step code {
    background: var(--hb-surface-2);
    border: 1px solid var(--hb-border-soft);
    color: var(--hb-text);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hb-card {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--hb-shadow-card);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
.hb-card:hover { border-color: var(--hb-border-strong, #bdc1c6); box-shadow: 0 8px 20px rgba(0, 0, 0, .08); }
.hb-card h3 { font-size: 15px; font-weight: 600; margin: 12px 0 6px; color: var(--hb-text); }
.hb-card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--hb-muted); }
.hb-card svg { color: var(--hb-primary); }

.hb-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--hb-shadow-card);
    margin-bottom: 24px;
}
.hb-download__meta { font-size: 13px; color: var(--hb-dim); margin-top: 6px; }
.hb-btn-big {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--hb-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 26px;
    font: 500 16px 'Inter', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: background 150ms ease, box-shadow 150ms ease;
}
.hb-btn-big:hover { background: var(--hb-primary-hover); color: #fff; text-decoration: none; box-shadow: 0 4px 12px rgba(26, 115, 232, .28); }

@media (max-width: 900px) {
    .hb-plans, .hb-tiles, .hb-cards { grid-template-columns: minmax(0, 1fr); }
    .hb-download { grid-template-columns: minmax(0, 1fr); }
    .hb-page { padding: 28px 20px 56px; }
}
