/* TiviLocal Website - Marketing Layer */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    height: 100px; /* Increased from 80px */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding-top: 20px; /* Moved down */
}

.logo {
    height: 54px; /* Increased from 42px */
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.nav-link:hover {
    color: white;
}

.nav-cta {
    background: var(--brand-600);
    color: white !important;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: var(--brand-700);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 100px; /* Aligned with new header height */
    left: 0;
    right: 0;
    background: #000;
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    z-index: 99;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-link {
    color: white;
    padding: 0.75rem;
    font-weight: 500;
}

.mobile-menu-link-cta {
    background: var(--brand-600);
    border-radius: var(--radius-md);
    text-align: center;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px; /* Aligned with new header height */
    background: #000;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('/images/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* CHANGED: Lowered opacity from 0.8/0.6 to 0.5/0.3 for more transparency */
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    color: white;
    margin: 0 auto; /* Center content container */
    text-align: center; /* Center text alignment */
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    font-family: 'Outfit', sans-serif;
    color: #ffffff; /* Pure white */
    /* Refined shadow to remove 'pink' bleed effect - cleaner edge */
    text-shadow: 
        1px 1px 0 var(--brand-600),
        2px 2px 0 var(--brand-600),
        -1px -1px 0 var(--brand-600),
        1px -1px 0 var(--brand-600),
        -1px 1px 0 var(--brand-600);
}

@media (max-width: 768px) {
    .hero-title {
        white-space: normal; /* Allow wrapping on mobile to prevent overflow */
    }
}

@media (min-width: 769px) {
    .hero-title {
        white-space: nowrap; /* Keep single line on desktop */
    }
}

.text-brand-600 {
    color: var(--brand-500);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto 3rem;
    max-width: 700px; /* Constrain for better readability when centered */
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: center;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-500);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* Center CTA buttons */
}

/* Sections */
.section {
    padding: 6rem 0;
}

.bg-slate-50 {
    background: var(--slate-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--slate-600);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* How It Works */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.how-step {
    text-align: center;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--brand-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
}

.how-step h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.how-step p {
    color: var(--slate-600);
    line-height: 1.7;
}

/* Trust Section */
.section-dark {
    background: #000;
    color: white;
}

.section-dark h2 {
    color: white;
}

.trust-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 2rem 0 3rem;
}

.trust-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.trust-point {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-point h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--brand-500);
}

.trust-point p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--slate-200);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-200);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-2xl);
    padding: 3rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.pricing-card.featured {
    border-color: var(--brand-600);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-600);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--slate-900);
}

.price span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-500);
}

.price-detail {
    color: var(--slate-500);
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.price-note {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-features {
    margin: 2rem 0;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--slate-700);
}

.pricing-features svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-600);
}

/* Form Container */
.form-container {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
}

.multi-step-form {
    width: 100%;
}

.form-progress {
    width: 100%;
    height: 6px;
    background: var(--slate-200);
    border-radius: var(--radius-full);
    margin-bottom: 2rem;
    overflow: hidden;
}

.form-progress-bar {
    height: 100%;
    background: var(--brand-600);
    transition: width 0.3s;
}

.form-step-indicator {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.form-step-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.form-step-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
}

.step-content {
    margin-bottom: 2.5rem;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.plan-option {
    position: relative;
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.plan-option:hover {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-md);
}

.plan-option:has(input:checked) {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.plan-option-featured {
    border-color: var(--brand-600);
}

.plan-option-badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--brand-600);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-option-header {
    margin-bottom: 0.5rem;
}

.plan-option h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.plan-option-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-600);
}

.plan-option-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-500);
}

.plan-option p {
    font-size: 0.875rem;
    color: var(--slate-600);
}

.device-count-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.device-count-option {
    cursor: pointer;
}

.device-count-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.device-count-content {
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-xl);
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.2s;
}

.device-count-option:hover .device-count-content {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-md);
}

.device-count-option:has(input:checked) .device-count-content {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.device-count-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-600);
    line-height: 1;
}

.device-count-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-600);
    margin-top: 0.5rem;
}

.form-fields {
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.time-slot-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-slot-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot-option input[type="radio"] {
    margin-right: 1rem;
}

.time-slot-option:hover {
    border-color: var(--brand-500);
}

.time-slot-option:has(input:checked) {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

.form-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--brand-50);
    color: var(--brand-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success p {
    color: var(--slate-600);
    margin-bottom: 1rem;
}

.success-details {
    color: var(--slate-500);
    font-size: 0.875rem;
}

/* Channel Modal */
.channel-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.channel-modal-content {
    background: white;
    border-radius: var(--radius-2xl);
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
}

.channel-modal-header {
    position: sticky;
    top: 0;
    background: white;
    padding: 2rem;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.channel-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--slate-400);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.channel-modal-close:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer p {
    color: var(--slate-400);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.2s, color 0.2s;
}

.footer-icon-link:hover {
    transform: translateY(-3px);
    color: var(--brand-500);
}

.footer-icon-link span {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-credits {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

.footer-credits a {
    color: var(--brand-500);
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

.made-with-love {
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .plan-options,
    .device-count-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .form-container {
        padding: 2rem 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}