/*
 * pages.css — layout tweaks specific to individual page templates
 * that don't belong in the general section/component library.
 */

/* ---------------------------------------------------------------
 * Page header (used on inner pages instead of the big homepage hero)
 * ------------------------------------------------------------- */
.page-header {
	background: var(--navy);
	padding-top: calc(var(--header-h) + var(--space-m));
	padding-bottom: var(--space-l);
	position: relative;
	overflow: hidden;
}
.page-header .breadcrumbs__list, .page-header .breadcrumbs a { color: rgba(255,255,255,.55); }
.page-header .breadcrumbs [aria-current="page"] { color: #fff; }
/* Set below the global --text-3xl, which tops out near 94px and made
   every inner page open with a headline taller than its own content. */
/* Same story as .hero__title: no local font-size, so interior page
   titles sit at --text-3xl and outrank the h2s beneath them. */
.page-header__title {
	color: #fff;
	line-height: 1.08;
	letter-spacing: -.032em;
	max-width: 20ch;
}
.page-header__desc {
	color: rgba(255,255,255,.72);
	font-size: var(--text-m);
	line-height: 1.6;
	max-width: 60ch;
	margin-top: var(--space-s);
}
/* The lede is printed as a <p>, and the element rule in base.css sets
   --muted, which beats the inherited colour above — so on this dark
   header it rendered dark-grey-on-navy at 3.18:1. */
.page-header__desc p { color: inherit; }
.page-header__desc p { margin: 0; }
.page-header__glow { position: absolute; top: -30%; right: -10%; width: 50%; height: 140%; background: radial-gradient(circle, rgba(var(--brand-rgb),.35), transparent 70%); filter: blur(30px); pointer-events: none; }

/* ---------------------------------------------------------------
 * Prose (legal pages, blog post body)
 * ------------------------------------------------------------- */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { margin-top: var(--space-xl); margin-bottom: var(--space-s); }
.prose h3 { margin-top: var(--space-l); margin-bottom: var(--space-xs); }
.prose p { margin-bottom: var(--space-s); }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--muted); margin-bottom: var(--space-s); }
.prose li { margin-bottom: .5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-m); margin-block: var(--space-m); }
.prose pre { margin-block: var(--space-m); }

/* ---------------------------------------------------------------
 * About page
 * ------------------------------------------------------------- */
.about-intro { max-width: 780px; }
.about-intro .section__desc { text-align: left; margin: 0; }
.principle-item { display: flex; gap: var(--space-s); padding: var(--space-m) 0; border-bottom: 1px solid var(--border-soft); }
.principle-item__num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: var(--border); flex-shrink: 0; width: 60px; }
.principle-item__title { font-size: var(--text-l); margin-bottom: .3em; }

/* ---------------------------------------------------------------
 * Careers
 * ------------------------------------------------------------- */
.careers-list { display: flex; flex-direction: column; gap: var(--space-s); max-width: var(--container-narrow); margin-inline: auto; }
.careers-empty { text-align: center; padding: var(--space-xl) var(--space-m); border: 1.5px dashed var(--border); border-radius: var(--radius-l); }

/* ---------------------------------------------------------------
 * Contact
 * ------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--space-xl); align-items: start; }
@media (max-width: 940px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info-card { background: var(--surface-alt); border-radius: var(--radius-l); padding: var(--space-l); }
.contact-info-row { display: flex; gap: var(--space-s); padding-block: var(--space-s); border-bottom: 1px solid var(--border); }
.contact-info-row:last-child { border-bottom: 0; }
.contact-info-row .icon { width: 22px; height: 22px; color: var(--brand-text); flex-shrink: 0; }
.contact-info-row__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--muted-soft); }
.contact-info-row__value { font-weight: 600; }
.contact-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: var(--space-l); box-shadow: var(--shadow-m); }

/* ---------------------------------------------------------------
 * 404 / search
 * ------------------------------------------------------------- */
.error-404 { text-align: center; padding-block: var(--space-2xl); }
.error-404__code { font-family: var(--font-display); font-size: clamp(4rem, 6rem + 4vw, 9rem); font-weight: 800; color: var(--brand-light); line-height: 1; }
.search-form { display: flex; gap: .6em; max-width: 480px; margin-inline: auto; }
.search-form input { flex-grow: 1; }

/* ---------------------------------------------------------------
 * Comments
 * ------------------------------------------------------------- */
