/* ================================================================
 * Pricing page (service.php)
 * Layout-only rules — card surface/hover comes from .mt-card in main.css
 * ================================================================ */

.service-root,
.service-root * {
	box-sizing: border-box;
}

.service-root {
	color: var(--mt-ink);
	font-family: var(--mt-font-sans);
	line-height: 1.7;
	margin-bottom: 0;
}

/* Let the last section band sit flush against the free-trial CTA */
.service-root .service-section:last-child {
	margin-bottom: 0;
}

body.service-page #container {
	padding-bottom: 0;
}

body.service-page .free-trial-cta--before-site-footer {
	margin-top: 0;
}

.service-root p {
	margin: 0;
}

/* ---------- Shared buttons ---------- */

.service-btn,
#container .service-btn,
#container .service-btn:link,
#container .service-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 24px;
	border-radius: var(--mt-radius-md);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.service-btn--primary,
#container .service-btn--primary,
#container .service-btn--primary:link,
#container .service-btn--primary:visited {
	background: var(--mt-navy-800);
	border: 1px solid var(--mt-navy-800);
	color: #fff;
}

.service-btn--primary:hover,
#container .service-btn--primary:hover {
	background: #2d3f94;
	border-color: #2d3f94;
	color: #fff;
	text-decoration: none;
}

.service-btn--secondary,
#container .service-btn--secondary,
#container .service-btn--secondary:link,
#container .service-btn--secondary:visited {
	background: var(--mt-paper);
	border: 1px solid rgba(3, 27, 104, 0.35);
	color: var(--mt-navy-800);
}

.service-btn--secondary:hover,
#container .service-btn--secondary:hover {
	background: var(--mt-canvas);
	border-color: var(--mt-navy-800);
	color: var(--mt-navy-800);
	text-decoration: none;
}

.service-btn--sm,
#container .service-btn--sm,
#container .service-btn--sm:link,
#container .service-btn--sm:visited {
	min-height: 34px;
	padding: 6px 16px;
	font-size: 12.5px;
}

.service-btn--xs,
#container .service-btn--xs,
#container .service-btn--xs:link,
#container .service-btn--xs:visited {
	min-height: 26px;
	padding: 3px 11px;
	border-radius: var(--mt-radius-sm);
	font-size: 11.5px;
	font-weight: 600;
}

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

.service-hero {
	margin: 8px 0 40px;
}

.service-title,
#container .service-title {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: clamp(28px, 3.8vw, 44px);
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: 0;
	text-align: center;
}

.service-title__break {
	display: none;
}

.service-root .service-lead {
	margin: 14px 0 0;
	color: var(--mt-muted);
	font-size: 16px;
	line-height: 1.8;
	text-align: center;
}

/* ---------- Course-type paths ---------- */

.service-paths {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 60px;
}

.service-path {
	display: flex;
	flex-direction: column;
	padding: 24px;
}

.service-root .service-path__eyebrow {
	margin: 0 0 6px;
	color: var(--mt-purple-700);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
}

.service-path__title,
#container .service-path__title {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.service-root .service-path__desc {
	margin: 8px 0 14px;
	color: var(--mt-muted);
	font-size: 13px;
	line-height: 1.7;
}

.service-path__list {
	margin: auto 0 0;
	padding: 0;
	list-style: none;
}

.service-path__list li {
	margin: 0;
	list-style: none;
}

.service-path__list li + li {
	border-top: 1px solid var(--mt-line);
}

.service-path__list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 11px 4px;
	color: inherit;
	text-decoration: none;
}

.service-path__name {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	min-width: 0;
}

.service-path__name b {
	color: var(--mt-navy-950);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.5;
}

.service-path__name span {
	color: var(--mt-muted);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
}

