/* هویت جیبی (۱.۶.۰): آبی جین + پرچ مسی + خط دوخت نقطه‌چین.
 * بعد از rz.css بارگذاری می‌شود: اول پوسته کلی (دکمه، تیتر، نوارها)، بعد بخش‌های جیبی صفحه اصلی. */

:root { --stitch-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M4 5H96V80L50 95L4 80Z' fill='none' stroke='%23f2a34a' stroke-width='1.6' stroke-dasharray='6 5' vector-effect='non-scaling-stroke' opacity='.85'/%3E%3C/svg%3E"); }

.rz-h1, .rz-h2, .rz-contact__t, .rz-about__big, .jb-h1 { font-family: var(--display); font-weight: 400; letter-spacing: 0; }
.rz-h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); line-height: 1.35; }
.rz-about__big { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.55; }
.rz-eyebrow { color: var(--rivet); }
:root[data-theme="dark"] .rz-eyebrow { color: var(--rivet-hi); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rz-eyebrow { color: var(--rivet-hi); } }

.rz-btn { border-radius: 999px; }
.rz-btn--primary { background: var(--denim); color: var(--denim-ink); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--denim) 80%, transparent); }
.rz-btn--primary:hover { background: var(--rivet); color: #1c1205; }
.rz-btn:active { transform: scale(.97); }
.rz-nav a.is-on { color: var(--accent); }

/* نشان جیبی: یک جیب کوچک */
.jb-mark {
	display: inline-grid; place-items: center; flex: none; width: 34px; height: 38px; padding-bottom: 5px;
	background: var(--denim); color: var(--denim-ink); font-family: var(--display); font-size: 1.15rem; line-height: 1;
	clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.rz-mark { flex-direction: row; align-items: center; gap: 10px; }
.rz-mark__txt { display: flex; flex-direction: column; line-height: 1.2; }
.rz-mark__fa { font-family: var(--display); font-weight: 400; font-size: 1.35rem; }
.rz-mark__en { letter-spacing: 0; text-transform: none; font-size: .72rem; }
.rz--en .rz-mark__fa { font-family: var(--font); font-weight: 900; font-size: 1.1rem; }

/* نوار تماس و فوتر: جین تیره با بافت و دوخت */
.rz-contact, .rz-foot {
	--paper: #f3f5ff; --ink: #141b3d;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 6px), #16224f;
	color: #f3f5ff;
}
.rz-contact { position: relative; }
.rz-contact::before { content: ""; position: absolute; inset: 14px; border: 1.6px dashed rgba(242, 163, 74, .55); border-radius: 26px; pointer-events: none; }
.rz-contact .rz-eyebrow { color: #f2a34a; }
.rz-contact .rz-lead { color: rgba(243, 245, 255, .78); }
.rz-foot { color: rgba(243, 245, 255, .72); border-top: 1.6px dashed rgba(242, 163, 74, .4); }

/* ---------- هیرو جیبی ---------- */

.jb-hero { text-align: start; padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); }
.jb-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: radial-gradient(ellipse 60% 70% at 70% 40%, color-mix(in srgb, var(--denim) 16%, transparent), transparent 70%);
}
.jb-hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: clamp(32px, 6vw, 88px); }
.jb-hero__txt { display: flex; flex-direction: column; align-items: flex-start; }
.jb-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.5rem; color: var(--accent); }
.jb-h1 { font-size: clamp(3rem, 1.6rem + 6vw, 6.5rem); line-height: 1.15; margin-top: 14px; text-wrap: balance; }
.rz--en .jb-h1 { font-family: var(--font); font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); }
.jb-hero .rz-lead { margin: 22px 0 0; text-align: start; }
.jb-hero .rz-actions { justify-content: flex-start; margin-top: 34px; }

