/**
 * PUBLIC SITE: STYLES
 * ===================
 * The look of every public page (home, how we work, pricing, start a project, 404).
 * Admin pages keep default.css. Nothing here touches them.
 *
 * MAP OF THIS FILE
 *    1. Colors and fonts (palette D, light and dark)
 *    2. Page basics
 *    3. Header and menu
 *    4. Buttons, chips, cards
 *    5. Sections and grids
 *    6. Photos (blur-up loading)
 *    7. Priorities picker (Quality / Affordable / Fast)
 *    8. Pricing tiers
 *    9. Forms
 *   10. Footer
 *   11. Small helpers
 *
 * COLORS: every color is a variable in region 1. Change it there and the whole site follows,
 * in light and dark mode. Dark mode switches automatically with the visitor's device.
 */

/* ========================================================= */
/* region 1. COLORS AND FONTS */
/* ========================================================= */

/* The fonts themselves are in fonts.css, loaded just before this file. */

:root {
	--bg: #f1f2ec;          /* page: warm stone */
	--surface: #e5e6de;     /* bands, chips, form backgrounds */
	--card: #fafaf6;        /* cards that sit on the page */
	--fg: #1e231e;          /* text: the logo's charcoal */
	--muted: #5d625f;       /* secondary text */
	--line: #cfd1c7;        /* borders */
	--accent: #047a6a;      /* teal: only for things you can tap, or that are selected */
	--accent-fg: #ffffff;   /* text on teal */
	--band: #1e231e;        /* the dark band (call to action, footer) */
	--band-fg: #eceee9;
	--band-muted: #a9aea6;
	--band-accent: #2fcfb6;
	--error: #b3261e;
	--ok: #047a6a;
	--font-display: "Saira", "Arial Narrow", Arial, sans-serif;               /* big headings */
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; /* everything else */
	--radius: 14px;
	--page-width: 1180px;
	--gutter: max(16px, env(safe-area-inset-left, 0px));
	--gutter-right: max(16px, env(safe-area-inset-right, 0px));
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #161715;
		--surface: #21231f;
		--card: #1c1e1b;
		--fg: #ecece6;
		--muted: #a5a8a1;
		--line: #33362f;
		--accent: #2fcfb6;
		--accent-fg: #06201b;
		--band: #0e0f0d;
		--band-fg: #ecece6;
		--band-muted: #a5a8a1;
		--band-accent: #2fcfb6;
		--error: #ff8a80;
		--ok: #2fcfb6;
		color-scheme: dark;
	}
}

/* endregion 1. COLORS AND FONTS */

/* ========================================================= */
/* region 2. PAGE BASICS */
/* ========================================================= */

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* hidden things stay hidden, whatever display a class gives them */
html {
	background: var(--bg);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 90px;    /* jump links stop below the sticky header */
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
}
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: .005em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-weight: 800; font-size: 1.15rem; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .15em; }
img { max-width: 100%; height: auto; }
strong, b { font-weight: 800; }
ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* the page's content column: centered, with side gutters that also clear a phone's notch */
.wrap {
	max-width: var(--page-width);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter-right);
}
main { display: block; }

/* "Skip to content" link: invisible until a keyboard user tabs to it */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* endregion 2. PAGE BASICS */

/* ========================================================= */
/* region 3. HEADER AND MENU */
/* No JavaScript needed: on phones the menu links sit in a second row that scrolls sideways if it has to. */
/* ========================================================= */

.siteHeader {
	position: sticky;
	top: 0;
	z-index: 20;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
	padding-top: env(safe-area-inset-top, 0px);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .siteHeader { background: var(--bg); } }
.siteHeader .wrap {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "logo nav actions";
	align-items: center;
	gap: 8px 24px;
	min-height: 68px;
}
.logoLink { grid-area: logo; display: block; line-height: 0; }
.logoLink img { display: block; height: 34px; width: auto; }   /* the <picture> swaps in the house mark on phones and the white version in dark mode */
.siteNav { grid-area: nav; display: flex; gap: 4px 22px; justify-content: center; }
.siteNav a { color: var(--fg); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.siteNav a:hover { border-bottom-color: var(--line); }
.siteNav a[aria-current="page"] { border-bottom-color: var(--accent); }
.headerActions { grid-area: actions; display: flex; gap: 10px; align-items: center; }
.phoneLink { color: var(--fg); text-decoration: none; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phoneLink svg { width: 1em; height: 1em; vertical-align: -.12em; margin-right: 4px; }
.iconLink { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--fg); }
.iconLink:hover { background: var(--surface); }
.iconLink svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
	.siteHeader .wrap { grid-template-columns: auto 1fr; grid-template-areas: "logo actions" "nav nav"; min-height: 0; padding-block: 10px 0; }
	.headerActions { justify-self: end; }
	.siteNav { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding: 0 4px 6px; }
	.siteNav::-webkit-scrollbar { display: none; }
}
@media (max-width: 560px) {
	/* phones: the house mark instead of the long lockup, and the phone number as an icon */
	.logoLink img { height: 42px; }
	.phoneLink .phoneText { position: absolute; left: -9999px; }
	.phoneLink { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; }
	.phoneLink svg { margin: 0; width: 18px; height: 18px; }
	.headerActions { gap: 6px; }
	.iconLink { width: 42px; height: 42px; border: 1px solid var(--line); }
	.iconLink svg { width: 20px; height: 20px; }
	.headerActions .btn { padding: 10px 12px; }
}
/* endregion 3. HEADER AND MENU */

