/* KLEAR Notes Landing Page Styles */

/* Reset & Base */
body {
    background-color: #000000 !important; /* Deepest black for landing */
    overflow-x: hidden;
    color: white;
    position: relative;
}

/* =========================================
   Background Canvas
   ========================================= */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    /* Optional: Add a slight blur to the whole canvas for a "glowing" effect */
    filter: blur(1px); 
}

/* =========================================
   Main Styles
   ========================================= */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Nav */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.nav-logo {
    height: 30px;
    width: auto;
}

.nav-login {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: all 0.2s;
}

.nav-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Hero */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 6rem 1.5rem 2rem;
    /* Removed static gradient background to let animation show */
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px rgba(0,0,0,0.5); /* Pop text off bg */
    font-family: 'Kiona', 'Montserrat', 'Inter', sans-serif;
}

/* Apply Kiona to primary headings */
h1, h2, h3,
.section-title,
.footer-cta {
    font-family: 'Kiona', 'Montserrat', 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

/* Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: white;
    color: black;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    box-shadow: none;
}

.cta-button.secondary:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

.cta-button i {
    width: 24px;
    height: 24px;
    fill: black;
}

.cta-button.secondary i {
    fill: white;
}

.hero-buttons {
    row-gap: 14px;
}

/* Sections General */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 1; /* Ensure content sits above glow */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

/* Value Prop */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: rgba(10,10,10,0.6); /* Transparent for depth */
    backdrop-filter: blur(10px); /* Frosted glass */
    border: 1px solid rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(20,20,20,0.8);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 105, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #ccc;
    line-height: 1.6;
}

.tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.tip-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0069, #a855f7);
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 0, 105, 0.5);
}

/* Hero steps on tester-invite: force 3-up on desktop, stack on small screens */
@media (min-width: 960px) {
    .hero-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

.promise-text {
    text-align: center;
    font-size: 1.2rem;
    color: white;
    font-weight: 600;
    opacity: 0.8;
}

/* Context */
.context-section {
    text-align: center;
    /* Removed background gradient so global glow shows through */
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.context-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 1rem;
    color: var(--text-muted);
    backdrop-filter: blur(5px);
}

.context-message p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.context-message .highlight {
    color: white;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Problem/Solution */
.comparison-card {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    margin: 1rem 0;
    border: 1px solid #222;
}

.comparison-card h3 {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.comparison-card.solution {
    background: rgba(255, 0, 105, 0.05);
    border-color: var(--primary);
}

.comparison-card.solution h3 {
    color: var(--primary);
}

.comparison-card ul {
    list-style: none;
    margin-top: 1rem;
}

.comparison-card li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.comparison-card li i {
    width: 20px;
    height: 20px;
}

.arrow-down {
    text-align: center;
    color: var(--text-muted);
    margin: 1rem 0;
    opacity: 0.5;
}

/* Audience */
.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem; /* More space between yes/no */
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.audience-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.audience-col.yes h3 { color: var(--accent); }
.audience-col.no h3 { color: var(--danger); }

.audience-col ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.audience-col li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.audience-col li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
}

.audience-summary {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

/* Pricing Cards */
.pricing-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

/* Free Card */
.pricing-card.free {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Premium Card */
.pricing-card.premium {
    border: 1px solid var(--primary);
    background: rgba(255, 0, 105, 0.05);
    box-shadow: 0 0 30px rgba(255, 0, 105, 0.1); /* Subtle glow */
}

.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: black;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 2rem 0;
    color: white;
}

.price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    padding: 0;
    flex: 1; /* Push button to bottom */
}

.features-list li {
    display: flex;
    align-items: center; /* Center icon vertically */
    gap: 10px;
    margin-bottom: 12px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.features-list li i {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.features-list li strong {
    color: white;
}

/* Fix CTA Buttons in Cards */
.pricing-card .cta-button {
    width: 100%; /* Full width */
    margin-top: auto;
    box-sizing: border-box;
}

/* Footer */
.footer-section {
    text-align: center;
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 2;
}

.footer-cta {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

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

.copyright {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

/* How it works section */
.how-section {
    padding: 4rem 1.5rem;
}

.how-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.how-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.how-item.reverse {
    flex-direction: row-reverse;
}

.how-img {
    flex: 1 1 45%;
    min-width: 260px;
    display: flex;
    justify-content: center;
}

.how-img img {
    width: 100%;
    max-width: 360px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.how-text {
    flex: 1 1 50%;
    min-width: 260px;
}

.how-text h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.how-text p {
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .how-item,
    .how-item.reverse {
        flex-direction: row;
        align-items: flex-start;
    }
    .how-img {
        flex: 0 0 45%;
        min-width: 180px;
    }
    .how-text {
        flex: 1 1 55%;
    }
}

@media (max-width: 540px) {
    .how-item,
    .how-item.reverse {
        flex-direction: column;
    }
    .how-img {
        width: 100%;
        flex: 1 1 auto;
    }
    .how-text {
        width: 100%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-cta {
        font-size: 2rem;
    }
    
    .pricing-card.premium {
        transform: scale(1);
    }
}

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