/*
Theme Name: Tripsesim
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.16
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tripsesim
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* WordPress inserts margin-block-start: var(--wp--style--block-gap) between the
   template's top-level sections (header part, main, footer part) — a gap that
   exists even when no markup asks for it. Zero it so sections butt edge-to-edge
   and own their vertical rhythm via padding; this does not affect block gaps
   inside nested layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* Sticky footer. Short pages — an empty cart, a 404, an order confirmation —
   otherwise end mid-screen and expose a band of body background below the
   footer, which reads as a colour seam. Column flex keeps alignfull sections
   full width (align-items defaults to stretch) while pinning the footer down. */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > footer {
	margin-block-start: auto;
}

/* Kept after dropping wp-block-library's common.css (editor colors, unused
   gradients) and the image block's lightbox sheet. */
.wp-element-button {
	cursor: pointer;
}

:root .has-text-align-center {
	text-align: center;
}

:root .has-text-align-left {
	text-align: left;
}

:root .has-text-align-right {
	text-align: right;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
	word-break: normal !important;
}

.screen-reader-text:focus {
	background-color: #ddd;
	clip-path: none;
	color: #444;
	display: block;
	font-size: 1em;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

.wp-block-image img {
	box-sizing: border-box;
	height: auto;
	max-width: 100%;
}

/* ==========================================================================
   1. Base
   ========================================================================== */

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(p, li) {
	text-wrap: pretty;
}

:where(h1, h2, h3) {
	text-wrap: balance;
}

/* Aurora focus ring — visible on keyboard nav, never on mouse click. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--aurora);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ==========================================================================
   2. Eyebrow label — small uppercase kicker above headings
   ========================================================================== */

.tripsesim-eyebrow {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--aurora);
	margin-bottom: 0;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.tripsesim-header {
	position: sticky;
	top: 0;
	z-index: 100;
	overflow: visible;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	/* Solid fill only — any backdrop-filter (even on ::before) can still interact
	   badly with sticky + the navigation overlay in mobile WebKit. */
	background-color: color-mix(in srgb, var(--wp--preset--color--deep) 96%, transparent);
}

.tripsesim-logo a {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.tripsesim-nav-group {
	gap: var(--wp--preset--spacing--40);
}

.tripsesim-nav a {
	color: var(--wp--preset--color--sand);
	text-decoration: none;
	transition: color 0.18s ease;
}

.tripsesim-nav a:hover {
	color: var(--wp--preset--color--aurora);
	text-decoration: none;
}

/* Mobile menu — avoid sticky/transform clipping the close control.
   1) Drop sticky while the modal is open so fixed overlay uses the viewport.
   2) Kill the core fade animation (forwards transform traps descendants).
   3) Keep Close in normal flow (not absolute/fixed) so it cannot sit half
      under the header chrome. */
@media (max-width: 599px) {
	html.has-modal-open .tripsesim-header {
		position: relative;
		z-index: 100000;
	}

	.tripsesim-nav:has(.is-menu-open) .wp-block-navigation__responsive-container-open {
		visibility: hidden;
		pointer-events: none;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open {
		position: fixed !important;
		top: 0 !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		/* inset left/right already spans the viewport — width:100% + padding
		   overflowed and clipped the Close control on the right edge. */
		width: auto !important;
		max-width: 100%;
		height: auto !important;
		min-height: 0 !important;
		max-height: min(85dvh, 100%);
		box-sizing: border-box !important;
		overflow-x: visible;
		overflow-y: auto;
		animation: none !important;
		transform: none !important;
		/* Hard floor clears status bars; safe-area applies with viewport-fit=cover. */
		padding: max(3.25rem, calc(env(safe-area-inset-top, 0px) + 1rem)) max(1.25rem, env(safe-area-inset-right, 0px)) 1.35rem max(1.25rem, env(safe-area-inset-left, 0px)) !important;
		border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 14%, transparent);
		box-shadow: 0 18px 40px color-mix(in srgb, var(--wp--preset--color--midnight) 55%, transparent);
		z-index: 100000;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
		position: relative;
		display: flex;
		flex-direction: column;
		width: 100%;
		padding-top: 0;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding-top: 0 !important;
		width: 100%;
		max-width: none;
		margin: 0;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		width: 100%;
		gap: 0;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
		width: 100%;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 0.85rem 0.15rem;
		font-size: 1.125rem;
		font-weight: 600;
		letter-spacing: -0.02em;
		line-height: 1.35;
		border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 14%, transparent);
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
		border-bottom: 0;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
		position: static !important;
		top: auto !important;
		right: auto !important;
		left: auto !important;
		inset: auto !important;
		align-self: stretch;
		z-index: 2;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.4rem;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		min-width: 0;
		height: auto;
		min-height: 2.75rem;
		margin: 0 0 0.85rem !important;
		padding: 0.55rem 1rem;
		border-radius: 999px;
		color: var(--wp--preset--color--sand);
		background: color-mix(in srgb, var(--wp--preset--color--slate) 92%, transparent);
		border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 22%, transparent);
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::after {
		content: "Close";
		font-size: 0.9rem;
		font-weight: 600;
		letter-spacing: 0.01em;
		line-height: 1;
	}

	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover,
	.tripsesim-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
		color: var(--wp--preset--color--aurora);
		border-color: color-mix(in srgb, var(--wp--preset--color--aurora) 45%, transparent);
	}

	.tripsesim-nav .wp-block-navigation__responsive-container-close svg {
		fill: currentColor;
		display: block;
		width: 1.15rem;
		height: 1.15rem;
		flex-shrink: 0;
	}
}

