/*
Theme Name:        TRL TechRidge Labs
Template:          trl-block-theme-starter
Author:            TechRidge Labs LLC
Author URI:        https://techridgelabs.com
Description:       TechRidge Labs' own site: a thin child of the TRL Block Theme Starter. Lander from the 2026-10 Claude Design homepage.
Version:           0.1.0
Requires at least: 7.0
Requires PHP:      8.1
License:           GPL-2.0-or-later
Text Domain:       trl-techridgelabs
*/

/* ─────────────────────────────────────────────────────────────────────────
   Tokens
   Colours come from theme.json presets; these are the layout measures from
   the design (1200px wide, 720px measure). Change them here to restyle.
   ───────────────────────────────────────────────────────────────────────── */
:root {
	--trl-slate: var(--wp--preset--color--brand-primary);
	--trl-teal: var(--wp--preset--color--brand-secondary);
	--trl-gold: var(--wp--preset--color--brand-accent);
	--trl-terracotta: var(--wp--preset--color--accent-warm);
	--trl-evergreen: var(--wp--preset--color--accent-deep);
	--trl-ink: var(--wp--preset--color--ink);
	--trl-ink-muted: var(--wp--preset--color--ink-muted);
	--trl-line: var(--wp--preset--color--line);
	--trl-paper: var(--wp--preset--color--surface-bright);
	--trl-mist: var(--wp--preset--color--mist);
	--trl-mist-deep: var(--wp--preset--color--mist-deep);
	--trl-on-slate-muted: var(--wp--preset--color--on-slate-muted);
	--trl-on-slate-line: rgba(255, 255, 255, 0.22);
	--trl-dusk-top: #1F2E45;
	--trl-dusk-mid: #2C4363;
	--trl-dusk-bottom: var(--trl-slate);
	--trl-dusk-gold: #E6C46B;
	--trl-dusk-teal: #8ED3D1;
	--trl-ridge-far: #4B6890;
	--trl-ridge-back: #6481A6;
	--trl-ridge-mid: #8BA3C2;
	--trl-ridge-near: #BFCDDD;
	--trl-ridge-h: clamp(140px, 19vw, 360px);
	--trl-ridge-overlap: calc(var(--trl-ridge-h) * 0.45);
	/* The mark's lines blend from slate (bottom) to teal to gold (top): the gradient in the mark's <defs>. */
	--trl-mark-bottom: #6D8DB6;
	--trl-mark-middle: #2FA8A3;
	--trl-mark-top: var(--trl-dusk-gold);
	--trl-mark-color: url(#trl-mark-grad) #8BA3C2;
	--trl-mark-tint-color: var(--trl-paper);
	--trl-mark-line: 0.8;
	--trl-mark-tint: 0.035;
	--trl-footer-text: #C7CCD1;
	--trl-footer-dim: #8F979E;
	--trl-footer-line: #3A3D3C;

	--trl-display: var(--wp--preset--font-family--outfit);
	--trl-mono: var(--wp--preset--font-family--system-mono);

	--trl-fs-large: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
	--trl-fs-xl: clamp(1.4rem, 1.25rem + 0.5vw, 1.6rem);
	--trl-fs-xxl: clamp(2rem, 1.6rem + 1.4vw, 2.5rem);
	--trl-fs-huge: clamp(2.5rem, 1.6rem + 3.2vw, 4rem);

	--trl-measure: 720px;
	--trl-gutter: clamp(16px, 4vw, 40px);
	--trl-section: clamp(64px, 8vw, 104px);
	--trl-radius: 6px;
	--trl-header-h: 68px;
}

html {
	scroll-padding-top: calc(var(--trl-header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
	text-wrap: balance;
}

a {
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

:focus-visible {
	outline: 2px solid var(--trl-teal);
	outline-offset: 3px;
	border-radius: 2px;
}

/* The page is a stack of full-bleed bands: no gaps between template parts or sections. */
.wp-site-blocks > * + *,
.trl-main > * + *,
.wp-block-post-content > .trl-section {
	margin-block-start: 0;
}

/* Flow-layout groups used as CSS grids: drop WordPress's flow margins inside them. */
body .trl-grid > *,
body .trl-promises > *,
body .trl-contact__grid > *,
body .trl-footer__grid > *,
body .trl-footer__base > *,
body .trl-footer__links > li {
	margin-block: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Shared pieces
   ───────────────────────────────────────────────────────────────────────── */
.trl-section {
	padding-block: var(--trl-section);
	padding-inline: var(--trl-gutter);
}

/* Eyebrow: the starter's is-style-trl-eyebrow, in the design's mono + gold dot. */
p.is-style-trl-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	font-family: var(--trl-mono);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--trl-teal);
}

p.is-style-trl-eyebrow::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--trl-gold);
	flex: none;
}

.trl-section-head {
	display: grid;
	gap: 1rem;
	max-width: var(--trl-measure);
	margin-bottom: clamp(2.25rem, 5vw, 3.25rem);
}

body .trl-section-head > * {
	margin-block: 0;
}

.trl-section-head h2,
.trl-contact__info h2 {
	font-size: var(--trl-fs-xxl);
	line-height: 1.15;
}

.trl-section-head p:not(.is-style-trl-eyebrow),
.trl-lede {
	font-size: var(--trl-fs-large);
	color: var(--trl-ink-muted);
	max-width: 58ch;
}

/* Buttons: match the design's 2px-bordered buttons (primary + outline). */
.wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.4rem;
	border: 2px solid var(--trl-slate);
	line-height: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.wp-block-button__link.wp-element-button:hover,
.wp-block-button__link.wp-element-button:focus-visible {
	border-color: var(--trl-teal);
}

/* Outline buttons are solid white, so the hero mark never shows through them. */
.wp-block-button.is-style-trl-outline .wp-block-button__link {
	background: var(--trl-paper);
	color: var(--trl-slate);
}

.wp-block-button.is-style-trl-outline .wp-block-button__link:hover,
.wp-block-button.is-style-trl-outline .wp-block-button__link:focus-visible {
	background: var(--trl-paper);
	color: var(--trl-teal);
	border-color: var(--trl-teal);
}

.trl-btn-small .wp-block-button__link.wp-element-button {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	white-space: nowrap;
}

.trl-header__cta {
	flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   Header + lockup
   ───────────────────────────────────────────────────────────────────────── */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 10;
}

.admin-bar .wp-site-blocks > header.wp-block-template-part {
	top: var(--wp-admin--admin-bar--height, 32px);
}

.trl-header {
	padding-inline: var(--trl-gutter);
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(1.4) blur(8px);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--trl-line);
}

