/*
Theme Name: Niro Bambiro
Author: Webivize
Description: A locked-down FSE block theme for Niro Bambiro circus entertainment.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: niro-theme
*/

/* ── Design tokens ──────────────────────────────────────────── */

:root {
	/* Colors */
	--c-pink:        #e345a7;
	--c-green:       #a3cc31;
	--c-red:         #e34548;
	--c-bg:          #ffffff;
	--c-bg-dark:     #1a1a1a;
	--c-text:        #000000;
	--c-text-inv:    #ffffff;
	--c-overlay:     rgba(0, 0, 0, 0.72);

	/* Typography -- fluid scale (all clamp; use these sitewide) */
	--f-family:         'Fredoka', system-ui, sans-serif;
	--f-hero-script:    'Gveret Levin', cursive;

	--f-eyebrow:        clamp(1.08rem, 2.05vw, 1.52rem);
	--f-small:          clamp(0.74rem, 0.95vw, 0.88rem);
	--f-caption:        clamp(0.8rem, 1.05vw, 0.94rem);
	--f-body:           clamp(0.93rem, 1.18vw, 1.1rem);
	--f-body-lg:        clamp(1.02rem, 1.42vw, 1.3rem);
	--f-body-xl:        clamp(1.12rem, 2vw, 1.75rem);
	/* Pain (and similar) intro paragraphs under section headings -- 22px max desktop */
	--f-dream-pain-copy: clamp(1.05rem, 1.95vw, 1.375rem);
	--f-lead:           clamp(1.38rem, 2.75vw, 2.15rem);
	--f-label:          clamp(0.98rem, 1.28vw, 1.14rem);
	--f-h3:             clamp(1.3rem, 2.5vw, 2.15rem);
	--f-h2:             clamp(1.52rem, 2.95vw, 2.75rem);
	--f-h2-lg:          clamp(1.68rem, 3.65vw, 3.2rem);
	--f-h2-xl:          clamp(1.82rem, 4.05vw, 3.4rem);
	--f-h2-pain:        clamp(1.92rem, 4.35vw, 3.75rem);
	--f-h2-section-sm:  clamp(1.32rem, 2.75vw, 2.35rem);
	--f-card-title:     clamp(1.62rem, 2.8vw, 2.65rem);
	--f-display:        clamp(2.5rem, 4.95vw, 4.35rem);
	--f-stat:           clamp(5.5rem, 9.5vw, 12rem);
	--f-stat-sm:        clamp(3.65rem, 14vw, 6rem);
	--f-footer-brand:   clamp(1.62rem, 3.5vw, 2.5rem);
	--f-footer-accent:  clamp(0.96rem, 1.45vw, 1.2rem);
	/* ~22px at desktop (1.375rem); scales down on narrow viewports */
	--f-btn:            clamp(1.05rem, 1.85vw, 1.375rem);
	/* Pain cards: slightly larger than buttons */
	--f-pain-card:      clamp(1.12rem, 2.1vw, 1.48rem);
	--f-placeholder:    clamp(0.86rem, 1.05vw, 0.98rem);

	/* Aliases -- keep older names working */
	--f-hero-title:     var(--f-display);
	--f-hero-pre:       var(--f-eyebrow);
	--f-hero-body:      var(--f-lead);
	--f-body-large:     var(--f-body-lg);
	--f-duration:       var(--f-stat);

	/* Layout */
	--w-container:   1150px;
	--w-narrow:      800px;
	/* Pain H2: tune this ch width so line 1 ends after "שכבר" (red phrase stays line 2). Hebrew is wider than "0" -- start ~32ch and nudge +/-2ch if needed. */
	--w-pain-title-ch: 32ch;
	--w-pain-body-ch: 50ch;
	--pad-section:   5rem 2rem;
	--pad-section-m: 3rem 1rem;

	/* Shapes */
	--r-btn:         35px;
	--r-card:        8px;
	--r-dream:       113px;
	--border-pink:   5px solid var(--c-pink);

	/* Shadows */
	--sh-card:       0 4px 24px rgba(0, 0, 0, 0.10);
	--sh-pink:       0 4px 16px rgba(227, 69, 167, 0.3);
}

/* ── Reset & base ───────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body {
	margin: 0;
	overflow-x: hidden;
	direction: rtl;
	font-family: var(--f-family);
	color: var(--c-text);
	line-height: 1.6;
}

/* Force remove WordPress default block margins/gaps that cause white space at the top */
html, body, .wp-site-blocks, .editor-styles-wrapper {
	margin: 0 !important;
	padding: 0 !important;
}

.wp-site-blocks > *,
.wp-block-post-content > *,
.niro-site > *,
.niro-main > * {
	margin-top: 0 !important;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

/* ── Keyframes ──────────────────────────────────────────────── */

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes niroHeroLogoFade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes painIconGlow {
	0%,
	100% {
		filter: drop-shadow(0 2px 12px rgba(227, 69, 72, 0.45)) drop-shadow(0 0 24px rgba(227, 69, 167, 0.2));
	}
	50% {
		filter: drop-shadow(0 4px 20px rgba(227, 69, 72, 0.65)) drop-shadow(0 0 36px rgba(227, 69, 167, 0.35));
	}
}

/* Dream / Form1 radial blushes (opacity only -- avoids fighting pseudo positioning) */
@keyframes haze {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

/* ── Utility ────────────────────────────────────────────────── */

.niro-pink  { color: var(--c-pink); }
.niro-green { color: var(--c-green); }
.niro-red   { color: var(--c-red); }

/* ── Site header (sits inside hero via template) ───────────── */

.niro-site-header {
	display: none !important;
}

.niro-site-header .wp-block-site-title {
	display: none !important;
}

/* ── Shared section base ────────────────────────────────────── */

.niro-section {
	width: 100%;
	padding: var(--pad-section);
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
}

.niro-section > * {
	width: 100%;
	max-width: var(--w-container);
	margin-left: auto;
	margin-right: auto;
}

.niro-section--full {
	width: 100vw !important;
	max-width: 100vw !important;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
	padding-left: 0;
	padding-right: 0;
}

.niro-section--full > * {
	max-width: none;
}

/* ── Hero section ───────────────────────────────────────────── */

.niro-section--hero {
	/*
	 * Fluid logo slot -- same formula below/above 768px so nothing "jumps" at the breakpoint.
	 * (Previously mobile vs desktop used different top/reserve + flex-start vs center.)
	 */
	--niro-hero-logo-top: max(
		clamp(1.85rem, 0.85rem + 3.4vw, 3.35rem),
		calc(env(safe-area-inset-top, 0px) + clamp(0.55rem, 0.3rem + 1.15vw, 1.45rem))
	);
	--niro-hero-logo-reserve: calc(
		var(--niro-hero-logo-top) + clamp(3.9rem, 2.35rem + 8.5vw, 8.6rem) + clamp(0.55rem, 0.35rem + 0.85vw, 1rem)
	);
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	/* Top = room for absolute logo; bottom nudges stack slightly above dead-center */
	padding: var(--niro-hero-logo-reserve) 2rem clamp(3.25rem, 6vh, 5.5rem);
	color: var(--c-text-inv);
	overflow: hidden;
	background-color: var(--c-bg-dark);
}

/* Undo theme "constrained" width on hero children (old DB markup / WP layout) */
.niro-section--hero.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.niro-section--hero .wp-block-group__inner-container > .niro-hero__title,
.niro-section--hero .wp-block-group__inner-container > .niro-hero__body,
.niro-section--hero .wp-block-group__inner-container > .niro-hero__pre {
	max-width: 100% !important;
}

.niro-hero__video-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

/* 16:9 cover math for iframe; dvh/dvw track visible viewport on mobile (iOS URL bar) */
.niro-hero__video-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	width: 100dvw;
	height: 56.25vw;
	height: 56.25dvw;
	min-height: 100vh;
	min-height: 100dvh;
	min-width: 177.77vh;
	min-width: 177.77dvh;
	transform: translate(-50%, -50%);
	pointer-events: none;
	border: 0;
}

.niro-hero__video-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--c-overlay);
	z-index: 1;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.niro-section--hero > *:not(.niro-hero__video-wrap):not(.niro-hero__logo) {
	position: relative;
	z-index: 2;
	animation: fadeUp 0.8s ease both;
	transition: opacity 0.4s ease;
}

