/* Lapsely page styles — dark charcoal-green + lime, matching the app + App Store
   marketing panels. Layout primitives, header/nav, footer shell, .grain and the
   base :root tokens come from ../styles.css; this file rebrands the shared purple/
   teal accents to lime, adds the landing-page sections, and carries the legal
   (privacy / EULA) document styling. Loaded only on Lapsely pages, so the
   overrides below are safely global. */

:root {
    --lapsely-lime: #aef85a;        /* brand lime (panels: 0.68,0.98,0.36) */
    --lapsely-lime-2: #7fe04a;      /* mid green — gradients / hover */
    --lapsely-lime-deep: #63c531;   /* deep green — gradient end */
    --lapsely-ink: #0c0f08;         /* deep charcoal-green background */
    --lapsely-ink-2: #060803;
    --lapsely-accent: var(--lapsely-lime);
    --lapsely-accent-2: var(--lapsely-lime-2);
}

/* ---- Brand overrides (rebrand shared purple/teal -> lime) ---- */
body {
    background-color: var(--lapsely-ink);
}

body::before {
    background:
        radial-gradient(circle at 22% 16%, rgba(127, 224, 74, 0.15) 0%, transparent 52%),
        radial-gradient(circle at 82% 78%, rgba(99, 197, 49, 0.11) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(174, 248, 90, 0.06) 0%, transparent 55%);
}

.logo,
.footer-logo {
    background: linear-gradient(135deg, var(--lapsely-lime), var(--lapsely-lime-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-dot {
    color: var(--lapsely-lime);
    -webkit-text-fill-color: var(--lapsely-lime);
}

/* ---- Hero ---- */
.lapsely-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--spacing-2xl) + 60px);
    padding-bottom: var(--spacing-xl);
}

.lapsely-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.lapsely-app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
}

.lapsely-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lapsely-app-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.lapsely-title {
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.lapsely-title .title-line {
    display: block;
    opacity: 1;
    transform: none;
    animation: none;
    color: var(--color-text);
}

.lapsely-title .title-line--accent {
    background: linear-gradient(135deg, var(--lapsely-lime), var(--lapsely-lime-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lapsely-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 520px;
}

.lapsely-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.lapsely-cta-note {
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
}

/* Download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.download-btn--primary {
    background: linear-gradient(135deg, #000000 0%, #16180f 100%);
    color: #ffffff;
    border: 1px solid rgba(174, 248, 90, 0.25);
}

.download-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(127, 224, 74, 0.22);
    border-color: rgba(174, 248, 90, 0.5);
}

.download-icon { width: 24px; height: 24px; }

.download-text { display: flex; flex-direction: column; text-align: left; }

.download-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.download-store { font-size: 1.1rem; font-weight: 600; }

/* Hero phone */
.lapsely-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: relative;
    max-width: 296px;
    border-radius: 46px;
    overflow: hidden;
    box-shadow:
        0 44px 90px rgba(0, 0, 0, 0.55),
        0 0 90px rgba(127, 224, 74, 0.14),
        0 0 0 10px #23281c,
        0 0 0 12px #464d38;
}

.hero-phone-screen {
    width: 100%;
    height: auto;
    display: block;
}

/* ---- Marketing gallery (Apple-style horizontal scroll) ---- */
.marketing-gallery {
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.gallery-scroll {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--spacing-md) var(--spacing-lg);
}

.gallery-scroll::-webkit-scrollbar { display: none; }

.marketing-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.marketing-card:hover { transform: scale(1.02); }

.marketing-image {
    height: 620px;
    width: auto;
    display: block;
    border-radius: var(--radius-xl);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--lapsely-lime);
}

/* ---- Section headers ---- */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--lapsely-lime);
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

/* ---- Modes ---- */
.modes-section { padding: var(--spacing-xl) 0; }

.mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.mode-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: rgba(174, 248, 90, 0.4);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

.mode-icon {
    width: 68px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(160deg, var(--lapsely-lime) 0%, var(--lapsely-lime-deep) 100%);
    color: var(--lapsely-ink);
    box-shadow: 0 8px 20px rgba(99, 197, 49, 0.25);
}

.mode-icon svg { width: 36px; height: 36px; }

.mode-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.mode-desc {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---- Studio / feature grid ---- */
.studio-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(127, 224, 74, 0.04) 50%, transparent 100%);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    padding: var(--spacing-md);
    text-align: left;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: var(--spacing-sm);
    background: rgba(174, 248, 90, 0.1);
    border: 1px solid rgba(174, 248, 90, 0.25);
    color: var(--lapsely-lime);
}

.feature-icon svg { width: 30px; height: 30px; }

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.feature-desc {
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ---- Download section ---- */
.download-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(127, 224, 74, 0.06) 100%);
}

.download-header { text-align: center; margin-bottom: var(--spacing-xl); }

.download-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.download-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

.download-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 700px;
    margin: 0 auto;
}

