/* Strawberry for Beauty — homepage palette.
   Approved 2026-11-10: cream / blush surfaces, red demonstration bands,
   charcoal product rack and footer. #DE2227 remains the only accent.
   Loaded conditionally after the homepage styles, versioned by filemtime.
*/

.sfx {
	--void:     #292727;
	--ink:      #292727;
	--ink-2:    #363333;
	--studio:   #FFF8F5;
	--studio-2: #FBE6E3;
	--sand:     #FBE6E3;
	--blush:    #FBEDEA;
	--blush-t:  rgba(222, 34, 39, .12);
	--petal:    #F6A7A9;

	--cream:    #FFF8F5;
	--mist:     #E8C9C7;   /* 10:1 on berry */
	--graphite: #302B2B;
	--stone:    #685959;

	--line-d:   rgba(255, 248, 245, .14);
	--line-l:   rgba(74, 20, 24, .14);
}

/* ------------------------------------------------------------- surfaces -- */
.sfx-dark  { background: var(--ink); }
.sfx-paper { background: var(--studio); }
.sfx-dark .sfx-eyebrow,
.sfx-dark .sfx-needtag { color: var(--petal); }

/* the rail: a band of strawberry red right under the hero */
.sfx-rail, .sfx-rail--tick {
	background:
		linear-gradient(90deg, transparent, rgba(255, 255, 255, .07) 50%, transparent) no-repeat,
		var(--red);
	border-color: transparent;
}
.sfx-rail--tick::before, .sfx-rail--tick::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45) 50%, transparent); }
.sfx .sfx-rail__list { background: transparent; border-color: transparent; }
.sfx .sfx-rail--tick .sfx-rail__list { color: #fff; }
.sfx .sfx-rail--tick .sfx-rail__link bdi { color: rgba(255, 255, 255, .82); }
.sfx .sfx-rail--tick .sfx-rail__item::after { background: #fff; opacity: .55; }
.sfx-rail__ico { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12); }

.sfx-best.sfx-paper { background: var(--sand); }
.sfx-faq.sfx-paper  { background: var(--sand); }
.sfx-voices.sfx-dark { background: var(--void); }
.sfx-close.sfx-dark,
.sfx-promo.sfx-dark { background: var(--ink); }
.sfx .sfx-card__3d { background: rgba(255, 248, 245, .9); }
.sfx .sfx-voices__shot {
	background:
		radial-gradient(ellipse 70% 55% at 50% 65%, rgba(222, 34, 39, .22), transparent 68%),
		linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
}
.sfx-paper .sfx-card__img { background-color: var(--sand); }

/* the footer on this page joins the last band (other pages keep theirs) */
body.sfb-has-hero .sfb-foot { background: #292727; border-block-start-color: rgba(255, 248, 245, .12); }

/* «الأكثر مبيعاً»: the big 1 was the same colour as its band (both took the
   sand step) — it is now an outlined numeral with a soft berry fill that
   rises a little slower than the page (scroll-driven; IO reveal elsewhere) */
.sfx .sfx-best__rank {
	color: rgba(222, 34, 39, .06);
	-webkit-text-stroke: 1.5px rgba(74, 20, 24, .16);
	font-weight: 300;
}
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.sfx .sfx-best__rank {
			animation: sfx-rank-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% cover 60%;
		}
		@keyframes sfx-rank-rise {
			from { transform: translateY(120px); opacity: 0; }
			to   { transform: none; opacity: 1; }
		}
	}
}

/* ------------------------------------------- problems: now a LIGHT band --
   «إيه اللي مضايقك في شعرك؟» follows the light hero and the ink rail, so the
   first scroll stays in the brand's light mood; the tiles become white
   cards with a blush light where the device stands. */
