/* =========================================================================
   Billi service plans: template-service-plans.php (/billicare-service-plans/).
   Scoped to .pl, mobile first, min-width queries at 640 / 768 / 900 / 1200.
   The house recipe from docs/superpowers/specs/2026-09-18-support-and-
   content-pages-design.md, renamed, plus the plan cards, the comparison and
   visit tables, the Combi row and the exclusions.
   ========================================================================= */

.pl {
	--pl-navy: #181d46;      /* Billi Blue */
	--pl-lightblue: #90cdeb; /* primary button on dark, accents */
	--pl-grey: #eaeaea;      /* borders, rules */
	--pl-band-grey: #f5f5f5;
	--pl-band-tint: #f1f5f5; /* Green Grey */
	--pl-text: #000;
	--pl-muted: #75757b;
	--pl-muted-band: #5f5f66; /* muted text on a grey or tint band (4.5:1+) */
	--pl-gutter: 20px;

	font-family: var(--font-din);
	color: var(--pl-text);
	line-height: 1.5;
}

@media (min-width: 900px) {
	.pl { --pl-gutter: 40px; }
}

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

/* framework.css sets a global img { width: 100% }: width must be reset. */
.pl img { max-width: 100%; width: auto; height: auto; display: block; }

.pl-container {
	width: 100%;
	max-width: 1436px;
	margin: 0 auto;
	padding-left: var(--pl-gutter);
	padding-right: var(--pl-gutter);
}

.pl-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


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

.pl-section { padding: 48px 0; }

@media (min-width: 900px) {
	.pl-section { padding: 80px 0; }
}

.pl-section--grey { background: var(--pl-band-grey); }
.pl-section--tint { background: var(--pl-band-tint); }

.pl :is(h2, h3) {
	margin-top: 0;
	text-transform: none;
	letter-spacing: normal;
}

.pl .pl-section-heading {
	margin: 0 0 12px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.18;
	color: var(--pl-navy);
}

.pl-section-intro {
	margin: 0;
	max-width: 66ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--pl-muted);
}

.pl-section--grey .pl-section-intro,
.pl-section--tint .pl-section-intro { color: var(--pl-muted-band); }

.pl-section-head { margin-bottom: 28px; }
.pl-section-head > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
	.pl .pl-section-heading { font-size: 34px; }
	.pl-section-head { margin-bottom: 40px; }
}


/* ---- Buttons --------------------------------------------------------------
   desktop.css has a global a:hover { opacity: .7 }: every button opts out. */

/* 16px on a 1.5 line with 12px padding: 48px tall, the size the homepage,
   Why Billi, Specify Billi and the sector pages use. */
.pl .pl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 28px;
	border: 0;
	border-radius: 2px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pl .pl-btn:hover,
.pl .pl-btn:focus-visible { opacity: 1; }

.pl .pl-btn--navy { background: var(--pl-navy); color: #fff; }

.pl .pl-btn--navy:hover,
.pl .pl-btn--navy:focus-visible {
	background: #fff;
	color: var(--pl-navy);
	box-shadow: inset 0 0 0 1px var(--pl-navy);
}

.pl .pl-btn--light { background: var(--pl-lightblue); color: var(--pl-navy); }

.pl .pl-btn--light:hover,
.pl .pl-btn--light:focus-visible { background: #fff; color: var(--pl-navy); }

.pl .pl-btn--ghost {
	background: transparent;
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pl .pl-btn--ghost:hover,
.pl .pl-btn--ghost:focus-visible {
	background: #fff;
	color: var(--pl-navy);
	box-shadow: none;
}

.pl .pl-btn--outline {
	background: transparent;
	color: var(--pl-navy);
	box-shadow: inset 0 0 0 1px var(--pl-navy);
}

.pl .pl-btn--outline:hover,
.pl .pl-btn--outline:focus-visible { background: var(--pl-navy); color: #fff; }

/* framework.css removes focus outlines sitewide. */
.pl :is(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--pl-navy);
	outline-offset: 3px;
}

.pl .pl-hero :is(a, button, summary):focus-visible { outline-color: #fff; }


/* ---- Hero (photograph) ------------------------------------------------------
   The UK service van (2024/03/Billi-UK-Service-Van-banner.png). Its left
   third is already a navy fade, so the copy sits there; the crop keeps the
   van in view as the hero narrows. The title is an <h1>: typography.css gives
   it DM Serif Display at 400. Never set its font-weight or font-family. */

.pl-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 340px;
	background: var(--pl-navy);
	color: #fff;
	overflow: hidden;
}

.pl .pl-hero__media,
.pl .pl-hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 72% center;
}

.pl-hero__media { z-index: -2; }

.pl-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(24, 29, 70, 0.35) 0%, rgba(24, 29, 70, 0.85) 100%),
		linear-gradient(90deg, rgba(24, 29, 70, 0.9) 0%, rgba(24, 29, 70, 0.55) 55%, rgba(24, 29, 70, 0.3) 100%);
}

