/* AgentNotifier Landing Page
   Light + dark via prefers-color-scheme. Vanilla CSS, no build step. */

:root {
    /* Light theme (default) */
    --bg: #ffffff;
    --bg-elevated: #f5f6f8;
    --bg-card: #ffffff;
    --text: #16171c;
    --text-muted: #5b5f6b;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-contrast: #ffffff;
    --border: #e4e6eb;
    --shadow: 0 24px 48px rgba(20, 22, 40, 0.10);
    --shadow-sm: 0 8px 24px rgba(20, 22, 40, 0.10);
    --pill-beta-bg: #fef3c7;
    --pill-beta-text: #92600a;
    --pill-soon-bg: #eef2ff;
    --pill-soon-text: #4338ca;
    --code-bg: #f0f1f5;

    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0f13;
        --bg-elevated: #16171c;
        --bg-card: #1c1d24;
        --text: #ecedf1;
        --text-muted: #9a9dab;
        --accent: #818cf8;
        --accent-hover: #a5b0ff;
        --accent-contrast: #0e0f13;
        --border: #2a2c35;
        --shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
        --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.45);
        --pill-beta-bg: rgba(245, 158, 11, 0.16);
        --pill-beta-text: #fbbf24;
        --pill-soon-bg: rgba(129, 140, 248, 0.16);
        --pill-soon-text: #b6bdff;
        --code-bg: #23252e;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
.cta-button:focus-visible,
.faq-item summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 6px;
}

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text);
    font-weight: 600;
    font-size: 1.25rem;
}
.logo:hover { color: var(--text); }

.logo-icon {
    display: inline-flex;
    width: 1.6rem;
    height: 1.6rem;
}
.logo-icon svg { width: 100%; height: 100%; }

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}
.nav a {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

/* CTA buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.95rem 1.6rem;
    background: var(--accent);
    color: var(--accent-contrast);
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.cta-button:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.cta-button:active { transform: translateY(1px); }

.cta-icon { font-size: 1.2rem; line-height: 1; }

/* "Coming soon" CTA — intentionally non-clickable */
.cta-soon {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.6rem;
    background: var(--bg-elevated);
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    cursor: default;
}
.cta-soon .soon-pill {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--pill-soon-bg);
    color: var(--pill-soon-text);
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}
.cta-soon.cta-large { padding: 1.15rem 1.9rem; font-size: 1.05rem; }
/* Large variant of the real download button — used when the "Coming soon"
   markup is swapped for the live download link at launch. */
.cta-button.cta-large { padding: 1.15rem 1.9rem; font-size: 1.05rem; }

.nav-soon {
    background: var(--accent);
    color: var(--accent-contrast) !important;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: default;
}
.nav-soon:hover { color: var(--accent-contrast) !important; }

/* Live download link in the nav — the clickable counterpart to .nav-soon,
   shown at launch (see the commented markup in index.html). */
.nav-download {
    background: var(--accent);
    color: var(--accent-contrast) !important;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
}
.nav-download:hover { background: var(--accent-hover); color: var(--accent-contrast) !important; }

/* Hero */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10rem 2rem 5rem;
}
.hero-content {
    max-width: 720px;
    text-align: center;
}
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--accent);
    background: var(--pill-soon-bg);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 1.25rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 620px;
    line-height: 1.7;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}
.hero-note {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Screenshot placeholder */
.shot {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 2rem;
}
.shot-placeholder {
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    background:
        repeating-linear-gradient(
            45deg,
            var(--bg-elevated),
            var(--bg-elevated) 12px,
            var(--bg-card) 12px,
            var(--bg-card) 24px);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}
.shot-placeholder .shot-icon {
    width: 3.5rem;
    height: 3.5rem;
    opacity: 0.85;
}
.shot-placeholder .shot-label {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.shot-placeholder .shot-sub {
    font-size: 0.9rem;
    max-width: 380px;
}

/* Generic section */
.section {
    padding: 6rem 2rem;
    max-width: 1120px;
    margin: 0 auto;
}
.section-tight { max-width: 760px; }
.section h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem;
    letter-spacing: -0.01em;
}
.section-lead {
    text-align: center;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 3.5rem;
    font-size: 1.1rem;
}
.section-alt { background: var(--bg-elevated); max-width: none; }
.section-alt > .section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Problem */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.problem-text p { color: var(--text-muted); font-size: 1.05rem; }
.problem-text p strong { color: var(--text); }
.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.problem-card ul { list-style: none; margin: 0; padding: 0; }
.problem-card li {
    display: flex;
    gap: 0.75rem;
    padding: 0.6rem 0;
    color: var(--text-muted);
}
.problem-card li::before {
    content: "";
    flex: 0 0 auto;
    width: 0.55rem; height: 0.55rem;
    margin-top: 0.55rem;
    border-radius: 50%;
    background: var(--accent);
}

/* Features */
.features-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
.features-grid li {
    padding: 1.75rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--pill-soon-bg);
    color: var(--accent);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 1.4rem; height: 1.4rem; }