/* Hamburger — enlarge hit box without shifting the bar. */
.tripsesim-nav .wp-block-navigation__responsive-container-open {
	padding: 0.65rem;
	margin: -0.65rem;
	color: var(--wp--preset--color--sand);
}

.tripsesim-nav .wp-block-navigation__responsive-container-open:hover,
.tripsesim-nav .wp-block-navigation__responsive-container-open:focus-visible {
	color: var(--wp--preset--color--aurora);
}

/* Mini-cart trigger: match the nav's quiet weight, not a loud button. */
.tripsesim-cart .wp-block-woocommerce-mini-cart__button {
	color: var(--wp--preset--color--sand);
	padding: 0;
}

.tripsesim-cart .wp-block-woocommerce-mini-cart__button:hover {
	color: var(--wp--preset--color--aurora);
}

/* Subtotal row in the drawer. The rest of this layout ships in mini-cart CSS;
   the label's flex-grow lived only in the checkout package sheet. */
.wc-block-components-totals-item__label {
	flex-grow: 1;
}

/* ==========================================================================
   4. Footer
   ========================================================================== */

.tripsesim-footer {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
}

.tripsesim-footer-head {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1rem;
}

.tripsesim-footer-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 0.6rem;
}

.tripsesim-footer-list a {
	color: var(--wp--preset--color--sand);
	text-decoration: none;
	transition: color 0.18s ease;
}

.tripsesim-footer-list a:hover {
	color: var(--wp--preset--color--aurora);
}

.tripsesim-footer-tagline {
	max-width: 34ch;
	line-height: 1.6;
}

.tripsesim-footer-base {
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
	gap: var(--wp--preset--spacing--30);
}

.tripsesim-footer-base p {
	margin: 0;
}

/* CusRev PhotoSwipe shell: hidden in cr-frontend.css; when that sheet is
   dropped the controls leak as white sprite boxes above the footer. */
.cr-pswp.pswp {
	display: none;
}

.cr-pswp.pswp.pswp--open {
	display: block;
}

/* === hero === */

/* Aurora glow bleeding from the top-right, echoing the brand's night sky. */
.tripsesim-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(90% 70% at 6% 108%, color-mix(in srgb, var(--wp--preset--color--slate) 70%, transparent) 0%, transparent 62%),
		var(--wp--preset--color--midnight);
}

/* Hero ambience.

   The two glows that used to be static background layers are now drifting
   pseudo-elements on deliberately mismatched periods (26s / 34s), so the loop
   never lines up and the field reads as slow weather rather than a repeating
   effect. Night sky + aurora is also the literal brand palette, so this is
   atmosphere rather than decoration.

   Critically this animates the BACKGROUND ONLY. The hero h1 is the LCP element;
   fading the text in would push LCP out to the end of the animation and undo
   the performance work. Only transform/opacity are animated, so it stays on the
   compositor and never triggers layout. */
.tripsesim-hero::before,
.tripsesim-hero::after {
	content: "";
	position: absolute;
	z-index: 0;
	pointer-events: none;
	will-change: transform, opacity;
}

.tripsesim-hero::before {
	top: -45%;
	right: -18%;
	width: 78%;
	aspect-ratio: 1;
	background: radial-gradient(closest-side,
		color-mix(in srgb, var(--wp--preset--color--aurora) 26%, transparent) 0%,
		transparent 72%);
	animation: tripsesim-drift-a 26s ease-in-out infinite;
}

/* Approach trace: a single point easing down the same descent arc as the logo
   mark, fading out at the touchdown line. One pass every 19s at low contrast --
   it should read as a glance out of the window, not as an object competing with
   the headline. */
.tripsesim-hero::after {
	top: 0;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--wp--preset--color--aurora);
	box-shadow: 0 0 14px 3px color-mix(in srgb, var(--wp--preset--color--aurora) 50%, transparent);
	offset-path: path("M 820 -30 C 730 190, 540 320, 240 392");
	/* Hidden by default and revealed only by the keyframes. animation-fill-mode
	   is `none`, so without this the dot would sit visible at the start of the
	   path whenever the animation is not running -- which is exactly what the
	   global reduced-motion rule does by zeroing the duration. */
	opacity: 0;
	animation: tripsesim-approach 19s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
	/* Ambient drift can simply stop; the approach trace has no meaning as a
	   static dot, so remove it outright rather than parking it mid-path. */
	.tripsesim-hero::after {
		display: none;
	}
}

@keyframes tripsesim-drift-a {
	0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
	50%      { transform: translate3d(-5%, 4%, 0) scale(1.16); opacity: 1; }
}

@keyframes tripsesim-approach {
	0%        { offset-distance: 0%; opacity: 0; }
	14%       { opacity: 0.5; }
	70%       { opacity: 0.5; }
	84%, 100% { offset-distance: 100%; opacity: 0; }
}

.tripsesim-hero-inner {
	position: relative;
	z-index: 1;
	max-width: 20ch;
}

.tripsesim-hero-title {
	margin-block: 1.25rem 0;
}

.tripsesim-hero-lede {
	max-width: 46ch;
	margin-block: 1.75rem 0;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 82%, transparent);
	line-height: 1.55;
}

.tripsesim-hero-actions {
	margin-block-start: 2.5rem;
}

.tripsesim-hero-note {
	margin-block-start: 1.25rem;
}

/* Primary button: aurora fill with a soft halo on hover. */
.tripsesim-btn-primary .wp-element-button {
	transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.tripsesim-btn-primary .wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--wp--preset--color--aurora) 60%, transparent);
}

/* Ghost button: outlined, quieter than primary. */
.tripsesim-btn-ghost .wp-element-button {
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 34%, transparent);
	transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tripsesim-btn-ghost .wp-element-button:hover {
	border-color: var(--wp--preset--color--aurora);
	color: var(--wp--preset--color--aurora);
	transform: translateY(-2px);
}
/* === trust === */