.download-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(174, 248, 90, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.download-card--coming-soon { opacity: 0.6; }
.download-card--coming-soon:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.1); }

.download-card-header { margin-bottom: var(--spacing-sm); }

.platform-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-tertiary);
}

.platform-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
}

.platform-requirements {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.store-badge { display: inline-block; }
.badge-image { height: 50px; width: auto; }
.badge-image--play { height: 70px; margin: -10px 0; }
.store-badge--disabled { opacity: 0.4; filter: grayscale(1); cursor: not-allowed; }

/* ---- Privacy banner ---- */
.privacy-banner {
    padding: var(--spacing-lg) 0;
    background: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.privacy-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.privacy-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(174, 248, 90, 0.12);
    border-radius: var(--radius-md);
    color: var(--lapsely-lime);
    flex-shrink: 0;
}

.privacy-text { flex: 1; min-width: 250px; }

.privacy-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.privacy-text p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.privacy-link {
    color: var(--lapsely-lime);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.privacy-link:hover { color: var(--lapsely-lime-2); }

/* ---- Footer links ---- */
.footer-links { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }

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

.footer-links a:hover { color: var(--lapsely-lime); }

/* ---- Legal document pages (privacy.html, eula.html) ---- */
.legal-page .legal-hero {
    padding-top: calc(var(--spacing-2xl) + 60px);
    padding-bottom: var(--spacing-lg);
    text-align: center;
}

.legal-header { max-width: 640px; margin: 0 auto; }

.legal-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.legal-subtitle {
    font-size: 1.2rem;
    color: var(--lapsely-lime);
    margin-bottom: var(--spacing-xs);
}

.legal-date { font-size: 0.9rem; color: var(--color-text-tertiary); }

.legal-content-section { padding: var(--spacing-lg) 0 var(--spacing-2xl); }

.legal-document {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.legal-section { margin-bottom: var(--spacing-xl); }
.legal-section:last-child { margin-bottom: 0; }

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid rgba(174, 248, 90, 0.35);
}

.legal-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.legal-section p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.legal-section ul { list-style: none; padding: 0; margin-bottom: var(--spacing-md); }

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-xs);
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--lapsely-lime);
    border-radius: 50%;
}

.legal-section ul li strong { color: var(--color-text); }

.legal-section a {
    color: var(--lapsely-lime);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-section a:hover { color: var(--lapsely-lime-2); text-decoration: underline; }

.legal-highlight {
    background: rgba(127, 224, 74, 0.1);
    border-left: 4px solid var(--lapsely-lime);
    padding: var(--spacing-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--spacing-md) 0;
}

.legal-highlight strong { color: var(--lapsely-lime); }

.contact-info-box {
    background: rgba(127, 224, 74, 0.08);
    border: 1px solid rgba(174, 248, 90, 0.22);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-sm);
}

.contact-info-box p { margin-bottom: var(--spacing-xs); }
.contact-info-box p:last-child { margin-bottom: 0; }

.legal-crosslink {
    max-width: 800px;
    margin: var(--spacing-md) auto 0;
    text-align: center;
    color: var(--color-text-tertiary);
    font-size: 0.95rem;
}

.legal-crosslink a { color: var(--lapsely-lime); text-decoration: none; }
.legal-crosslink a:hover { color: var(--lapsely-lime-2); text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .lapsely-hero-content { grid-template-columns: 1fr; text-align: center; }
    .lapsely-app-header { justify-content: center; }
    .lapsely-description { margin-left: auto; margin-right: auto; }
    .lapsely-cta { justify-content: center; }
    /* headline + CTA first, phone below — value prop is above the fold */
    .lapsely-hero-image { order: 0; margin-top: var(--spacing-lg); }
    .hero-phone { max-width: 230px; }
    .marketing-image { height: 520px; }
}

@media (max-width: 600px) {
    .lapsely-hero { padding-top: calc(var(--spacing-xl) + 72px); }
    .lapsely-app-icon { width: 60px; height: 60px; border-radius: 14px; }
    .lapsely-app-name { font-size: 1.3rem; }
    .lapsely-description { font-size: 1.08rem; }
    .hero-phone { max-width: 210px; }
    .marketing-image { height: 400px; }
    .gallery-scroll { padding: var(--spacing-sm) var(--spacing-md); }
    .privacy-content { flex-direction: column; text-align: center; }
    .privacy-link { white-space: normal; }
    .download-options { grid-template-columns: 1fr; }
    .legal-document { padding: var(--spacing-md); }
    /* compact nav so it fits without clipping on narrow phones */
    .nav { gap: 0.2rem; row-gap: 0.1rem; }
    .nav a, .nav-dropdown-trigger { padding: 0.4rem 0.6rem; font-size: 0.82rem; }
}

@media (max-width: 380px) {
    .nav a, .nav-dropdown-trigger { padding: 0.35rem 0.5rem; font-size: 0.78rem; }
    .lapsely-title { font-size: 2.4rem; }
}