.sfx-needs.sfx-paper { background: linear-gradient(180deg, var(--studio) 0, var(--studio) 70%, var(--sand) 100%); }
.sfx-needs.sfx-paper .sfx-needs__head .sfx-lede { color: var(--stone); opacity: 1; }
.sfx-needs.sfx-paper .sfx-need__card {
	border-color: var(--line-l);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(53, 42, 41, .04), 0 18px 40px -28px rgba(53, 42, 41, .35);
}
.sfx-needs.sfx-paper .sfx-need__card::before {
	background: radial-gradient(60% 55% at 22% 100%, var(--blush-t), transparent 72%);
	opacity: .9;
}
.sfx-needs.sfx-paper .sfx-need__card:hover,
.sfx-needs.sfx-paper .sfx-need__card:focus-within { border-color: rgba(222, 34, 39, .35); }
.sfx-needs.sfx-paper .sfx-need__stage img { filter: drop-shadow(0 22px 26px rgba(53, 42, 41, .28)); }
.sfx-needs.sfx-paper .sfx-need__kicker { color: var(--stone); }
.sfx-needs.sfx-paper .sfx-need__title  { color: var(--graphite); }
.sfx-needs.sfx-paper .sfx-need__line   { color: var(--stone); }
.sfx-needs.sfx-paper .sfx-chip {
	border-color: var(--line-l);
	background: rgba(255, 248, 245, .92);
	color: var(--graphite);
}
.sfx-needs.sfx-paper .sfx-chip:hover { border-color: var(--red); background: #fff; }
.sfx-needs.sfx-paper .sfx-chip__price { color: var(--stone); }
.sfx-needs.sfx-paper .sfx-need__go { color: var(--graphite); }
.sfx-needs.sfx-paper .sfx-needtag { color: var(--red-ink); }
.sfx-needs.sfx-paper .sfx-needs__swipe { color: var(--stone); }
.sfx-needs.sfx-paper .sfx-needs__pos b { color: var(--graphite); }
.sfx-needs.sfx-paper :focus-visible { outline-color: var(--red-ink); }

/* ------------------------------------------------------------ the quiz -- */
.sfq, .sfq-teaser {
	--q-ink:   #292727;
	--q-ink-2: #363333;
	--q-cream: #FFF8F5;
	--q-mist:  #E8C9C7;
	--q-line:  rgba(255, 248, 245, .14);
}
.sfq-teaser { --t-ink: #302B2B; --t-stone: #685959; --t-paper: #FFF8F5; }
.sfq { background: rgba(41, 39, 39, .97); }
.sfq::backdrop { background: rgba(41, 39, 39, .55); }

/* =====================================================================
   THE RACK (2026-10-30) — the close band's product rail, after a boutique
   clothes rail: one rod, every device on a hook with its price tag. Drag,
   swipe or the arrows move it; the products swing a little with the motion
   (home.js → rack() writes --sw). transform / opacity only.
   ===================================================================== */
.sfx-promo .sfx-promo__main { align-items: center; }
.sfx-rack {
	--rod-y: 64px;
	position: relative;
	height: clamp(420px, 37vw, 550px);
	min-width: 0;
}
.sfx-rack__label {
	position: absolute;
	top: 0;
	inset-inline-start: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--mist);
}
.sfx-rack__label > span:nth-child(2) { color: var(--cream); }
.sfx-rack__count { font-weight: 500; }
.sfx-rack__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(222, 34, 39, .18); }

/* the rod, with its two end caps */
.sfx-rack__rod {
	position: absolute;
	z-index: 2;
	top: var(--rod-y);
	inset-inline: 0;
	height: 5px;
	border-radius: 5px;
	background: linear-gradient(180deg, #F4EEEA 0%, #B9ACA6 45%, #6E605B 100%);
	box-shadow: 0 8px 16px -6px rgba(0, 0, 0, .6);
	pointer-events: none;
}
.sfx-rack__rod::before,
.sfx-rack__rod::after {
	content: "";
	position: absolute;
	top: -4px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff, #B9ACA6 55%, #5E504D);
}
.sfx-rack__rod::before { inset-inline-start: -4px; }
.sfx-rack__rod::after  { inset-inline-end: -4px; }

/* the track slides under the rod: the hooks ride on it */
.sfx-rack__track {
	position: absolute;
	z-index: 3;
	inset: calc(var(--rod-y) - 14px) 0 56px;
	display: flex;
	gap: clamp(6px, 1vw, 16px);
	padding-inline: 22px;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 22px;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	cursor: grab;
	-webkit-user-select: none;
	user-select: none;
}
.sfx-rack__track::-webkit-scrollbar { display: none; }
.sfx-rack.is-drag .sfx-rack__track { cursor: grabbing; scroll-snap-type: none; }
.sfx-rack__slot { flex: 0 0 clamp(108px, 8.8vw, 136px); scroll-snap-align: start; }

.sfx .sfx-rack__item {
	position: relative;
	display: block;
	height: 100%;
	color: inherit;
	outline-offset: -2px;
	-webkit-tap-highlight-color: transparent;
}
.sfx-rack__hook {
	position: absolute;
	top: 0;
	left: 50%;
	width: 18px;
	height: 22px;
	margin-left: -9px;
	border: 2px solid #D9CFCA;
	border-bottom: 0;
	border-radius: 11px 11px 0 0;
}
.sfx-rack__hang {
	position: absolute;
	inset: 20px 0 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform-origin: 50% 0;
	transform: rotate(var(--sw, 0deg));
	transition: transform 1.1s cubic-bezier(.25, 1.6, .45, 1);
	will-change: transform;
}
.sfx-rack__cord { flex: none; width: 2px; height: 24px; background: linear-gradient(#D9CFCA, #8D817C); }
.sfx-rack__shot {
	/* the line-up's true size: 36 cm fills the hook's drop */
	height: calc(var(--cm) / 36 * 84%);
	display: flex;
	justify-content: center;
}
.sfx .sfx-rack__shot img {
	width: auto;
	height: 100%;
	max-width: none;
	object-fit: contain;
	filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .5));
	-webkit-user-drag: none;
	pointer-events: none;
}

/* the price tag, hung by a thread under the product — never over it */
.sfx-rack__tag {
	position: relative;
	z-index: 2;
	margin-top: 16px;
	display: grid;
	justify-items: center;
	text-align: center;
	gap: 1px;
	padding: 6px 11px 7px;
	border-radius: 7px;
	background: var(--cream);
	color: var(--graphite);
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7);
	transform-origin: 50% -16px;
	transform: rotate(-4deg);
	transition: transform .5s var(--ease-out);
}
.sfx-rack__slot:nth-child(even) .sfx-rack__tag { transform: rotate(3deg); }
.sfx-rack__tag::before {             /* the thread */
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	width: 1px;
	height: 16px;
	background: rgba(249, 247, 242, .45);
}
.sfx-rack__tag::after {              /* the eyelet */
	content: "";
	position: absolute;
	top: 4px;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--ink);
	opacity: .3;
}
.sfx-rack__tag b { font-weight: 800; padding-top: 4px; }
.sfx-rack__tag small { font-size: 12px; font-weight: 800; color: var(--red-ink); }
.sfx-rack__tag del { opacity: .55; font-weight: 500; margin-inline-end: 4px; color: var(--stone); }
.sfx-rack__tag ins { text-decoration: none; }

