/* gl_ppc_cost: what PPC costs, two tables, a CTA line, the channel tiles, a card and a package card. */
.gl-ppc-cost__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.gl-ppc-cost__inner > * {
	max-width: 100%;
}

/* The section runs the container's full width; the lede keeps a reading line. */
.gl-ppc-cost__lede {
	max-width: 860px;
	margin-bottom: 32px;
}

.gl-ppc-cost__scroll {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--gl-gray-200);
	border-radius: 12px;
	background: #fff;
}

.gl-ppc-cost__scroll:focus-visible {
	outline: 2px solid var(--gl-blue);
	outline-offset: 2px;
}

/* Fixed layout: the row labels take a third, the value columns share the rest equally, whatever their text. */
.gl-ppc-cost__table {
	width: 100%;
	min-width: 520px;
	table-layout: fixed;
	border-collapse: collapse;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	color: var(--gl-text);
}

.gl-ppc-cost__table th,
.gl-ppc-cost__table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--gl-gray-200);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.gl-ppc-cost__table thead > tr > :first-child {
	width: 34%;
}

.gl-ppc-cost__table tbody tr:last-child > * {
	border-bottom: 0;
}

.gl-ppc-cost__table thead th,
.gl-ppc-cost__table thead td {
	background: var(--gl-blue);
	color: #fff;
	font-weight: 600;
}

.gl-ppc-cost__table tbody th {
	font-weight: 500;
}

.gl-ppc-cost__table tbody tr:nth-child(even) {
	background: var(--gl-bg-alt);
}

/* A table split into groups is striped by its group headings alone. */
.gl-ppc-cost__table:has(.gl-ppc-cost__row--group) tbody tr:not(.gl-ppc-cost__row--group) {
	background: none;
}

/* Numbers sit at the left edge of their column, under its heading, like the text cells. */
.gl-ppc-cost__table .gl-ppc-cost__n {
	font-variant-numeric: tabular-nums;
}

/* Five columns: a narrower label column, and a floor that makes the table scroll in its wrapper on phones. */
.gl-ppc-cost__table--wide {
	min-width: 860px;
}

.gl-ppc-cost__table--wide thead > tr > :first-child {
	width: 24%;
}

.gl-ppc-cost__head {
	display: block;
}

.gl-ppc-cost__sub {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
}

.gl-ppc-cost__table thead .gl-ppc-cost__sub {
	color: rgba(255, 255, 255, 0.85);
}

.gl-ppc-cost__table tbody .gl-ppc-cost__sub {
	color: var(--gl-gray-700);
}

.gl-ppc-cost__table .gl-ppc-cost__row--group > th {
	padding-top: 10px;
	padding-bottom: 10px;
	background: var(--gl-gray-100);
	color: var(--gl-gray-700);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* The two fee rows share weight and size; the SEO row differs only by its colour, background, badge and "save" lines. */
.gl-ppc-cost__table .gl-ppc-cost__row--strong > *,
.gl-ppc-cost__table .gl-ppc-cost__row--total > *,
.gl-ppc-cost__table .gl-ppc-cost__row--best > * {
	font-size: 16px;
	font-weight: 700;
}

.gl-ppc-cost__table .gl-ppc-cost__row--total > * {
	border-top: 1px solid var(--gl-gray-200);
}

.gl-ppc-cost__table .gl-ppc-cost__row--best {
	background: #ecfdf3;
}

.gl-ppc-cost__table .gl-ppc-cost__row--best > td {
	color: #15803d;
}

.gl-ppc-cost__table .gl-ppc-cost__row--best .gl-ppc-cost__sub {
	font-weight: 600;
	color: #15803d;
}

.gl-ppc-cost__badge {
	display: inline-block;
	margin: 4px 0 0 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #15803d;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
	white-space: nowrap;
	vertical-align: middle;
}

.gl-ppc-cost__table-lede {
	margin: -4px 0 16px;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--gl-gray-700);
}

.gl-ppc-cost__table-lede strong {
	font-weight: 600;
	color: var(--gl-text);
}

.gl-ppc-cost__note {
	margin: 12px 0 0;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	color: var(--gl-gray-700);
}

.gl-ppc-cost__terms {
	margin: 20px 0 0;
	padding-left: 20px;
	list-style: disc;
}

.gl-ppc-cost__note a,
.gl-ppc-cost__link {
	color: var(--gl-blue);
	font-weight: 600;
	text-decoration: underline;
}

.gl-ppc-cost__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: 32px;
	padding: 28px 26px;
	border: 1px solid var(--gl-gray-200);
	border-radius: 16px;
	background: #fff;
}

.gl-ppc-cost__card--pkg {
	border-left: 4px solid var(--gl-red);
	background: var(--gl-bg-alt);
}

.gl-ppc-cost__link {
	align-self: flex-start;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 16px;
}

