/* Resetowanie podstawowych styli przeglądarki */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5E5DF0; /* Nowy, bardziej żywy fiolet/niebieski */
    --secondary-color: #433FEA; /* Ciemniejszy odcień do gradientów */
    --accent-color: #FF6B6B; /* Żywy koral/czerwień */
    --success-color: #4CAF50; /* Zielony dla sukcesu */
    --error-color: #F44336; /* Czerwony dla błędu */
    --loading-color: #2196F3; /* Niebieski dla ładowania */

    --text-color: #343a40; /* Ciemnoszary dla tekstu */
    --light-text-color: #f8f9fa; /* Bardzo jasny tekst (prawie biały) */
    --muted-text-color: #6c757d; /* Szary dla mniej ważnych tekstów */
    
    --bg-color: #f7f8fc; /* Bardzo jasne, prawie białe tło strony */
    --card-bg-color: #ffffff; /* Czysta biel dla kart/kontenerów treści */
    --input-bg-color: #fdfdff; /* Lekko kremowe tło dla inputów */

    --border-color: #e9ecef; /* Jasnoszara ramka */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;

    --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --box-shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-strong: 0 8px 25px rgba(0, 0, 0, 0.1);

    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.7;

    --transition-speed: 0.25s;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Header & Navigation --- */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text-color);
    box-shadow: var(--box-shadow-medium);
    position: sticky;
    top: 0;
    z-index: 1020;
    width: 100%;
    transition: padding-top 0.3s ease-in-out, padding-bottom 0.3s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; 
    transition: height 0.3s ease-in-out, background-color 0.3s ease-in-out;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); /* Zapewnia tło */
    padding-left: 15px;
    padding-right: 15px;
}

.header-content .container {
    width: 100%;
    padding: 0;
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--light-text-color);
    transition: opacity var(--transition-speed) ease;
}
.logo-area:hover {
    opacity: 0.9;
}

#logo-img {
    height: 42px;
    margin-right: 10px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
    transition: height 0.3s ease-in-out;
}

.logo-text {
    font-size: 1.65em;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: font-size 0.3s ease-in-out;
    white-space: nowrap;
}

nav {
    /* Na desktopie nav jest częścią flexboxa */
}

nav ul {
    list-style: none;
    display: flex;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 0;
}

nav ul li {
    margin-left: 13px;
}
nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--light-text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 13px;
    border-radius: var(--border-radius-md);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    position: relative;
    font-size: 0.95em;
}
nav ul li a::after { 
    content: '';
    position: absolute;
    bottom: 5px; 
    left: 13px;
    right: 13px;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease-out;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    transform: scaleX(1);
}
nav ul li a:hover,
nav ul li a.active {
    background-color: rgba(255, 255, 255, 0.08); 
}

.tagline-container {
    background-color: rgba(0,0,0,0.15);
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: padding 0.3s ease-in-out, font-size 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow: hidden;
}

header .tagline {
    font-size: 1.1em;
    font-weight: 400;
    color: var(--light-text-color);
    margin: 0;
    opacity: 0.9;
    transition: font-size 0.3s ease-in-out;
}

/* Style dla zmniejszonego nagłówka (.scrolled) */
header.scrolled .header-content {
    height: 60px;
    /* Tło jest już zdefiniowane dla .header-content */
}
header.scrolled #logo-img {
    height: 32px;
}
header.scrolled .logo-text {
    font-size: 1.4em;
}
header.scrolled .tagline-container {
    padding: 8px 0;
    height: auto;
}
header.scrolled .tagline {
    font-size: 0.95em;
}

/* --- Główna zawartość --- */
main {
    flex-grow: 1;
    padding-top: 50px; 
    padding-bottom: 50px;
}

main > .container { /* Kontener dla głównych treści podstron */
    background-color: var(--card-bg-color);
    box-shadow: var(--box-shadow-light); 
    border-radius: var(--border-radius-lg); 
    padding: 40px 50px; 
}

.content-page h1 { 
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 2.4em;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: -0.5px;
}
.content-page h2, .content-page h3 {
    margin-bottom: 0.8em;
}
.content-page p, .content-page ul, .content-page ol { /* Dodano ol */
    margin-bottom: 1.2em;
    color: #555; 
}
.content-page ul, .content-page ol {
    padding-left: 20px;
}
.content-page li {
    margin-bottom: 0.5em;
}

