/* ========================================
   KvikBrief - Modern CSS Styles - v20250122
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0084FF;
    --primary-hover: #0071DB;
    --primary-light: #E6F7FF;
    /* Secondary (use blue variant instead of green) */
    --secondary: #93c5fd;          /* blue-300 */
    --secondary-hover: #60a5fa;    /* blue-400 */
    --accent: #FF9F00;
    --accent-hover: #FE8400;
    
    /* Grays */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Text */
    --text-primary: #203B53;
    --text-secondary: #a0a9bb;
    --text-muted: #9ca3af;
    
    /* Borders */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   Lokální fonty pro rychlejší načítání
   ======================================== */

@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit/static/Outfit-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit/static/Outfit-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit/static/Outfit-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Zajistit, že se font načte okamžitě */
body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-display: block;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scrollbars from decorative bubbles */
html, body { overflow-x: hidden; }


/* ========================================
   Obecná pravidla a konvence (Shared)
   - Breakpointy: 920px (tablet), 768px (mobile)
   - Sdílené utility a globální responzivní chování
   ======================================== */

/* Vypnutí modrého tap highlight na mobilech + schování focus rámečku na touch zařízeních */
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }

/* Schovej outline, pokud není skutečný klávesnicový fokus */
:focus:not(:focus-visible) { outline: none; }

/* Dotyková zařízení: žádný outline vůbec */
@media (hover: none) and (pointer: coarse) {
    :focus { outline: none !important; box-shadow: none !important; }
}


/* ========================================
   Typography
   ======================================== */

.heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.subheading {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-12);
    text-align: left;
    color: var(--text-primary);
}

em {
    font-style: italic;
    color: var(--primary);
    padding: 0 2px;
    margin: 0 -2px;
    transform: translateZ(0);
    text-wrap: balance;
}



/* ========================================
   Common Section Styles
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    position: relative; /* pro absolutní odznaky v rozích */
}

.section-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.section-title-centered {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin: 0 auto;
    max-width: 800px;
}

.section-title-centered em {
    font-style: italic;
    color: var(--primary);
    padding: 0 2px;
    margin: 0 -2px;
    display: inline-block;
    transform: translateZ(0);
}

.section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-12);
}

.section-text {
    text-align: center;
    max-width: 600px;
}

.section-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.section-cta-wrapper {
    margin-top: var(--space-10);
    text-align: left;
}

.section-cta {
    display: inline-block;
}

/* Skrytí CTA buttonu pod 920px */
@media (max-width: 920px) {
    .section-cta-wrapper {
        display: none !important;
    }
}

/* ========================================
   Layout Components
   ======================================== */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ========================================
   Form Enhancements
   ======================================== */

/* ========================================
   Navigation
   ======================================== */

.navbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    z-index: 1000;
    backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Výchozí stav - viditelný */
    opacity: 1;
    transition: all 0.3s ease;
}

/* Animovaný stav navbaru - bude nastaven GSAP */
.navbar.navbar-loaded {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Speciální stav pro index.html - skrytý před animací */
.navbar.animated {
    opacity: 0;
    transform: translateX(-50%) translateY(-100%);
}


.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    position: relative; /* pro absolutní pozicování */
    border-radius: 50px;
}

.logo {
    height: 48px;
    width: 48px; /* match nav-toggle width for visual parity */
    border-radius: var(--radius-md);
    object-fit: cover;
    transition: transform var(--transition-fast);
}

/* Horizontální textové logo v navbaru */
.logo-text {
    height: 28px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-fast);
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.nav-logo .logo-text:hover {
    transform: scale(1.05);
}

/* Fixní pozice pro navbar elementy */
.nav-logo {
    position: absolute;
    left: var(--space-8);
    z-index: 10;
}

.nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.nav-actions {
    position: absolute;
    right: var(--space-4);
    z-index: 10;
    display: flex;
    gap: var(--space-4);
    align-items: center;
    height: 90px;
    justify-content: flex-end;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    height: 70px; /* match navbar height for vertical centering */
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 70px; /* vertically align text within navbar */
    line-height: 1; /* keep underline close to text */
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px; /* move underline closer under the centered text */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}


