/* ── pricing/index.html ──
 * Przeniesione 10.09.2026 z bloku <style> w tresci strony. Styl w tresci nie da sie
 * buforowac osobno ani wspoldzielic, a przede wszystkim wymusza furtke unsafe-inline
 * w CSP — czyli politykę, ktora nie chroni przed wstrzyknietym stylem. */

:root {
    --bg-primary: #000000;
    --bg-secondary: #101012;
    --bg-card: rgba(226, 232, 240, 0.035);
    --accent: #28aab1;
    --accent-glow: rgba(40, 170, 177, 0.3);
    --accent-light: #49b8c4;
    --text-primary: #f2f3f5;
    --text-secondary: #9a9ca1;
    --text-muted: #6b6d73;
    --border: #26262a;
    --success: #10b981;
    --error: #ef4444;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.brand {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Content ── */
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

h1 {
    font-size: 3.75rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
}

h1 .gradient {
    background: linear-gradient(100deg, #6f7681 0%, #aab3bd 18%, #ffffff 32%, #e6ebf0 42%, #8d959f 60%, #6f7681 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.sub-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 3rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Pricing Grid ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    border-color: rgba(40, 170, 177, 0.55);
    box-shadow: 0 0 40px rgba(40, 170, 177, 0.070), 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* popular badge — hidden by default, shown on hover */
.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #e6e8eb;
    color: #000000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.price-card:hover .popular-badge {
    opacity: 1;
}

.plan-icon {
    width: 160px;
    height: 160px;
    object-fit: contain;
    margin: 0 auto 1.2rem;
    filter: var(--filtr-ikony) drop-shadow(0 0 12px rgba(160, 205, 212, 0.3));
    border-radius: 12px;
}

.plan-icon-lg {
    width: 240px;
    height: 240px;
}

.price-card h2 {
    font-family: inherit;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: normal;
    margin-bottom: 0.5rem;
}

.brand-baud { color: var(--text-secondary); opacity: 0.75; }

.price {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.queries {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.price-card .divider {
    height: 1px;
    background: var(--border);
    margin: 0.8rem 0 1rem;
}

.price-card ul {
    list-style: none;
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-align: left;
    flex-grow: 1;
}

.price-card ul li {
    padding: 0.3rem 0;
}

.price-card ul li::before {
    content: '✓ ';
    color: var(--accent);
    font-weight: 700;
}

.price-card .btn-plan {
    display: block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    cursor: pointer;
}

.price-card .btn-plan:hover {
    border-color: rgba(40, 170, 177, 0.55);
    background: rgba(40, 170, 177, 0.12);
    color: var(--text-primary);
    box-shadow: 0 0 18px rgba(40, 170, 177, 0.122), 0 0 6px rgba(40, 170, 177, 0.070);
}

.price-card .btn-plan:active {
    transform: scale(0.95);
    background: rgba(40, 170, 177, 0.25);
    border-color: var(--accent-light);
    box-shadow: 0 0 24px rgba(40, 170, 177, 0.175), inset 0 0 8px rgba(40, 170, 177, 0.052);
    transition: all 0.08s ease;
}

/* All cards get the same hover button style */
.price-card:hover .btn-plan {
    border-color: rgba(40, 170, 177, 0.55);
    background: linear-gradient(135deg, rgba(40, 170, 177, 0.15), rgba(0, 160, 146, 0.1));
    color: var(--text-primary);
}

/* ── Card Billing Tabs ── */
.billing-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 3px;
    border: 1px solid var(--border);
    position: relative;
    isolation: isolate;
}

/* Krążące światełko po obramowaniu - subtelnie zwraca uwagę
   że tabs są przełączalne. Wolny obrót (5s), pojedynczy łuk
   około 60deg, kolor accent. */
@property --comio-tabs-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.billing-tabs::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--comio-tabs-angle),
        transparent 0deg,
        transparent 300deg,
        var(--accent) 340deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: comio-tabs-spin 5s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes comio-tabs-spin {
    to { --comio-tabs-angle: 360deg; }
}

/* Szanuj preferencję redukcji ruchu */
@media (prefers-reduced-motion: reduce) {
    .billing-tabs::before {
        animation: none;
        background: linear-gradient(90deg, transparent, var(--accent), transparent);
    }
}

.billing-tab {
    flex: 1;
    padding: 0.4rem 0.3rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    position: relative;
}

.billing-tab:hover {
    color: var(--text-secondary);
}

.billing-tab.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.billing-tab .save-badge {
    display: none;
    font-size: 0.6rem;
    color: var(--success);
    font-weight: 700;
    position: absolute;
    top: -1px;
    right: 2px;
}

.billing-tab.active .save-badge,
.billing-tab:hover .save-badge {
    display: inline;
}

/* ── Comparison Table ── */
.comparison {
    margin-top: 2rem;
}

.comparison h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
    padding: 0.8rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 0.88rem;
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.32rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table td {
    color: var(--text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .check { color: var(--accent); font-weight: 700; }
.comparison-table .cross { color: var(--error); font-weight: 700; }

/* Człony nazw planów: „Pro" w barwie tekstu, „Baud" przygaszone, „Free" szare —
   zieleń zostaje dla stanu, nie dla nazwy. */
.brand-orange { color: var(--text-primary); }
.brand-green  { color: var(--text-secondary); }

/* ── FAQ ── */
.faq {
    max-width: 700px;
    margin: 4rem auto 0;
}

.faq h2 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    position: relative;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    cursor: pointer;
}

.faq details::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(40, 170, 177,0.13) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.faq details::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: width 0.4s ease, left 0.4s ease;
    pointer-events: none;
}

.faq details:hover {
    border-color: rgba(40, 170, 177, 0.55);
    box-shadow: none;
    transform: translateY(-3px);
}

.faq details:hover::before { opacity: 1; }
.faq details:hover::after  { width: 80%; left: 10%; }

.faq details[open] {
    border-color: var(--text-primary);
    transform: none;
    box-shadow: none;
}
.faq details[open]::after { width: 0; left: 50%; }

.faq summary {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '▸';
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: transform 0.3s;
}
.faq details[open] > summary::after { transform: rotate(90deg); }
.faq summary:hover {
    background: rgba(40, 170, 177, 0.04);
}
.faq summary:active {
    background: rgba(40, 170, 177, 0.1);
    transition: all 0.08s ease;
}

.faq .faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.faq .faq-answer p { margin-top: 0.8rem; }

/* ── CTA ── */
/* Uczciwa nota przed zakupem — ostatnia rzecz nad wezwaniem do działania, żeby nikt
   nie kupował z założeniem, że wszystko zadziała na każdym sprzęcie bez sprawdzenia.
   Ramka spokojna, w srebrze: to informacja, nie ostrzeżenie o zagrożeniu. */
.przed-zakupem {
    max-width: 900px;
    margin: 0 auto 3rem;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.05), rgba(226, 232, 240, 0.012));
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-left: 3px solid rgba(226, 232, 240, 0.45);
    border-radius: 14px;
    padding: 1.8rem 2rem;
    text-align: left;
}