.service-path__list a::after {
	content: "→";
	flex: 0 0 auto;
	color: var(--mt-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.service-path__list a:hover .service-path__name b {
	color: var(--mt-navy-800);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.service-path__list a:hover::after {
	color: var(--mt-navy-800);
}

.service-path__cta {
	align-self: flex-end;
	margin-top: auto;
	padding-top: 14px;
	color: var(--mt-muted);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.5;
}

.service-path__cta::after {
	content: " →";
}

a.service-path:hover .service-path__cta {
	color: var(--mt-navy-800);
}

/* ---------- How points work ---------- */

.service-how {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.service-how__step {
	margin: 0;
	padding: 20px;
	list-style: none;
}

.service-how__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 9px;
}

.service-how__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 30px;
	height: 30px;
	border-radius: var(--mt-radius-md);
	background: var(--mt-purple-100);
	color: var(--mt-navy-800);
	font-size: 15px;
	font-weight: 800;
}

.service-how__h,
#container .service-how__h {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
}

.service-root .service-how__b {
	color: var(--mt-muted);
	font-size: 13px;
	line-height: 1.7;
}

.service-how__b a {
	color: var(--mt-navy-700);
	font-weight: 600;
}

/* ---------- Plan tabs (point / monthly) ---------- */

.service-tabs {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.service-tab,
#container .service-tab {
	flex: 1 1 0;
	padding: 12px 18px;
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-md);
	background: var(--mt-paper);
	color: var(--mt-navy-800);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.service-tab small {
	display: block;
	margin-top: 2px;
	color: var(--mt-muted);
	font-size: 11.5px;
	font-weight: 600;
}

.service-tab:hover {
	border-color: var(--mt-navy-800);
}

.service-tab[aria-selected="true"],
#container .service-tab[aria-selected="true"] {
	background: var(--mt-navy-800);
	border-color: var(--mt-navy-800);
	color: #fff;
}

.service-tab[aria-selected="true"] small {
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Plan subsections (point / monthly) ---------- */

.service-plan {
	margin-top: 24px;
	scroll-margin-top: 88px;
}

.service-plan[hidden] {
	display: none;
}

.service-root .service-plan__for {
	margin: 0 0 12px;
	color: var(--mt-muted);
	font-size: 14px;
	line-height: 1.8;
}

.service-plan__for strong {
	color: var(--mt-navy-950);
}

.service-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 28px;
	margin: 0 0 20px;
	padding: 14px 18px;
	list-style: none;
	background: var(--mt-canvas);
	border-radius: var(--mt-radius-md);
}

.service-facts li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	margin: 0;
	list-style: none;
	font-size: 13px;
	line-height: 1.7;
}

.service-facts li span {
	color: var(--mt-muted);
	flex: none;
}

.service-facts li b {
	color: var(--mt-ink);
	font-weight: 700;
	text-align: right;
}

.service-plan .service-plans {
	margin-top: 18px;
}

.service-root .service-plan__note {
	margin: 8px 0 0;
	color: var(--mt-muted);
	font-size: 12.5px;
	line-height: 1.8;
}

.service-root .service-addon {
	margin: 14px 0 0;
	padding: 12px 16px;
	border-radius: var(--mt-radius-md);
	background: var(--mt-canvas);
	color: var(--mt-muted);
	font-size: 13px;
	line-height: 1.8;
}

.service-addon strong {
	color: var(--mt-ink);
}

.service-addon__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.service-addon__links li {
	margin: 0;
	list-style: none;
}

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

.service-section {
	margin: 0 0 60px;
	scroll-margin-top: 88px;
}

.service-section--how {
	margin-bottom: 24px;
}

.service-section--paper-band {
	position: relative;
	z-index: 0;
	padding: 56px 0;
}

.service-section--paper-band::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 50%;
	z-index: -1;
	width: 100vw;
	background: var(--mt-paper);
	transform: translateX(-50%);
}

.service-section__head {
	margin-bottom: 22px;
}

