/* PriceItBuildIt coming-soon site. Keystone brand: charcoal stone and brass on limestone.
   Tokens match the brand guide (claude.ai design system "PriceItBuildIt"). */

:root {
	--surface: #fbfaf8;
	--raised: #ffffff;
	--sunken: #f2efea;
	--line: #e4dfd6;
	--line-strong: #8c8478;
	--ink: #1f1c18;
	--muted: #6b645b;
	--action: #1f1c18;
	--action-hover: #3a352e;
	--on-action: #fbfaf8;
	--brass: #a8823f;
	--brass-text: #7a5c25;
	--brass-soft: #f3ead8;
	--stop: #b42318;
	--go: #1e7a4c;
	--band: #1f1c18;
	--band-ink: #f3f0ea;
	--band-muted: #bdb4a7;
	--band-brass: #c9a45e;
	--band-line: #3a352e;
	--shadow: 0 1px 2px rgba(31, 28, 24, 0.05), 0 12px 32px rgba(31, 28, 24, 0.08);

	--display: "Bodoni Moda", Didot, "Bodoni 72", Georgia, serif;
	--body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--r-sm: 6px;
	--r-md: 10px;
	--r-lg: 18px;
	--r-pill: 999px;
	--gutter: max(20px, env(safe-area-inset-left, 0px));
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--surface: #15130f;
		--raised: #1f1c18;
		--sunken: #0e0c0a;
		--line: #332e28;
		--line-strong: #7a7267;
		--ink: #f3f0ea;
		--muted: #b3aa9d;
		--action: #e9e4da;
		--action-hover: #ffffff;
		--on-action: #15130f;
		--brass: #c9a45e;
		--brass-text: #d4b06a;
		--brass-soft: #2e2614;
		--stop: #f97066;
		--go: #5cc98f;
		--band: #0b0a08;
		--band-line: #2a2621;
		--shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-left: var(--gutter); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap--narrow { max-width: 640px; }
.wrap--text { max-width: 760px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 10; padding: .6rem 1rem; background: var(--action); color: var(--on-action); border-radius: var(--r-md); text-decoration: none; }
.skip:focus { top: 1rem; }

/* Brand */
.mark .mark-stone { fill: var(--ink); }
.mark .mark-key { fill: var(--brass); }
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wordmark i { font-weight: 500; color: var(--brass); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand .wordmark { font-size: 1.55rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 78px; }
.head-nav { display: flex; align-items: center; gap: 1.75rem; }
.head-link { font-size: .95rem; font-weight: 500; text-decoration: none; padding-block: .5rem; }
.head-link:hover { box-shadow: inset 0 -1px 0 var(--brass); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.5rem; font: 600 1rem/1.2 var(--body); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--raised); color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color 160ms ease-out, border-color 160ms ease-out; touch-action: manipulation; }
.btn:hover { background: var(--sunken); }
.btn--primary { background: var(--action); border-color: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn--sm { min-height: 40px; padding: 0 1rem; font-size: .925rem; }
.btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-brass { font-weight: 600; text-decoration: none; box-shadow: inset 0 -1px 0 var(--brass); padding-bottom: 2px; }
.link-brass:hover { box-shadow: inset 0 -2px 0 var(--brass); }

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-title { margin: 0 0 1.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(2.9rem, 5.2vw + 1rem, 5.25rem); line-height: 1.0; letter-spacing: -0.02em; }
.hero-lead { max-width: 34rem; font-size: clamp(1.125rem, .5vw + 1rem, 1.3rem); line-height: 1.6; color: var(--muted); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }
.hero-note { margin: 1.75rem 0 0; font-size: .95rem; color: var(--muted); }
.hero-art { margin: 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--sunken); border-radius: 24px; }
.hero-drawing { display: block; width: 100%; height: auto; overflow: visible; }
.hero-drawing .dims path { fill: none; stroke: var(--brass); stroke-width: 1.25; }
.dim-text { fill: var(--muted); font: 500 13px var(--body); font-variant-numeric: tabular-nums; }
.callout { fill: var(--ink); font: 600 21px var(--display); }
.callout-sub { fill: var(--muted); font: 400 13px var(--body); }
.hero-mark .mark-key { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
	.hero-mark .mark-key { animation: key-set 1200ms cubic-bezier(.16, 1, .3, 1) 350ms both; }
}
@keyframes key-set {
	from { transform: translateY(-6px); }
	to { transform: none; }
}

/* Sections */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section--stone { background: var(--sunken); }
.section-title { margin: 0 0 1.25rem; font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 2.6vw + 1rem, 3.25rem); line-height: 1.06; letter-spacing: -0.012em; }
.section-lead { max-width: 38rem; font-size: 1.15rem; color: var(--muted); }
.page-title { margin: 0 0 1rem; font-family: var(--display); font-weight: 600; font-size: clamp(2.25rem, 2vw + 1.5rem, 3rem); line-height: 1.08; }
.narrow { padding-block: clamp(4rem, 10vw, 7rem); }
.page-mark { width: 64px; height: 64px; display: block; margin-bottom: 1.5rem; }

