/* IncidentScribe — Test 4 landing page stylesheet.
   No web fonts; no analytics; no third-party assets. Same-origin only. */

:root {
    --bg: #08090b;
    --surface: #11141a;
    --surface-elevated: #161a22;
    --border: rgba(255, 255, 255, 0.08);
    --fg: #e8edf3;
    --muted: rgba(232, 237, 243, 0.62);
    --muted-strong: rgba(232, 237, 243, 0.82);
    /* Brand accent: teal/mint, matching the Filmora logo-reveal
       intro and the incident.io / Linear "calm under pressure" register
       the brand exploration landed on. Foreground colour is deep
       forest so CTA-button text stays AA-contrast on the teal fill. */
    --accent: #22D3A8;
    --accent-hover: #3FE2BE;
    --accent-fg: #062018;
    --success: #54c082;
    --error: #f06262;

    --max-width: 920px;
    --content-width: 680px;

    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", system-ui, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", system-ui, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "Menlo", monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fbfbfd;
        --surface: #ffffff;
        --surface-elevated: #f3f4f7;
        --border: rgba(15, 17, 22, 0.10);
        --fg: #131720;
        --muted: rgba(19, 23, 32, 0.62);
        --muted-strong: rgba(19, 23, 32, 0.82);
    }
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--fg);
    font: 16px/1.65 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Layout primitives ─────────────────────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

main {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

main > section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

main > section:last-child { border-bottom: none; }

@media (min-width: 720px) {
    main > section { padding: 6rem 0; }
}

/* ── Header ─────────────────────────────────────── */

.site-header {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wordmark {
    display: inline-flex;
    align-items: center;
    line-height: 0;        /* removes the inline-image baseline gap */
    color: var(--fg);
    text-decoration: none;
}

.wordmark img {
    height: 1.4rem;        /* ~22.4px — visual parity with the old text wordmark */
    width: auto;
    display: block;
}

.site-header nav {
    display: flex;
    gap: 1.5rem;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-header nav a:hover { color: var(--fg); }

/* ── Hero ───────────────────────────────────────── */

.hero {
    text-align: left;
    padding-top: 2rem !important;
}

.hero h1 {
    font: 700 clamp(2.1rem, 6vw, 3.4rem)/1.08 var(--font-display);
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    max-width: var(--content-width);
}

.hero .sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--muted-strong);
    max-width: var(--content-width);
    margin-bottom: 2.25rem;
}

.signup-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.85rem;
    max-width: var(--content-width);
}

/* ── Hero video ─────────────────────────────────── */

.hero-video {
    margin: 2.5rem 0 3rem;
    padding: 0;
}

.hero-video video {
    width: 100%;
    max-width: var(--content-width);
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #0a0a0a;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

/* ── Form ───────────────────────────────────────── */

.signup {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    max-width: 520px;
}

.signup input[type="email"] {
    flex: 1 1 240px;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    font: 1rem/1.4 var(--font-sans);
    color: var(--fg);
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: border-color 120ms ease, background 120ms ease;
}

.signup input[type="email"]:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--surface);
}

.signup input[type="email"]::placeholder { color: var(--muted); }

.signup button {
    min-height: 44px;
    padding: 0 1.25rem;
    font: 600 0.95rem/1 var(--font-sans);
    color: var(--accent-fg);
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 120ms ease, transform 80ms ease;
}

.signup button:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.signup button:active:not(:disabled) { transform: scale(0.98); }
.signup button:disabled { opacity: 0.6; cursor: progress; }

.signup-status {
    flex-basis: 100%;
    font-size: 0.9rem;
    color: var(--muted-strong);
    min-height: 1.25rem;
    margin-top: 0.25rem;
}

.signup-status[data-state="success"] { color: var(--success); }
.signup-status[data-state="error"] { color: var(--error); }

/* ── Sections ───────────────────────────────────── */

main h1 {
    font: 700 clamp(2rem, 5vw, 2.6rem)/1.1 var(--font-display);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    max-width: var(--content-width);
}

main h2 {
    font: 700 clamp(1.45rem, 3.5vw, 1.85rem)/1.2 var(--font-display);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: var(--content-width);
}

main h3 {
    font: 600 1.05rem/1.35 var(--font-sans);
    margin-bottom: 0.4rem;
    color: var(--fg);
}

main p {
    color: var(--muted-strong);
    max-width: var(--content-width);
    margin-bottom: 1rem;
}

main p:last-child { margin-bottom: 0; }

main ul {
    color: var(--muted-strong);
    max-width: var(--content-width);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

main ul li { margin-bottom: 0.4rem; }
main ul li:last-child { margin-bottom: 0; }

.legal-meta {
    color: var(--muted);
    margin-bottom: 2rem;
}

main code {
    font: 0.92em/1 var(--font-mono);
    background: var(--surface-elevated);
    padding: 0.1em 0.4em;
    border-radius: var(--radius-sm);
}

main a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(62, 101, 244, 0.4);
    transition: border-color 120ms ease;
}

