/* RoutineOS - Main Landing Page Stylesheet (Scoped to RoutineOS Brand Colors) */
:root {
    --landing-primary: #6b2d82;
    --landing-primary-hover: #552069;
    --landing-primary-light: #f5ebf9;
    --landing-secondary: #70cf33;
    --landing-secondary-hover: #5cb124;
    --landing-accent: #70cf33;
    --landing-dark: #292d32;
    --landing-dark-light: #3d4248;
    --landing-slate: #5d6570;
    --landing-slate-light: #f8fafc;
    --landing-border: #e2e8f0;
    --landing-white: #ffffff;
    --landing-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --landing-shadow-md: 0 4px 15px rgba(107, 45, 130, 0.08);
    --landing-shadow-lg: 0 10px 30px rgba(107, 45, 130, 0.12);
    --landing-shadow-xl: 0 20px 45px rgba(107, 45, 130, 0.16);
    --landing-font: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

#landing-view {
    font-family: var(--landing-font);
    color: var(--landing-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: clip;
}

#landing-view * {
    box-sizing: border-box;
}

/* Container */
#landing-view .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
#landing-view h1, #landing-view h2, #landing-view h3, #landing-view h4,
.landing-modal h1, .landing-modal h2, .landing-modal h3, .landing-modal h4 {
    color: var(--landing-dark);
    font-weight: 800;
    line-height: 1.25;
}

#landing-view p {
    color: var(--landing-slate);
}

/* Badge */
#landing-view .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f5ebf9;
    color: var(--landing-primary);
    border: 1px solid #e3c6ef;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* Buttons */
#landing-view .btn, .landing-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
}

#landing-view .btn-primary, .landing-modal .btn-primary {
    background: linear-gradient(135deg, #6b2d82 0%, #8636a4 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(107, 45, 130, 0.35);
}

#landing-view .btn-primary:hover, .landing-modal .btn-primary:hover {
    background: linear-gradient(135deg, #552069 0%, #6b2d82 100%);
    box-shadow: 0 6px 20px rgba(107, 45, 130, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

#landing-view .btn-secondary, .landing-modal .btn-secondary {
    background: #ffffff;
    color: var(--landing-dark);
    border: 1.5px solid var(--landing-border);
}

#landing-view .btn-secondary:hover, .landing-modal .btn-secondary:hover {
    background: var(--landing-slate-light);
    border-color: #cbd5e1;
    color: var(--landing-primary);
}

#landing-view .btn-lg, .landing-modal .btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

#landing-view .btn-block, .landing-modal .btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    z-index: 9999;
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--landing-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--landing-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--landing-dark);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 70px 0 60px;
    text-align: center;
    background: radial-gradient(circle at 50% 0%, #faf3fc 0%, #ffffff 75%);
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 920px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.3rem;
    letter-spacing: -1.5px;
    margin: 22px 0 20px;
    font-weight: 900;
    line-height: 1.2;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #6b2d82 0%, #70cf33 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--landing-slate);
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.hero-guarantee {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 0.9rem;
    color: var(--landing-slate);
    font-weight: 600;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.hero-guarantee span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-guarantee i {
    color: var(--landing-accent);
}

/* Hero Preview / App Mockup */
.hero-preview {
    margin-top: 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: var(--landing-shadow-xl);
    border: 1px solid rgba(226, 232, 240, 0.9);
    overflow: hidden;
    text-align: left;
}

.hero-preview-topbar {
    background: #f8fafc;
    padding: 12px 18px;
    border-bottom: 1px solid var(--landing-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-preview-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #70cf33; }

.hero-preview-body {
    padding: 30px;
    background: #f8fafc;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.mockup-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--landing-shadow-sm);
    border: 1px solid var(--landing-border);
}

.mockup-card-title {
    font-size: 0.85rem;
    color: var(--landing-slate);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mockup-card-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--landing-dark);
    margin-bottom: 4px;
}

/* Stats Banner */
#landing-view .stats-banner {
    background: #25282d;
    color: #ffffff;
    padding: 45px 0;
}

#landing-view .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

#landing-view .stat-box h3 {
    color: #ffffff !important;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: -1px;
}

#landing-view .stat-box p {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

/* Sections */
.section {
    padding: 85px 0;
}

.section-bg {
    background-color: #f8fafc;
}

.section-head {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 55px;
}

.section-head h2 {
    font-size: 2.4rem;
    letter-spacing: -0.8px;
    margin: 15px 0 12px;
}

.section-head p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Problem vs Solution */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.comp-card {
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--landing-border);
}

.comp-card.pain {
    background: #fff5f5;
    border-color: #fecaca;
}

