/*
 * FactScribe additions on top of the performos.ai design system.
 * Loaded last. Uses only the tokens in tokens.css.
 */

/* =========================================================
   TBC PLACEHOLDERS — "[TBC: …]" text and links still to confirm.
   One switch: --tbc-bg in tokens.css (set it to transparent to hide).
   ========================================================= */
.tbc {
	background: var(--tbc-bg);
	box-shadow: 0 0 0 2px var(--tbc-bg);
	border-radius: 1px;
	color: var(--ink) !important; /* readable on yellow, even on dark bands */
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
/* Placeholder slot labels wrap instead of running off the panel */
.placeholder-slot__label { max-width: min(560px, 86%); }
.has-tbc { outline: 3px dashed var(--tbc-bg); outline-offset: 2px; }

/* =========================================================
   WORDMARK (brand pack §03)
   Fact takes the ground colour; Scribe always takes the blue.
   Terminal: lime square sitting on the baseline. Sized from the pack's
   artwork (side ≈ 0.31 × cap height, ≈ 0.2 × cap height clear of the e),
   which draws it larger than the written 0.24 rule. Poppins cap height
   ≈ 0.7em. Snapped to whole pixels so it stays crisp at small sizes.
   Minimum size: 16px cap height (font-size ≥ 23px).
   ========================================================= */
.fs-wordmark {
	display: inline-flex;
	align-items: baseline;
	font-family: var(--font-base);
	font-weight: 600;
	font-size: 1.625rem;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
	color: var(--ink);
}
.fs-wordmark__scribe { color: var(--blue); }
.fs-wordmark__dot {
	display: inline-block;
	flex: none;
	/* Brand Pack v2: terminal square = 0.24 × cap height (Poppins cap ≈ 0.7em) */
	width: 0.168em;
	height: 0.168em;
	width: round(0.168em, 1px);
	height: round(0.168em, 1px);
	margin-left: calc(0.14em + 0.03em); /* + the e's negative tracking */
	background: var(--lime);
}
.site-header__brand { padding-block: 0.25rem; }
.site-footer__brand .fs-wordmark { color: #fff; font-size: 1.875rem; }

/* =========================================================
   HEADER — "Book a demo" button after the menu
   ========================================================= */
.site-header__cta { margin-left: 0.5rem; }
@media (max-width: 991px) {
	.site-header__cta { margin: 1rem 0 0; }
	.site-header__cta .btn { width: 100%; padding-block: 0.8rem; font-size: 0.875rem; }
}

/* =========================================================
   FOOTER — four link columns + "Built by PerformOS"
   ========================================================= */
.site-footer__cols { grid-template-columns: repeat(4, 1fr); }
.site-footer__built {
	margin: 0;
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 0.6875rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}
.site-footer__built a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 1100px) { .site-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer__cols { grid-template-columns: 1fr; } }

/* =========================================================
   HERO — 55/45 split when there is media; centred otherwise.
   Largest padding on the page.
   ========================================================= */
.fs-hero { padding-block: clamp(4rem, 2.5rem + 5vw, 7rem); }
.fs-hero .hero__inner { grid-template-columns: 11fr 9fr; }
.fs-hero.hero--center .hero__inner { grid-template-columns: 1fr; }
.fs-hero.hero--center .hero__copy { max-width: 1120px; }
.fs-hero.hero--center .hero__text { max-width: 820px; margin-inline: auto; }
.fs-hero.hero--center .trust-strip { justify-content: center; }
.fs-hero .hero__title { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 3.875rem); }
@media (max-width: 991px) {
	.fs-hero .hero__inner { grid-template-columns: 1fr; }
	.fs-hero .hero__media { width: 100%; }
}

/* Headline keyword (*word* in fs_lines, .fs-hl): the brand blue, deepened on light
   grounds so it stays readable; the logo blue itself on dark grounds. */
.fs-hl { color: var(--key); }
.band--dark .fs-hl, .bg-ink .fs-hl, .fs-key .fs-hl { color: var(--blue); }

/* Dark CTA band: eyebrow on ink */
.band--dark .eyebrow { color: rgba(255, 255, 255, 0.6); margin-bottom: 1rem; }

