/*
Theme Name: AMPLiQ
Theme URI: https://ampliq.com
Author: AMPLiQ
Author URI: https://ampliq.com
Description: Website theme for AMPLiQ and OpenPPA. Homepage with a live pricing sandbox, feature charts and a working demo request form (requests are emailed and saved under "Demo requests"). Edit text, links and colours in Appearance › Customize › AMPLiQ homepage.
Version: 2.7.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ampliq
*/

/* Layout: an instrument on graph paper. Left-aligned editorial type, live sandbox as the hero, plotted figures beside each lever, one night band. */
/* AMPLiQ palette: Blue #4F46E5, Black #131130, Magenta #FF4B72, Orange #F59E0B.
   Every other colour is a tint of these (mixed with white) for backgrounds, text and lines. */
:root {
	--blue: #4F46E5;
	--black: #131130;
	--magenta: #FF4B72;
	--orange: #F59E0B;

	--paper: color-mix(in srgb, var(--black) 3%, #FFFFFF);
	--surface: #FFFFFF;
	--ink: var(--black);
	--muted: color-mix(in srgb, var(--black) 68%, #FFFFFF);
	--rule: color-mix(in srgb, var(--black) 12%, #FFFFFF);
	--indigo: var(--blue);
	--indigo-soft: color-mix(in srgb, var(--blue) 12%, #FFFFFF);
	--magenta-soft: color-mix(in srgb, var(--magenta) 12%, #FFFFFF);
	--amber: var(--orange);
	--amber-ink: var(--black);
	--up: var(--blue);
	--down: var(--magenta);
	--night: var(--black);
	--on-night: #FFFFFF;
	--on-night-muted: color-mix(in srgb, #FFFFFF 72%, var(--black));
	--night-rule: rgba(255, 255, 255, 0.14);
	--shadow: rgba(19, 17, 48, 0.4);

	/* One typeface throughout: Geist */
	--body: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--display: var(--body);
	--mono: var(--body);

	--max: 1320px;
	--radius: 14px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: var(--black); --surface: color-mix(in srgb, var(--black) 88%, #FFFFFF); --ink: #FFFFFF;
		--muted: color-mix(in srgb, #FFFFFF 70%, var(--black)); --rule: color-mix(in srgb, #FFFFFF 14%, var(--black));
		--indigo: color-mix(in srgb, var(--blue) 62%, #FFFFFF); --indigo-soft: color-mix(in srgb, var(--blue) 30%, var(--black));
		--magenta-soft: color-mix(in srgb, var(--magenta) 22%, var(--black)); --amber-ink: #FFFFFF;
		--night: color-mix(in srgb, var(--blue) 16%, var(--black)); --on-night-muted: color-mix(in srgb, #FFFFFF 72%, var(--black));
		--shadow: rgba(0, 0, 0, 0.6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: var(--black); --surface: color-mix(in srgb, var(--black) 88%, #FFFFFF); --ink: #FFFFFF;
	--muted: color-mix(in srgb, #FFFFFF 70%, var(--black)); --rule: color-mix(in srgb, #FFFFFF 14%, var(--black));
	--indigo: color-mix(in srgb, var(--blue) 62%, #FFFFFF); --indigo-soft: color-mix(in srgb, var(--blue) 30%, var(--black));
	--magenta-soft: color-mix(in srgb, var(--magenta) 22%, var(--black)); --amber-ink: #FFFFFF;
	--night: color-mix(in srgb, var(--blue) 16%, var(--black)); --on-night-muted: color-mix(in srgb, #FFFFFF 72%, var(--black));
	--shadow: rgba(0, 0, 0, 0.6);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .brand .logo-light { display: none; }
	:root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--body); font-size: 17px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
a { color: var(--indigo); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; letter-spacing: -0.025em; }
h1 em, h2 em, h3 em, .serif-it, .hero h1 .l2 { font-style: normal; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
.band { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.inner { max-width: var(--max); margin: 0 auto; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow {
	font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--indigo); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.serif-it { font-family: var(--display); }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
	font: 500 15px/1 var(--body); cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--ink); color: var(--paper); }
.btn--quiet { border-color: var(--rule); color: var(--ink); background: var(--surface); }
.btn--quiet:hover { border-color: var(--ink); }
.btn--amber { background: var(--amber); color: var(--black); }
.btn--amber:hover { background: var(--on-night); color: var(--night); }
.btn svg { width: 16px; height: 16px; }

/* Header */
.site-header {
	position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
	background: color-mix(in srgb, var(--paper) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--rule);
}
.site-header .inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand img { display: block; }
.brand-logo { height: 52px; width: auto; }
.brand-icon { height: 36px; width: 36px; display: none !important; }
.brand .logo-dark { display: none; }
.foot-brand .brand-logo { height: 52px; }
.nav { display: flex; font-size: 15px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.nav .current-menu-item > a { color: var(--ink); }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .login { color: var(--ink); font-size: 15px; padding: 12px 14px; }
.header-cta .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .inner { position: relative; padding-block: 40px 48px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(38px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.hero h1 .l { display: block; }
.hero h1 .l2 { color: var(--indigo); }
.hero h1 .l3 { font-size: 0.6em; line-height: 1.18; margin-top: 0.4em; color: var(--ink); font-weight: 500; letter-spacing: -0.02em; }
.hero h1 .l3 em { font-style: normal; font-weight: 600; position: relative; white-space: nowrap; }
.hero h1 .l3 em::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.12em;
	background: var(--amber); border-radius: 2px; transform-origin: left; animation: draw 0.9s 0.5s cubic-bezier(.2,.7,.2,1) both;
}
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 14px; height: 1px; background: var(--muted); }

@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: translateY(14px); opacity: .001; } to { transform: none; opacity: 1; } }
.hero-copy > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-copy > *:nth-child(5) { animation-delay: .24s; }
.sandbox { animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }

/* Sandbox instrument */
.sandbox {
	background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; min-width: 0;
	box-shadow: 0 1px 0 var(--rule), 0 40px 80px -48px var(--shadow);
	display: flex; flex-direction: column;
}
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--rule); }
.sb-title { display: flex; flex-direction: column; gap: 2px; }
.sb-title b { font-weight: 600; font-size: 15px; }
.sb-title span { font-size: 12.5px; color: var(--muted); }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.sb-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.packs button {
	min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted);
	font: 500 13.5px/1.2 var(--body); cursor: pointer; padding: 6px 8px;
}
.packs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 17, 48, 0.12), 0 0 0 1px var(--rule); }
.price-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price-row label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.price-now { font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.price-now small { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.risk { --c: var(--blue); font-family: var(--mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }
.risk::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.risk[data-level="low"] { --c: var(--blue); }
.risk[data-level="moderate"] { --c: var(--orange); }
.risk[data-level="high"] { --c: var(--magenta); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--indigo) var(--fill, 50%), var(--rule) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--rule); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--indigo); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--indigo); box-shadow: 0 2px 6px rgba(19, 17, 48, 0.2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--indigo); }
.range-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.plot { border: 1px solid var(--rule); border-radius: 12px; background-color: var(--paper); padding: 10px 6px 4px; }
.plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.plot text { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; }
.kpi { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi b { font-family: var(--mono); font-weight: 500; font-size: 20px; font-variant-numeric: tabular-nums; }
.kpi b.pos { color: var(--up); } .kpi b.neg { color: var(--down); }
.flow-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.flow { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; }
.flow i { display: block; height: 100%; transition: flex-basis .3s ease; }
.flow-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.flow-legend span { display: inline-flex; align-items: center; gap: 7px; }
.flow-legend i { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.sb-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--rule); padding: 12px 22px; }

/* Results band (compact: figure beside its label) */
.results .inner { padding-block: 0; }
.results-card {
	position: relative; overflow: hidden; background: var(--night); color: var(--on-night); border-radius: 20px;
	padding: 20px 32px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 40px;
}
.result { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; min-width: 0; }
.result + .result::before { content: ""; position: absolute; left: -20px; top: 4px; bottom: 4px; width: 1px; background: var(--night-rule); }
.result-value { grid-row: 1 / span 2; font-family: var(--display); font-size: clamp(34px, 3vw, 42px); font-weight: 600; line-height: 1; color: var(--amber); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.result-label { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--on-night); align-self: end; }
.result-note { font-size: 13px; line-height: 1.35; color: var(--on-night-muted); align-self: start; }
.result-label:last-child { grid-row: 1 / span 2; align-self: center; }
.result-mark { font-family: var(--body); font-size: 0.34em; vertical-align: top; position: relative; top: 0.1em; margin-left: 0.06em; color: var(--amber); }
.results-note { position: relative; grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--night-rule); font-size: 12px; color: var(--on-night-muted); }
@media (max-width: 860px) {
	.results .inner { padding-block: 0; }
	.results-card { padding: 18px 20px 12px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.result + .result::before { left: 0; right: 0; top: -7px; bottom: auto; width: auto; height: 1px; }
	.result-value { font-size: 40px; min-width: 2.6em; }
}

/* Case studies */
.head-side { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.text-link { font-weight: 600; font-size: 15px; color: var(--indigo); }
.text-link:hover { color: var(--ink); }
.case-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.case-card { grid-column: span 2; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; color: var(--ink); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.case-card.is-large { grid-column: span 3; }
.case-grid--three .case-card { grid-column: span 2; }
.case-card:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--indigo); box-shadow: 0 24px 48px -32px var(--shadow); }
.case-media { display: block; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; background: var(--indigo-soft); border-bottom: 1px solid var(--rule); }
.case-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-card:hover .case-media img { transform: scale(1.03); }
.case-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.case-tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.case-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.case-card.is-large .case-title { font-size: 22px; }
.case-metrics { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.case-metrics b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.case-more { margin-top: auto; padding-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--indigo); }

.case-hero .inner { padding-block: 40px 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.case-hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.case-back { font-size: 14px; font-weight: 500; color: var(--muted); }
.case-back:hover { color: var(--indigo); }
.case-hero h1 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; }
.case-archetype { color: var(--muted); font-size: 17px; }
.case-hero-media { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); background: var(--indigo-soft); }
.case-hero-media img { display: block; width: 100%; height: auto; }
.case-layout { padding-block: 48px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.case-content { max-width: 720px; }
.case-content h2 { font-size: 26px; margin-top: 1.8em; }
.case-content h2:first-child { margin-top: 0; }
.case-content ul { padding-left: 1.1em; }
.case-content li + li { margin-top: 0.6em; }
.case-content li::marker { color: var(--orange); }
.case-glance { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.case-glance h2 { font-size: 18px; letter-spacing: -0.01em; }
.case-glance dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.case-glance dl div { padding-top: 14px; border-top: 1px solid var(--rule); }
.case-glance dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 4px; }
.case-glance dd { margin: 0; font-size: 15px; line-height: 1.5; }
.case-glance .btn { align-self: stretch; }
@media (max-width: 1080px) {
	.case-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.case-glance { position: static; }
}
@media (max-width: 860px) {
	.case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.case-card, .case-card.is-large, .case-grid--three .case-card { grid-column: span 1; }
	.case-card.is-large:first-child { grid-column: 1 / -1; }
	.case-hero .inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 28px; }
}
@media (max-width: 560px) {
	.case-grid { grid-template-columns: minmax(0, 1fr); }
	.case-card.is-large:first-child { grid-column: auto; }
	.case-layout { padding-block: 32px 8px; }
}

/* Section heads */
.section { padding-block: 64px; }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: 24px; }
.head p { margin-bottom: 6px; }
#features { padding-top: 40px; }
#features .pillars { gap: 20px; }
#features .pillar:first-child { padding-top: 20px; }
#features .pillar { align-items: start; }
#features .pillar-copy { padding-top: 8px; }
.head h2 { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 8px; }
.head h2 em { color: var(--indigo); }
.head p { color: var(--muted); font-size: 18px; max-width: 32em; }

/* Pillars */
.pillars { display: flex; flex-direction: column; gap: 24px; }
.pillar {
	display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
	padding-top: 24px; border-top: 1px solid var(--rule);
}
.pillar:nth-child(even) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.pillar:nth-child(even) .pillar-copy { order: 2; }
.pillar-copy { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pillar-tag { font-family: var(--mono); font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.pillar h3 { font-family: var(--display); font-size: clamp(26px, 2.5vw, 34px); line-height: 1.15; }
.pillar p { color: var(--muted); max-width: 30em; }
.figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 22px 22px 18px; min-width: 0; }
.figure-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.figure-head b { font-size: 14px; font-weight: 600; }
.figure svg { display: block; width: 100%; height: auto; }
.figure svg text { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.figure svg .lbl { font-family: var(--body); font-size: 12px; fill: var(--ink); }
.figure .fig-wide { display: none; }
.figure svg .pct { font-family: var(--mono); font-size: 11px; fill: var(--muted); }
.figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

/* Pack ladder */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; height: 248px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.rung { display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 8px; height: 100%; min-width: 0; }
.rung .bar { border-radius: 10px 10px 4px 4px; background: var(--indigo-soft); position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: 10px; }
.rung .bar span { font-family: var(--mono); font-size: 12px; color: var(--indigo); }
.rung.is-key .bar { background: var(--blue); }
.rung.is-key .bar span { color: #fff; }
.rung-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.rung-meta div { display: flex; flex-direction: column; gap: 2px; font-size: 13px; min-width: 0; }
.rung-meta b { font-weight: 600; }
.rung-meta span { color: var(--muted); font-family: var(--mono); font-size: 11.5px; }
.wtp { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.wtp i { flex: 1; height: 1px; align-self: center; background: linear-gradient(90deg, var(--rule), var(--amber)); }

/* How it works */
.how { background: var(--surface); border-block: 1px solid var(--rule); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--indigo); color: var(--indigo); display: grid; place-items: center; font-family: var(--mono); font-size: 14px; background: var(--surface); flex: none; }
.step-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 10px); }
.step:last-child .step-line { background: none; }
.step h3 { font-family: var(--display); font-size: 26px; line-height: 1.2; }
.step dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.step dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.step dd { margin: 0; font-size: 16px; color: var(--ink); }
.step .outcome { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.step .outcome dt { color: var(--indigo); }

/* Night band */
.night { background: var(--night); color: var(--on-night); position: relative; overflow: hidden; }
.night .inner { position: relative; }
.night .eyebrow { color: var(--on-night-muted); }
.night .head h2 { color: var(--on-night); }
.night .head h2 em { color: var(--amber); }
.night .head p { color: var(--on-night-muted); }
.shift { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 32px; }
.file { border: 1px solid var(--night-rule); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; background: rgba(255, 255, 255, 0.03); }
.file .mono { font-size: 13px; overflow-wrap: anywhere; }
.file small { color: var(--on-night-muted); font-size: 13px; }
.file--old .mono { color: var(--on-night-muted); text-decoration: line-through; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.file--new { border-color: color-mix(in srgb, var(--orange) 55%, transparent); background: color-mix(in srgb, var(--orange) 8%, transparent); }
.file--new .mono { color: var(--on-night); }
.shift-arrow { color: var(--amber); }
.traits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--night-rule); }
.trait { padding: 24px 28px 4px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.trait + .trait { padding-left: 32px; border-left: 1px solid var(--night-rule); }
.trait svg { width: 30px; height: 30px; color: var(--amber); }
.trait h3 { font-family: var(--display); font-size: 23px; line-height: 1.1; color: var(--on-night); }
.trait p { color: var(--on-night-muted); font-size: 16px; }

/* Demo */
.demo .inner { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.demo-copy h2 { font-family: var(--display); font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; }
.demo-copy h2 em { color: var(--indigo); }
.demo-copy p { color: var(--muted); font-size: 19px; max-width: 26em; }
.contact-line { display: flex; flex-direction: column; gap: 4px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.contact-line .mono { color: var(--ink); font-size: 15px; user-select: all; }
.form-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 40px 80px -56px var(--shadow); }
.form-card h3 { font-family: var(--display); font-size: 23px; line-height: 1.1; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 500; }
.field label i { color: var(--indigo); font-style: normal; }
.field input {
	font: 400 16px/1.3 var(--body); color: var(--ink); background: var(--paper);
	border: 1px solid var(--rule); border-radius: 10px; min-height: 48px; padding: 10px 14px; width: 100%;
	transition: border-color .15s, background-color .15s;
}
.field input:hover { border-color: var(--muted); }
.field input:focus { outline: none; border-color: var(--indigo); background: var(--surface); box-shadow: 0 0 0 3px var(--indigo-soft); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); }
.form-card .btn { align-self: flex-start; }
.form-note { font-size: 14px; border-radius: 10px; padding: 12px 14px; }
.form-note.ok { background: var(--indigo-soft); color: var(--ink); }
.form-note.err { color: var(--ink); background: var(--magenta-soft); border: 1px solid var(--magenta); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer .inner { padding-block: 40px 28px; display: flex; flex-direction: column; gap: 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand p { color: var(--muted); font-size: 15px; max-width: 26em; }
.foot-col h2 { margin: 0 0 12px; font-family: var(--body); font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); }
.foot-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.foot-bottom a { color: var(--muted); }
.foot-bottom a:hover { color: var(--ink); }
.brand .custom-logo { max-height: 36px; width: auto; display: block; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--ink); }
.soon { font-family: var(--mono); font-size: 11px; color: var(--ink); border: 1px solid var(--orange); border-radius: 999px; padding: 1px 7px; margin-left: 6px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); padding-top: 20px; border-top: 1px solid var(--rule); }

/* Responsive */
@media (max-width: 1080px) {
	.nav ul { gap: 22px; }
	.hero .inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 32px 40px; }
	.pillar, .pillar:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.pillar:nth-child(even) .pillar-copy { order: 0; }
	.demo .inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.demo-copy { position: static; }
}
@media (max-width: 860px) {
	.nav, .header-cta .login { display: none; }
	.menu-btn { display: inline-flex; }
	.nav.open ul { flex-direction: column; gap: 0; }
	.nav.open { display: block; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 6px max(16px, env(safe-area-inset-right, 0px)) 18px max(16px, env(safe-area-inset-left, 0px)); }
	.nav.open a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font-size: 17px; }
	.section { padding-block: 48px; }
	.head { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 20px; }
	#features { padding-top: 32px; }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.step-line { display: none; }
	.shift { grid-template-columns: minmax(0, 1fr); }
	.shift-arrow { transform: rotate(90deg); justify-self: center; }
	.traits { grid-template-columns: minmax(0, 1fr); }
	.trait, .trait + .trait { padding: 20px 0; border-left: 0; }
	.trait + .trait { border-top: 1px solid var(--night-rule); }
	.foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.site-header .inner { height: 64px; gap: 10px; }
	.nav.open { top: 64px; }
	.site-header .brand-logo { height: 36px; }
	.header-cta .btn { padding: 0 14px; font-size: 13.5px; }
	.hero h1 .l3 em { white-space: normal; }
	.lede { font-size: 17px; }
	.hero-actions .btn { flex: 1 1 100%; }
	.sb-head, .sb-body { padding-left: 16px; padding-right: 16px; }
	.sb-foot { padding-left: 16px; padding-right: 16px; }
	.packs button { font-size: 12.5px; }
	.price-now { font-size: 34px; }
	.kpi { padding: 10px; }
	.kpi b { font-size: 16px; }
	.figure { padding: 16px 14px; }
	.ladder { height: 210px; gap: 8px; }
	.rung-meta { gap: 8px; }
	.rung-meta div { font-size: 12px; }
	.fields { grid-template-columns: minmax(0, 1fr); }
	.form-card { padding: 22px; }
	.form-card .btn { align-self: stretch; }
}
/* ---------- WordPress ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--surface); color: var(--ink); padding: 12px 16px; border-radius: 10px; }
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Blog listing, posts and pages */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.page-hero .inner { position: relative; padding-block: 72px 56px; display: flex; flex-direction: column; gap: 18px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: 1.02; letter-spacing: -0.01em; max-width: 18em; }
.page-hero p { color: var(--muted); font-size: 19px; max-width: 34em; }
.listing .inner { padding-block: 64px 112px; display: flex; flex-direction: column; gap: 48px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--indigo); color: var(--ink); }
.card-media { aspect-ratio: 16 / 9; max-width: 100%; background-color: var(--indigo-soft); background-size: cover; background-position: center; }
.card-media.has-image { background-size: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo); }
.card-title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.card-meta { font-size: 14px; color: var(--muted); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); }
.pagination .page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
.entry { max-width: 720px; margin: 0 auto; padding-block: 56px 112px; }
.entry-thumb { margin: 0 0 40px; border-radius: 18px; overflow: hidden; }
.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { font-family: var(--display); line-height: 1.12; margin-top: 1.6em; }
.entry-content h2 { font-size: 30px; }
.entry-content h3 { font-size: 23px; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.6em 0; padding-left: 22px; border-left: 2px solid var(--amber); font-family: var(--display); font-size: 22px; line-height: 1.3; }
.entry-content img, .entry-content figure { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 10px 8px; border-bottom: 1px solid var(--rule); text-align: left; }
.entry-content input, .entry-content textarea, .entry-content select { font: inherit; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); color: var(--ink); }
.entry-content button, .entry-content input[type="submit"] { width: auto; font: 500 15px/1 var(--body); min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--blue); color: #fff; cursor: pointer; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-weight: 500; }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .entry-content { font-size: 17px; } }

@media (max-width: 380px) {
	.header-cta .btn { padding: 0 12px; font-size: 13px; }
	.site-header .brand-logo { height: 32px; }
}
@media (max-width: 359px) {
	.site-header .brand-logo { display: none !important; }
	.site-header .brand-icon { display: block !important; }
}
/* Compact feature charts on desktop, so each matches the height of the text beside it */
@media (min-width: 1081px) {
	#features .pillar { align-items: center; }
	#features .pillar-copy { padding-top: 0; }
	#features .figure { padding: 14px 18px 12px; }
	#features .figure-head { margin-bottom: 6px; }
	#features .figure-head b { font-size: 13.5px; }
	#features .figure .fig-tall { display: none; }
	#features .figure .fig-wide { display: block; }
	#features .figure figcaption { margin-top: 6px; font-size: 12.5px; line-height: 1.45; }
	#features .ladder { height: 116px; gap: 10px; }
	#features .rung .bar { padding-top: 6px; border-radius: 8px 8px 3px 3px; }
	#features .rung .bar span { font-size: 11px; }
	#features .rung-meta { margin-top: 8px; gap: 10px; }
	#features .rung-meta div { font-size: 12px; }
	#features .rung-meta span { font-size: 11px; }
	#features .wtp { margin-top: 8px; }
}

/* Compact sandbox on desktop, so it matches the height of the hero text beside it */
@media (min-width: 1081px) {
	.hero .inner { align-items: center; }
	.sb-head { padding: 11px 18px; }
	.sb-title span { display: none; }
	.sb-body { padding: 12px 18px; gap: 10px; display: grid; grid-template-columns: minmax(0, 1fr) 150px; }
	.sb-body > * { grid-column: 1 / -1; min-width: 0; }
	.sb-body > .plot { grid-column: 1; align-self: stretch; display: flex; align-items: center; padding: 6px 4px 2px; }
	.sb-body > .kpis { grid-column: 2; grid-template-columns: minmax(0, 1fr); }
	.kpis .kpi { padding: 6px 12px; gap: 0; }
	.kpis .kpi + .kpi { border-left: 0; border-top: 1px solid var(--rule); }
	.kpi span { font-size: 11.5px; }
	.kpi b { font-size: 17px; }
	.packs button { min-height: 34px; font-size: 13px; }
	.price-row label { margin-bottom: 0; }
	.price-now { font-size: 30px; }
	.price-row label { font-size: 12px; }
	input[type="range"] { height: 22px; }
	.range-scale { display: none; }
	.flow-label { margin-bottom: 6px; font-size: 12px; }
	.flow { height: 8px; }
	.flow-legend { margin-top: 8px; gap: 4px 14px; font-size: 11.5px; }
	.sb-foot { padding: 8px 18px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

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