.tripsesim-trust {
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
}

.tripsesim-trust-cols {
	gap: var(--wp--preset--spacing--40);
}

/* Stats are data points, not section headings — they render as paragraphs so
   the document outline stays h1 > h2, and pick up display styling here. */
.tripsesim-stat-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(1.75rem, 3.2vw, 2.5rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--aurora);
	margin: 0 0 0.6rem;
	font-variant-numeric: tabular-nums;
}

.tripsesim-stat-label {
	margin: 0;
	max-width: 26ch;
	line-height: 1.5;
}
/* === section-head === */

.tripsesim-section-head h2 {
	margin-block: 1rem 0;
	max-width: 24ch;
}

.tripsesim-section-lede {
	max-width: 56ch;
	margin-block-start: 1.25rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 78%, transparent);
}

/* Dark-background sections flip the eyebrow to the deep aurora tone. */
.tripsesim-eyebrow-dark {
	color: var(--wp--preset--color--aurora-dim);
}
/* === plans === */

/* Plan cards: bordered slate panels that lift and glow aurora on hover. */
.tripsesim-plan-grid .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	padding: 0;
	margin: 0;
}

.tripsesim-plan-grid .wc-block-product {
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--wp--preset--color--slate) 46%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
	margin: 0;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tripsesim-plan-grid .wc-block-product:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--wp--preset--color--aurora) 45%, transparent);
	box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--wp--preset--color--aurora) 40%, transparent);
}

/* Plan name uses core/post-title: woocommerce/product-title only renders
   client-side inside a product-collection and stays empty on the frontend. */
.tripsesim-plan-grid .tripsesim-plan-title {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.2;
	color: var(--wp--preset--color--white);
	margin: 0 0 0.85rem;
	/* Longer destination names ('Singapore & Malaysia eSIM — Standard') wrap to
	   two lines. Reserve the second line on every card so the prices below line
	   up across a row instead of stepping up and down. */
	min-height: 2.4em;
}

.tripsesim-plan-grid .tripsesim-plan-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.18s ease;
}

.tripsesim-plan-grid .tripsesim-plan-title a:hover {
	color: var(--wp--preset--color--aurora);
}

/* Summary absorbs the slack so prices and buttons share a baseline
   across cards of differing copy length. */
.tripsesim-plan-grid .wc-block-components-product-summary {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 74%, transparent);
	line-height: 1.55;
	margin: 0 0 1.5rem;
	flex-grow: 1;
}

.tripsesim-plan-grid .wp-block-woocommerce-product-price {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	color: var(--wp--preset--color--aurora);
	margin: 0 0 1.5rem;
}

/* Equal-height rows. WooCommerce sets content-box on the card, so padding
   would add to a 100% height and overflow the row — border-box keeps the
   price and button baselines aligned across cards. */
.tripsesim-plan-grid .wc-block-product-template {
	align-items: stretch;
}

.tripsesim-plan-grid .wc-block-product {
	box-sizing: border-box;
	height: 100%;
}

/* Reserve two lines for the summary so single-line copy does not pull the
   price and button up out of line with neighbouring cards. */
.tripsesim-plan-grid .wc-block-components-product-summary {
	min-height: 3.1em;
}

.tripsesim-plan-grid .tripsesim-plan-btn,
.tripsesim-plan-grid .tripsesim-plan-btn .wp-element-button {
	box-sizing: border-box;
}

/* Add-to-cart sits flush at the card's bottom edge. */
.tripsesim-plan-grid .tripsesim-plan-btn {
	margin: 0;
}

/* Cards stretch to equal height; pinning the button to the bottom keeps every
   call to action on one baseline regardless of summary length. */
.tripsesim-plan-grid .tripsesim-plan-btn {
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
}

.tripsesim-plan-grid .tripsesim-plan-btn .wp-element-button {
	width: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tripsesim-plan-grid .tripsesim-plan-btn .wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--wp--preset--color--aurora) 55%, transparent);
}
/* === why === */

/* Sand section: inverts the palette for a deliberate mid-page breath. */
.tripsesim-why-cols {
	gap: var(--wp--preset--spacing--40);
}

.tripsesim-why-card {
	border-top: 2px solid var(--wp--preset--color--aurora-dim);
	padding-top: var(--wp--preset--spacing--30);
}

.tripsesim-why-card h3 {
	margin: 0 0 0.85rem;
	line-height: 1.25;
}

.tripsesim-why-card p {
	margin: 0;
	/* color: color-mix(in srgb, var(--wp--preset--color--deep) 78%, transparent); */
	line-height: 1.6;
}
/* === destination archive (taxonomy-product_cat) === */

/* Breadcrumbs, title and description all sit on the same 1200px wide-column
   edge. The description keeps a readable measure but stays left-aligned
   rather than being centred inside that wide column. */
.tripsesim-term-hero .wp-block-term-description.alignwide {
	max-width: 62ch;
	/* Core centres .alignwide inside a constrained layout; the lede should keep
	   a readable measure but stay flush with the breadcrumbs and the title. */
	margin-inline: 0 !important;
}

.tripsesim-crumbs {
	margin-bottom: var(--wp--preset--spacing--30);
	color: color-mix(in srgb, var(--wp--preset--color--sand) 62%, transparent);
}

.tripsesim-crumbs a {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 62%, transparent);
	text-decoration: none;
}

.tripsesim-crumbs a:hover {
	color: var(--wp--preset--color--aurora);
}

/* === destinations === */

.tripsesim-dest-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40) !important;
}