/* =========================================================
   THE REALITY — centred narrow column, larger text, short lines
   ========================================================= */
.reality__inner { max-width: 680px; margin-inline: auto; text-align: center; }
.reality__inner h2 { margin-bottom: 1.5rem; }
.reality__copy p {
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	line-height: 1.6;
	color: var(--ink-2);
	margin-bottom: 1.25rem;
}
.reality__copy p:last-child { margin-bottom: 0; }
.reality__copy p:last-child:not(:only-child) { color: var(--ink); font-weight: var(--fw-semibold); }

/* =========================================================
   THREE STEPS — every step number in the accent colour
   ========================================================= */
.fs-steps .step-card__num { color: var(--accent); }
.fs-steps .step-card__title { font-size: var(--fs-h4); }
.fs-steps + .btn-row { margin-top: 2.5rem; }

/* Three-item feature grids: stay 3-up until phone width (no orphan at 2-up) */
@media (min-width: 900px) { .trust-points--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 641px) and (max-width: 899px) { .trust-points--3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Feature grid followed by a button */
.trust-points + .btn-row { margin-top: 3rem; }

/* =========================================================
   SECTOR CARDS — whole card is the link, equal height
   ========================================================= */
.fs-sector-cards .sector-card { position: relative; transition: border-color var(--transition); }
.fs-sector-cards .sector-card:hover,
.fs-sector-cards .sector-card:focus-within { border-color: var(--ink); }
.sector-card__link { color: inherit; }
.sector-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sector-card__link:focus-visible { outline: none; }
.sector-card:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
.fs-sector-cards .sector-card .text-link { align-self: flex-start; }
.fs-sector-cards .sector-card:hover .text-link { color: var(--ink); border-bottom-color: var(--blue); }
.fs-sector-cards .sector-card:hover .text-link::after { transform: translateX(3px); }
.sector-cards__more .text-link { margin-left: 0.25rem; }

/* Sectors page (/sectors/): one tile per sector, drawing on top. */
.fs-sector-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.fs-sector-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--paper-3);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
	transition: border-color var(--transition);
}
.fs-sector-tile:hover,
.fs-sector-tile:focus-within { border-color: var(--ink); }
.fs-sector-tile:focus-within { outline: 2px solid var(--ice); outline-offset: 2px; }
.fs-sector-tile__art { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.75rem 1rem 0.25rem; }
.fs-sector-tile__body { display: flex; flex-direction: column; flex-grow: 1; padding: 1.5rem; }
.fs-sector-tile__name { display: flex; align-items: center; gap: 0.75rem; font-size: var(--fs-h4); margin-bottom: 0.75rem; }
.fs-sector-tile__headline { font-family: var(--font-display, inherit); font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--ink); margin-bottom: 0.5rem; }
.fs-sector-tile__text { flex-grow: 1; font-size: 0.9375rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.fs-sector-tile .text-link { align-self: flex-start; }
.fs-sector-tile:hover .text-link { color: var(--ink); border-bottom-color: var(--blue); }
.fs-sector-tile:hover .text-link::after { transform: translateX(3px); }
@media (max-width: 1024px) { .fs-sector-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fs-sector-tiles { grid-template-columns: 1fr; } }

/* =========================================================
   PILL LIST — "Forms we can build", "Common uses"
   ========================================================= */
.pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pills--center { justify-content: center; }
.pills li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 1rem;
	background: var(--paper-3);
	border: 1px solid var(--rule-2);
	border-radius: 0;
	font-size: 0.9375rem;
	font-weight: var(--fw-semibold);
	color: var(--ink);
	line-height: 1.3;
}
.pills li::before { content: ""; width: 6px; height: 6px; background: var(--lime); flex: none; }
.bg-white .pills li { background: var(--paper); }
.fs-forms { max-width: 920px; margin-inline: auto; }
.fs-forms__line { margin: 2rem 0 0; text-align: center; font-weight: var(--fw-semibold); color: var(--ink); }

