/* Phase 11.1 & 11.2: Component Styles - Mobile-First */

/* ============================================
   COMPONENT: Header
   ============================================ */

header {
    background-color: var(--color-bg-white); /* White background */
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    margin-bottom: 0; /* No margin between header and content blocks */
    border-bottom: none; /* Remove border to eliminate separation */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem; /* Reduced vertical padding to accommodate larger logo */
    gap: 1rem;
    flex-wrap: wrap;
    min-height: 70px; /* Ensure header has minimum height for larger logo */
    width: 100%;
    margin: 0 auto; /* Center the header container */
}

/* Logo Group (Logo + Telegram Link + Mobile Menu Button) */
.logo-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    flex: 0 0 auto; /* Don't grow, fixed size */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0; /* Prevent logo from shrinking */
}

.logo {
    height: 60px; /* Mobile: Increased from 40px */
    width: auto;
    display: block;
    max-width: 100%; /* Prevent overflow */
}

/* Full logo with text - fills header height */
.logo.logo-full {
    height: 45px; /* Mobile: Smaller to fit */
    max-width: 180px;
}

/* Telegram Link (with icon and text) */
.telegram-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: bold;
    transition: opacity 0.2s ease;
}

.telegram-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

.telegram-icon {
    width: 1.8em; /* 1.5x bigger: 1.2em * 1.5 = 1.8em */
    height: 1.8em;
    flex-shrink: 0;
}

.telegram-text {
    font-size: 1.5rem; /* 1.5x bigger: 1rem * 1.5 = 1.5rem */
    color: var(--color-text-dark);
    font-weight: bold;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: inline;
}

/* Header Actions (buttons) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Mobile: Stack buttons vertically if needed */
@media (max-width: 767px) {
    .header-container {
        min-height: 70px; /* Mobile: Ensure enough height for logo */
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-group {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem; /* Closer to bot logo */
        flex: 1; /* Allow it to grow on mobile */
    }
    
    .header-actions {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    /* Ensure logo doesn't take too much space on mobile */
    .logo-link {
        max-width: 200px; /* Limit logo width on mobile */
    }
    
    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: inline;
    }
    
    /* Mobile: Hamburger button in logo group, right corner */
    .logo-group .hamburger-btn {
        margin-left: auto; /* Push to right */
    }
}

/* Tablet: Header adjustments */
@media (min-width: 768px) {
    .header-container {
        padding: 0.75rem 6px; /* Reduced horizontal padding */
        min-height: 80px;
        flex-direction: row;
        max-width: 1600px; /* Match content width */
    }
    
    .logo-group {
        flex: 0 0 auto; /* Don't grow on tablet+ */
    }
    
    .header-actions {
        flex-direction: row;
    }
    
    .logo {
        height: 80px; /* Tablet: Larger logo */
    }
    
    .logo.logo-full {
        height: 63px; /* Tablet: Full logo with text */
        max-width: 288px;
    }
    
    .desktop-only {
        display: inline;
    }
    
    .mobile-only {
        display: none;
    }
}

/* Desktop: Header adjustments */
@media (min-width: 1024px) {
    .header-container {
        padding: 0.5rem 6px; /* Reduced padding for larger logo */
        min-height: 104px;
        max-width: 1600px; /* Match content width */
    }
    
    .logo {
        height: 94px; /* Desktop: Maximum size to fit header */
    }
    
    .logo.logo-full {
        height: 90px; /* Desktop: Fill header height */
        max-width: 405px;
    }
    
    .desktop-only {
        display: inline;
    }
    
    .mobile-only {
        display: none;
    }
}

/* ============================================
   COMPONENT: Navigation - Desktop
   ============================================ */

.nav-desktop {
    display: none; /* Hidden on mobile */
    flex-shrink: 0;
    margin: 0;
    margin-left: auto; /* Push menu to the right, closer to login button */
    margin-right: 0.5rem; /* Small gap before login button */
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--color-text-dark); /* Black text */
    text-decoration: none;
    font-size: 0.875rem; /* Smaller font */
    font-weight: bold; /* Bold text */
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    display: block;
}

.nav-menu a:hover {
    color: var(--color-blue-medium);
    text-decoration: none;
}