.trl-header__bar {
	min-height: var(--trl-header-h);
	gap: 1.5rem;
}

.trl-header__nav {
	gap: clamp(1rem, 2.4vw, 2rem);
}

.trl-nav {
	gap: clamp(1rem, 2.4vw, 2rem);
	font-family: var(--trl-display);
	font-size: 0.98rem;
}

.trl-nav a {
	color: var(--trl-ink);
	text-decoration: none;
}

.trl-nav a:hover,
.trl-nav a:focus-visible {
	color: var(--trl-teal);
}

.trl-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	color: var(--trl-ink);
	text-decoration: none;
}

.trl-lockup:hover {
	color: inherit;
}

.trl-lockup img {
	display: block;
	width: 58px;
	height: auto;
}

.trl-lockup span {
	font-family: var(--trl-display);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	white-space: nowrap;
}

.trl-lockup b {
	font-weight: 600;
}

.trl-lockup i {
	font-style: normal;
	font-weight: 400;
	margin-left: 0.25em;
	letter-spacing: 0.14em;
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero ("Dusk"): white copy on deep blue over a large TRL mark whose lines
   blend slate → teal → gold, with layered ridges in front of the mark's base.
   The How we help cards rise up over the ridges.
   ───────────────────────────────────────────────────────────────────────── */
.trl-hero {
	position: relative;
	overflow: hidden;
	display: grid;
	align-items: center;
	background: linear-gradient(180deg, var(--trl-dusk-top) 0%, var(--trl-dusk-mid) 55%, var(--trl-dusk-bottom) 100%);
	color: var(--trl-paper);
	/* keeps the copy inside the 1200px page column */
	padding-inline: max(var(--trl-gutter), calc((100% - 1200px) / 2));
	padding-top: clamp(56px, 8vw, 104px);
	padding-bottom: calc(var(--trl-ridge-h) + clamp(8px, 2vw, 32px));
}

/* The section's constrained layout centres each child at 1200px; the grid and padding place them instead. */
body .trl-hero > * {
	max-width: none;
	margin: 0 !important;
}

.trl-hero__copy {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 1.5rem;
}

body .trl-hero__copy > * {
	margin-block: 0;
	max-width: 40rem;
}

.trl-hero p.is-style-trl-eyebrow {
	color: var(--trl-dusk-teal);
}

.trl-hero__title {
	font-size: var(--trl-fs-huge);
	letter-spacing: -0.025em;
	line-height: 1.04;
	color: var(--trl-paper);
}

.trl-hero__title em {
	font-style: normal;
	color: var(--trl-dusk-gold);
}

.trl-hero .trl-lede {
	max-width: 52ch;
	color: var(--trl-mist-deep);
}

/* A soft dark halo keeps the copy readable where it crosses the mark's lines. */
.trl-hero .trl-lede,
.trl-hero__where {
	text-shadow: 0 0 6px var(--trl-dusk-mid), 0 0 14px var(--trl-dusk-mid);
}

.trl-hero__actions {
	padding-top: 0.5rem;
	gap: 0.75rem;
}

.trl-hero__where {
	font-family: var(--trl-display);
	font-size: 0.95rem;
	color: var(--trl-on-slate-muted);
}

/* Hero buttons on the dark background. Gold takes dark text: white on this gold is 2.2:1 and fails;
   charcoal is 7.1:1. Both buttons are solid so the mark never shows through them. */
.trl-hero .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link {
	background: var(--trl-gold);
	border-color: var(--trl-gold);
	color: var(--trl-ink);
	font-weight: 600;
}

.trl-hero .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link:hover,
.trl-hero .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link:focus-visible {
	background: var(--trl-dusk-gold);
	border-color: var(--trl-dusk-gold);
	color: var(--trl-ink);
}

.trl-hero .wp-block-button.is-style-trl-outline .wp-block-button__link {
	background: var(--trl-paper);
	border-color: var(--trl-paper);
	color: var(--trl-dusk-mid);
}

.trl-hero .wp-block-button.is-style-trl-outline .wp-block-button__link:hover,
.trl-hero .wp-block-button.is-style-trl-outline .wp-block-button__link:focus-visible {
	background: var(--trl-mist);
	border-color: var(--trl-mist);
	color: var(--trl-slate);
}

.trl-hero .wp-block-button__link:focus-visible {
	outline: 2px solid var(--trl-paper);
	outline-offset: 3px;
}

.trl-hero__ranges {
	position: absolute;
	left: 0;
	bottom: -1px; /* hides the anti-aliased bottom edge */
	z-index: 1;
	width: 100%;
	height: var(--trl-ridge-h);
}

/* Five overlapping ridge lines, lighter with distance. */
.trl-hero__ranges .far {
	fill: var(--trl-ridge-far);
}

.trl-hero__ranges .back {
	fill: var(--trl-ridge-back);
}

.trl-hero__ranges .mid {
	fill: var(--trl-ridge-mid);
}

.trl-hero__ranges .near {
	fill: var(--trl-ridge-near);
}

/* The front ridge is the page colour, so the ridges run straight into the cards. */
.trl-hero__ranges .front {
	fill: var(--trl-paper);
}

/* The mark drawn large behind the copy. Its base sits behind the ridges. */
body .trl-hero > .trl-hero__mark {
	position: absolute;
	z-index: 0;
	right: max(-40px, calc((100% - 1200px) / 2 - 160px));
	bottom: calc(var(--trl-ridge-h) * 0.2);
	width: clamp(560px, 80vw, 1180px);
	max-width: none;
	height: auto;
	overflow: visible;
	pointer-events: none;
}

.trl-hero__mark .fill {
	fill: var(--trl-mark-tint-color);
	fill-opacity: var(--trl-mark-tint);
}

.trl-hero__mark .ink {
	fill: var(--trl-mark-color);
	fill-opacity: var(--trl-mark-line);
}

.trl-hero__mark .grad-bottom { stop-color: var(--trl-mark-bottom); }
.trl-hero__mark .grad-middle { stop-color: var(--trl-mark-middle); }
.trl-hero__mark .grad-top { stop-color: var(--trl-mark-top); }

.trl-hero__mark .pulse {
	fill: none;
	stroke: var(--trl-dusk-gold);
	stroke-opacity: 0.6;
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
}

.trl-hero__mark .pulse--gold {
	stroke: var(--trl-dusk-gold);
}

@media (prefers-reduced-motion: no-preference) {
	.trl-hero__mark .pulse {
		animation: trl-pulse 3.6s ease-out infinite;
	}

	@keyframes trl-pulse {
		0% { transform: scale(1); opacity: 0.75; }
		70%, 100% { transform: scale(2.8); opacity: 0; }
	}
}

/* ─────────────────────────────────────────────────────────────────────────
   How we help: three cards that rise over the hero's ridges
   ───────────────────────────────────────────────────────────────────────── */
.wp-block-post-content > .trl-section.trl-help {
	position: relative;
	z-index: 1;
	margin-block-start: calc(-1 * var(--trl-ridge-overlap));
	padding-top: 0;
}

.trl-areas {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

/* Each card spans three rows of the grid, so titles, text and prompts line up across cards. */
.trl-area {
	display: grid;
	grid-row: span 3;
	grid-template-rows: subgrid;
	row-gap: 0.75rem;
	min-width: 0;
	padding: clamp(1.4rem, 2.2vw, 1.75rem);
	background: var(--trl-paper);
	border: 1px solid var(--trl-line);
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(61, 90, 128, 0.12);
}

body .trl-area > * {
	margin-block: 0;
}

.trl-area h2 {
	font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.4rem);
	line-height: 1.2;
}

.trl-area p {
	max-width: 44ch;
}

/* "Sound familiar?" prompts: the kind of thing owners tell us, not customer quotes. */
body .trl-area > .trl-heard {
	padding-top: 0.9rem;
	border-top: 1px solid var(--trl-line);
	font-size: 0.95em;
	color: var(--trl-ink-muted);
}

.trl-heard strong {
	display: block;
	margin-bottom: 0.2rem;
	font-family: var(--trl-display);
	font-size: 0.88em;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--trl-teal);
}