/* =========================================================
   EXAMPLE PANEL — soft tint, accent left border, EXAMPLE eyebrow
   ========================================================= */
.fs-example {
	padding: clamp(1.75rem, 1.25rem + 2vw, 3rem);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius-lg);
}
.fs-example h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.fs-example p { font-size: var(--fs-lead); color: var(--ink-2); }
.fs-example .fs-example__label {
	margin: 1.25rem 0 0;
	font-size: var(--fs-small);
	font-style: italic;
	color: var(--ink-3);
}

/* =========================================================
   OTHER SECTORS — slim row of links
   ========================================================= */
.other-sectors { background: var(--paper-3); border-top: 1px solid var(--rule); padding-block: 1.25rem; }
.other-sectors__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.other-sectors__label {
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: var(--fs-meta);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: var(--ink-3);
}
.other-sectors ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.other-sectors a { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: var(--fw-semibold); font-size: 0.9375rem; color: var(--ink); }
.other-sectors a .ico { color: var(--accent); }
.other-sectors a:hover { color: var(--ink-2); }

/* =========================================================
   HOME — videos, data residency band, teasers
   ========================================================= */
/* Silent product videos (fs_video). Hairline frame, no shadow, no radius.
   Wider than the text container on big screens (up to the videos' native
   1600px), centred on the page. The explainer is also capped so its full
   height, controls included, fits the window. */
.fs-video {
	position: relative; left: 50%; translate: -50% 0;
	width: min(1600px, calc(100vw - 2 * var(--gutter)));
	border: 1px solid var(--rule-2); background: var(--paper);
}
.fs-explainer .fs-video { width: min(1600px, calc(100vw - 2 * var(--gutter)), calc((100vh - 10rem) * 16 / 9)); }
.fs-video__media { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--paper); }
.fs-video--loop .fs-video__media { aspect-ratio: 1600 / 750; }
/* Before the poster arrives, show the explainer's own opening colour, not an empty box. */
.fs-explainer .fs-video { border-color: var(--rule); background: var(--teal); }
/* Demo page: the video (or its placeholder) at the same width as the explainer. */
.fs-demo .fs-video, .fs-demo .placeholder-slot { max-width: min(1600px, calc((100vh - 10rem) * 16 / 9)); margin-inline: auto; }
.fs-demo .fs-video { width: min(1600px, calc(100vw - 2 * var(--gutter)), calc((100vh - 10rem) * 16 / 9)); }
.fs-explainer .fs-video__media { background: var(--teal); }
.fs-video__toggle {
	/* Below the frame, right-aligned, so it never covers the interface. */
	position: absolute; right: -1px; top: calc(100% + 0.5rem);
	display: inline-flex; align-items: center; justify-content: center;
	width: 2rem; height: 2rem; padding: 0;
	border: 1px solid var(--rule-2); background: var(--paper-3); color: var(--ink-2);
	cursor: pointer; transition: color var(--transition), border-color var(--transition);
}
.fs-video__toggle[hidden] { display: none; }
.fs-video__toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.fs-video__toggle:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.fs-video__toggle svg { width: 0.75rem; height: 0.75rem; fill: currentColor; }
.fs-video__play, .fs-video.is-paused .fs-video__pause { display: none; }
.fs-video.is-paused .fs-video__play { display: block; }

.fs-residency__inner { max-width: 760px; margin-inline: auto; text-align: center; }
.fs-residency__inner .icon-badge { margin: 0 auto 1.5rem; display: flex; }
.fs-residency__inner .eyebrow { display: flex; justify-content: center; }
.fs-residency__inner .lead { color: var(--ink-2); }

.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.teaser {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: var(--radius-lg);
}
.teaser h2 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.teaser p { color: var(--ink-2); flex-grow: 1; }
@media (max-width: 800px) { .teasers { grid-template-columns: 1fr; } }

/* Section heads: keep the eyebrow on its own line when centred */
.section__head .eyebrow { justify-content: center; }
.section__head--left .eyebrow { justify-content: flex-start; }

/* Inline links in running copy: ink text, blue underline (blue is never body
   text on paper). */