.comments-title { margin-bottom: var(--space-m); }
.comment-list { display: flex; flex-direction: column; gap: var(--space-m); margin-bottom: var(--space-l); }
.comment-list .children { margin-top: var(--space-m); margin-left: var(--space-l); display: flex; flex-direction: column; gap: var(--space-m); }
.comment-body { display: flex; gap: var(--space-s); }
.comment-body .avatar { border-radius: 50%; flex-shrink: 0; }
.comment-meta { font-size: var(--text-xs); color: var(--muted-soft); margin-bottom: .3em; }
.comment-author .fn { font-weight: 600; color: var(--ink); font-style: normal; }
.comment-content p { margin-bottom: .5em; }
.comment-reply-link { font-size: var(--text-xs); font-weight: 600; color: var(--brand-text); }
.comment-respond { margin-top: var(--space-l); }
.comment-notes, .logged-in-as { font-size: var(--text-xs); color: var(--muted-soft); margin-bottom: var(--space-s); }
.comment-form-comment, .comment-form-author, .comment-form-email, .comment-form-url { margin-bottom: var(--space-s); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: .6em; font-size: var(--text-xs); margin-bottom: var(--space-s); }

/* ---------------------------------------------------------------
 * Service detail page
 *
 * Icons in here get their own sizing rules. They previously borrowed
 * .theme-toggle__icon, which is position:absolute because the toggle
 * stacks a sun and a moon in one box — inside a flex row that gave the
 * icon no layout width, so every checklist tick painted on top of the
 * first letter of its line.
 * ------------------------------------------------------------- */
.service-hero__icon {
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	border-radius: var(--radius-m);
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.16);
	color: #fff;
	margin-bottom: var(--space-m);
}
.service-hero__icon .icon { width: 28px; height: 28px; }
.service-hero__actions {
	display: flex;
	align-items: center;
	gap: var(--space-m);
	flex-wrap: wrap;
	margin-top: var(--space-l);
}
.service-hero .page-header__desc p { margin: 0; }

/* Prose left, aside right; the aside sticks so the CTA stays reachable
   through a long service page. */
.service-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: var(--space-xl);
	align-items: start;
}
.service-aside {
	position: sticky;
	top: calc(var(--header-h) + var(--space-s));
	display: grid;
	gap: var(--space-s);
}
.service-aside__card { padding: var(--space-m); }
/* These are h3s, but they sat at 17px on a page whose other h3s ran to
   36px — the same tag at a 2.1x spread. Restyled as instrument labels in
   the mono face, matching .eyebrow, so they stop competing with the real
   headings and read as what they are: sidebar captions. */
.service-aside__title {
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .14em;
	color: var(--muted);
	margin-bottom: var(--space-s);
}
.service-aside__text {
	font-size: var(--text-s);
	color: var(--muted);
	line-height: 1.6;
	margin-bottom: var(--space-s);
}
.service-aside__card--cta { background: var(--surface-alt); }
.service-aside__mail {
	display: block;
	margin-top: var(--space-xs);
	text-align: center;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--muted);
	word-break: break-all;
}
.service-aside__mail:hover { color: var(--brand-text); }

/* Checklist — a tinted disc per item rather than a bare tick. */
.checklist { display: grid; gap: var(--space-xs); }
.checklist__item {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: .7em;
	align-items: start;
	font-size: var(--text-s);
	line-height: 1.55;
	color: var(--muted);
}
.checklist__mark {
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--brand-light);
	color: var(--brand-text);
	margin-top: .1em;
}
.checklist__mark .icon { width: 13px; height: 13px; }

/* Outcomes */
.outcome-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-s);
}
.outcome-card {
	padding: var(--space-m);
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--space-s);
	align-items: start;
}
.outcome-card__num {
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--brand-text);
	padding-top: .25em;
}
.outcome-card__text {
	font-size: var(--text-m);
	color: var(--ink);
	line-height: 1.5;
	margin: 0;
}

@media (max-width: 1024px) {
	.service-layout { grid-template-columns: 1fr; }
	.service-aside { position: static; }
}
@media (max-width: 700px) {
	.outcome-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
 * Service hero — copy left, illustration right.
 *
 * Two columns rather than one: the same words in a narrower measure
 * are shorter, and the space that was empty to the right now carries
 * the drawing. That alone took the header from 114vh to roughly 70.
 * ------------------------------------------------------------- */
.service-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: var(--space-xl);
	align-items: center;
}
.service-hero__copy { min-width: 0; }
.service-hero .page-header__title { max-width: 16ch; }
.service-hero .page-header__desc { max-width: 52ch; }