.trl-help__note {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	font-family: var(--trl-display);
	font-size: 1.05rem;
}

.trl-help__note a {
	font-weight: 500;
}

/* ─────────────────────────────────────────────────────────────────────────
   How it works
   ───────────────────────────────────────────────────────────────────────── */
.trl-process {
	border-top: 1px solid var(--trl-line);
}

.trl-steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.75rem, 4vw, 3rem);
}

.trl-steps::before,
.trl-steps::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 0;
	top: 17px;
	height: 2px;
	background: var(--trl-line);
}

/* The line fills teal as the steps scroll into view (where the browser supports
   scroll-driven animation; elsewhere it stays the quiet grey line). */
.trl-steps::after {
	background: var(--trl-teal);
	transform-origin: left center;
	transform: scaleX(0);
}

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.trl-steps::after {
			animation: trl-fill linear both;
			animation-timeline: view();
			animation-range: entry 30% cover 55%;
		}
	}
}

@keyframes trl-fill {
	to { transform: scaleX(1); }
}

.trl-step {
	position: relative;
	display: grid;
	gap: 0.6rem;
	align-content: start;
	min-width: 0;
}

body .trl-step > * {
	margin-block: 0;
}

.trl-step h3 {
	font-size: 1.25rem;
}

.trl-step p:not(.trl-step__num) {
	color: var(--trl-ink-muted);
	max-width: 40ch;
}

