/**
 * Landing Page Styles
 *
 * Shared styles for all public landing pages (index, checks, features, pricing, terms).
 * Requires custom.css to be loaded first for CSS variables.
 */

html {
    scroll-padding-top: 70px;
}

/* ==================== Navbar ==================== */
.landing-navbar {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s, border-color 0.3s;
}
.landing-navbar.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
    border-color: var(--border);
}
.landing-navbar .navbar-brand {
    color: var(--text);
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
}
.landing-navbar .navbar-brand:hover {
    color: var(--primary);
}
.landing-navbar .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
    text-decoration: none;
}
.landing-navbar .nav-link:hover {
    color: var(--text);
}
.landing-navbar .btn-nav-cta {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
}
.landing-navbar .btn-nav-cta:hover {
    background: var(--primary-hover);
    color: white;
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: #FFFAF5;
    color: var(--text);
    padding: 60px 0;
    padding-top: 140px;
    text-align: center;
}
.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
}
.hero-section .lead {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== Page Headers ==================== */
.page-header {
    background: var(--primary-50);
    color: var(--text);
    padding: 60px 0 40px;
    padding-top: 120px;
    border-bottom: 1px solid var(--border-light);
}
.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.page-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* terms-header kept for backwards compat */
.terms-header {
    background: var(--primary-50);
    color: var(--text);
    padding: 60px 0 40px;
    padding-top: 120px;
    border-bottom: 1px solid var(--border-light);
}

/* ==================== Feature Cards ==================== */
.feature-card {
    border: 1px solid var(--border);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ==================== Stats Section ==================== */
.stats-section {
    background-color: var(--bg);
    padding: 60px 0;
}
.stat-item {
    text-align: center;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: var(--primary-50);
    color: var(--text);
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}
.btn-hero {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 50px;
    font-weight: 600;
}
.btn-hero.btn-light:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ==================== How It Works ==================== */
.how-it-works {
    padding: 80px 0;
}
.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* ==================== Pricing ==================== */
.pricing-section {
    padding: 80px 0;
    background: white;
}
.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    padding: 6px;
    border-radius: 50px;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}
.pricing-toggle button {
    border: none;
    background: none;
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}
.pricing-toggle button.active {
    background: var(--primary);
    color: white;
}
.pricing-toggle .save-badge {
    background: var(--success);
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
}
.pricing-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: white;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(233, 84, 32, 0.15);
}
.pricing-card .popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-card .plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.pricing-card .plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.03em;
}
.pricing-card .price .currency {
    font-size: 1.3rem;
    vertical-align: top;
    margin-right: 2px;
}
.pricing-card .price-period {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.pricing-card .price-alt {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}
.pricing-card .features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.pricing-card .features-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}
.pricing-card .features-list li:last-child {
    border-bottom: none;
}
.pricing-card .features-list .bi-check-circle-fill {
    color: var(--success);
}
.pricing-card .features-list .bi-x-circle {
    color: var(--text-muted);
}
.pricing-card .btn-plan {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}
.pricing-enterprise {
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    background: var(--bg);
}
.pricing-enterprise h4 {
    font-weight: 700;
    color: var(--text);
}
.pricing-enterprise p {
    font-size: 0.95rem;
    max-width: 540px;
}

/* ==================== Terms Content ==================== */
.terms-content {
    padding: 60px 0;
}
.terms-content h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}
.terms-content p, .terms-content li {
    color: #334155;
    line-height: 1.8;
}