.service-hero__icon {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: var(--radius-m);
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.16);
	color: #fff;
	margin-bottom: var(--space-s);
}
.service-hero__icon .icon { width: 24px; height: 24px; }
.service-hero__actions {
	display: flex;
	align-items: center;
	gap: var(--space-m);
	flex-wrap: wrap;
	margin-top: var(--space-m);
}

/* ---------------------------------------------------------------
 * Service illustrations (.svis)
 *
 * Built from markup rather than image files: nothing to load, no
 * density variants, and they recolour with the theme. One composition
 * per service — shared primitives first, per-service pieces after.
 * All decorative, inside an aria-hidden wrapper.
 * ------------------------------------------------------------- */
.svis { position: relative; height: 330px; perspective: 1200px; }
.svis .scene__stage { position: relative; width: 100%; height: 100%; }
.svis__glow {
	position: absolute;
	inset: 8% 10%;
	background: radial-gradient(closest-side, rgba(var(--brand-rgb), .42), transparent);
	filter: blur(28px);
}

/* ---- shared surfaces ---- */
.svis__card,
.svis__phone {
	position: absolute;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: var(--radius-l);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: 0 30px 60px -26px rgba(0,0,0,.85);
	color: #fff;
	padding: var(--space-s);
}
/* three placements cover every composition */
.svis__p--wide   { left: 3%; top: 50%; translate: 0 -50%; width: 88%; }
.svis__p--left   { left: 2%; top: 6%;  width: 62%; }
.svis__p--corner { right: 2%; bottom: 6%; width: 52%; }

