/* opclera.com. Tokens from the brand (docs/decisions/0001): Ink Navy, Electric Teal (shapes
   only), the darker teal for anything with text on white, Light Gray surfaces. */
@font-face {
	font-family: "Manrope";
	src: url("/fonts/manrope.woff2") format("woff2");
	font-weight: 200 800;
	font-display: swap;
}

:root {
	--navy: #0f1b2d;
	--teal: #00b8b0;        /* decorative: shapes, icons, text on navy */
	--teal-text: #007f79;   /* text and buttons on white (4.9:1) */
	--teal-text-hover: #006a65;
	--gray: #f1f3f6;
	--line: #dde2ea;
	--muted: #5b6678;       /* secondary text on white or gray (5.2:1 or better) */
	--on-navy-muted: #a9b4c4;
	--white: #ffffff;

	--radius: 14px;
	--wrap: 1120px;
	--gutter: clamp(20px, 5vw, 40px);
	--section: clamp(56px, 9vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-weight: 400;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--navy);
	background: var(--white);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
a { color: var(--teal-text); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.site-header nav { display: flex; gap: 28px; }
.site-header nav a { color: var(--navy); font-weight: 600; text-decoration: none; }
.site-header nav a:hover { color: var(--teal-text); }

/* Buttons */
.button {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 24px; border-radius: 10px;
	background: var(--teal-text); color: var(--white);
	font-weight: 700; text-decoration: none;
	transition: background-color .15s ease;
}
.button::after { content: "\2192"; }
.button:hover { background: var(--teal-text-hover); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--white) 0%, var(--gray) 100%); overflow: hidden; }
.hero-inner {
	display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center; gap: 48px; padding-block: clamp(56px, 10vw, 120px);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); max-width: 16ch; text-wrap: balance; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.25rem); font-weight: 500; color: var(--muted); max-width: 34rem; }
.hero .button { margin-top: 34px; }
.hero-art { width: 100%; max-width: 420px; justify-self: end; }
.leaf-teal { fill: var(--teal); }
.leaf-navy { fill: var(--navy); }
.leaf-gray { fill: var(--line); }
.dots { fill: var(--teal); }

/* Sections */
.section { padding-block: var(--section); }
.section-gray { background: var(--gray); }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); }
.section-gray .eyebrow { color: var(--navy); }
h2 { margin-top: 12px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); max-width: 22ch; }

/* App cards */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; margin-top: 40px; }
.app-card {
	position: relative; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--white); box-shadow: 0 1px 2px rgba(15, 27, 45, .04), 0 8px 24px rgba(15, 27, 45, .06);
}
.app-card::before { /* the brand's leaf, small, in the corner */
	content: ""; position: absolute; top: 28px; right: 28px; width: 28px; height: 28px;
	background: var(--teal); border-radius: 9px 0 13px 0;
}
.badge {
	display: inline-block; padding: 5px 12px; border-radius: 999px;
	background: var(--gray); color: var(--navy); font-size: .8125rem; font-weight: 700;
}
.app-card h3 { margin-top: 18px; font-size: 1.5rem; }
.app-card p:not(.badge) { margin-top: 10px; color: var(--muted); }
.app-card .button { margin-top: 24px; }

/* How we build */
.principles { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.principles li { padding: 32px; border-radius: var(--radius); background: var(--white); }
.icon { display: block; width: 48px; height: 48px; }
.icon .ln { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .ac { fill: var(--teal); }
.icon .ac-stroke { stroke: var(--teal); }
.principles h3 { margin-top: 20px; font-size: 1.25rem; }
.principles p { margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy-muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-block: 40px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer nav a { color: var(--white); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--teal); }
.legal { margin-left: auto; font-size: .9375rem; }

/* Legal pages: Termly's text (build.py), set for long reading. Headings keep Termly's capitals. */
.legal-doc { max-width: calc(46rem + 2 * var(--gutter)); padding-block: clamp(40px, 7vw, 80px); }
.legal-doc h1 { font-size: clamp(2rem, 4.4vw, 2.75rem); }
.legal-doc h1 + p { margin-top: 10px; color: var(--muted); font-size: .9375rem; }
.legal-doc h2 { max-width: none; margin-top: 48px; font-size: 1.25rem; letter-spacing: 0; scroll-margin-top: 24px; }
.legal-doc h3 { margin-top: 28px; font-size: 1.0625rem; letter-spacing: 0; scroll-margin-top: 24px; }
.legal-doc p, .legal-doc ul, .legal-doc .table-scroll { margin-top: 14px; }
.legal-doc ul { padding-left: 1.25rem; }
.legal-doc li + li { margin-top: 6px; }
.legal-doc #toc ~ p { margin-top: 6px; } /* the contents list */
.legal-doc #infocollect { margin-top: 48px; }
.legal-doc a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.legal-doc table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: .9375rem; }
.legal-doc th, .legal-doc td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-doc th { background: var(--gray); }

@media (max-width: 860px) {
	.hero-inner { grid-template-columns: 1fr; gap: 8px; }
	.hero-art { order: -1; max-width: 200px; justify-self: start; margin-bottom: 8px; }
	.principles { grid-template-columns: 1fr; }
	.legal { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.button { transition: none; }
}