.gl-ppc-cost__h3 {
	margin: 0;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--gl-text);
}

.gl-ppc-cost__t2-title {
	margin: 48px 0 16px;
}

/* The offer row spans the table; its text sticks to the wrapper's left edge while a phone scrolls the table. */
.gl-ppc-cost__scroll {
	container-type: inline-size;
}

.gl-ppc-cost__table .gl-ppc-cost__row--offer > td {
	padding-top: 10px;
	padding-bottom: 10px;
	border-top: 1px solid #bbf7d0;
	background: #ecfdf3;
}

.gl-ppc-cost__offer {
	position: sticky;
	left: 18px;
	max-width: calc(100cqi - 36px);
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #14532d;
}

.gl-ppc-cost__offer-tag {
	display: inline-block;
	margin-right: 10px;
	padding: 2px 10px;
	border-radius: 999px;
	background: #15803d;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}

.gl-ppc-cost__offer-text {
	font-weight: 500;
}

.gl-ppc-cost__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin-top: 28px;
}

/* Button and link alone: centred in the section, on one middle line. */
.gl-ppc-cost__cta--solo,
.gl-ppc-cost__cta--solo .gl-ppc-cost__actions {
	justify-content: center;
	align-items: center;
}

.gl-ppc-cost__cta--solo .gl-ppc-cost__more {
	align-self: center;
}

.gl-ppc-cost__cta .gl-text {
	flex: 1 1 360px;
	margin: 0;
}

.gl-ppc-cost__cta strong {
	font-weight: 700;
}

.gl-ppc-cost__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
}

.gl-ppc-cost__btn {
	flex: 0 1 auto;
	width: auto;
}

.gl-ppc-cost__more {
	white-space: nowrap;
}

.gl-ppc-cost__ch {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin-top: 56px;
}

/* A section with no table (the channels one): its block follows the heading directly. */
.gl-ppc-cost--plain .gl-ppc-cost__ch {
	margin-top: 0;
}

/* The promo band closing the pricing section: dark, the screen's full width, Mary's photo, text, button. */
.gl-section.gl-ppc-cost--promo {
	padding-bottom: 0;
}

.gl-ppc-cost__promo {
	margin-top: clamp(64px, 8vw, 120px);
	padding: clamp(40px, 5vw, 64px) 0;
	background: #003557;
}

.gl-ppc-cost__promo-inner {
	display: flex;
	align-items: center;
	gap: 28px clamp(32px, 5vw, 72px);
}

.gl-ppc-cost__promo-photo {
	flex: none;
	width: 420px;
	height: auto;
	aspect-ratio: 4 / 5;
	border-radius: 12px;
	object-fit: cover;
	object-position: 50% 15%;
}

.gl-ppc-cost__promo-body {
	flex: 1;
	min-width: 0;
}

.gl-ppc-cost__promo-text {
	max-width: 640px;
	margin: 12px 0 0;
	color: var(--fg-on-dark-2);
	font-size: 17px;
	line-height: 1.6;
}

.gl-ppc-cost__promo-cite {
	margin: 14px 0 0;
	color: var(--fg-on-dark-2);
	font-family: Poppins, Verdana, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.gl-ppc-cost__promo-btn {
	margin-top: 28px;
}

/* The channels section: eyebrow, heading and text centred over the tiles. */
.gl-ppc-cost--plain .gl-ppc-cost__inner > .gl-eyebrow,
.gl-ppc-cost--plain .gl-ppc-cost__inner > .gl-title {
	align-self: center;
	text-align: center;
}

.gl-ppc-cost--plain .gl-ppc-cost__ch-text {
	align-self: center;
	text-align: center;
}

.gl-ppc-cost__ch-text {
	max-width: 860px;
	margin: 12px 0 0;
}

.gl-ppc-cost__tiles {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.gl-ppc-cost__tile-item {
	display: flex;
	margin: 0;
}

.gl-ppc-cost__tile {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 6px;
	padding: 20px 22px;
	border: 1px solid #e4e7ec;
	border-radius: 14px;
	background: #fff;
	color: var(--gl-text);
	font-family: Poppins, Verdana, sans-serif;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.gl-ppc-cost__tile--link:hover {
	border-color: var(--gl-blue);
}

.gl-ppc-cost__tile--link:focus-visible {
	outline: 2px solid var(--gl-blue);
	outline-offset: 2px;
}

.gl-ppc-tile-ico {
	flex: none;
	margin-bottom: 6px;
	color: var(--gl-blue);
}

/* "A good fit if": a checklist card between the lede and the plans table. */
#pricing .gl-ppc-fitcard {
	margin: 28px 0 24px;
	text-align: left;
}

#pricing .gl-ppc-fitcard .gl-mth__t {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.gl-ppc-cost__tile-title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--gl-blue);
}

.gl-ppc-cost__tile-text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--gl-gray-700);
}