/* The group is a flow layout that CSS re-renders as a grid, so WordPress still
   applies its `* + *` block-gap margin to every card except the first. In a
   grid that margin is redundant and pushes the first card of each row out of
   alignment with its neighbours. Grid gap owns the spacing instead. */
.tripsesim-dest-grid > * {
	margin-block-start: 0 !important;
}

.tripsesim-dest-card {
	background: color-mix(in srgb, var(--wp--preset--color--slate) 46%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tripsesim-dest-card:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--wp--preset--color--aurora) 45%, transparent);
	box-shadow: 0 18px 40px -20px color-mix(in srgb, var(--wp--preset--color--aurora) 40%, transparent);
}

.tripsesim-dest-card h3 {
	margin: 0 0 0.6rem;
}

.tripsesim-dest-card p {
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 78%, transparent);
	line-height: 1.6;
}

.tripsesim-dest-link {
	margin-top: 1rem !important;
}

.tripsesim-dest-link a {
	font-weight: 600;
	color: var(--wp--preset--color--aurora) !important;
}

.tripsesim-dest-card-soon {
	background: color-mix(in srgb, var(--wp--preset--color--sand) 55%, transparent);
	border: 1px dashed color-mix(in srgb, var(--wp--preset--color--deep) 25%, transparent);
}

.tripsesim-dest-card-soon:hover {
	transform: none;
	box-shadow: none;
}

.tripsesim-dest-card-soon h3 {
	margin: 0.35rem 0 0;
}

.tripsesim-dest-tag {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--wp--preset--color--deep) 55%, transparent);
}

/* === calculator === */

.tripsesim-calc {
	max-width: 640px;
	margin-inline: auto;
	background: color-mix(in srgb, var(--wp--preset--color--slate) 46%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--50);
}

.tripsesim-calc-label {
	margin: 0 0 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 65%, transparent);
}

.tripsesim-calc-stepper {
	gap: 1.25rem !important;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.tripsesim-calc-minus .wp-element-button,
.tripsesim-calc-plus .wp-element-button {
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.tripsesim-calc-days-num {
	min-width: 5.5rem;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.tripsesim-calc-toggles {
	gap: 0.75rem !important;
	margin: 0 0 var(--wp--preset--spacing--50);
}

.tripsesim-calc-toggles .wp-block-button .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--sand);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 30%, transparent);
}

.tripsesim-calc-toggles .wp-block-button.is-active .wp-element-button {
	background: var(--wp--preset--color--aurora);
	color: var(--wp--preset--color--deep);
	border-color: transparent;
}

.tripsesim-calc-result {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 14%, transparent);
	padding-top: var(--wp--preset--spacing--40);
}

.tripsesim-calc-result-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.5rem;
	margin: 0;
	color: var(--wp--preset--color--aurora);
}

.tripsesim-calc-result-label {
	margin: 0.25rem 0 1rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 72%, transparent);
}

.tripsesim-calc-result-plan {
	margin: 0 0 1.25rem;
}

.tripsesim-calc-result-plan strong {
	color: var(--wp--preset--color--aurora);
}

/* === brand film === */

/* Vector rather than video: a real clip would need footage we do not have, and
   several megabytes would undo the LCP work. The animation lives inside
   brand-film.svg (an <img> still runs the stylesheet embedded in the SVG), so
   it costs ~3 KB and stays sharp at any size. */
.tripsesim-film {
	background:
		radial-gradient(70% 120% at 78% 0%, color-mix(in srgb, var(--wp--preset--color--aurora) 9%, transparent) 0%, transparent 62%),
		var(--wp--preset--color--deep);
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
}

.tripsesim-film-cols {
	gap: var(--wp--preset--spacing--50);
}

.tripsesim-film h2 {
	margin: 0.4rem 0 1rem;
}

.tripsesim-film p {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 82%, transparent);
	max-width: 46ch;
}

.tripsesim-film-note {
	margin-top: 1.25rem !important;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	color: color-mix(in srgb, var(--wp--preset--color--sand) 60%, transparent) !important;
}

.tripsesim-film-stage {
	background: color-mix(in srgb, var(--wp--preset--color--midnight) 70%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 20px;
	padding: var(--wp--preset--spacing--30);
}

.tripsesim-film-art {
	margin: 0;
}

.tripsesim-film-art img {
	display: block;
	width: 100%;
	height: auto;
	/* viewBox of brand-film.svg. Reserves the box before the file arrives. */
	aspect-ratio: 560 / 340;
	border-radius: 12px;
}

.tripsesim-film-caption {
	margin: 0.9rem 0 0.2rem !important;
	text-align: center;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 58%, transparent) !important;
	max-width: none !important;
}

@media (max-width: 781px) {
	.tripsesim-film-cols > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === brand lockup === */

.tripsesim-brand {
	gap: 0.6rem !important;
}

.tripsesim-brand-mark {
	margin: 0;
	line-height: 0;
	flex: none;
}

.tripsesim-brand-mark img {
	display: block;
}

/* The wordmark sits optically low against the mark's baseline rule. */
.tripsesim-brand .tripsesim-logo {
	margin: 0;
	translate: 0 -1px;
}

@media (max-width: 600px) {
	.tripsesim-brand-mark img {
		width: 27px !important;
		height: 27px !important;
	}
}

/* === 404 === */

.tripsesim-404-search {
	margin-top: var(--wp--preset--spacing--40);
}

.tripsesim-404-search .wp-block-search__input {
	background: color-mix(in srgb, var(--wp--preset--color--deep) 72%, var(--wp--preset--color--midnight));
	color: var(--wp--preset--color--sand);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 22%, transparent);
	border-radius: 999px;
	padding: 0.85rem 1.25rem;
}