/* Konzistentní šířka pro navbar tlačítka */
.nav-actions .btn {
    text-align: center;
    white-space: nowrap;
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 48px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-bar { 
    display: none; 
}

/* Drawer */
.nav-drawer {
    position: fixed;
    top: 130px; /* Větší vzdálenost od vrchu */
    right: 0;
    width: 100%;
    max-width: 320px;
    height: calc(100% - 90px); /* Výška minus navbar a mezera */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-xl);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top-left-radius: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1100;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}

.nav-drawer.open {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0);
}

.nav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.nav-close {
    background: transparent;
    border: 0;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-primary);
}

.nav-drawer-menu {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex: 1;
}

.nav-drawer-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    padding: var(--space-3) 0;
}

.nav-drawer-cta {
    margin-top: auto;
    padding-top: var(--space-6);
    text-align: center;
}

.nav-drawer .btn {
    text-align: center !important;
}

/* ========================================
   Buttons
   ======================================== */
.center{
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}
.padding{
    margin-top: var(--space-2);
}
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-normal);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--gray-50);
    color: var(--primary-hover);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* ========================================
   Hero Section
   ======================================== */
.page-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
}
/* Peek ilustrace za formulářovým blokem (subscribe) */
.form-peek {
    display: block; /* zruší baseline mezeru pod obrázkem */
    line-height: 0; /* jistota proti inline mezerám */
    position: relative;
    bottom: calc(100% - 28px); /* vykukuje 28px nad horní hranu bloku */
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: auto;
    z-index: 0; /* pod obsahem formuláře */
    pointer-events: none;
    user-select: none;
}
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-content {
    opacity: 0; /* Skrytí před GSAP animací */
}