.niro-section--hero > *:nth-child(3) { animation-delay: 0s; }
.niro-section--hero > *:nth-child(4) { animation-delay: 0.15s; }
.niro-section--hero > *:nth-child(5) { animation-delay: 0.3s; }
.niro-section--hero > *:nth-child(6) { animation-delay: 0.45s; }
.niro-section--hero > *:nth-child(7) { animation-delay: 0.6s; }

.niro-section--hero .niro-hero__logo {
	position: absolute;
	top: var(--niro-hero-logo-top);
	left: 0;
	right: 0;
	margin: 0 auto;
	width: max-content;
	max-width: calc(100% - 2rem);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 11;
	animation: niroHeroLogoFade 0.85s ease both;
	transition: opacity 0.4s ease;
}

.niro-hero__logo img {
	/* Softer vw so width doesn't spike right past 768px; same cap on large screens */
	width: clamp(7rem, min(32vw, 11.5rem + 5vw), 15.625rem);
	max-width: 100%;
	height: auto;
}

/* ── Hero "playing video" state ──────────────────────────────── */

.niro-section--hero.is-playing-video .niro-hero__video-wrap {
	pointer-events: auto;
}

.niro-section--hero.is-playing-video .niro-hero__video-wrap iframe {
	pointer-events: auto;
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	transform: translate(-50%, -50%);
}

.niro-section--hero.is-playing-video .niro-hero__video-wrap::after {
	opacity: 0;
}

.niro-section--hero.is-playing-video > *:not(.niro-hero__video-wrap) {
	animation: none;
	opacity: 0;
	pointer-events: none;
}

/* ── Section entrance animations (scroll-reveal) ────────────── */

.niro-section--dream .niro-dream__title,
.niro-section--dream .niro-dream__card,
.niro-section--pain .niro-pain__title,
.niro-section--pain .niro-pain__body,
.niro-section--pain .niro-pain__sub,
.niro-section--pain .niro-pain__point,
.niro-section--proof1 .niro-proof1__media,
.niro-section--proof1 .niro-proof1__text,
.niro-section--form1 .niro-form1__title,
.niro-section--form1 .niro-form1__body,
.niro-section--form1 .niro-cf7-wrap,
.niro-section--form1 .niro-form1__note,
.niro-section--products .niro-products__title,
.niro-section--products .niro-products__intro,
.niro-section--products .niro-products__closing,
.niro-section--products .niro-products__cta,
.niro-section--safety .niro-safety__label,
.niro-section--safety .niro-safety__title,
.niro-section--safety .niro-safety__point,
.niro-section--testimonials .niro-testimonials__title,
.niro-section--testimonials .niro-carousel,
.niro-section--testimonials .niro-testimonials__cta,
.niro-section--faq .niro-faq__title,
.niro-section--faq .niro-faq__item,
.niro-section--final-cta .niro-final__title,
.niro-section--final-cta .niro-final__body,
.niro-section--final-cta .niro-cf7-wrap,
.niro-section--final-cta .niro-final__note {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.niro-section--pain .niro-pain__body,
.niro-section--pain .niro-pain__sub,
.niro-section--form1 .niro-form1__body,
.niro-section--form1 .niro-cf7-wrap,
.niro-section--products .niro-products__intro,
.niro-section--products .niro-products__closing,
.niro-section--products .niro-products__cta,
.niro-section--safety .niro-safety__label,
.niro-section--testimonials .niro-testimonials__cta,
.niro-section--faq .niro-faq__item,
.niro-section--final-cta .niro-final__body,
.niro-section--final-cta .niro-cf7-wrap {
	transform: translateY(20px);
}

.niro-section--form1 .niro-form1__note,
.niro-section--final-cta .niro-final__note,
.niro-section--testimonials .niro-carousel {
	transform: none;
}

.niro-section--proof1 .niro-proof1__media {
	transform: translateX(40px);
}

.niro-section--proof1 .niro-proof1__text {
	transform: translateX(-40px);
}

/* Stagger delays — Dream */
.niro-section--dream .niro-dream__title { transition-delay: 0s; }
.niro-section--dream .niro-dream__card:nth-child(1) { transition-delay: 0.1s; }
.niro-section--dream .niro-dream__card:nth-child(2) { transition-delay: 0.25s; }
.niro-section--dream .niro-dream__card:nth-child(3) { transition-delay: 0.4s; }

/* Stagger delays — Pain */
.niro-section--pain .niro-pain__title { transition-delay: 0s; }
.niro-section--pain .niro-pain__body { transition-delay: 0.1s; }
.niro-section--pain .niro-pain__sub { transition-delay: 0.2s; }
.niro-section--pain .niro-pain__point:nth-child(1) { transition-delay: 0.3s; }
.niro-section--pain .niro-pain__point:nth-child(2) { transition-delay: 0.4s; }
.niro-section--pain .niro-pain__point:nth-child(3) { transition-delay: 0.5s; }

/* Stagger delays — Proof1 */
.niro-section--proof1 .niro-proof1__media { transition-delay: 0s; }
.niro-section--proof1 .niro-proof1__text { transition-delay: 0.15s; }

/* Stagger delays — Form1 */
.niro-section--form1 .niro-form1__title { transition-delay: 0s; }
.niro-section--form1 .niro-form1__body { transition-delay: 0.1s; }
.niro-section--form1 .niro-cf7-wrap { transition-delay: 0.2s; }
.niro-section--form1 .niro-form1__note { transition-delay: 0.35s; }

/* Stagger delays — Products header */
.niro-section--products .niro-products__title { transition-delay: 0s; }
.niro-section--products .niro-products__intro { transition-delay: 0.1s; }
.niro-section--products .niro-products__closing { transition-delay: 0s; }
.niro-section--products .niro-products__cta { transition-delay: 0.1s; }

/* Stagger delays — Safety */
.niro-section--safety .niro-safety__label { transition-delay: 0s; }
.niro-section--safety .niro-safety__title { transition-delay: 0.1s; }
.niro-section--safety .niro-safety__point:nth-child(1) { transition-delay: 0.25s; }
.niro-section--safety .niro-safety__point:nth-child(2) { transition-delay: 0.4s; }
.niro-section--safety .niro-safety__point:nth-child(3) { transition-delay: 0.55s; }

/* Stagger delays — Testimonials */
.niro-section--testimonials .niro-testimonials__title { transition-delay: 0s; }
.niro-section--testimonials .niro-carousel { transition-delay: 0.2s; }
.niro-section--testimonials .niro-testimonials__cta { transition-delay: 0.35s; }

/* Stagger delays — FAQ */
.niro-section--faq .niro-faq__title { transition-delay: 0s; }
.niro-section--faq .niro-faq__item:nth-of-type(1) { transition-delay: 0.1s; }
.niro-section--faq .niro-faq__item:nth-of-type(2) { transition-delay: 0.2s; }
.niro-section--faq .niro-faq__item:nth-of-type(3) { transition-delay: 0.3s; }
.niro-section--faq .niro-faq__item:nth-of-type(4) { transition-delay: 0.4s; }

/* Stagger delays — Final CTA */
.niro-section--final-cta .niro-final__title { transition-delay: 0s; }
.niro-section--final-cta .niro-final__body { transition-delay: 0.1s; }
.niro-section--final-cta .niro-cf7-wrap { transition-delay: 0.2s; }
.niro-section--final-cta .niro-final__note { transition-delay: 0.35s; }

/* Revealed state */
.is-niro-revealed .niro-dream__title,
.is-niro-revealed .niro-dream__card,
.is-niro-revealed .niro-pain__title,
.is-niro-revealed .niro-pain__body,
.is-niro-revealed .niro-pain__sub,
.is-niro-revealed .niro-pain__point,
.is-niro-revealed .niro-proof1__media,
.is-niro-revealed .niro-proof1__text,
.is-niro-revealed .niro-form1__title,
.is-niro-revealed .niro-form1__body,
.is-niro-revealed .niro-cf7-wrap,
.is-niro-revealed .niro-form1__note,
.is-niro-revealed .niro-products__title,
.is-niro-revealed .niro-products__intro,
.is-niro-revealed .niro-products__closing,
.is-niro-revealed .niro-products__cta,
.is-niro-revealed .niro-safety__label,
.is-niro-revealed .niro-safety__title,
.is-niro-revealed .niro-safety__point,
.is-niro-revealed .niro-testimonials__title,
.is-niro-revealed .niro-carousel,
.is-niro-revealed .niro-testimonials__cta,
.is-niro-revealed .niro-faq__title,
.is-niro-revealed .niro-faq__item,
.is-niro-revealed .niro-final__title,
.is-niro-revealed .niro-final__body,
.is-niro-revealed .niro-final__note {
	opacity: 1;
	transform: none;
}

.niro-hero__pre {
	font-family: var(--f-hero-script);
	font-size: var(--f-eyebrow);
	font-weight: 400;
	letter-spacing: 0.07em;
	color: var(--c-text-inv);
	margin: 0 auto 0.35rem;
	line-height: 1.35;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-break: normal;
	overflow-wrap: normal;
}

.niro-hero__title {
	font-size: var(--f-display);
	font-weight: 600 !important;
	color: var(--c-text-inv);
	margin: 0 auto 1.5rem;
	line-height: 1.15;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-break: normal;
	overflow-wrap: normal;
}

/* Two H1 variants: edit copy in patterns/landing-hero.php */
.niro-hero__title-line--mobile {
	display: none;
}

@media (max-width: 768px) {
	.niro-hero__title-line--desktop {
		display: none;
	}

	.niro-hero__title-line--mobile {
		display: block;
	}
}

.niro-underline {
	text-decoration: underline;
	text-underline-offset: 8px;
	text-decoration-thickness: 4px;
	text-decoration-color: var(--c-pink);
}

.niro-hero__body {
	font-family: var(--f-hero-script);
	font-size: var(--f-lead);
	font-weight: 400;
	color: var(--c-text-inv);
	margin: 0 auto 3rem;
	line-height: 1.55;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	word-break: normal;
	overflow-wrap: normal;
}

.niro-hero__body strong {
	font-weight: 400;
	font-family: inherit;
	text-decoration: underline;
	text-decoration-color: var(--c-pink);
	text-underline-offset: 0.2em;
	text-decoration-thickness: max(2px, 0.1em);
}

.niro-hero__buttons {
	justify-content: center;
	gap: 1.5rem;
}

@media (min-width: 769px) {
	/* Wider measure so H1 + subhead land ~2 lines on typical desktop (was 48rem / 38rem) */
	.niro-section--hero .niro-hero__pre {
		max-width: min(44rem, 94vw);
	}

	.niro-section--hero .niro-hero__title {
		max-width: min(74rem, 94vw);
	}

	.niro-section--hero .niro-hero__body {
		max-width: min(64rem, 94vw);
	}
}

/* ── Dream section ──────────────────────────────────────────── */

.niro-section--dream {
	background: var(--c-bg);
	text-align: center;
	padding: 5rem 2rem;
	position: relative;
	overflow: hidden;
}

/* Background Hazes */
.niro-section--dream::before,
.niro-section--dream::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	animation: haze 12s ease-in-out infinite;
	z-index: 0;
}