.last-updated { /* Jeśli używasz tej klasy */
    font-size: 0.85em;
    color: var(--muted-text-color);
    margin-bottom: 25px;
    font-style: italic;
}

/* --- Style formularzy --- */
.form-group {
    margin-bottom: 28px;
}
.form-group label {
    display: block;
    margin-bottom: 10px; 
    font-weight: 600;
    color: var(--muted-text-color); 
    font-size: 0.9em; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px 20px; 
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 1em;
    color: var(--text-color);
    background-color: var(--input-bg-color);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.form-group input[type="text"]::placeholder, 
.form-group textarea::placeholder {
    color: #adb5bd; 
    font-style: normal; 
    font-weight: 400;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 93, 240, 0.15); 
    background-color: #fff;
}
.form-group input[type="text"]:disabled, 
.form-group textarea:disabled {
    background-color: #e9ecef; 
    opacity: 0.7; 
    cursor: not-allowed;
}
.form-group textarea {
    min-height: 120px; 
    resize: vertical;
}
.form-text-info { /* Dodatkowa klasa dla informacji pod polem formularza */
    font-size: 0.85em;
    color: var(--muted-text-color);
    margin-top: 8px;
}
.form-text-info i {
    margin-right: 5px;
    color: var(--primary-color);
}
.form-text-info code {
    background-color: #e9ecef;
    padding: 2px 5px;
    border-radius: var(--border-radius-sm);
    font-family: 'SF Mono', Consolas, Menlo, monospace;
}


/* --- Style przycisków --- */
.btn {
    display: inline-block;
    padding: 15px 35px; 
    font-size: 1em; 
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    border: none;
    letter-spacing: 0.3px;
    text-transform: none; 
    box-shadow: var(--box-shadow-light);
}
.btn-primary {
    background-color: var(--primary-color); 
    color: white;
}
.btn-primary:hover {
    background-color: var(--secondary-color); 
    transform: translateY(-2px); 
    box-shadow: var(--box-shadow-medium);
}
.btn-primary:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-secondary {
    background-color: var(--muted-text-color); 
    color: white;
}
.btn-secondary:hover {
    background-color: #5a6268; 
    transform: translateY(-2px); 
    box-shadow: var(--box-shadow-medium);
}
.btn-secondary:disabled {
    /* Style jak dla .btn-primary:disabled */
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.btn-copy {
    background-color: var(--bg-color); 
    color: var(--primary-color); 
    margin-left: 12px;
    padding: 10px 18px; 
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color); 
    box-shadow: none; 
}
.btn-copy:hover {
    background-color: #e9ecef; 
    border-color: #ced4da;
    transform: translateY(-1px);
}
.btn-copy.copied { 
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}
.btn-cta-large { 
    padding: 18px 50px !important; 
    font-size: 1.25em !important;
    font-weight: 700 !important;
    background-color: var(--accent-color) !important; 
    color: white !important;
}
.btn-cta-large:hover {
    background-color: #FF5240 !important; 
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4) !important; 
}

/* --- Style dla sekcji wyjściowych generatora --- */
.input-with-copy { /* Kontener dla pola input/textarea i przycisku kopiuj */
    display: flex;
    align-items: center;
}
.input-with-copy input[type="text"],
.input-with-copy textarea {
    flex-grow: 1; /* Pole zajmuje dostępną przestrzeń */
}
#output-section {
    margin-top: 60px; 
    padding-top: 40px;
    border-top: 1px solid var(--border-color); 
}
#output-section h2, #input-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    color: var(--primary-color);
}
.output-group {
    margin-bottom: 30px;
}
.output-group label { 
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--muted-text-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.output-group input[type="text"],
.output-group textarea {
    background-color: #f0f2f5; 
    color: var(--text-color);
    border: 1px solid var(--border-color);
    font-family: 'SF Mono', 'Consolas', 'Menlo', monospace; 
    font-size: 0.95em;
}
.preview-box {
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 15px;
    margin-bottom: 30px;
    min-height: 200px; 
    background-color: #fff; 
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); 
    overflow: auto; 
}
/* ... (style dla elementów wewnątrz .preview-box jak poprzednio) ... */
.preview-box > *:first-child { margin-top: 0; }
.preview-box > *:last-child { margin-bottom: 0; }
.preview-box h1, .preview-box h2, .preview-box h3, .preview-box h4, .preview-box h5, .preview-box h6 {
    color: var(--text-color) !important; 
    margin-top: 1.2em; margin-bottom: 0.6em; line-height: 1.3; }