main p a:not([class]) { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

[hidden] { display: none !important; }

/* Anchored sections clear the sticky header */
.section[id] { scroll-margin-top: calc(var(--header-height) + 0.5rem); }

/* Page-title hero (Pricing, Contact): shorter, no min-height */
.fs-hero.hero--short { min-height: 0; padding-block: clamp(3rem, 2rem + 3.5vw, 5rem); }

/* =========================================================
   FEATURES
   ========================================================= */

/* At a glance: seven hairline-joined tiles, the 7th (unique) one spans two */
.fs-glance {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.fs-glance__tile { background: var(--paper-3); }
.fs-glance__tile a {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	height: 100%;
	padding: 1.5rem;
	color: var(--ink);
	transition: background-color var(--transition);
}
.fs-glance__tile a:hover { background: var(--paper-4); }
.fs-glance__tile a:hover .fs-glance__title { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.fs-glance__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.fs-glance__num { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-mono); color: var(--ink-3); }
.fs-glance__head .ico { font-size: 1.35rem; color: var(--ink); }
.fs-glance__title { font-size: var(--fs-h4); font-weight: var(--fw-display); line-height: 1.2; letter-spacing: var(--tracking-h); }
.fs-glance__text { font-size: 0.9375rem; color: var(--ink-2); }
.fs-glance__tile--key { grid-column: span 2; background: var(--teal); }
.fs-glance__tile--key a { color: #fff; }
.fs-glance__tile--key a:hover { background: #133539; }
.fs-glance__tile--key .fs-glance__num { color: var(--lime); }
.fs-glance__tile--key .ico { color: var(--blue); }
.fs-glance__tile--key .fs-glance__text { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 1024px) { .fs-glance { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
	.fs-glance { grid-template-columns: 1fr; }
	.fs-glance__tile--key { grid-column: auto; }
}

/* Split feature section: copy one side, points or a screenshot the other */
.fs-feature { grid-template-columns: 1fr 1fr; }
.fs-feature > * { min-width: 0; }
.fs-feature .split__copy .lead { color: var(--ink-2); }
/* Product still beside a feature list: hairline frame on the screen's own grey. */
.fs-shot { margin: 0; }
.fs-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-2); background: var(--paper); }
.fs-shot figcaption { margin-top: 0.5rem; text-align: right; font-size: var(--fs-small); color: var(--ink-3); }
.fs-sticky-media { position: sticky; top: calc(var(--header-height) + 2rem); }
@media (max-width: 900px) {
	.fs-feature { grid-template-columns: 1fr; }
	.fs-sticky-media { position: static; }
}

/* Vertical icon list */
.fs-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.fs-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.fs-list li > .ico { font-size: 1.25rem; color: var(--ink); margin-top: 0.15rem; }
.fs-list .fs-list__title { font-size: 1.0625rem; margin-bottom: 0.25rem; }
.fs-list p { margin: 0; font-size: 0.9375rem; color: var(--ink-2); }
.fs-list--panel { margin: 0; gap: 0; background: var(--paper); border: 1px solid var(--rule); }
.fs-list--panel li { padding: 1.5rem; }
.fs-list--panel li + li { border-top: 1px solid var(--rule); }

/* Tile row: platforms, audio sources */
.fs-tiles {
	display: grid;
	grid-template-columns: repeat(var(--tiles, 4), 1fr);
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--rule);
	border: 1px solid var(--rule);
}
.fs-tiles--6 { --tiles: 6; }
.fs-tiles li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.75rem 1rem;
	background: var(--paper-3);
	text-align: center;
	font-weight: var(--fw-semibold);
	font-size: 0.9375rem;
	color: var(--ink);
}
.fs-tiles .ico { font-size: 1.75rem; }
.fs-tiles__note { margin: 1rem 0 0; text-align: center; font-size: var(--fs-small); }
@media (max-width: 900px) { .fs-tiles--6 { --tiles: 3; } }
@media (max-width: 560px) { .fs-tiles { --tiles: 2; } .fs-tiles--6 { --tiles: 2; } }

/* Single point under a row */
.fs-callout {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	max-width: 760px;
	margin: 2.5rem auto 0;
	padding: 1.25rem 1.5rem;
	background: var(--paper);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--blue);
}
.fs-callout .ico { font-size: 1.25rem; margin-top: 0.15rem; flex: none; }
.fs-callout p { margin: 0; color: var(--ink-2); }
.fs-callout strong { color: var(--ink); }