.tripsesim-404-search .wp-block-search__input::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 45%, transparent);
}

.tripsesim-404-search .wp-block-search__button {
	border-radius: 999px;
	padding: 0.85rem 1.6rem;
}

/* === order confirmation === */

/* The confirmation status renders a bare <h1> with no block class, so the
   earlier .wp-block-post-title rule never matched it and it shipped at 73px. */
.woocommerce-order-received .wc-block-order-confirmation-status h1,
.wc-block-order-confirmation-status h1 {
	font-size: clamp( 2rem, 4vw, 2.75rem ) !important;
	line-height: 1.12;
	margin: 0 0 0.75rem;
}

.tripsesim-confirm-hero .wc-block-order-confirmation-summary {
	margin-top: var(--wp--preset--spacing--30);
}

/* Delivery expectations are the whole point of this page for a digital good:
   the customer has paid and now needs to know when and where the eSIM lands. */
.tripsesim-next {
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
}

.tripsesim-confirm-help {
	background: color-mix(in srgb, var(--wp--preset--color--slate) 42%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--aurora) 26%, transparent);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--30);
	margin-bottom: var(--wp--preset--spacing--40);
}

.tripsesim-confirm-help p {
	margin: 0;
	line-height: 1.6;
}

.tripsesim-confirm-detail table {
	width: 100%;
	border-collapse: collapse;
}

.tripsesim-confirm-detail th,
.tripsesim-confirm-detail td {
	padding: 0.85rem 0.6rem;
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
	text-align: left;
}

/* === cart & checkout === */

/* These pages render the page title through core/post-title, which inherits the
   80px display scale meant for landing heroes. "Cart" does not need that. */
.woocommerce-cart .wp-block-post-title,
.woocommerce-checkout .wp-block-post-title {
	font-size: clamp( 2rem, 4vw, 2.75rem );
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Block checkout defaults to white fields. Labels inherit the storefront sand
   text, so sand-on-white washes out. Match the dark storefront: deep field,
   sand type, muted floating labels. */
.woocommerce-checkout .wc-block-components-text-input input[type="email"],
.woocommerce-checkout .wc-block-components-text-input input[type="number"],
.woocommerce-checkout .wc-block-components-text-input input[type="password"],
.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
.woocommerce-checkout .wc-block-components-text-input input[type="text"],
.woocommerce-checkout .wc-block-components-text-input input[type="url"],
.woocommerce-checkout .wc-block-components-textarea,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__container,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce-checkout .wc-block-gateway-container .wc-block-gateway-input,
.woocommerce-cart .wc-block-components-text-input input[type="email"],
.woocommerce-cart .wc-block-components-text-input input[type="text"],
.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__container,
.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select {
	background-color: color-mix(in srgb, var(--wp--preset--color--deep) 82%, #000);
	color: var(--wp--preset--color--sand);
	border-color: color-mix(in srgb, var(--wp--preset--color--sand) 34%, transparent);
}

.woocommerce-checkout .wc-block-components-text-input input:focus,
.woocommerce-checkout .wc-block-components-textarea:focus,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
.woocommerce-checkout .wc-block-gateway-container .wc-block-gateway-input:focus,
.woocommerce-cart .wc-block-components-text-input input:focus,
.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	background-color: color-mix(in srgb, var(--wp--preset--color--deep) 70%, #000);
	color: var(--wp--preset--color--sand);
	border-color: var(--wp--preset--color--aurora);
}

.woocommerce-checkout .wc-block-components-text-input label,
.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__label,
.woocommerce-cart .wc-block-components-text-input label,
.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__label {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 72%, transparent);
}

.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__expand,
.woocommerce-cart .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--wp--preset--color--sand);
}

.woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill,
.woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill:hover,
.woocommerce-checkout .wc-block-components-text-input input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--wp--preset--color--sand);
	caret-color: var(--wp--preset--color--sand);
	box-shadow: 0 0 0 1000px color-mix(in srgb, var(--wp--preset--color--deep) 82%, #000) inset;
	transition: background-color 99999s ease-out;
}

.wc-block-cart__empty-cart__title {
	font-size: 1.35rem !important;
	margin-bottom: var(--wp--preset--spacing--30);
}

/* WooCommerce renders the empty-cart sub-headings as h2, which inherits the
   theme's display scale and ends up larger than the page title itself. */
.wp-block-woocommerce-empty-cart-block h2 {
	font-size: 1.35rem !important;
	letter-spacing: -0.01em;
}

.wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	width: 3.25rem !important;
	height: 3.25rem !important;
	background-size: 3.25rem 3.25rem !important;
	opacity: 0.55;
}

/* Empty image slots (no img at all) stay collapsed; branded placeholders render
   as a normal product image below. */
.wc-block-grid__product-image:empty {
	display: none;
}

/* Give the empty-cart recommendations the same card treatment as everywhere
   else, instead of bare text floating on the background. */
.wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--30);
	list-style: none;
	margin: 0;
	padding: 0;
}

.wc-block-grid__product {
	max-width: none !important;
	width: auto !important;
	margin: 0 !important;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: color-mix(in srgb, var(--wp--preset--color--slate) 46%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 16px;
	padding: var(--wp--preset--spacing--30);
	text-align: left !important;
}

.wc-block-grid__product-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 0.98rem !important;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--preset--color--white);
	margin-bottom: 0.5rem;
}

.wc-block-grid__product-link {
	text-decoration: none;
}

.wc-block-grid__product-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem !important;
	color: var(--wp--preset--color--aurora);
	margin-bottom: 0.85rem;
}

.wc-block-grid__product .wp-block-button {
	margin-top: auto;
}

@media (max-width: 900px) {
	.wc-block-grid__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}

