/*
Theme Name: Good on Site
Theme URI: https://goodonsite.com
Author: Good on Site
Description: The website for the Good on Site iPhone app. A lumber yard grade stamp look: yard-green field, inked stamps, painted board ends.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: goodonsite
*/

/* ---------- Fonts ---------- */

@font-face {
	font-family: "Big Shoulders Display";
	src: url("assets/fonts/big-shoulders-display-800.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens (from the app's DESIGN.md) ---------- */

:root {
	--gos-field: #17402b;
	--gos-field-deep: #0b1e14;
	--gos-on-field: #eef4ec;
	--gos-on-field-2: #b9d2c1;
	--gos-accent: #1e5b3c;
	--gos-next-step: #e5b21f;
	--gos-on-next-step: #1b1a12;
	--gos-paint-blue: #2557a7;
	--gos-paint-yellow: #8a6500;
	--gos-paint-green: #1e7a45;
	--gos-paint-red: #b8322a;
	--gos-paint-slate: #5a6470;

	--gos-paper: #f6f8f4;
	--gos-card: #ffffff;
	--gos-ink: #14201a;
	--gos-ink-2: #4a5a50;
	--gos-rule: #d7e0d8;
	--gos-link: #1e5b3c;

	--gos-stamp: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
	--gos-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--gos-radius-stamp: 6px;
	--gos-radius-card: 14px;
	--gos-gutter: clamp(16px, 5vw, 48px);
	--gos-max: 1120px;
	--gos-prose: 42rem;

	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--gos-field: #0b1e14;
		--gos-paper: #0f1712;
		--gos-card: #18231c;
		--gos-ink: #e8efe9;
		--gos-ink-2: #a9bbae;
		--gos-rule: #2a3a30;
		--gos-link: #7fd3a1;
		color-scheme: dark;
	}
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body {
	margin: 0;
	background: var(--gos-paper);
	color: var(--gos-ink);
	font-family: var(--gos-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

a { color: var(--gos-link); }

:focus-visible {
	outline: 3px solid var(--gos-next-step);
	outline-offset: 3px;
	border-radius: 4px;
}

.gos-skip {
	position: absolute;
	left: -9999px;
	top: 8px;
	z-index: 100;
	background: var(--gos-next-step);
	color: var(--gos-on-next-step);
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 700;
}
.gos-skip:focus { left: 16px; }

.gos-wrap {
	width: 100%;
	max-width: calc(var(--gos-max) + 2 * var(--gos-gutter));
	margin: 0 auto;
	padding: 0 var(--gos-gutter);
}

.gos-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Stamp type: heavy condensed caps. No ligatures, no tracking tricks. */
.gos-stamp-type {
	font-family: var(--gos-stamp);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	font-feature-settings: "liga" 0, "clig" 0, "dlig" 0;
	font-variant-ligatures: none;
}

/* ---------- Links ---------- */

.gos-link {
	color: var(--gos-link);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 0.28em;
	text-decoration-skip-ink: auto;
}
.gos-link--arrow::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.35em;
	transition: transform 160ms ease-out;
	text-decoration: none;
}
.gos-link--arrow:hover::after,
.gos-link--arrow:focus-visible::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
	.gos-link--arrow::after { transition: none; }
	.gos-link--arrow:hover::after,
	.gos-link--arrow:focus-visible::after { transform: none; }
}

.gos-prose a,
.gos-legal a { text-underline-offset: 0.28em; text-decoration-thickness: 1.5px; }

/* ---------- Header ---------- */

.gos-header {
	background: var(--gos-field);
	color: var(--gos-on-field);
}
.gos-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 72px;
}
.gos-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--gos-on-field);
	text-decoration: none;
	min-height: 44px;
}
.gos-brand__icon {
	width: 40px;
	height: 40px;
	border-radius: 9px;
	box-shadow: 0 0 0 1px rgba(238, 244, 236, 0.18);
}
.gos-brand__name { font-size: 1.75rem; line-height: 1; }