.preview-box p { color: #454545 !important; margin-bottom: 1em; line-height: 1.7; }
.preview-box ul, .preview-box ol { margin-left: 25px; margin-bottom: 1em; padding-left: 0; }
.preview-box li { margin-bottom: 0.5em; }
.preview-box a { color: var(--primary-color) !important; text-decoration: underline; }
.preview-box img { max-width: 100%; height: auto; border-radius: var(--border-radius-sm); margin: 0.5em 0; }


/* Status messages */
.status {
    margin-top: 25px;
    padding: 18px 25px; 
    border-radius: var(--border-radius-md);
    text-align: center;
    font-weight: 500;
    display: none; 
    border-width: 1px;
    border-style: solid;
    font-size: 0.95em;
    box-shadow: var(--box-shadow-light);
}
.status.success { background-color: #e8f5e9; color: #2e7d32; border-color: var(--success-color); }
.status.error { background-color: #ffebee; color: #c62828; border-color: var(--error-color); }
.status.loading { background-color: #e3f2fd; color: #1565c0; border-color: var(--loading-color); }

/* Badge "Wkrótce" */
.soon-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 3px 8px;
    font-size: 0.7em;
    border-radius: var(--border-radius-sm);
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle; 
}

/* --- Style specyficzne dla podstron (Funkcje, O Nas, Kontakt, Case Study, Cennik) --- */

/* Sekcja Intro dla podstron (np. Funkcje) */
#features-intro, #about-hero, #contact-hero, #casestudy-hero, .pricing-hero {
    text-align: center;
    padding: 30px 0 40px 0; 
    margin-bottom: 30px;
}
#features-intro h1, #about-hero h1, #contact-hero h1, #casestudy-hero h1, .pricing-hero h1 { 
    font-size: 2.6em; 
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-color); 
    border-bottom: none; 
    padding-bottom: 0;
}
#features-intro .highlight, #about-hero .highlight, #contact-hero .highlight, #casestudy-hero .highlight { 
    color: var(--accent-color); 
    font-weight: 700;
}
#features-intro .lead, #about-hero .lead, #contact-hero .lead, #casestudy-hero .lead, .pricing-hero .lead {
    font-size: 1.2em;
    color: var(--muted-text-color);
    max-width: 850px;
    margin: 0 auto 20px auto;
}

/* Siatka dla kart (np. Funkcje, Problemy na LP, Kroki na LP) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-bottom: 50px; /* Zmieniono z 60px */
}
.feature-card {
    background-color: var(--card-bg-color);
    padding: 30px 25px; 
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium); 
    display: flex;
    flex-direction: column; 
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.feature-card:hover {
    transform: translateY(-5px); 
    box-shadow: var(--box-shadow-strong);
}
.feature-icon-card { 
    font-size: 2.2em; 
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center; 
    height: 40px; 
}
.feature-card h3 {
    font-size: 1.4em; 
    color: var(--primary-color); 
    margin-top: 0; 
    margin-bottom: 15px;
    line-height: 1.4;
}
.feature-card p {
    font-size: 0.95em;
    color: var(--text-color); 
    line-height: 1.6;
    flex-grow: 1; 
    margin-bottom: 20px; 
}
.benefit-chip { /* Używane na stronie Funkcje */
    display: inline-block;
    background-color: rgba(76, 175, 80, 0.15); 
    color: #2e7d32; 
    padding: 8px 15px;
    border-radius: 20px; 
    font-size: 0.85em;
    font-weight: 600;
    margin-top: auto; 
    align-self: flex-start; 
}
.feature-card.coming-soon-feature { 
    opacity: 0.7; 
    background-color: #f8f9fa; 
}
.feature-card.coming-soon-feature:hover { 
    transform: none;
    box-shadow: var(--box-shadow-medium);
}
.soon-badge-card { /* Badge wewnątrz karty */
    display: inline-block;
    background-color: var(--muted-text-color);
    color: var(--light-text-color);
    padding: 2px 7px;
    font-size: 0.7em;
    border-radius: var(--border-radius-sm);
    margin-left: 8px;
    font-weight: 500;
    vertical-align: middle;
}