/* Show desktop navigation at 768px+ (tablet and desktop) */
@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

/* ============================================
   COMPONENT: Navigation - Mobile
   ============================================ */

/* Hamburger Button */
.hamburger-btn {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; /* Touch-friendly */
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px; /* Add padding to ensure proper spacing */
    z-index: 101;
    gap: 8px; /* Increased space between the three lines for clear visibility */
}

.hamburger-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark); /* Black for white background */
    border-radius: 1px;
    transition: all 0.3s ease;
    display: block;
    flex-shrink: 0; /* Prevent lines from shrinking */
    margin: 0 auto; /* Center horizontally */
    padding: 0; /* Remove any default padding */
}

/* Explicit spacing between lines for better visibility */
.hamburger-btn span:nth-child(1) {
    margin-bottom: 8px;
}

.hamburger-btn span:nth-child(2) {
    margin-bottom: 8px;
}

.hamburger-btn span:nth-child(3) {
    margin-bottom: 0;
}

.hamburger-btn.hamburger-active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.hamburger-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.hamburger-active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Show hamburger on mobile */
@media (max-width: 1023px) {
    .hamburger-btn {
        display: flex;
    }
}

/* Mobile Navigation Menu */
.nav-mobile {
    display: none; /* Hidden by default */
    width: 100%;
    background-color: var(--color-bg-white); /* White background */
    border-top: 1px solid var(--color-border-light);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.nav-mobile.nav-mobile-open {
    display: block;
    max-height: 500px; /* Sufficient height for menu */
}

.nav-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.nav-menu-mobile li {
    margin: 0;
    border-bottom: 1px solid var(--color-border-light); /* Light border for white background */
}

.nav-menu-mobile li:last-child {
    border-bottom: none;
}

.nav-menu-mobile a {
    color: var(--color-text-dark); /* Black text */
    text-decoration: none;
    font-size: 0.875rem; /* Smaller font */
    font-weight: bold; /* Bold text for mobile */
    padding: 1rem 1.5rem;
    display: block;
    transition: background-color 0.2s ease;
    min-height: 44px; /* Touch-friendly */
    line-height: 1.5;
}

.nav-menu-mobile a:hover {
    background-color: var(--color-sky-blue-light); /* Light blue hover */
    text-decoration: none;
}

/* ============================================
   COMPONENT: Container
   ============================================ */

.container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0 1rem;
}

/* Remove vertical margins from container when it directly contains content blocks (index page) */
body > .container > .content-block:first-child {
    margin-top: -1rem; /* Compensate for container top margin */
}

body > .container > .content-block:last-child {
    margin-bottom: -1rem; /* Compensate for container bottom margin */
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        margin: 1.5rem auto;
        padding: 0 1.5rem;
    }
    
    /* Compensate for container margins on tablet */
    body > .container > .content-block:first-child {
        margin-top: -1.5rem;
    }
    
    body > .container > .content-block:last-child {
        margin-bottom: -1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1600px;
        margin: 2rem auto;
        padding: 0 2rem;
    }
    
    /* Compensate for container margins on desktop */
    body > .container > .content-block:first-child {
        margin-top: -2rem;
    }
    
    body > .container > .content-block:last-child {
        margin-bottom: -2rem;
    }
}

/* ============================================
   COMPONENT: Messages (Info, Warning, etc.)
   ============================================ */

.message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    border: 1px solid;
}

.message.info {
    background-color: var(--color-sky-blue-light);
    border-color: var(--color-blue-light);
    color: var(--color-text-dark);
}

.message.warning {
    background-color: #fef3c7;
    border-color: var(--color-gold-medium);
    color: var(--color-text-dark);
}

.message.success {
    background-color: #d1fae5;
    border-color: #10b981;
    color: var(--color-text-dark);
}

.message.error {
    background-color: #fee2e2;
    border-color: #ef4444;
    color: var(--color-text-dark);
}

/* ============================================
   COMPONENT: Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 44px; /* Touch-friendly on mobile */
    line-height: 1.5;
}

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

.btn-primary:hover {
    background-color: var(--color-blue-medium);
    text-decoration: none;
}