.jb-hero__demo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.jb-hero__demo figcaption { font-size: .85rem; color: var(--ink-3); text-align: center; max-width: 36ch; }
.jb-hero__demo figcaption a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.jb-phone {
	position: relative; width: 340px; max-width: 100%; height: min(700px, 82vh); min-height: 560px; flex: none;
	border: 10px solid #0d1230; border-radius: 50px; overflow: hidden; background: var(--paper);
	box-shadow: 0 50px 90px -30px rgba(20, 27, 61, .45), 0 0 0 1px var(--line);
	transform: rotate(-2deg); transition: transform .6s var(--ease);
}
.jb-phone:hover, .jb-phone:focus-within { transform: none; }
.jb-phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.jb-phone__tap { display: none; }
@media (hover: none) {
	.jb-phone__tap {
		position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 110px;
		background: linear-gradient(to top, rgba(10, 15, 38, .45), transparent 45%);
	}
	.jb-phone__tap span { padding: 10px 20px; border-radius: 999px; background: #f09233; color: #1c1205; font-weight: 800; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
	.jb-phone.is-live .jb-phone__tap { display: none; }
}
@media (max-width: 900px) {
	.jb-hero__in { grid-template-columns: minmax(0, 1fr); }
	.jb-hero__txt { align-items: center; text-align: center; }
	.jb-hero .rz-lead { text-align: center; margin-inline: auto; }
	.jb-hero .rz-actions { justify-content: center; }
	.jb-phone { transform: none; height: 640px; min-height: 0; }
}

/* ---------- قابلیت‌ها (بنتو) ---------- */

.jb-bento { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.jb-cell {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg);
	background: var(--card); border: 1px solid var(--line); overflow: hidden; text-align: start;
}
.jb-cell h3 { font-size: 1.15rem; font-weight: 800; margin-top: auto; padding-top: 18px; }
.jb-cell p { color: var(--ink-2); font-size: .95rem; line-height: 1.8; }
.jb-cell--today { grid-row: span 2; background: linear-gradient(180deg, color-mix(in srgb, var(--denim) 10%, var(--card)), var(--card) 60%); }
.jb-cell--ai { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; align-items: end; }
.jb-cell--ai .jb-chat { grid-row: span 2; }
.jb-cell--ai h3 { padding-top: 0; }

.jb-mini-pocket {
	position: relative; padding: 28px 26px 58px; color: #f3f5ff; display: flex; flex-direction: column; gap: 2px;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 6px), linear-gradient(160deg, color-mix(in srgb, var(--denim) 85%, #fff), var(--denim) 60%);
	clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%); border-radius: 18px 18px 0 0;
}
.jb-mini-pocket::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--stitch-svg) center / 100% 100% no-repeat; }
.jb-mini-pocket small { font-size: .82rem; opacity: .85; }
.jb-mini-pocket b { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 2.7rem); line-height: 1.3; font-variant-numeric: tabular-nums; }
.jb-rivet { position: absolute; top: 13px; inset-inline-start: 13px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe0b0, #d97a12 55%, #7a3e05); box-shadow: 0 1px 2px rgba(0, 0, 0, .4); z-index: 1; }
.jb-rivet--2 { inset-inline-start: auto; inset-inline-end: 13px; }

.jb-mini-order { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.jb-mini-order > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.5; }
.jb-mini-order small { color: var(--ok); font-size: .8rem; font-weight: 700; }
.jb-ava { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 900; flex: none; }
.jb-ok { font-style: normal; font-size: .85rem; font-weight: 800; padding: 6px 14px; border-radius: 999px; background: var(--denim); color: var(--denim-ink); }
@media (prefers-reduced-motion: no-preference) {
	.jb-mini-order { animation: jb-swipe 4.5s var(--ease) infinite; }
	.jb-island { animation: jb-drop 5s var(--ease) infinite; }
}
@keyframes jb-swipe { 0%, 55% { transform: none; } 70% { transform: translateX(26px) rotate(1.5deg); } 82%, 100% { transform: none; } }
@keyframes jb-drop { 0% { transform: translateY(-14px); opacity: 0; } 12%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(-14px); opacity: 0; } }

.jb-stepper { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--paper-2); }
.jb-stepper span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--card); font-size: 1.2rem; font-weight: 700; }
.jb-stepper b { min-width: 3ch; text-align: center; font-size: 1.2rem; }

.jb-toggles { display: flex; flex-direction: column; gap: 10px; }
.jb-toggles span { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .92rem; }
.jb-toggles i { position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--line-2); flex: none; }
.jb-toggles i::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.jb-toggles i.is-on { background: var(--ok); }
.jb-toggles i.is-on::after { inset-inline-start: auto; inset-inline-end: 3px; }