.trl-step__num {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 0.5rem !important;
	border: 2px solid var(--trl-teal);
	border-radius: 50%;
	background: var(--trl-paper);
	color: var(--trl-teal);
	font-family: var(--trl-mono);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1;
}

/* ─────────────────────────────────────────────────────────────────────────
   The website standard (slate band)
   ───────────────────────────────────────────────────────────────────────── */
.trl-standard {
	background: var(--trl-slate);
	color: var(--trl-paper);
}

.trl-standard p.is-style-trl-eyebrow {
	color: var(--trl-on-slate-muted);
}

.trl-standard h2,
.trl-standard h3 {
	color: var(--trl-paper);
}

.trl-standard .trl-section-head p:not(.is-style-trl-eyebrow) {
	color: var(--trl-on-slate-muted);
}

.trl-promises {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-top: 1px solid var(--trl-on-slate-line);
}

.trl-promise {
	display: grid;
	gap: 0.45rem;
	align-content: start;
	min-width: 0;
	padding: 1.5rem 1.5rem 1.6rem 0;
	border-bottom: 1px solid var(--trl-on-slate-line);
}

body .trl-promise > * {
	margin-block: 0;
}

.trl-promise:not(:nth-child(3n+1)) {
	padding-left: 1.5rem;
	border-left: 1px solid var(--trl-on-slate-line);
}

.trl-promise h3 {
	display: flex;
	gap: 0.6rem;
	align-items: baseline;
	font-size: 1.2rem;
}

.trl-promise h3::before {
	content: "";
	flex: none;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--trl-gold);
	transform: translateY(-2px);
}

.trl-promise p {
	color: var(--trl-on-slate-muted);
	max-width: 36ch;
}

