/* loanofficerfinder.app: shared styles. Light, dark and auto via :root tokens. */
:root {
	--bg: #fbfaf7;
	--surface: #ffffff;
	--text: #1c1f1e;
	--muted: #535a57;
	--line: #e3e1da;
	--accent: #0f5c4a;
	--accent-ink: #ffffff;
	--accent-soft: #e5f0ec;
	--code-bg: #f3f1ec;
	--radius: 14px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #121514;
		--surface: #1a1e1c;
		--text: #e9ece9;
		--muted: #a9b1ad;
		--line: #2c3230;
		--accent: #5fc4a6;
		--accent-ink: #0b1311;
		--accent-soft: #1d2d28;
		--code-bg: #0e1110;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #121514;
	--surface: #1a1e1c;
	--text: #e9ece9;
	--muted: #a9b1ad;
	--line: #2c3230;
	--accent: #5fc4a6;
	--accent-ink: #0b1311;
	--accent-soft: #1d2d28;
	--code-bg: #0e1110;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* Header */
header.top { border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 7px; top: 8px; width: 14px; height: 12px; background: var(--accent-ink); clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
.top-right { display: flex; align-items: center; gap: 18px; }
nav.top-links { display: flex; gap: 18px; font-size: 15px; }
nav.top-links a { color: var(--muted); text-decoration: none; }
nav.top-links a:hover, nav.top-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 760px) { nav.top-links { display: none; } }

.theme-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.theme-toggle button { font: inherit; font-size: 13px; border: 0; background: transparent; color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; min-height: 30px; }
.theme-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.theme-toggle button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Hero */
.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 0 0 12px; }
h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 18ch; }
.lede { font-size: 20px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); background: transparent; }
.note-small { color: var(--muted); font-size: 14px; margin-top: 14px; }

section { padding: 48px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.section-intro { color: var(--muted); max-width: 64ch; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--muted); }

/* Tabs and panels */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tab { font: inherit; font-size: 15px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-height: 40px; }
.tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.js .panel + .panel { margin-top: 0; }
.panel h3 { margin-bottom: 10px; }
.panel p, .panel li { color: var(--muted); }
.panel ol { padding-left: 1.2em; }

/* Code snippets */
.snippet { position: relative; margin: 12px 0 8px; }
.snippet pre { margin: 0; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; padding-right: 84px; overflow-x: auto; font: 13.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: pre; }
.copy { position: absolute; top: 8px; right: 8px; font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-height: 30px; }
.copy:hover { border-color: var(--accent); }
code { font: 0.92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--code-bg); padding: 1px 5px; border-radius: 5px; }
pre code { background: none; padding: 0; }

/* Customizer */
details.cz { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
details.cz > summary { list-style: none; cursor: pointer; padding: 10px 14px; font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; min-height: 44px; }
details.cz > summary::-webkit-details-marker { display: none; }
details.cz > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px; }
details.cz[open] > summary::before { transform: rotate(45deg); }
details.cz > summary span { color: var(--muted); font-weight: 400; }
.cz-body { padding: 4px 14px 16px; display: grid; gap: 18px; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
@media (max-width: 760px) { .cz-body { grid-template-columns: minmax(0, 1fr); } }
.cz-controls { display: grid; gap: 12px; align-content: start; }
.cz-row { display: grid; gap: 4px; }
.cz-row > .cz-label { font-size: 14px; font-weight: 600; color: var(--text); }
.cz-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.cz-inline input[type="color"] { width: 44px; height: 34px; padding: 0 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.cz-inline input[type="range"] { flex: 1; min-width: 120px; accent-color: var(--accent); }
.cz-inline input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.cz-inline label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cz select { font: inherit; font-size: 14px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 36px; }
.cz-reset { justify-self: start; font: inherit; font-size: 14px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; min-height: 36px; }
.cz-preview { min-width: 0; }
.cz-preview-label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.cz-host { border: 1px dashed var(--line); border-radius: 10px; padding: 0 12px; min-height: 120px; }
.cz-host .lof { margin: 12px 0; }
.cz-note { font-size: 13px; color: var(--muted); margin: 0; }

.demo-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px 20px; }
.demo-tabs { margin-top: 12px; }

.privacy { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
dl.faq dt { font-weight: 600; margin-top: 16px; }
dl.faq dd { margin: 4px 0 0; color: var(--muted); }

/* Who it's for */
.crumbs { font-size: 14px; color: var(--muted); margin: 24px 0 0; }
.crumbs a { color: var(--muted); }
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.uses li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.uses h2 { font-size: 19px; margin: 0 0 4px; }
.uses p { margin: 0 0 10px; color: var(--muted); }
.uses .use { margin: 0; font-size: 14px; }
.uses .use code { white-space: normal; word-break: break-word; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