/* Bloki podświetlone */
.content-block-highlighted {
    background-color: rgba(94, 93, 240, 0.08); 
    padding: 30px 40px;
    margin: 40px auto; 
    max-width: 900px; 
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(94, 93, 240, 0.2); 
    box-shadow: var(--box-shadow-light);
}
.content-block-highlighted h2 { 
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color); 
    font-size: 1.8em; 
    border-bottom: none; 
    padding-bottom: 0;
}
.content-block-highlighted ul { list-style: none; padding-left: 0; }
.content-block-highlighted li {
    font-size: 1.05em; /* Lekko zmniejszone dla spójności */
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex; 
    align-items: flex-start;
    color: var(--text-color); 
}
.content-block-highlighted li .highlight-icon { 
    color: var(--success-color); 
    font-size: 1.1em;
    margin-right: 10px;
    flex-shrink: 0;
    margin-top: 0.2em;
}
.content-block-highlighted li > span:not(.highlight-icon) {
    flex-grow: 1;
}
.content-block-highlighted li .highlight { /* Wyróżnienie tekstu w liście */
    color: var(--accent-color); 
    font-weight: 600; /* Zmienione z bold na 600 */
}
.text-center { text-align: center; }
.bold-text { font-weight: 600; margin-top: 20px; color: var(--text-color); }

/* CTA na dole strony Funkcje */
#cta-bottom-features {
    text-align: center;
    padding: 50px 20px;
    margin-top: 30px; 
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%); 
    border-radius: var(--border-radius-lg);
    color: var(--light-text-color);
}
#cta-bottom-features h2 {
    font-size: 2.3em; margin-bottom: 20px; color: var(--light-text-color); border-bottom: none; padding-bottom: 0;
}
#cta-bottom-features p { 
    font-size: 1.15em; color: rgba(248, 249, 250, 0.85); margin-bottom: 35px; max-width: 750px; margin-left: auto; margin-right: auto;
}
#cta-bottom-features .sub-cta {
    margin-top: 25px !important; font-size: 1em !important; color: rgba(248, 249, 250, 0.75); 
}
#cta-bottom-features .sub-cta a {
    color: var(--light-text-color); font-weight: 600; text-decoration: underline;
}
#cta-bottom-features .sub-cta a:hover { color: var(--accent-color); }


/* Style dla strony Kontakt */
.contact-options {
    margin-top: 30px;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
}
.contact-option {
    padding: 25px;
    background-color: #fff;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-light);
    border-left: 4px solid var(--accent-color); 
}
.contact-option h3 { margin-top: 0; margin-bottom: 15px; color: var(--primary-color); font-size:1.3em;}
.contact-option .highlight { color: var(--primary-color); }
.contact-option p { margin-bottom: 10px; color: var(--text-color); }
.contact-option .muted-text { font-size: 0.85em; color: var(--muted-text-color); font-style: italic; }
.contact-link { font-weight: 600; color: var(--primary-color); text-decoration: none; word-break: break-all; }
.contact-link:hover { text-decoration: underline; color: var(--secondary-color); }
.social-links-placeholder { margin-top: 20px; font-size: 1.5em; } /* Dla strony Kontakt */