.pl-hero__inner {
	width: 100%;
	padding-top: 48px;
	padding-bottom: 48px;
}

.pl-hero__content { max-width: 720px; }

.pl-hero__eyebrow {
	margin: 0 0 12px;
	color: var(--pl-lightblue);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.pl .pl-hero__title {
	margin: 0;
	color: #fff;
	font-size: 34px;
	line-height: 1.12;
}

.pl-hero__intro {
	margin: 16px 0 0;
	max-width: 62ch;
	color: rgba(255, 255, 255, 0.9);
	font-size: 17px;
	line-height: 1.5;
}

.pl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.pl-hero__actions:empty { display: none; }

@media (min-width: 900px) {
	.pl-hero { min-height: 460px; }
	.pl-hero__inner { padding-top: 72px; padding-bottom: 72px; }
	.pl .pl-hero__title { font-size: 52px; }
	.pl-hero__intro { font-size: 18px; }
}


/* ---- Benefits ---------------------------------------------------------------- */

.pl-benefits__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

@media (min-width: 900px) {
	.pl-benefits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
}

.pl-benefits__item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	min-width: 0;
	margin: 0;
	padding: 20px 22px;
	border-radius: 4px;
	background: var(--pl-band-tint);
}

.pl-benefits__icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pl-navy);
	color: #fff;
}

.pl .pl-benefits__icon svg { width: 16px; height: 16px; }

.pl-benefits__text {
	padding-top: 4px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--pl-navy);
}

.pl-note {
	margin: 20px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--pl-muted);
}


/* ---- Plan cards ---------------------------------------------------------------- */

.pl-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
}

@media (min-width: 900px) {
	.pl-grid { gap: 28px; }
	.pl-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pl-plan {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 24px;
	border: 1px solid var(--pl-grey);
	border-radius: 4px;
	background: #fff;
}

@media (min-width: 1200px) {
	.pl-plan { padding: 32px; }
}

.pl-plan__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

/* The badges are 498px and 547px artwork shown at 64px. */
.pl .pl-plan__badge {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	object-fit: contain;
}

.pl-plan__titles { min-width: 0; }

.pl .pl-plan__name {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--pl-navy);
}

.pl-plan__tier {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--pl-muted);
}

.pl-plan__recommended {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-left: 3px solid var(--pl-lightblue);
	background: var(--pl-band-tint);
	font-size: 15px;
	line-height: 1.45;
	color: var(--pl-text);
}

.pl-plan__label {
	display: block;
	margin-bottom: 2px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--pl-navy);
}

.pl-plan__summary {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pl-text);
}

.pl-plan__body {
	flex: 1 1 auto;
	padding-bottom: 24px;
}

/* Full-width button at the foot of every card, however long its summary. */
.pl .pl-plan__cta { width: 100%; }


/* ---- Tables --------------------------------------------------------------------
   desktop.css and responsive.css style bare table/th/td (white 3px borders,
   uppercase 1.688rem th, 33% widths, and under 640px a 600px minimum width
   with 200px minimum cells), so every rule here carries .pl .pl-table. */

/* position: relative keeps the visually hidden "Included" labels (absolutely
   positioned) inside the scroll box; without it they escape the clip and
   widen the whole page on a phone. */
.pl-table-wrap {
	position: relative;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--pl-grey);
	border-radius: 4px;
	background: #fff;
}

.pl .pl-table {
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 15px;
	line-height: 1.4;
}

.pl .pl-table :is(th, td) {
	width: auto;
	min-width: 0;
	padding: 14px 16px;
	border: 0;
	border-top: 1px solid var(--pl-grey);
	font-size: 15px;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	vertical-align: middle;
	color: var(--pl-text);
	background: transparent;
}

.pl .pl-table thead th {
	border-top: 0;
	background: var(--pl-navy);
	color: #fff;
	font-weight: 600;
	vertical-align: bottom;
}

.pl .pl-table tbody th {
	font-weight: 600;
	color: var(--pl-navy);
}

.pl .pl-table tbody tr:nth-child(even) :is(th, td) { background: #fafafa; }

/* Comparison: fixed columns, so all four plans fit a 375px phone without
   sideways scrolling (the wrapper still scrolls if a label ever needs it).
   Tighter type and padding under 640px. */
.pl .pl-table { table-layout: fixed; }

.pl .pl-table--compare :is(thead th, td):not(:first-child) {
	width: 15%;
	text-align: center;
}

.pl .pl-table--compare :is(th, td) {
	padding: 10px 6px;
	font-size: 13px;
}

/* Long feature names hyphenate rather than break mid-word on a phone. */
.pl .pl-table--compare :is(th, td):first-child {
	padding-left: 12px;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 12 5 5; /* only long words such as "reconfigurations" */
}

@media (min-width: 640px) {
	.pl .pl-table--compare :is(thead th, td):not(:first-child) { width: 16%; }
	.pl .pl-table--compare :is(th, td) { padding: 14px 16px; font-size: 15px; }
	.pl .pl-table--compare :is(th, td):first-child { -webkit-hyphens: manual; hyphens: manual; }
}

.pl .pl-table--compare thead .pl-table__corner { font-weight: 400; color: rgba(255, 255, 255, 0.8); }

.pl-table__plan { display: block; font-size: 13px; }

.pl-table__note {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.8);
}