.svis__bar { display: block; height: 7px; width: var(--w, 60%); border-radius: 100px; background: rgba(255,255,255,.22); margin-bottom: 8px; }
.svis__bar--accent { background: linear-gradient(90deg, var(--brand), rgba(143,198,239,.55)); }
.svis__label { font-family: var(--font-mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.52); margin-bottom: 8px; }
.svis__mono { font-family: var(--font-mono); font-size: .625rem; color: rgba(255,255,255,.55); flex: none; }
.svis__line { display: flex; align-items: center; justify-content: space-between; gap: 1em; font-size: .72rem; color: rgba(255,255,255,.62); padding: 6px 0; border-top: 1px solid rgba(255,255,255,.09); }
.svis__line b { color: #fff; font-weight: 600; }
.svis__line:first-of-type { border-top: 0; }
.svis__pillrow { display: flex; gap: 6px; margin-top: 12px; }
.svis__pill { font-family: var(--font-mono); font-size: .625rem; padding: .3em .7em; border-radius: 100px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.75); }
.svis__cta { margin-top: 12px; text-align: center; font-size: .72rem; font-weight: 600; padding: .6em; border-radius: 100px; background: var(--brand-text); color: var(--on-brand); }
.svis__thumb { height: 84px; border-radius: var(--radius-m); background: linear-gradient(145deg, rgba(var(--brand-rgb),.6), rgba(255,255,255,.1)); margin-bottom: 12px; }
.svis__tile { height: 78px; border-radius: var(--radius-m); background: linear-gradient(150deg, rgba(var(--brand-rgb),.55), rgba(255,255,255,.08)); margin-bottom: 12px; }
.svis__price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.svis__metric { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.svis__row { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.svis__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(140deg, var(--brand), #8FD0F5); flex: none; }
.svis__badge { font-family: var(--font-mono); font-size: .5625rem; padding: .25em .6em; border-radius: 100px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); flex: none; }
.svis__badge--ok   { background: rgba(63,207,142,.16); color: #6FE3AD; }
.svis__badge--warn { background: rgba(242,184,114,.16); color: #F2B872; }
.svis__trow { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.08); }
.svis__trow:first-of-type { border-top: 0; }
.svis__trow .svis__bar { margin: 0; flex: 1; }

/* ---- custom web applications: nav rail + table ---- */
.svis__app { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 14px; }
.svis__rail { display: grid; gap: 8px; align-content: start; padding-right: 12px; border-right: 1px solid rgba(255,255,255,.1); }
.svis__railitem { height: 8px; border-radius: 3px; background: rgba(255,255,255,.18); }
.svis__railitem.is-on { background: var(--brand); }

/* ---- mobile ---- */
.svis__phone { left: 50%; top: 50%; translate: -50% -50%; width: 186px; height: 300px; border-radius: 28px; padding: 14px; }
.svis__notch { position: absolute; top: 10px; left: 50%; translate: -50%; width: 52px; height: 5px; border-radius: 100px; background: rgba(255,255,255,.25); }
.svis__screen { margin-top: 16px; }
.svis__tabbar { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.svis__tabbar i { width: 22px; height: 5px; border-radius: 100px; background: rgba(255,255,255,.18); }
.svis__tabbar i.is-on { background: var(--brand); }

/* ---- e-commerce: catalogue grid ---- */
.svis__grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.svis__sq { aspect-ratio: 1; border-radius: var(--radius-s); background: linear-gradient(145deg, rgba(var(--brand-rgb),.45), rgba(255,255,255,.08)); }
.svis__cartpill {
	position: absolute; right: 4%; top: 8%;
	display: inline-flex; align-items: center; gap: .45em;
	font-size: .75rem; font-weight: 700; color: #fff;
	background: var(--brand); border-radius: 100px; padding: .5em .9em;
	box-shadow: 0 12px 26px -10px rgba(0,0,0,.8);
}
.svis__cartpill .icon { width: 15px; height: 15px; }

/* ---- shopify app / wp plugin: header + toggles ---- */
.svis__apphead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.svis__appicon { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(140deg, var(--brand), #8FD0F5); flex: none; }
.svis__sw { width: 26px; height: 15px; border-radius: 100px; background: rgba(255,255,255,.18); position: relative; flex: none; }
.svis__sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; }
.svis__sw.is-on { background: var(--brand); }
.svis__sw.is-on::after { left: auto; right: 2px; }

/* ---- wordpress site: block canvas ---- */
.svis__blocks { display: grid; gap: 8px; }
.svis__block {
	display: grid; place-items: center;
	font-family: var(--font-mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase;
	color: rgba(255,255,255,.6);
	border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius-s);
	padding: 12px 8px;
}
.svis__block--hero { padding: 22px 8px; background: rgba(var(--brand-rgb),.18); border-style: solid; border-color: rgba(var(--brand-rgb),.5); color: #fff; }
.svis__block--wide { padding: 16px 8px; }
.svis__blockrow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---- saas: plans + meter ---- */
.svis__plans { display: flex; gap: 6px; }
.svis__plan { flex: 1; text-align: center; font-size: .625rem; padding: .5em .3em; border-radius: 100px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.svis__plan.is-on { background: var(--brand-text); color: var(--on-brand); font-weight: 600; }
.svis__meter { height: 8px; border-radius: 100px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 10px; }
.svis__meter i { display: block; height: 100%; width: var(--w, 50%); border-radius: 100px; background: linear-gradient(90deg, var(--brand), #8FD0F5); }

/* ---- ai: chat ---- */
.svis__msg { border-radius: var(--radius-m); padding: 10px 12px; margin-bottom: 8px; }
.svis__msg--user { background: rgba(255,255,255,.1); margin-left: 22%; }
.svis__msg--bot  { background: rgba(var(--brand-rgb),.16); border: 1px solid rgba(var(--brand-rgb),.32); margin-right: 12%; }

/* ---- automation: node graph ---- */
.svis__flow { position: absolute; inset: 0; color: rgba(var(--brand-rgb), .75); }
.svis__node {
	position: absolute; display: inline-flex; align-items: center; gap: .5em;
	font-family: var(--font-mono); font-size: .6875rem; color: #fff;
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
	border-radius: 100px; padding: .55em 1em; backdrop-filter: blur(10px);
}
.svis__node--a { left: 4%;  top: 8%; }
.svis__node--b { left: 30%; top: 44%; }
.svis__node--c { right: 4%; bottom: 10%; }
.svis__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.svis__dot--mid { background: #F2B872; }
.svis__dot--ok  { background: #3FCF8E; }
.svis__wires { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---- marketing: chart ---- */
.svis__bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.svis__bars i { flex: 1; height: var(--h, 50%); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--brand), rgba(var(--brand-rgb),.25)); }

/* ---- social: engagement row ---- */
.svis__engage { display: flex; gap: var(--space-s); padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.svis__engage span { display: inline-flex; align-items: center; gap: .35em; font-size: .7rem; color: rgba(255,255,255,.66); }
.svis__engage .icon { width: 13px; height: 13px; color: var(--brand-on-dark); }

@media (max-width: 1024px) {
	.service-hero__inner { grid-template-columns: 1fr; gap: var(--space-l); }
	.svis { display: none; }
	.service-hero .page-header__title { max-width: 20ch; }
}