/* Two-step row (human review) */
.fs-steps--2 .step-cards { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.fs-steps--2 .step-card .step-card__num { color: var(--blue); }
@media (max-width: 900px) { .fs-steps--2 .step-cards { grid-template-columns: 1fr; } }
.fs-line { margin: 2rem 0 0; text-align: center; font-weight: var(--fw-semibold); font-size: var(--fs-lead); color: var(--ink); }

/* Structured data extraction: the unique feature. Full-width teal band,
   larger heading, ONLY IN FACTSCRIBE badge (lime marks it). */
.fs-key { background: var(--teal); color: rgba(255, 255, 255, 0.8); padding-block: clamp(4.5rem, 3rem + 5vw, 8rem); }
.fs-key__head { max-width: 860px; margin: 0 auto 3rem; text-align: center; }
.fs-key__eyebrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1rem; margin: 0 0 1.5rem; }
.fs-key__eyebrow .eyebrow { margin: 0; color: rgba(255, 255, 255, 0.7); }
.fs-badge {
	display: inline-block;
	padding: 0.4rem 0.65rem;
	background: var(--lime);
	color: var(--teal);
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: var(--fs-meta);
	letter-spacing: var(--tracking-mono);
	line-height: 1;
	text-transform: uppercase;
}
.fs-key__title { color: #fff; font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); letter-spacing: var(--tracking-display); margin-bottom: 1.25rem; }
.fs-key__lead { font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem); color: #fff; margin-bottom: 1rem; }
.fs-key__head p:last-child { margin-bottom: 0; }
.fs-key__uses { max-width: 920px; margin: 0 auto 4rem; text-align: center; }
.fs-key__label {
	margin-bottom: 1rem;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: var(--fs-meta);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}
.pills--dark li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.trust-points--dark { padding-top: 3rem; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.trust-points--dark .icon-badge { background: transparent; border-color: rgba(255, 255, 255, 0.25); color: var(--blue); }
.trust-points--dark .trust-point__title { color: #fff; }
.trust-points--dark .trust-point p { color: rgba(255, 255, 255, 0.72); }
.fs-key .tbc { color: var(--ink); }

.fs-teaser-band { text-align: center; }

/* =========================================================
   PRICING
   ========================================================= */
.fs-plans-section { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }

/* Billing toggle */
.fs-billing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; margin-bottom: 2.5rem; }
.fs-billing__toggle { display: inline-flex; border: 1px solid var(--ink); }
.fs-billing__toggle button {
	padding: 0.65rem 1.4rem;
	background: transparent;
	border: 0;
	font-weight: var(--fw-semibold);
	font-size: 0.9375rem;
	color: var(--ink);
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition);
}
.fs-billing__toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.fs-billing__toggle button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fs-billing__note { margin: 0; font-size: var(--fs-small); color: var(--ink-2); }

/* Plan cards: two side by side, Professional highlighted */
.fs-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 1040px; margin-inline: auto; }
.fs-plan {
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	background: var(--paper-3);
	border: 1px solid var(--rule);
}
.fs-plan--main { border: 2px solid var(--teal); box-shadow: inset 0 4px 0 var(--lime); }
.fs-plan__name { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.fs-plan__for { color: var(--ink-2); font-size: 0.9375rem; margin-bottom: 1.5rem; }
.fs-plan__price { margin: 0 0 1.5rem; min-height: 3.5rem; }
.price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; }
.price__amount { font-weight: var(--fw-display); font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3rem); line-height: 1; letter-spacing: var(--tracking-display); color: var(--ink); }
.price__unit { font-size: 0.9375rem; color: var(--ink-2); }
.price--compact .price__amount { font-size: inherit; font-weight: var(--fw-semibold); letter-spacing: 0; }
.price--compact .price__unit { font-size: inherit; color: inherit; }
.fs-plan__cta .btn { width: 100%; }
.fs-plan__small { margin: 0.6rem 0 0; text-align: center; font-size: var(--fs-small); color: var(--ink-3); }
.fs-checks { list-style: none; margin: 2rem 0 0; padding: 1.75rem 0 0; border-top: 1px solid var(--rule); display: grid; gap: 0.8rem; }
.fs-checks li { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; font-size: 0.9375rem; color: var(--ink); line-height: 1.45; }
.fs-checks .ico { color: var(--blue); font-size: 1.1rem; margin-top: 0.1rem; }
@media (max-width: 800px) { .fs-plans { grid-template-columns: 1fr; max-width: 560px; } }