/* How it works */
.steps { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.step { border-top: 1px solid var(--line-strong); padding-top: 1.5rem; }
.step-num { display: block; font-family: var(--display); font-weight: 600; font-size: 3.25rem; line-height: 1; color: var(--brass); margin-bottom: 1rem; font-variant-numeric: lining-nums; font-variation-settings: "opsz" 18; }
.step-title { margin: 0 0 .6rem; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Promise */
.promise-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.promises { margin: 2.25rem 0 0; display: grid; gap: 1.5rem; }
.promises div { padding-left: 1.5rem; position: relative; }
.promises div::before { content: ""; position: absolute; left: 0; top: .5rem; width: 10px; height: 12px; background: var(--brass); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.promises dt { font-weight: 700; font-size: 1.0625rem; margin-bottom: .25rem; }
.promises dd { margin: 0; color: var(--muted); }
.price-example { margin: 0; }
.price-example figcaption { margin-top: 1rem; font-size: .9rem; color: var(--muted); max-width: 26rem; }
.price-card { max-width: 440px; padding: 2rem 2rem 1.25rem; background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.price-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.seal { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem .3rem .55rem; border-radius: var(--r-pill); background: var(--brass-soft); color: var(--brass-text); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.seal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.price-total { margin: .75rem 0 .4rem; font-family: var(--display); font-weight: 700; font-size: 3.25rem; line-height: 1; letter-spacing: -0.01em; font-variation-settings: "opsz" 18; font-variant-numeric: lining-nums; }
.price-sub { font-size: .9rem; color: var(--muted); }
.price-lines { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: .95rem; font-variant-numeric: tabular-nums; }
.price-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.price-lines li span:first-child { font-weight: 600; }

/* Contractors band */
.band-dark { background: var(--band); color: var(--band-ink); }
.band-dark .section-lead { color: var(--band-muted); }
.band-dark .section-title { max-width: 16ch; }
.pros-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.pros-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.25rem; }
.pros-list li { position: relative; padding-left: 1.5rem; color: var(--band-muted); }
.pros-list li::before { content: ""; position: absolute; left: 0; top: .55rem; width: 10px; height: 12px; background: var(--band-brass); clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%); }
.pros-list strong { color: var(--band-ink); font-weight: 700; }

/* Forms */
.form-card { background: var(--raised); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.form-title { margin: 0 0 1.25rem; font-family: var(--display); font-weight: 600; font-size: 1.6rem; line-height: 1.2; }
.join-form { display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .7rem .85rem; font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--stop); }
.field-error { margin: 0; font-size: .875rem; color: var(--stop); }
.form-status { margin: 0; font-size: .95rem; min-height: 0; }
.form-status.is-error { color: var(--stop); }
.form-fine { margin: 0; font-size: .85rem; color: var(--muted); }
.form-fine a { color: inherit; }
.form-done { padding: .5rem 0; }
.form-done h3 { margin: .25rem 0 .5rem; font-family: var(--display); font-size: 1.6rem; font-weight: 600; }
.form-done p { margin: 0; color: var(--muted); }
.form-done .mark { width: 44px; height: 44px; display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.error-list { color: var(--stop); padding-left: 1.2rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 3rem 2rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.brand--foot .wordmark { font-size: 1.35rem; }
.brand--foot .brand-mark { width: 32px; height: 32px; }
.foot-tag { margin: .75rem 0 0; color: var(--muted); font-size: .95rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; font-size: .95rem; }
.foot-nav a { text-decoration: none; padding-block: .5rem; }
.foot-nav a:hover { box-shadow: inset 0 -1px 0 var(--brass); }
.foot-legal { margin-top: 2rem; }
.foot-legal p { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 60rem; }
.foot-legal p + p { margin-top: .375rem; }

/* Text pages */
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 1.6rem; margin: 2.25rem 0 .75rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.fine { font-size: .875rem; color: var(--muted); }

/* Owner's list */
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.admin-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.admin-counts div { background: var(--raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; }
.admin-counts dt { font-size: .9rem; color: var(--muted); }
.admin-counts dd { margin: .25rem 0 0; font-size: 2.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.admin-block { margin-bottom: 3rem; }
.admin-block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; }
.admin-block-head h2 { margin: 0; font-family: var(--display); font-size: 1.75rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--raised); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { font-weight: 600; color: var(--muted); white-space: nowrap; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table .note { min-width: 14rem; }
.admin-table .is-left td { color: var(--muted); }
.tag { display: inline-block; margin-top: .25rem; font-size: .75rem; padding: .1rem .5rem; border-radius: var(--r-pill); background: var(--sunken); }
.empty { color: var(--muted); }
.admin-login { display: grid; gap: 1.1rem; margin-top: 1.5rem; }

/* Narrower screens */
@media (max-width: 1000px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
}
@media (max-width: 860px) {
	.hero-grid, .promise-grid, .pros-grid, .join-wrap { grid-template-columns: minmax(0, 1fr); }
	.hero-art { max-width: 520px; }
	.head-link { display: none; }
}
@media (max-width: 560px) {
	.steps { grid-template-columns: minmax(0, 1fr); }
	.field-row { grid-template-columns: minmax(0, 1fr); }
	.admin-counts { grid-template-columns: minmax(0, 1fr); }
	.brand .wordmark { font-size: 1.3rem; }
	.brand-mark { width: 32px; height: 32px; }
	.hero-actions .btn { width: 100%; }
	.price-card { padding: 1.5rem 1.25rem 1rem; }
	.price-total { font-size: 2.75rem; }
}
@media (max-width: 380px) {
	.head-nav .btn { padding: 0 .75rem; }
	.brand .wordmark { font-size: 1.15rem; }
}