/* ─────────────────────────────────────────────────────────────────────────
   From the lab
   ───────────────────────────────────────────────────────────────────────── */
.trl-lab {
	background: var(--trl-mist);
}

.trl-products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

.trl-product,
.trl-card {
	display: grid;
	gap: 0.75rem;
	align-content: start;
	min-width: 0;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--trl-paper);
	border: 1px solid var(--trl-mist-deep);
	border-radius: 10px;
}

body .trl-product > *,
body .trl-card > * {
	margin-block: 0;
}

.trl-product__top {
	gap: 1rem;
}

body .trl-product__top > * {
	margin-block: 0;
}

.trl-product__type {
	font-family: var(--trl-mono);
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--trl-ink-muted);
}

.trl-product h3,
.trl-card h3 {
	font-size: var(--trl-fs-xl);
}

/* PyPractice's own logo (snake P + wordmark, light version) shown in place of its card heading.
   The heading text stays in the page for screen readers and search; only its look changes.
   Sized so the wordmark's capitals match the other card's heading. */
.trl-product:has(a[href*="pypractice.org"]) h3 {
	width: 6.4em;
	height: 1.35em;
	overflow: hidden;
	white-space: nowrap;
	text-indent: 110%;
	background: url("assets/img/pypractice-lockup.svg") left center / contain no-repeat;
}

.trl-product p {
	max-width: 50ch;
}

.trl-product__foot {
	padding-top: 0.25rem;
	font-family: var(--trl-display);
	font-size: 0.95rem;
	color: var(--trl-ink-muted);
}

.trl-product__foot a {
	font-weight: 500;
}

.trl-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	font-family: var(--trl-mono);
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
}

.trl-chip::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.trl-chip--go {
	color: var(--trl-evergreen);
	background: #EDF5F0;
}

.trl-chip--class {
	color: var(--trl-slate);
	background: var(--trl-mist);
}

/* ─────────────────────────────────────────────────────────────────────────
   Contact
   ───────────────────────────────────────────────────────────────────────── */
.trl-contact {
	border-top: 1px solid var(--trl-line);
}

.trl-contact__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

.trl-contact__info {
	display: grid;
	gap: 1.25rem;
	min-width: 0;
}

body .trl-contact__info > * {
	margin-block: 0;
}

.trl-facts {
	display: grid;
	gap: 1rem;
	margin: 0.5rem 0 0;
}

.trl-facts div {
	display: grid;
	gap: 0.15rem;
}

.trl-facts dt {
	font-family: var(--trl-mono);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--trl-ink-muted);
}

.trl-facts dd {
	margin: 0;
	font-family: var(--trl-display);
	font-size: 1.1rem;
}

/* Who you'll work with: a short bio under the contact details. */
.trl-person {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	column-gap: 1.25rem;
	row-gap: 0.5rem;
	align-items: start;
	margin-top: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--trl-line);
}

/* Mike's portrait: his pencil sketch in navy on a light background, with the gradient ring
   (assets/img/mike-sketch.webp). Decorative: the text beside it names him. */
.trl-person::before {
	content: "";
	grid-row: 1 / span 2;
	width: 6.5rem;
	aspect-ratio: 1;
	border-radius: 50%;
	background: url("assets/img/mike-sketch.webp") center / cover no-repeat;
}

body .trl-person > * {
	grid-column: 2;
	margin-block: 0;
}

.trl-person h3 {
	font-size: var(--trl-fs-large);
	line-height: 1.3;
}

.trl-person p {
	color: var(--trl-ink-muted);
	max-width: 52ch;
}

.trl-card {
	border-color: var(--trl-line);
}

.trl-checklist {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.trl-checklist li {
	position: relative;
	padding-left: 1.4rem;
}

.trl-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--trl-gold);
}

.trl-card .wp-block-buttons {
	padding-top: 0.5rem;
}

.trl-card__note {
	font-family: var(--trl-display);
	font-size: 0.92rem;
	color: var(--trl-ink-muted);
}

/* ─────────────────────────────────────────────────────────────────────────
   What it costs, Questions, and the notes added 2026-11-17
   ───────────────────────────────────────────────────────────────────────── */
.trl-costs {
	border-top: 1px solid var(--trl-line);
}

.trl-prices {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 2vw, 1.5rem);
}

.trl-price {
	display: grid;
	gap: 0.5rem;
	align-content: start;
	min-width: 0;
	padding: clamp(1.25rem, 2.2vw, 1.6rem);
	background: var(--trl-mist);
	border: 1px solid var(--trl-line);
	border-top: 3px solid var(--trl-teal);
	border-radius: var(--trl-radius);
}

