/* UX1 BV — shared stylesheet. System fonts only, no web font loading. */

:root {
	--ink: #1a1a1a;
	--ink-soft: #4a4a4a;
	--paper: #ffffff;
	--paper-tint: #f7f5f2;
	--line: #e4e0da;
	--brand: #ff8000;
	--brand-deep: #cc6600;
	--focus: #0066cc;
	--max: 72rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--paper);
	line-height: 1.6;
	font-size: 1.0625rem;
}

img { max-width: 100%; display: block; }

a {
	color: var(--ink);
	text-decoration-color: var(--brand-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
a:hover { color: var(--brand-deep); }

a:focus-visible, button:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; max-width: 65ch; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* Skip link */
.skip-link {
	position: absolute; left: -999px; top: 0;
	background: var(--ink); color: #fff; padding: 0.75rem 1.25rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
header.site {
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; background: rgba(255,255,255,0.96);
	backdrop-filter: blur(6px);
	z-index: 50;
}
header.site .bar {
	display: flex; align-items: center; justify-content: space-between;
	padding: 1rem 1.5rem; max-width: var(--max); margin: 0 auto; gap: 1rem;
}
.logo {
	font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
	color: var(--ink); text-decoration: none;
}
.logo span { color: var(--brand-deep); }
nav.primary { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
nav.primary a { text-decoration: none; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
nav.primary a:hover, nav.primary a[aria-current="page"] { color: var(--ink); }
nav.primary a[aria-current="page"] { border-bottom: 2px solid var(--brand); }

.lang-toggle a {
	font-size: 0.85rem; font-weight: 700; text-decoration: none;
	color: var(--ink-soft); padding: 0.25rem 0.5rem;
}
.lang-toggle a[aria-current="true"] { color: var(--ink); border-bottom: 2px solid var(--brand); }

.btn {
	display: inline-block; text-decoration: none; font-weight: 700;
	padding: 0.75rem 1.4rem; border-radius: 3px; font-size: 0.95rem;
	border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; }
.hero p.sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }

.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-split .art { width: 100%; height: auto; }
@media (max-width: 56rem) {
	.hero-split { grid-template-columns: 1fr; }
	.hero-split .art { max-width: 22rem; margin: 0 auto; }
}

.card-icon { width: 2.25rem; height: 2.25rem; margin-bottom: 0.9rem; color: var(--brand-deep); }
.card-icon * { vector-effect: non-scaling-stroke; }

.diagram { width: 100%; height: auto; margin: 2rem 0; }

/* Sections */
section { padding: 3rem 0; }
section.tint { background: var(--paper-tint); }
section.dark { background: var(--ink); color: #fff; }
section.dark h2, section.dark a { color: #fff; }
section.dark .btn-primary { color: var(--ink); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; margin-top: 2rem; }

.card {
	border-top: 3px solid var(--brand);
	padding-top: 1rem;
}

ul.feature-list { list-style: none; margin: 2rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
ul.feature-list li { padding-left: 1.4rem; position: relative; }
ul.feature-list li::before {
	content: ""; position: absolute; left: 0; top: 0.55em;
	width: 0.5rem; height: 0.5rem; background: var(--brand); border-radius: 1px;
}
ul.feature-list strong { display: block; margin-bottom: 0.2rem; }

.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; color: var(--ink-soft); font-size: 0.95rem; }

blockquote.limits {
	border-left: 3px solid var(--brand); padding-left: 1.25rem; margin: 2rem 0;
	color: var(--ink-soft);
}

table.spec { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
table.spec th, table.spec td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }

/* Contact form */
.contact-form { max-width: 34rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 32rem) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea, .field select {
	width: 100%; font: inherit; color: var(--ink); background: var(--paper);
	border: 1.5px solid var(--line); border-radius: 3px; padding: 0.65rem 0.75rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
	outline: none; border-color: var(--brand-deep);
	box-shadow: 0 0 0 3px rgba(204,102,0,0.15);
}
.field textarea { resize: vertical; min-height: 7rem; }

/* Honeypot: off-screen (not display:none) so simple bots that skip hidden fields
   still fill it, while it's never visible or reachable by a real visitor. */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.form-status { margin: 1rem 0; padding: 0.9rem 1rem; border-radius: 4px; font-size: 0.95rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: #eaf7ea; color: #1a5c1a; border: 1px solid #b9e3b9; }
.form-status.err { background: #fbe9e7; color: #8a2c1f; border: 1px solid #f0bcb2; }

.consent-field { font-size: 0.85rem; color: var(--ink-soft); }
.consent-field label { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }
.consent-field input[type="checkbox"] { width: auto; margin-top: 0.2rem; }

/* Email address shown as an image (not text) so it can't be scraped from the
   page source — same technique as tracy.nu/over-ons. Alt text is deliberately
   generic, not the literal address, for the same reason. */
.email-img { height: 1.2em; width: auto; vertical-align: -0.2em; }

/* ask_ai widget */
.aiw-toggle {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
	background: var(--ink); color: #fff; border: none; border-radius: 999px;
	padding: 0.85rem 1.3rem; font-weight: 700; font-size: 0.95rem; cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.aiw-toggle:hover { background: var(--brand-deep); }
.aiw-toggle .dot { display: inline-block; width: 0.5rem; height: 0.5rem; background: var(--brand); border-radius: 50%; margin-right: 0.5rem; vertical-align: middle; }

.aiw-panel {
	position: fixed; right: 1.25rem; bottom: 5rem; z-index: 60;
	width: min(22rem, calc(100vw - 2.5rem)); max-height: min(32rem, calc(100vh - 8rem));
	background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	display: none; flex-direction: column; overflow: hidden;
}
.aiw-panel.open { display: flex; }
.aiw-head { padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper-tint); }
.aiw-head strong { display: block; font-size: 0.95rem; }
.aiw-head span { font-size: 0.8rem; color: var(--ink-soft); }
.aiw-messages { flex: 1; overflow-y: auto; padding: 0.85rem 1rem; display: flex; flex-direction: column; gap: 0.65rem; font-size: 0.9rem; }
.aiw-msg { max-width: 90%; padding: 0.55rem 0.75rem; border-radius: 8px; line-height: 1.5; white-space: pre-wrap; }
.aiw-msg.user { align-self: flex-end; background: var(--ink); color: #fff; }
.aiw-msg.bot { align-self: flex-start; background: var(--paper-tint); border: 1px solid var(--line); }
.aiw-msg.pending { align-self: flex-start; color: var(--ink-soft); font-style: italic; }
.aiw-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.aiw-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 6px; padding: 0.5rem 0.65rem; font: inherit; }
.aiw-form input:focus { outline: none; border-color: var(--brand-deep); }
.aiw-form button { background: var(--brand); color: var(--ink); border: none; border-radius: 6px; padding: 0 0.9rem; font-weight: 700; cursor: pointer; }
.aiw-form button:disabled { opacity: 0.5; cursor: default; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 3rem 0; margin-top: 3rem; background: var(--paper-tint); }
footer.site .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
footer.site h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.75rem; }
footer.site address { font-style: normal; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }
footer.site .legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
footer.site a { color: var(--ink-soft); }

@media (max-width: 42rem) {
	nav.primary { display: none; }
	.hero { padding: 3rem 0 2rem; }
}