/* Right-side blush -- anchored low */
.niro-section--dream::before {
	width: 800px;
	height: 800px;
	top: auto;
	bottom: -12%;
	right: -200px;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
	transform: none;
}

/* Left-side blush -- anchored high */
.niro-section--dream::after {
	width: 700px;
	height: 700px;
	top: -8%;
	bottom: auto;
	left: -150px;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
	animation-delay: -6s;
}

.niro-dream__title {
	position: relative;
	z-index: 2;
	font-size: var(--f-h2-xl);
	max-width: min(100%, 30ch);
	margin: 0 auto 4rem;
	line-height: 1.25;
}

/* Gradient Headline Text */
.niro-dream__title .niro-pink {
	color: var(--c-pink);
}

/* The Magic Glow Box */
.niro-dream__box {
	position: relative;
	z-index: 2;
	border: 3px solid rgba(227, 69, 167, 0.4);
	border-radius: clamp(40px, 8vw, 60px);
	padding: 3rem;
	max-width: 1200px;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 40px rgba(227, 69, 167, 0.15);
}

.niro-dream__grid {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 2.5rem;
}

.niro-dream__card {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start; /* Aligns content from top */
	text-align: center;
	padding: 3rem 2rem;
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(227, 69, 167, 0.06);
	transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
	border: 1.5px solid rgba(227, 69, 167, 0.2);
	margin-top: 0 !important; /* Overrides WP default block gap */
}

.niro-dream__card:hover {
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(227, 69, 167, 0.2);
	border-color: rgba(227, 69, 167, 0.5);
}

.niro-dream__icon {
	width: 100%;
	height: clamp(100px, 12vw, 150px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2.5rem;
	flex: 0 0 auto;
}

.niro-dream__icon figure,
.niro-pain__icon figure,
.niro-safety__icon figure,
.niro-hero__logo figure {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* Icon Drop-Shadows */
.niro-dream__icon img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	filter: drop-shadow(0 10px 20px rgba(227, 69, 167, 0.3));
}

/*
 * dream-couch.svg reads a hair smaller at contain; tiny scale only (not parity with 1.7+).
 * src*= fallback if Home lacks niro-dream__icon--couch.
 */
.niro-dream__icon--couch,
.niro-dream__icon:has(img[src*="dream-couch"]) {
	overflow: visible;
}

.niro-dream__icon--couch img,
.niro-dream__icon img[src*="dream-couch"] {
	transform: scale(1.12);
	transform-origin: center center;
}

.niro-dream__item {
	font-size: var(--f-btn) !important;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	color: #333;
	flex: 1; /* Allows text to fill remaining space */
}

.niro-dream__item strong {
	display: inline;
	color: var(--c-text);
	font-weight: 700;
}

/* ── Pain section ───────────────────────────────────────────── */

.niro-section--pain {
	background: radial-gradient(circle at 50% 0%, #2a2a35 0%, var(--c-bg-dark) 100%);
	color: #fff;
	text-align: center;
	padding: 5.5rem 2rem 7.5rem;
	position: relative;
	overflow: hidden;
	width: 100vw !important;
	max-width: 100vw !important;
	left: 50%;
	right: 50%;
	margin-left: -50vw !important;
	margin-right: -50vw !important;
}

.niro-section--pain::before,
.niro-section--pain::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.niro-section--pain::before {
	width: min(520px, 90vw);
	height: min(520px, 90vw);
	top: -18%;
	inset-inline-start: -12%;
	background: radial-gradient(circle, rgba(227, 69, 103, 0.22), transparent 68%);
	filter: blur(72px);
}

.niro-section--pain::after {
	width: min(480px, 85vw);
	height: min(480px, 85vw);
	bottom: -14%;
	inset-inline-end: -10%;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.2), transparent 68%);
	filter: blur(72px);
}

.niro-pain__container {
	position: relative;
	z-index: 1;
	max-width: var(--w-container);
	margin: 0 auto;
	width: 100%;
}