/* ==================== Checks Page ==================== */
.category-section {
    margin-bottom: 3rem;
}
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}
.category-header .category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}
.category-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.category-header .category-count {
    background: var(--primary-50);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
}
.category-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.check-list li:last-child {
    border-bottom: none;
}
.check-name {
    font-weight: 600;
    color: var(--text);
    min-width: 180px;
    flex-shrink: 0;
}
.check-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==================== Features Page ==================== */
.feature-section {
    padding: 60px 0;
}
.feature-section:nth-child(even) {
    background: var(--bg);
}
.feature-block {
    margin-bottom: 2.5rem;
}
.feature-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}
.feature-block h3 i {
    color: var(--primary);
    margin-right: 8px;
}
.feature-block p {
    color: #334155;
    line-height: 1.7;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.feature-grid-item {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.15s;
}
.feature-grid-item:hover {
    border-color: var(--primary);
}
.feature-grid-item i {
    color: var(--success);
    flex-shrink: 0;
}
.frequency-table {
    width: 100%;
    border-collapse: collapse;
}
.frequency-table th,
.frequency-table td {
    padding: 10px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.frequency-table th {
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.frequency-table td {
    color: #334155;
    font-size: 0.9rem;
}
.frequency-table tr:hover td {
    background: var(--primary-50);
}
.operator-badge {
    display: inline-block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 12px;
    font-size: 0.85rem;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: var(--text);
    margin: 3px;
}

/* ==================== Hero Actions & Buttons ==================== */
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
/* For dark/gradient backgrounds */
.btn-hero-white {
    background: white !important;
    color: var(--primary) !important;
    border: 2px solid white !important;
}
.btn-hero-white:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: var(--primary-hover) !important;
}
/* For light backgrounds */
.btn-hero-primary {
    background: var(--primary) !important;
    color: white !important;
    border: 2px solid var(--primary) !important;
}
.btn-hero-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: white !important;
}
.btn-hero-outline {
    background: transparent !important;
    color: var(--text) !important;
    border: 2px solid var(--border) !important;
}
.btn-hero-outline:hover {
    border-color: var(--text-secondary) !important;
    color: var(--text) !important;
}

/* ==================== Hero Mockup ==================== */
.hero-mockup {
    max-width: 720px;
    margin: 3rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
    background: #fff;
    text-align: left;
}
.mockup-chrome {
    background: #f4f4f5;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e4e4e7;
}
.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }
.mockup-url {
    background: #fff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #71717a;
    flex: 1;
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.mockup-body {
    padding: 12px 16px;
}
.mockup-row {
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    gap: 14px;
}
.mockup-row:nth-child(even) {
    background: #fafafa;
}
.mockup-icon {
    width: 18px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.mockup-row.pass .mockup-icon { color: var(--success); }
.mockup-row.fail .mockup-icon { color: var(--danger); }
.mockup-name {
    font-weight: 600;
    color: var(--text);
    min-width: 140px;
    flex-shrink: 0;
    font-size: 0.85rem;
}
.mockup-value {
    color: var(--text-muted);
    font-family: 'SF Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mockup-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 50px;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mockup-badge.pass {
    background: var(--success-light);
    color: var(--success);
}
.mockup-badge.fail {
    background: var(--danger-light);
    color: var(--danger);
}

/* ==================== Trust Bar ==================== */
.trust-bar {
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    background: white;
}
.trust-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.trust-item {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.trust-item strong {
    color: var(--primary);
    font-weight: 700;
}

/* ==================== Category Mini Grid ==================== */
.category-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}
.category-mini-item {
    padding: 24px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.category-mini-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.category-mini-item .cat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    margin-bottom: 12px;
}
.category-mini-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.category-mini-item .cat-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
}
.category-mini-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ==================== Mobile Menu ==================== */
.mobile-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.4rem;
    padding: 4px 0;
    line-height: 1;
    cursor: pointer;
}
.mobile-nav {
    padding: 0.5rem 1rem 1rem;
    border-top: 1px solid var(--border-light);
}
.mobile-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    font-size: 0.95rem;
}
.mobile-nav a:hover {
    background: var(--primary-50);
    color: var(--primary);
}

/* ==================== Landing Footer ==================== */
.landing-footer {
    background: #fafafa;
    color: var(--text-secondary);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border);
}
.landing-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}
.landing-footer a:hover {
    color: var(--primary);
}
.landing-footer .footer-heading {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.landing-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.landing-footer .footer-links li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}
.landing-footer .footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==================== Responsive ==================== */
@media (min-width: 1200px) {
    .pricing-card { padding: 1.75rem; }
    .pricing-card .price { font-size: 2.5rem; }
}
@media (max-width: 768px) {
    .hero-section { padding-top: 120px; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section .lead { font-size: 1rem; }
    .hero-section .hero-br { display: none; }
    .hero-mockup { margin-left: -8px; margin-right: -8px; border-radius: var(--radius-md); }
    .mockup-name { min-width: 110px; }
    .mockup-value { display: none; }
    .trust-items { gap: 1.5rem; }
    .trust-item { font-size: 0.85rem; }
    .category-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .check-list li { flex-direction: column; gap: 4px; }
    .check-name { min-width: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .page-header { padding-top: 100px; }
    .page-header h1 { font-size: 2rem; }
    .pricing-card .price { font-size: 2.2rem; }
}
@media (max-width: 480px) {
    .hero-section h1 { font-size: 1.8rem; }
    .category-mini-grid { grid-template-columns: 1fr; }
    .trust-items { flex-direction: column; gap: 0.5rem; }
}