/* Comparison table: sticky header row on desktop; on small screens it scrolls
   sideways with the feature column pinned. */
.fs-compare { border: 1px solid var(--rule); background: var(--paper-3); }
.fs-compare:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fs-compare table { font-size: 0.9375rem; }
.fs-compare th,
.fs-compare td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.fs-compare__no { color: var(--ink-4); }
.fs-compare tbody tr:last-child th,
.fs-compare tbody tr:last-child td { border-bottom: 0; }
.fs-compare tbody th { font-weight: var(--fw-medium); color: var(--ink); width: 40%; }
.fs-compare tbody td { color: var(--ink-2); width: 30%; }
.fs-compare td .ico { color: var(--blue); font-size: 1.15rem; }
.fs-compare thead th,
.fs-compare thead td {
	position: sticky;
	top: var(--header-height);
	z-index: 2;
	background: var(--teal);
	color: #fff;
	font-weight: var(--fw-display);
	font-size: 1.0625rem;
	border-bottom: 0;
}
body.admin-bar .fs-compare thead th,
body.admin-bar .fs-compare thead td { top: calc(var(--header-height) + var(--wp-admin--admin-bar--height, 32px)); }
@media (max-width: 700px) {
	.fs-compare { overflow-x: auto; contain: paint; } /* contain: stops mobile Chrome widening the page to the table */
	.fs-compare table { min-width: 560px; }
	.fs-compare thead th, .fs-compare thead td { position: static; }
	.fs-compare tbody th,
	.fs-compare thead td:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper-3); border-right: 1px solid var(--rule); }
	.fs-compare thead td:first-child { background: var(--teal); }
}

/* Simple data tables (top-ups, usage explained) */
.fs-table { background: var(--paper-3); border: 1px solid var(--rule); font-size: 0.9375rem; }
.fs-table th,
.fs-table td { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.fs-table thead th {
	background: var(--paper-2);
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: var(--fs-meta);
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: var(--ink-2);
}
.fs-table tbody th { font-weight: var(--fw-semibold); color: var(--ink); }
.fs-table tbody td { color: var(--ink-2); }
.fs-table tbody tr:last-child > * { border-bottom: 0; }

.teaser__link { flex-grow: 0 !important; margin: 1rem 0 0; }

/* Usage at a glance: one bar segment per meeting */
.fs-usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); }
.fs-usage__tile { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.75rem; background: var(--paper-3); }
.fs-usage__tile p { margin: 0; font-weight: var(--fw-semibold); color: var(--ink); }
.fs-usage__bar { display: flex; gap: 2px; height: 48px; }
.fs-usage__seg { background: var(--blue); }
.fs-usage__seg--60 { flex: 2 1 0; }
.fs-usage__seg--30 { flex: 1 1 0; background: var(--teal); }
.fs-usage__docs { display: flex; gap: 0.4rem; margin-top: -0.5rem; color: var(--ink-3); font-size: 1.1rem; }
@media (max-width: 900px) { .fs-usage { grid-template-columns: 1fr; } }

/* Grouped FAQs */
.fs-faq-group + .fs-faq-group { margin-top: 3rem; }
.fs-faq-group__title { font-size: var(--fs-h3); margin-bottom: 1rem; }

/* =========================================================
   CONTACT
   ========================================================= */