.niro-pain__title {
	font-size: var(--f-h2-pain);
	color: #fff;
	max-width: min(var(--w-pain-title-ch), 100%);
	margin: 0 auto 0.65rem;
	line-height: 1.2;
}

.niro-pain__body {
	font-size: var(--f-dream-pain-copy) !important;
	font-weight: 400;
	max-width: min(var(--w-pain-body-ch), 100%);
	margin: 0 auto 0.75rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.9);
}

.niro-pain__sub {
	font-size: var(--f-dream-pain-copy) !important;
	font-weight: 400;
	max-width: min(var(--w-pain-body-ch), 100%);
	margin: 0 auto 3.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.niro-pain__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: 2rem;
	margin: 0 auto;
	max-width: 1000px;
}

/* RTL row: icon at main-start (right); text column grows left -- centered in that area */
.niro-pain__point {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: flex-start;
	direction: rtl;
	gap: 0.85rem;
	min-height: 0;
	height: 100%;
	padding: 0.95rem 1rem;
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.09) 0%,
		rgba(255, 255, 255, 0.025) 48%,
		rgba(227, 69, 103, 0.04) 100%
	);
	border-radius: 18px;
	border: 1px solid rgba(227, 69, 103, 0.22);
	box-shadow:
		0 12px 40px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(255, 255, 255, 0.06) inset,
		0 0 48px rgba(227, 69, 167, 0.06);
	transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
	margin-top: 0 !important; /* Overrides WP default block gap */
}

.niro-pain__point:hover {
	border-color: rgba(227, 69, 167, 0.45);
	box-shadow:
		0 18px 48px rgba(0, 0, 0, 0.42),
		0 0 0 1px rgba(255, 255, 255, 0.09) inset,
		0 0 64px rgba(227, 69, 103, 0.18);
	background: linear-gradient(
		165deg,
		rgba(255, 255, 255, 0.12) 0%,
		rgba(255, 255, 255, 0.04) 50%,
		rgba(227, 69, 167, 0.08) 100%
	);
}

/* Mobile scroll "focus" -- matches :hover (see assets/scroll-focus-cards.js) */
@media (max-width: 768px) {
	.niro-dream__card.is-niro-in-view {
		box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(227, 69, 167, 0.2);
		border-color: rgba(227, 69, 167, 0.5);
	}

	.niro-pain__point.is-niro-in-view {
		border-color: rgba(227, 69, 167, 0.45);
		box-shadow:
			0 18px 48px rgba(0, 0, 0, 0.42),
			0 0 0 1px rgba(255, 255, 255, 0.09) inset,
			0 0 64px rgba(227, 69, 103, 0.18);
		background: linear-gradient(
			165deg,
			rgba(255, 255, 255, 0.12) 0%,
			rgba(255, 255, 255, 0.04) 50%,
			rgba(227, 69, 167, 0.08) 100%
		);
	}
}

.niro-pain__icon {
	flex: 0 0 auto;
	align-self: center;
	width: 44px;
	height: 44px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: painIconGlow 5s ease-in-out infinite;
}

.niro-pain__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.niro-pain__text {
	flex: 1;
	min-width: 0;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: var(--f-pain-card) !important;
	font-weight: 400;
	margin: 0;
	line-height: 1.45;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.94);
	text-align: center;
	text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
	.niro-pain__icon {
		animation: none;
		filter: drop-shadow(0 2px 12px rgba(227, 69, 72, 0.45));
	}
}

/* ── Social Proof 1 ─────────────────────────────────────────── */

.niro-section--proof1 {
	--niro-proof1-glow: 0 0 0 1px color-mix(in srgb, var(--c-pink) 28%, transparent),
		0 10px 36px color-mix(in srgb, var(--c-pink) 35%, transparent),
		0 4px 24px rgba(0, 0, 0, 0.1);

	/* Full-bleed: escape narrow parent (layout + mouse-tilt hit area) */
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	position: relative;
	overflow: hidden;
	background: var(--c-bg);
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: clamp(2.75rem, 9vw, 6rem);
	box-sizing: border-box;
}

/* Row layout: undo global .niro-section > * { width:100% } so media + text sit side by side */
.niro-section--proof1 > * {
	position: relative;
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.niro-proof1__media {
	flex: 0 0 auto;
	width: clamp(200px, 32vw, 320px);
	min-width: 0;
	max-width: 42%;
	perspective: 1100px;
	perspective-origin: center center;
}

.niro-proof1__img {
	width: 100%;
	border-radius: clamp(16px, 3vw, 28px);
	overflow: hidden;
	transform-style: preserve-3d;
	transform-origin: center center;
	transition: transform 0.35s ease-out;
	box-shadow: var(--niro-proof1-glow);
}

@media (min-width: 769px) {
	.niro-proof1__img {
		animation: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.niro-proof1__img {
		animation: none !important;
		transition: none !important;
		transform: none !important;
	}
}

/* YouTube Short: direct iframe, portrait 9:16 inside rounded frame */
.niro-proof1__img .niro-proof1__video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: inherit;
}

.niro-proof1__img .niro-proof1__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: inherit;
}

.niro-proof1__text {
	flex: 0 1 min(34rem, 100%);
	min-width: 0;
	text-align: right;
}

/* Match hero eyebrow (script + scale) */
.niro-proof1__label {
	font-family: var(--f-hero-script);
	font-size: var(--f-eyebrow);
	font-weight: 400;
	color: var(--c-text);
	line-height: 1.35;
	margin: 0 0 0.35rem;
}

/* Match dream / products section H2 scale; full line pink (theme heading color is black) */
h2.niro-proof1__title {
	font-family: var(--f-family);
	font-size: var(--f-h2-xl);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 1rem;
	color: var(--c-pink);
}

.niro-proof1__title .niro-pink {
	color: inherit;
}

/* Match form1 / final / products intro body */
.niro-proof1__body {
	font-family: var(--f-family);
	font-size: var(--f-body-lg) !important;
	font-weight: 400 !important;
	line-height: 1.65;
	color: var(--c-text);
	max-width: none;
}

.niro-proof1__body strong {
	font-weight: 700;
}

/* ── Form section 1 ─────────────────────────────────────────── */

.niro-section--form1 {
	background: var(--c-bg);
	text-align: center;
	position: relative;
	/* Let blushes bleed into adjacent sections (dream uses hidden; here we want a soft bridge) */
	overflow: visible;
}

/* Asymmetric blushes (mirror of dream: left low, right high) */
.niro-section--form1::before,
.niro-section--form1::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	animation: haze 12s ease-in-out infinite;
	z-index: 0;
}

/* Left-side blush -- anchored low */
.niro-section--form1::before {
	width: 800px;
	height: 800px;
	top: auto;
	bottom: -12%;
	left: -200px;
	right: auto;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
}

/* Right-side blush -- anchored high */
.niro-section--form1::after {
	width: 700px;
	height: 700px;
	top: -8%;
	bottom: auto;
	right: -150px;
	left: auto;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
	animation-delay: -6s;
}

.niro-section--form1 > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.niro-section--form1::before {
		width: 320px;
		height: 320px;
		bottom: auto;
		top: -60px;
		left: -80px;
		filter: blur(70px);
	}

	.niro-section--form1::after {
		width: 300px;
		height: 300px;
		top: auto;
		bottom: -60px;
		right: -80px;
		filter: blur(70px);
	}
}

/*
 * Form1: font-size stays on theme tokens (--f-*). Never drive heading/body font-size with
 * ch+vw clamp -- ch resolves from parent and vw dominates on wide screens -> huge type.
 * Use ch only for measure (max-width) here.
 */
.niro-section--form1 .niro-form1__title {
	font-size: var(--f-h2-lg);
	max-width: min(100%, 26ch);
	margin: 0 auto 0.5rem;
	line-height: 1.2;
}

.niro-section--form1 .niro-form1__body {
	font-size: var(--f-body-lg);
	font-weight: 400;
	max-width: min(100%, 42ch);
	margin: 0 auto clamp(2.5rem, 6vw, 4rem);
	line-height: 1.58;
}

