@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

/* === Global Styles === */
body {
    font-family: "Inter", sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1280px; /* Equivalent to max-w-7xl */
    margin: 0 auto;
    padding: 0 16px; /* Equivalent to px-4 */
}

/* === Navigation Bar === */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 48px; /* space-x-12 (approx) */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}

.logo svg {
    width: 24px;
    height: 24px;
    margin-right: 4px;
}

.nav-desktop {
    display: none;
    gap: 32px; /* space-x-8 */
    font-size: 14px;
    font-weight: 500;
    color: #4b5563; /* gray-700 */
}

.nav-desktop a:hover {
    color: #000000;
    transition: color 0.2s;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px; /* space-x-3 */
}

.btn-chrome {
    display: none;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 9999px; /* rounded-full */
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    transition: background-color 0.2s;
}

.btn-chrome:hover {
    background-color: #f9fafb; /* gray-50 */
}

.btn-chrome svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.btn-primary {
    padding: 8px 16px;
    background-color: #facc15; /* yellow-400 */
    border-radius: 9999px; /* rounded-full */
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #eab308; /* yellow-500 */
}

.mobile-menu-btn {
    display: block;
    padding: 8px;
    color: #4b5563;
}

/* Mobile Nav Menu */
.nav-mobile {
    display: none;
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid #f3f4f6; /* gray-100 */
    margin-top: 4px;
}

.nav-mobile a {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #4b5563;
    padding: 8px 0;
    transition: color 0.2s;
}

.nav-mobile a:hover {
    color: #000000;
}

/* === Hero Section === */
.hero {
    text-align: center;
    padding: 64px 0 96px 0; /* pt-16, pb-24 */
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #4b5563;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.badge-icon {
    margin-right: 4px;
    color: #facc15; /* yellow-500 */
    font-size: 18px;
}

.badge-text {
    margin-left: 8px;
    font-weight: 900;
    color: #000000;
}

.hero-title {
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #1a1a1a;
    font-size: 48px; /* text-4xl */
    max-width: 960px; /* max-w-5xl */
    margin: 0 auto 24px auto;
}

.hero-subtitle {
    font-size: 18px;
    color: #6b7280; /* gray-600 */
    max-width: 768px; /* max-w-3xl */
    margin: 0 auto 64px auto;
}

.cta-main {
    display: inline-flex;
    align-items: center;
    padding: 20px 48px;
    background-color: #facc15;
    border-radius: 16px; /* rounded-2xl */
    font-size: 20px;
    font-weight: 900;
    color: #000000;
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    margin-bottom: 48px;
}

.cta-main:hover {
    background-color: #eab308;
    transform: scale(1.01);
}

.cta-main svg {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.app-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px; /* space-y-4 */
}

.app-link {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 250px;
    justify-content: center;
}

.app-link:hover {
    background-color: #f9fafb;
}

.app-link-icon {
    margin-right: 8px;
    font-size: 20px;
}

/* === Media Queries (Desktop) === */
@media (min-width: 640px) {
    /* sm breakpoint */
    .btn-chrome {
        display: flex;
    }
    .app-links {
        flex-direction: row;
        gap: 16px; /* space-x-4 */
    }
    .app-link {
        width: auto;
        max-width: none;
    }
}

@media (min-width: 768px) {
    /* md breakpoint */
    .nav-desktop {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
    .hero {
        padding: 96px 0 128px 0; /* sm:pt-24, sm:pb-32 */
    }
    .hero-title {
        font-size: 72px; /* md:text-7xl */
    }
}

@media (min-width: 1024px) {
    /* lg breakpoint */
    .hero {
        padding: 128px 0 160px 0; /* lg:pt-32, lg:pb-40 */
    }
    .hero-title {
        font-size: 96px; /* lg:text-8xl */
    }
}

/* === NEW SECTIONS STYLES === */

/* Capture Easily (Gray Split Section) */
.section-capture {
    background-color: #f3f4f6; /* Light gray background */
    padding: 48px 0;
    border-radius: 32px; /* Rounded corners for the entire block */
    margin: 64px auto;
}

.split-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
    padding: 32px 16px;
}

/* Center text content on desktop for split sections */
.split-text-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.split-text {
    flex: 1;
    padding: 0 16px;
}

.split-heading {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.split-subtext {
    font-size: 16px;
    color: #6b7280;
}

.split-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    background-color: #1a1a1a;
    border-radius: 32px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 300px;
    height: 480px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup-screen {
    background-color: #add8e6; /* Light blue screen base */
    border-radius: 20px;
    width: 95%;
    height: 95%;
    padding: 10px;
    position: relative;
}

/* 'Cool! Saved' pop-up inside the phone screen */
.popup-card {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
}

.popup-icon {
    font-size: 32px;
    margin-bottom: 8px;
    color: #facc15;
}

.popup-text {
    font-weight: 700;
    margin-bottom: 8px;
}

.popup-cta {
    display: block;
    background-color: #facc15;
    padding: 8px;
    border-radius: 8px;
    font-weight: 600;
    color: #1a1a1a;
}

@media (min-width: 768px) {
    .split-content {
        flex-direction: row;
        text-align: left;
        padding: 48px 0;
    }
    .split-text {
        padding-left: 0;
        order: 1;
    }
    .split-visual {
        order: 2;
    }
    .phone-mockup {
        width: 300px;
        height: 520px;
    }
    /* Flip layout for the second feature */
    .split-reverse .split-text {
        order: 2;
    }
    .split-reverse .split-visual {
        order: 1;
    }
    /* Adjust text alignment to match the visual position (right side text, left side visual) */
    .split-reverse .split-text-align {
        text-align: right;
        margin-right: 40px;
    }
    /* Add align-items: center to split-content on desktop to vertically center items */
    .split-content {
        align-items: center;
    }

    /* Center the text within the split-text column on desktop */
    .split-text-centered {
        text-align: left; /* Revert back to left-aligned text for the Capture section */
        align-items: flex-start;
    }
    .split-reverse .split-text-centered {
        align-items: flex-end; /* Align right for the Knowledge section */
    }
}

/* Use Knowledge (Black Split Section) */
.section-knowledge {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 48px 0;
    border-radius: 32px;
    margin: 64px auto;
}

.knowledge-box {
    background-color: #facc15; /* Yellow border/background */
    padding: 8px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
}

.knowledge-inner {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    color: #1a1a1a;
    height: 380px;
    overflow: hidden; /* THIS clips the image */
}

.knowledge-inner h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 16px;
}