.gos-nav ul {
	list-style: none;
	display: flex;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.gos-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--gos-on-field);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	text-underline-offset: 0.3em;
}
.gos-nav a:hover,
.gos-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 560px) {
	.gos-header__bar { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 12px 6px; }
	.gos-nav ul { justify-content: flex-start; }
}

/* ---------- Grade stamp ---------- */

.gos-stamp {
	--gos-stamp-ink: var(--gos-on-field);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border: 3px solid var(--gos-stamp-ink);
	border-radius: calc(var(--gos-radius-stamp) + 4px);
	color: var(--gos-stamp-ink);
	line-height: 1;
}
.gos-stamp__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.18em;
	padding: 0.3em 0.6em 0.32em;
	border: 1.5px solid var(--gos-stamp-ink);
	border-radius: var(--gos-radius-stamp);
}
.gos-stamp__word { font-size: 1em; }
.gos-stamp__code { font-size: 0.42em; letter-spacing: 0.08em; }

.gos-stamp--small { font-size: 1.05rem; border-width: 2px; padding: 2px; }
.gos-stamp--small .gos-stamp__inner { border-width: 1px; padding: 0.22em 0.5em 0.24em; }

.gos-stamp--blue { --gos-stamp-ink: var(--gos-paint-blue); }
.gos-stamp--yellow { --gos-stamp-ink: var(--gos-paint-yellow); }
.gos-stamp--green { --gos-stamp-ink: var(--gos-paint-green); }
.gos-stamp--kiln { --gos-stamp-ink: var(--gos-next-step); }

@media (prefers-color-scheme: dark) {
	.gos-stamp--blue { --gos-stamp-ink: #8db4f0; }
	.gos-stamp--yellow { --gos-stamp-ink: #e5b21f; }
	.gos-stamp--green { --gos-stamp-ink: #7fd3a1; }
}

/* ---------- Hero (the yard) ---------- */

.gos-hero {
	background: var(--gos-field);
	color: var(--gos-on-field);
	padding: clamp(32px, 6vw, 72px) 0 0;
	overflow: hidden;
}
.gos-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: end;
}
.gos-hero__copy { padding-bottom: clamp(32px, 6vw, 80px); }
.gos-hero__stamp { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 28px; }
.gos-hero__title {
	font-size: clamp(3.2rem, 9vw, 6.4rem);
	line-height: 0.92;
	margin: 0 0 20px;
}
.gos-hero__line { display: block; }
.gos-hero__lede {
	font-size: clamp(1.125rem, 2.1vw, 1.3rem);
	color: var(--gos-on-field-2);
	max-width: 32rem;
	margin-bottom: 28px;
}
.gos-hero__lede strong { color: var(--gos-on-field); font-weight: 600; }

.gos-hero__phone {
	align-self: end;
	justify-self: center;
	width: min(100%, 340px);
	border-radius: 40px 40px 0 0;
	border: 10px solid #08140d;
	border-bottom: 0;
	background: #08140d;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	aspect-ratio: 340 / 520;
}
.gos-hero__phone img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	border-radius: 30px 30px 0 0;
}

@media (max-width: 820px) {
	.gos-hero__grid { grid-template-columns: 1fr; }
	.gos-hero__copy { padding-bottom: 8px; }
	.gos-hero__phone { width: min(86%, 320px); aspect-ratio: 320 / 380; }
}

/* ---------- Buttons ---------- */

.gos-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 1.0625rem;
	text-decoration: none;
	background: var(--gos-next-step);
	color: var(--gos-on-next-step);
}
.gos-button:hover { background: #f0c33a; }

.gos-soon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}
.gos-soon__note { color: var(--gos-on-field-2); font-size: 0.9375rem; margin: 0; }

/* ---------- Trades strip ---------- */