main a:hover { border-color: var(--accent); }

/* ── How-it-works ───────────────────────────────── */

.how-steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    gap: 1.75rem;
    padding-left: 0;
}

.how-steps li {
    counter-increment: step;
    position: relative;
    padding: 1.5rem;
    padding-left: 3.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: var(--content-width);
}

.how-steps li::before {
    content: counter(step);
    position: absolute;
    top: 1.5rem;
    left: 1.25rem;
    width: 1.85rem;
    height: 1.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    color: var(--accent);
    font: 600 0.9rem/1 var(--font-mono);
}

/* ── Final CTA ──────────────────────────────────── */

.cta {
    text-align: left;
}

.cta h2 { margin-bottom: 0.6rem; }

.cta > p {
    color: var(--muted);
    margin-bottom: 1.75rem;
}

/* ── Footer ─────────────────────────────────────── */

.site-footer {
    width: 100%;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding: 1.5rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-row {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.site-footer nav {
    display: flex;
    gap: 1.25rem;
}

.site-footer nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-footer nav a:hover { color: var(--fg); }

/* ── Reduced motion ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .signup button:active:not(:disabled) { transform: none; }
}

/* ─── Tour / screenshot showcase ───────────────────────── */

.tour {
    margin: 4rem auto;
    max-width: 1100px;
    padding: 0 1.5rem;
}

.tour h2 { margin-bottom: 0.6rem; }

.tour-blurb {
    color: var(--muted);
    margin-bottom: 2rem;
}

.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.tour-shot {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tour-shot:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.tour-shot a {
    display: block;
    line-height: 0;
}

.tour-shot img {
    width: 100%;
    height: auto;
    display: block;
    background: rgba(255, 255, 255, 0.02);
}

.tour-shot figcaption {
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.4;
}

.tour-note {
    margin-top: 1.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

/* ─── Blog feed + article prose ─────────────────────────── */

.blog-feed {
    max-width: 760px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.blog-entry {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-entry:last-child { border-bottom: 0; }

.blog-entry h2 {
    font-size: 1.5rem;
    margin: 0 0 0.4rem 0;
}

.blog-entry h2 a {
    color: var(--fg);
    text-decoration: none;
}

.blog-entry h2 a:hover { color: var(--accent); }

.blog-entry-coming h2 { color: var(--muted); }

.article-meta {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 0.8rem 0;
}

.prose {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    line-height: 1.7;
}

.prose .article-header h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.prose .article-meta { margin-bottom: 2rem; }

.prose h2 {
    font-size: 1.4rem;
    margin-top: 2.4rem;
    margin-bottom: 0.8rem;
}

.prose ol, .prose ul {
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
}

.prose li { margin-bottom: 0.45rem; }

.prose code {
    font-family: ui-monospace, SF Mono, Menlo, Consolas, monospace;
    font-size: 0.92em;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.prose a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ─── Pricing grid (used by pricing/index.html) ───────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 880px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.plan {
    padding: 1.75rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.plan h2 { margin: 0 0 0.4rem 0; }
.plan-blurb { color: var(--muted); margin-bottom: 1.2rem; }
.plan-prices { margin-bottom: 1.2rem; }

.plan-price { margin-bottom: 0.6rem; }

.plan-price .amount {
    font-size: 2rem;
    font-weight: 600;
}

.plan-price .period {
    color: var(--muted);
    margin-left: 0.4rem;
}

.plan-price .trial {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0.1em 0.5em;
    border-radius: 4px;
    background: rgba(46, 184, 92, 0.18);
    color: rgb(46, 184, 92);
    font-size: 0.82rem;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.plan-features li {
    padding: 0.35rem 0;
}

.plan-features li::before {
    content: "✓ ";
    color: rgb(46, 184, 92);
    font-weight: 600;
}

.plan-pro-note {
    color: var(--muted);
    font-size: 0.88rem;
    font-style: italic;
    margin: 0.8rem 0;
}

.cta-primary {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0.8rem;
}

.cta-secondary {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.6rem;
}

.pricing-faq {
    max-width: 880px;
    margin: 4rem auto;
    padding: 0 1.5rem;
}

.pricing-faq h3 {
    margin-top: 1.6rem;
    font-size: 1.1rem;
}

/* ─── Changelog (used by changelog/index.html) ────────── */

.changelog-feed {
    max-width: 760px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.release {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.release:last-child { border-bottom: 0; }

.release h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.4rem;
}

.release-date {
    color: var(--muted);
    font-size: 0.92rem;
    margin: 0 0 0.8rem 0;
}

.release-coming-soon h2 { color: var(--muted); }