/* Style dla strony Case Study */
.case-study-placeholder, .sneak-peek {
    padding: 30px; background-color: #fff; border-radius: var(--border-radius-md); box-shadow: var(--box-shadow-light); margin-bottom: 30px;
}
.case-study-placeholder h2, .sneak-peek h2, .sneak-peek h3 { /* Dodano .sneak-peek h2 */
    color: var(--primary-color); margin-top: 0; margin-bottom: 20px; border-bottom: none; padding-bottom: 0;
}
.case-study-placeholder ul, .sneak-peek ol { margin-left: 20px; margin-bottom: 20px; padding-left: 0; } /* Dodano padding-left:0 */
.case-study-placeholder li, .sneak-peek li { margin-bottom: 8px; }
.call-to-action-box { /* Używane na Case Study */
    margin-top: 30px; padding: 25px; background-color: var(--bg-color); border-radius: var(--border-radius-md); text-align: center; border: 1px solid var(--border-color);
}
.call-to-action-box h3 { margin-top: 0; color: var(--primary-color); border-bottom: none; padding-bottom: 0; }
.call-to-action-box p { margin-bottom: 20px; }
/* Dodatkowe style dla listy w sneak-peek na Case Study */
.sneak-peek ol { list-style: none; padding-left:0; }
.sneak-peek ol li { display: flex; align-items: flex-start; }
.sneak-peek ol li > span:first-child { font-weight: bold; color: var(--primary-color); margin-right: 8px; flex-shrink: 0; min-width: 100px; }
.sneak-peek ol li > span:last-child, .sneak-peek ol li > div { flex-grow: 1; }
.sneak-peek ol ul { list-style: none; padding-left:0; margin-top:0; }
.sneak-peek ol ul li { margin-bottom: 8px; }


/* --- Style dla strony Cennik --- */
/* .pricing-hero już zdefiniowane wyżej */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.package-card {
    background-color: var(--card-bg-color); padding: 30px; border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium); display: flex; flex-direction: column;
    text-align: center; border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.package-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow-strong); }
.package-card h3 { font-size: 1.8em; color: var(--primary-color); margin-top: 0; margin-bottom: 10px; }
.package-card .price { font-size: 2.5em; font-weight: 700; color: var(--text-color); margin-bottom: 5px; }
.package-card .price span { font-size:0.5em; font-weight:400; vertical-align: super; margin-left: 2px; }
.package-card .price-period { font-size: 0.9em; color: var(--muted-text-color); margin-bottom: 15px; }
.package-card .tokens { font-size: 1.2em; font-weight: 600; color: var(--secondary-color); margin-bottom: 20px; }
.package-card .description { font-size: 0.95em; color: var(--text-color); margin-bottom: 25px; flex-grow: 1; }
.package-card .btn { margin-top: auto; /* width: 100%; */ /* Opcjonalnie */ }
.package-card.highlighted {
    border: 2px solid var(--accent-color); position: relative; transform: scale(1.02);
}
.package-card.highlighted:hover { transform: scale(1.02) translateY(-5px); }
.package-card.highlighted::before {
    content: "Najlepszy Wybór!"; position: absolute; top: -15px; left: 50%;
    transform: translateX(-50%); background-color: var(--accent-color); color: white;
    padding: 5px 15px; border-radius: var(--border-radius-md); font-size: 0.9em;
    font-weight: 600; box-shadow: var(--box-shadow-light); z-index: 1;
}
.value-comparison-section p,
.how-to-order-section ol, 
.how-to-order-section p {
    max-width: 800px; margin-left: auto; margin-right: auto;
}
.how-to-order-section ol { padding-left: 20px; list-style-position: outside; }
.how-to-order-section li { margin-bottom: 15px; line-height: 1.6; }
.how-to-order-section li strong { color: var(--text-color); }

.faq-section .faq-item {
    margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-color);
}
.faq-section .faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.faq-section .faq-question {
    font-weight: 600; color: var(--primary-color); margin-bottom: 8px; font-size: 1.1em; /* cursor: pointer; */
}
.faq-section .faq-answer { color: var(--text-color); padding-left: 0; line-height: 1.6; }
.faq-section .faq-answer p { margin-bottom: 0.5em; }
.faq-section .faq-answer p:last-child { margin-bottom: 0; }


/* --- Style dla Landing Page (Hero, Problem, How it works) --- */
#hero-section h1 { font-weight: 700; font-size: 2.8em; /* Utrzymanie większego H1 na LP */ }
#hero-section .lead strong { font-weight: 600; }

