/* ==========================================
   Account Simple Online - Landing Page
   Builds on the dark theme and glow in index.css
   ========================================== */

html {
    scroll-behavior: smooth;
}

.lp-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.lp-narrow {
    max-width: 820px;
}

.lp-section {
    position: relative;
    padding: 96px 20px;
}

.lp-center {
    text-align: center;
}

.lp-center .lp-lead {
    margin-left: auto;
    margin-right: auto;
}

.lp-eyebrow {
    margin: 0 0 14px;
    color: var(--glow-color-intense);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.lp-subheading {
    margin: 0 0 6px;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.lp-eyebrow.lp-tagline {
    font-size: 0.95rem;
}

.lp-h2 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.15;
}

.lp-lead {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.6;
}

.lp-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 10px;
    border: 1px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

.lp-tag-dev {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.12);
    color: #fcd34d;
}

/* ---------- Buttons ---------- */

.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lp-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

.lp-btn-login {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.lp-btn-login:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5), 0 0 20px var(--glow-color);
}

.lp-btn-signup {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.lp-btn-signup:hover {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

/* ---------- Hero ---------- */

/* The scroll cue comes from index.css; here it is a link, so drop the underline */
a.scroll-indicator,
a.scroll-indicator:hover {
    text-decoration: none;
}

.lp-hero {
    /* Fills the first screen below the sticky navbar; taller content simply grows the section.
       The page is zoomed by --app-scale (all.css), which scales a min-height too, so divide it back out. */
    display: flex;
    align-items: center;
    min-height: calc((100vh - var(--lp-nav-height, 68px)) / var(--app-scale, 1));
    padding: 60px 20px 90px;
    overflow: clip;
    background:
        radial-gradient(900px 500px at 82% 18%, rgba(124, 191, 255, 0.15), transparent 60%),
        radial-gradient(700px 420px at 8% 92%, rgba(139, 92, 246, 0.13), transparent 60%),
        linear-gradient(180deg, var(--dark-bg-1) 0%, var(--dark-bg-2) 100%);
}

.lp-hero-grid {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.lp-hero h1 {
    margin: 0 0 20px;
    color: var(--text-primary);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 0 30px var(--glow-color-soft);
}

.lp-accent {
    background: linear-gradient(90deg, #7cbfff, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.lp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0 16px;
}

.lp-actions-center {
    justify-content: center;
    margin-bottom: 0;
}

.lp-fineprint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Browser window frame shared by every screenshot */
.lp-browser {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--dark-bg-3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 50px var(--glow-color-soft);
}

.lp-browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--dark-bg-4);
}

.lp-browser-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ef4444;
}

.lp-browser-bar i:nth-child(2) {
    background: #f59e0b;
}

.lp-browser-bar i:nth-child(3) {
    background: #34d399;
}

.lp-browser-bar span {
    flex: 1;
    max-width: 260px;
    margin-left: 10px;
    padding: 3px 14px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--dark-bg-2);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lp-browser img {
    display: block;
    width: 100%;
    height: auto;
}

/* The hero composite: a browser window with the phone resting on its lower right corner */
.lp-hero-visual {
    position: relative;
    padding: 0 13% 15% 0;
}

.lp-phone {
    width: 30%;
    margin: 0;
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(124, 191, 255, 0.35);
    border-radius: 28px;
    background: #0b0d12;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px var(--glow-color-soft);
}

.lp-phone img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

.lp-hero-visual .lp-phone {
    position: absolute;
    right: 0;
    bottom: 0;
}

/* A custom banner replaces the composite: copy on top, banner below */
.lp-hero--banner .lp-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
}

.lp-hero--banner .lp-lead {
    margin-left: auto;
    margin-right: auto;
}

.lp-hero--banner .lp-hero-actions {
    justify-content: center;
}

.lp-banner {
    margin: 0;
}

.lp-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 50px var(--glow-color-soft);
}

/* ---------- Feature showcase ---------- */

/* Jumping here from the scroll cue should not tuck the heading under the sticky navbar */
#features {
    scroll-margin-top: calc(var(--lp-nav-height, 68px) / var(--app-scale, 1));
}

.lp-showcase {
    background: linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg-3) 50%, var(--dark-bg-2) 100%);
}

.lp-showcase::before,
.lp-audience::before,
.lp-bookkeepers::before,
.lp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glow-color-soft), transparent);
}

.lp-feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 64px;
    align-items: center;
    padding: 56px 0 24px;
}

.lp-feature.is-reversed .lp-feature-text {
    order: 2;
}

.lp-feature h3 {
    margin: 0 0 14px;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.lp-feature p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.lp-checks {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.lp-checks li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.5;
}

.lp-checks i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--accent-green);
}

/* Paper report card; it fades out at the bottom to suggest more page below */
.lp-paper {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-color-soft);
}