.fs-contact { align-items: start; grid-template-columns: 5fr 7fr; }
.fs-contact > * { min-width: 0; }
.fs-contact .cta-form__copy a:not(.btn) { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.trust-strip--stack { flex-direction: column; align-items: flex-start; margin-bottom: 2rem; }
@media (max-width: 900px) { .fs-contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fs-contact .cta-form__card { padding: 1.25rem; } }

/* =========================================================
   INTEGRATIONS
   ========================================================= */

/* Two routes: build it yourself / we do it for you */
.fs-routes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.fs-route {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	background: var(--paper-3);
	border: 1px solid var(--rule);
}
.fs-route--service { border: 2px solid var(--teal); box-shadow: inset 0 4px 0 var(--lime); }
.fs-route__num { position: absolute; top: 1.5rem; right: 1.75rem; font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-mono); color: var(--ink-3); }
.fs-route .icon-badge { margin-bottom: 1.25rem; }
.fs-route__title { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.fs-route > p { color: var(--ink-2); }
.fs-route__steps { list-style: none; margin: 0.5rem 0 0; padding: 0; counter-reset: fs-step; display: grid; gap: 0.6rem; }
.fs-route__steps li { counter-increment: fs-step; display: grid; grid-template-columns: 1.75rem 1fr; font-size: 0.9375rem; color: var(--ink-2); }
.fs-route__steps li::before { content: counter(fs-step, decimal-leading-zero); font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; color: var(--blue); padding-top: 0.2rem; }
.fs-route__steps strong { color: var(--ink); }
.fs-route__facts { margin: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.fs-route__facts > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.fs-route__facts dt { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: var(--ink-3); padding-top: 0.2rem; }
.fs-route__facts dd { margin: 0; font-size: 0.9375rem; color: var(--ink); }
.fs-route__cta { margin-top: auto; padding-top: 1.75rem; }
@media (max-width: 860px) { .fs-routes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .fs-route__facts > div { grid-template-columns: 1fr; gap: 0.25rem; } }

/* API and MCP flow above the system categories */
.fs-connect-flow { max-width: 760px; margin: 0 auto 2.5rem; }
.fs-connect-flow .flow__step small { font-weight: var(--fw-regular); font-size: 0.8125rem; color: var(--ink-3); }
.fs-connect-flow .flow__step--accent .ico { color: var(--lime); }
/* Sector pages: data flows both ways, so two-way arrows. */
.fs-sync-flow .flow__step:not(:last-child)::after { content: "\21C4"; }
@media (max-width: 900px) { .fs-sync-flow .flow__step:not(:last-child)::after { content: "\21C5"; } }
@media (max-width: 900px) { .fs-connect-flow { margin-inline: auto; } }
.fs-tiles--8 { --tiles: 4; }
.fs-tiles--8 li { font-size: 0.875rem; padding-block: 1.5rem; }
@media (max-width: 560px) { .fs-tiles--8 { --tiles: 2; } }
.fs-line--small { font-size: 1rem; font-weight: var(--fw-medium); color: var(--ink-2); }
.fs-line--small .text-link { margin-left: 0.25rem; }

/* Dark code panel with copy button */
.fs-code { margin: 0; contain: paint; background: var(--teal); border: 1px solid var(--teal); color: #E6F0EF; }
.fs-code__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.75rem 0.6rem 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.fs-code__label { font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 600; letter-spacing: var(--tracking-mono); text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.fs-code__copy {
	padding: 0.4rem 0.8rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color var(--transition), color var(--transition);
}
.fs-code__copy:hover { background: var(--lime); border-color: var(--lime); color: var(--teal); }
.fs-code__copy:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.fs-code pre { margin: 0; padding: 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.8125rem; line-height: 1.65; background: transparent; color: inherit; border: 0; }
.fs-code__note { padding: 0 1.25rem 1.25rem; font-size: var(--fs-small); }

/* =========================================================
   Hero line drawings (assets/art/*.svg, via fs_art()).
   Technical-drawing style: greyscale ink at low opacity to sit with the
   hero grid; centre lines, construction lines, dimensions, a title block.
   The lime square on the callout echoes the wordmark full stop.
   ========================================================= */
.fs-hero--art::after { display: none; }
.fs-art { color: var(--ink); width: 100%; }
.fs-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.fs-art .l, .fs-art .c, .fs-art .c-solid, .fs-art .ctr, .fs-art .d {
	fill: none;
	stroke: currentColor;
	stroke-width: 1;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}
.fs-art .l { stroke-opacity: 0.62; stroke-width: 1.25; }
.fs-art .l2 { fill: none; stroke: currentColor; stroke-opacity: 0.42; vector-effect: non-scaling-stroke; }
/* Tubes (stethoscope, handles): a wide line with a paper-coloured core */
.fs-art .tube-o, .fs-art .tube-i { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.fs-art .tube-o { stroke: currentColor; stroke-opacity: 0.62; }
.fs-art .tube-i { stroke: var(--paper); }
.fs-art .bg { fill: var(--paper); }
.fs-art .c { stroke-opacity: 0.22; stroke-dasharray: 4 4; }
.fs-art .c-solid { stroke-opacity: 0.2; }
.fs-art .ctr { stroke-opacity: 0.22; stroke-dasharray: 16 4 2 4; }
.fs-art .d { stroke-opacity: 0.38; }
.fs-art .dot { fill: currentColor; fill-opacity: 0.62; }
.fs-art .acc { fill: var(--lime-2); }
.fs-art .t {
	fill: var(--ink-3);
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.12em;
}
@media (max-width: 991px) {
	.fs-art { max-width: 420px; margin-top: 1rem; }
}
@media (max-width: 600px) {
	.fs-art { display: none; }
}

/* =========================================================
   COMING SOON (inc/coming-soon.php): the hero on its own, full height
   ========================================================= */
.fs-soon { min-height: 100vh; min-height: 100svh; border-bottom: 0; }
.fs-soon::after { display: none; }
.fs-soon__brand { margin-bottom: 2.5rem; }
.fs-soon__brand .fs-wordmark { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.fs-soon .hero__text a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 0.2em; }
.fs-soon__preview { margin-top: 2.5rem; }
.fs-soon__preview summary {
	display: inline-block;
	cursor: pointer;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: var(--tracking-mono);
	text-transform: uppercase;
	color: var(--ink-3);
	list-style: none;
}
.fs-soon__preview summary::-webkit-details-marker { display: none; }
.fs-soon__preview summary:hover,
.fs-soon__preview[open] summary { color: var(--ink); }
.fs-soon__form { width: min(100%, 420px); margin: 1.25rem auto 0; gap: 0.5rem; text-align: left; }
.fs-soon__row { display: flex; gap: 0.5rem; }
.fs-soon__row input[type="password"] {
	flex: 1;
	min-width: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--rule-2);
	border-radius: var(--radius-sm);
	background: var(--paper-3);
	color: var(--ink);
	line-height: 1.5;
}
.fs-soon__row input[type="password"]:focus { outline: none; border-color: var(--ink); }
.fs-soon .form-notice { margin-bottom: 0.25rem; }

/* =========================================================
   LEGAL — privacy, cookies, terms, DPA (pages/legal.php)
   ========================================================= */
.fs-legal h2 { font-size: 1.375rem; margin-top: 2.75rem; }
.fs-legal h3 { font-size: 1.0625rem; margin: 1.75rem 0 0.75rem; }
.fs-legal h2 + p, .fs-legal h3 + p { margin-top: 0; }
.fs-legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }
.fs-legal__updated { font-family: var(--font-mono); font-size: var(--fs-meta); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.fs-legal__draft { margin-bottom: 2rem; }
.fs-legal__table { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--rule); }
.fs-legal__table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.875rem; }
.fs-legal__table th, .fs-legal__table td { padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.fs-legal__table thead th { background: var(--paper-2); color: var(--ink); font-weight: var(--fw-semibold); }
.fs-legal__table tbody tr:last-child td { border-bottom: 0; }

/* Features: UK residency — benefits split above the how-it-works points. */
.fs-residency-points { margin-top: clamp(2.5rem, 5vw, 4rem); }