.service-section__title,
#container .service-section__title {
	margin: 0;
	color: var(--mt-navy-950);
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.service-section__lead {
	margin: 10px 0 0;
	color: var(--mt-muted);
	font-size: 16px;
	line-height: 1.8;
}

.service-section__lead a {
	color: var(--mt-navy-700);
	font-weight: 600;
}

/* ---------- Price cards ---------- */

.service-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-plans--5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-plans--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-plans li {
	margin: 0;
	list-style: none;
	min-width: 0;
}

.price-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	height: 100%;
	padding: 20px 18px;
	text-align: center;
}

.price-card__label {
	color: var(--mt-navy-950);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}

.price-card__label b {
	font-size: 22px;
}

.service-root .price-card__price {
	margin: 10px 0 0;
	color: var(--mt-navy-950);
	font-weight: 700;
	line-height: 1.2;
}

.price-card__price b {
	font-size: 26px;
}

.price-card__price span {
	color: var(--mt-muted);
	font-size: 12px;
	font-weight: 600;
}

.service-root .price-card__meta {
	margin: 8px 0 0;
	padding-bottom: 16px;
	color: var(--mt-muted);
	font-size: 12px;
	line-height: 1.6;
}

.price-card .service-btn {
	margin-top: auto;
	width: 100%;
}

.price-card--compact {
	padding: 16px;
}

.price-card--compact .price-card__price b {
	font-size: 22px;
}

/* ---------- Purchase footnote under card grids ---------- */

.service-root .service-purchase-note {
	margin: 14px 0 0;
	color: var(--mt-muted);
	font-size: 12.5px;
	line-height: 1.8;
}

.service-purchase-note a {
	color: var(--mt-navy-700);
	font-weight: 600;
}

/* ---------- Comparison table ---------- */

.service-table-wrap {
	overflow-x: auto;
}

.service-root table.service-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	background: var(--mt-paper);
	border: 1px solid var(--mt-line);
	border-radius: var(--mt-radius-md);
	font-size: 14px;
	line-height: 1.6;
}

.service-table th,
.service-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--mt-line);
	text-align: left;
	white-space: nowrap;
}

.service-table thead th {
	color: var(--mt-navy-950);
	font-size: 12.5px;
	font-weight: 700;
	background: var(--mt-canvas);
}

.service-table tbody tr:last-child th,
.service-table tbody tr:last-child td {
	border-bottom: 0;
}

.service-table tbody th {
	color: var(--mt-navy-950);
	font-weight: 700;
}

.service-table tbody th small {
	display: block;
	color: var(--mt-purple-700);
	font-size: 11px;
	font-weight: 700;
}

.service-table td.service-table__price {
	color: var(--mt-navy-950);
	font-weight: 700;
}

.service-table td .service-table__sub {
	color: var(--mt-muted);
	font-size: 11.5px;
	font-weight: 400;
}

.service-table--addon td,
.service-table--addon th {
	color: var(--mt-muted);
}

.service-table tbody th a {
	color: var(--mt-navy-950);
	text-decoration: none;
}

.service-table tbody th a:hover {
	color: var(--mt-navy-800);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.service-table td.service-table__buy {
	text-align: right;
}

/* ---------- Section CTA row ---------- */

.service-cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 20px;
}

/* ---------- Notes accordion ---------- */

.service-notes {
	margin-top: 20px;
	scroll-margin-top: 88px;
}

.service-notes summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 18px;
	color: var(--mt-navy-950);
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.service-notes summary::-webkit-details-marker {
	display: none;
}

.service-notes summary::after {
	content: "＋";
	flex: 0 0 auto;
	color: var(--mt-muted);
	font-size: 14px;
	font-weight: 700;
}

.service-notes[open] summary::after {
	content: "−";
}

.service-notes__body {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--mt-muted);
	font-size: 13.5px;
	line-height: 1.8;
	list-style: none;
}