.gos-trades {
	background: var(--gos-field-deep);
	color: var(--gos-on-field-2);
	padding: 18px 0;
}
.gos-trades ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	justify-content: center;
	font-size: 1.15rem;
}

@media (prefers-color-scheme: dark) {
	.gos-trades { background: #060f0a; }
}

/* ---------- Sections ---------- */

.gos-section { padding-block: clamp(56px, 9vw, 112px); }
.gos-section + .gos-section { padding-top: 0; }

.gos-section__head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.gos-eyebrow { font-size: 1.1rem; color: var(--gos-link); margin: 0 0 8px; }
.gos-section__title { font-size: clamp(2.2rem, 5.4vw, 3.6rem); line-height: 0.98; }
.gos-section__lede { color: var(--gos-ink-2); font-size: 1.15rem; }

/* Boards: cards with a painted end. */
.gos-boards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 900px) { .gos-boards { grid-template-columns: 1fr; } }

.gos-board {
	position: relative;
	background: var(--gos-card);
	border-radius: var(--gos-radius-card);
	padding: 28px 24px 26px 34px;
	box-shadow: 0 1px 0 var(--gos-rule), 0 0 0 1px var(--gos-rule);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.gos-board::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 28px;
	bottom: 28px;
	width: 6px;
	border-radius: 3px;
	background: var(--gos-board-paint, var(--gos-paint-green));
}
.gos-board--blue { --gos-board-paint: var(--gos-paint-blue); }
.gos-board--yellow { --gos-board-paint: #e5b21f; }
.gos-board--green { --gos-board-paint: var(--gos-paint-green); }

.gos-board__title { font-size: 1.35rem; margin: 0; }
.gos-board__body { color: var(--gos-ink-2); margin: 0; }
.gos-board__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
	font-size: 0.975rem;
}
.gos-board__list li { padding-left: 20px; position: relative; }
.gos-board__list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--gos-board-paint, var(--gos-paint-green));
}

/* ---------- Screens row ---------- */

