/*
 * What You Need Websites: the site's own look on top of House Kit. The site sells websites, so it has to look the
 * part: a deep navy hero with real work in device frames, bolder headings, cards that lift, and figures you can read
 * from across a room. Colours come from the site's global styles (brand #2f6aa3, accent navy #1d3557, pale blue
 * #eef4fa); the navy shades below are the accent darkened for depth. Phone type sizes stay the kit's (phone.css).
 *
 * Contrast (WCAG AA, checked 22 October 2026): white on #1d3557 12.6:1; #d4e2f1 on #1d3557 9.5:1; #9cc5ee on
 * #1d3557 7.9:1; white on #2f6aa3 5.3:1; #1d3557 on white 12.6:1; #4a5563 on #eef4fa 6.9:1.
 */

:root {
	--wyn-navy: var(--wp--preset--color--accent, #1d3557);
	--wyn-navy-deep: #13243d;
	--wyn-sky: #9cc5ee;
	--wyn-mist: #d4e2f1;
	--wyn-green: #86efac;
	--wyn-dark-bg:
		radial-gradient(55% 70% at 88% 12%, rgba(47, 106, 163, 0.55), transparent 70%),
		radial-gradient(45% 60% at 0% 100%, rgba(47, 106, 163, 0.22), transparent 70%),
		linear-gradient(160deg, var(--wyn-navy) 0%, var(--wyn-navy-deep) 100%);
}

/* ---------- Type: a little more weight and tighter tracking on headings ---------- */

:where(h1, h2, h3) {
	letter-spacing: -0.02em;
}

h2,
.hk-section-head__title {
	font-weight: 750;
}

.hk-section-head__title {
	color: var(--wyn-navy);
}

/* ---------- Header ---------- */

/* The logo is 4.42 times as wide as it is tall, so these widths give the full 44px and 56px of height. */
.hk-header__brand .custom-logo {
	max-width: 194px;
	max-height: 44px;
}

@media (min-width: 1025px) {
	.hk-header__brand .custom-logo {
		max-width: 248px;
		max-height: 56px;
	}

	.hk-header__menu a {
		font-weight: 600;
	}
}

/* ---------- Dark sections: the home hero and every inner page header ---------- */

.hk-section.hk-hero.wyn-hero,
.hk-section.hk-page-header {
	position: relative;
	isolation: isolate;
	background: var(--wyn-dark-bg);
	color: #fff;
}

/* A faint grid, fading out towards the words, so the navy is not flat. Decoration only. */
.hk-section.hk-hero.wyn-hero::before,
.hk-section.hk-page-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000 10%, transparent 75%);
	mask-image: radial-gradient(70% 90% at 80% 20%, #000 10%, transparent 75%);
	pointer-events: none;
}

.wyn-hero .hk-hero__title,
.hk-page-header .hk-page-header__title {
	color: #fff;
	font-weight: 780;
}

.wyn-hero .hk-hero__lead,
.hk-page-header .hk-page-header__intro {
	color: var(--wyn-mist);
}

.wyn-hero .hk-hero__eyebrow {
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: #dcebfa;
	letter-spacing: 0.01em;
}

.wyn-hero .hk-hero__bullets li {
	color: #eef4fa;
}

.wyn-hero .hk-hero__bullets .hk-icon {
	background: rgba(134, 239, 172, 0.14);
	color: var(--wyn-green);
}

.wyn-hero .hk-hero__reassure {
	color: var(--wyn-mist);
}

.wyn-hero .hk-hero__chips li {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: none;
	color: #fff;
}

.wyn-hero .hk-hero__chips a {
	color: #fff;
	text-decoration-color: var(--wyn-sky);
	text-underline-offset: 3px;
}

/* On navy the main button is white, so it is the brightest thing on the screen. */
.wyn-hero .wp-element-button.hk-btn--primary {
	background: #fff;
	color: var(--wyn-navy);
}

.wyn-hero .wp-element-button.hk-btn--primary:hover {
	background: var(--wp--preset--color--surface-alt);
}

