/* AngiLabs Reports app — Vercel/Linear editorial style
   Matches the marketing site at angilabs.com.
   Fraunces serif + Inter sans. Dark ink on warm paper.
*/

:root {
    --ink: #0A0A0A;
    --paper: #FAF9F6;
    --paper-2: #F0EEE8;
    --line: #E5E5E5;
    --line-2: #D4D4D4;
    --muted: #525252;
    --muted-2: #737373;
    --accent: #E25822;
    --success: #166534;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', monospace;
    --max: 880px;
    --max-wide: 1140px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --ink: #FAFAFA;
    --paper: #0A0A0A;
    --paper-2: #1A1A1A;
    --line: #262626;
    --muted: #A3A3A3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01";
}

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

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 24px;
    color: var(--ink);
}
h1 { font-size: clamp(48px, 7vw, 96px); font-weight: 400; line-height: 0.98; }
h2 { font-size: clamp(32px, 4.5vw, 56px); font-weight: 400; }
h3 { font-size: 22px; font-weight: 500; }
p { margin: 0 0 16px; color: var(--muted); max-width: 60ch; font-size: 16px; line-height: 1.55; }
em { font-style: italic; }
.muted { color: var(--muted-2); }

.container { max-width: var(--max-wide); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: var(--max); }

.skip-link { position: absolute; left: -9999px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 0; top: 0; }

/* ─── HEADER ─────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; gap: 24px; }
.logo { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.logo-dot { color: var(--accent); }
.nav-main { display: flex; gap: 32px; align-items: center; }
.nav-main > a { color: var(--muted); font-weight: 400; font-size: 14.5px; }
.nav-main > a:hover { color: var(--ink); }

/* ─── BUTTONS ───────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font-weight: 500; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); transition: background 0.15s, color 0.15s, transform 0.1s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── EYEBROW (numbered) ────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 32px; }
.eyebrow-num { color: var(--accent); font-weight: 600; }

/* ─── LAYOUTS ──────────────────────────────── */
.hero { padding: 80px 0 80px; }
.hero h1 { margin-bottom: 24px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede { font-size: 19px; max-width: 560px; }
.section { padding: 60px 0; border-top: 1px solid var(--line); }
.section h2 { margin-bottom: 24px; }

/* ─── CARDS / LIST ────────────────────────── */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin-bottom: 16px; }
.card-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 12px; transition: border-color 0.15s; }
.card-row:hover { border-color: var(--ink); }
.card-row h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
.card-row p { margin: 0; font-size: 14px; color: var(--muted); }

/* ─── FORMS ──────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    font-size: 15px;
    font-family: var(--sans);
    color: var(--ink);
    background: #fff;
    transition: border-color 0.15s;
    background-color: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    border-color: var(--ink);
}
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form details { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; }
.form details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.form .fineprint { color: var(--muted-2); font-size: 12.5px; text-align: center; margin: 8px 0 0; }

/* ─── FOOTER ──────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 80px; }
.footer-row { display: flex; align-items: baseline; justify-content: space-between; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.footer-row p { font-family: var(--serif); font-style: italic; font-size: 15px; max-width: 480px; text-align: right; margin: 0; }
.footer-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; gap: 12px; }
.footer-meta a { color: var(--accent); }

/* ─── STATUS / ALERTS ─────────────────────── */
.alert { padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; }
.alert-success { background: color-mix(in srgb, var(--success) 8%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 20%, transparent); }
.alert-info { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }

/* ─── SPINNER ────────────────────────────── */
.spinner { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── REPORT MOCK (the "you're generating" preview) ─ */
.report-preview {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 32px 0;
}
.report-preview-tabs { display: flex; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FAFAFA; gap: 6px; }
.report-preview-tab { font-family: var(--sans); font-size: 12.5px; padding: 6px 12px; border-radius: 6px; color: var(--muted-2); background: transparent; border: none; cursor: pointer; }
.report-preview-tab.active { background: var(--ink); color: #fff; }
.report-preview-body { padding: 32px; }
.report-preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.report-preview-kpi { padding: 16px 0; border-top: 1px solid var(--line); }
.report-preview-kpi-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 8px; }
.report-preview-kpi-value { font-family: var(--serif); font-size: 36px; line-height: 1; margin-bottom: 4px; }
.report-preview-kpi-delta { font-size: 12px; color: var(--success); }

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 900px) {
    .nav-main { display: none; }
    .card-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .form .row { grid-template-columns: 1fr; }
    .report-preview-kpis { grid-template-columns: 1fr; gap: 0; }
    .report-preview-kpi { border-top: 1px solid var(--line); padding: 12px 0; }
    .report-preview-kpi:first-child { border-top: 0; padding-top: 0; }
    .footer-row { flex-direction: column; gap: 12px; }
    .footer-row p { text-align: left; }
    .footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