/* === single product === */

/* The archive h1 scale is far too large for a product name that already sits
   in a breadcrumb trail; drop it to a readable heading size. */
.tripsesim-product-title {
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
	line-height: 1.12;
	margin: 0.4rem 0 1rem;
}

.tripsesim-product-price {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2rem;
	color: var(--wp--preset--color--aurora);
	margin-bottom: 0.75rem;
}

.tripsesim-product-summary {
	font-size: 1.05rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 84%, transparent);
	max-width: 52ch;
	margin-bottom: var(--wp--preset--spacing--40);
}

/* Several WooCommerce blocks are client-rendered: the server ships an empty
   container and the script injects the real markup after hydration. On a
   product page the breadcrumbs (23px), the details tabs (118px), the related
   grid (317px) and this form (54px) all sit inside the first viewport, so their
   combined late insertion moved ~450px of content and measured as CLS 0.12-0.14.

   Reserving each block's settled height keeps the page still while it hydrates.
   Heights are measured from the rendered DOM, not guessed; content longer than
   the reservation still expands normally because these are min-heights. */
.tripsesim-product-cart {
	min-height: 54px;
}

.tripsesim-crumbs {
	min-height: 23px;
}

.tripsesim-product-details .wp-block-woocommerce-product-details {
	min-height: 118px;
}

.tripsesim-related .wc-block-product-template {
	min-height: 317px;
}

.tripsesim-product-cart .quantity input {
	background: color-mix(in srgb, var(--wp--preset--color--deep) 70%, transparent);
	color: var(--wp--preset--color--sand);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 22%, transparent);
	border-radius: 999px;
	padding: 0.85rem 0.6rem;
}

/* === purchase assurance (dev plan §5.2) === */

/* The refund promise belongs beside the buy button, not in the footer: this is
   the exact moment the "what if it doesn't work" objection surfaces. */
.tripsesim-assurance {
	margin-top: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
}

.tripsesim-assurance-line {
	margin: 0 0 0.55rem;
	padding-left: 1.6rem;
	position: relative;
	font-size: 0.94rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 78%, transparent);
}

.tripsesim-assurance-line:last-child {
	margin-bottom: 0;
}

.tripsesim-assurance-line::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.52em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--aurora) 55%, transparent);
}

/* The refund line is the one that closes the sale — give it full contrast. */
.tripsesim-assurance-refund {
	color: var(--wp--preset--color--sand);
	font-weight: 500;
}

.tripsesim-assurance-refund::before {
	background: var(--wp--preset--color--aurora);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wp--preset--color--aurora) 18%, transparent);
}

.tripsesim-assurance-refund a {
	color: var(--wp--preset--color--aurora);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* KYC pre-purchase notice (esim_delayed products). */
.tripsesim-kyc-notice {
	margin: 0 0 var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-radius: 14px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--aurora) 35%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--aurora) 10%, var(--wp--preset--color--deep));
	color: var(--wp--preset--color--sand);
	font-size: 0.95rem;
	line-height: 1.55;
}

.tripsesim-kyc-notice-title {
	margin: 0 0 0.4rem;
	color: var(--wp--preset--color--aurora);
}

.tripsesim-kyc-notice p {
	margin: 0;
}

.tripsesim-kyc-notice a {
	color: var(--wp--preset--color--aurora);
}

/* === product aside: what every plan includes === */

.tripsesim-includes {
	background: color-mix(in srgb, var(--wp--preset--color--slate) 42%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
}

.tripsesim-includes-head {
	margin: 0 0 1rem;
	font-size: 0.78rem !important;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 62%, transparent);
}

.tripsesim-includes-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
	display: grid;
	gap: 0.7rem;
}

.tripsesim-includes-list li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.92rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 80%, transparent);
}

.tripsesim-includes-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.42rem;
	height: 0.42rem;
	border-radius: 50%;
	background: var(--wp--preset--color--aurora-dim);
}

.tripsesim-includes-links {
	margin: var(--wp--preset--spacing--30) 0 0;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
	line-height: 2;
}

/* === product details / related === */

.tripsesim-product-details .wp-block-woocommerce-product-details {
	max-width: 1200px;
	margin-inline: auto;
}

/* The validator dropped this group's constrained layout, which also removed
   its global padding — restore both so the pattern does not run to the edge. */
.tripsesim-related {
	padding-inline: clamp(1.25rem, 5vw, 3rem);
}

.tripsesim-related > * {
	max-width: 1200px;
	margin-inline: auto;
}

/* Hide image blocks that still have no <img>. Branded Woo placeholders show. */
.wp-block-woocommerce-product-image:not( :has( img ) ),
.wc-block-components-product-image:not( :has( img ) ) {
	display: none;
}

img.woocommerce-placeholder,
.wc-block-components-product-image img,
.wp-block-woocommerce-product-image img {
	border-radius: 14px;
	width: 100%;
	height: auto;
	display: block;
	background: var(--wp--preset--color--deep);
}

.tripsesim-plan-grid .wc-block-components-product-image,
.tripsesim-plan-grid .wp-block-woocommerce-product-image {
	margin: 0 0 1rem;
}

.tripsesim-product-hero-image,
.tripsesim-product-aside .wp-block-woocommerce-product-image {
	margin: 0 0 var(--wp--preset--spacing--40);
}

.tripsesim-product-hero-image img,
.tripsesim-product-aside .wp-block-woocommerce-product-image img {
	border-radius: 18px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
}

/* Give related products the same card treatment as the plan grid. */
.tripsesim-related .wc-block-product {
	box-sizing: border-box;
	background: color-mix(in srgb, var(--wp--preset--color--slate) 46%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
}

.tripsesim-related .wc-block-product-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--40);
}