.niro-section--form1 .niro-form1__note {
	font-size: var(--f-small);
	color: #888;
	max-width: min(100%, 42ch);
	margin: 0.875rem auto 0;
	line-height: 1.45;
}

.niro-section--form1 .niro-cf7-wrap {
	max-width: min(100%, 31.25rem);
}

/* Slightly more air between fields only in this lead section */
.niro-section--form1 .niro-cf7-wrap .wpcf7-form {
	gap: 0.7rem;
}

/* Fluid space above submit (Form1 only; other CF7 unchanged) */
.niro-section--form1 .niro-cf7-wrap .wpcf7-submit {
	margin-top: clamp(1.35rem, 3.25vh + 1.6vw, 3.75rem);
}

/* Contact Form 7 -- same sections as former placeholder */
.niro-cf7-wrap {
	max-width: 500px;
	margin: 0 auto;
	text-align: right;
}

.niro-cf7-wrap .wpcf7 {
	margin: 0;
}

.niro-cf7-wrap .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* CF7 wraps each field in <p> -- browser default margins stack with flex gap */
.niro-cf7-wrap .wpcf7-form p {
	margin: 0;
}

.niro-cf7-wrap .wpcf7-form label {
	display: block;
	font-size: var(--f-body);
	font-weight: 600;
	color: var(--c-text);
	margin-bottom: 0.3rem;
}

.niro-cf7-wrap .wpcf7-form input[type="text"],
.niro-cf7-wrap .wpcf7-form input[type="tel"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.75rem 1rem;
	border: 1px solid #ccc;
	border-radius: 12px;
	font-family: inherit;
	font-size: var(--f-body);
	background: #fff;
}

.niro-cf7-wrap .wpcf7-form input:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--c-pink) 45%, transparent);
	outline-offset: 2px;
}

/* CF7 submit -- match hero primary ( .niro-btn-pink .wp-block-button__link ) */
.niro-cf7-wrap .wpcf7-submit {
	background: var(--c-pink) !important;
	color: #fff !important;
	padding: 0.8rem 2.2rem;
	font-weight: 400 !important;
	font-size: var(--f-btn);
	line-height: 1.5;
	border: none !important;
	border-radius: var(--r-btn);
	box-shadow: 0 4px 16px rgba(227, 69, 167, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
	font-family: var(--f-family);
	/* Block + fit-content + auto margins: centers inside CF7's <p> or any full-width parent (works with flex form) */
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-inline: auto;
	-webkit-appearance: none;
	appearance: none;
	/* When CF7 puts submit as a direct flex child of .wpcf7-form */
	align-self: center;
}

.niro-cf7-wrap .wpcf7-submit:not(.is-niro-sending):hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(227, 69, 167, 0.4);
	filter: none;
}

.niro-cf7-wrap .wpcf7-submit:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--c-pink) 55%, #fff);
	outline-offset: 3px;
}

/*
 * CF7 5.6+ sets border colors on .wpcf7-response-output via parent <form> classes:
 *   form.sent -> green, form.invalid -> yellow, form.spam -> orange, etc.
 * We override those so success = pink and every error path = red.
 */
.niro-cf7-wrap .wpcf7 form .wpcf7-response-output {
	direction: rtl;
	text-align: center;
	font-family: var(--f-family);
	font-size: var(--f-body-lg);
	line-height: 1.55;
	font-weight: 500;
	margin: 1rem 0 0;
	padding: 1rem 1.2rem;
	border-radius: 12px;
	border-width: 2px !important;
	border-style: solid !important;
	border-color: color-mix(in srgb, var(--c-text) 22%, var(--c-bg)) !important;
	box-sizing: border-box;
}

.niro-cf7-wrap .wpcf7 form.sent .wpcf7-response-output {
	border-color: var(--c-pink) !important;
	color: var(--c-text) !important;
	background: color-mix(in srgb, var(--c-pink) 7%, var(--c-bg)) !important;
}

.niro-cf7-wrap .wpcf7 form.failed .wpcf7-response-output,
.niro-cf7-wrap .wpcf7 form.aborted .wpcf7-response-output,
.niro-cf7-wrap .wpcf7 form.spam .wpcf7-response-output,
.niro-cf7-wrap .wpcf7 form.invalid .wpcf7-response-output,
.niro-cf7-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.niro-cf7-wrap .wpcf7 form.payment-required .wpcf7-response-output {
	border-color: var(--c-red) !important;
	color: var(--c-text) !important;
	background: color-mix(in srgb, var(--c-red) 9%, var(--c-bg)) !important;
}

/* Older CF7: classes on the output node (keep as fallback) */
.niro-cf7-wrap .wpcf7-response-output.wpcf7-mail-sent-ok {
	border-color: var(--c-pink) !important;
	color: var(--c-text) !important;
	background: color-mix(in srgb, var(--c-pink) 7%, var(--c-bg)) !important;
}

.niro-cf7-wrap .wpcf7-response-output.wpcf7-validation-errors,
.niro-cf7-wrap .wpcf7-response-output.wpcf7-mail-sent-ng,
.niro-cf7-wrap .wpcf7-response-output.wpcf7-spam-blocked,
.niro-cf7-wrap .wpcf7-response-output.wpcf7-acceptance-missing,
.niro-cf7-wrap .wpcf7-response-output.wpcf7-aborted {
	border-color: var(--c-red) !important;
	color: var(--c-text) !important;
	background: color-mix(in srgb, var(--c-red) 9%, var(--c-bg)) !important;
}

/* Per-field validation text (e.g. empty required) */
.niro-cf7-wrap .wpcf7-not-valid-tip {
	direction: rtl;
	text-align: right;
	font-family: var(--f-family);
	font-size: var(--f-body-lg);
	line-height: 1.45;
	font-weight: 600;
	color: var(--c-red) !important;
	margin-top: 0.35rem;
}

.niro-cf7-wrap .wpcf7-form .wpcf7-not-valid {
	border-color: var(--c-red) !important;
}

/* Hide CF7 AJAX submit spinner (newer: .wpcf7-spinner, older: img.ajax-loader) */
.niro-cf7-wrap .wpcf7-spinner,
.niro-cf7-wrap img.ajax-loader,
.niro-cf7-wrap .ajax-loader {
	display: none !important;
}

/* ── Products section ───────────────────────────────────────── */

.niro-section--products {
	background: linear-gradient(to bottom, transparent 0%, var(--c-bg) clamp(120px, 18vw, 220px));
	text-align: center;
	position: relative;
}

.niro-section--products::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 40px,
		rgba(227, 69, 167, 0.09) 40px,
		rgba(227, 69, 167, 0.09) 80px
	);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.niro-products__title {
	font-size: var(--f-h2-xl);
	margin-bottom: 0.5rem;
}

.niro-products__intro {
	font-size: var(--f-body-lg);
	font-weight: 400;
	max-width: 600px;
	margin: 0 auto 5rem;
}

.niro-product {
	display: flex;
	align-items: center;
	gap: 5rem;
	margin-bottom: 8rem;
	text-align: right;
	position: relative;
	z-index: 1;
}

