/* ==========================================================================
 LLM Submitter - Design System v1
 ==========================================================================
 Visual language inspired by sibling site autoreceptionist.ai.
 Inter font, warm off-white bg, near-black accent, green brand dot.
 Light + dark theme via CSS custom properties.
 ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
 --bg: #fafaf9;
 --bg-alt: #f0efeb;
 --bg-elevated: #ffffff;
 --surface: #ffffff;
 --surface-hover: #f5f5f3;
 --text: #0f0f0d;
 --text-2: #52524e;
 --text-3: #94938e;
 --border: #dddcd7;
 --border-light: #ebeae5;

 --accent: #0f0f0d;
 --accent-hover: #2a2a27;
 --accent-text: #ffffff;

 --green: #16a34a;
 --green-dark: #0d7a36;
 --green-bg: #dcfce7;
 --blue: #2563eb;
 --blue-bg: #dbeafe;
 --amber: #d97706;
 --amber-bg: #fef3c7;
 --purple: #7c3aed;
 --purple-bg: #ede9fe;
 --red: #dc2626;
 --red-bg: #fee2e2;

 --nav-bg: rgba(250, 250, 249, 0.8);
 --nav-border: var(--border-light);

 --radius: 10px;
 --radius-lg: 14px;
 --radius-xl: 20px;
 --radius-full: 9999px;

 --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 1px 1px rgba(0,0,0,0.02);
 --shadow: 0 2px 8px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
 --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.03);
 --shadow-lg: 0 12px 32px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);

 --max-w: 1120px;
 --max-w-narrow: 720px;
 --nav-h: 64px;

 --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
 --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
 --ease: cubic-bezier(0.4, 0, 0.2, 1);

 color-scheme: light dark;
}

[data-theme="dark"] {
 --bg: #0c0c0b;
 --bg-alt: #161614;
 --bg-elevated: #1c1c1a;
 --surface: #1c1c1a;
 --surface-hover: #242422;
 --text: #ededec;
 --text-2: #a1a19c;
 --text-3: #6b6b66;
 --border: #2e2e2b;
 --border-light: #232321;

 --accent: #ffffff;
 --accent-hover: #e0e0de;
 --accent-text: #0c0c0b;

 --green: #22c55e;
 --green-dark: #16a34a;
 --green-bg: rgba(34,197,94,0.12);
 --blue: #60a5fa;
 --blue-bg: rgba(96,165,250,0.12);
 --amber: #fbbf24;
 --amber-bg: rgba(251,191,36,0.12);
 --purple: #a78bfa;
 --purple-bg: rgba(167,139,250,0.12);
 --red: #f87171;
 --red-bg: rgba(248,113,113,0.12);

 --nav-bg: rgba(12, 12, 11, 0.85);
 --nav-border: var(--border);

 --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
 --shadow: 0 2px 8px rgba(0,0,0,0.25);
 --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
 --shadow-lg: 0 12px 32px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
 :root:not([data-theme="light"]) {
 --bg: #0c0c0b;
 --bg-alt: #161614;
 --bg-elevated: #1c1c1a;
 --surface: #1c1c1a;
 --surface-hover: #242422;
 --text: #ededec;
 --text-2: #a1a19c;
 --text-3: #6b6b66;
 --border: #2e2e2b;
 --border-light: #232321;
 --accent: #ffffff;
 --accent-hover: #e0e0de;
 --accent-text: #0c0c0b;
 --green: #22c55e;
 --nav-bg: rgba(12, 12, 11, 0.85);
 --nav-border: var(--border);
 }
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
 font-family: var(--font);
 background: var(--bg);
 color: var(--text);
 font-size: 16px;
 line-height: 1.6;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
 overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--green); color: #fff; }

/* ── Typography ─────────────────────────────────────────────────────────── */
.t-display { font-size: clamp(2.75rem, 5.5vw, 4rem); font-weight: 750; line-height: 1.05; letter-spacing: -0.035em; color: var(--text); text-wrap: balance; }
.t-h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 720; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.t-h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; }
.t-h3 { font-size: 1.1875rem; font-weight: 640; line-height: 1.35; letter-spacing: -0.015em; }
.t-body { font-size: 1rem; line-height: 1.65; color: var(--text-2); }
.t-body-lg { font-size: 1.1875rem; line-height: 1.7; color: var(--text-2); }
.t-small { font-size: 0.875rem; line-height: 1.5; color: var(--text-3); }
.t-label {
 font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em;
 color: var(--green); display: inline-flex; align-items: center; gap: 6px;
 text-transform: uppercase;
}
.t-label::before { content: ''; width: 20px; height: 1.5px; background: var(--green); border-radius: 1px; }
.t-center { text-align: center; }
.t-center .t-label { justify-content: center; }
.t-center .t-label::before { display: none; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { width: 100%; max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
 position: fixed; top: 0; left: 0; right: 0; z-index: 100;
 height: var(--nav-h); display: flex; align-items: center;
 background: var(--nav-bg);
 backdrop-filter: blur(20px) saturate(200%);
 -webkit-backdrop-filter: blur(20px) saturate(200%);
 border-bottom: 1px solid transparent;
 transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled { border-color: var(--nav-border); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.nav-inner {
 display: flex; align-items: center; justify-content: space-between; gap: 24px;
 width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}
.nav-brand {
 display: inline-flex; align-items: center; gap: 10px;
 color: var(--text); flex-shrink: 0; white-space: nowrap;
 line-height: 1; padding: 4px 0;
}
.nav-brand svg,
.nav-brand img { flex-shrink: 0; width: 28px; height: 28px; color: var(--text); }

/* Brand mark wrapper - keeps the icon optically centred against the wordmark
 and provides a subtle hover-lift without affecting the wordmark itself. */
.brand-mark {
 display: inline-flex; align-items: center; justify-content: center;
 width: 32px; height: 32px;
 color: var(--text);
 transition: transform 0.2s var(--ease);
}
.nav-brand:hover .brand-mark { transform: translateY(-1px); }

/* Wordmark - clean, tracked, with optical separator + trailing green dot.
 The 600-weight 'LLM' (uppercase, slightly tighter) reads as a logo-glyph,
 then 'Submitter' (650-weight) feels like a wordmark continuation rather
 than a redundant repeat. The tiny brand-sep span is just a tracking knob. */
.brand-wordmark {
 font-family: var(--font);
 font-size: 1.125rem;
 font-weight: 700;
 letter-spacing: -0.018em;
 color: var(--text);
 display: inline-flex; align-items: baseline;
 font-variant-numeric: tabular-nums;
 font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
}
.brand-wordmark .brand-sep {
 width: 0.22em;
 display: inline-block;
}
.brand-wordmark .brand-dot {
 color: var(--green);
 font-weight: 800;
 margin-left: 1px;
 /* Optical lift so the dot reads as part of the type stack, not below it. */
 position: relative; top: 0.04em;
}
/* Footer brand: same skeleton, slightly smaller. */
.footer-brand .brand-wordmark { font-size: 1.0625rem; }
.footer-brand .brand-mark img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.nav-links a:not(.nav-cta):not(.nav-login) {
 font-size: 0.875rem; font-weight: 500; color: var(--text-2);
 transition: color 0.15s; white-space: nowrap;
}
.nav-links a:not(.nav-cta):not(.nav-login):hover { color: var(--text); }
.nav-login {
 font-size: 0.875rem; font-weight: 500; color: var(--text-2);
 padding: 6px 14px; border-radius: var(--radius);
 transition: all 0.15s;
}
.nav-login:hover { color: var(--text); background: var(--surface-hover); }
.nav-cta {
 display: inline-flex; align-items: center; gap: 6px;
 background: var(--accent); color: var(--accent-text);
 font-size: 0.875rem; font-weight: 600;
 padding: 8px 16px; border-radius: var(--radius);
 transition: all 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }
.nav-theme-toggle {
 width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
 color: var(--text-2); border-radius: var(--radius); transition: all 0.15s;
}
.nav-theme-toggle:hover { color: var(--text); background: var(--surface-hover); }
.nav-mobile-toggle { display: none; color: var(--text); padding: 8px; }
.nav-mobile { display: none; }

@media (max-width: 880px) {
 .nav-links { display: none; }
 .nav-mobile-toggle { display: inline-flex; }
 .nav-mobile {
 display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
 background: var(--bg); padding: 32px 24px; overflow-y: auto;
 flex-direction: column; gap: 4px;
 }
 .nav-mobile.open { display: flex; }
 .nav-mobile a {
 padding: 12px 0; font-size: 1rem; font-weight: 500;
 color: var(--text); border-bottom: 1px solid var(--border-light);
 }
 .nav-mobile a:last-child { border-bottom: 0; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
 display: inline-flex; align-items: center; justify-content: center; gap: 8px;
 padding: 12px 22px; border-radius: var(--radius);
 font-size: 0.9375rem; font-weight: 600; line-height: 1;
 transition: all 0.15s var(--ease); white-space: nowrap;
 border: 1px solid transparent;
}
.btn-primary {
 background: var(--accent); color: var(--accent-text);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
 background: var(--surface); color: var(--text);
 border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--text-3); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
 padding: calc(var(--nav-h) + 80px) 0 96px;
 position: relative; overflow: hidden;
}
.hero::before {
 content: ''; position: absolute; inset: 0;
 background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22, 163, 74, 0.08), transparent 60%);
 pointer-events: none;
}
.hero-inner { position: relative; }
.hero-eyebrow {
 display: inline-flex; align-items: center; gap: 8px;
 background: var(--green-bg); color: var(--green-dark);
 font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em;
 padding: 6px 14px; border-radius: var(--radius-full);
 margin-bottom: 24px;
}
[data-theme="dark"] .hero-eyebrow { color: var(--green); }
.hero h1 { margin-bottom: 24px; }
.hero p.lede { max-width: 640px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-note {
 display: inline-flex; align-items: center; gap: 8px;
 margin-top: 24px; font-size: 0.875rem; color: var(--text-3);
}
.hero-note svg { width: 16px; height: 16px; color: var(--green); }

/* ── Pillar feature blocks ──────────────────────────────────────────────── */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 880px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
 background: var(--surface); border: 1px solid var(--border);
 border-radius: var(--radius-lg); padding: 28px;
 transition: all 0.2s var(--ease);
}
.pillar:hover { border-color: var(--text-3); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.pillar-icon {
 width: 44px; height: 44px; border-radius: var(--radius);
 background: var(--green-bg); color: var(--green-dark);
 display: inline-flex; align-items: center; justify-content: center;
 margin-bottom: 16px;
}
[data-theme="dark"] .pillar-icon { color: var(--green); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-tag {
 font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
 color: var(--green-dark); text-transform: uppercase;
 margin-bottom: 4px;
}
[data-theme="dark"] .pillar-tag { color: var(--green); }
.pillar h3 { margin-bottom: 8px; }
.pillar p { font-size: 0.9375rem; color: var(--text-2); line-height: 1.55; }

/* ── Trust strip ────────────────────────────────────────────────────────── */
.trust {
 display: flex; flex-wrap: wrap; gap: 24px 36px; justify-content: center;
 padding: 32px 0;
 border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
}
.trust-item {
 display: inline-flex; align-items: center; gap: 8px;
 font-size: 0.8125rem; font-weight: 500; color: var(--text-2);
}
.trust-item svg { width: 16px; height: 16px; color: var(--green); }

/* ── Section header ─────────────────────────────────────────────────────── */
.section-header { max-width: 720px; margin: 0 auto 56px; }
.section-header.t-center { text-align: center; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid {
 display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
 background: var(--surface); border: 1px solid var(--border);
 border-radius: var(--radius-lg); padding: 28px;
 display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.price-card.featured::before {
 content: 'Most popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
 background: var(--accent); color: var(--accent-text);
 font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
 padding: 4px 12px; border-radius: var(--radius-full);
}
.price-name { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.price-amount { font-size: 2.25rem; font-weight: 750; letter-spacing: -0.025em; line-height: 1; }
.price-amount .currency { font-size: 1.25rem; vertical-align: top; line-height: 1.6; margin-right: 2px; font-weight: 600; color: var(--text-2); }
.price-amount .period { font-size: 0.875rem; font-weight: 500; color: var(--text-3); }
.price-summary { font-size: 0.875rem; color: var(--text-2); margin: 12px 0 24px; min-height: 42px; }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; color: var(--text-2); }
.price-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.price-cta { width: 100%; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
 border-top: 1px solid var(--border-light);
 padding: 56px 0 32px; margin-top: 96px;
}
.footer-grid {
 display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand .nav-brand { margin-bottom: 8px; }
.footer-brand p { font-size: 0.875rem; color: var(--text-2); line-height: 1.5; }
.footer-col h3, .footer-col .footer-col-h { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--text-2); padding: 4px 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
 margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-light);
 display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
 font-size: 0.8125rem; color: var(--text-3);
}

/* ── Healthz badge (debug) ──────────────────────────────────────────────── */
.healthz-pill {
 display: inline-flex; align-items: center; gap: 6px;
 padding: 4px 10px; border-radius: var(--radius-full);
 background: var(--green-bg); color: var(--green-dark);
 font-size: 0.75rem; font-weight: 600;
}
.healthz-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Audit form ─────────────────────────────────────────────────────────── */
.audit-form {
 display: flex; gap: 12px; max-width: 560px; margin: 32px auto 0;
}
.audit-form input[type="url"] {
 flex: 1; padding: 14px 18px; font-size: 1rem; font-family: inherit;
 background: var(--surface); border: 1px solid var(--border);
 border-radius: var(--radius); color: var(--text);
 transition: all 0.15s;
}
.audit-form input[type="url"]:focus {
 outline: none; border-color: var(--text);
 box-shadow: 0 0 0 3px var(--green-bg);
}
@media (max-width: 540px) {
 .audit-form { flex-direction: column; }
}