.lp-paper img {
    display: block;
    width: 100%;
    height: auto;
}

.lp-paper::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 22%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

.lp-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.lp-phone-stage::before {
    content: '';
    position: absolute;
    inset: 10% 20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 191, 255, 0.22), transparent 70%);
}

.lp-phone-stage .lp-phone {
    position: relative;
    width: min(260px, 70%);
}

/* ---------- Audience ---------- */

.lp-audience {
    background: linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg-1) 100%);
}

.lp-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.lp-card {
    padding: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--dark-bg-2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lp-card:hover {
    transform: translateY(-4px);
    border-color: var(--glow-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-color-soft);
}

.lp-card-icon {
    margin-bottom: 16px;
    color: var(--glow-color-intense);
    font-size: 2.2rem;
}

.lp-card h3 {
    margin: 0 0 12px;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.lp-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Bookkeepers and AI ---------- */

.lp-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.lp-bookkeepers {
    background: linear-gradient(180deg, var(--dark-bg-3) 0%, var(--dark-bg-4) 100%);
}

.lp-tiles {
    display: grid;
    gap: 16px;
}

.lp-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--dark-bg-2);
}

.lp-tile > i {
    flex: 0 0 auto;
    color: var(--accent-yellow);
    font-size: 1.8rem;
}

.lp-tile h3 {
    margin: 0 0 4px;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.lp-tile p {
    margin: 0;
    color: var(--text-secondary);
}

.lp-ai {
    background: linear-gradient(180deg, var(--dark-bg-4) 0%, var(--dark-bg-2) 100%);
}

.lp-ask {
    padding: 28px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: var(--dark-bg-2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px var(--glow-color-soft);
}

.lp-ask-title {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

.lp-chip {
    display: block;
    margin-bottom: 12px;
    padding: 12px 18px;
    border: 1px solid var(--border-subtle);
    border-radius: 14px 14px 14px 4px;
    background: var(--dark-bg-3);
    color: var(--text-primary);
}

.lp-chip:last-child {
    margin-bottom: 0;
}

/* ---------- FAQ ---------- */

.lp-faq {
    background: var(--dark-bg-2);
}

.lp-faq-item {
    margin-top: 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    background: var(--dark-bg-3);
}

.lp-faq-item summary {
    padding: 18px 22px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.lp-faq-item summary::-webkit-details-marker {
    display: none;
}

.lp-faq-item summary::after {
    content: '+';
    float: right;
    color: var(--glow-color-intense);
    font-size: 1.4rem;
    line-height: 1;
}

.lp-faq-item[open] summary::after {
    content: '\2212';
}

.lp-faq-item p {
    margin: 0;
    padding: 0 22px 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Video ---------- */

/* The video card glows on hover like every other card on the page */
#tutorial-section .info-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#tutorial-section .info-card:hover {
    border-color: var(--glow-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-color-soft);
}

/* ---------- Call to action and meadow ---------- */

.lp-cta {
    padding-bottom: 0;
    background: linear-gradient(180deg, var(--dark-bg-2) 0%, var(--dark-bg-3) 100%);
}

.lp-cta-card {
    max-width: 820px;
    margin: 0 auto;
    padding: 52px 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    background: var(--dark-bg-3);
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px var(--glow-color-soft);
}

.lp-cta-card .lp-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Full width, so the unicorn walks in from the edge of the screen */
.lp-meadow {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 230px;
    margin: 20px -20px 0;
    padding-top: 10px;
    overflow: clip;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(52, 211, 153, 0.12), transparent 40%);
}

/* ---------- Reveal on scroll ---------- */

.lp-js .lp-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.lp-js .lp-reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .lp-js .lp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .lp-section {
        padding: 64px 20px;
    }

    .lp-section.lp-cta {
        padding-bottom: 0;
    }

    .lp-hero {
        padding: 56px 20px 72px;
    }

    .lp-hero-grid,
    .lp-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .lp-hero h1 {
        font-size: 2.4rem;
    }

    .lp-h2 {
        font-size: 1.9rem;
    }

    .lp-feature {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 0 12px;
    }

    .lp-feature.is-reversed .lp-feature-text {
        order: 0;
    }

    .lp-cards {
        grid-template-columns: 1fr;
    }

    .lp-hero-visual {
        max-width: 640px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .lp-hero h1 {
        font-size: 2rem;
    }

    .lp-lead {
        font-size: 1.05rem;
    }

    .lp-btn {
        width: 100%;
    }

    .lp-feature h3 {
        font-size: 1.5rem;
    }

    .lp-cta-card {
        padding: 36px 20px;
    }

    .lp-phone {
        border-radius: 22px;
    }

    .lp-phone img {
        border-radius: 17px;
    }
}