.btn-secondary {
    background-color: var(--color-sky-blue-light);
    color: var(--color-blue-dark);
    border: 1px solid var(--color-blue-light);
}

.btn-secondary:hover {
    background-color: var(--color-sky-blue-medium);
    text-decoration: none;
}

/* Login Button - Gold and Oval */
.btn-login {
    background-color: #D8AF29; /* Darker gold */
    color: var(--color-blue-dark);
    border: none;
    border-radius: 24px; /* More oval/pill-shaped */
    padding: 0.75rem 1.75rem;
    font-weight: bold;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-login:hover {
    background-color: #E5C04A; /* Slightly lighter on hover */
    text-decoration: none;
    color: var(--color-blue-dark);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

/* CTA Button - Same style as login button */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #D8AF29; /* Same gold as login button */
    color: var(--color-blue-dark);
    border: none;
    border-radius: 24px; /* Same oval/pill-shaped */
    padding: 0.5rem 1.5rem; /* Reduced vertical padding */
    font-weight: bold;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 0.5rem;
    width: fit-content; /* Fit to content */
}

.btn-cta:hover {
    background-color: #E5C04A; /* Same hover color */
    text-decoration: none;
    color: var(--color-blue-dark);
    transform: translateY(-1px);
}

.btn-cta:active {
    transform: translateY(0);
}

/* Telegram icon inside CTA button */
.btn-cta-icon {
    height: 1.2em; /* Slightly bigger than capital letters */
    width: auto;
    vertical-align: middle;
}

.btn-gold {
    background-color: var(--color-gold-medium);
    color: var(--color-text-white);
}

.btn-gold:hover {
    background-color: var(--color-gold-light);
    text-decoration: none;
}

/* Mobile: Full-width buttons on small screens */
@media (max-width: 767px) {
    .btn {
        width: 100%;
        display: block;
    }
    
    /* CTA button stays fit-content and centered on mobile */
    .btn-cta {
        width: fit-content;
        display: inline-flex;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablet and up: Inline buttons */
@media (min-width: 768px) {
    .btn {
        width: auto;
        display: inline-block;
    }
}

/* ============================================
   COMPONENT: Cards
   ============================================ */

.card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0;
    color: var(--color-text-dark);
}

.card-body {
    color: var(--color-text-dark);
}

/* ============================================
   COMPONENT: Forms
   ============================================ */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 4px;
    font-family: Arial, sans-serif;
    min-height: 44px; /* Touch-friendly on mobile */
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-blue-medium);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */

/* Hide on mobile, show on tablet+ */
.hide-mobile {
    display: none;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}

/* Show on mobile, hide on tablet+ */
.show-mobile {
    display: block;
}

@media (min-width: 768px) {
    .show-mobile {
        display: none;
    }
}

/* ============================================
   COMPONENT: Content Blocks (Body Separation)
   ============================================ */

.content-block {
    width: 100vw; /* Full viewport width */
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 0; /* No top margin to ensure flush with header */
    margin-bottom: 0; /* No bottom margin to ensure flush with footer */
    /* Background can be customized per block in future */
}

/* Remove container margins when it contains content blocks (for index page) */
body > .container {
    margin-top: 0;
    margin-bottom: 0;
}

.content-block .container {
    margin: 0 auto;
    padding: 2rem 6px; /* Reduced horizontal padding */
    max-width: 1600px;
}

/* Remove bottom padding from login block container to eliminate gap */
.login-block .container {
    padding-bottom: 0 !important;
}

.carousel-block {
    background-color: #E6F4FF; /* Light blue background */
}

.how-it-works-block {
    /* How It Works + YouTube block - ready for custom background */
    background-color: transparent;
}

.login-block {
    background-color: #E6F4FF; /* Light blue background */
}

/* Tablet: Adjust container padding inside content blocks */
@media (min-width: 768px) {
    .content-block .container {
        padding: 3rem 6px; /* Reduced horizontal padding */
        padding-bottom: 0; /* Remove bottom padding for login block */
    }
    
    .login-block .container {
        padding-bottom: 0;
    }
}

/* Desktop: Adjust container padding inside content blocks */
@media (min-width: 1024px) {
    .content-block .container {
        padding: 4rem 6px; /* Reduced horizontal padding */
        padding-bottom: 0; /* Remove bottom padding for login block */
    }

    /* Desktop: restore bottom spacing for the hero/carousel block */
    .carousel-block > .container {
        padding-bottom: 2rem;
    }
    
    .login-block .container {
        padding-bottom: 0;
    }
}

/* ============================================
   COMPONENT: Carousel (Phase 11.3)
   ============================================ */

.carousel-container {
    width: 100%;
    margin: 2rem 0;
    position: relative;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    padding-top: 12px;
    background-image: url('/static/images/carousel_bg.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: #1a1a2e; /* Dark fallback matching the new image */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.carousel-images {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: auto;
    position: relative;
}

.carousel-slide.active {
    display: block;
}

/* Phone Mockup Container */
.carousel-slide .phone-mockup {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.carousel-slide .phone-mockup .screenshot {
    grid-area: 1 / 1;
    width: 84%;
    height: auto;
    max-height: none;
    align-self: center;
    justify-self: center;
    margin-left: 5.3%;
    display: block;
    object-fit: contain;
    border-radius: 28px;
    z-index: 1;
    box-shadow: none;
}

.carousel-slide .phone-mockup .phone-frame {
    grid-area: 1 / 1;
    width: 95%;
    height: auto;
    max-height: none;
    align-self: center;
    justify-self: center;
    margin-top: -2.5%;
    margin-left: 0.5%;
    display: block;
    z-index: 2;
    pointer-events: none;
    box-shadow: none;
}

/* Direct child img only (for slides without phone-mockup) */
.carousel-slide > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 600px;
}

.carousel-placeholder {
    padding: 4rem 2rem;
    text-align: center;
    color: var(--color-text-medium);
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-placeholder p {
    margin: 0.5rem 0;
}

/* Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(30, 58, 138, 0.8);
    color: var(--color-text-white);
    border: none;
    width: 44px; /* Touch-friendly */
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    transition: background-color 0.2s ease;
    padding: 0;
}

.carousel-arrow:hover {
    background-color: rgba(30, 58, 138, 1);
}

.carousel-arrow:active {
    background-color: rgba(30, 58, 138, 0.9);
}

.carousel-arrow-prev {
    left: 1rem;
}

.carousel-arrow-next {
    right: 1rem;
}

/* Mobile: Smaller arrows, closer to edges */
@media (max-width: 767px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-arrow-prev {
        left: 0.5rem;
    }
    
    .carousel-arrow-next {
        right: 0.5rem;
    }
    
    .carousel-images {
        min-height: 250px;
    }
    
    .carousel-slide > img {
        max-height: 400px;
    }
    
    /* Mobile: Single phone frame */
    .carousel-slide .phone-mockup {
        max-width: 280px;
    }
}

/* Tablet: Medium sizing */
@media (min-width: 768px) and (max-width: 1023px) {
    .carousel-slide > img {
        max-height: 500px;
    }
}

/* Desktop: Show 2 slides, extended to edges */
@media (min-width: 1024px) {
    .carousel-container {
        margin: 0;
        width: 100%;
        height: 100%;
    }
    
    .carousel-wrapper {
        padding: 16px 8px;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    .carousel-images {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 0;
        min-height: auto;
    }
    
    .carousel-slide {
        display: none;
        flex: 0 0 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
    
    .carousel-slide.active,
    .carousel-slide.visible {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .carousel-slide > img {
        max-height: 70vh;
        width: 100%;
        object-fit: contain;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Desktop: Two phone frames */
    .carousel-slide .phone-mockup {
        max-width: 340px;
    }
    
    .carousel-slide .phone-mockup .screenshot {
        border-radius: 32px;
        margin-left: 3.4%;
    }
    
    .carousel-slide .phone-mockup .phone-frame {
        width: 96.6%;
        margin-top: 0%;
        margin-left: 0%;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .carousel-arrow-prev {
        left: 8px;
    }
    
    .carousel-arrow-next {
        right: 8px;
    }
}

/* ============================================
   COMPONENT: Video Section (Phase 11.4)
   ============================================ */

.video-section {
    width: 100%;
    padding: 2rem 0;
    margin: 2rem 0;
    background-color: var(--color-bg-white);
}

.video-section-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.video-section-heading {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.video-section-description {
    font-size: 1rem;
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.video-section-note {
    font-size: 0.875rem;
    color: var(--color-text-medium);
    font-style: italic;
}

/* Responsive Video Wrapper (16:9 aspect ratio) */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Tablet: Video section adjustments */
@media (min-width: 768px) {
    .video-section {
        padding: 3rem 0;
        margin: 3rem 0;
    }
    
    .video-section-content {
        padding: 0 1.5rem;
    }
    
    .video-section-heading {
        font-size: 2rem;
    }
    
    .video-section-description {
        font-size: 1.1rem;
    }
}

/* Desktop: Video section adjustments */
@media (min-width: 1024px) {
    .video-section {
        padding: 4rem 0;
        margin: 4rem 0;
    }
    
    .video-section-content {
        padding: 0 2rem;
    }
    
    .video-section-heading {
        font-size: 2.25rem;
    }
    
    .video-section-description {
        font-size: 1.125rem;
    }
}

/* ============================================
   COMPONENT: Page Sections (Phase 11.5)
   ============================================ */

.page-section {
    width: 100%;
    padding: 2rem 0;
    margin: 2rem 0;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.page-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 6px; /* Reduced horizontal padding */
}

.intro-section {
    margin-bottom: 3rem;
    text-align: center;
}

.intro-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.intro-text {
    font-size: 1.125rem;
    color: var(--color-text-medium);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-content {
        padding: 0 6px; /* Reduced horizontal padding */
    }
}

@media (min-width: 1024px) {
    .page-title {
        font-size: 3rem;
    }
    
    .page-content {
        padding: 0 6px; /* Reduced horizontal padding */
    }
}

/* ============================================
   COMPONENT: Content Boxes (Phase 11.5)
   ============================================ */

.content-box {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-box {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

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

.use-case-card {
    height: 100%;
}

.use-case-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    margin-bottom: 0.75rem;
}

.use-case-description {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.use-case-examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-examples li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-medium);
}

.use-case-examples li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-blue-medium);
    font-weight: bold;
}

.value-proposition {
    height: 100%;
}

.value-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    margin-bottom: 0.75rem;
}

.value-description {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.value-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-medium);
}

.value-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-gold-medium);
    font-weight: bold;
}

/* Grid Layouts */
.use-cases-grid,
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .use-cases-grid,
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   COMPONENT: Steps Section (Phase 11.5)
   ============================================ */

.steps-section {
    margin: 3rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: var(--color-blue-dark);
    color: var(--color-text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--color-text-medium);
    line-height: 1.6;
}

.step-content code {
    background-color: var(--color-sky-blue-light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: var(--color-blue-dark);
}

@media (min-width: 768px) {
    .step-item {
        gap: 2rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* ============================================
   COMPONENT: Tips Section (Phase 11.5)
   ============================================ */

.tips-section {
    margin: 3rem 0;
}

.tip-box {
    background-color: var(--color-sky-blue-light);
    border: 1px solid var(--color-blue-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.tip-box h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.tip-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-box li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-dark);
    line-height: 1.6;
}

.tip-box li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-blue-medium);
    font-weight: bold;
}

/* ============================================
   COMPONENT: Legal Sections (Phase 11.5)
   ============================================ */

.legal-section {
    margin: 3rem 0;
}

.legal-section h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-blue-light);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.legal-section li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-dark);
    line-height: 1.7;
}

.legal-section li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-blue-medium);
    font-weight: bold;
    font-size: 1.2rem;
}

