/* ==========================================================================
   Responsive layer — mobile-first refinements and overflow guards
   Breakpoints: 480 / 768 / 1024 / 1280 / 1536
   ========================================================================== */

/* Global guards: no horizontal scrolling anywhere. */
.oi-wrapper {
	max-width: 100%;
	overflow-x: clip;
}

.oi-wrapper :where(pre, code, table) {
	max-width: 100%;
	overflow-x: auto;
}

/* --------------------------------------------------------------------------
   < 480px — smallest phones
   -------------------------------------------------------------------------- */

@media (max-width: 479px) {
	.oi-container {
		padding-inline: 16px;
	}

	.oi-hero {
		padding-block: 40px 48px;
	}

	.oi-hero__grid {
		gap: 32px;
	}

	.oi-hero__title {
		font-size: clamp(2rem, 1.4rem + 4vw, 2.5rem);
	}

	.oi-hero__actions {
		width: 100%;
		flex-direction: column;
	}

	.oi-hero__actions .oi-btn {
		width: 100%;
	}

	.oi-hero__trust {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.oi-section-head {
		margin-bottom: 32px;
	}

	.oi-cta__card {
		padding: 32px 20px;
		border-radius: 24px;
	}

	.oi-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   >= 480px
   -------------------------------------------------------------------------- */

@media (min-width: 480px) {
	.oi-newsletter__msg {
		text-align: start;
	}
}

/* --------------------------------------------------------------------------
   < 768px — phones & small tablets
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
	.oi-hero__title {
		letter-spacing: -0.03em;
	}

	.oi-hero__note {
		font-size: 0.75rem;
	}

	.oi-stat__value {
		font-size: 2.25rem;
	}

	.oi-section-title {
		letter-spacing: -0.025em;
	}

	.oi-faq__aside {
		margin-bottom: 8px;
	}

	.oi-footer__cols {
		gap: 28px 16px;
	}

	.oi-footer__about {
		max-width: none;
	}

	/* Widen tap targets on mobile. */
	.oi-token {
		min-height: 44px;
	}

	.oi-swap__icon-btn {
		width: 40px;
		height: 40px;
	}

	.oi-faq__trigger {
		min-height: 48px;
	}
}

/* --------------------------------------------------------------------------
   >= 768px — tablets
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
	.oi-hero__title {
		font-size: clamp(2.75rem, 2rem + 3vw, 3.5rem);
	}
}

/* --------------------------------------------------------------------------
   >= 1024px — desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	.oi-hero {
		padding-block: clamp(80px, 8vw, 120px) clamp(64px, 7vw, 104px);
	}

	.oi-header__inner {
		min-height: 76px;
	}

	.oi-faq__aside {
		padding-top: 8px;
	}

	.oi-section-head--split .oi-section-subtitle {
		text-align: end;
	}
}

/* --------------------------------------------------------------------------
   >= 1280px — large desktop
   -------------------------------------------------------------------------- */

@media (min-width: 1280px) {
	.oi-hero__grid {
		gap: 80px;
	}

	.oi-eco__grid {
		gap: 20px;
	}
}

/* --------------------------------------------------------------------------
   >= 1536px — ultra wide
   -------------------------------------------------------------------------- */

@media (min-width: 1536px) {
	:root {
		--oi-fs-h1: 4.25rem;
	}
}

/* --------------------------------------------------------------------------
   Elementor container fixes (full-width sections must not clip)
   -------------------------------------------------------------------------- */

.elementor .oi-wrapper,
.elementor-section .oi-wrapper,
.e-con .oi-wrapper {
	width: 100%;
}

.elementor-section.elementor-section-boxed > .elementor-container > .elementor-column > .elementor-widget-wrap > .elementor-widget-shortcode > .elementor-shortcode {
	width: 100%;
}

/* When a shortcode sits in a full-width section, kill the default padding. */
.elementor-section.elementor-section-full_width .elementor-widget-shortcode,
.e-con-full .elementor-widget-shortcode {
	padding: 0;
}

/* Keep Elementor typography from leaking into our components. */
.elementor-widget-shortcode .oi-wrapper :where(h1, h2, h3, h4) {
	font-family: var(--oi-font);
	margin: 0;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
	.oi-header,
	.oi-mobile,
	.oi-topbar,
	.oi-swap__card,
	.oi-footer__socials {
		display: none !important;
	}

	.oi-wrapper {
		color: #000;
	}

	.oi-faq__panel {
		grid-template-rows: 1fr;
	}
}