body .trl-price > *,
body .trl-question > *,
body .trl-questions > * {
	margin-block: 0;
}

.trl-price h3,
.trl-question h3 {
	font-size: 1.2rem;
	line-height: 1.25;
}

.trl-price p {
	color: var(--trl-ink-muted);
}

.trl-faq {
	border-top: 1px solid var(--trl-line);
}

.trl-questions {
	display: grid;
	max-width: 820px;
	border-top: 1px solid var(--trl-line);
}

.trl-question {
	display: grid;
	gap: 0.4rem;
	padding-block: 1.25rem;
	border-bottom: 1px solid var(--trl-line);
}

.trl-question p {
	color: var(--trl-ink-muted);
	max-width: 68ch;
}

/* "Yours to keep" under the promises, on the slate band. */
.trl-standard__note,
.trl-nb-own {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	max-width: 68ch;
	font-family: var(--trl-display);
	font-size: 1.05rem;
}

.trl-standard__note {
	color: var(--trl-on-slate-muted);
}

.trl-standard__note strong {
	color: var(--trl-paper);
}

.trl-card__safe {
	padding-top: 0.9rem;
	border-top: 1px solid var(--trl-line);
}

.trl-card__safe strong {
	color: var(--trl-ink);
}

/* Links inside the home cards keep to their own line on narrow cards. */
.trl-area p a {
	font-weight: 500;
}

/* Buttons on the slate band: gold with dark text, as in the hero. */
.trl-standard .wp-block-buttons {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.trl-standard .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link {
	background: var(--trl-gold);
	border-color: var(--trl-gold);
	color: var(--trl-ink);
	font-weight: 600;
}

.trl-standard .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link:hover,
.trl-standard .wp-block-button:not(.is-style-trl-outline) .wp-block-button__link:focus-visible {
	background: var(--trl-dusk-gold);
	border-color: var(--trl-dusk-gold);
	color: var(--trl-ink);
}

.trl-standard .wp-block-button__link:focus-visible {
	outline: 2px solid var(--trl-paper);
	outline-offset: 3px;
}

/* ─────────────────────────────────────────────────────────────────────────
   New-business page (/new-business/)
   ───────────────────────────────────────────────────────────────────────── */
.trl-nb-intro {
	background: var(--trl-mist);
	border-bottom: 1px solid var(--trl-line);
}

.trl-nb-intro .trl-section-head {
	margin-bottom: 1.75rem;
}

.trl-nb-intro h1 {
	font-size: var(--trl-fs-huge);
	line-height: 1.08;
	text-wrap: balance;
}

.trl-nb-note {
	margin-top: 1.5rem;
	font-family: var(--trl-display);
	color: var(--trl-ink-muted);
}

/* Questions sit beside their heading on wide screens, so the section fills its width. */
.trl-faq > .trl-wrap {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

body .trl-faq > .trl-wrap > * {
	margin-block: 0;
}

.trl-faq .trl-questions {
	max-width: none;
}

/* Top of the new-business page: the copy, and a sample check card. */
.trl-nb-intro__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}

body .trl-nb-intro__grid > * {
	margin-block: 0;
}

.trl-check {
	display: grid;
	gap: 0.5rem;
	max-width: 26rem;
	margin-inline: auto;
	padding: clamp(1.4rem, 2.5vw, 1.9rem);
	background: var(--trl-paper);
	border: 1px solid var(--trl-mist-deep);
	border-top: 4px solid var(--trl-teal);
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(61, 90, 128, 0.16);
	font-family: var(--trl-display);
	transform: rotate(1.2deg);
}

.trl-check p,
.trl-check ul,
.trl-check ol {
	margin: 0;
	padding: 0;
}

.trl-check__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	font-family: var(--trl-mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--trl-teal);
}

.trl-check__label span {
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	background: var(--trl-mist);
	color: var(--trl-ink-muted);
}

.trl-check__name {
	margin-top: 0.4rem !important;
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--trl-ink);
}

.trl-check__where {
	font-size: 0.95rem;
	color: var(--trl-ink-muted);
}

.trl-check__rows {
	display: grid;
	margin-top: 0.6rem !important;
	list-style: none;
	border-top: 1px solid var(--trl-line);
}

.trl-check__rows li {
	display: grid;
	grid-template-columns: 1.5rem minmax(0, 1fr);
	column-gap: 0.6rem;
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--trl-line);
}