/* hover / focus: the hanger is lifted off and swings */
@media (hover: hover) {
	.sfx-rack__item:hover .sfx-rack__hang { animation: sfx-rack-swing 1.4s ease-in-out; }
	.sfx-rack__item:hover .sfx-rack__tag { transform: rotate(0deg) !important; }
}
.sfx-rack__item:focus-visible .sfx-rack__tag { transform: rotate(0deg) !important; }
.sfx-rack__item:focus-visible { outline: 2px solid var(--cream); }
@keyframes sfx-rack-swing {
	0%   { transform: rotate(0deg); }
	22%  { transform: rotate(-6deg); }
	48%  { transform: rotate(4deg); }
	72%  { transform: rotate(-2deg); }
	100% { transform: rotate(0deg); }
}

/* arrows */
.sfx-rack__nav {
	position: absolute;
	bottom: 0;
	inset-inline-end: 4px;
	display: flex;
	gap: 10px;
}
.sfx .sfx-rack__btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line-d);
	color: var(--cream);
	transition: border-color .3s var(--ease), opacity .3s var(--ease);
}
.sfx .sfx-rack__btn:hover { border-color: var(--cream); }
.sfx .sfx-rack__btn:disabled { opacity: .35; cursor: default; }
.sfx .sfx-rack__btn[hidden] { display: none; }
.sfx-rack__btn span {
	width: 9px;
	height: 9px;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
}
/* RTL: «السابقة» points right (›), «التالية» points left (‹) */
.sfx-rack__btn--prev span { transform: translateX(-2px) rotate(135deg); }
.sfx-rack__btn--next span { transform: translateX(2px) rotate(-45deg); }
html[dir="ltr"] .sfx-rack__btn--prev span { transform: translateX(2px) rotate(-45deg); }
html[dir="ltr"] .sfx-rack__btn--next span { transform: translateX(-2px) rotate(135deg); }