.wyn-hero .wp-element-button.hk-btn--ghost {
	color: #fff;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.wyn-hero .wp-element-button.hk-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* The device frames are their own picture: no mat, border or tilt from the kit's photo frame. */
.hk-section.wyn-hero .hk-hero__media .hk-img {
	width: 100%;
	max-width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

/* "An example site" under the picture: quiet, but a real sentence with a link down to the real work. */
.wyn-hero .hk-hero__media {
	flex-direction: column;
	align-items: stretch;
}

.wyn-hero__caption {
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.wyn-hero__caption a {
	color: #fff;
	text-underline-offset: 3px;
}

@media (min-width: 900px) {
	/* Under the laptop, on the left: the chat button sits in the bottom right corner of the screen. */
	.wyn-hero__caption {
		text-align: left;
	}

	/* The words lead; the example site sits beside them as supporting evidence, not the main event (David). */
	.hk-hero--photo-right.has-image.wyn-hero .hk-hero__inner {
		grid-template-columns: 1.3fr 1fr;
	}

	.wyn-hero .hk-hero__media {
		width: 100%;
		max-width: 500px;
		justify-self: end;
	}
}

@media (max-width: 767px) {
	.wyn-hero .hk-hero__media {
		max-width: 320px;
		margin: var(--wp--preset--spacing--xs) auto 0;
	}
}

/* Inner page headers: the breadcrumb in pale blue. */
.hk-page-header .hk-crumbs a,
.hk-page-header .hk-crumbs [aria-current] {
	color: var(--wyn-mist);
}

.hk-page-header .hk-crumbs a {
	text-decoration-color: rgba(212, 226, 241, 0.5);
}

.hk-page-header .hk-crumbs li + li::before {
	color: var(--wyn-sky);
}

.hk-page-header .hk-page-header__intro {
	max-width: 680px;
}

/* ---------- Cards ---------- */

.hk-card {
	border: 1px solid var(--wp--preset--color--border);
	box-shadow: var(--wp--preset--shadow--card);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hk-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--wp--preset--shadow--lift);
}

.hk-card__icon {
	background: var(--wp--preset--color--brand);
	color: #fff;
}

.hk-card__title {
	color: var(--wyn-navy);
}

/* ---------- Steps ---------- */

.hk-step::before {
	background: linear-gradient(135deg, var(--wp--preset--color--brand), var(--wyn-navy));
	color: #fff;
	box-shadow: 0 6px 16px -6px rgba(29, 53, 87, 0.6);
}

.hk-step__title {
	color: var(--wyn-navy);
}

/* ---------- Websites we have built ---------- */

.wyn-case {
	display: grid;
	gap: var(--wp--preset--spacing--m);
	align-items: center;
}

.wyn-case + .wyn-case {
	margin-top: var(--wp--preset--spacing--xl);
	padding-top: var(--wp--preset--spacing--xl);
	border-top: 1px solid var(--wp--preset--color--border);
}

.wyn-case__media {
	position: relative;
	border-radius: 24px;
	padding: clamp(16px, 4vw, 40px) clamp(12px, 3vw, 32px) clamp(12px, 3vw, 28px);
	background:
		radial-gradient(60% 80% at 80% 10%, rgba(47, 106, 163, 0.5), transparent 70%),
		linear-gradient(160deg, var(--wyn-navy), var(--wyn-navy-deep));
}

.wyn-case__img {
	display: block;
	width: 100%;
	height: auto;
}

.wyn-case__kicker {
	margin: 0 0 6px;
	color: var(--wp--preset--color--brand);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.wyn-case__title {
	margin: 0 0 var(--wp--preset--spacing--s);
	color: var(--wyn-navy);
	font-size: var(--wp--preset--font-size--h-2);
	font-weight: 750;
	line-height: 1.15;
}

.wyn-case__body > p {
	color: var(--wp--preset--color--ink-soft);
}

.wyn-case__link {
	margin: var(--wp--preset--spacing--m) 0 0;
	font-weight: 700;
}

.wyn-case__link a {
	color: var(--wp--preset--color--brand);
	text-underline-offset: 4px;
}

.wyn-stats {
	display: grid;
	gap: 12px;
	margin: var(--wp--preset--spacing--m) 0 0;
	padding: 0;
	list-style: none;
}

.wyn-stat {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "label label" "after before";
	align-items: baseline;
	gap: 2px 12px;
	padding: 14px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--brand);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--card);
}

.wyn-stat__label {
	grid-area: label;
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wyn-stat__after {
	grid-area: after;
	color: var(--wyn-navy);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.wyn-stat__before {
	grid-area: before;
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	text-decoration: line-through;
	text-decoration-color: rgba(180, 35, 24, 0.7);
	text-decoration-thickness: 2px;
}

@media (min-width: 600px) {
	.wyn-stats {
		grid-template-columns: repeat(3, 1fr);
	}

	.wyn-stat {
		grid-template-columns: 1fr;
		grid-template-areas: "label" "after" "before";
		padding: 18px;
	}

	.wyn-stat__after {
		font-size: 34px;
	}
}

@media (min-width: 1025px) {
	.wyn-case {
		grid-template-columns: 1.1fr 1fr;
		gap: var(--wp--preset--spacing--l);
	}

	.wyn-case--flip .wyn-case__media {
		order: 2;
	}

	/* The figures get the full width under the picture and the words, so they read large. */
	.wyn-case .wyn-stats {
		grid-column: 1 / -1;
		margin-top: 0;
	}

	.wyn-stat {
		padding: 22px 24px;
	}

	.wyn-stat__after {
		font-size: 44px;
	}
}

/* ---------- Prices ---------- */

.wyn-plans {
	display: grid;
	gap: var(--wp--preset--spacing--m);
	max-width: 980px;
	margin: 0 auto;
}

.wyn-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--wp--preset--spacing--m);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--card);
}