.knowledge-steps {
    background-color: #f3f4f6;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.knowledge-steps span {
    margin-right: 8px;
    font-size: 20px;
    color: #000000;
}

@media (min-width: 768px) {
    .knowledge-box {
        max-width: 450px;
    }
}

/* Dive Deeper (Features Grid) */
.section-deeper {
    text-align: center;
    padding: 64px 0;
}

.deeper-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.deeper-heading {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.deeper-subheading {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.feature-card {
    background-color: #f3f4f6;
    border-radius: 16px;
    padding: 34px;
    justify-content: space-between;
    align-items: center;
    text-center: left;
    font-size: 18px;
    font-weight: 700;
    transition: background-color 0.2s;
}

.feature-card:hover {
    background-color: #e5e7eb;
}

.feature-icon-box {
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
}

.feature-icon-box svg {
    text-align: center;
    width: 32px;
    height: 32px;
}

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

/* FAQ Section */
.section-faq {
    padding: 64px 0 100px 0;
    text-align: center;
}

.faq-icon-chat {
    font-size: 32px;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.faq-heading {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Dropdown Styles */
.faq-item {
    background-color: #f3f4f6;
    border-radius: 16px;
    text-align: left;
    transition: background-color 0.2s;
    overflow: hidden;
}

.faq-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: inherit;
    box-sizing: border-box; /* Include padding in width/height */
}

.faq-item:hover .faq-toggle {
    background-color: #e5e7eb; /* Hover background on the button part */
}

.faq-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background-color: #d1d5db; /* gray-300 */
    border-radius: 50%;
    transition: transform 0.3s ease;
    font-size: 20px;
    margin-left: 16px;
}

.faq-arrow.open {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px; /* Space after the content */
    padding-top: 15px;
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.6;
}

/* The '' character in the Edge Store link doesn't render well. Using a simple icon or text instead. */
.icon-edge {
    font-size: 20px;
}

/* === Footer Styles === */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 32px 0;
    margin-top: 64px;
    text-align: center;
}

.footer-cta-container {
    margin-bottom: 80px;
}

.footer-heading {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #facc15; /* Yellow */
    max-width: 600px;
    margin: 0 auto 32px auto;
}

.footer-cta-button {
    display: inline-block;
    padding: 16px 40px;
    background-color: #facc15;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 900;
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(250, 204, 21, 0.4);
    transition: background-color 0.2s;
}

.footer-cta-button:hover {
    background-color: #eab308;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
    padding-bottom: 40px;
    border-top: 1px solid #333333;
    padding-top: 40px;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: #aaaaaa;
    max-width: 300px;
    margin: 0 auto 24px auto;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background-color: #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: #555555;
}

.footer-links-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.footer-link-column {
    text-align: center;
}

.footer-column-heading {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-link-list a {
    font-size: 14px;
    color: #aaaaaa;
    transition: color 0.2s;
}

.footer-link-list a:hover {
    color: #ffffff;
}

.footer-copyright {
    font-size: 14px;
    color: #aaaaaa;
    margin-top: 32px;
    text-align: center;
}

/* Pricing Section */
.section-pricing {
    padding: 64px 0;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.pricing-heading {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
}

.pricing-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 32px;
    text-align: left;
    position: relative;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* Pro Card Highlights */
.pricing-card.popular {
    background-color: #facc15; /* Yellow */
    border-color: #facc15;
    box-shadow: 0 10px 25px rgba(250, 204, 21, 0.3);
    transform: scale(1.02); /* Slightly larger */
    z-index: 1;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: white;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.plan-price span {
    font-size: 16px;
    font-weight: 500;
    color: #4b5563; /* Gray */
}

.popular .plan-price span {
    color: #1a1a1a;
}

.plan-desc {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
    min-height: 44px; /* Align descriptions */
}

.popular .plan-desc {
    color: #1a1a1a;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1; /* Pushes button down */
}

.plan-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 500;
}

.feature-check {
    margin-right: 12px;
    font-size: 18px;
}

.btn-pricing {
    display: block;
    width: 200px;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.2s;
    cursor: pointer;
    margin-left: auto;
    margin-right: auto;
}

/* Basic & Team Buttons */
.btn-pricing.outline {
    background-color: transparent;
    border: 2px solid #1a1a1a;
    color: #1a1a1a;
}

.btn-pricing.outline:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Pro Button */
.btn-pricing.solid {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
}

.btn-pricing.solid:hover {
    background-color: #333333;
    border-color: #333333;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 900px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-logo-section {
        align-items: flex-start;
    }
    .footer-description {
        margin: 0 0 24px 0;
    }
    .social-links {
        justify-content: flex-start;
    }
    .footer-links-group {
        grid-template-columns: repeat(3, 1fr);
        gap: 80px;
    }
    .footer-link-column {
        text-align: left;
    }
    .footer-copyright {
        text-align: left;
        padding-top: 20px;
        border-top: 1px solid #333333;
        width: 100%;
    }
    .main-footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-links-and-copy {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}