.niro-product::before {
	content: "";
	position: absolute;
	inset: -2rem -3rem;
	background: rgba(255, 255, 255, 0.55);
	border: 1.5px solid rgba(227, 69, 167, 0.08);
	border-radius: 2rem;
	z-index: -1;
	transform: rotate(-1deg);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.niro-product:nth-of-type(even)::before {
	transform: rotate(1deg);
}

.niro-product--right {
	flex-direction: row;
}

.niro-product--left {
	flex-direction: row-reverse;
}

.niro-product__content {
	flex: 1;
	min-width: 300px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	gap: 0.2rem;
}

.niro-product__content .wp-block-heading,
.niro-product__content p {
	margin-top: 0;
	margin-bottom: 0;
}

.niro-product__visual {
	flex: 0 0 50%;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	align-items: center;
}

.niro-product__name {
	font-size: var(--f-h2-xl);
	margin-bottom: 0.15rem;
	line-height: 1.2;
}

.niro-product__name span {
	color: var(--c-pink);
}

.niro-product__desc {
	font-size: clamp(1.1rem, 1.6vw, 1.45rem);
	font-weight: 400;
	line-height: 1.55;
	max-width: 450px;
	margin-bottom: 0;
}

.niro-product__duration {
	font-size: clamp(2.2rem, 3.5vw, 3.2rem);
	font-weight: 800;
	color: var(--c-pink);
	line-height: 0.9;
	margin: 0;
	letter-spacing: -0.03em;
	-webkit-text-stroke: 2px #1a1a1a;
	paint-order: stroke fill;
	position: absolute;
	top: -0.6em;
	right: 0;
	transform: rotate(12deg);
}

.niro-section--products > .niro-product:first-of-type .niro-product__duration {
	right: -0.5em;
}

.niro-section--products > .niro-product:nth-of-type(3) .niro-product__duration,
.niro-section--products > .niro-product:nth-of-type(4) .niro-product__duration {
	right: 0.5em;
}

.niro-section--products > .niro-product:nth-of-type(5) .niro-product__duration {
	right: -0.5em;
}

.niro-product__photo {
	border: 4px solid var(--c-pink);
	border-radius: 1rem;
	box-shadow: 0 8px 28px rgba(232, 50, 138, 0.35);
	overflow: hidden;
	flex: none;
	width: 100%;
	max-width: 450px;
}

.niro-product__photo figure {
	margin: 0;
}

.niro-product__photo img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}

.niro-product__photo:first-child {
	transform: rotate(-2.5deg);
	margin-bottom: -1.5rem;
	z-index: 1;
}

.niro-product__photo:last-child {
	transform: rotate(1.5deg);
}

.niro-product__photo {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.niro-product__photo:hover {
	box-shadow: 0 12px 36px rgba(232, 50, 138, 0.45);
}

.niro-product__photo:first-child:hover {
	transform: rotate(-2.5deg) scale(1.03);
}

.niro-product__photo:last-child:hover {
	transform: rotate(1.5deg) scale(1.03);
}

.niro-product__content,
.niro-product__visual {
	opacity: 0;
	transition: opacity 0.7s ease, transform 0.7s ease;
}

.niro-product--right .niro-product__content {
	transform: translateX(40px);
}

.niro-product--right .niro-product__visual {
	transform: translateX(-40px);
}

.niro-product--left .niro-product__content {
	transform: translateX(-40px);
}

.niro-product--left .niro-product__visual {
	transform: translateX(40px);
}

.niro-product.is-niro-product-visible .niro-product__content,
.niro-product.is-niro-product-visible .niro-product__visual {
	opacity: 1;
	transform: translateX(0);
}

.niro-product.is-niro-product-visible .niro-product__visual {
	transition-delay: 0.15s;
}

.niro-product__illust {
	width: 180px;
	position: absolute;
	top: 50%;
	right: -40px; /* Offset to the side */
	transform: translateY(-50%);
	z-index: 10;
	filter: drop-shadow(0 8px 16px rgba(0,0,0,0.2));
}

.niro-product__illust img {
	width: 100%;
	height: auto;
}

.niro-products__closing {
	font-size: var(--f-h3);
	font-weight: 700;
	text-align: center;
	margin: 4rem auto 2rem;
	max-width: 900px;
}

.niro-products__cta {
	justify-content: center;
}

/* ── Safety section ─────────────────────────────────────────── */

.niro-section--safety {
	text-align: center;
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(
			135deg,
			rgba(255,255,255,0) 0%,
			rgba(255,255,255,0) 20%,
			rgba(255,255,255,0.25) 28%,
			rgba(255,255,255,0) 36%,
			rgba(255,255,255,0) 52%,
			rgba(255,255,255,0.18) 58%,
			rgba(255,255,255,0) 65%,
			rgba(255,255,255,0) 78%,
			rgba(255,255,255,0.12) 84%,
			rgba(255,255,255,0) 92%
		),
		linear-gradient(180deg, #e6dce1, #f0e9ed);
}

.niro-section--safety::before,
.niro-section--safety::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.niro-section--safety::before {
	width: min(520px, 90vw);
	height: min(520px, 90vw);
	top: -18%;
	inset-inline-start: -12%;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.15), transparent 68%);
	filter: blur(72px);
}

.niro-section--safety::after {
	width: min(480px, 85vw);
	height: min(480px, 85vw);
	bottom: -14%;
	inset-inline-end: -10%;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.12), transparent 68%);
	filter: blur(72px);
}

.niro-safety__label {
	font-family: var(--f-hero-script);
	font-size: var(--f-eyebrow);
	font-weight: 400;
	color: var(--c-pink);
	margin-bottom: 0.15rem;
	position: relative;
	z-index: 1;
}

.niro-safety__title {
	font-size: var(--f-h2-lg);
	margin-top: 0 !important;
	margin-bottom: 2.5rem;
	position: relative;
	z-index: 1;
}

.niro-safety__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	align-items: stretch;
	gap: 2rem;
	margin: 0 auto;
	max-width: 1000px;
	position: relative;
	z-index: 1;
}

.niro-safety__point {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	padding: 1.5rem 1.2rem;
	background: #fff;
	border-radius: 18px;
	border: 1.5px solid rgba(227, 69, 167, 0.15);
	box-shadow:
		0 8px 32px rgba(227, 69, 167, 0.08),
		0 0 0 1px rgba(227, 69, 167, 0.04) inset;
	transition: border-color 0.35s ease, box-shadow 0.35s ease;
	margin-top: 0 !important;
}

.niro-safety__point:hover {
	border-color: rgba(227, 69, 167, 0.35);
	box-shadow:
		0 12px 40px rgba(227, 69, 167, 0.14),
		0 0 0 1px rgba(227, 69, 167, 0.08) inset,
		0 0 48px rgba(227, 69, 167, 0.06);
}

.niro-safety__icon {
	flex: 0 0 auto;
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: drop-shadow(0 4px 18px rgba(227, 69, 167, 0.4));
}

.niro-safety__icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.niro-safety__text {
	flex: 1;
	font-size: var(--f-body) !important;
	font-weight: 400;
	margin: 0;
	line-height: 1.65;
	color: var(--c-text);
	text-align: center;
	text-wrap: balance;
}

/* ── Testimonials section ───────────────────────────────────── */

.niro-section--testimonials {
	background: var(--c-bg);
	text-align: center;
	overflow: hidden;
}

.niro-testimonials__title {
	font-size: var(--f-h2);
	margin-bottom: 2.5rem;
}

.niro-testimonials__cta {
	justify-content: center;
}

/* ── Carousel ──────────────────────────────────────────────── */

.niro-carousel {
	width: 100%;
	padding: 2rem 0 0;
	margin-bottom: 2rem;
	-webkit-user-select: none;
	user-select: none;
}

