/* ==========================================================================
   Pricing / the app ("האפליקציה") — Figma 428:81645 (desktop), 575:101974 (mobile)
   ========================================================================== */

.page-pricing {
	--pr-card-border: 1px solid rgba(20, 24, 52, .5);
	--pr-card-shadow: 0 8px 16px rgba(19, 24, 53, .08);
	--pr-lime: #65c202;
}

/* Shared section title (42px Medium) */
.pr-title { font-size: clamp(32px, 2.19vw, 42px); font-weight: 500; line-height: 1.2; text-align: center; }

/* ---------- Hero ---------- */
.pr-hero { padding-top: 179px; text-align: center; }
.pr-hero__kicker { font-size: clamp(20px, 1.46vw, 28px); font-weight: 500; line-height: 1.2; }
.pr-hero__title { margin-top: 6px; font-size: clamp(32px, 2.71vw, 52px); font-weight: 500; line-height: 1.2; }
.pr-hero__lead { max-width: 600px; margin: 27px auto 0; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.85; }

.pr-compare {
	display: flex; justify-content: center; gap: 34px;
	margin-top: 47px;
}
.pr-compare__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 13px; width: 300px; }
/* 1px dividers centred in the 34px gap, spanning label + box (152px) */
.pr-compare__item + .pr-compare__item::before {
	content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: -17.5px;
	width: 1px; background: var(--c-line);
}
.pr-compare__label { font-size: 20px; font-weight: 500; line-height: 1.2; }
.pr-compare__box {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	width: 100%; height: 115px; padding-bottom: 4px;
	border: var(--pr-card-border); border-radius: 16px;
	background: #fff; box-shadow: var(--pr-card-shadow);
}
.pr-compare__price { position: relative; font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.pr-compare__num { font-size: 32px; }
.pr-compare__price small { font-size: 16px; }
.pr-compare__note { position: relative; margin-top: 5px; font-size: 16px; line-height: 1.2; }
.pr-compare__item--ours .pr-compare__box { background: var(--c-forest); color: #fff; }
.pr-compare__swirl { position: absolute; inset-inline-end: 15px; bottom: 0; width: 102px; height: 100px; max-width: none; }

.pr-hero__cta { margin-top: 68px; }

/* ---------- Plans ---------- */
.pr-plans { padding-top: 148px; }
.pr-plans__grid {
	display: flex; justify-content: center; align-items: flex-start; gap: 25px;
	margin-top: 47px;
}
.pr-plan {
	position: relative; isolation: isolate;
	display: flex; flex-direction: column;
	flex: 0 1 308px; min-height: 488px;
	padding: 49px 27px 25px;
	border: var(--pr-card-border); border-radius: 16px;
	background: #fff; box-shadow: 0 8px 8px rgba(19, 24, 53, .08);
}
.pr-plan__bg { position: absolute; z-index: -1; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; border-radius: 16px; pointer-events: none; }
.pr-plan__bg--annual { inset: auto 0 0; width: 100%; height: auto; border-radius: 0 0 16px 16px; clip-path: inset(0 round 0 0 16px 16px); }
.pr-plan__badge {
	position: absolute; top: -14px; inset-inline-start: 26px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 8px 10px; border-radius: 10px;
	background: var(--c-navy); color: #fff;
	font-size: 16px; font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.pr-plan__badge img { width: 16px; height: 20.4px; }
.pr-plan__title { font-size: 32px; font-weight: 700; line-height: 1.1; }
.pr-plan__list { margin-top: 59px; }
.pr-plan__list li {
	display: flex; align-items: center; gap: 13px;
	min-height: 22.86px; font-size: 16px; font-weight: 500; line-height: 1.4;
}
.pr-plan__list li + li { margin-top: 8px; }
.pr-plan__list li::before {
	content: ""; flex: none; width: 22.86px; height: 22.86px;
	background: url("../../img/pricing/check-navy.svg") center / contain no-repeat;
}
.pr-plan__price { margin-top: auto; padding-top: 24px; }
.pr-plan__label { font-size: 16px; line-height: 1.4; }
.pr-plan__amount { font-size: 16px; line-height: 1.1; white-space: nowrap; }
.pr-plan__amount strong { font-size: 32px; font-weight: 700; }
.pr-plan__cur { font-size: 20px; }
.pr-plan__per { margin-inline-start: 6px; line-height: 1.4; }
.pr-plan__btn {
	display: flex; align-items: center; justify-content: center;
	height: 55px; margin-top: 20px; border-radius: 50px;
	background: var(--c-navy); color: #fff;
	font-size: 16px; font-weight: 700; line-height: 1.4;
	transition: background-color .3s, transform .35s var(--ease-out);
}
.pr-plan__btn:hover { background: var(--c-forest); }

.pr-plan--featured { margin-top: -5px; background: var(--c-forest); color: #fff; }
.pr-plan--featured .pr-plan__badge { background: var(--pr-lime); inset-inline-start: 26px; }
.pr-plan--featured .pr-plan__title { margin-top: 3px; }
.pr-plan--featured .pr-plan__list li { font-weight: 400; }
.pr-plan--featured .pr-plan__list li::before { background-image: url("../../img/pricing/check-lime.svg"); }
.pr-plan--featured .pr-plan__btn { background: var(--pr-lime); }
.pr-plan--featured .pr-plan__btn:hover { background: #57a802; }

/* ---------- Download & install ---------- */
.pr-install { padding-top: 121px; }
.pr-install__head { text-align: center; }
.pr-install__sub { margin-top: 9px; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.85; }

.pr-steps { display: flex; flex-direction: column; gap: 42px; max-width: 960px; margin: 46px auto 0; }
.pr-step {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
	min-height: 520px;
	border: var(--pr-card-border); border-radius: 16px;
	background: #fff; box-shadow: var(--pr-card-shadow);
}
.pr-step__text { position: relative; z-index: 1; align-self: center; padding: 40px 0 40px 0; padding-inline-start: clamp(40px, 4.9vw, 94px); }
.pr-step__label { font-size: 20px; font-weight: 500; line-height: 1.2; color: var(--c-green); }
.pr-step__title { margin-top: 11px; font-size: 28px; font-weight: 500; line-height: 1.2; }
.pr-step--android .pr-step__title { margin-top: 0; }
.pr-step__list { margin-top: 11px; padding-inline-start: 20px; list-style: disc; font-size: 20px; line-height: 36px; }
.pr-step__list--num { list-style: decimal; }
.pr-step--android .pr-step__list { margin-top: 26px; }
.pr-step__list li { padding-inline-start: 10px; }
.pr-step__list li::marker { font-size: .9em; }

.pr-step__media { position: relative; }
.pr-step__phone {
	/* physical left: the phone art is placed from the card's left edge as in Figma */
	position: absolute; left: var(--phone-x, 6px);
	top: var(--phone-top, 56px); width: var(--phone-w, 534px); max-width: none;
}
.pr-step__phone img { width: 100%; height: auto; }
.pr-step--ios { --phone-top: 56px; --phone-w: 534px; --phone-x: 6px; }
.pr-step--android { --phone-top: 23px; --phone-w: 358px; --phone-x: 82px; }
.pr-step--plain { --phone-top: 75px; --phone-w: 272px; --phone-x: 136px; }

/* Store badge ("הורדה מ- App Store") */
.pr-store {
	display: inline-flex; align-items: center; gap: 13px;
	height: 70px; margin-top: 22px; padding-inline: 18px 23px;
	border: 1px solid var(--c-navy); border-radius: 10px;
	transition: background-color .3s, transform .35s var(--ease-out);
}
.pr-store:hover { background: var(--c-mint-2); transform: translateY(-2px); }
.pr-store__icon { flex: none; width: 38px; height: 38px; }
.pr-step--android .pr-store__icon { width: 35px; height: 35px; }
.pr-store__text { display: flex; flex-direction: column; text-align: start; }
.pr-store__kicker { font-size: 14px; line-height: 21px; }
.pr-store__name { font-size: 22px; font-weight: 500; line-height: 28px; white-space: nowrap; }

/* System requirements + getting started */
.pr-reqs {
	display: grid; grid-template-columns: 416px minmax(0, 1fr);
	margin-top: 4px; /* 46px from the last step card in Figma */
	padding-block: 62px 65px; padding-inline: 95px 99px;
	border: var(--pr-card-border); border-radius: 16px;
	background: #fff; box-shadow: var(--pr-card-shadow);
}
.pr-reqs__title { padding-bottom: 27px; border-bottom: 1px solid var(--c-line); font-size: 28px; font-weight: 500; line-height: 1.2; }
.pr-reqs__list { margin-top: 29px; font-size: 18px; line-height: 36px; }
.pr-reqs__list--num { padding-inline-start: 18px; list-style: decimal; }
.pr-reqs__list--num li { padding-inline-start: 9px; }

/* ---------- FAQ ---------- */
.pr-faq { padding-top: 92px; padding-bottom: 113px; }
.pr-faq__list { max-width: 968px; margin: 60px auto 0; border-bottom: 1px solid var(--c-navy); }
.pr-faq__item { border-top: 1px solid var(--c-navy); }
.pr-faq__q { min-height: 80px; padding-block: 12px; font-size: clamp(20px, 1.25vw, 24px); font-weight: 500; line-height: 1.2; }
.pr-faq__q:hover { color: var(--c-forest); }
.pr-faq__icon { width: 31px; height: 31px; border-radius: 50%; background: var(--c-forest); transition: transform .45s var(--ease-out), background-color .3s; }
.pr-faq__icon::before, .pr-faq__icon::after { left: 7.75px; right: 7.75px; height: 1.55px; margin-top: -.775px; background: var(--c-mint-2); }
.pr-faq__q:hover .pr-faq__icon { background: var(--c-green); }
.pr-faq__a { max-width: 736px; padding-bottom: 41px; font-size: clamp(16px, 1.04vw, 20px); line-height: 1.4; }

/* ---------- Countdown CTA (src/partials/pricing-cta.html, inside footer.has-cta) ---------- */
.pr-cta { padding-top: 80px; } /* card top 80px + 110px = navy start at 190px (base gradient) */
.pr-cta__card {
	display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 23.23vw, 446px);
	align-items: center; min-height: 273px;
	padding-inline: clamp(40px, 3.9vw, 75px) 0;
}
.pr-cta__text { position: relative; z-index: 2; padding-block: 50px; }
.pr-cta__title { font-size: clamp(28px, 2.19vw, 42px); font-weight: 500; line-height: 1.2; }
.pr-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 33px; }
.pr-cta__actions .sv-btn { width: 327px; }
.pr-cta__chat {
	display: inline-flex; align-items: center; justify-content: center; gap: 26px;
	width: 296px; height: 57px; padding-inline: 36px 45px;
	border: 1px solid #fff; border-radius: 50px;
	font-size: 18px; font-weight: 700; line-height: 1.4; white-space: nowrap;
	transition: background-color .3s, transform .35s var(--ease-out);
}
.pr-cta__chat img { flex: none; width: 29px; height: auto; }
.pr-cta__chat:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.pr-cta__phone {
	position: absolute; z-index: 1; bottom: 0; top: -50px;
	left: clamp(240px, 23.23vw, 446px); width: 371px; /* physical: phone sits just right of the timer column */
	overflow: hidden; pointer-events: none;
}
.pr-cta__phone img { width: 100%; height: auto; }
.pr-cta__timer {
	position: relative; z-index: 2;
	display: flex; align-items: center; justify-content: flex-start; gap: clamp(16px, 1.9vw, 37px);
	direction: ltr; justify-self: start; margin-right: 15px; /* right edge fixed; extra hour digits grow leftwards */
	font-size: clamp(36px, 2.71vw, 52px); font-weight: 500; line-height: 1.2; white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.pr-cta__timer i { font-style: normal; font-size: .81em; }
.pr-cta__timer .is-tick { animation: pr-tick .5s var(--ease-out); }
@keyframes pr-tick { from { opacity: .35; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pr-cta__timer span { display: inline-block; }

@media (max-width: 1500px) {
	.pr-cta__phone { display: none; }
}

/* ---------- Fluid desktop (900–1440) ---------- */
@media (max-width: 1200px) {
	.pr-compare { gap: 24px; }
	.pr-compare__item { flex: 0 1 300px; width: auto; }
	.pr-compare__item + .pr-compare__item::before { inset-inline-start: -12.5px; }
	.pr-step { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
	.pr-step--ios { --phone-w: 440px; --phone-x: 0px; }
	.pr-step--android { --phone-x: 30px; }
	.pr-step--plain { --phone-x: 70px; }
	.pr-reqs { grid-template-columns: 1fr 1fr; padding-inline: 60px; }
	.pr-cta__actions .sv-btn, .pr-cta__chat { width: auto; }
}

/* ---------- Mobile (≤900, Figma 390) ---------- */
@media (max-width: 900px) {
	.pr-title { font-size: 32px; }

	.pr-hero { padding-top: 154px; }
	.pr-hero__kicker { font-size: 20px; }
	.pr-hero__title { max-width: 304px; margin: 7px auto 0; font-size: 32px; }
	.pr-hero__lead { max-width: 356px; margin-top: 20px; font-size: 16px; line-height: 28px; }
	.pr-compare { flex-direction: column-reverse; align-items: center; gap: 30px; margin-top: 30px; }
	.pr-compare__item { flex: none; width: 300px; max-width: 100%; }
	.pr-compare__item + .pr-compare__item::before { display: none; }
	.pr-hero__cta { display: none; }

	.pr-plans { padding-top: 84px; }
	.pr-plans__grid { flex-direction: column; align-items: center; gap: 39px; margin-top: 48px; }
	.pr-plan { flex: none; width: 308px; max-width: 100%; }
	.pr-plan--featured { margin-top: 0; }

	.pr-install { padding-top: 65px; }
	.pr-install__sub { margin-top: 11px; font-size: 16px; line-height: 28px; }
	.pr-steps { gap: 28px; max-width: 308px; margin-top: 35px; }
	.pr-step { display: flex; flex-direction: column; min-height: 0; }
	.pr-step__text { align-self: stretch; padding: 25px 20px 0; }
	.pr-step--android .pr-step__text { padding-top: 29px; }
	.pr-step__title { margin-top: 11px; font-size: 24px; }
	.pr-step--ios .pr-step__title { max-width: 160px; }
	.pr-step__list { margin-top: 18px; font-size: 16px; padding-inline-start: 18px; }
	.pr-step--android .pr-step__list { margin-top: 12px; }
	.pr-store { display: flex; justify-content: center; margin: 28px 6px 0; }
	.pr-step--android .pr-store { margin-top: 21px; }
	.pr-step__media { flex: none; height: var(--phone-h); margin-top: var(--phone-gap); }
	.pr-step__phone { top: 0; left: 0; right: 0; margin-inline: auto; }
	.pr-step--ios { --phone-w: 258px; --phone-h: 224px; --phone-gap: 11px; }
	.pr-step--ios .pr-step__phone { left: 30px; right: auto; margin: 0; }
	.pr-step--android { --phone-w: 233px; --phone-h: 239px; --phone-gap: 0px; }
	.pr-step--plain { --phone-w: 140px; --phone-h: 194px; --phone-gap: 21px; }

	.pr-reqs { grid-template-columns: 1fr; row-gap: 32px; margin-top: 0; padding: 25px 20px 30px; }
	.pr-reqs__title { padding-bottom: 14px; font-size: 24px; }
	.pr-reqs__list { margin-top: 16px; font-size: 16px; line-height: 32px; }

	.pr-faq { padding-top: 65px; padding-bottom: 80px; }
	.pr-faq__list { margin-top: 32px; }
	.pr-faq__q { min-height: 64px; font-size: 18px; }
	.pr-faq__a { padding-bottom: 24px; font-size: 16px; }

	/* CTA: no countdown variant in the mobile design; follows the default mobile CTA card. */
	.pr-cta { padding-top: 0; }
	.pr-cta__card {
		display: flex; flex-direction: column; align-items: center; text-align: center;
		min-height: 0; padding: 36px 20px 34px;
	}
	.pr-cta__text { display: contents; }
	.pr-cta__title { order: 1; max-width: 286px; font-size: 28px; }
	.pr-cta__timer { order: 2; justify-self: auto; margin: 18px 0 0; padding: 0; gap: 14px; font-size: 40px; }
	.pr-cta__phone { order: 3; display: block; position: relative; inset: auto; width: 260px; height: 200px; margin-top: 12px; }
	.pr-cta__phone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16, 93, 59, 0) 35.893%, #207246 82.225%); }
	.pr-cta__actions { order: 4; position: relative; z-index: 2; flex-direction: column; gap: 14px; margin-top: -40px; }
	.pr-cta__actions .sv-btn, .pr-cta__chat { width: 290px; max-width: 100%; }
	.pr-cta__actions .sv-btn { padding-inline: 52px 16px; font-size: 16px; }
}