.trl-check__rows li::before {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 50%;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--trl-paper);
}

/* The tick is drawn, not typed, so it never depends on a font having the glyph. */
.trl-check__rows .is-good::before {
	content: "";
	background: var(--trl-evergreen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.trl-check__rows .is-todo::before {
	content: "!";
	background: var(--trl-terracotta);
}

.trl-check__rows b {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--trl-ink-muted);
}

.trl-check__rows span {
	font-size: 1.02rem;
	color: var(--trl-ink);
}

.trl-check__next {
	margin-top: 0.7rem !important;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	color: var(--trl-ink-muted);
}

.trl-check__steps {
	display: grid;
	gap: 0.35rem;
	padding-left: 1.2rem !important;
	font-size: 0.98rem;
	color: var(--trl-ink);
}

/* A sample Starter site in a phone frame. */
.trl-nb-phone {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	margin: 0;
}

.trl-nb-phone img {
	display: block;
	width: min(100%, 15rem);
	height: auto;
	border: 8px solid var(--trl-ink);
	border-radius: 28px;
	box-shadow: 0 18px 40px rgba(33, 35, 34, 0.18);
}

.trl-nb-phone figcaption {
	max-width: 15rem;
	font-family: var(--trl-display);
	font-size: 0.85rem;
	line-height: 1.4;
	text-align: center;
	color: var(--trl-ink-muted);
}

/* Portrait and bio in a card beside the contact copy. */
/* The free-check form ([trl_check_form], web/app/mu-plugins/trl-check-form.php). */
.trl-nb-ask {
	scroll-margin-top: 6rem;
	border-top: 4px solid var(--trl-teal);
}

.trl-nb-ask h3 {
	font-size: var(--trl-fs-xl, 1.5rem);
	line-height: 1.25;
}

.trl-ask {
	display: grid;
	gap: 1rem;
	margin-top: 0.5rem;
}

.trl-ask p {
	margin: 0;
}

.trl-ask__field {
	display: grid;
	gap: 0.35rem;
}

.trl-ask label {
	font-family: var(--trl-display);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--trl-ink);
}

.trl-ask input[type="text"],
.trl-ask input[type="email"],
.trl-ask textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.6rem 0.8rem;
	font: inherit;
	font-size: 1rem; /* 16px or more, so phones do not zoom in on focus. */
	color: var(--trl-ink);
	background: #fff;
	border: 2px solid var(--trl-slate);
	border-radius: 6px;
}

.trl-ask textarea {
	min-height: 6.5rem;
	resize: vertical;
}

.trl-ask input:focus-visible,
.trl-ask textarea:focus-visible {
	outline: 3px solid var(--trl-teal);
	outline-offset: 2px;
}