#problem-section .problem-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
#problem-section .problem-cards-grid .feature-card {
    background-color: #fff; text-align: left; padding: 20px;
}
#problem-section .problem-cards-grid .feature-card h3 {
    font-size: 1.15em; margin-top: 0; margin-bottom: 8px;
}
#problem-section .problem-cards-grid .feature-card p {
    font-size: 0.9em; line-height: 1.5;
}
#problem-section .problem-cards-grid .feature-icon-card {
    height: auto; margin-bottom: 10px; text-align: left;
}
#problem-section .problem-cards-grid .feature-icon-card i {
    font-size: 1.8em;
}

#how-it-works-section .how-it-works-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
#how-it-works-section .how-it-works-grid .feature-card {
    background-color: #fff;
}
#how-it-works-section .how-it-works-grid .feature-icon-card span { /* Dla numerów kroków */
    font-size: 2.8em; color: var(--primary-color); font-weight: 700;
    line-height: 1; display: block; margin-bottom: 10px;
}
#how-it-works-section .how-it-works-grid .feature-card h3 {
    margin-top: 10px; /* Odstęp od numeru kroku */
}


/* --- Footer --- */
footer {
    padding: 30px 0;
    margin-top: auto;
    background-color: #23272B; 
    color: #a9b3bb; 
    font-size: 0.9em; 
    border-top: 4px solid var(--primary-color); 
}
footer .container {
    background-color: transparent;
    box-shadow: none;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap; 
    padding-top: 0;
    padding-bottom: 0;
}
footer p {
    margin: 5px 0; 
    flex-basis: 100%; 
    text-align: center;
}
footer nav {
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
}
footer nav ul { 
    padding: 0; 
    display: flex; 
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
footer nav ul li {
    margin: 0 10px;
}
footer a {
    color: var(--light-text-color); 
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
footer a:hover {
    color: var(--accent-color); 
    text-decoration: underline;
}


/* --- Responsywność OGÓLNA I NAGŁÓWKA --- */
@media (min-width: 768px) { /* Poprawki dla stopki na większych ekranach */
    footer p { flex-basis: auto; text-align: left; }
    footer nav { width: auto; margin-top: 0; margin-left: auto; }
}

@media (min-width: 769px) { /* Dla desktopu - układ problem-cards-grid */
    #problem-section .problem-cards-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 karty w rzędzie na desktopie */
    }
}
@media (min-width: 768px) and (max-width: 768px) { /* Dla tabletów - problem-cards-grid 2x2 */
     #problem-section .problem-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 992px) { /* Ogólne zmniejszenia na mniejszych desktopach/większych tabletach */
    main > .container {
        padding: 30px 35px;
    }
    .content-page h1, #features-intro h1, #about-hero h1, #contact-hero h1, #casestudy-hero h1, .pricing-hero h1, #hero-section h1 {
        font-size: 2.2em !important; /* Zmniejszenie H1 */
    }
    h2, .content-page h2, #cta-bottom-features h2, .content-block-highlighted h2, #output-section h2, #input-section h2 {
        font-size: 1.8em !important; /* Zmniejszenie H2 */
    }
    h3, .content-page h3, .feature-card h3, .contact-option h3, .case-study-placeholder h3, .call-to-action-box h3, .package-card h3, #how-it-works-section .feature-card h3 {
        font-size: 1.4em !important; /* Zmniejszenie H3 */
    }

    /* Responsywność nagłówka dla tabletów */
    nav ul li { margin-left: 10px; }
    nav ul li a { padding: 8px 10px; font-size: 0.9em; }
    .logo-text { font-size: 1.5em; }
    #logo-img { height: 38px; }
}

