/*
Theme Name: Matematika Bez Stresu - Sales Page V2 Light
Theme URI: https://matematikabezstresu.cz/
Author: Antigravity AI
Description: Světlá verze prodejní stránky pro CERMAT přípravu.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: matematika-bez-stresu-light
*/

:root {
    color-scheme: light;
    -webkit-color-scheme: light;
    --bg-dark: #ffffff;
    --bg-darker: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --primary: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.15);
    --secondary: #ec4899;
    --secondary-glow: rgba(236, 72, 153, 0.15);
    --accent: #8b5cf6;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --success: #059669;
}

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

button, input, select, textarea, .btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body, h1, h2, h3, h4, h5, h6, p, a, span, li, div, button, input, textarea {
    font-family: 'Outfit', sans-serif;
}

.fas, .fab, .far, .fa {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}

html, body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    max-width: 100vw;
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.04), transparent 25%) !important;
    background-attachment: fixed !important;
    min-height: 100vh;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 768px) {
    .responsive-grid-2,
    .responsive-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .card-box-padding {
        padding: 2rem 1.25rem !important;
    }
    
    .nav-logo {
        height: 30px !important;
    }
    
    .nav-links .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glass Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 40px !important;
    width: auto !important;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 25px -5px var(--primary-glow);
}

.btn-secondary {
    background: linear-gradient(135deg, #fbbf24, #f8ad17);
    color: #000;
    box-shadow: 0 10px 25px rgba(248, 173, 23, 0.35);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(248, 173, 23, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #0f172a, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
    background: linear-gradient(to right, #4f46e5, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-value {
    position: relative;
    perspective: 1000px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-image {
    position: relative;
    perspective: 1000px;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    transform: rotateY(-10deg) rotateX(5deg);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 30px var(--primary-glow);
    transition: transform 0.5s ease;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-20px) rotateY(-10deg) rotateX(5deg);
    }

    100% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float-delayed 7s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@keyframes float-delayed {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Social Proof */
.social-proof-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.social-proof-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
}

.social-proof-avatars img:first-child {
    margin-left: 0;
}

.social-proof-text {
    margin-left: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.social-proof-text strong {
    color: var(--text-main);
}

/* Section general */
.section-padding {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Features */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.2);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(79, 70, 229, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-muted);
}

/* Video Preview */
.preview-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.preview-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: var(--secondary-glow);
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
}

.preview-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pricing Section */
.pricing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 3px;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: rgba(255, 255, 255, 0.2);
}

input:checked+.slider:before {
    transform: translateX(26px);
    background-color: var(--accent);
}

.discount-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.popular {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 45px rgba(79, 70, 229, 0.2);
}

.pricing-card.vip {
    border: 1px solid rgba(245, 158, 11, 0.3);
}


.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-weight: 600;
}

.discount-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    vertical-align: middle;
    display: inline-block;
}

.price-container {
    margin: 2rem 0;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-value span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.info-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    font-weight: 600;
}

.info-link:hover {
    color: var(--accent);
}

.trial-after-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.pricing-list {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.pricing-list i {
    color: var(--success);
    margin-top: 0.3rem;
}

.pricing-card.popular .pricing-list i {
    color: var(--primary);
}

.pricing-card.vip .pricing-list i {
    color: #f8ad17;
}

/* Comparison Table */
.comparison-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 2rem;
}

.comparison-wrapper.expanded {
    max-height: 2000px;
}

.comparison-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.comparison-table th {
    padding: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border);
}

.comparison-table th.highlight-col {
    background: rgba(59, 130, 246, 0.1);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.comparison-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.comparison-table td.feature-name {
    text-align: left;
    font-weight: 600;
    color: var(--text-main);
}

.comparison-table td.highlight-col {
    background: rgba(59, 130, 246, 0.05);
}

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

.comparison-table td.highlight-col:last-child {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.check-icon {
    font-size: 1.2rem;
    color: var(--success);
}

.cross-icon {
    font-size: 1.2rem;
    color: rgba(15, 23, 42, 0.15);
}

.vip-check {
    color: #f8ad17;
}

/* Reviews */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.reviewer h4 {
    margin: 0;
}

.reviewer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer-inner {
    padding: 0 2rem 1.5rem;
    color: var(--text-muted);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--bg-darker);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .hero-grid,
    .preview-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }

    .pricing-card.popular {
        transform: none;
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .preview-container {
        padding: 2rem;
    }
}

/* Checkout Page Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.checkout-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.checkout-summary-container {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--primary);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.15);
}

.phone-input-group {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix {
    width: 100px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    padding: 0 0.5rem;
    cursor: pointer;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 1rem;
    color: var(--primary);
}

.trust-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-summary-container {
        position: relative;
        top: 0;
        order: -1;
    }
}

@media (max-width: 640px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

.top-promos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .top-promos-container {
        grid-template-columns: 1fr;
    }
}

.promo-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
    padding: 1.5rem;
    font-size: 0.95rem;
    text-align: left;
    color: var(--text-main);
    line-height: 1.5;
}

.promo-alert strong {
    color: var(--success);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.promo-alert i {
    margin-right: 0.4rem;
}

.promo-alert-kombo {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
}

.promo-alert-kombo strong {
    color: var(--primary);
}

.promo-alert-premium {
    background: rgba(248, 173, 23, 0.05);
    border-color: #f8ad17;
}

.promo-alert-premium strong {
    color: #f8ad17;
}

.boost-box {
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.boost-box i.bg-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    opacity: 0.05;
    transform: rotate(-15deg);
    z-index: 0;
}

.boost-box .content {
    position: relative;
    z-index: 1;
}

.boost-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.boost-box p {
    font-size: 1.15rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto;
}

.boost-box.zakladni {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(15, 23, 42, 0.4));
    border: 2px dashed var(--primary);
}

.boost-box.zakladni h3 {
    color: var(--primary);
}

.boost-box.kombo {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(15, 23, 42, 0.4));
    border: 2px dashed var(--primary);
}

.boost-box.kombo h3 {
    color: var(--primary);
}

.boost-box.premium {
    background: linear-gradient(135deg, rgba(248, 173, 23, 0.08), rgba(255, 255, 255, 0.8));
    border: 2px dashed #f8ad17;
}

.boost-box.premium h3 {
    color: #f8ad17;
}

@media (max-width: 768px) {
    .lektor-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}