/* A box people never see or reach; anything typed in it marks the request as automated. */
.trl-ask__extra {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.trl-ask button {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 1.5rem;
	font-family: var(--trl-display);
	font-weight: 600;
	font-size: 1rem;
	color: #fff;
	background: var(--trl-slate);
	border: 2px solid var(--trl-slate);
	border-radius: 6px;
	cursor: pointer;
}

.trl-ask button:hover,
.trl-ask button:focus-visible {
	background: var(--trl-teal);
	border-color: var(--trl-teal);
}

.trl-ask__small {
	font-size: 0.9rem;
	color: var(--trl-ink-muted);
}

.trl-ask__notice,
.trl-ask__done {
	padding: 0.85rem 1rem;
	background: var(--trl-mist);
	border-left: 4px solid var(--trl-teal);
	border-radius: 4px;
}

.trl-ask__done p {
	margin: 0;
}

/* Reply version (opened from a Launch Check page): the form brings its own heading, so the
   card's "Ask for your free check" heading and intro step aside. */
.trl-nb-ask:has(.trl-ask--reply) > h3,
.trl-nb-ask:has(.trl-ask--reply) > h3 + p {
	display: none;
}

.trl-ask__lead {
	margin: 0 0 0.25rem;
}

.trl-ask__lead strong {
	font-size: 1.15rem;
}

.trl-ask__opt {
	font-weight: 400;
	color: var(--trl-ink-muted);
}

.trl-ask__done p + p {
	margin-top: 0.4rem;
}

.trl-nb-split {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1.1fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: start;
}

body .trl-nb-split > * {
	margin-block: 0;
}

.trl-nb-included {
	display: grid;
	gap: 1rem;
}

body .trl-nb-included > * {
	margin-block: 0;
}

.trl-nb-included h3,
.trl-nb-price h3 {
	font-size: 1.2rem;
}

.trl-nb-figure {
	font-family: var(--trl-display);
	font-size: 1.1rem;
}

.trl-nb-figure strong {
	font-size: 1.9rem;
	font-weight: 600;
	color: var(--trl-slate);
}

.trl-nb-own strong {
	color: var(--trl-teal);
}

.trl-nb-paying {
	background: var(--trl-mist);
}

.trl-nb-paying .trl-checklist {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem clamp(2rem, 5vw, 4rem);
	font-size: var(--trl-fs-large);
}

.trl-nb-contact .trl-section-head {
	margin-bottom: 1.75rem;
}

/* ─────────────────────────────────────────────────────────────────────────
   Footer
   ───────────────────────────────────────────────────────────────────────── */
.trl-footer {
	padding: clamp(48px, 6vw, 72px) var(--trl-gutter) 32px;
	background: var(--trl-ink);
	color: var(--trl-footer-text);
}

.trl-footer a {
	color: var(--trl-mist);
	text-decoration: none;
}

.trl-footer a:hover,
.trl-footer a:focus-visible {
	color: var(--trl-paper);
	text-decoration: underline;
}

.trl-footer .trl-lockup {
	color: var(--trl-paper);
}

.trl-footer .trl-lockup:hover {
	text-decoration: none;
}

.trl-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.trl-footer__brand {
	display: grid;
	gap: 1rem;
	align-content: start;
}

body .trl-footer__brand > *,
body .trl-footer__col > * {
	margin-block: 0;
}

.trl-footer__brand p {
	max-width: 38ch;
	font-size: 0.98rem;
}

h2.trl-footer__heading {
	margin-bottom: 0.9rem !important;
	font-family: var(--trl-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--trl-footer-dim);
}

.trl-footer__links {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--trl-display);
}

.trl-footer__base {
	margin-top: 3rem !important;
	padding-top: 1.25rem;
	border-top: 1px solid var(--trl-footer-line);
	gap: 0.5rem 2rem;
	font-family: var(--trl-display);
	font-size: 0.88rem;
	color: var(--trl-footer-dim);
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive (breakpoints from the design)
   ───────────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	/* Room under the copy so the mark's peaks show between the text and the ridges. */
	.trl-hero {
		padding-bottom: calc(var(--trl-ridge-h) + 30vw);
	}

	body .trl-hero > .trl-hero__mark {
		right: auto;
		left: 50%;
		width: 115%;
		transform: translateX(-50%);
	}

	.trl-areas,
	.trl-contact__grid,
	.trl-prices,
	.trl-nb-split,
	.trl-nb-intro__grid,
	.trl-faq > .trl-wrap {
		grid-template-columns: minmax(0, 1fr);
	}

	.trl-nb-paying .trl-checklist {
		grid-template-columns: minmax(0, 1fr);
	}

	.trl-check {
		margin-inline: 0;
		transform: none;
	}

	.trl-faq .trl-section-head {
		margin-bottom: 0;
	}

	.trl-areas {
		gap: 1rem;
	}

	.trl-nav {
		display: none;
	}

	.trl-promises {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trl-promise:not(:nth-child(3n+1)) {
		padding-left: 0;
		border-left: 0;
	}

	.trl-promise:nth-child(even) {
		padding-left: 1.5rem;
		border-left: 1px solid var(--trl-on-slate-line);
	}

	.trl-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trl-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 680px) {
	.trl-steps,
	.trl-products,
	.trl-promises {
		grid-template-columns: minmax(0, 1fr);
	}

	.trl-person {
		grid-template-columns: 5rem minmax(0, 1fr);
		column-gap: 1rem;
	}

	.trl-person::before {
		width: 5rem;
	}

	.trl-steps::before,
	.trl-steps::after {
		left: 17px;
		right: auto;
		top: 18px;
		bottom: 18px;
		width: 2px;
		height: auto;
	}

	.trl-steps::after {
		transform-origin: center top;
		transform: scaleY(0);
	}

	@keyframes trl-fill {
		to { transform: scaleY(1); }
	}

	.trl-step {
		grid-template-columns: 36px minmax(0, 1fr);
		column-gap: 1rem;
	}

	.trl-step__num {
		grid-row: span 2;
		margin: 0 !important;
	}

	.trl-promise:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}

	.trl-lockup span {
		font-size: 0.95rem;
	}

	.trl-lockup img {
		width: 48px;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}