.pl .pl-mark {
	display: inline-block;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.pl .pl-mark--yes { color: var(--pl-navy); }
.pl .pl-mark--no { width: 15px; height: 15px; color: #a1a1a8; }

@media (min-width: 640px) {
	.pl-table__plan { font-size: 16px; }
	.pl-table__note { font-size: 13px; }
	.pl .pl-mark { width: 22px; height: 22px; }
	.pl .pl-mark--no { width: 18px; height: 18px; }
}

/* Visit schedule: the "when" column stays narrow. */
.pl-schedule { margin-top: 48px; }

@media (min-width: 900px) {
	.pl-schedule { margin-top: 64px; }
}

.pl .pl-schedule__heading {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pl-navy);
}

.pl-schedule__intro {
	margin: 0 0 20px;
	max-width: 66ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pl-muted);
}

.pl .pl-table--schedule :is(th, td) { vertical-align: top; }

.pl .pl-table--schedule :is(thead th:first-child, tbody th) { width: 30%; }

@media (min-width: 900px) {
	.pl .pl-table--schedule :is(thead th:first-child, tbody th) { width: 24%; }
}

.pl-table__tasks {
	margin: 0;
	padding: 0;
	list-style: none;
	columns: 1;
}

/* Long lists run in two columns; two-item rows stay a single list. */
@media (min-width: 768px) {
	.pl-table__tasks--cols { columns: 2; column-gap: 32px; }
}

.pl-table__tasks li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 16px;
	break-inside: avoid;
}

.pl-table__tasks li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pl-lightblue);
}


/* ---- How Combi works ---------------------------------------------------------------- */

.pl-combi__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 900px) {
	.pl-combi__inner {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
	}
}

.pl-combi__body,
.pl-combi__includes { min-width: 0; }

.pl-combi__text {
	margin: 0;
	max-width: 62ch;
	font-size: 17px;
	line-height: 1.55;
	color: var(--pl-text);
}

.pl-combi__options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin-top: 28px;
}

@media (min-width: 640px) {
	.pl-combi__options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

.pl-option {
	min-width: 0;
	padding: 22px 24px;
	border: 1px solid var(--pl-grey);
	border-radius: 4px;
	background: #fff;
}

.pl .pl-option__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pl-navy);
}

.pl-option__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--pl-text);
}

.pl-combi__includes {
	padding: 24px;
	border-radius: 4px;
	background: #fff;
}

@media (min-width: 1200px) {
	.pl-combi__includes { padding: 32px; }
}

.pl .pl-combi__includes-heading {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pl-navy);
}

.pl-ticks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.pl-ticks li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 16px;
	line-height: 1.45;
}

.pl .pl-ticks svg {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	color: var(--pl-navy);
}


/* ---- Exclusions and rental ------------------------------------------------------------- */

.pl-extras__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
}

@media (min-width: 900px) {
	.pl-extras__inner {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
	}
}

.pl-smallprint,
.pl-rental { min-width: 0; }

.pl .pl-smallprint__heading,
.pl .pl-rental__heading {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--pl-navy);
}

@media (min-width: 900px) {
	.pl .pl-smallprint__heading,
	.pl .pl-rental__heading { font-size: 26px; }
}

.pl-smallprint__list {
	margin: 0;
	padding-left: 1.15em;
	list-style: disc;
	font-size: 15px;
	line-height: 1.55;
	color: var(--pl-text);
}

.pl-smallprint__list li { margin: 0 0 8px; }
.pl-smallprint__list li::marker { color: var(--pl-navy); }

.pl-rental {
	padding: 24px;
	border: 1px solid var(--pl-grey);
	border-radius: 4px;
	background: #fff;
}

@media (min-width: 1200px) {
	.pl-rental { padding: 32px; }
}

.pl-rental__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pl-text);
}


/* ---- Closing band ------------------------------------------------------------------------
   Green Grey with the standard navy button. Never navy above the navy footer. */

.pl-help__row {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.pl .pl-help .pl-section-heading { margin-bottom: 0; }

.pl-help__text {
	margin: 12px 0 0;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pl-text);
}

.pl .pl-help__text a {
	color: var(--pl-navy);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.pl .pl-help__text a:hover { opacity: 1; }

.pl-help__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (min-width: 768px) {
	.pl-help__row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.pl-help__actions { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.pl .pl-btn { transition: none; }
}
