/* bizos.ca public site. Same color tokens as the app (public/assets/app.css) so the two feel like one product. */
:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --border: #e3e6eb;
    --text: #1b1f27;
    --muted: #667085;
    --primary: #2f5bea;
    --primary-hover: #2449c4;
    --primary-soft: #e9eefd;
    --success-bg: #e8f6ee;
    --success-text: #1d6b42;
    --warn-bg: #fdf3e2;
    --warn-text: #8a5a12;
    --radius: 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12151b;
        --surface: #1b1f27;
        --border: #2c323d;
        --text: #e7e9ee;
        --muted: #98a1b2;
        --primary: #5b7ff5;
        --primary-hover: #7a97f7;
        --primary-soft: #1e2847;
        --success-bg: #173226;
        --success-text: #8fdcb2;
        --warn-bg: #3a2c14;
        --warn-text: #f0c983;
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
}

a { color: var(--primary); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0; }
.muted { color: var(--muted); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 720px; }

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -.02em;
    color: var(--text);
    text-decoration: none;
}
.brand-mark { width: 32px; height: 32px; flex-shrink: 0; fill: var(--primary); }
.brand-os { color: var(--primary); }
.site-nav { display: flex; gap: .25rem; }
.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    padding: .45rem .75rem;
    border-radius: 8px;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--bg); }

/* Buttons */
.btn {
    display: inline-block;
    padding: .75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero {
    padding: 88px 0 72px;
    background:
        radial-gradient(60rem 24rem at 15% -10%, var(--primary-soft), transparent 70%),
        var(--bg);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--warn-text);
    background: var(--warn-bg);
    padding: .3rem .75rem;
    border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero h1 {
    font-size: clamp(2.1rem, 5.5vw, 3.6rem);
    letter-spacing: -.02em;
    max-width: 14em;
    margin-top: 1.1rem;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin-top: 1.1rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.6rem; letter-spacing: -.01em; }
.section h2 + .muted { margin-top: .4rem; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
    margin-top: 1.75rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
}
.card h3 { font-size: 1.05rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card p { color: var(--muted); margin-top: .5rem; font-size: .95rem; }
.tag {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .1rem .5rem;
    white-space: nowrap;
}

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 2rem; }
.step-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}
.steps h3 { font-size: 1.1rem; margin-top: .9rem; }
.steps p { color: var(--muted); margin-top: .4rem; }

/* Change log */
.update-list { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.update-list code { font-size: .9em; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 0 .3em; }
.text-link { display: inline-block; margin-top: 1.25rem; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.wrap-narrow > h1 { font-size: 2.2rem; letter-spacing: -.02em; }
.wrap-narrow > h1 + .muted { margin-top: .5rem; }
.day {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
}
.day h2 { font-size: 1.2rem; }
.day h2 a { color: var(--text); text-decoration: none; }
.day h2 a:hover { text-decoration: underline; }
.kind {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .15rem .6rem;
    border-radius: 999px;
    background: var(--bg);
    color: var(--muted);
}
.kind-added { background: var(--success-bg); color: var(--success-text); }
.kind-changed { background: var(--primary-soft); color: var(--primary); }
.kind-fixed { background: var(--warn-bg); color: var(--warn-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 28px 0; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
    .hero { padding: 56px 0 48px; }
    .section { padding: 48px 0; }
    .day { padding: 1.1rem 1.15rem; }
}