@media (max-width: 768px) { /* ---- MOBILE ---- */
    html { font-size: 15px; } 

    /* NAGŁÓWEK MOBILE - PRZED SCROLLEM */
    .header-content {
        flex-direction: column; 
        height: auto; 
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .header-content .container {
        flex-direction: column;
        width: 100%;
    }
    .logo-area {
        margin-bottom: 10px;
    }
    nav { 
        width: 100%;
        margin-top: 5px;
    }
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }
    nav ul li {
        margin: 3px 5px;
    }
    nav ul li a {
        padding: 8px 10px;
    }
    header .tagline { font-size: 1.05em; } 

    /* NAGŁÓWEK MOBILE - PO SCROLLU (.scrolled) */
    header.scrolled .header-content {
        height: auto; 
        padding-top: 8px; /* Zmniejszony padding dla scrollowanego nagłówka */
        padding-bottom: 8px;
    }
    header.scrolled .header-content .container {
        flex-direction: column; 
        align-items: center;
        width: 100%;
    }
    header.scrolled .logo-area {
        margin-bottom: 5px; /* Zmniejszony margines */
    }
    header.scrolled #logo-img {
        height: 30px;
    }
    header.scrolled .logo-text {
        font-size: 1.3em;
    }
    header.scrolled nav {
        width: 100%;
        margin-top: 3px; /* Zmniejszony margines */
    }
    header.scrolled nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    header.scrolled nav ul li a {
        font-size: 0.9em;
        padding: 6px 8px;
        color: var(--light-text-color); /* Upewnienie się, że linki są widoczne */
    }
    header.scrolled nav ul li a.active,
    header.scrolled nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    header.scrolled .tagline-container {
        display: none; 
    }

    /* Ogólne style mobilne */
    main > .container { padding: 25px 20px; }
    .content-page h1, #features-intro h1, #about-hero h1, #contact-hero h1, #casestudy-hero h1, .pricing-hero h1, #hero-section h1 {
        font-size: 2em !important; 
    }
    /* H2 i H3 już dostosowane przez breakpoint 992px, ale można je tu dalej zmniejszyć jeśli potrzeba */
     h2, .content-page h2, #cta-bottom-features h2, .content-block-highlighted h2, #output-section h2, #input-section h2 {
        font-size: 1.7em !important;
    }
    h3, .content-page h3, .feature-card h3, .contact-option h3, .case-study-placeholder h3, .call-to-action-box h3, .package-card h3, #how-it-works-section .feature-card h3 {
        font-size: 1.35em !important;
    }

    .input-with-copy {
        flex-direction: column;
        align-items: stretch;
    }
    .input-with-copy input[type="text"],
    .input-with-copy textarea {
        margin-bottom: 10px;
        width: 100%;
    }
    .btn-copy {
        margin-left: 0;
        width: 100%; 
    }
    .btn { /* Przyciski na całą szerokość na mobilkach */
        padding: 14px 25px;
        width: 100%; 
        display: block; /* Aby width: 100% działało poprawnie dla <a> */
        text-align: center; /* Wyśrodkowanie tekstu w przycisku */
    }
    .btn + .btn { /* Odstęp między przyciskami, jeśli są obok siebie w HTML, a stają się pod sobą */
        margin-top: 10px;
    }
    #generate-btn { 
         margin-bottom: 10px; 
    }
    #submit-edit-btn, #start-new-product-btn { 
        margin-top: 10px;
    }
    .packages-grid { grid-template-columns: 1fr; } /* Pakiety jeden pod drugim */
    .package-card.highlighted { transform: scale(1); }
    .package-card.highlighted:hover { transform: translateY(-5px); }
}

@media (max-width: 480px) { /* Bardzo małe ekrany */
    html { font-size: 14px; }
    .logo-text { /* font-size: 1.5em; */ /* Już obsłużone przez poprzednie media query */ }
    #logo-img { /* height: 35px; */ /* Już obsłużone */ }
    header.scrolled #logo-img { height: 28px; }
    header.scrolled .logo-text { font-size: 1.2em; }

    nav ul li { margin: 3px; } /* Jeszcze mniejsze marginesy dla linków nav */
    nav ul li a { padding: 5px 6px; font-size: 0.85em; }
    header.scrolled nav ul li a { font-size: 0.8em; padding: 5px 6px; }

    main > .container { padding: 20px 15px; }
    .content-page h1, #features-intro h1, #about-hero h1, #contact-hero h1, #casestudy-hero h1, .pricing-hero h1, #hero-section h1 {
        font-size: 1.8em !important; 
    }
    h2, .content-page h2, #cta-bottom-features h2, .content-block-highlighted h2, #output-section h2, #input-section h2 {
        font-size: 1.6em !important;
    }
    h3, .content-page h3, .feature-card h3, .contact-option h3, .case-study-placeholder h3, .call-to-action-box h3, .package-card h3, #how-it-works-section .feature-card h3 {
        font-size: 1.3em !important;
    }
    .btn { padding: 12px 20px; } /* Mniejszy padding przycisków */
}