/* ========================================================= */
/* region 4. BUTTONS, CHIPS, CARDS */
/* ========================================================= */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font: inherit;
	font-weight: 800;
	font-size: .95rem;
	line-height: 1.2;
	background: var(--accent);
	color: var(--accent-fg);
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter .15s;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.onPhoto { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.btn.big { font-size: 1.05rem; padding: 15px 26px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btnRow { display: flex; flex-wrap: wrap; gap: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { font-size: .88rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--surface); }

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 20px;
	display: grid;
	gap: 8px;
	align-content: start;
	min-width: 0;
}
.card p { color: var(--muted); }
.textLink { font-weight: 800; text-decoration: none; }
.textLink:hover { text-decoration: underline; }

/* endregion 4. BUTTONS, CHIPS, CARDS */

/* ========================================================= */
/* region 5. SECTIONS AND GRIDS */
/* ========================================================= */

.section { padding-block: clamp(48px, 8vw, 88px); }
.section + .section { padding-top: 0; }
.section.tinted, .section.tinted + .section { padding-top: clamp(48px, 8vw, 88px); }
.section.tinted { background: var(--surface); }
.sectionHead { display: grid; gap: 10px; margin-bottom: 28px; max-width: 68ch; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 62ch; }
.prose { display: grid; gap: 14px; max-width: 66ch; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }

/* wide screens: heading on the left, intro on the right, so both edges line up with the full-width content below */
@media (min-width: 1000px) {
	.sectionHead { max-width: none; grid-template-columns: 5fr 7fr; column-gap: 64px; align-items: end; margin-bottom: 36px; }
	.sectionHead > .eyebrow, .sectionHead > h2 { grid-column: 1; }
	.sectionHead > .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; max-width: 60ch; }
	.pageHead { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: end; }
	.pageHead > .eyebrow, .pageHead > h1 { grid-column: 1; }
	.pageHead > .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
}

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }   /* 3 across on a laptop, so 6 cards make two full rows */
.split { display: grid; gap: clamp(24px, 5vw, 56px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* page title band on inner pages */
.pageHead { padding-block: clamp(40px, 7vw, 72px) clamp(28px, 5vw, 48px); display: grid; gap: 14px; }

/* home hero: a photo with the headline over its darker lower half */
.hero { position: relative; color: #fff; background: #2b2a26; overflow: hidden; }
.hero .photo { position: absolute; inset: 0; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .72) 85%); }
.hero .wrap { position: relative; z-index: 1; min-height: min(78vh, 640px); display: grid; align-content: end; gap: 16px; padding-block: 120px clamp(32px, 6vw, 64px); }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { max-width: 16ch; }
.hero .lede { color: rgba(255, 255, 255, .9); }
.heroChips { padding-block: 18px; border-bottom: 1px solid var(--line); }

/* numbered steps (a real sequence) */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.steps p { color: var(--muted); }

/* facts list: label on the left, value on the right */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 11em 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--muted); }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* the dark call-to-action band */
.ctaBand { background: var(--band); color: var(--band-fg); }
.ctaBand .wrap { padding-block: clamp(40px, 7vw, 72px); display: grid; gap: 16px; justify-items: start; }
.ctaBand .lede { color: var(--band-muted); }
.ctaBand .btn { background: var(--band-accent); color: #06201b; }
.ctaBand a:not(.btn) { color: var(--band-accent); }

/* areas we work in, one per line, each marked with a survey benchmark (the circle and crosshair surveyors use for a fixed point) */
.areaList { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1.15; }
.areaList li { display: flex; align-items: baseline; gap: .5em; }
.areaList li::before {
	content: ""; flex: none; width: .62em; height: .62em; background: var(--band-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 0v7M12 17v7M0 12h7M17 12h7'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 0v7M12 17v7M0 12h7M17 12h7'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='2.2' fill='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* endregion 5. SECTIONS AND GRIDS */

/* ========================================================= */
/* region 6. PHOTOS (BLUR-UP LOADING) */
/* Each photo sits on a tiny blurred copy of itself (about 250 bytes, inlined in the page), so the layout and
   colors appear instantly; the real photo fades in over it when it arrives. */
/* ========================================================= */

.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.photo .ph { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(16px); transform: scale(1.15); }
.photo img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.photo img.loading { opacity: 0; }   /* site.js adds this while a photo downloads, then fades it in */
.hero .photo { border-radius: 0; }

.project { display: grid; gap: 14px; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.project .photo { aspect-ratio: 3 / 2; }
.project figure.tall { grid-row: span 2; grid-template-rows: 1fr auto; }
.project figure.tall .photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
.project figure { margin: 0; display: grid; gap: 6px; min-width: 0; }
.project figcaption { font-size: .85rem; color: var(--muted); }
@media (max-width: 720px) { .project { grid-template-columns: 1fr; } .project figure.tall { grid-row: auto; } .project figure.tall .photo { aspect-ratio: 4 / 3; height: auto; min-height: 0; } }

/* endregion 6. PHOTOS (BLUR-UP LOADING) */

/* ========================================================= */
/* region 7. PRIORITIES PICKER */
/* Drawn by site.js into any element with data-prio="big" or data-prio="mini". */
/* ========================================================= */

.prioWrap { display: grid; grid-template-columns: minmax(260px, 400px) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 760px) { .prioWrap { grid-template-columns: 1fr; gap: 24px; } }
.tri { position: relative; width: 100%; aspect-ratio: 1 / .9; margin-inline: auto; max-width: 100%; }
.tri.big { max-width: 400px; }
.tri.mini { max-width: 230px; width: calc(100% - 56px); }
.tri svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tri polygon { fill: var(--surface); }
.tri line { stroke: var(--line); stroke-width: 3; stroke-linecap: round; transition: stroke .25s, stroke-width .25s; }
.tri line.on { stroke: var(--accent); stroke-width: 5; }
.node {
	position: absolute;
	transform: translate(-50%, -50%);
	font: inherit;
	font-weight: 800;
	border: 2px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	cursor: pointer;
	display: grid;
	line-height: 1.2;
	border-radius: 999px;
	transition: background .2s, border-color .2s, color .2s;
}
.tri.big .node { font-size: 15px; min-width: 118px; padding: 12px 16px; }
.tri.mini .node { font-size: 12.5px; min-width: 84px; padding: 7px 10px; }
.node small { font-weight: 500; font-size: 11px; color: var(--muted); }
.tri.mini .node small { display: none; }
.node[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.node[aria-pressed="true"] small { color: inherit; opacity: .85; }
.node.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: translate(-50%, -50%) scale(.92); } }
.n-quality { left: 50%; top: 9%; }
.n-affordable { left: 15%; top: 87%; }
.n-fast { left: 85%; top: 87%; }
.prioResult { display: grid; gap: 10px; min-width: 0; }
.prioResult h3 { font-size: 1.4rem; }
.prioTag { font-size: .78rem; font-weight: 800; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.prioResult .body { max-width: 60ch; }
.prioResult ul { padding-left: 1.2em; color: var(--muted); }
.limitNote { font-size: .85rem; color: var(--muted); min-height: 1.4em; }
.noScriptNote { color: var(--muted); }

/* endregion 7. PRIORITIES PICKER */

/* ========================================================= */
/* region 8. PRICING TIERS */
/* ========================================================= */

.tierScale { display: grid; gap: 0; margin-block: 8px 22px; }

/* the ruler: small ticks every 16 px, taller ones every 80 px, "Pay less" and "Pay more" at the ends */
.tsRuler {
	display: flex; justify-content: space-between; align-items: flex-start;
	height: 34px; padding-bottom: 16px; margin-bottom: 10px;
	font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
	border-bottom: 1.5px solid var(--muted);
	background:
		repeating-linear-gradient(90deg, var(--muted) 0 1.5px, transparent 1.5px 80px) left bottom / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 16px) left bottom / 100% 7px no-repeat;
}
.tsRuler span:last-child::after { content: " →"; }
.tsRuler span:first-child::before { content: "← "; }

/* each tier: a bar on top, deeper teal as the rate goes up; plain text below */
.tsTiers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tsTiers li { border-top: 8px solid; padding: 16px 12px 0 0; display: grid; gap: 6px; align-content: start; }
.ts-community { border-top-color: color-mix(in srgb, var(--accent) 30%, var(--bg)) !important; }
.ts-standard { border-top-color: color-mix(in srgb, var(--accent) 62%, var(--bg)) !important; }
.ts-sustaining { border-top-color: var(--accent) !important; }
.tsTiers h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.tsTiers p { color: var(--muted); max-width: 30ch; }
.tsTiers .tsRate { color: var(--fg); font-weight: 800; font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.tsRate small { font-size: .85rem; color: var(--muted); }

/* the bracket: from Sustaining (right column) back to Community (left column), arrow pointing up into Community */
.tsFlow {
	position: relative; margin: 18px calc(100% / 6) 0; height: 30px;
	border: 2px solid var(--accent); border-top: 0; border-radius: 0 0 16px 16px;
	text-align: center;
}
.tsFlow::before {   /* arrowhead */
	content: ""; position: absolute; left: -8px; top: -10px;
	border: 7px solid transparent; border-bottom: 10px solid var(--accent); border-top: 0;
}
.tsFlow span {
	position: relative; top: 19px; padding: 0 10px; background: var(--bg);
	font-size: .9rem; font-weight: 700; color: var(--fg);
}
@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.ts-community { border-top-color: #9fd3c9 !important; } .ts-standard { border-top-color: #4fae9f !important; }
}

/* phones: tiers stack, the bars move to the left edge, and the bracket becomes a plain line of text */
@media (max-width: 700px) {
	.tsRuler { display: none; }
	.tsTiers { grid-template-columns: 1fr; gap: 18px; }
	.tsTiers li { border-top: 0; border-left: 6px solid; padding: 2px 0 2px 14px; }
	.ts-community { border-left-color: color-mix(in srgb, var(--accent) 30%, var(--bg)) !important; }
	.ts-standard { border-left-color: color-mix(in srgb, var(--accent) 62%, var(--bg)) !important; }
	.ts-sustaining { border-left-color: var(--accent) !important; }
	.tsFlow { border: 0; margin: 18px 0 0; height: auto; text-align: left; }
	.tsFlow::before { content: "↺ "; position: static; border: 0; color: var(--accent); font-weight: 800; }
	.tsFlow span { top: 0; padding: 0; background: none; }
}

/* endregion 8. PRICING TIERS */

/* ========================================================= */
/* region 9. FORMS */
/* ========================================================= */

.intake { background: var(--surface); border-radius: 18px; padding: clamp(18px, 4vw, 36px); display: grid; gap: 22px; max-width: 820px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 800; font-size: .98rem; padding: 0; }
.hint { font-size: .85rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
	font: inherit;
	font-weight: 500;
	padding: 11px 12px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--bg);
	color: var(--fg);
	width: 100%;
}
.field textarea { resize: vertical; min-height: 7em; }
.field [aria-invalid="true"] { border-color: var(--error); }
.fieldError { color: var(--error); font-size: .88rem; font-weight: 700; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.optional { font-weight: 500; color: var(--muted); font-size: .85rem; }

.miniPrio { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); gap: 20px; align-items: center; background: var(--bg); border-radius: var(--radius); padding: 16px; }
@media (max-width: 560px) { .miniPrio { grid-template-columns: 1fr; } }
.miniPrio .summary { display: grid; gap: 4px; font-size: .92rem; min-width: 0; }

.tierPick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.tierPick label { position: relative; display: grid; gap: 4px; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.tierPick input { position: absolute; opacity: 0; pointer-events: none; }
.tierPick label:has(input:checked) { border-color: var(--accent); }
.tierPick label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.tierPick strong { font-size: 1rem; }
.tierPick .rate { font-weight: 800; font-variant-numeric: tabular-nums; }
.tierPick span { font-size: .86rem; color: var(--muted); }

/* the spam trap: a field people never see, so only robots fill it in */
.trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.formStatus { border-radius: 12px; padding: 14px 16px; font-weight: 700; }
.formStatus:empty { display: none; }
.formStatus.ok { background: color-mix(in srgb, var(--ok) 14%, var(--bg)); color: var(--fg); }
.formStatus.bad { background: color-mix(in srgb, var(--error) 14%, var(--bg)); color: var(--fg); }
.draftNote { font-size: .85rem; color: var(--muted); }
.sentBox { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 4vw, 36px); display: grid; gap: 14px; max-width: 820px; }

/* endregion 9. FORMS */

/* ========================================================= */
/* region 10. FOOTER */
/* ========================================================= */

.siteFooter { background: var(--band); color: var(--band-fg); font-size: .95rem; }
.siteFooter .wrap { padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.siteFooter h2 { font-family: var(--font-body); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 8px; }
.siteFooter a { color: var(--band-fg); }
.siteFooter ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.siteFooter p { color: var(--band-muted); }
.siteFooter .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 18px; color: var(--band-muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.siteFooter .fine a { color: var(--band-muted); }

/* endregion 10. FOOTER */

/* ========================================================= */
/* region 11. SMALL HELPERS */
/* ========================================================= */

.visuallyHidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.tabular { font-variant-numeric: tabular-nums; }

/* endregion 11. SMALL HELPERS */