.niro-carousel__viewport {
	overflow-x: clip;
	overflow-y: visible;
	position: relative;
	padding: 1.5rem 0;
	-webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
	mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.niro-carousel__track {
	display: flex;
	direction: ltr;
	gap: 1rem;
	align-items: center;
	will-change: transform;
}

.niro-carousel__track.is-animating {
	transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.niro-carousel__slide {
	flex: 0 0 auto;
	width: auto;
	max-width: 220px;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.5s ease, opacity 0.5s ease, box-shadow 0.5s ease;
	opacity: 0.45;
	transform: scale(0.82);
	position: relative;
	z-index: 0;
}

.niro-carousel__slide.is-center {
	transform: scale(1.18) translateY(-14px);
	opacity: 1;
	z-index: 3;
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.niro-carousel__slide.is-adjacent {
	transform: scale(0.95);
	opacity: 0.72;
	z-index: 1;
}

.niro-carousel__slide img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 340px;
	border-radius: 12px;
	pointer-events: none;
}

/* Navigation row: arrows flanking dots */

.niro-carousel__nav {
	display: flex;
	direction: ltr;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: 1rem;
}

.niro-carousel__arrow {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: transparent;
	color: var(--c-pink);
	cursor: pointer;
	transition: color 0.25s ease, transform 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.niro-carousel__arrow svg {
	width: 28px;
	height: 28px;
}

.niro-carousel__arrow:hover {
	color: var(--c-pink);
	transform: scale(1.25);
	filter: drop-shadow(0 0 6px var(--c-pink));
}

/* Dots */

.niro-carousel__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
}

.niro-carousel__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--c-pink);
	background-color: rgba(227, 69, 167, 0);
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.niro-carousel__dot:hover {
	background-color: rgba(227, 69, 167, 0.35);
}

.niro-carousel__dot.is-active {
	background-color: rgba(227, 69, 167, 1);
	transform: scale(1.2);
}

/* ── FAQ section ────────────────────────────────────────────── */

.niro-section--faq {
	background: var(--c-bg);
}

.niro-section--faq > * {
	max-width: min(100%, 800px);
}

.niro-faq__title {
	font-size: var(--f-h2-xl);
	text-align: center;
	margin-bottom: 2rem;
}

.niro-faq__item {
	border-bottom: 1px solid #ddd;
}

.niro-faq__question {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	padding: 1.25rem 1.5rem 1.25rem 0;
	margin: 0;
	background: none;
	border: none;
	font-family: var(--f-family);
	font-size: var(--f-body-xl);
	font-weight: 400;
	color: var(--c-text);
	text-align: right;
	cursor: pointer;
	position: relative;
	transition: color 0.25s ease;
	line-height: 1.5;
}

.niro-faq__question::before {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-right: 8px solid currentColor;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}

.niro-faq__item.is-open .niro-faq__question::before {
	transform: translateY(-50%) rotate(-90deg);
}

.niro-faq__question:hover {
	color: var(--c-pink);
}

.niro-faq__question:focus-visible {
	outline: 2px solid color-mix(in srgb, var(--c-pink) 45%, transparent);
	outline-offset: 2px;
	border-radius: 4px;
}

.niro-faq__answer {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.35s ease;
}

.niro-faq__answer p {
	margin: 0;
	padding: 0 1.5rem 1.25rem 0;
	font-size: var(--f-body-lg);
	font-weight: 400;
	line-height: 1.65;
	color: #444;
}

/* ── Final CTA section ──────────────────────────────────────── */

.niro-section--final-cta {
	background: var(--c-bg);
	text-align: center;
	position: relative;
	overflow: visible;
}

.niro-section--final-cta::before,
.niro-section--final-cta::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	animation: haze 12s ease-in-out infinite;
	z-index: 0;
}

.niro-section--final-cta::before {
	width: 800px;
	height: 800px;
	top: auto;
	bottom: -12%;
	left: -200px;
	right: auto;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
}

.niro-section--final-cta::after {
	width: 700px;
	height: 700px;
	top: -8%;
	bottom: auto;
	right: -150px;
	left: auto;
	background: radial-gradient(circle, rgba(227, 69, 167, 0.4), transparent 70%);
	filter: blur(100px);
	animation-delay: -6s;
}

.niro-section--final-cta > * {
	position: relative;
	z-index: 1;
}

.niro-final__title {
	font-size: var(--f-h2-lg);
	max-width: min(100%, 26ch);
	margin: 0 auto 0.5rem;
	line-height: 1.2;
}

.niro-final__body {
	font-size: var(--f-body-lg);
	font-weight: 400;
	max-width: min(100%, 42ch);
	margin: 0 auto clamp(2.5rem, 6vw, 4rem);
	line-height: 1.58;
}

.niro-final__note {
	font-size: var(--f-small);
	color: #888;
	max-width: min(100%, 42ch);
	margin: 0.875rem auto 0;
	line-height: 1.45;
}

.niro-section--final-cta .niro-cf7-wrap {
	max-width: min(100%, 31.25rem);
}

.niro-section--final-cta .niro-cf7-wrap .wpcf7-form {
	gap: 0.7rem;
}

.niro-section--final-cta .niro-cf7-wrap .wpcf7-submit {
	margin-top: clamp(1.35rem, 3.25vh + 1.6vw, 3.75rem);
}

/* ── Privacy policy page ────────────────────────────────────── */

.niro-privacy {
	max-width: min(100%, 70ch);
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
	color: var(--c-text);
}