.hero-title {
    font-size: clamp(4.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    opacity: 0; /* Skrytí před GSAP animací */
}
.hero-video {
    width: 100%;
    height: 700px;
    display: block;
    border-radius: var(--radius-2xl);
    /*box-shadow: var(--shadow-xl);*/
    /* Optimalizace pro rychlé načítání */
    object-fit: cover;
    will-change: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Zajištění okamžitého zobrazení */
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1480px) {
    .hero-video {
        height: 500px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}
@media (max-width: 1080px) {
    .hero-video {
        height: 400px;
    }
}
/* Hero – Responsive (920px, 768px) */
@media (max-width: 920px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
        margin-top: var(--space-24);
        margin-bottom: var(--space-24);
    }
    .hero-content{
        width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-video {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .hero-title{
        text-align: center;
        margin-top: var(--space-24);
    }
    .hero-subtitle{
        text-align: center;
    }
    .hero-video {
        height: 400px;
    }
    .hero-content{
        width: 100%;
    }
}




/* ========================================
   Sections
   ======================================== */

/* Společný padding pro všechny sekce */
.how-it-works,
.morning-ritual,
.features,
.why-kvikbrief,
.faq,
.cta {
    padding: calc(var(--space-32) + var(--space-12)) 0;
    overflow: hidden;
}

/* Společné styly pro karty */
.card {
    text-align: left;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    background-color: var(--bg-tertiary);
    /*border: 1px solid var(--border-light);*/
    box-shadow: var(--shadow-sm);
    transform: translateY(0) translateZ(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow var(--transition-normal);
    will-change: transform, box-shadow;
    backface-visibility: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Společné styly pro gridy */
.grid {
    display: grid;
    gap: var(--space-8);
}

.how-it-works {
    background-color: var(--bg-primary);
}

/* Nová struktura pro How it Works - zachovává původní barvy a styly */
.how-it-works-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.how-it-works-left {
    padding-right: var(--space-8);
}

/* .how-it-works-header - používá .section-header */

/* .how-it-works-label - používá .section-label */

/* .how-it-works-title - používá .section-title-centered */

.how-it-works-title em {
    font-style: italic;
    color: var(--primary);
    padding: 0 2px;
    margin: 0 -2px;
    display: inline-block;
    transform: translateZ(0);
}

.how-it-works-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
}

.feature-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: left;
}

.feature-item span {
    color: var(--text-primary);
    font-weight: 700;
}

.how-it-works-note {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.how-it-works-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.how-it-works-right {
    position: relative;
}

.steps-timeline {
    position: relative;
    padding-left: var(--space-8);
}


.step-item {
    position: relative;
    margin-bottom: var(--space-12);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-icon {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-icon-bg {
    width: 115px;
    height: 115px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.step-icon-img {
    width: 110px;
    height: 110px;
    display: block;
    object-fit: contain;
}

.step-content {
    flex: 1;
    padding-top: var(--space-2);
}

.step-content .step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    text-align: left;
}

.step-content .step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    text-align: left;
    max-width: 500px;
}

/* Responsive design pro How it Works */
@media (max-width: 920px) {
    .step-icon-bg {
        width: 110px;
        height: 110px;
    }
    .how-it-works-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    
}
@media (max-width: 768px) {
    .how-it-works-left {
        padding-right: 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .steps-timeline {
        padding-left: 0;
    }
    
    .step-item {
        gap: var(--space-2);
    }
    .step-icon-bg {
        width: 100%;
        height: 100px;
    }
    
    .step-icon-img {
        width: 100px;
        height: 100px;
    }
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Morning Ritual
   ======================================== */

.morning-ritual {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    background-color: #ffffff;
}

/* Morning Ritual - používá společné třídy */

.morning-ritual-video {
    width: 100%;
    max-width: 800px;
    display: flex;
    justify-content: center;
}

.morning-video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    transition: transform var(--transition-normal);
}

.morning-video-poster {
    width: 100%;
    height: auto;
    border-radius: var(--radius-2xl);
    transition: transform var(--transition-normal);
    object-fit: cover;
}

/* Mobilní optimalizace pro morning obrázek */
@media (max-width: 768px) {
    .morning-video-poster {
        max-width: 100%;
        height: auto;
        /* Menší border-radius na mobilu */
        border-radius: var(--radius-lg);
    }
    
    .morning-ritual-video {
        max-width: 100%;
        padding: 0 var(--space-4);
    }
}

/* ========================================
   Features
   ======================================== */

.features {
    background-color: var(--bg-primary);
}

/* Nová struktura pro Features - podobná How it Works */
.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.features-left {
    padding-right: var(--space-8);
}

/* .features-header - používá .section-header */

/* .features-label - používá .section-label */

/* .features-title - používá .section-title-centered */

/* Specifické zarovnání nalevo pro Features, How it Works a FAQ nad 768px */
@media (min-width: 920px) {
    .features-left .section-label,
    .how-it-works-left .section-label,
    .faq-left .section-label {
        text-align: left;
    }
    
    .features-left .section-title-centered,
    .how-it-works-left .section-title-centered,
    .faq-left .section-title-centered {
        text-align: left;
    }
}


.features-right {
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

/* Responsive design pro features */
@media (max-width: 920px) {
    .features-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .features-left {
        padding-right: 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .features-grid {
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-rows: 1fr 1fr 1fr 1fr;
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    .hero-title{
        text-align: center;
        margin-top: var(--space-24);
    }
    .hero-subtitle{
        text-align: center;
    }
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Why KvikBrief
   ======================================== */

.why-kvikbrief {
    background-color: var(--bg-secondary);
}

/* Why KvikBrief - používá společné třídy */

.why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    justify-items: stretch;
}

.why-card {
    /* Dědí z .card */
    background-color: var(--bg-primary);
}

.why-icon {
    font-size: 3rem;
    margin-bottom: var(--space-4);
    display: block;
}

.why-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.why-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive design pro centrální sekce */
@media (max-width: 768px) {
    .section-content {
        gap: var(--space-8);
    }
    
    .section-text p {
        font-size: 1rem;
    }

    .how-it-works,
    .morning-ritual,
    .features,
    .why-kvikbrief,
    .faq,
    .cta {
        padding: calc(var(--space-24)) 0;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: var(--space-12);
    }
    
    .section-content {
        gap: var(--space-6);
    }
    .hero-title{
        text-align: center;
        margin-top: var(--space-12);
    }
}

/* Responsive design pro Why KvikBrief */
@media (max-width: 920px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: var(--space-4);
    }
}

@media (max-width: 768px) {
    .faq-left {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .faq-header {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .why-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }
    
    .why-card {
        padding: var(--space-8);
    }
}

@media (max-width: 480px) {
    .why-grid {
        gap: var(--space-3);
    }
    
    .why-card {
        padding: var(--space-4);
    }
    .page-hero-form {
        width: 100%; /* Mobil - 100% */
    }
}


/* ========================================
   FAQ Section
   ======================================== */

.faq {
    background-color: var(--bg-primary);
}

/* Nová struktura pro FAQ - podobná How it Works */
.faq-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.faq-left {
    padding-right: var(--space-8);
}

/* .faq-header - používá .section-header */

/* .faq-label - používá .section-label */

/* .faq-title - používá .section-title-centered */

.faq-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

.faq-right {
    position: relative;
}

/* FAQ List - vertikální seznam s čarami */
.faq-list {
    border-top: 1px solid var(--border-light);
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
    position: relative; /* pro underline animaci jako v navbaru */
}

.faq-question:hover {
    color: var(--primary);
}

/* Stejná underline animace jako u .nav-link (celá šířka otázky) */
/* Podtržení pouze pod textem (první span) – stejné chování jako .nav-link */
.faq-question > span:first-child {
    position: relative;
    display: inline-block;
    padding-top: 12px; /* vyvážená mezera nad textem */
    padding-bottom: 12px; /* stejná mezera pod textem */
}

.faq-question > span:first-child::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.faq-question:hover > span:first-child::after {
    width: 100%;
}

.faq-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover .faq-icon {
    color: var(--primary);
}

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

.faq-answer.active {
    max-height: 200px;
    transition: var(--transition-slow);
}

.faq-answer p {
    padding: 0 0 var(--space-6) 0;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* FAQ – Responsive (920px, 768px) */

@media (max-width: 920px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    .section-title-centered {
        display: block;
        width: 85%;
    }
}

@media (max-width: 768px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .faq-left {
        padding-right: 0;
    }
    .section-title-centered {
        max-width: 100%;
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: var(--space-4) 0;
    }
    
    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
}
@media (max-width: 500px) {
    .section-title-centered {
        display: block;
        width: 100%;
    }
}



/* ========================================
   Page Hero (Subscribe/Unsubscribe)
   ======================================== */

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
    min-height: 100.1vh;
    display: flex;
    align-items: center;
    position: relative; /* pro absolutní dekorace uvnitř sekce */
}

/* Větší vertikální polštáře na mobilech (subscribe/unsubscribe) */
@media (max-width: 1090px) {
    .page-hero { padding: var(--space-16) 0; }
}

.page-hero .container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    width: 100%;
    margin: 0;
    position: relative; /* pro absolutní dekorace */
}

/* Větší svislé mezery na mobilech pro subscribe/unsubscribe */
@media (max-width: 768px) {
    .page-hero-content { 
        margin-top: var(--space-24); 
        margin-bottom: var(--space-12);
    }
}

.page-hero-header {
    text-align: left;
    position: relative;
}

.page-hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-4);
}

.page-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
    line-height: 1.2;
}

.page-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0;
    opacity: 0.9;
    color: white;
    line-height: 1.5;
}

.page-hero-form {
    background: rgba(255, 255, 255, 0.226);
    backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative; /* pro peek ilustraci za blokem */
    width: 100%; /* PC - 100% */
}

/* Plná bílá varianta boxu (pro activated/deactivated) */
.page-hero-form.is-solid {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.page-hero-form.is-solid .form-note { color: var(--text-secondary); }

.subscribe-form {
    margin: 0;
}

/* CTA button v page-hero formuláři - konzistentní s ostatními */
.page-hero .btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.page-hero .btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

/* CTA button v page-hero formuláři - unsubscribe stránka */
.page-hero .btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.page-hero .btn-outline:hover {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
    transition: all var(--transition-normal);
}

.form-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.form-note-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-note-link:hover {
    color: white;
}

.form-message {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ========================================
   CTA Section (Legacy - for index.html)
   ======================================== */

.cta {
    background: transparent;
}

.cta-content {
    text-align: center;
    width: 100%;
    max-width: none;
    margin: 0 auto var(--space-16);
    background: rgba(255, 255, 255, 0.226);
    color: white;
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    position: relative; /* pro section-peek uvnitř karty */
}
.cta-content-white{
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    position: relative; /* pro peek ilustraci za blokem */
}
.cta-content-blue{
    background: var(--primary);

}


/* Mobilní wrapper pro CTA stránky (activated/deactivated) */
.cta-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
}



@media (max-width: 768px) {
    .cta-mobile { padding: var(--space-6) var(--space-4); }
    .cta-mobile .cta-content,
    .cta-mobile .cta-content-white,
    .cta-mobile .page-hero-form {
        width: 100%;
        border-radius: var(--radius-xl);
        padding: var(--space-6);
    }
    .cta-mobile{
        margin: var(--space-24) 0;
    }

    .cta-mobile .section-peek { width: 128px; top: -10px; }
}
/* Ilustrace nad CTA sekcí (activated/deactivated) */
.section-peek {
    display: block; /* zruší baseline mezeru pod obrázkem */
    line-height: 0;
    width: 254px; /* menší dekorace */
    height: auto;
    pointer-events: none;
    user-select: none;
    align-self: center;
}

/* Jemný nájezd ilustrací jako u bloků na CTA stránkách */
.peek-reveal {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@media (max-width: 768px) {
    .cta-content .section-peek { width: 64px; top: -4px; }
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-6);
    opacity: 0.9;
    color: white;
}

/* CTA Trust Indicators - bez pozadí */
.cta-trust {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

.cta-trust-icon {
    font-size: 1rem;
    color: #10b981;
}

.cta-trust-text {
    white-space: nowrap;
}

/* Hide trust indicators on small screens */
@media (max-width: 590px) {
    .cta-trust {
        display: none;
    }
}

/* ========================================
   Privacy Policy Page
   ======================================== */

.privacy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-6);
    padding-top: calc(var(--space-8) + 180px); /* Add space for navbar */
    padding-bottom: var(--space-24);
    text-align: left;
}

.privacy-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    text-align: center;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.privacy-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    text-align: center;
    font-weight: 500;
}

.privacy-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.7;
}

.privacy-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.privacy-content h2:first-child {
    margin-top: 0;
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.privacy-content p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.privacy-content ul {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.privacy-content li {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
    line-height: 1.6;
}

.privacy-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.privacy-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.privacy-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    text-align: center;
}

.privacy-footer p {
    font-size: 1.125rem;
    color: var(--text-primary);
    font-weight: 400;
    margin-bottom: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .privacy-container {
        padding: var(--space-6) var(--space-4);
        padding-top: calc(var(--space-6) + 100px); /* Less space on mobile */
    }
    
    .privacy-title {
        font-size: 2.5rem;
    }
    
    .privacy-content {
        padding: var(--space-6);
        border-radius: 16px;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
        margin-top: var(--space-6);
    }
    
    .privacy-content h3 {
        font-size: 1.125rem;
        margin-top: var(--space-4);
    }
}

@media (max-width: 480px) {
    .privacy-container {
        padding: var(--space-4) var(--space-3);
        padding-top: calc(var(--space-4) + 80px); /* Even less space on small mobile */
    }
    
    .privacy-title {
        font-size: 2rem;
    }
    
    .privacy-content {
        padding: var(--space-5);
        border-radius: 12px;
    }
    
    .privacy-content h2 {
        font-size: 1.375rem;
    }
    
    .privacy-content h3 {
        font-size: 1rem;
    }
    
    .privacy-content p,
    .privacy-content li {
        font-size: 0.9rem;
    }
}

.subscribe-form {
    margin-top: var(--space-4);
}

.form-group {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
    justify-content: center;
}

/* Stacked form layout for subscribe page */
.form-stack {
    flex-direction: column;
    align-items: stretch;
}
.form-stack > * {
    width: 100%;
}
.form-stack .subheading {
    margin-bottom: var(--space-2);
}

/* Inline row for final select + CTA */
.form-row-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
    align-items: center;
}

/* Tlačítko v form-row-inline má šířku podle sebe */
.form-row-inline .btn {
    width: auto;
    min-width: auto;
    white-space: nowrap;
}



.form-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-family: Outfit;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.form-input:hover {
    border-color: var(--border-medium);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Enhanced native select styling */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding-right: 2.5rem; /* space for arrow */
    background-image: url("../assets/images/form_select.svg");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px 16px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

select.form-input:hover {
    border-color: var(--border-medium);
}

select.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

select.form-input:disabled {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Subscribe/Unsubscribe: konzistentní vzhled s input elementy - dědí styly z .form-input a select.form-input */

.form-note {
    font-size: 0.9rem;
    opacity: 0.8;
    color: white;
    margin-top: var(--space-6);
}

.form-note-link {
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.form-note-link:hover {
    text-decoration: none;
}
/* Mobilní media query bude přesunuto za tablet */

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: var(--gray-800);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
}

.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: white;
}

.footer-description {
    color: var(--gray-300);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-2);
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: left;
    padding-top: var(--space-8);
    border-top: 1px solid var(--gray-700);
    color: var(--gray-300);
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet - 80% šířka formuláře */
@media (max-width: 769px) and (min-width: 481px) {
    .page-hero-form {
        width: 100%;
    }
}

@media (max-width: 1090px) {
    /* Page Hero responsive */
    .page-hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
        margin-top: var(--space-24);
        margin-bottom: var(--space-12);
    }
    .page-hero-form {
        width: 80%;
    }
    .page-hero-header {
        text-align: center;
    }
}

@media (max-width: 920px) {
    .nav-menu { display: none; }
    .nav-actions { display: none; }
    .nav-toggle { 
        display: flex;
        justify-content: flex-start;
        align-items: center;
        position: absolute;
        right: var(--space-6);
        top: 0;
        width: 48px;
        height: 100%; /* zarovnání v rámci navbaru */
        padding-left: 12px;
        background: url('images/menu.svg') no-repeat left 12px center;
        background-size: 24px 24px;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }
    /* skryj pruhy a používej SVG ikonu */
    .nav-toggle-bar { display: none; }
    .logo { height: 40px; width: 40px; }
    .logo-text { height: 24px; }
    
    /* Mobilní logo - menší verze pro lepší zobrazení na malých obrazovkách */
    .nav-logo picture source[media="(max-width: 768px)"] + img {
        height: 20px;
    }

    .version-display {
        display: none;
    }

    .cta-content {
        padding: var(--space-8);
    }
    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-8);
        transition: left 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-actions {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: var(--space-12);
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
    }
    
    .page-hero-header {
        text-align: center;
    }
    
    .page-hero-title {
        font-size: 2.5rem;
        margin-bottom: var(--space-6);
    }
    
    .page-hero-subtitle {
        font-size: 1.125rem;
    }
    
    .page-hero-form {
        padding: var(--space-6);
        width: 80%; /* Tablet - 80% */
    }
}

/* Mobil - 100% šířka (musí být za tablet media query) */
@media (max-width: 480px) {
    .form-row-inline {
        grid-template-columns: 1fr;
    }
    .page-hero-form {
        width: 100%; /* Mobil - 100% */
    }
    
    .form-input {
        width: 100%;
    }
    
    /* Tlačítko v form-row-inline na mobilu má šířku podle sebe */
    .form-row-inline .btn {
        width: auto;
        min-width: auto;
        white-space: nowrap;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    
    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* CTA na mobilu: přes celou šířku a bez mezery nad footerem */
    .cta { padding-bottom: 0 !important; }
    .cta .container { max-width: none; padding: 0; }
    .cta-content { border-radius: 0; margin: 0; padding: var(--space-12);}
    .cta-content-white{
        border-radius: var(--radius-xl);
    }
}


/* Velká dekorace zrušena (nepoužívá se) */

/* Ujisti obsah nad dekorací */
.page-hero-content .page-hero-header,
.page-hero-content .page-hero-form { position: relative; z-index: 1; }

@media (max-width: 768px) {
}

/* Bezpečnostní režim: velmi široká, ale nízká obrazovka → přestavět layout
   Cíl: zabránit překrytí textu a formuláře s dekorací */
@media (max-height: 720px) and (min-width: 1090px) {
    .page-hero-content {
        grid-template-columns: 1fr; /* stack na jeden sloupec */
        gap: var(--space-8);
        text-align: center;
    }
    .page-hero-header { text-align: center; }
    .page-hero-title { margin-bottom: var(--space-4); }
}

/* Extrémně nízké viewporty – dekoraci raději skrýt */
@media (max-height: 560px) and (min-width: 900px) {
    .page-hero-decoration { display: none; }
}

/* Jednoduchá opacity animace pro kvík obrázky */
@keyframes kvikFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero {
        padding: 130px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    .page-hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-image {
        min-height: 350px;
        height: 350px;
    }
    
    .hero-video {
        height: 350px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .btn-large {
        padding: 16px 32px;
        font-size: 1rem;
    }

    /* Těsnější rozestupy mezi kartami na mobilu */
    .steps,
    .features-grid,
    .why-grid {
        gap: var(--space-4);
    }

    .step,
    .feature-card,
    .why-card {
        padding: var(--space-5);
    }

    .logo-text { height: 22px; }
    
    /* Ještě menší logo pro velmi malé obrazovky */
    .nav-logo picture source[media="(max-width: 768px)"] + img {
        height: 18px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: left;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Zrušení navbar/hero load animací */
/* Peeps: držet uvnitř sekcí a pod obsahem */
.with-peeps { position: relative; overflow: visible; }

/* obsah sekcí nad bublinami */
.with-peeps .hero-container,
.with-peeps > .container,
.with-peeps .features-content,
.with-peeps .section-content,
.with-peeps .faq-content,
.with-peeps .why-grid,
.with-peeps .features-grid,
.with-peeps .cta-content { position: relative; z-index: 1; }

/* Statické kvíky v sekcích */
.with-peeps { 
    position: relative; 
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
}

/* Simple peep bubbles (500px) */
.peep-bubble {
    position: absolute;
    z-index: 0;
    width: 1500px;
    height: 1500px;
    border-radius: 50%;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    background: transparent; /* color variants below */
    filter: blur(4px);
    transition: none; /* Zabraňuje zpoždění */
}

.peep-bubble.peep-blue {
    background: radial-gradient(circle at 50% 50%,
        rgba(37, 100, 235, 0.05) 0%,
        rgba(37, 99, 235, 0.05) 30%,
        rgba(37, 99, 235, 0.00) 70%,
        rgba(37, 99, 235, 0.00) 100%
    ) !important;
    transition: none !important;
}

.peep-bubble.peep-orange {
    background: radial-gradient(circle at 50% 50%,
        rgba(254, 132, 0, 0.04) 0%,
        rgba(254, 132, 0, 0.04) 30%,
        rgba(254, 131, 0, 0) 70%,
        rgba(254, 131, 0, 0) 100%
    ) !important;
    transition: none !important;
}


/* Jemná plovoucí animace */
@keyframes peepFloat {
    0%   { transform: translateY(0) translateZ(0); }
    50%  { transform: translateY(-12px) translateZ(0); }
    100% { transform: translateY(0) translateZ(0); }
}

/* Zajistit, že obsah sekcí je nad bublinami */
.with-peeps > .container,
.with-peeps .hero-container,
.with-peeps .section-content,
.with-peeps .features-content,
.with-peeps .features-grid,
.with-peeps .faq-content,
.with-peeps .why-grid,
.with-peeps .cta-content { position: relative; z-index: 1; }

/* Peeps presets (umístění v sekcích) */
.peep-j1 { top: -10%; left: -10%; width: 60vw; height: 60vw; }
.peep-j2 { top: -5%; right: -10%; width: 45vw; height: 45vw; }
.peep-j3 { top: 320px; left: -15%; width: 70vw; height: 70vw; }
.peep-j4 { bottom: -15%; right: -10%; width: 55vw; height: 55vw; }
.peep-j5 { bottom: -10%; left: 20%; width: 40vw; height: 40vw; }
.peep-j6 { top: 65%; right: -12%; width: 65vw; height: 65vw; }

/* Přiřazení barev dle presetů */
.peep-j1, .peep-j3, .peep-j5 { border-radius: 50%; }
.peep-j2, .peep-j4, .peep-j6 { border-radius: 50%; }
.peep-j1, .peep-j3, .peep-j5 { background: inherit; }
.peep-j2, .peep-j4, .peep-j6 { background: inherit; }

@media (max-width: 920px) {
    .peep-j1 { width: 90vw; height: 90vw; top: -20%; left: -20%; }
    .peep-j2 { width: 70vw; height: 70vw; top: -10%; right: -20%; }
    .peep-j3 { width: 110vw; height: 110vw; left: -35%; }
    .peep-j4 { width: 80vw; height: 80vw; bottom: -25%; right: -20%; }
    .peep-j5 { width: 65vw; height: 65vw; bottom: -20%; left: 10%; }
    .peep-j6 { width: 100vw; height: 100vw; right: -30%; }
}

/* GSAP split text words for smoother animations */
.split-word {
    display: inline-block;
    will-change: transform, opacity;
    overflow: visible;
}

/* ========================================
   Universal Page Load Reveal Animations
   ======================================== */

/* Reveal efekty vypnuté – obsah je viditelný ihned */
.page-reveal { opacity: 1; transform: none; transition: none; }
.page-reveal.revealed { opacity: 1; transform: none; }

/* Specific reveal delays for staggered effect */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero content reveal (for CTA pages) */
.hero-reveal { opacity: 1; transform: none; transition: none; }
.hero-reveal.revealed { opacity: 1; transform: none; }

/* Form reveal */
.form-reveal { opacity: 1; transform: none; transition: none; }
.form-reveal.revealed { opacity: 1; transform: none; }

/* Image reveal */
.image-reveal { opacity: 1; transform: none; transition: none; }
.image-reveal.revealed { opacity: 1; transform: none; }

/* ========================================
   Version Display
   ======================================== */

.version-display {
    position: fixed;
    bottom: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.3);
    color: rgb(255, 255, 255);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 1000;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: opacity var(--transition-fast);
    opacity: 0.6;
}

.version-display:hover {
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}
.nav-drawer {
    top: 130px;
    height: calc(100% - 130px);
}


/* Fix pro překryv mezi 920px a 768px */
@media (max-width: 920px) and (min-width: 769px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .nav-drawer {
        top: 113px;
        height: calc(100% - 113px);
    }
}
@media (max-width:768px){
    .nav-drawer {
        top: 82px;
        height: calc(100% - 82px);
    }
}


/* ========================================
   Status Pages (Activated/Deactivated)
   ======================================== */

.status-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: var(--space-8) 0;
    text-align: center;
}

.status-image {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.status-image picture{
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.status-kvik-image {
    width: 250px;
    height: auto;
    opacity: 0.95;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.status-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.status-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.status-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    font-weight: 400;
}

.status-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .status-container {
        min-height: 50vh;
        padding: var(--space-6) var(--space-4);
    }
    
    .status-image {
        margin-bottom: 0;
    }
    
    .status-kvik-image {
        width: 200px;
        margin-bottom: 0;
    }
    
    .status-content {
        padding: var(--space-6);
        border-radius: 16px;
    }
    
    .status-title {
        font-size: 2rem;
        margin-bottom: var(--space-3);
    }
    
    .status-subtitle {
        font-size: 1.125rem;
        margin-bottom: var(--space-6);
    }
}

@media (max-width: 480px) {
    .status-container {
        padding: var(--space-4) var(--space-3);
    }
    
    .status-content {
        padding: var(--space-5);
        border-radius: 12px;
    }
    
    .status-title {
        font-size: 1.75rem;
    }
    
    .status-subtitle {
        font-size: 1rem;
    }
    
    .status-kvik-image {
        width: 160px;
        margin-bottom: 0;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .footer,
    .version-display {
        display: none;
    }
    
    .hero {
        padding: 0;
        min-height: auto;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}

/* Form rows for side-by-side inputs */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: start;
}

/* Zajistit stejnou šířku pro input a select v form-row */
.form-row .form-input {
    width: 100%;
    min-width: 0;
    
}

@media (max-width: 768px) {
    .form-row {
        gap: var(--space-3);
    }
}
@media (max-width: 550px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Hero Trust Indicators
   ======================================== */

.hero-trust {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    background: none;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: none;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.trust-icon {
    font-size: 1rem;
    color: #10b981;
}

/* Center trust indicators on smaller screens */
@media (max-width: 920px) {
    .hero-trust {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        max-width: 600px;
    }
}

/* Mobile optimization for navbar */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 30px;
    }
    
    .nav-container {
        height: 60px;
        padding: 0 var(--space-6);
        border-radius: 80px;
    }
}

/* Mobile optimization for trust indicators */
@media (max-width: 580px) {
    .hero-trust {
        flex-direction: column;
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 1rem;
        display: none;
    }
    
    .trust-item {
        font-size: 0.8rem;
    }
}

/* Prevent Mr. Kvik from breaking across lines */
.mr-kvik {
    white-space: nowrap;
    display: inline;
}

/* Společné animace pro všechny stránky - fadeInUp je už definován výše */

/* Animace pro page-hero-content je už definována výše */

/* Animace pro page-hero stránky - nejdříve levá, pak pravá strana */
.page-hero-header {
    opacity: 0;
    transform: translateY(30px);
}

.page-hero-right {
    opacity: 0;
    transform: translateY(30px);
}

/* Button se animuje společně s formulářem přirozeně - žádná vlastní animace */
.page-hero-content .btn,
.page-hero-form .btn,
.page-hero-right .btn,
.page-hero-content .center {
    animation: none !important;
    opacity: inherit;
    transform: inherit;
    transition: none !important;
}

/* Animace pro cta-content */
.cta-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

/* Animace pro center je už definována výše */

/* Prevent FOUC for Mr. Kvik - apply immediately to prevent blinking */