.disclaimer-section {
    background-color: #fef3c7;
    border: 2px solid var(--color-gold-medium);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.disclaimer-box {
    background-color: var(--color-bg-white);
    padding: 1.5rem;
    border-radius: 4px;
}

.disclaimer-emphasis {
    font-size: 1.125rem;
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.disclaimer-warning {
    background-color: #fee2e2;
    border-left: 4px solid #ef4444;
    padding: 1rem;
    margin-top: 1.5rem;
    color: var(--color-text-dark);
    font-weight: bold;
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    color: var(--color-text-medium);
}

/* ============================================
   COMPONENT: Contact Sections (Phase 11.5)
   ============================================ */

.author-section {
    margin-bottom: 3rem;
    text-align: center;
}

.author-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.author-info {
    max-width: 800px;
    margin: 0 auto;
}

.author-info p {
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-details-section {
    margin: 3rem 0;
}

.contact-details-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background-color: var(--color-sky-blue-light);
    border: 1px solid var(--color-blue-light);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: var(--color-blue-medium);
    font-weight: bold;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-note {
    font-size: 0.9rem;
    color: var(--color-text-medium);
    font-style: italic;
    margin-top: 0.5rem;
}

.support-section {
    margin: 3rem 0;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.support-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.support-section p {
    color: var(--color-text-medium);
    line-height: 1.8;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Screenshots Section */
.screenshots-section {
    margin: 3rem 0;
    text-align: center;
}

.screenshots-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.screenshots-note {
    background-color: var(--color-sky-blue-light);
    border: 1px solid var(--color-blue-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots-note p {
    color: var(--color-text-dark);
    margin: 0;
}

/* Video Section Embedded (for How It Works page) */
.video-section-embedded {
    margin: 3rem 0;
    text-align: center;
}

.video-section-embedded h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.video-section-embedded > p {
    color: var(--color-text-medium);
    margin-bottom: 1.5rem;
}

.video-note {
    font-size: 0.875rem;
    color: var(--color-text-medium);
    font-style: italic;
}

/* ============================================
   COMPONENT: Pricing Section (Phase 11.6)
   ============================================ */

.pricing-section {
    width: 100%;
    padding: 3rem 6px; /* Mobile: 3rem vertical, reduced horizontal */
    margin: 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem; /* Generous spacing */
}

.pricing-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-cards-container {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: stacked */
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Pricing Card Base */
.pricing-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Free Plan Card */
.pricing-card-free {
    border-color: var(--color-border-light);
}

/* Pro Plan Card (Emphasized) */
.pricing-card-pro {
    background-color: var(--color-bg-white); /* White background same as Free Tier */
    border: 1px solid var(--color-border-light); /* Same border as Free Tier */
    border-radius: 12px;
}

/* Recommended Badge */
.pricing-badge {
    position: absolute;
    top: -12px;
    right: 1.5rem;
    background-color: var(--color-gold-accent); /* Golden-orange accent */
    color: var(--color-blue-dark);
    font-size: 0.875rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.pricing-plan-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-blue-dark);
    line-height: 1;
}

.price-period {
    font-size: 1.125rem;
    color: var(--color-text-medium);
    font-weight: normal;
}

/* Features List */
.pricing-features {
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--color-text-dark);
}

.feature-check {
    flex-shrink: 0;
    color: #D8AF29; /* Gold color */
    font-weight: bold;
    font-size: 1.125rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    flex: 1;
    line-height: 1.5;
}

/* Pricing CTA */
.pricing-cta {
    margin-top: 2rem;
}

.pricing-form {
    width: 100%;
}

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

.form-input {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    background-color: var(--color-bg-white);
    color: var(--color-text-dark);
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-blue-medium);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pricing Buttons */
.btn-pricing {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    min-height: 44px; /* Touch-friendly target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-pricing-free {
    background-color: var(--color-blue-dark);
    color: var(--color-text-white);
}

.btn-pricing-free:hover {
    background-color: var(--color-blue-medium);
    text-decoration: none;
    color: var(--color-text-white);
}

.btn-pricing-pro {
    background-color: var(--color-gold-accent); /* Golden-orange accent */
    color: var(--color-blue-dark);
}

.btn-pricing-pro:hover {
    background-color: var(--color-gold-light); /* Slightly lighter golden */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: var(--color-blue-dark);
}

.btn-pricing:active {
    transform: translateY(0);
}

/* Auth Required Message */
.auth-message {
    text-align: center;
    padding: 0; /* Remove padding, button will handle it */
    background-color: transparent; /* No background, button has it */
    border: none; /* No border */
    border-radius: 0; /* No border radius */
}

.auth-message-text {
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.auth-message-link {
    color: var(--color-blue-medium);
    font-weight: bold;
    text-decoration: underline;
}

/* Style auth message button like Get Started button */
.auth-message .btn-pricing-free {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .pricing-section {
        padding: 4rem 6px; /* Reduced horizontal padding */
    }
    
    .pricing-title {
        font-size: 2.5rem;
    }
    
    .pricing-cards-container {
        gap: 2.5rem;
    }
    
    .pricing-card {
        padding: 2.5rem;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .pricing-section {
        padding: 6rem 6px; /* Reduced horizontal padding */
    }
    
    .pricing-title {
        font-size: 3rem;
    }
    
    .pricing-cards-container {
        grid-template-columns: repeat(2, 1fr); /* Desktop: side-by-side */
        gap: 3rem;
        max-width: 1100px;
    }
    
    .pricing-card {
        padding: 3rem;
    }
    
    .price-amount {
        font-size: 3rem;
    }
}

/* ============================================
   COMPONENT: Footer (Phase 11.6)
   ============================================ */

.site-footer {
    background-color: var(--color-blue-dark);
    color: var(--color-text-white);
    width: 100%;
    margin-top: 0; /* No margin to ensure flush with content blocks */
    padding: 3rem 1rem 1.5rem; /* Mobile: 3rem top, 1.5rem bottom */
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Mobile: single column */
    gap: 2rem;
    padding: 0 6px; /* Reduced horizontal padding */
    margin-bottom: 2rem;
}

.footer-column {
    text-align: center; /* Mobile: center-aligned */
}

.footer-heading {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--color-text-white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
    display: inline-block;
    min-height: 44px; /* Touch-friendly target */
    line-height: 44px;
    padding: 0 0.5rem;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 6px; /* Reduced horizontal padding */
    padding-right: 6px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .site-footer {
        padding: 4rem 6px 2rem; /* Reduced horizontal padding */
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr); /* Tablet: 3 columns */
        gap: 2.5rem;
    }
    
    .footer-column {
        text-align: left; /* Tablet+: left-aligned */
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .site-footer {
        padding: 4rem 6px 2rem; /* Reduced horizontal padding */
    }
    
    .footer-content {
        gap: 3rem;
    }
}

/* ============================================
   FINAL POLISH: Generous Spacing (Phase 11.6)
   ============================================ */

/* Apply generous vertical spacing to page sections */
.page-section {
    padding: 3rem 0; /* Mobile: 3rem */
    margin: 0;
}

.intro-section,
.use-cases-section,
.value-section,
.steps-section,
.tips-section,
.legal-section,
.author-section,
.contact-details-section,
.support-section {
    margin-bottom: 3rem; /* Mobile: 3rem between sections */
}

.page-content {
    padding: 2rem 6px; /* Mobile: 2rem vertical, reduced horizontal */
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    .page-section {
        padding: 4rem 0; /* Tablet: 4rem */
    }
    
    .intro-section,
    .use-cases-section,
    .value-section,
    .steps-section,
    .tips-section,
    .legal-section,
    .author-section,
    .contact-details-section,
    .support-section {
        margin-bottom: 4rem; /* Tablet: 4rem between sections */
    }
    
    .page-content {
        padding: 3rem 6px; /* Reduced horizontal padding */
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    .page-section {
        padding: 6rem 0; /* Desktop: 6rem */
    }
    
    .intro-section,
    .use-cases-section,
    .value-section,
    .steps-section,
    .tips-section,
    .legal-section,
    .author-section,
    .contact-details-section,
    .support-section {
        margin-bottom: 5rem; /* Desktop: 5rem between sections */
    }
    
    .page-content {
        padding: 4rem 6px; /* Reduced horizontal padding */
    }
}

/* ============================================
   FINAL POLISH: Touch-Friendly Targets (Phase 11.6)
   ============================================ */

/* Ensure all interactive elements meet 44px minimum */
.btn-primary,
.btn-secondary,
.btn-pricing,
.nav-link,
.footer-links a,
.hamburger-button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   COMPONENT: Login Section (Phase 11.6)
   ============================================ */

.login-section {
    text-align: center;
    margin-top: 4rem; /* Generous spacing from video section */
    padding: 2rem 0;
}

.login-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.login-section > p {
    color: var(--color-text-medium);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .login-section {
        margin-top: 5rem;
        padding: 3rem 0 0 0; /* Top padding only, no bottom padding */
    }
    
    .login-section h2 {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .login-section {
        margin-top: 6rem;
        padding: 4rem 0;
    }
    
    .login-section h2 {
        font-size: 2.25rem;
    }
}

/* ============================================
   FINAL POLISH: Readable Text Sizes (Phase 11.6)
   ============================================ */

/* Ensure body text is readable on mobile */
body {
    font-size: 16px; /* Base: 16px for readability */
    line-height: 1.6;
}

p, li, .feature-text, .use-case-description, .value-description {
    font-size: 1rem; /* 16px base */
    line-height: 1.6;
}

/* Ensure links are readable */
a {
    font-size: 1rem;
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
    body {
        font-size: 16px;
    }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
    body {
        font-size: 16px;
    }
}

/* ============================================
   COMPONENT: User Plan Tag (Task 3)
   ============================================ */

.plan-tag {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.75rem;
    vertical-align: middle;
    line-height: 1;
}

.plan-tag-free {
    background-color: #9ca3af; /* Grey */
    color: var(--color-text-white);
}

.plan-tag-pro {
    background-color: #10b981; /* Green */
    color: var(--color-text-white);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .plan-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        margin-right: 0.5rem;
    }
}

/* ============================================
   COMPONENT: Login Modal (Modal Popup)
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background-color: var(--color-bg-white);
    margin: 2rem auto;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border-light);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--color-text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-medium);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--color-text-dark);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--color-text-medium);
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .modal-content {
        margin: 1rem auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* ============================================
   COMPONENT: Login Info Box (Informational)
   ============================================ */

.login-info-box {
    background-color: var(--color-sky-blue-light);
    border: 1px solid var(--color-blue-light);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.login-info-box h3 {
    font-size: 1.25rem;
    color: var(--color-blue-dark);
    margin-bottom: 1rem;
}

.login-info-box p {
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.login-benefits {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.login-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-dark);
}

.login-benefits li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-blue-medium);
    font-weight: bold;
}

@media (min-width: 768px) {
    .login-info-box {
        padding: 2.5rem;
    }
}

/* ============================================
   COMPONENT: Hero Section
   ============================================ */

.hero-section {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
}

/* Mobile: Left section (text above carousel) */
.hero-left {
    margin-bottom: 2rem;
}

.hero-headline {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700; /* Bold */
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-family: 'Inter', sans-serif;
    font-weight: 600; /* Semibold */
    color: var(--color-text-dark);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
}

/* Mobile: Right section (carousel below text) */
.hero-right {
    width: 100%;
}

/* Mobile-only: Increase spacing to push carousel below fold */
@media (max-width: 767px) {
    .hero-left {
        margin-bottom: 6rem; /* Push carousel to second screen */
    }
    
    .hero-headline {
        margin-bottom: 2.5rem; /* More space below headline */
    }
    
    .hero-description {
        margin-bottom: 2.5rem;
        line-height: 1.8; /* More breathing room */
    }
    
    .hero-left .btn-cta {
        margin-top: 1.5rem; /* More space above button */
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }
}

/* Desktop: Split layout - left text, right carousel */
@media (min-width: 1024px) {
    .hero-section {
        display: flex;
        align-items: flex-start;
        padding: 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* Left half - static text (40% minus padding) */
    .hero-left {
        flex: 0 0 38%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 1rem 2rem 0 0;
        margin-bottom: 0;
    }
    
    .hero-headline {
        font-size: 2.2rem; /* -20% */
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
        line-height: 1.7;
        color: #374151;
        margin-bottom: 1.5rem;
    }
    
    /* CTA button centered on desktop */
    .hero-left .btn-cta {
        align-self: center;
    }
    
    /* Right half - carousel (62% to fill remaining space) */
    .hero-right {
        flex: 1 1 62%;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding: 0;
        max-width: 62%;
    }
}