.gl-ppc-cost__example {
	margin: 24px 0 0;
	padding: 14px 18px;
	border-left: 4px solid #d22528;
	border-radius: 0 10px 10px 0;
	background: #f7f9fc;
	font-family: Poppins, Verdana, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: var(--gl-text);
}

.gl-ppc-cost__example strong {
	font-weight: 700;
}

/* Rows behind the toggle; the toggle sticks to the wrapper's left edge while a phone scrolls the table. */
.gl-ppc-cost__table.is-collapsed .gl-ppc-cost__row--more {
	display: none;
}

.gl-ppc-cost__table .gl-ppc-cost__row--toggle > td {
	padding: 14px 18px;
	text-align: center;
	background: #fff;
}

.gl-ppc-cost__toggle {
	position: sticky;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--gl-blue);
	font: 600 15px/1.3 'Montserrat Custom', Verdana, sans-serif;
	cursor: pointer;
	transition: color 0.18s;
}

.gl-ppc-cost__toggle::before,
.gl-ppc-cost__toggle::after {
	content: "";
	width: 56px;
	border-top: 1px dashed currentColor;
	opacity: 0.5;
}

.gl-ppc-cost__toggle::before {
	margin-right: 6px;
}

.gl-ppc-cost__toggle::after {
	margin-left: 6px;
}

.gl-ppc-cost__toggle:hover,
.gl-ppc-cost__toggle:focus-visible {
	color: var(--gl-red);
}

/* "Included in every plan": the last row, its heading over a three-column checklist across the whole table.
   On phones the box sticks to the scroll wrapper's width, one column, so nothing hides off to the side. */
.gl-ppc-cost__table .gl-ppc-cost__row--incl > td {
	background: #eef4fa;
	border-top: 1px solid #d6e2ee;
}

.gl-ppc-cost__incl-h {
	margin: 0 0 12px;
	font-weight: 600;
}

.gl-ppc-cost__incl {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gl-ppc-cost__incl li {
	position: relative;
	padding-left: 24px;
	font-size: 14px;
	line-height: 1.45;
}

.gl-ppc-cost__incl li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #15803d;
	font-weight: 700;
}

/* The small examples table under the terms. */
.gl-ppc-ex__wrap {
	width: 100%;
	max-width: 900px;
	margin: 40px auto 0;
}

.gl-ppc-ex__h {
	margin: 0 0 14px;
	text-align: center;
	font-size: 20px;
}

.gl-ppc-ex__scroll {
	width: 100%;
	overflow-x: auto;
}

.gl-ppc-ex {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.45;
}

.gl-ppc-ex thead th,
.gl-ppc-ex thead td {
	padding: 8px 12px;
	border-bottom: 2px solid var(--gl-blue);
	text-align: right;
	font-weight: 600;
	color: var(--gl-blue);
	white-space: nowrap;
}

.gl-ppc-ex td,
.gl-ppc-ex tbody th {
	padding: 12px 16px;
	border-bottom: 1px solid var(--gl-gray-200);
}

.gl-ppc-ex td {
	text-align: right;
	white-space: nowrap;
}

.gl-ppc-ex tbody th {
	min-width: 150px;
	text-align: left;
	font-weight: 600;
}

.gl-ppc-ex tbody th span {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--gl-gray-500);
}

.gl-ppc-ex__note {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
	line-height: 1.5;
	color: var(--gl-gray-500);
}

@media (min-width: 768px) {
	.gl-ppc-cost__tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.gl-ppc-cost__tiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.gl-ppc-cost__table th,
	.gl-ppc-cost__table td {
		padding: 12px 14px;
	}

	.gl-ppc-cost__offer {
		left: 14px;
		max-width: calc(100cqi - 28px);
	}

	.gl-ppc-cost__table .gl-ppc-cost__row--toggle > td {
		text-align: left;
	}

	.gl-ppc-cost__incl-box {
		position: sticky;
		left: 14px;
		max-width: calc(100cqi - 28px);
	}

	.gl-ppc-cost__incl {
		grid-template-columns: 1fr;
	}

	.gl-ppc-cost__toggle {
		left: 14px;
	}

	.gl-ppc-cost__toggle::before,
	.gl-ppc-cost__toggle::after {
		width: 28px;
	}

	.gl-ppc-cost__actions {
		width: 100%;
		justify-content: center;
	}

	.gl-ppc-cost__btn {
		width: 100%;
	}

	.gl-ppc-cost__promo-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.gl-ppc-cost__promo-photo {
		width: 100%;
		max-width: 360px;
	}

	.gl-ppc-cost__promo-btn {
		width: 100%;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.gl-ppc-cost__promo-photo {
		width: 300px;
	}
}