/* WooCommerce ships this list as `.is-flex-container.columns-5` and sizes the
   items with flex-basis percentages. Overriding the container to grid without
   clearing those widths collapses each card to a sliver, so reset them and let
   the grid tracks decide. */
.tripsesim-related .wc-block-product-template > li {
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	margin: 0 !important;
}

@media (max-width: 900px) {
	.tripsesim-related .wc-block-product-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tripsesim-related .wc-block-product-template {
		grid-template-columns: 1fr;
	}
}

/* The tab bar already says "Description"; the panel repeats it as a heading. */
.tripsesim-product-details .woocommerce-Tabs-panel--description > h2:first-child,
.tripsesim-product-details .wc-tab > h2:first-child {
	display: none;
}

@media (max-width: 781px) {
	.tripsesim-product-cols {
		gap: var(--wp--preset--spacing--40);
	}

	.tripsesim-product-cols > .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* === hero destination picker === */

/* Reads as one search-style control rather than a row of loose buttons:
   a single bordered surface that asks a question and answers it in place. */
.tripsesim-picker {
	margin-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30);
	border-radius: 20px;
	/* Solid rather than translucent: the hero behind this is a flat dark field,
	   so a backdrop blur buys nothing visually while adding a compositing layer
	   (which also produced ghosting artefacts in rendering). */
	background: color-mix(in srgb, var(--wp--preset--color--deep) 72%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 14%, transparent);
	max-width: 46rem;
}

.tripsesim-picker-label {
	margin: 0 0 0.9rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 62%, transparent);
}

.tripsesim-picker-chips {
	gap: 0.6rem !important;
}

.tripsesim-chip .wp-element-button {
	background: transparent;
	color: var(--wp--preset--color--sand);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 26%, transparent);
	padding: 0.6rem 1.15rem;
	font-size: 0.95rem;
	font-weight: 500;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tripsesim-chip .wp-element-button:hover {
	background: var(--wp--preset--color--aurora);
	color: var(--wp--preset--color--deep);
	border-color: transparent;
	transform: translateY(-1px);
}

/* The regional plan is the highest-margin line, so it gets a standing accent
   instead of only appearing on hover. */
.tripsesim-chip-all .wp-element-button {
	border-color: color-mix(in srgb, var(--wp--preset--color--aurora) 55%, transparent);
	color: var(--wp--preset--color--aurora);
	font-weight: 600;
}

/* === roaming comparison === */

.tripsesim-roam {
	max-width: 720px;
}

.tripsesim-roam-cols {
	gap: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--40);
}

.tripsesim-roam-side {
	border-radius: 14px;
	padding: var(--wp--preset--spacing--30);
	background: color-mix(in srgb, var(--wp--preset--color--deep) 55%, transparent);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
}

.tripsesim-roam-side-win {
	border-color: color-mix(in srgb, var(--wp--preset--color--aurora) 40%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--aurora) 10%, transparent);
}

.tripsesim-roam-side-label {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 62%, transparent);
}

.tripsesim-roam-roaming-num,
.tripsesim-roam-esim-num {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.25rem;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* The roaming figure is the number we want to feel expensive. */
.tripsesim-roam-roaming-num {
	color: color-mix(in srgb, var(--wp--preset--color--sand) 70%, transparent);
	text-decoration: line-through;
	text-decoration-thickness: 2px;
	text-decoration-color: color-mix(in srgb, var(--wp--preset--color--sand) 35%, transparent);
}

.tripsesim-roam-esim-num {
	color: var(--wp--preset--color--aurora);
}

.tripsesim-roam-side-note {
	margin: 0.45rem 0 0;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 66%, transparent);
	line-height: 1.45;
}

.tripsesim-roam-saving {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
}

.tripsesim-roam-saving strong {
	color: var(--wp--preset--color--aurora);
}

/* === faq === */

/* Let the container fill contentSize so its left edge lines up with the page
   hero above it. Constraining the container instead would centre it and leave
   the section indented relative to the heading — the reading measure belongs on
   the text, not on the wrapper. */
.tripsesim-faq-list {
	margin-inline: 0;
}

/* .tripsesim-faq-item p,
.tripsesim-faq-item li,
.tripsesim-faq-list > p {
	max-width: 68ch;
} */

.tripsesim-faq-item {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 14%, transparent);
	padding-top: var(--wp--preset--spacing--40);
	margin-top: var(--wp--preset--spacing--40);
}

.tripsesim-faq-item:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

.tripsesim-faq-item h3 {
	margin: 0 0 0.7rem;
	line-height: 1.3;
}

.tripsesim-faq-item p {
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 82%, transparent);
	line-height: 1.65;
}

/* === steps === */

.tripsesim-step-cols {
	gap: var(--wp--preset--spacing--40);
}

.tripsesim-step-num {
	font-family: var(--wp--preset--font-family--display);
	font-size: 2.5rem;
	font-weight: 300;
	line-height: 1;
	color: color-mix(in srgb, var(--wp--preset--color--aurora) 55%, transparent);
	margin: 0 0 1rem;
	font-variant-numeric: tabular-nums;
}

.tripsesim-step h3 {
	margin: 0 0 0.7rem;
	line-height: 1.25;
}

.tripsesim-step p {
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 72%, transparent);
	line-height: 1.6;
}
/* === cta === */

.tripsesim-cta {
	background:
		radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--aurora) 16%, transparent) 0%, transparent 60%),
		var(--wp--preset--color--slate);
}

.tripsesim-cta-lede {
	max-width: 52ch;
	margin-inline: auto;
	margin-block: 1.25rem 2.25rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 82%, transparent);
}
/* === inner pages === */