.wyn-plan.is-featured {
	border: 2px solid var(--wp--preset--color--brand);
	box-shadow: var(--wp--preset--shadow--lift);
}

.wyn-plan__badge {
	align-self: flex-start;
	margin: 0 0 var(--wp--preset--spacing--s);
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand);
	color: #fff;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

.wyn-plan__name {
	margin: 0;
	color: var(--wyn-navy);
	font-size: var(--wp--preset--font-size--h-3);
}

.wyn-plan__price {
	margin: 10px 0 0;
	color: var(--wyn-navy);
}

.wyn-plan__amount {
	font-size: 52px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
}

.wyn-plan__unit {
	color: var(--wp--preset--color--ink-soft);
	font-weight: 600;
}

.wyn-plan__note {
	margin: 8px 0 0;
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
}

.wyn-plan__list {
	display: grid;
	gap: 10px;
	margin: var(--wp--preset--spacing--m) 0 0;
	padding: var(--wp--preset--spacing--m) 0 0;
	border-top: 1px solid var(--wp--preset--color--border);
	list-style: none;
}

.wyn-plan__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.wyn-plan__list .hk-icon {
	width: 24px;
	height: 24px;
	padding: 4px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--success) 14%, var(--wp--preset--color--surface));
	color: var(--wp--preset--color--success);
	stroke-width: 2.6;
}

.wyn-plan__cta {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--m);
}

.wyn-plan__cta .wp-element-button {
	width: 100%;
}

@media (min-width: 768px) {
	.wyn-plans {
		grid-template-columns: 1fr 1fr;
	}

	.wyn-plan {
		padding: var(--wp--preset--spacing--l);
	}

	.wyn-plan__amount {
		font-size: 60px;
	}
}

/* ---------- A note from Dave ---------- */

.wp-block-group.wyn-note > .wyn-note__card {
	position: relative;
	max-width: 760px;
	margin: 0 auto;
	padding: var(--wp--preset--spacing--l) var(--wp--preset--spacing--m) var(--wp--preset--spacing--m);
	border-radius: 20px;
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--lift);
}

.wyn-note__card::before {
	content: "\201C";
	position: absolute;
	top: -18px;
	left: 24px;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--wp--preset--color--brand);
	color: #fff;
	font-size: 56px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
}

.wyn-note__card h2 {
	margin-top: 0;
}

@media (min-width: 768px) {
	.wp-block-group.wyn-note > .wyn-note__card {
		padding: var(--wp--preset--spacing--l);
	}
}

/* ---------- Tables (the extras and their prices) ---------- */

.wp-block-table table {
	overflow: hidden;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	background: var(--wp--preset--color--surface);
}

.wp-block-table table th,
.wp-block-table table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	text-align: left;
}

.wp-block-table thead th {
	background: var(--wyn-navy);
	color: #fff;
	font-weight: 700;
}

.wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}

.wp-block-table tbody tr:nth-child(even) td {
	background: color-mix(in srgb, var(--wp--preset--color--surface-alt) 60%, var(--wp--preset--color--surface));
}

.wp-block-table td:last-child {
	color: var(--wyn-navy);
	font-weight: 700;
	white-space: nowrap;
}

.wp-block-table thead {
	border-bottom: 0;
}

/* ---------- Closing band ---------- */

.hk-cta-band.is-bg-brand .hk-cta-band__inner {
	background: var(--wyn-dark-bg);
}

.hk-cta-band.is-bg-brand .wp-element-button.hk-btn--primary {
	background: #fff;
	color: var(--wyn-navy);
}

/* ---------- Questions ---------- */

.hk-faq__item summary {
	color: var(--wyn-navy);
	font-weight: 650;
}

/* ---------- Footer ---------- */

.hk-footer {
	background: var(--wyn-navy-deep);
}

.wyn-footer-logo img {
	display: block;
	width: 230px;
	height: auto;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	.hk-card:hover {
		transform: none;
	}
}

/* One plan alone (the care plan page) sits centred at a readable width. */
.wyn-plans:has(> .wyn-plan:only-child) {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}