.features-grid strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.features-grid p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* How it works */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}
.step {
    position: relative;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 700;
    font-family: var(--font-mono);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 0.5rem; }
.step p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }
.how-note {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2.5rem;
    font-size: 0.95rem;
}

/* Providers */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.provider-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.provider-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.provider-head h3 { margin: 0; font-size: 1.15rem; }
.provider-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
}
.badge-full { background: var(--pill-soon-bg); color: var(--pill-soon-text); }
.badge-beta { background: var(--pill-beta-bg); color: var(--pill-beta-text); }

/* Privacy highlight */
.privacy-highlight {
    background: var(--bg-elevated);
}
.privacy-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.privacy-points {
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    text-align: left;
}
.privacy-points li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.privacy-points li svg {
    flex: 0 0 auto;
    width: 1.25rem; height: 1.25rem;
    color: var(--accent);
    margin-top: 0.15rem;
}
.privacy-cta { margin-top: 2.5rem; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    margin-bottom: 0.9rem;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    font-size: 1.02rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .faq-body {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.97rem;
}
.faq-item .faq-body p { margin: 0; }

/* Inline code */
code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--code-bg);
    padding: 0.12em 0.4em;
    border-radius: 5px;
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin-bottom: 1rem;
}
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 0.9rem; color: var(--text-muted); margin: 0.25rem 0 0; }
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--text); }
.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 0.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Legal pages */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}
.legal-page h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.legal-page .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.legal-page p, .legal-page li { color: var(--text-muted); margin-bottom: 1rem; }
.legal-page li strong, .legal-page p strong { color: var(--text); }
.legal-page ul { padding-left: 1.5rem; }
.legal-page a { color: var(--accent); }
.legal-note {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    margin: 1.5rem 0;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.back-link:hover { color: var(--text); }

/* Responsive */
@media (max-width: 820px) {
    .problem-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header { padding: 1rem 1.25rem; }
    .nav {
        display: none;
    }
    .nav.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        padding: 1.25rem 1.5rem;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
    }
    .menu-toggle { display: flex; }
    .section { padding: 4rem 1.25rem; }
    .hero { padding: 8rem 1.25rem 3rem; }
    .shot { padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* Cookie / analytics consent banner */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 640px;
    margin: 0 auto;
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.2rem;
    padding: 1rem 1.15rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
}
.cookie-banner.visible { display: flex; }
.cookie-text {
    flex: 1 1 260px;
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.cookie-text a { color: var(--accent); }
.cookie-actions {
    display: flex;
    gap: 0.6rem;
    margin-left: auto;
}
.cookie-btn {
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    cursor: pointer;
}
.cookie-btn-decline { background: transparent; color: var(--text); }
.cookie-btn-accept {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}
.cookie-btn-accept:hover { background: var(--accent-hover); }
.cookie-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) {
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* Support / "buy me a coffee" section */
.support {
    padding: 4rem 1.5rem 5rem;
}
.support-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.75rem 2rem 2.5rem;
}
.support-emoji {
    font-size: 2.4rem;
    line-height: 1;
    display: block;
    margin-bottom: 0.75rem;
}
.support-inner h2 {
    margin: 0 0 0.6rem;
}
.support-inner p {
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 auto 1.6rem;
}
.support-inner .cta-button {
    margin: 0 auto;
}
.support-note {
    font-size: 0.85rem;
    margin: 1.1rem auto 0 !important;
}
