/*
	Features > Phone system

	A one-off page, not a detail-page template. Same language as the home page - one grotesque
	family, left-aligned, rules instead of cards - with two bands that belong only to this page:
	the spec table of what the phone system does, and the navy band showing the lead it writes.

	Everything is prefixed .ph- so nothing fights the theme's .dp- primitives; only .dp-container
	is borrowed. Nothing on the page moves.
*/

.ph {
	--ph-ink: #102338;
	--ph-ink-soft: #4a5b6d;
	--ph-fog: #edf0f3;
	--ph-line: #d5dbe2;
	--ph-blue: #1478cf;
	--ph-blue-bright: #2196f3;
	--ph-font: "Schibsted Grotesk", "Segoe UI", sans-serif;

	font-family: var(--ph-font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ph-ink);
}

/* :where() keeps the reset at the lowest specificity, so every class rule below wins over it */
.ph :where(h1, h2, h3, p, ul, ol, dl, dd) {
	margin: 0;
	padding: 0;
	font-family: var(--ph-font);
}

.ph :where(ul, ol) {
	list-style: none;
}

.ph a:focus-visible {
	outline: 3px solid var(--ph-blue-bright);
	outline-offset: 3px;
}


/* ---------------------------------------------------------------- Type and buttons */

.ph .ph-title {
	max-width: 18ch;
	font-size: clamp(32px, 4.2vw, 54px);
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.ph .ph-lede {
	max-width: 46ch;
	margin-top: 20px;
	font-size: 18px;
	line-height: 1.6;
	color: var(--ph-ink-soft);
}

.ph .ph-section {
	padding: 112px 0;
}

.ph .ph-btn {
	display: inline-block;
	padding: 16px 28px;
	border-radius: 4px;
	background: var(--ph-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: #ffffff;
	transition: background-color 0.15s;
}

.ph .ph-btn:hover,
.ph .ph-btn:focus {
	background: var(--ph-blue);
	text-decoration: none;
	color: #ffffff;
}

.ph .ph-btn-light {
	background: #ffffff;
	color: var(--ph-ink);
}

.ph .ph-btn-light:hover,
.ph .ph-btn-light:focus {
	background: var(--ph-ink);
	color: #ffffff;
}

.ph .ph-link {
	font-size: 16px;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
	text-decoration-color: var(--ph-line);
	color: var(--ph-ink);
	transition: text-decoration-color 0.15s;
}

.ph .ph-link:hover,
.ph .ph-link:focus {
	text-decoration-color: var(--ph-blue-bright);
	color: var(--ph-ink);
}


/* ---------------------------------------------------------------- Hero */

.ph .ph-hero {
	overflow: hidden;
	background: var(--ph-fog);

	/* 60px of the top is the fixed header */
	padding: 112px 0 88px 0;
}

.ph .ph-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 56px;
	align-items: center;
}

.ph .ph-crumbs {
	margin-bottom: 28px;
}

.ph .ph-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	font-size: 14px;
	color: var(--ph-ink-soft);
}

.ph .ph-crumbs li + li:before {
	content: "/";
	margin-right: 8px;
	color: var(--ph-line);
}

.ph .ph-crumbs a {
	text-decoration: none;
	color: var(--ph-ink-soft);
}

.ph .ph-crumbs a:hover,
.ph .ph-crumbs a:focus {
	text-decoration: underline;
	color: var(--ph-ink);
}

.ph .ph-hero-title {
	max-width: 12em;
	font-size: clamp(40px, 5.6vw, 76px);
	font-weight: 800;
	line-height: 0.99;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.ph .ph-hero-subtitle {
	max-width: 46ch;
	margin-top: 28px;
	font-size: 20px;
	line-height: 1.55;
	color: var(--ph-ink-soft);
}

.ph .ph-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	margin-top: 36px;
}

/* A cut-out on a transparent ground, so it sits straight on the fog */
.ph .ph-hero-image {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 0 0 auto;
}