.service-notes__body li {
	margin: 0 0 10px;
	padding-left: 16px;
	position: relative;
	list-style: none;
}

.service-notes__body li::before {
	content: "・";
	position: absolute;
	left: 0;
}

.service-notes__body a {
	color: var(--mt-navy-700);
	font-weight: 600;
}

/* ---------- Feature bullets (returnee / legal sections) ---------- */

.service-points {
	margin: 14px 0 20px;
	padding: 0;
	list-style: none;
}

.service-points li {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	color: var(--mt-ink);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.7;
}

.service-points li::before {
	content: "✓";
	margin-right: 8px;
	color: var(--mt-teal-600);
	font-weight: 700;
}

.service-points li small {
	display: block;
	margin-left: 22px;
	color: var(--mt-muted);
	font-size: 12px;
	font-weight: 400;
}

/* ---------- Payment section ---------- */

.service-payment-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-items: start;
}

.service-payment-card {
	padding: 22px;
}

.service-payment-card__title,
#container .service-payment-card__title {
	margin: 0 0 10px;
	color: var(--mt-navy-950);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0;
	scroll-margin-top: 88px;
}

.service-payment-card__body {
	color: var(--mt-muted);
	font-size: 13.5px;
	line-height: 1.8;
}

.service-payment-card__body p {
	margin: 0 0 10px;
}

.service-payment-card__body a {
	color: var(--mt-navy-700);
	font-weight: 600;
}

.service-payment-card__body strong {
	color: var(--mt-ink);
}

.service-root table.service-bank {
	width: 100%;
	margin: 12px 0;
	border-collapse: collapse;
	font-size: 13.5px;
	line-height: 1.6;
}

.service-bank th,
.service-bank td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--mt-line);
	text-align: left;
}

.service-bank tr:last-child th,
.service-bank tr:last-child td {
	border-bottom: 0;
}

.service-bank th {
	width: 92px;
	color: var(--mt-navy-950);
	font-weight: 700;
	white-space: nowrap;
}

.service-bank td {
	color: var(--mt-ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
	.service-plans,
	.service-plans--5 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.service-how {
		grid-template-columns: 1fr;
	}

	.service-payment-grid {
		grid-template-columns: 1fr;
	}
}

/* Careers table: collapse each row into a stacked card row instead of
   horizontal scrolling. The points column duplicates the lesson count,
   so it is hidden at this size. */
@media (max-width: 760px) {
	.service-table-wrap {
		overflow-x: visible;
	}

	.service-root table.service-table {
		display: block;
	}

	.service-table thead {
		display: none;
	}

	.service-table tbody {
		display: block;
	}

	.service-table tbody tr {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"name    name"
			"lessons buy"
			"price   buy";
		align-items: center;
		gap: 2px 14px;
		padding: 14px 16px;
		border-bottom: 1px solid var(--mt-line);
	}

	.service-table tbody tr:last-child {
		border-bottom: 0;
	}

	.service-table tbody th,
	.service-table tbody td {
		padding: 0;
		border-bottom: 0;
		white-space: normal;
	}

	.service-table tbody th {
		grid-area: name;
		margin-bottom: 4px;
	}

	.service-table tbody td:nth-of-type(1) {
		grid-area: lessons;
		color: var(--mt-muted);
		font-size: 12.5px;
	}

	.service-table tbody td:nth-of-type(2) {
		display: none;
	}

	.service-table td.service-table__price {
		grid-area: price;
		font-size: 15px;
	}

	.service-table td.service-table__buy {
		grid-area: buy;
	}
}

@media (max-width: 640px) {
	.service-title__break {
		display: inline;
	}

	.service-paths {
		grid-template-columns: 1fr;
	}

	.service-facts {
		grid-template-columns: 1fr;
	}

	.service-plans,
	.service-plans--5,
	.service-plans--2 {
		grid-template-columns: 1fr;
	}

	.service-section {
		margin-bottom: 44px;
	}
}
