/**
 * Hosted Shipper Program styles.
 *
 * Contents:
 * 1.0 Base and typography
 * 2.0 Buttons and hero
 * 3.0 Shared sections and program layouts
 * 4.0 Experience cards
 * 5.0 Supporting content
 * 6.0 Qualifications and discounted passes
 * 7.0 Benefits and imagery
 * 8.0 Interactive cards and dialogs
 * 9.0 Theme integration
 * 10.0 Responsive styles and reduced motion
 */

.hosted-shipper-page {
	/**
	 * 1.0 Base and typography.
	 */

	width: 100%;
	max-width: none;
	margin: 0 auto;

	/* Reserve space for the theme’s fixed navigation. */
	padding-top: var(--hosted-shipper-header-height, 108px);
	background: var(--white);
	color: var(--color-indigo);
	font-size: 17px;
	line-height: 1.55;

	h1,
	h2,
	h3,
	h4 {
		margin: 0;
		font-family: var(--font-plus-jakarta-sans);
		line-height: 1.15;
		text-wrap: balance;
	}

	p {
		margin: 0;
	}

	.wrap {
		max-width: 1180px;
		margin: 0 auto;
		padding-inline: 24px;
	}


	/**
	 * 2.0 Buttons and hero.
	 */

	.btn {
		display: inline-block;
		padding: 12px 22px;
		border-radius: 99px;
		background: var(--color-blue);
		color: var(--white);
		font-weight: 700;
		letter-spacing: 0.1em;
		text-transform: uppercase;
		font-size: 13px;
		text-decoration: none;
		font-family: var(--font-helvetica-neue);

		&.sq {
			border-radius: 4px;
			padding: 12px 24px;
		}

		&.ghost {
			border: 2px solid var(--color-indigo);
			border-radius: 6px;
			background: transparent;
			color: var(--color-indigo);
			letter-spacing: 0.02em;
			text-transform: none;
			font-size: 17px;
		}
	}

	.hero {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.hero-img {
		min-height: 260px;
		background-size: cover;
		background-repeat: no-repeat;
		background-position: center;
		background-color: var(--color-black);
	}

	.hero-copy {
		display: flex;
		flex-direction: column;
		gap: 14px;
		justify-content: center;
		padding: 34px 44px;

		h1 {
			color: var(--color-blue);
			font-size: clamp(30px, 3.1vw, 42px);
			font-weight: 800;
			letter-spacing: -0.01em;
		}

		.sub {
			max-width: 36ch;
			color: #0a0a14;
			font-family: var(--font-plus-jakarta-sans);
			font-weight: 700;
			font-size: clamp(17px, 1.3vw, 19px);
			line-height: 1.35;
		}

		ul {
			display: flex;
			flex-direction: column;
			gap: 6px;
			margin: 0;
			padding-left: 22px;
		}

		li b {
			font-weight: 600;
		}
	}

	.scale {
		color: var(--color-muted);
		font-size: 14px;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		font-weight: 600;
	}

	.cta-row {
		display: flex;
		flex-wrap: wrap;
		gap: 14px 20px;
		align-items: center;
		margin-top: 6px;
	}

	.textlink {
		color: var(--color-blue);
		font-weight: 600;
		text-decoration: underline;
		text-underline-offset: 3px;
	}


	/**
	 * 3.0 Shared sections and program layouts.
	 */

	.band {
		padding-block: 72px;
	}

	.dark {
		background: var(--color-indigo);
		color: var(--white);
	}

	.ice {
		background: var(--color-ice);
	}

	.band h2 {
		font-size: clamp(30px, 3.6vw, 48px);
		font-weight: 800;
	}

	.dark h2 {
		color: var(--white);
	}

	.center {
		text-align: center;
	}

	.lede {
		max-width: 62ch;
		font-size: 18px;
	}

	.steps {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 28px;
		margin-top: 44px;
		counter-reset: s;
	}

	.step {
		border-top: 2px solid rgba(255, 255, 255, 0.25);
		padding-top: 18px;

		.n {
			display: grid;
			place-items: center;
			width: 40px;
			height: 40px;
			border-radius: 50%;
			margin-bottom: 14px;
			background: var(--color-blue);
			font-family: var(--font-plus-jakarta-sans);
			font-weight: 800;
		}

		h3 {
			margin-bottom: 6px;
			font-size: 21px;
		}

		p {
			color: var(--color-lavender);
			font-size: 16px;
		}
	}

	.aside {
		margin-top: 36px;
		color: var(--color-lavender);
		font-size: 16px;
		text-align: center;

		b {
			color: var(--white);
		}
	}

	.lightsteps .step {
		border-top-color: var(--color-border-light);

		.n {
			color: var(--white);
		}
	}

	.lightsteps .step p,
	.lightsteps .aside {
		color: var(--color-muted);
	}

	.lightsteps .aside b {
		color: var(--color-indigo);
	}

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

	.path {
		display: flex;
		flex-direction: column;
		gap: 12px;
		border: 1.5px solid var(--color-border-light);
		border-radius: 14px;
		padding: 26px 24px;
		background: var(--white);

		&.lead {
			border-color: var(--color-blue);
			box-shadow: 0 10px 30px -18px rgba(51, 51, 255, 0.6);
		}

		h3 {
			font-size: 22px;
		}
	}

	.money {
		color: var(--color-blue);
		font-family: var(--font-plus-jakarta-sans);
		font-weight: 800;
		font-size: 30px;
		line-height: 1;

		small {
			display: block;
			margin-top: 6px;
			color: var(--color-muted);
			font-size: 14px;
			font-weight: 600;
			letter-spacing: 0.02em;
		}
	}

	.time {
		display: flex;
		gap: 8px;
		align-items: baseline;
		border-top: 1px solid var(--color-border-light);
		padding-top: 12px;
		font-size: 15px;

		span {
			min-width: 70px;
			color: var(--color-muted);
			font-size: 12px;
			text-transform: uppercase;
			letter-spacing: 0.08em;
			font-weight: 700;
		}
	}

	.path p {
		font-size: 16px;
	}


	/**
	 * 4.0 Experience cards.
	 */

	.cards {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
		margin-top: 40px;

		> .card {
			flex: 0 1 calc((100% - 72px) / 4);
			min-width: 0;
		}
	}

	.card {
		overflow: hidden;
		display: flex;
		flex-direction: column;
		border: 2px solid var(--white);
		border-radius: 12px;

		img {
			display: block;
			width: 100%;
			aspect-ratio: 4 / 3;
			object-fit: cover;
		}

		div {
			padding: 18px 18px 22px;
			text-align: center;
		}

		h3 {
			margin-bottom: 8px;
			font-size: 21px;
		}

		p {
			color: #e4e0f4;
			font-size: 16px;
		}
	}


	/**
	 * 5.0 Supporting content.
	 */

	.inc-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
		gap: 14px;
		margin-top: 36px;

		div {
			border: 1.5px solid rgba(255, 255, 255, 0.35);
			border-radius: 10px;
			padding: 18px 20px;
			font-size: 17px;
			font-weight: 500;
		}
	}

	.q h2 {
		color: var(--color-blue);
	}

	.qcols {
		display: grid;
		grid-template-columns: 1.3fr 1fr 1fr;
		gap: 28px;
		margin-top: 34px;

		h4 {
			margin-bottom: 10px;
			color: var(--color-muted);
			font-size: 13px;
			text-transform: uppercase;
			letter-spacing: 0.09em;
			font-family: var(--font-helvetica-neue);
		}

		ul {
			display: flex;
			flex-direction: column;
			gap: 4px;
			margin: 0;
			padding-left: 18px;
			font-size: 16px;
		}
	}

	.fine {
		margin-top: 18px;
		max-width: 90ch;
		color: var(--color-muted);
		font-size: 13px;
		font-style: italic;
	}

	.disc {
		display: grid;
		grid-template-columns: 1.4fr auto;
		gap: 28px;
		align-items: center;

		h2 {
			font-size: clamp(26px, 2.6vw, 34px);
		}
	}

	.team {
		padding-block: 48px;
		background: var(--color-lavender-light);

		.wrap {
			display: flex;
			flex-wrap: wrap;
			gap: 16px 40px;
			align-items: center;
			justify-content: space-between;
		}

		h2 {
			font-size: 28px;
		}
	}

	.faq details {
		border-bottom: 1px solid var(--color-border-light);
		padding-block: 16px;
	}

	.faq summary {
		font-family: var(--font-plus-jakarta-sans);
		font-weight: 700;
		font-size: 19px;
		cursor: pointer;
	}

	.faq details p {
		margin-top: 8px;
		color: var(--color-muted);
	}

	.faq .tbd {
		padding: 2px 8px;
		border-radius: 4px;
		background: var(--color-lavender-light);
	}

	.qbar {
		padding: 14px;
		background: var(--color-indigo);
		color: var(--white);
		text-align: center;
		font-size: 15px;
		font-weight: 600;

		a {
			color: #c58bff;
		}
	}

	.optlabel {
		margin-top: 56px;
		font-family: var(--font-plus-jakarta-sans);
		font-weight: 800;
		font-size: clamp(22px, 2.2vw, 28px);
		text-align: center;
	}

	.steps .step p .sub {
		display: block;
		margin-top: 8px;
		font-size: 15px;
	}

	.faq details[open] summary {
		color: var(--color-blue);
	}

	.hosted {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
		margin-top: 36px;
	}

	.hcard {
		display: flex;
		flex-direction: column;
		gap: 10px;
		border: 1.5px solid var(--color-border-light);
		border-radius: 14px;
		padding: 26px 24px;
		background: var(--white);

		h3 {
			font-size: 22px;
		}

		p {
			flex: 1;
			color: var(--color-muted);
			font-size: 16px;
		}

		.amt {
			border-top: 1px solid var(--color-border-light);
			padding-top: 12px;
			color: var(--color-blue);
			font-family: var(--font-plus-jakarta-sans);
			font-weight: 800;
			font-size: 26px;
			line-height: 1.1;

			small {
				display: block;
				margin-top: 4px;
				color: var(--color-muted);
				font-size: 13px;
				font-weight: 600;
				letter-spacing: 0.02em;
			}
		}
	}

	.qp {
		display: flex;
		flex-direction: column;
		gap: 18px;
		margin-top: 34px;
		max-width: 88ch;

		p {
			font-size: 18px;
		}
	}


	/**
	 * 6.0 Qualifications and discounted passes.
	 */

	.ni {
		padding-block: 60px;
		background: var(--white);

		.wrap {
			display: grid;
			grid-template-columns: 1fr 1fr auto;
			gap: 36px;
			align-items: start;
		}

		h2 {
			grid-column: 1 / -1;
			font-size: 22px;
			font-weight: 700;
			font-family: var(--font-helvetica-neue);
		}
	}

	.ni p,
	.ni li {
		font-size: 16px;
	}

	.ni .lab {
		margin-bottom: 6px;
		font-style: italic;
	}

	.ni ul {
		margin: 0;
		padding-left: 20px;
	}

	.qual {
		background: linear-gradient(
			140deg,
			var(--color-black) 0%,
			var(--color-indigo) 60%,
			#2a1270 100%
		);
		color: var(--white);

		h2 {
			color: var(--white);
		}

		.lede {
			margin-top: 16px;
			max-width: none;
			color: #e2ddf7;
			font-size: 18px;
			text-wrap: balance;
		}
	}

	.qcard {
		display: flex;
		flex-direction: column;
		gap: 22px;
		border-radius: 18px;
		padding: 34px 36px;
		margin-top: 30px;
		background: var(--white);
		color: var(--color-indigo);
	}

	.qrow {
		display: grid;
		grid-template-columns: 34px 1fr;
		gap: 16px;
		align-items: start;
	}

	.tick {
		display: grid;
		place-items: center;
		width: 26px;
		height: 26px;
		border-radius: 50%;
		margin-top: 2px;
		background: var(--color-blue);
		color: var(--white);
		font-size: 15px;
		font-weight: 700;
		font-family: var(--font-plus-jakarta-sans);
	}

	.qrow h4 {
		margin: 0 0 6px;
		font-size: 19px;
	}

	.qrow p {
		color: var(--color-muted);
		font-size: 16px;
	}

	.qfoot {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 22px;
		border-top: 1px solid var(--color-border-light);
		padding-top: 20px;

		b {
			display: block;
			margin-bottom: 4px;
			font-family: var(--font-plus-jakarta-sans);
		}

		p {
			color: var(--color-muted);
			font-size: 15px;
		}
	}

	.qfine {
		margin-top: 22px;
		color: #c9c3e4;
		font-size: 12.5px;
		font-style: italic;
	}


	/**
	 * 7.0 Benefits and imagery.
	 */

	.btiles {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;

		div {
			border-radius: 10px;
			padding: 12px 14px;
			background: #f1f0ff;
		}

		b {
			display: block;
			color: var(--color-blue);
			font-family: var(--font-plus-jakarta-sans);
			font-weight: 800;
			font-size: 15.5px;
			line-height: 1.25;
		}

		span {
			display: block;
			margin-top: 4px;
			color: var(--color-muted);
			font-size: 13.5px;
			line-height: 1.4;
		}
	}

	.lounge-img {
		width: 100%;
		background-image: url("https://manife.st/wp-content/uploads/2026/05/IMG_6590.jpeg");
		background-size: 190%;
		background-position: 8% 70%;
		background-repeat: no-repeat;
	}

	.cardbtn .lounge-img {
		aspect-ratio: 4 / 3;
	}

	.dlg .lounge-img {
		aspect-ratio: 16 / 9;
	}


	/**
	 * 8.0 Interactive cards and dialogs.
	 */

	.cardbtn {
		all: unset;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		box-sizing: border-box;
		border: 2px solid var(--white);
		border-radius: 12px;
		cursor: pointer;
		transition:
			transform 0.15s ease,
			box-shadow 0.15s ease;

		&:hover {
			transform: translateY(-3px);
			box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
		}

		&:focus-visible {
			outline: 3px solid #8c8cff;
			outline-offset: 3px;
		}

		img {
			display: block;
			width: 100%;
			aspect-ratio: 4 / 3;
			object-fit: cover;
		}

		> div {
			padding: 18px 18px 24px;
			color: var(--white);
			text-align: center;
		}

		h3 {
			margin-bottom: 18px;
			font-size: 21px;
		}
	}

	.learn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 9px 18px;
		border-radius: 99px;
		background: var(--color-blue);
		color: var(--white);
		font-weight: 700;
		font-size: 13px;
		letter-spacing: 0.09em;
		text-transform: uppercase;

		b {
			font-size: 18px;
			line-height: 1;
			transform: translateY(-1px);
		}
	}

	.cardbtn:hover .learn {
		background: #4a4aff;
	}

	.dlg {
		overflow: auto;
		border: 0;
		padding: 0;
		border-radius: 16px;
		width: min(620px, calc(100vw - 32px));
		max-height: calc(100vh - 48px);
		color: var(--color-indigo);
		background: var(--white);

		&::backdrop {
			background: rgba(10, 6, 30, 0.72);
		}

		img {
			display: block;
			width: 100%;
			aspect-ratio: 16 / 9;
			object-fit: cover;
		}
	}

	.dlg-body {
		display: flex;
		flex-direction: column;
		gap: 12px;
		padding: 26px 30px 30px;

		h3 {
			color: var(--color-blue);
			font-size: 28px;
			font-weight: 800;
		}

		p {
			font-size: 17px;
			line-height: 1.6;
		}

		.btn {
			align-self: flex-start;
			margin-top: 8px;
		}
	}

	.reimb {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 16px;
		row-gap: 2px;
		align-items: center;
		border-radius: 12px;
		padding: 14px 18px;
		margin-top: 4px;
		background: #eef0ff;

		.rl {
			grid-column: 1 / -1;
			color: var(--color-muted);
			font-size: 12px;
			font-weight: 700;
			letter-spacing: 0.1em;
			text-transform: uppercase;
		}

		.ra {
			color: var(--color-blue);
			font-family: var(--font-plus-jakarta-sans);
			font-weight: 800;
			font-size: 32px;
			line-height: 1.1;
		}

		.rt {
			font-size: 15px;
			line-height: 1.45;
		}
	}

	.dlg .x {
		position: absolute;
		top: 12px;
		right: 12px;
		width: 38px;
		height: 38px;
		border-radius: 50%;
		border: 0;
		background: rgba(255, 255, 255, 0.92);
		color: var(--color-indigo);
		font-size: 24px;
		line-height: 1;
		cursor: pointer;

		&:focus-visible {
			outline: 3px solid var(--color-blue);
		}
	}


	/**
	 * 9.0 Theme integration.
	 */

	.clickline {
		margin-top: 14px;
		color: #cfc9ea;
		font-size: 17px;
	}

	.center-sub {
		margin: 10px auto 0;
		max-width: 60ch;
		color: var(--color-muted);
		text-align: center;
	}

	h1,
	h2,
	h3,
	h4 {
		text-transform: none;
		letter-spacing: normal;
	}

	.wrap {
		width: 100%;
	}

	.hero {
		overflow: visible;
		padding: 0;
		min-height: 0;
		margin: 0;
	}

	.hero-copy .sub {
		margin-bottom: 0;
	}

	.btn {
		border: 0;
		line-height: 1.55;
		white-space: normal;

		&.ghost {
			border: 2px solid var(--color-indigo);
		}
	}

	.cardbtn {
		width: auto;
		min-width: 0;
		background: transparent;
	}

	.lounge-img {
		flex-shrink: 0;
		padding: 0;
	}

	dialog:not([open]) {
		display: none;
	}

	dialog[open] {
		position: fixed;
		inset: 0;
		margin: auto;
		box-shadow: 0 20px 80px #0005;
	}

	.qbar {
		margin: 0;
	}

	p:empty {
		display: none;
	}

	.hero-img {
		min-height: 260px;
	}

	.dlg .btn {
		color: var(--white);
	}

	.dlg .x {
		display: grid;
		place-items: center;
		z-index: 1;
		padding: 0;
	}

	/* Match the reference heading weights instead of theme defaults. */
	.qrow h4,
	.cardbtn h3 {
		font-weight: 700;
	}


	/**
	 * 10.0 Responsive styles and reduced motion.
	 */

	@media (max-width: 960px) {
		.cards > .card {
			flex-basis: calc((100% - 24px) / 2);
		}
	}

	@media (max-width: 860px) {
		.hero {
			grid-template-columns: 1fr;
		}

		.hero-copy {
			padding: 32px 20px;
		}

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

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

		.qcols {
			grid-template-columns: 1fr;
		}

		.hosted {
			grid-template-columns: 1fr;
		}
	}

	@media (max-width: 760px) {
		.disc {
			grid-template-columns: 1fr;
		}

		.ni .wrap {
			grid-template-columns: 1fr;
		}

		.qfoot {
			grid-template-columns: 1fr;
		}

		.qcard {
			padding: 26px 22px;
		}
	}

	@media (max-width: 520px) {
		.btiles {
			grid-template-columns: 1fr;
		}
	}

	@media (max-width: 480px) {
		.steps {
			grid-template-columns: 1fr;
		}

		.cards > .card {
			flex-basis: 100%;
		}

		.wrap {
			padding-inline: 20px;
		}

		.band {
			padding-block: 48px;
		}

		.dlg-body {
			padding: 22px;
		}

		.reimb {
			grid-template-columns: 1fr;
			gap: 8px;
		}

		.hero-copy {
			min-width: 0;
		}
	}

	@media (prefers-reduced-motion: reduce) {
		.cardbtn {
			transition: none;

			&:hover {
				transform: none;
			}
		}
	}
}