.ph .ph-pills {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px;
	margin-top: 72px;
}

.ph .ph-pills li {
	padding-top: 20px;
	border-top: 2px solid var(--ph-ink);
}

.ph .ph-pill-title {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.ph .ph-pill-text {
	max-width: 36ch;
	margin-top: 8px;
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- What is included */

.ph .ph-included {
	background: #ffffff;
}

.ph .ph-included-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 72px;
	align-items: start;
}

.ph .ph-included-head {
	position: sticky;
	top: 104px;
}

.ph .ph-spec {
	border-top: 2px solid var(--ph-ink);
}

.ph .ph-spec-row {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 8px 32px;
	padding: 22px 0;
	border-bottom: 1px solid var(--ph-line);
}

.ph .ph-spec-row dt {
	display: flex;
	gap: 14px;
	align-items: baseline;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.ph .ph-spec-row dt i {
	flex: 0 0 22px;
	font-size: 17px;
	color: var(--ph-blue);
}

.ph .ph-spec-row dd {
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- Lead automation */

.ph .ph-lead {
	background-color: var(--ph-ink);
	background-image: radial-gradient(ellipse 60% 90% at 0% 50%, rgba(33, 150, 243, 0.26) 0%, rgba(33, 150, 243, 0) 70%);
	color: #ffffff;
}

.ph .ph-lead-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 80px;
	align-items: center;
}

.ph .ph-lead-image {
	display: block;
	width: 100%;
	max-width: 560px;
	height: auto;
	margin: 0 auto;
}

.ph .ph-lead .ph-lede {
	color: rgba(255, 255, 255, 0.76);
}

.ph .ph-lead-steps {
	counter-reset: ph-step;
	margin-top: 44px;
}

.ph .ph-lead-steps li {
	counter-increment: ph-step;
	position: relative;
	padding: 20px 0 20px 60px;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ph .ph-lead-steps li:last-child {
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ph .ph-lead-steps li:before {
	content: counter(ph-step);
	position: absolute;
	top: 20px;
	left: 0;
	width: 38px;
	height: 38px;
	box-sizing: border-box;
	border-radius: 50%;
	box-shadow: inset 0 0 0 2px #4aa9f4;
	font-size: 16px;
	font-weight: 700;
	line-height: 38px;
	text-align: center;
	color: #7cc3fa;
}

.ph .ph-lead-steps h3 {
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.ph .ph-lead-steps p {
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.72);
}


/* ---------------------------------------------------------------- Devices */

.ph .ph-devices {
	background: #ffffff;
}

/* The one centred band on the page, so its heading is centred too */
.ph .ph-devices-title {
	max-width: 22ch;
	margin: 0 auto;
	text-align: center;
}

.ph .ph-devices-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 64px;
}

.ph .ph-devices-list li {
	padding-top: 32px;
	border-top: 2px solid var(--ph-ink);
	text-align: center;
}

.ph .ph-devices-image {
	display: block;
	width: 100%;
	max-width: 280px;
	height: auto;
	margin: 0 auto 24px auto;
}

.ph .ph-devices-list h3 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.ph .ph-devices-list p {
	max-width: 34ch;
	margin: 12px auto 0 auto;
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- Missed call */

.ph .ph-missed {
	background: var(--ph-fog);
}

/* One rule runs across the four steps, and each step hangs a dot from it */
.ph .ph-line {
	counter-reset: ph-miss;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	margin-top: 64px;
	border-top: 2px solid var(--ph-ink);
}

.ph .ph-line li {
	counter-increment: ph-miss;
	position: relative;
	padding-top: 32px;
}

.ph .ph-line li:before {
	content: "";
	position: absolute;
	top: -9px;
	left: 0;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--ph-blue-bright);
	box-shadow: 0 0 0 4px var(--ph-fog);
}

.ph .ph-line h3 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.ph .ph-line h3:before {
	content: counter(ph-miss) ". ";
	color: var(--ph-blue);
}

.ph .ph-line p {
	max-width: 28ch;
	margin-top: 10px;
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- On the sales floor */

.ph .ph-floor {
	background: #ffffff;
}

.ph .ph-floor-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 64px;
}

.ph .ph-floor-list li {
	padding-top: 20px;
	border-top: 2px solid var(--ph-ink);
}

.ph .ph-floor-list h3 {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

.ph .ph-floor-list p {
	max-width: 36ch;
	margin: 12px 0 16px 0;
	color: var(--ph-ink-soft);
}

.ph .ph-plans {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	margin-top: 88px;
	padding-top: 28px;
	border-top: 1px solid var(--ph-line);
}

.ph .ph-plans-label {
	font-weight: 700;
}

.ph .ph-plans-chips {
	display: flex;
	gap: 10px;
}

.ph .ph-plans-chips li {
	padding: 4px 18px;
	border: 2px solid var(--ph-ink);
	border-radius: 999px;
	font-weight: 700;
}

.ph .ph-plans-note {
	flex: 1 1 320px;
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- Related */

.ph .ph-related {
	background: var(--ph-fog);
}

.ph .ph-related-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 48px;
	margin-top: 48px;
}

.ph .ph-related-list li {
	padding-top: 20px;
	border-top: 2px solid var(--ph-ink);
}

.ph .ph-related-list h3 {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.ph .ph-related-list h3 a {
	text-decoration: none;
	color: var(--ph-ink);
	background-image: linear-gradient(var(--ph-blue-bright), var(--ph-blue-bright));
	background-repeat: no-repeat;
	background-position: 0 100%;
	background-size: 0 2px;
	transition: background-size 0.2s;
}

.ph .ph-related-list h3 a:hover,
.ph .ph-related-list h3 a:focus {
	background-size: 100% 2px;
	text-decoration: none;
	color: var(--ph-ink);
}

.ph .ph-related-list p {
	max-width: 34ch;
	margin-top: 8px;
	color: var(--ph-ink-soft);
}


/* ---------------------------------------------------------------- Final call to action */

.ph .ph-final {
	padding: 104px 0;
	background: var(--ph-blue);
	color: #ffffff;
}

.ph .ph-final-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 36px 64px;
	align-items: flex-end;
	justify-content: space-between;
}

.ph .ph-final-title {
	max-width: 17ch;
	font-size: clamp(34px, 5vw, 64px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.ph .ph-final-text {
	max-width: 46ch;
	margin-top: 24px;
	font-size: 19px;
	color: rgba(255, 255, 255, 0.9);
}


/* ---------------------------------------------------------------- Narrower screens */

@media (max-width: 991px) {

	.ph .ph-hero-grid,
	.ph .ph-included-grid,
	.ph .ph-lead-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.ph .ph-hero-image {
		max-width: 480px;
		margin: 0 auto;
	}

	.ph .ph-included-head {
		position: static;
	}

	.ph .ph-pills,
	.ph .ph-floor-list,
	.ph .ph-devices-list,
	.ph .ph-related-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.ph .ph-line {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 32px;
		border-top: 0;
	}

	.ph .ph-line li {
		border-top: 2px solid var(--ph-ink);
	}
}

@media (max-width: 767px) {

	.ph {
		font-size: 16px;
	}

	.ph .ph-section {
		padding: 72px 0;
	}

	.ph .ph-hero {
		padding: 100px 0 56px 0;
	}

	.ph .ph-hero-subtitle {
		font-size: 18px;
	}

	.ph .ph-pills {
		margin-top: 48px;
	}

	.ph .ph-spec-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.ph .ph-line {
		grid-template-columns: minmax(0, 1fr);
	}

	.ph .ph-final {
		padding: 72px 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ph .ph-btn,
	.ph .ph-link,
	.ph .ph-related-list h3 a {
		transition: none;
	}
}
