/* ============================================================
   About page - pixel-perfect from Figma (About / Landing page 0:668).
   Shares tokens/base (header, footer, contact); sections below are page-specific.
   ============================================================ */

/* ---------------- Entrance reveal (same recipe as the homepage) ---------------- */
.ifal-reveal {
	opacity: 0; transform: translateY(26px);
	transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.22, .61, .36, 1);
	transition-delay: var(--reveal-delay, 0ms);
}
.ifal-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.ifal-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- HERO (node 0:669) ---------------- */
.ahero {
	position: relative; overflow: hidden;
	padding-bottom: min(9.97vw, 191px);            /* white strip under the wave */
}
.ahero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(85% 95% at 67% 42%, #F4F7FF 0%, #EDF2FF 100%);
}
.ahero::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0;
	height: min(20.42vw, 392px); z-index: 2;       /* wave above the visual (hand sinks under) */
	background: #fff;
	clip-path: url(#ifal-hero-wave);
}
[dir="rtl"] .ahero::after { transform: scaleX(-1); }
.ahero__inner {
	position: relative; z-index: 1;
	max-width: 1920px; margin-inline: auto;
	min-height: min(46.7vw, 897px);
	display: flex; align-items: center;
	padding-left: var(--shell-pad);
	padding-top: min(5.52vw, 106px);
}
[dir="rtl"] .ahero__inner { padding-left: 0; padding-right: var(--shell-pad); }
.ahero__text { display: flex; flex-direction: column; gap: 16px; z-index: 1; flex: 0 0 min(37.29vw, 716px); }
.ahero__title {
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 700;
	font-size: min(2.08vw, 40px); line-height: 1.35; color: #0A2869; margin: 0;   /* exact: Bold 40 */
}
.ahero__sub {
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400;
	font-size: min(1.25vw, 24px); line-height: 1.5; color: #626B96; margin: 0;    /* exact: Regular 24 */
	max-width: 576px;
}
/* Visual: waving hand composition (0:679) - right side, bleeds toward the wave */
.ahero__visual {
	position: relative; flex: 1 1 auto; align-self: stretch; min-width: 0;
}
.ahero__glow {
	position: absolute; inset: -8% -12% -10% -4%; z-index: 0;
	background:
		radial-gradient(42% 55% at 62% 45%, rgba(126, 166, 255, .40), transparent 70%),
		radial-gradient(34% 48% at 88% 60%, rgba(158, 138, 255, .38), transparent 72%);
	filter: blur(16px);
}
.ahero__hand {
	position: absolute; right: 0; top: min(5vw, 96px);
	width: min(40vw, 768px); height: auto; z-index: 1;
}
[dir="rtl"] .ahero__hand { right: auto; left: 0; transform: scaleX(-1); }
.ahero__deco { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
/* exact Figma placements (0:736/0:737/0:733-735, % of the 1920×1169 hero) */
.ahero__swirl  { position: absolute; left: 21.6%; top: -2%; width: min(24.3vw, 467px); height: auto; z-index: 0; }
.ahero__bubble { position: absolute; left: 44%; top: 24%; width: min(3.8vw, 74px); height: auto; z-index: 1; }
.ahero__spark--1 { position: absolute; left: 6%;  top: 18%; width: clamp(28px, 3vw, 50px); }
.ahero__spark--2 { position: absolute; left: 30%; top: 70%; width: clamp(26px, 2.6vw, 44px); }
/* 4-point stars (nodes 0:733-735) */
.about-star { position: absolute; z-index: 1; }
.about-star::before {
	content: ""; position: absolute; inset: 0; background: currentColor;
	clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
/* stars flank the composition - never on top of the hand */
.ahero__star--1 { left: 48%; top: 52%;  width: 34px; height: 34px; color: #1582FF; }
.ahero__star--2 { right: 3%; top: 10%;  width: 30px; height: 30px; color: #1582FF; }
.ahero__star--3 { left: 8%;  top: 58%;  width: 22px; height: 22px; color: #0A2869; }
@media (prefers-reduced-motion: no-preference) {
	.ifal-js .ahero__text   { animation: ifal-enter .7s .10s cubic-bezier(.22,.61,.36,1) backwards; }
	.ifal-js .ahero__visual { animation: ifal-enter .9s .18s cubic-bezier(.22,.61,.36,1) backwards; }
	.ahero__hand   { animation: ifal-float-a 7s ease-in-out infinite; }
	.ahero__bubble { animation: ifal-float-b 6s ease-in-out infinite .3s; }
}
@keyframes ifal-enter {
	from { opacity: 0; transform: translateY(28px); }
	to   { opacity: 1; transform: none; }
}
@keyframes ifal-float-a { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes ifal-float-b { 0%,100% { transform: translate(0,0) rotate(0) } 50% { transform: translate(8px,-10px) rotate(3deg) } }
[dir="rtl"] .ahero__hand { animation: none; }   /* the scaleX flip owns transform in RTL */

.ifal-spark { position: absolute; z-index: 1; height: auto; }

/* ---------------- THE GOAL (node 0:758) ---------------- */
.goal { background: #fff; padding-block: 40px 100px; }
.goal__inner { width: min(var(--shell-max), 100% - 2 * var(--shell-pad)); margin-inline: auto; display: flex; flex-direction: column; gap: 80px; }
.goal__header { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.goal .goal__title { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 900; font-size: 32px; color: #0A2869; margin: 0; }   /* exact: Black 32 */
.goal__sub { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 24px; color: #626B96; margin: 0; }
.goal__sub strong { font-weight: 700; color: #19235F; }
.goal__cards { display: flex; gap: 40px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.goal__card {
	background: #fff; border-radius: 40px;                          /* exact */
	box-shadow: 5px 5px 20px rgba(211, 209, 252, .51);              /* exact */
	padding: 40px 16px;                                             /* exact */
	flex: 1 1 260px; max-width: 350px; height: 285px;               /* exact 350×285 */
	display: flex; flex-direction: column; align-items: center; justify-content: space-between;
	transition: transform .25s ease, box-shadow .25s ease;
}
/* hover - same feel as the homepage Why cards */
.goal__card:hover { transform: translateY(-10px); box-shadow: 6px 14px 40px rgba(140, 140, 254, .30); }
.goal__card:hover .goal__card-title { color: #1773E0; }
.goal__icon { height: 84px; display: flex; align-items: center; justify-content: center; }
.goal__icon img {
	max-height: 84px; width: auto;
	transition: transform .45s cubic-bezier(.34, 1.56, .64, 1);     /* springy, like Why */
}
.goal__card:hover .goal__icon img { transform: scale(1.12) rotate(-4deg); }
@media (prefers-reduced-motion: no-preference) {
	.goal__icon img { animation: goal-bob 4s ease-in-out infinite; }
	.goal__card:nth-child(2) .goal__icon img { animation-delay: .4s; }
	.goal__card:nth-child(3) .goal__icon img { animation-delay: .8s; }
	.goal__card:nth-child(4) .goal__icon img { animation-delay: 1.2s; }
	.goal__card:hover .goal__icon img { animation-play-state: paused; }
}
@keyframes goal-bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
.goal__card-text { display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.goal .goal__card-title { font-family: "Noto Sans", "Noto Sans Hebrew", sans-serif; font-weight: 900; font-size: 24px; line-height: 1; color: #1582FF; margin: 0; }   /* .goal scope beats the base body.ifal-coded h3 ink */
.goal__card-body { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 16px; line-height: 1.5; color: #626B96; margin: 0; }

/* ---------------- HOW IT STARTED (node 0:837) ---------------- */
.started { background: #EDF5FF; padding-block: 100px; overflow: hidden; }
.started__inner {
	position: relative;
	width: min(var(--shell-max), 100% - 2 * var(--shell-pad)); margin-inline: auto;
	display: flex; align-items: center; gap: min(7vw, 140px);        /* exact gap 140 */
}
.started__text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.started .started__title { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 900; font-size: 24px; color: #0A2869; margin: 0; }
.started__body { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.started__body p { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 20px; line-height: 1.5; color: #626B96; margin: 0; }
/* polaroid (exact: 353×497, r14.6, rotate 3°, shadow 0 12 32 rgba(16,24,87,.16)) */
.started__polaroid {
	position: relative; flex: 0 0 auto; margin: 0;
	width: 353px; background: #F9FBFC; border-radius: 14.6px;
	box-shadow: 0 12px 32px rgba(16, 24, 87, .16);
	padding: 52px 26px 23px;
	transform: rotate(3deg);
	display: flex; flex-direction: column; gap: 10px;
}
.started .started__photo { width: 100%; height: 300px; object-fit: cover; border-radius: 9.8px; }
.started__caption { display: flex; flex-direction: column; }
.started__name { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.5; color: #19235F; }
.started__role { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 20px; line-height: 1.5; color: #626B96; opacity: .8; }
.started__tape {
	position: absolute; top: -14px; left: 50%; transform: translateX(calc(-50% + 12px));
	width: 109px; height: 29px; border-radius: 1.2px; opacity: .7;
	background: linear-gradient(0deg, #FFF4D9, #FDE6AC);            /* exact */
}
/* scattered background elements (exact Figma spots: spark groups + small stars) */
.started__spark--1 { left: 8%;  top: 6%;  width: clamp(28px, 3vw, 52px); }
.started__spark--2 { right: 4%; bottom: 4%; width: clamp(28px, 3vw, 48px); }
.started__spark--3 { left: 62%; top: 10%; width: clamp(26px, 2.8vw, 46px); }
.started__star--1 { left: 35%; top: 82%; width: 30px; height: 30px; color: #0A2869; }
.started__star--2 { left: 62%; top: 52%; width: 44px; height: 44px; color: #1582FF; }
.started__star--3 { right: -2%; top: 8%; width: 24px; height: 24px; color: #1582FF; }
.started__star--4 { left: 46%; top: 18%; width: 24px; height: 24px; color: #1582FF; }
@media (prefers-reduced-motion: no-preference) {
	.started__spark--1, .started__spark--2, .started__spark--3 { animation: ifal-twinkle-a 4.6s ease-in-out infinite; }
	.started__spark--3 { animation-delay: .7s; }
	.about-star { animation: ifal-float-b 6s ease-in-out infinite; }
}
@keyframes ifal-twinkle-a { 0%,100% { opacity: .95 } 50% { opacity: .5 } }

/* ---------------- WHO WE ARE (node 0:916) ---------------- */
.who {
	position: relative; overflow: visible;                 /* the phone bleeds below, behind the next section */
	background: linear-gradient(229.25deg, #06104B 9.32%, #192C86 125.69%), #19235F;   /* exact */
	min-height: min(46.56vw, 894px);                       /* exact section height @1920 */
	display: flex; align-items: center;
	padding-block: 60px;
}
.who__clip { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }   /* keeps the blurred glow inside */
/* exact Figma side fades (nodes 0:920/0:921) - same recipe as the feedback section */
.who__clip::before, .who__clip::after { content: ""; position: absolute; top: 0; bottom: 0; width: min(29.7vw, 570px); }
.who__clip::before { left: 0;  background: linear-gradient(90deg, #192C86 23.6%, rgba(25, 44, 134, 0) 71.1%); }
.who__clip::after  { right: 0; background: linear-gradient(270deg, #121A5B 23.6%, rgba(18, 26, 91, 0) 71.1%); }
.who__glow {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(32% 52% at 19.5% 100%, rgba(68, 0, 255, .60), transparent 74%),
		radial-gradient(34% 44% at 49.6% 105%, rgba(120, 71, 255, .55), transparent 74%),
		radial-gradient(32% 52% at 80.5% 100%, rgba(0, 38, 255, .55), transparent 74%);
	filter: blur(40px);
}
.who__inner {
	position: relative; z-index: 1;
	width: min(var(--shell-max), 100% - 2 * var(--shell-pad)); margin-inline: auto;
	display: flex; align-items: center; gap: 60px;
	min-height: 480px;
}
.who .who__phone {
	position: absolute; left: 11.45%; bottom: min(-11.7vw, -225px);   /* exact Figma: x=11.45%, bleeds 225px below */
	width: min(19.8vw, 380px); height: auto; z-index: 1;
	filter: drop-shadow(0 30px 60px rgba(0, 0, 40, .45));
	will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
	.who .who__phone { animation: who-float 6.5s ease-in-out infinite; }
}
@keyframes who-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }
/* glow ring behind the phone (Figma ellipses 1226/1227) */
.who__inner::before {
	content: ""; position: absolute; z-index: 0; pointer-events: none;
	left: 4%; top: -12%; width: 38%; aspect-ratio: 1;
	background: radial-gradient(48% 48% at 50% 50%, rgba(90, 140, 255, .38), rgba(90, 140, 255, 0) 72%);
	filter: blur(24px);
}
/* Hebrew: phone stays on the LEFT (text on the right), nudged in from the edge */
[dir="rtl"] .who__inner::before { left: 9%; right: auto; }
[dir="rtl"] .who .who__phone { left: 15%; right: auto; }
.who__text { margin-inline-start: auto; width: min(38.6vw, 741px); display: flex; flex-direction: column; gap: 24px; z-index: 2; transform: translateY(min(2vw, 40px)); }   /* exact Figma: 741px wide, slightly below centre */
[dir="rtl"] .who__text { margin-inline-start: 0; margin-inline-end: auto; }
.who .who__title {
	font-family: "Noto Sans Hebrew", sans-serif; font-weight: 900; font-size: 32px; margin: 0;   /* exact */
	background: linear-gradient(90.55deg, #B1B1FF 37.16%, #88C0FF 91.92%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	width: fit-content;
}
.who__body { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 24px; line-height: 1.5; color: #DEE4FF; margin: 0; max-width: 725px; }

/* ---------------- VISION (node 0:943) ---------------- */
.vision { position: relative; z-index: 2; background: #EDF5FF; padding-block: 110px; overflow: hidden; }   /* stacks above the who-phone bleed */
.vision__inner {
	position: relative;
	width: min(var(--shell-max), 100% - 2 * var(--shell-pad)); margin-inline: auto;
	display: flex; align-items: center; gap: 40px;
	min-height: 420px;
}
.vision__text { display: flex; flex-direction: column; gap: 40px; max-width: 864px; z-index: 1; }
.vision__head { display: flex; flex-direction: column; gap: 12px; }
.vision .vision__title { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 900; font-size: 24px; color: #0A2869; margin: 0; }
.vision__sub { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 500; font-size: 24px; color: #0A2869; margin: 0; }
.vision__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.vision__point { display: flex; align-items: center; gap: 8px; }
.vision__check {
	flex: 0 0 20px; width: 20px; height: 20px; border-radius: 40px;
	background: #1582FF; display: grid; place-items: center;        /* exact: blue check */
}
.vision__point-text { font-family: "Noto Sans Hebrew", sans-serif; font-weight: 400; font-size: 20px; line-height: 1.5; color: #626B96; }
.vision .vision__art {
	position: absolute; right: 7%; bottom: 0;
	width: min(27vw, 500px); height: auto; z-index: 0;   /* vector asset 634×549 */
}
[dir="rtl"] .vision .vision__art { right: auto; left: -4%; transform: scaleX(-1); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
	.started__polaroid { width: 300px; padding: 42px 20px 18px; }
	.started .started__photo { height: 250px; }
}
@media (max-width: 980px) {
	/* mobile: TEXT first, image below it, pinned to the section bottom */
	/* keep the homepage wave on mobile (was: rounded corners) */
	.ahero__inner { flex-direction: column; align-items: stretch; min-height: 0; gap: 8px; text-align: center; padding: 110px 24px 0; }
	[dir="rtl"] .ahero__inner { padding: 110px 24px 0; }
	.ahero__text { flex-basis: auto; align-items: center; }
	.ahero__title { font-size: 30px; }
	.ahero__sub { font-size: 18px; margin-inline: auto; }
	.ahero__visual { min-height: 0; display: flex; justify-content: center; align-items: flex-end; }
	.ahero__hand {
		position: relative; display: block; right: auto; top: 0;
		margin: 16px auto calc(-1 * min(19vw, 85px));   /* cut edge sinks fully below the wave's white band */
		width: min(92%, 430px);
	}
	[dir="rtl"] .ahero__hand { left: auto; }
	.ahero__deco { display: none; }   /* the hand comp carries its own bubbles/sparks; the page-wide ones land on the text here */
	.started .about-star, .started .ifal-spark { display: none; }   /* stacked layout - they land on the texts */

	.goal { padding-block: 24px 60px; }
	.goal__inner { gap: 44px; }
	.goal .goal__title { font-size: 26px; }
	.goal__sub { font-size: 19px; }

	.started { padding-block: 56px; }
	.started__inner { flex-direction: column; gap: 44px; }
	.started__polaroid { align-self: center; }

	.who { padding-block: 64px 0; display: flex; flex-direction: column; }
	.who__inner { flex-direction: column; min-height: 0; gap: 32px; order: 1; }
	.who .who__phone { position: relative; left: auto; right: auto; bottom: auto; width: min(48%, 200px); margin: 28px auto -90px; order: 2; }   /* sinks behind the next section - its cut bottom never shows */
	[dir="rtl"] .who .who__phone { left: auto; right: auto; }   /* reset the desktop RTL left:15% so margin:auto centers it */
	.who__text { margin: 0; width: 100%; }
	.who .who__title { font-size: 26px; }
	.who__body { font-size: 19px; }

	.vision { padding-block: 56px 0; }                /* art owns the bottom edge */
	.vision__inner { flex-direction: column; align-items: stretch; min-height: 0; }
	.vision .vision__title, .vision__sub { font-size: 22px; }
	.vision__point-text { font-size: 17px; }
	.vision .vision__art {
		position: relative; right: auto; left: auto; bottom: 0;
		display: block; width: min(72%, 360px);        /* centered, tight to the text */
		margin: 8px auto 0;
	}
	[dir="rtl"] .vision .vision__art { left: auto; }
}

/* ==== Mobile refinements - Figma mobile frame (111:2049) ==== */
@media (max-width: 760px) {
	/* Goal cards: horizontal snap carousel with peek (was a vertical stack) */
	.goal__cards {
		flex-wrap: nowrap; justify-content: flex-start;
		overflow-x: auto; scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-block: 4px 18px;
		scrollbar-width: none;
	}
	.goal__cards::-webkit-scrollbar { display: none; }
	.goal__card { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; }
	/* no per-card fade-up inside the horizontal carousel (cards jumped while swiping) */
	.goal__card.ifal-reveal { opacity: 1; transform: none; transition: none; }
}

/* ==== Mobile typography/spacing pass - Figma mobile frame 111:2049 (375px) ==== */
@media (max-width: 760px) {
	/* hero: title 22, sub 16 */
	.ahero__text { gap: 8px; }
	.ahero__title { font-size: 22px; }
	.ahero__sub { font-size: 16px; }

	/* the goal: eyebrow-style heading (16/700) + statement (18/400), start-aligned */
	.goal { padding-block: 28px 48px; }
	.goal__inner { gap: 28px; }
	.goal__header { align-items: flex-start; text-align: start; gap: 8px; }
	.goal .goal__title { font-size: 16px; }
	.goal__sub { font-size: 18px; line-height: 1.5; }
	.goal__cards { gap: 20px; }
	.goal__card { height: auto; min-height: 0; padding: 24px 16px 28px; justify-content: flex-start; gap: 20px; }
	.goal__card-text { gap: 8px; }
	.goal .goal__card-title { font-size: 16px; }
	.goal__card-body { font-size: 16px; }

	/* how it started */
	.started { padding-block: 48px; }
	.started__inner { gap: 36px; }
	.started__text { gap: 8px; }
	.started .started__title { font-size: 16px; }
	.started__body { gap: 12px; }
	.started__body p { font-size: 16px; }
	.started__polaroid { width: 250px; padding: 36px 18px 16px; }
	.started .started__photo { height: 210px; }
	.started__name { font-size: 16px; }
	.started__role { font-size: 12px; }

	/* who we are */
	.who { padding-top: 48px; }
	.who__text { gap: 12px; }
	.who .who__title { font-size: 16px; }
	.who__body { font-size: 18px; }

	/* vision: eyebrow (16/700) + 24/600 statement, 16px checklist; art ABOVE the texts (Figma) */
	.vision { padding-top: 48px; display: flex; flex-direction: column; }
	.vision .vision__art { order: -1; margin: 0 auto 24px; }
	.vision__text { gap: 24px; }
	.vision__head { gap: 8px; }
	.vision .vision__title { font-size: 16px; }
	.vision__sub { font-size: 24px; font-weight: 600; line-height: 1.4; }
	.vision__points { gap: 16px; }
	.vision__point-text { font-size: 16px; line-height: 1.3; }
}
