/* Shared stylesheet for the app landing pages (_includes/app.njk).
   Each page sets --accent and --accent-dark (and optionally a lighter
   --accent-text for dark mode) from its front matter. SinceBook keeps its
   own styles. */

:root {
    --accent-text: var(--accent);   /* accent used as text; a page can lighten it in dark mode */
    --bg: #fafafa;
    --text: #1a1a1a;
    --text-secondary: #666;
    --card-bg: #fff;
    --card-border: #eee;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0D1D2C;
        --text: #f0f0f0;
        --text-secondary: #9AA4AF;
        --card-bg: #16283A;
        --card-border: #243A50;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Brand bar: slim navy strip with the logo, linking home. In dark mode the
   page is the same navy, so only the logo shows. */
.brand-band {
    background: #0D1D2C;
    text-align: center;
    padding: 14px 24px 12px;
}

.brand-band a {
    display: inline-block;
}

.brand-band img {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto;
}

/* Hero */
.hero {
    text-align: center;
    padding: 56px 24px 32px;
    max-width: 640px;
    margin: 0 auto;
}

.hero-icon {
    margin-bottom: 16px;
}

.hero-icon img {
    width: 96px;
    height: 96px;
    border-radius: 22px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.hero h1 span {
    color: var(--accent-text);
}

.hero .tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Intro */
.intro {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
}

.intro p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* App Store CTA */
.cta {
    text-align: center;
    padding: 0 24px 56px;
}

.cta a {
    display: inline-block;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.cta a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.cta img {
    height: 50px;
    width: auto;
    display: block;
}

@media (prefers-color-scheme: dark) {
    .cta img {
        filter: invert(1);
    }
}

.cta-coming-soon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
}

.cta-coming-soon .label {
    font-size: 0.55rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
}

.cta-coming-soon .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
    margin-top: 1px;
}

/* Screenshots */
.screenshots {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 48px;
}

.screenshot-strip {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 8px 24px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.screenshot-strip::-webkit-scrollbar {
    display: none;
}

.screenshot-strip img {
    height: 480px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    cursor: pointer;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 80vw;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 600px) {
    .screenshot-strip img {
        height: 360px;
    }
}

@media (prefers-color-scheme: dark) {
    .screenshot-strip img {
        box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    }
}

/* Features */
.features {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 24px;
}

.feature-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-card h3 .pro-tag {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-text);
    border: 1px solid var(--accent);
    border-radius: 100px;
    padding: 1px 7px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Pro */
.pro {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 64px;
}

.pro-card {
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 18px;
    padding: 32px;
    text-align: center;
}

.pro-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.pro-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.pro-card > p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pro-list {
    list-style: none;
    text-align: left;
    max-width: 440px;
    margin: 0 auto 20px;
}

.pro-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--card-border);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pro-list li:last-child {
    border-bottom: none;
}

.pro-list li::before {
    content: "\2713";
    color: var(--accent-text);
    font-weight: 700;
    flex-shrink: 0;
}

.pro-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 8px;
}

/* Privacy */
.privacy {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 64px;
    text-align: center;
}

.privacy h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Requirements */
.requirements {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 64px;
    text-align: center;
}

.requirements h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.req-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.req-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Support */
.support {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
}

.support h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.support a {
    color: var(--accent-text);
    text-decoration: none;
    font-weight: 600;
}

.support a:hover {
    text-decoration: underline;
}

/* Disclaimer */
.disclaimer {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 24px 48px;
    text-align: center;
}

.disclaimer p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}