.niro-privacy__logo {
	display: flex;
	justify-content: center;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.niro-privacy__logo img {
	width: clamp(100px, 20vw, 160px);
	height: auto;
}

.niro-privacy__title {
	text-align: center;
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 600;
	color: var(--c-pink);
	margin-bottom: 0.5rem;
}

.niro-privacy__meta {
	text-align: center;
	padding: 1.25rem 1.5rem;
	background: rgba(227, 69, 167, 0.06);
	border-radius: 12px;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.niro-privacy__meta p {
	margin: 0.25rem 0;
	font-size: var(--f-body);
}

.niro-privacy__meta a {
	color: var(--c-pink);
	text-decoration: none;
}

.niro-privacy__meta a:hover {
	text-decoration: underline;
}

.niro-privacy__section {
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.niro-privacy__section h2 {
	font-size: clamp(1.15rem, 2.2vw, 1.5rem);
	font-weight: 600;
	color: var(--c-text);
	margin-bottom: 0.6rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid rgba(227, 69, 167, 0.15);
}

.niro-privacy__section p {
	font-size: var(--f-body);
	line-height: 1.75;
	margin: 0.5rem 0;
}

.niro-privacy__section ul {
	padding-right: 1.25rem;
	padding-left: 0;
	margin: 0.5rem 0;
}

.niro-privacy__section li {
	font-size: var(--f-body);
	line-height: 1.75;
	margin-bottom: 0.35rem;
}

.niro-privacy__section li::marker {
	color: var(--c-pink);
}

.niro-privacy__updated {
	font-size: var(--f-small);
	color: #999;
	margin-top: 1.5rem;
	text-align: center;
}

/* ── Footer ─────────────────────────────────────────────────── */

.niro-site-footer {
	text-align: center;
	padding: 3rem 2rem;
	background: transparent;
	color: var(--c-text);
}

.niro-footer__logo {
	display: flex;
	justify-content: center;
	margin: 0 auto 1rem;
}

.niro-footer__logo img {
	width: clamp(180px, 30vw, 320px);
	height: auto;
}

.niro-footer__links {
	font-size: var(--f-small);
	color: #666;
	margin-top: 0;
}

.niro-footer__links a {
	color: #666;
	text-decoration: none;
	transition: color 0.2s ease;
}

.niro-footer__links a:hover {
	color: var(--c-pink);
}

.niro-footer__credit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 0.75rem;
}

.niro-footer__credit span {
	font-size: 0.8rem;
	color: #aaa;
	line-height: 1;
}

.niro-footer__credit img {
	width: 80px;
	height: auto;
	opacity: 0.4;
	transition: opacity 0.2s ease;
}

.niro-footer__credit a:hover img {
	opacity: 0.7;
}

/* ── Buttons ────────────────────────────────────────────────── */

.niro-btn-pink .wp-block-button__link {
	background: var(--c-pink) !important;
	color: #fff !important;
	padding: 0.8rem 2.2rem;
	font-weight: 400 !important;
	font-size: var(--f-btn);
	line-height: 1.5;
	border: none;
	border-radius: var(--r-btn);
	box-shadow: 0 4px 16px rgba(227, 69, 167, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
	font-family: var(--f-family);
	display: inline-block;
}

.niro-btn-pink .wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(227, 69, 167, 0.4);
}

.niro-btn-white .wp-block-button__link {
	background: #fff !important;
	color: var(--c-pink) !important;
	padding: 0.8rem 2.2rem;
	font-weight: 400 !important;
	font-size: var(--f-btn);
	line-height: 1.5;
	border: none;
	border-radius: var(--r-btn);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
	font-family: var(--f-family);
	display: inline-block;
}

.niro-btn-white .wp-block-button__link:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

/* ── Image placeholder (dev helper) ─────────────────────────── */

.niro-img-placeholder {
	background: #eee;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: var(--f-caption);
	min-height: 200px;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
	.niro-site-header {
		padding: 0.75rem 1rem;
	}

	.niro-section {
		padding: 3rem 1rem;
	}

	.niro-section--hero {
		/* 600px broke real phones: shorter than viewport + iframe math used vh -> letterboxing + content centered "too low" */
		min-height: 100vh;
		min-height: 100dvh;
		min-height: -webkit-fill-available;
		/* Same vertical rhythm as desktop (fluid vars above) -- avoids layout jump at 769px */
		justify-content: center;
		padding-top: var(--niro-hero-logo-reserve);
		padding-bottom: 2.5rem;
		padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
		padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
	}

	.niro-section--hero .niro-hero__pre,
	.niro-section--hero .niro-hero__title,
	.niro-section--hero .niro-hero__body {
		max-width: 100%;
	}

	/* YouTube mobile often has a thicker letterbox at the top; nudge up + zoom so overflow clips it */
	.niro-hero__video-wrap iframe {
		transform: translate(-50%, calc(-50% - 5vh)) scale(1.2);
	}

	.niro-section--hero.is-playing-video .niro-hero__video-wrap iframe {
		transform: translate(-50%, -50%);
	}

	.niro-dream__box {
		border-radius: 40px;
		padding: 2rem 1.25rem;
		max-width: 100%;
	}

	/* Grid is flex -- stack cards like pain section (grid-template-columns did nothing) */
	.niro-dream__grid {
		flex-direction: column;
		align-items: stretch;
		gap: 1.5rem;
	}

	.niro-dream__card {
		flex: none;
		width: 100%;
		max-width: 100%;
		padding: 2rem 1.5rem;
	}

	.niro-dream__item {
		text-align: center;
	}

	.niro-dream__icon {
		flex: none;
		order: -1;
		margin-bottom: 1.5rem;
		height: clamp(88px, 22vw, 120px);
	}

	.niro-pain__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.niro-pain__point {
		padding: 0.85rem 0.9rem;
		gap: 0.7rem;
		border-radius: 16px;
	}

	.niro-pain__icon {
		flex: 0 0 auto;
		width: 38px;
		height: 38px;
	}

	.niro-pain__text {
		line-height: 1.4;
	}

	/* Text block on top, video below (DOM: media, text -> column-reverse) */
	.niro-section--proof1 {
		flex-direction: column-reverse;
		align-items: stretch;
		justify-content: flex-start;
		gap: clamp(1.5rem, 7vw, 2.75rem);
	}

	.niro-proof1__text {
		width: 100%;
		max-width: 100%;
		flex: none;
		min-width: 0;
		text-align: center;
	}

	.niro-proof1__text :where(h2, p, .wp-block-heading, .wp-block-paragraph) {
		text-align: center !important;
	}

	.niro-proof1__media {
		align-self: center;
		perspective: 900px;
		width: clamp(200px, 62vw, 300px);
		max-width: min(100%, 320px);
		flex: none;
	}

	/* Scroll-driven rotateX from proof1-video-tilt.js */
	.niro-proof1__img.is-niro-proof1-scroll-bend {
		animation: none !important;
		transition: none;
	}

	.niro-section--proof1 .niro-proof1__media,
	.niro-section--proof1 .niro-proof1__text {
		transform: translateY(30px);
	}

	.niro-product {
		flex-direction: column !important;
		gap: 1.3rem;
		margin-bottom: 4rem;
	}

	.niro-product::before {
		inset: -1rem -1.5rem;
		border-radius: 1.5rem;
		transform: rotate(0deg) !important;
	}

	.niro-product__visual {
		flex: none;
		width: 100%;
	}

	.niro-product__photo:first-child {
		transform: rotate(-1.5deg);
		margin-bottom: -1rem;
	}

	.niro-product__photo:last-child {
		transform: rotate(1deg);
	}

	.niro-product__illust {
		max-width: 120px;
		top: auto;
		bottom: -20px;
		right: 10px;
		transform: none;
	}

	.niro-product__content {
		min-width: auto;
		text-align: center;
		align-items: center;
	}

	.niro-product__duration {
		font-size: clamp(1.8rem, 8vw, 2.4rem);
		position: relative;
		top: auto;
		right: auto !important;
		transform: rotate(0deg);
		order: -1;
		align-self: center;
		margin-bottom: 0.3rem;
	}

	.niro-product__content,
	.niro-product__visual {
		transform: translateY(30px) !important;
	}

	.niro-product.is-niro-product-visible .niro-product__content,
	.niro-product.is-niro-product-visible .niro-product__visual {
		transform: translateY(0) !important;
	}

	.niro-products__closing {
		margin-bottom: 0.75rem;
	}

	.niro-safety__grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.niro-safety__point {
		padding: 1.2rem 1rem;
		gap: 0.7rem;
		border-radius: 16px;
	}

	.niro-safety__icon {
		width: 64px;
		height: 64px;
	}

	.niro-carousel__slide {
		max-width: 170px;
	}

	.niro-carousel__slide.is-center {
		transform: scale(1.1) translateY(-10px);
	}

	.niro-carousel__slide img {
		max-height: 280px;
	}

	.niro-carousel__arrow {
		width: 36px;
		height: 36px;
	}

	.niro-carousel__arrow svg {
		width: 22px;
		height: 22px;
	}

	.niro-carousel__dot {
		width: 8px;
		height: 8px;
	}

	.niro-section--final-cta::before {
		width: 320px;
		height: 320px;
		bottom: auto;
		top: -60px;
		left: -80px;
		filter: blur(70px);
	}

	.niro-section--final-cta::after {
		width: 300px;
		height: 300px;
		top: auto;
		bottom: -60px;
		right: -80px;
		filter: blur(70px);
	}
}

/* ── Reduced motion: disable entrance animations ─────────────── */

@media (prefers-reduced-motion: reduce) {
	.niro-section--dream .niro-dream__title,
	.niro-section--dream .niro-dream__card,
	.niro-section--pain .niro-pain__title,
	.niro-section--pain .niro-pain__body,
	.niro-section--pain .niro-pain__sub,
	.niro-section--pain .niro-pain__point,
	.niro-section--proof1 .niro-proof1__media,
	.niro-section--proof1 .niro-proof1__text,
	.niro-section--form1 .niro-form1__title,
	.niro-section--form1 .niro-form1__body,
	.niro-section--form1 .niro-cf7-wrap,
	.niro-section--form1 .niro-form1__note,
	.niro-section--products .niro-products__title,
	.niro-section--products .niro-products__intro,
	.niro-section--products .niro-products__closing,
	.niro-section--products .niro-products__cta,
	.niro-section--safety .niro-safety__label,
	.niro-section--safety .niro-safety__title,
	.niro-section--safety .niro-safety__point,
	.niro-section--testimonials .niro-testimonials__title,
	.niro-section--testimonials .niro-carousel,
	.niro-section--testimonials .niro-testimonials__cta,
	.niro-section--faq .niro-faq__title,
	.niro-section--faq .niro-faq__item,
	.niro-section--final-cta .niro-final__title,
	.niro-section--final-cta .niro-final__body,
	.niro-section--final-cta .niro-cf7-wrap,
	.niro-section--final-cta .niro-final__note {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}