.comp-card.gain {
    background: #f4fbf0;
    border-color: #d1f2be;
}

.comp-card h3 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.comp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.5;
}

.comp-card.pain .comp-list li i {
    color: #ef4444;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.comp-card.gain .comp-list li i {
    color: #70cf33;
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.feat-item {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--landing-shadow-lg);
    border-color: #cbd5e1;
}

.feat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f5ebf9;
    color: var(--landing-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.feat-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feat-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feat-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--landing-primary);
    background: #f5ebf9;
    padding: 4px 10px;
    border-radius: 6px;
    align-self: flex-start;
}

/* Pricing Grid - 4 Columns in One Row */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.price-card {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 20px;
    padding: 32px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--landing-shadow-sm);
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--landing-shadow-xl);
}

.price-card.popular {
    border: 2px solid var(--landing-primary);
    box-shadow: 0 10px 35px rgba(107, 45, 130, 0.15);
    background: linear-gradient(180deg, #ffffff 0%, #fdfafe 100%);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6b2d82 0%, #70cf33 100%);
    color: #ffffff;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.plan-header h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.plan-desc-text {
    font-size: 0.88rem;
    color: var(--landing-slate);
    min-height: 44px;
    white-space: pre-line;
    line-height: 1.5;
}

.plan-cost {
    margin: 18px 0 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
}

.plan-cost .amount {
    font-size: 1.65rem;
    font-weight: 900;
    color: var(--landing-dark);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.plan-cost .period {
    color: var(--landing-slate);
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

.plan-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 0;
    margin: 0 0 25px;
}

.plan-features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--landing-dark-light);
    line-height: 1.4;
}

.plan-features-list li i {
    color: var(--landing-accent);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.trial-guarantee-note {
    text-align: center;
    margin-top: 35px;
    padding: 15px 25px;
    background: #f4fbf0;
    border: 1px solid #c9efb0;
    border-radius: 12px;
    color: #2e6912;
    font-size: 0.95rem;
}

/* FAQ */
.faq-grid {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--landing-border);
    border-radius: 12px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-item h4 {
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item h4 i {
    color: var(--landing-slate);
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.faq-item p {
    font-size: 0.95rem;
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Final CTA */
#landing-view .final-cta {
    background: linear-gradient(135deg, #381544 0%, #1f0b27 100%);
    color: #ffffff;
    text-align: center;
    padding: 80px 0;
}

#landing-view .final-cta h2 {
    color: #ffffff !important;
    font-size: 2.6rem;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

#landing-view .final-cta p {
    color: #ffffff !important;
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 35px;
    opacity: 0.95;
}

/* Footer */
#landing-view .site-footer {
    background: #1f2227;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px 0 20px;
}

#landing-view .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#landing-view .site-footer p {
    color: #cbd5e1 !important;
}

#landing-view .footer-copy {
    text-align: center;
    color: #94a3b8 !important;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Modal Overlay & Card (Shared for Register & Login) */
.landing-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(25, 20, 30, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 14px;
    overflow-y: auto;
}

.landing-modal .modal-card {
    background: #ffffff;
    border-radius: 18px;
    max-width: 530px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: landingModalPop 0.25s ease-out;
    margin: auto;
}

@keyframes landingModalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.landing-modal .modal-header {
    background: linear-gradient(135deg, #faf5fc 0%, #f4e9f7 100%);
    padding: 14px 20px;
    border-bottom: 1px solid var(--landing-border);
    position: relative;
    flex-shrink: 0;
}

.landing-modal .modal-close-btn {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--landing-slate);
    cursor: pointer;
    line-height: 1;
}

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

.landing-modal .modal-header h3 {
    font-size: 1.18rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.landing-modal .modal-header p {
    font-size: 0.8rem;
    margin: 0;
    color: var(--landing-slate);
}

.landing-modal .modal-body {
    padding: 16px 20px;
    overflow-y: auto;
}

.landing-modal .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.landing-modal .form-group {
    margin-bottom: 10px;
}

.landing-modal .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--landing-dark);
    margin-bottom: 4px;
}

.landing-modal .form-control {
    width: 100%;
    padding: 8px 12px;
    border-radius: 7px;
    border: 1.5px solid var(--landing-border);
    font-family: inherit;
    font-size: 0.88rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

.landing-modal .form-control:focus {
    outline: none;
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(107, 45, 130, 0.15);
}

@media (max-width: 576px) {
    .landing-modal .form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Responsive */
@media (max-width: 1199px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.6rem; }
    .mockup-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .comparison-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-btn { display: block; }
    .hero-title { font-size: 2.1rem; }
    .mockup-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .footer-inner { flex-direction: column; gap: 15px; text-align: center; }
}