@media (max-width: 1100px) {
	.sfx-promo .sfx-rack { order: 0; height: clamp(400px, 70vw, 520px); }
}
@media (max-width: 760px) {
	.sfx-promo .sfx-rack { height: 410px; margin-inline: calc(var(--g) * -1); }
	.sfx-rack__label { inset-inline-start: var(--g); }
	.sfx-rack__nav { inset-inline-end: var(--g); }
	.sfx-rack__track { padding-inline: var(--g); scroll-padding-inline: var(--g); }
	.sfx-rack__slot { flex-basis: 34vw; }
	.sfx-rack__rod { inset-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.sfx-rack__hang { transition: none; transform: none; }
	.sfx-rack__item:hover .sfx-rack__hang { animation: none; }
	.sfx-rack__tag { transition: none; }
}

/* Approved reference palette: cream / blush, red demonstrations, charcoal rack. */
.sfx .sfx-exp,
.sfx .sfx-statement--cards {
 --ink: #A61920;
 --ink-2: #B91D25;
 --mist: #FFE6E3;
 --petal: #FFF8F5;
 background: var(--ink);
}
.sfx .sfx-exp .sfx-btn--red {
 background: #FFF8F5;
 color: #A61920;
}
.sfx .sfx-exp .sfx-btn--red:hover { background: #FBE6E3; }
.sfx .sfx-statement--cards .sfx-spec__card {
 background: rgba(255, 248, 245, .08);
 border-color: rgba(255, 248, 245, .25);
 border-radius: 14px;
}
.sfx .sfx-voices {
 --cream: #302B2B;
 --mist: #685959;
 --line-d: rgba(48, 43, 43, .14);
 color: #302B2B;
 background: #FFF8F5;
}
.sfx .sfx-voices .sfx-eyebrow,
.sfx .sfx-voices .sfx-voices__stat-num,
.sfx .sfx-voices .sfx-voices__titles .sfx-display em { color: #B8191E; }
.sfx .sfx-voices .sfx-voices__stat { background: #fff; }
.sfx .sfx-voices .sfx-voices__shot { background: #FBE6E3; }
.sfx .sfx-voices .sfx-voices__door-link { background: #fff; border-color: var(--line-d); }
.sfx .sfx-paper .sfx-display { color: #302B2B; }
.sfx .sfx-journal .sfx-display,
.sfx .sfx-faq .sfx-display { color: #B8191E; }
.sfx .sfx-best.sfx-paper { background: #FFF8F5; }
.sfx .sfx-col.sfx-paper { background: #FFF8F5; }
.sfx .sfx-promo {
 background: #292727;
 border-block: 1px solid rgba(255, 248, 245, .12);
}
.sfx .sfx-promo__title { font-weight: 700; font-size: clamp(32px, 3.5vw, 56px); line-height: 1.4; text-wrap: balance; }
.sfx .sfx-promo__lede { color: #E8DAD8; }
.sfx .sfx-rack__nav { gap: 12px; bottom: 8px; }
.sfx .sfx-rack__btn {
 width: 52px;
 height: 52px;
 border: 1px solid rgba(255, 248, 245, .45);
 background: #FFF8F5;
 color: #302B2B;
 transition: transform .25s ease, opacity .25s ease;
}
.sfx .sfx-rack__btn:not(:disabled):hover {
 background: #DE2227;
 border-color: #DE2227;
 color: #fff;
 transform: translateY(-3px);
}
.sfx .sfx-rack__btn:disabled { opacity: .4; }
.sfx .sfx-rack__btn svg { width: 24px; height: 24px; display: block; }
.sfx .sfx-rack__btn:focus-visible { outline: 3px solid #DE2227; outline-offset: 4px; }
.sfx .sfx-rack__track { padding-bottom: 80px; }
.sfx ::selection { background: #DE2227; color: #fff; }
.sfx :focus-visible { outline-color: #DE2227; }
@media (max-width: 760px) {
 .sfx .sfx-rack__btn { width: 48px; height: 48px; }
 .sfx .sfx-promo__main { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
 .sfx .sfx-rack__btn { transition: none; }
 .sfx .sfx-rack__btn:not(:disabled):hover { transform: none; }
}

/* Preserve light-on-red contrast for the illustrated 3D guide. */
.sfx .sfx-exp .sfx-exp__ar,
.sfx.is-io .sfx-exp.is-steps .sfx-step.is-on .sfx-step__n { color: #FFF8F5; }
.sfx .sfx-exp .sfx-exp__orbit path { stroke: #FFF8F5; }

/* Homepage rack: a single compact navigation rail, with labelled directions. */
.sfx .sfx-rack__nav {
 display: flex;
 gap: 0;
 overflow: hidden;
 border: 1px solid rgba(255, 248, 245, .35);
 border-radius: 12px;
 background: rgba(255, 248, 245, .07);
}
.sfx .sfx-rack__btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 width: auto;
 min-width: 100px;
 height: 48px;
 padding: 0 16px;
 border: 0;
 border-radius: 0;
 background: transparent;
 color: #FFF8F5;
 font-family: inherit;
 font-size: 14px;
 font-weight: 700;
 line-height: 1;
}
.sfx .sfx-rack__btn + .sfx-rack__btn { border-inline-start: 1px solid rgba(255, 248, 245, .25); }
.sfx .sfx-rack__btn b { font: inherit; }
.sfx .sfx-rack__btn svg { width: 19px; height: 19px; flex: none; }
.sfx .sfx-rack__btn:not(:disabled):hover { background: #DE2227; transform: none; }
.sfx .sfx-rack__btn:disabled { opacity: .45; }
.sfx .sfx-rack__btn:focus-visible { outline-offset: -4px; outline-color: #fff; }
html[dir="ltr"] .sfx .sfx-rack__btn svg { transform: scaleX(-1); }

