/* Design System for ifirma-kod.pl */
:root {
    --primary: #e85d04;
    --primary-dark: #c44d00;
    --secondary: #023e8a;
    --text-main: #1a1a1a;
    --text-muted: #555;
    --bg-light: #fdf6f0;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(232, 93, 4, 0.10);
    --radius: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 50px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.verified-badge {
    display: inline-block;
    margin-top: 12px;
    background: #edf7f0;
    color: #1a7a3c;
    border: 1px solid #a3d9b6;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Promo Box */
.promo-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.promo-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), #ffb347);
}

.promo-code {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-main);
    background: #fff3ec;
    padding: 20px 40px;
    border-radius: var(--radius);
    display: inline-block;
    margin: 20px 0;
    border: 2px dashed #f4a87c;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: all;
    letter-spacing: 2px;
}

.promo-code:hover {
    border-color: var(--primary);
    background: #ffe8d6;
}

.promo-details {
    margin: 20px 0 30px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 2;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 18px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 20px rgba(232, 93, 4, 0.25);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(232, 93, 4, 0.4);
    background: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}

/* Sections */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    margin-right: 15px;
    border-radius: 2px;
    flex-shrink: 0;
}

ul,
ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
}

p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

section p:first-of-type {
    color: var(--text-main);
}

.step-warning {
    background: #fff8e1;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #92400e;
    margin-top: 20px;
}

/* FAQ Styling */
.faq-item {
    border-bottom: 1px solid #edf2f7;
    padding: 20px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    margin-bottom: 0;
}

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

a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    border-top: 1px solid #dee2e6;
    padding-top: 40px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    .promo-code {
        font-size: 1.6rem;
        padding: 15px 20px;
        letter-spacing: 1px;
    }

    .container {
        padding: 20px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 15px 25px;
    }

    .promo-box {
        padding: 25px 20px;
    }
}

/* Redirect Overlay */
.redirect-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.redirect-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.redirect-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 90%;
    width: 400px;
    animation: scaleUp 0.3s ease;
}
.redirect-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 15px 0 5px;
}
.redirect-text strong {
    color: #e85d04;
}
.redirect-sub {
    font-size: 1rem;
    color: #555;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #e85d04;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes scaleUp {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.copy-helper {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted, #555);
    margin-top: -10px;
    margin-bottom: 15px;
    font-weight: 500;
    text-align: center;
}