.jb-island { display: flex; flex-direction: column; padding: 12px 16px; border-radius: 22px; background: #0d1230; color: #f3f5ff; line-height: 1.5; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.jb-island small { opacity: .75; }

.jb-chat { display: flex; flex-direction: column; gap: 8px; }
.jb-chat span { max-width: 92%; padding: 10px 14px; border-radius: 18px; font-size: .92rem; }
.jb-chat__me { align-self: flex-start; background: var(--denim); color: var(--denim-ink); border-end-start-radius: 6px; }
.jb-chat__ai { align-self: flex-end; background: var(--paper-2); border-end-end-radius: 6px; }

@media (max-width: 900px) {
	.jb-bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.jb-cell--today { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 600px) {
	.jb-bento { grid-template-columns: minmax(0, 1fr); }
	.jb-cell--today, .jb-cell--ai { grid-column: auto; }
	.jb-cell--ai { grid-template-columns: minmax(0, 1fr); }
	.jb-cell--ai .jb-chat { grid-row: auto; }
}

/* ---------- راه‌اندازی ---------- */

.jb-how { background: var(--paper-2); }
.jb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jb-steps li { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--r-lg); border: 1.6px dashed color-mix(in srgb, var(--rivet) 55%, transparent); background: var(--card); text-align: start; }
.jb-steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--display); font-size: 1.4rem; color: #1c1205; background: radial-gradient(circle at 35% 30%, #f2a34a, #d97a12); }
.jb-steps h3 { font-size: 1.1rem; font-weight: 800; margin-top: 6px; }
.jb-steps p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 760px) { .jb-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- قیمت ---------- */

.jb-price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.jb-how + .rz-sec, .jb-price + .rz-sec { border-top: 0; }
.jb-pocket { position: relative; color: #f3f5ff; isolation: isolate; }
.jb-pocket::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .045) 0 2px, transparent 2px 6px), linear-gradient(160deg, color-mix(in srgb, var(--denim) 85%, #fff), var(--denim) 55%, color-mix(in srgb, var(--denim) 80%, #000));
	clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); border-radius: 28px 28px 0 0;
}
.jb-pocket::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--stitch-svg) center / 100% 100% no-repeat; }
.jb-pocket .jb-rivet { top: 18px; inset-inline-start: 18px; }
.jb-pocket .jb-rivet--2 { inset-inline-start: auto; inset-inline-end: 18px; }
.jb-pocket__in { padding: 44px 40px 110px; display: flex; flex-direction: column; gap: 6px; }
.jb-price__name { font-family: var(--display); font-weight: 400; font-size: 1.6rem; opacity: .9; }
.jb-price__amount { font-size: 1.1rem; }
.jb-price__amount strong { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 2rem + 3vw, 4rem); line-height: 1.2; font-variant-numeric: tabular-nums; }
.jb-price__terms { opacity: .8; }
.jb-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.jb-checks li { position: relative; padding-inline-start: 28px; line-height: 1.7; }
.jb-checks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .4em; width: 7px; height: 13px; border-right: 2.4px solid #f2a34a; border-bottom: 2.4px solid #f2a34a; transform: rotate(45deg); }
.jb-price__act { display: flex; flex-direction: column; gap: 14px; text-align: start; }
.jb-price__h { font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); line-height: 1.4; }
.jb-price__act > p { color: var(--ink-2); max-width: 46ch; }
.jb-wait { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.jb-wait .rz-field input { width: 100%; }
.jb-msg { padding: 12px 16px; border-radius: 14px; font-weight: 700; }
.jb-msg--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.jb-msg--err { background: color-mix(in srgb, var(--err) 14%, transparent); color: var(--err); }
@media (max-width: 860px) {
	.jb-price { grid-template-columns: minmax(0, 1fr); }
	.jb-pocket__in { padding: 40px 28px 96px; }
}

/* ---------- فاز بعد ---------- */

.jb-soon { padding-top: 0; }
.jb-soon__card { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 64px); border-radius: 32px; border: 2px dashed color-mix(in srgb, var(--rivet) 60%, transparent); }
.jb-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: color-mix(in srgb, var(--rivet) 16%, transparent); color: #9a5200; font-weight: 800; font-size: .88rem; }
:root[data-theme="dark"] .jb-tag { color: var(--rivet-hi); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .jb-tag { color: var(--rivet-hi); } }