.tripsesim-page-hero {
	background:
		radial-gradient(100% 100% at 80% -20%, color-mix(in srgb, var(--wp--preset--color--aurora) 16%, transparent) 0%, transparent 60%),
		var(--wp--preset--color--midnight);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 10%, transparent);
}

.tripsesim-page-hero h1 {
	margin-block: 1rem 0;
	font-size: clamp(2.25rem, 5vw, 3.5rem);
}

/* In a constrained page hero the eyebrow and heading fill contentSize (760px)
   and are centred by core. Giving the lede a narrower max-width would make core
   centre it too, indenting it relative to the heading; forcing margin-inline:0
   instead throws it out of the content column entirely. So let it simply
   inherit the same column width — alignment beats a slightly wider measure for
   a two-line hero paragraph. */
.tripsesim-lede {
	margin-block-start: 1.5rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 82%, transparent);
	line-height: 1.55;
}

.tripsesim-dest-links {
	margin-block-start: var(--wp--preset--spacing--50);
}

.tripsesim-guide h2 {
	margin-block: 0 0.75rem;
}

.tripsesim-guide h3 {
	margin-block: 1.75rem 0.4rem;
	font-size: var(--wp--preset--font-size--large);
}

.tripsesim-guide p {
	max-width: 68ch;
	line-height: 1.65;
	margin-block: 0.75rem 0;
}

/* The term/archive hero is built from alignwide parts on a 1200px column, so
   there the lede does need its own measure, left-aligned to that column. */
/* .tripsesim-term-hero .tripsesim-lede.alignwide {
	max-width: 62ch;
	margin-inline: 0 !important;
} */

.tripsesim-compat-cols {
	gap: var(--wp--preset--spacing--30);
}

.tripsesim-compat-card {
	background: color-mix(in srgb, var(--wp--preset--color--slate) 42%, var(--wp--preset--color--midnight));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
}

.tripsesim-compat-card h2 {
	margin: 0;
}

.tripsesim-compat-note {
	color: var(--wp--preset--color--aurora);
	margin: 0.5rem 0 1.25rem;
}

.tripsesim-compat-list {
	list-style: none;
	padding-left: 0;
	display: grid;
	gap: 0.65rem;
	margin: 0;
}

/* Aurora tick before each supported model. */
.tripsesim-compat-list li {
	position: relative;
	padding-left: 1.5rem;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 84%, transparent);
	line-height: 1.5;
}

.tripsesim-compat-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.5rem;
	height: 0.28rem;
	border-left: 2px solid var(--wp--preset--color--aurora);
	border-bottom: 2px solid var(--wp--preset--color--aurora);
	transform: rotate(-45deg);
}

.tripsesim-compat-warn {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--sand) 12%, transparent);
	color: var(--wp--preset--color--muted);
	line-height: 1.5;
}

/* Numbered how-to list on the sand section. */
.tripsesim-steps-list {
	margin-block-start: 1.5rem;
	display: grid;
	gap: 1rem;
	padding-left: 1.25rem;
}

.tripsesim-steps-list li {
	line-height: 1.6;
	padding-left: 0.35rem;
}

.tripsesim-steps-list li::marker {
	color: var(--wp--preset--color--aurora-dim);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
}

/* Long-form prose inside dark sections. */
.tripsesim-plans > h2 {
	margin-bottom: var(--wp--preset--spacing--40);
}

.tripsesim-plans > h3 {
	margin-block: var(--wp--preset--spacing--40) 0.75rem;
}

/* .tripsesim-plans > p {
	max-width: 68ch;
	color: color-mix(in srgb, var(--wp--preset--color--sand) 80%, transparent);
	line-height: 1.65;
} */

/* === responsive === */

@media (max-width: 900px) {
	.tripsesim-plan-grid .wc-block-product-template,
	.tripsesim-dest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 781px) {
	.tripsesim-hero-inner {
		max-width: none;
	}

	/* Core forces stacked columns below 782px; keep stats and steps two-up
	   so the page does not become one very long ribbon on phones. */
	.tripsesim-trust-cols,
	.tripsesim-step-cols {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40);
	}

	.tripsesim-trust-cols > .wp-block-column,
	.tripsesim-step-cols > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
	}

	.tripsesim-step-num {
		font-size: 2rem;
	}

	/* Keep the footer compact instead of four stacked link stacks: the brand
	   column spans the row, the three link columns sit side by side. */
	.tripsesim-footer-cols {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: var(--wp--preset--spacing--40);
	}

	.tripsesim-footer-cols > .wp-block-column {
		flex-basis: auto !important;
		width: auto !important;
	}

	.tripsesim-footer-cols > .wp-block-column:first-child {
		grid-column: 1 / -1;
	}
}

@media (max-width: 600px) {
	.tripsesim-plan-grid .wc-block-product-template,
	.tripsesim-dest-grid {
		grid-template-columns: 1fr;
	}

	/* Usage toggles read as a stacked list rather than cramped chips. */
	.tripsesim-calc-toggles .wp-block-button,
	.tripsesim-calc-toggles .wp-element-button {
		width: 100%;
	}

	.tripsesim-calc {
		padding: var(--wp--preset--spacing--40);
	}

	/* Three link columns are too narrow to hold a heading at phone widths. */
	.tripsesim-footer-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tripsesim-trust-cols > .wp-block-column,
	.tripsesim-step-cols > .wp-block-column {
		flex-basis: 100% !important;
	}

	.tripsesim-hero-actions {
		width: 100%;
	}

	.tripsesim-hero-actions .wp-block-button {
		width: 100%;
	}

	.tripsesim-hero-actions .wp-element-button {
		width: 100%;
	}
}

/* ==========================================================================
   Motion — respect reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
