/* Ferrith Onboarding — app baseline + the Phase-1 marketing landing shell.
   Colours/spacing come from brand-system.css tokens (Thermal Orange accent,
   anthracite chrome, Space Grotesk / Inter). The full storefront markup +
   ob-components styling lands in Phase 2. */

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

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body, "Inter", system-ui, sans-serif);
    color: var(--ink, #1a1d22);
    background: var(--bg, #ffffff);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.mkt-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mkt-main { flex: 1 0 auto; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    padding: 0.7rem 1.25rem;
    border-radius: var(--r-md, 10px);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .12s ease;
}

.btn-lg { padding: 0.9rem 1.6rem; font-size: 1.02rem; }

.btn-primary {
    background: var(--thermal, #FF8E46);
    color: var(--anthracite, #2C3138);
}
.btn-primary:hover { background: var(--thermal-70, #f0791f); }

.btn-ghost {
    background: transparent;
    color: var(--ink, #1a1d22);
    border-color: var(--border-strong, #d4d6d9);
}
.btn-ghost:hover { border-color: var(--anthracite, #2C3138); }

/* ---------- marketing nav ---------- */
.mkt-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--bg, #fff) 82%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border, #e5e6e8);
}
.mkt-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.mkt-logo { display: inline-flex; align-items: center; }
.mkt-logo-img { height: 26px; width: auto; display: block; }
.mkt-links {
    display: flex;
    gap: 1.5rem;
    margin-left: 0.5rem;
    font-size: 0.92rem;
    color: var(--ink-secondary, #5a606a);
}
.mkt-links a:hover { color: var(--ink, #1a1d22); }
.mkt-nav-cta { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.mkt-signin { font-size: 0.92rem; color: var(--ink-secondary, #5a606a); }
.mkt-signin:hover { color: var(--ink, #1a1d22); }

/* ---------- hero ---------- */
.mkt-hero {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    background: var(--bg, #fff);
    overflow: hidden;
}
.mkt-hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.mkt-eyebrow {
    display: inline-block;
    font-family: var(--font-mono, "JetBrains Mono", monospace);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--thermal-70, #f0791f);
    background: var(--thermal-12, #fff0e3);
    border: 1px solid var(--thermal-40, #ffd1b1);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 1.4rem;
}
.mkt-h1 {
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--anthracite, #2C3138);
    margin: 0 0 1.1rem;
}
.mkt-lede {
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink-secondary, #5a606a);
    max-width: 620px;
    margin: 0 auto 2rem;
}
.mkt-cta-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.mkt-trust {
    margin-top: 1.6rem;
    font-size: 0.85rem;
    color: var(--ink-tertiary, #8a8f97);
}

/* ---------- value props ---------- */
.mkt-values { padding: 3.5rem 1.5rem; background: var(--bg-muted, #f7f8f9); border-top: 1px solid var(--border, #e5e6e8); }
.mkt-values-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.mkt-value h3 {
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0.9rem 0 0.4rem;
    color: var(--anthracite, #2C3138);
}
.mkt-value p { margin: 0; font-size: 0.95rem; line-height: 1.55; color: var(--ink-secondary, #5a606a); }
/* Bare lucide icon stroked in the accent (mirrors the design's .ob-value .ic) — the SVG uses
   stroke="currentColor" so this colour drives it. */
.mkt-value-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--thermal, #FF8E46);
}
.mkt-value-ic svg { width: 34px; height: 34px; display: block; }

/* ---------- CTA band ---------- */
.mkt-cta-band { background: var(--anthracite, #2C3138); color: #fff; padding: 4rem 1.5rem; text-align: center; }
.mkt-cta-band-inner { max-width: 640px; margin: 0 auto; }
.mkt-cta-band h2 {
    font-family: var(--font-display, "Space Grotesk", sans-serif);
    font-weight: 600;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}
.mkt-cta-band p { margin: 0 0 1.6rem; color: rgba(255, 255, 255, 0.7); }

/* ---------- footer ---------- */
.mkt-footer { background: var(--anthracite, #2C3138); color: rgba(255, 255, 255, 0.85); padding: 2.5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mkt-footer-inner { max-width: 1120px; margin: 0 auto; }
.mkt-footer-logo { height: 24px; width: auto; display: block; }
.mkt-footer-tag { max-width: 460px; margin: 0.6rem 0 1rem; font-size: 0.92rem; line-height: 1.55; color: rgba(255, 255, 255, 0.6); }
.mkt-footer-meta { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Blazor framework error toast ---------- */
#blazor-error-ui {
    color-scheme: light only;
    background: #fff0e3;
    border-top: 1px solid var(--thermal-40, #ffd1b1);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--ink, #1a1d22);
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
#blazor-error-ui .reload { color: var(--thermal-70, #f0791f); }