.gos-screens {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.gos-screens figure { margin: 0; }
.gos-screens img {
	border-radius: 22px;
	box-shadow: 0 0 0 1px var(--gos-rule), 0 18px 40px rgba(20, 32, 26, 0.12);
	aspect-ratio: 600 / 900;
	object-fit: cover;
	object-position: top;
	width: 100%;
}
.gos-screens figcaption { margin-top: 12px; color: var(--gos-ink-2); font-size: 0.9375rem; }

@media (max-width: 760px) {
	.gos-screens {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 72%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
	}
	.gos-screens li { scroll-snap-align: start; }
}

/* ---------- Pricing ---------- */

.gos-prices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (max-width: 900px) { .gos-prices { grid-template-columns: 1fr; } }

.gos-price {
	background: var(--gos-card);
	border-radius: var(--gos-radius-card);
	box-shadow: 0 0 0 1px var(--gos-rule);
	padding: 26px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.gos-price--pro { box-shadow: 0 0 0 2px var(--gos-accent); }
.gos-price__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gos-price__amount { font-size: 3rem; line-height: 1; margin: 0; color: var(--gos-ink); }
.gos-price__amount small { font-family: var(--gos-body); font-size: 1rem; font-weight: 600; text-transform: none; color: var(--gos-ink-2); }
.gos-price__note { color: var(--gos-ink-2); font-size: 0.9375rem; margin: 0; }
.gos-price .gos-board__list { --gos-board-paint: var(--gos-paint-green); }

.gos-fineprint { color: var(--gos-ink-2); font-size: 0.875rem; margin-top: 20px; max-width: 48rem; }

/* ---------- Closing ---------- */

.gos-closing {
	background: var(--gos-field);
	color: var(--gos-on-field);
	padding: clamp(56px, 8vw, 96px) 0;
}
.gos-closing__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.gos-closing__title { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 0.95; margin: 0; }
.gos-closing p { color: var(--gos-on-field-2); margin: 10px 0 0; }
.gos-closing .gos-link { color: var(--gos-on-field); }

/* ---------- Page header (inner pages) ---------- */

.gos-pagehead {
	background: var(--gos-field);
	color: var(--gos-on-field);
	padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 48px);
}
.gos-pagehead__title { font-size: clamp(2.6rem, 8vw, 4.6rem); line-height: 0.95; margin: 0 0 10px; }
.gos-pagehead__meta { color: var(--gos-on-field-2); margin: 0; }

/* ---------- Legal and prose ---------- */

.gos-legal {
	display: grid;
	grid-template-columns: 15rem minmax(0, var(--gos-prose));
	gap: clamp(24px, 5vw, 64px);
	padding-block: clamp(36px, 6vw, 64px) clamp(56px, 8vw, 96px);
}
@media (max-width: 900px) { .gos-legal { grid-template-columns: minmax(0, 1fr); } }

.gos-toc { font-size: 0.9375rem; }
.gos-toc__inner { position: sticky; top: 24px; }
.gos-toc h2 { font-size: 1.1rem; color: var(--gos-ink-2); margin-bottom: 10px; }
.gos-toc ol { margin: 0; padding: 0 0 0 1.6em; }

.gos-toc a { display: block; padding: 10px 0; color: var(--gos-ink); text-decoration: none; line-height: 1.35; }
.gos-toc a:hover { color: var(--gos-link); text-decoration: underline; text-underline-offset: 0.28em; }

@media (max-width: 900px) {
	.gos-toc { border: 1px solid var(--gos-rule); border-radius: 12px; padding: 16px 18px; background: var(--gos-card); }
	.gos-toc__inner { position: static; }
}

.gos-prose { max-width: var(--gos-prose); }
.gos-prose h2 { font-size: 1.5rem; margin-top: 2.2em; scroll-margin-top: 24px; }
.gos-prose h2:first-child { margin-top: 0; }
.gos-prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.gos-prose ul, .gos-prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.gos-prose li { margin-bottom: 0.45em; }

.gos-summary {
	background: var(--gos-card);
	border-radius: var(--gos-radius-card);
	box-shadow: 0 0 0 1px var(--gos-rule);
	padding: 22px 24px 8px 34px;
	position: relative;
	margin-bottom: 2.2em;
}
.gos-summary::before {
	content: "";
	position: absolute;
	left: 14px; top: 22px; bottom: 22px;
	width: 6px; border-radius: 3px;
	background: #e5b21f;
}
.gos-summary h2 { margin-top: 0; font-size: 1.2rem; }

.gos-callout-caps { font-weight: 600; }

/* ---------- Support FAQ ---------- */

.gos-faq { display: grid; gap: 12px; margin: 0 0 2em; }
.gos-faq details {
	background: var(--gos-card);
	border-radius: 12px;
	box-shadow: 0 0 0 1px var(--gos-rule);
	padding: 0 20px;
}
.gos-faq summary {
	cursor: pointer;
	font-weight: 600;
	min-height: 56px;
	display: flex;
	align-items: center;
	list-style-position: outside;
}
.gos-faq details[open] summary { border-bottom: 1px solid var(--gos-rule); margin-bottom: 14px; }
.gos-faq details > *:last-child { margin-bottom: 18px; }

/* ---------- Footer ---------- */

.gos-footer {
	background: var(--gos-field-deep);
	color: var(--gos-on-field-2);
	padding: 36px 0 44px;
	font-size: 0.9375rem;
}
@media (prefers-color-scheme: dark) { .gos-footer { background: #060f0a; } }

.gos-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.gos-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.gos-footer a { color: var(--gos-on-field); display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 0.28em; }
.gos-footer p { margin: 0; }

/* ---------- 404 ---------- */

.gos-notfound { padding-block: clamp(56px, 9vw, 112px); }