/* Nagłówek w wierszu z ostrzegawczym trójkątem. Rysunek, nie znak z tablicy —
   ten drugi ma w każdym systemie inną wysokość i osadzenie, więc nie dałby się
   równo ustawić, tak samo jak koperta w stopce. */
.przed-zakupem h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.ikona-uwaga {
    width: 1.5em;
    height: 1.34em;
    flex-shrink: 0;
    color: var(--warning);
}

.przed-zakupem p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.7rem;
}

.przed-zakupem p:last-child { margin-bottom: 0; }

.cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.cta h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.cta-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin: 0 1rem;
    font-size: 1rem;
    transition: text-shadow 0.2s;
}

.cta-links a:hover {
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(40, 170, 177, 0.5);
}

.cta-links a:active {
    text-shadow: 0 0 20px rgba(40, 170, 177, 0.7);
    transition: all 0.08s ease;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
    color: var(--text-muted);
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-logo { width: 80px; height: auto; border-radius: 0; filter: drop-shadow(0 0 10px rgba(160, 205, 212, 0.3)); }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 1rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-light); }
.footer-download { color: #f2f3f5 !important; font-weight: 600 !important; }
.footer-download:hover { color: var(--accent-light) !important; }
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

footer a { color: var(--accent); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
    .content { padding: 2rem 1rem; }
    h1 { font-size: 2.70rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
    .comparison-table { font-size: 0.78rem; }
    .comparison-table th, .comparison-table td { padding: 0.5rem 0.4rem; }
}

/* ── Odstęp przy skoku do kotwicy ──
   Wejście z ZEWNĄTRZ — z panelu Free w aplikacji, z zakładki, z wyniku
   wyszukiwania — przychodzi gotowym adresem z kotwicą. Przewija wtedy sama
   przeglądarka, a sprężyste przewijanie z `assets/js/smooth-scroll.js` nie
   rusza, bo nie ma w co kliknąć. Odstęp musi więc dać arkusz, inaczej pasek
   nagłówka (58 px + 2 × 10 px wypełnienia) zasłania tytuł sekcji.

   Skryptowi to nie przeszkadza: on bierze WIĘKSZĄ z dwóch wartości — tej
   z arkusza i własnego pomiaru belek — więc przy kliknięciu na stronie
   dalej rządzi pomiar. Ta sama wartość co w `assets/css/help.css`. */
[id] { scroll-margin-top: 90px; }
