/* YekVest home page v2 (Persian). Loaded after preview.css, which still provides the header, mobile menu and footer.
   Every class here starts with yh-. Tokens first; the dark theme only re-defines tokens. */

.yh-main {
	--yh-bg: #f6f7fa;
	--yh-surface: #ffffff;
	--yh-soft: #eef1f7;
	--yh-ink: #10141f;
	--yh-muted: #5b6476;
	--yh-line: #e1e5ee;
	--yh-blue: #2554e8;
	--yh-blue-2: #3e6df2;
	--yh-navy: #0b1220;
	--yh-mint: #12a97c;
	--yh-up: #0e8f63;
	--yh-down: #c23b3b;
	--yh-gold: #f0a924;
	--yh-teal: #1fbfa9;
	--yh-coral: #f0645b;
	--yh-violet: #7b5cff;
	--yh-y-a: #14275f;
	--yh-y-b: #2554e8;
	--yh-y-c: #6f9bff;
	--yh-y-d: #2a57d8;
	--yh-shadow: 0 1px 2px rgba(16, 20, 31, .05), 0 18px 44px rgba(16, 20, 31, .08);
	--yh-radius: 28px;
	background: var(--yh-bg);
	color: var(--yh-ink);
	font-family: inherit;
}
html[data-theme="dark"] .yh-main {
	--yh-bg: #0b0f1a;
	--yh-surface: #141a28;
	--yh-soft: #1b2333;
	--yh-ink: #f1f3f7;
	--yh-muted: #9aa3b5;
	--yh-line: #262f42;
	--yh-blue: #5b87ff;
	--yh-blue-2: #7ea0ff;
	--yh-up: #34c98a;
	--yh-down: #f0605f;
	--yh-y-a: #3a5cc9;
	--yh-y-b: #7ea0ff;
	--yh-y-c: #a9c3ff;
	--yh-y-d: #5b87ff;
	--yh-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 44px rgba(0, 0, 0, .35);
}

.yh-main *, .yh-main *::before, .yh-main *::after { box-sizing: border-box; }
.yh-main h1, .yh-main h2, .yh-main h3, .yh-main p, .yh-main ul { margin: 0; padding: 0; }
.yh-main ul { list-style: none; }
:where(.yh-main a) { color: inherit; text-decoration: none; }
.yh-wrap { width: min(1192px, 100% - 48px); margin-inline: auto; }

/* ---- Shared pieces ---- */
.yh-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--yh-blue); font-size: 14px; font-weight: 800; }
.yh-eyebrow span { width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.yh-kicker { color: var(--yh-blue); font-size: 13px; font-weight: 800; letter-spacing: .01em; }
.yh-section { padding-block: clamp(24px, 3.4vw, 44px); }
.yh-head { display: grid; gap: 10px; max-width: 700px; margin-bottom: clamp(28px, 4vw, 48px); }
.yh-head h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; line-height: 1.45; text-wrap: balance; }
.yh-head p:not(.yh-kicker) { color: var(--yh-muted); font-size: 16px; line-height: 2; }
.yh-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.yh-head--row > div { display: grid; gap: 10px; }

.yh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px;
	border-radius: 16px; border: 1.5px solid transparent; font-size: 15px; font-weight: 800; cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.yh-btn:focus-visible, .yh-link:focus-visible, .yh-tools__grid a:focus-visible, .yh-post a:focus-visible { outline: 3px solid color-mix(in srgb, var(--yh-blue) 45%, transparent); outline-offset: 3px; }
.yh-btn--primary { color: #fff; background: linear-gradient(145deg, #3a6bf4, #2145c9); box-shadow: 0 14px 30px rgba(37, 84, 232, .32); }
.yh-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(37, 84, 232, .4); }
.yh-btn--ghost { color: var(--yh-ink); background: var(--yh-surface); border-color: var(--yh-line); }
.yh-btn--ghost:hover { border-color: var(--yh-blue); color: var(--yh-blue); }
.yh-btn--light { color: #14275f; background: #fff; box-shadow: 0 12px 28px rgba(8, 20, 70, .25); }
.yh-btn--light:hover { transform: translateY(-2px); }
.yh-btn--outline { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.yh-btn--outline:hover { background: rgba(255, 255, 255, .18); }
.yh-btn--lg { min-height: 60px; padding: 0 34px; font-size: 16px; }
.yh-link { display: inline-flex; align-items: center; gap: 8px; color: var(--yh-blue); font-size: 14px; font-weight: 800; }
.yh-link:hover span { transform: translateX(-4px); }
.yh-link span { transition: transform .18s ease; }
.yh-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.yh-actions--center { justify-content: center; }

/* The apps' category tile */
.yh-tile {
	display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; color: #fff;
	background: linear-gradient(145deg, var(--t1), var(--t2));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38), 0 6px 14px color-mix(in srgb, var(--t2) 32%, transparent);
}
.yh-tile svg { width: 23px; height: 23px; }
.yh-tile--coin { --t1: #f8cb52; --t2: #d18608; }
.yh-tile--gold { --t1: #f3b33a; --t2: #bf7408; }
.yh-tile--metal { --t1: #aab7c9; --t2: #66768d; }
.yh-tile--crypto { --t1: #9570ff; --t2: #5a33d4; }
.yh-tile--currency { --t1: #2fd6c0; --t2: #0e8587; }
.yh-tile--stock { --t1: #ff8468; --t2: #d52f55; }
.yh-tile--equity { --t1: #5290ff; --t2: #1d4cd6; }
.yh-tile--fixed { --t1: #7f86ff; --t2: #4545cf; }
.yh-tile--fund { --t1: #3cc0fa; --t2: #0368a6; }
.yh-tile--other { --t1: #a5b0c4; --t2: #6a768b; }

/* ---- Hero ---- */
.yh-hero { position: relative; padding-top: calc(var(--yv-header-height, 82px) + clamp(28px, 5vw, 64px)); padding-bottom: clamp(36px, 5vw, 72px); overflow: hidden; }
.yh-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background:
		radial-gradient(640px 420px at 12% 18%, color-mix(in srgb, var(--yh-blue) 16%, transparent), transparent 70%),
		radial-gradient(520px 380px at 96% 90%, color-mix(in srgb, var(--yh-violet) 12%, transparent), transparent 70%);
}
.yh-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 72px); }
.yh-hero__copy { display: grid; gap: 22px; justify-items: start; }
.yh-hero h1 { font-size: clamp(34px, 4.7vw, 62px); font-weight: 900; line-height: 1.32; letter-spacing: -.01em; text-wrap: balance; }
.yh-hero h1 em { font-style: normal; color: var(--yh-blue); background: linear-gradient(100deg, var(--yh-blue), #7b5cff 120%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.yh-lead { max-width: 560px; color: var(--yh-muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 2.1; }
.yh-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--yh-muted); font-size: 13.5px; font-weight: 600; }
.yh-checks li { display: inline-flex; align-items: center; gap: 8px; }
.yh-checks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--yh-mint) 20%, transparent) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6.3 2.4 2.4L9.5 3.6' fill='none' stroke='%2312a97c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* The Y: bands drawn first, then the nodes arrive from scattered starting points */
.yh-hero__art { display: grid; justify-items: center; gap: 14px; }
.yh-y { position: relative; width: min(100%, 470px); aspect-ratio: 480 / 520; color: var(--yh-ink); }
.yh-y__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.yh-y__rings { opacity: .1; stroke-width: 1.5; }
.yh-y__band { opacity: .94; }
.yh-y__links { opacity: .35; }
.yh-y { container-type: inline-size; --p: 1; }
.yh-node { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; }
/* --p runs 0 to 1 with the scroll: at 0 each node waits beside the Y, at 1 it sits on it (cqw = width of the Y) */
.yh-y.is-ready .yh-node { translate: calc(-50% + (1 - var(--p)) * var(--sx) * 1cqw) calc(-50% + (1 - var(--p)) * var(--sy) * 1cqw); }
.yh-tile--node { width: 44px; height: 44px; border-radius: 15px; border: 2px solid color-mix(in srgb, #fff 55%, transparent); box-shadow: 0 10px 22px rgba(14, 24, 70, .28), inset 0 1px 0 rgba(255, 255, 255, .45); }
.yh-tile--node svg { width: 22px; height: 22px; }
.yh-node__label {
	position: absolute; top: 50%; margin-top: -12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
	font-size: 11.5px; font-weight: 800; color: var(--yh-ink); background: color-mix(in srgb, var(--yh-surface) 92%, transparent);
	box-shadow: 0 6px 16px rgba(16, 20, 31, .12); opacity: 1;
}
.yh-node--l .yh-node__label { right: calc(100% + 8px); }
.yh-node--r .yh-node__label { left: calc(100% + 8px); }
.yh-y.is-ready .yh-node__label { opacity: clamp(0, (var(--p) - .72) * 4, 1); }
.yh-y.is-built .yh-tile--node { animation: yh-float 6s ease-in-out calc(var(--i) * -.7s) infinite; }
@keyframes yh-float { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.yh-hero__caption { margin-top: 26px; color: var(--yh-muted); font-size: 13px; font-weight: 600; text-align: center; }

/* ---- Categories strip ---- */
.yh-cats { padding-block: 8px 0; }
.yh-cats__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; padding: 18px; border-radius: 26px; background: var(--yh-surface); box-shadow: var(--yh-shadow); }
.yh-cats__list li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; background: var(--yh-soft); font-size: 13.5px; font-weight: 700; }
.yh-cats__list .yh-tile { width: 34px; height: 34px; border-radius: 11px; }
.yh-cats__list .yh-tile svg { width: 18px; height: 18px; }

/* ---- Dashboard preview ---- */
.yh-preview { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--yh-blue) 5%, transparent) 40%, transparent); }
.yh-dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; }
.yh-dash__main, .yh-dash__side { border-radius: var(--yh-radius); background: var(--yh-surface); box-shadow: var(--yh-shadow); padding: clamp(20px, 2.6vw, 32px); }
.yh-dash__main { display: grid; gap: 22px; }
.yh-dash__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.yh-dash__label { display: block; color: var(--yh-muted); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.yh-dash__total { font-size: clamp(26px, 3.2vw, 38px); font-weight: 900; font-variant-numeric: tabular-nums; }
.yh-dash__total small { font-size: 14px; font-weight: 700; color: var(--yh-muted); }
.yh-pill { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.yh-pill--up { color: var(--yh-up); background: color-mix(in srgb, var(--yh-up) 14%, transparent); }
.yh-spark { overflow: visible; width: 100%; height: clamp(110px, 14vw, 160px); display: block; color: var(--yh-line); }
.yh-spark__line { stroke-dasharray: 1; stroke-dashoffset: 0; }
[data-yh-reveal].is-armed:not(.is-in) .yh-spark__line { stroke-dashoffset: 1; }
[data-yh-reveal].is-in .yh-spark__line { transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1) .2s; }
.yh-rows { display: grid; gap: 4px; }
.yh-rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 16px; }
.yh-rows li:nth-child(odd) { background: var(--yh-soft); }
.yh-rows strong { display: block; font-size: 14.5px; font-weight: 800; }
.yh-rows small { color: var(--yh-muted); font-size: 12px; }
.yh-rows span { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.yh-rows em { min-width: 64px; text-align: left; font-style: normal; font-size: 12.5px; font-weight: 800; }
.yh-up { color: var(--yh-up); }
.yh-down { color: var(--yh-down); }
.yh-dash__side { display: grid; align-content: start; gap: 20px; justify-items: center; }
.yh-dash__side .yh-dash__label { justify-self: start; }
.yh-donut { position: relative; width: min(100%, 230px); aspect-ratio: 1; }
.yh-donut svg { width: 100%; height: 100%; rotate: -90deg; }
.yh-donut__ring { stroke-linecap: butt; }
[data-yh-reveal].is-armed:not(.is-in) .yh-donut__ring { stroke-dasharray: 0 100 !important; }
[data-yh-reveal].is-in .yh-donut__ring { transition: stroke-dasharray 1.1s ease .3s; }
.yh-donut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.yh-donut__center strong { font-size: 34px; font-weight: 900; line-height: 1; }
.yh-donut__center small { color: var(--yh-muted); font-size: 12px; font-weight: 700; }
.yh-legend { width: 100%; display: grid; gap: 8px; }
.yh-legend li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.yh-legend i { width: 12px; height: 12px; border-radius: 4px; }
.yh-legend b { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.yh-note { margin-top: 14px; color: var(--yh-muted); font-size: 12.5px; text-align: center; }

/* ---- How: the two inputs meet like the arms of the Y ---- */
.yh-flow { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "join join" "c c"; column-gap: 28px; }
.yh-flow__join { grid-area: join; width: 100%; height: 110px; display: block; }
.yh-flow__join path { fill: none; stroke: var(--yh-blue); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .6; }
[data-yh-reveal].is-armed:not(.is-in) .yh-flow__join path { opacity: 0; }
[data-yh-reveal].is-in .yh-flow__join path { transition: opacity 1s ease .3s; }
.yh-step { position: relative; z-index: 1; display: grid; gap: 10px; padding: 26px; border-radius: var(--yh-radius); background: var(--yh-surface); box-shadow: var(--yh-shadow); }
.yh-step--a { grid-area: a; }
.yh-step--b { grid-area: b; }
.yh-step--c { grid-area: c; justify-self: center; width: min(100%, 560px); background: linear-gradient(150deg, #2a57d8, #173a9f); color: #fff; }
.yh-step.yh-step--c p { color: rgba(240, 245, 255, .88); }
.yh-step__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: color-mix(in srgb, var(--yh-blue) 14%, transparent); color: var(--yh-blue); font-size: 18px; font-weight: 900; }
.yh-step--c .yh-step__n { background: rgba(255, 255, 255, .18); color: #fff; }
.yh-step h3 { font-size: 20px; font-weight: 800; }
.yh-step p { color: var(--yh-muted); font-size: 15px; line-height: 2; }

/* ---- Features ---- */
.yh-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.yh-card { grid-column: span 2; display: grid; align-content: start; gap: 12px; padding: 26px; border-radius: var(--yh-radius); background: var(--yh-surface); box-shadow: var(--yh-shadow); }
.yh-card--wide { grid-column: span 4; }
.yh-card--half { grid-column: span 3; }
.yh-card--full { grid-column: 1 / -1; }
.yh-card h3 { font-size: 19px; font-weight: 800; }
.yh-card p { color: var(--yh-muted); font-size: 14.5px; line-height: 2; }
.yh-card .yh-link { margin-top: 4px; }
.yh-card--accent { background: linear-gradient(150deg, #1f46b8, #14275f); color: #fff; }
.yh-card.yh-card--accent p { color: rgba(240, 245, 255, .86); }
.yh-mini-spark { width: 100%; height: 84px; }
.yh-mini-radar { width: 118px; height: 108px; color: var(--yh-ink); }
.yh-stars { display: flex; gap: 6px; color: #f0a924; font-size: 24px; }
.yh-stars .is-off { color: var(--yh-line); }
.yh-apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---- Tools ---- */
.yh-tools__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.yh-tools__grid a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 18px 20px; border-radius: 22px; background: var(--yh-surface); box-shadow: var(--yh-shadow); transition: transform .18s ease; }
.yh-tools__grid a:hover { transform: translateY(-3px); }
.yh-tools__grid strong { display: block; font-size: 15.5px; font-weight: 800; }
.yh-tools__grid small { display: block; margin-top: 2px; color: var(--yh-muted); font-size: 13px; line-height: 1.85; }

/* ---- Trust ---- */
.yh-trust { background: var(--yh-surface); }
.yh-trust__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.yh-trust__grid li { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: 24px; background: var(--yh-bg); }
.yh-trust__grid svg { width: 34px; height: 34px; padding: 7px; border-radius: 12px; color: var(--yh-blue); background: color-mix(in srgb, var(--yh-blue) 12%, transparent); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.yh-trust__grid h3 { font-size: 17px; font-weight: 800; }
.yh-trust__grid p { color: var(--yh-muted); font-size: 14px; line-height: 2; }

/* ---- Journal: three equal cards, the whole 16:9 picture on top ---- */
.yh-journal__more { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.yh-journal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.yh-post a { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: 24px; background: var(--yh-surface); box-shadow: var(--yh-shadow); transition: transform .18s ease; }
.yh-post a:hover { transform: translateY(-3px); }
.yh-post__media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(150deg, #2a57d8, #173a9f); color: rgba(255, 255, 255, .5); }
.yh-post__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yh-post__media svg { width: 54px; height: 54px; }
.yh-post__body { display: grid; align-content: start; gap: 8px; padding: 18px 20px 22px; }
.yh-post__body time { color: var(--yh-muted); font-size: 12px; font-weight: 700; }
.yh-post__body strong { font-size: 16px; font-weight: 800; line-height: 1.85; }

/* ---- Closing ---- */
.yh-final { padding-block: clamp(8px, 2vw, 20px) clamp(40px, 5vw, 64px); }
.yh-final__box { position: relative; overflow: hidden; isolation: isolate; display: grid; justify-items: center; gap: 18px; padding: clamp(40px, 6vw, 80px) 24px; border-radius: 36px; text-align: center; color: #fff;
	background: radial-gradient(520px 320px at 85% -10%, rgba(130, 172, 255, .5), transparent 62%), radial-gradient(460px 300px at 0% 110%, rgba(139, 105, 255, .42), transparent 62%), linear-gradient(155deg, #2a57d8, #173a9f); }
.yh-final__y { position: absolute; inset-inline-start: -30px; bottom: -40px; z-index: -1; width: 320px; height: 320px; color: #fff; opacity: .1; }
.yh-final h2 { max-width: 640px; font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; line-height: 1.5; text-wrap: balance; }
.yh-final p { max-width: 520px; color: rgba(240, 245, 255, .86); font-size: 16px; line-height: 2; }

/* ---- Scroll reveal: only the drawn graphics (chart line, donut, flow lines) animate; text is always visible ---- */

/* ---- Responsive ---- */
@media (max-width: 1000px) {
	.yh-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.yh-y { width: min(100%, 380px); }
	.yh-dash { grid-template-columns: minmax(0, 1fr); }
	.yh-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yh-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yh-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yh-card, .yh-card--half { grid-column: span 1; }
	.yh-card--wide, .yh-card--full { grid-column: 1 / -1; }
	.yh-journal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.yh-wrap { width: min(1240px, 100% - 32px); }
	.yh-head--row { align-items: flex-start; flex-direction: column; }
	.yh-btn { width: 100%; }
	.yh-actions--center .yh-btn { width: auto; }
	.yh-flow { grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "b" "c"; row-gap: 18px; }
	.yh-flow__join { display: none; }
	.yh-step--c { width: 100%; }
	.yh-bento, .yh-trust__grid, .yh-tools__grid { grid-template-columns: minmax(0, 1fr); }
	.yh-rows li { grid-template-columns: auto minmax(0, 1fr) auto; }
	.yh-rows li em { display: none; }
	.yh-tile--node { width: 38px; height: 38px; border-radius: 13px; }
	.yh-tile--node svg { width: 19px; height: 19px; }
	.yh-node__label { font-size: 10.5px; padding: 1px 7px; margin-top: -10px; }
	.yh-journal__grid { grid-template-columns: minmax(0, 1fr); }
	.yh-cats__list { justify-content: flex-start; padding: 14px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	.yh-y.is-built .yh-tile--node { animation: none; }
	[data-yh-reveal].is-in .yh-spark__line, [data-yh-reveal].is-in .yh-donut__ring, [data-yh-reveal].is-in .yh-flow__join path { transition: none; }
	.yh-btn, .yh-tools__grid a, .yh-post a { transition: none; }
}

/* Phone: the home page is long; the asset-kind chips and the allocation donut repeat what the Y and the rows already say. */
@media (max-width: 720px) {
	.yh-cats, .yh-dash__side { display: none; }
}

/* Phone first screen: headline, one sentence and the two buttons; the eyebrow and the three check marks repeat the headline. */
.yh-lead__short { display: none; }
@media (max-width: 720px) {
	.yh-hero .yh-eyebrow, .yh-hero .yh-checks { display: none; }
	.yh-lead__long { display: none; }
	.yh-lead__short { display: inline; }
	.yh-hero .yh-lead { line-height: 1.9; }
}
/* Phone first impression (2026-10-22, second pass): the big animated Y and its "scroll" caption took the whole second
   screen and said nothing about the product. On phones the hero ends at the buttons and the sample dashboard (labelled
   as a sample) follows right away; the three steps are compact, number beside the title. */
.yh-preview__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--yh-muted); }
.yh-preview__label span { width: 8px; height: 8px; border-radius: 50%; background: var(--yh-mint, #34c98a); }
@media (max-width: 720px) {
	.yh-hero .yh-hero__art { display: none; }
	.yh-hero { padding-bottom: 8px; }
	.yh-preview { padding-top: 8px; }
	.yh-step { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 6px; padding: 18px; align-items: center; }
	.yh-step__n { width: 34px; height: 34px; font-size: 16px; border-radius: 11px; }
	.yh-step h3 { font-size: 17px; }
	.yh-step p { grid-column: 1 / -1; font-size: 14px; line-height: 1.9; }
	.yh-flow { row-gap: 12px; }
}

/* ---- Hero Y, v3 (2026-10-23): every asset is a dim star in a misty sky; as the visitor scrolls, the mist clears and
   each star flies onto the Y, where it turns bright and sharp. --p (0 to 1) comes from home-v2.js as before. ---- */
.yh-y { --spread: 2.1; isolation: isolate; }
.yh-y::before { /* the mist: soft clouds that thin out as --p grows */
	content: ""; position: absolute; inset: -18% -22%; z-index: 0; pointer-events: none; border-radius: 50%;
	background:
		radial-gradient(38% 30% at 22% 28%, rgba(150, 175, 235, .55), transparent 70%),
		radial-gradient(34% 28% at 80% 22%, rgba(175, 160, 245, .45), transparent 70%),
		radial-gradient(40% 32% at 55% 70%, rgba(140, 190, 230, .45), transparent 72%),
		radial-gradient(30% 26% at 18% 78%, rgba(160, 175, 230, .40), transparent 70%);
	filter: blur(18px);
	opacity: calc(1 - var(--p) * .85);
	animation: yh-mist 18s ease-in-out infinite alternate;
}
.yh-y::after { /* faint background stars */
	content: ""; position: absolute; inset: -10% -14%; z-index: 0; pointer-events: none;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 18%, rgba(255,255,255,.9), transparent 60%),
		radial-gradient(1.4px 1.4px at 86% 12%, rgba(255,255,255,.8), transparent 60%),
		radial-gradient(1.8px 1.8px at 70% 46%, rgba(255,255,255,.85), transparent 60%),
		radial-gradient(1.3px 1.3px at 28% 62%, rgba(255,255,255,.75), transparent 60%),
		radial-gradient(1.6px 1.6px at 92% 74%, rgba(255,255,255,.8), transparent 60%),
		radial-gradient(1.2px 1.2px at 8% 88%, rgba(255,255,255,.7), transparent 60%),
		radial-gradient(1.5px 1.5px at 48% 8%, rgba(255,255,255,.8), transparent 60%);
	opacity: calc(.35 + (1 - var(--p)) * .5);
	animation: yh-twinkle 4.5s ease-in-out infinite alternate;
}
[data-theme="light"] .yh-y::after, :root:not([data-theme="dark"]) .yh-y::after { filter: invert(.55) sepia(.3) hue-rotate(190deg); }
.yh-y__svg, .yh-node { z-index: 1; }
.yh-y.is-ready .yh-y__band { opacity: calc(.28 + var(--p) * .7); filter: blur(calc((1 - var(--p)) * 2.5px)) drop-shadow(0 0 calc(var(--p) * 14px) rgba(111, 155, 255, calc(var(--p) * .55))); }
.yh-y.is-ready .yh-y__links { opacity: calc(var(--p) * .35); }
.yh-y.is-ready .yh-node { translate: calc(-50% + (1 - var(--p)) * var(--sx) * var(--spread) * 1cqw) calc(-50% + (1 - var(--p)) * var(--sy) * var(--spread) * 1cqw); }
.yh-y.is-ready .yh-tile--node {
	scale: calc(.58 + var(--p) * .42);
	opacity: calc(.42 + var(--p) * .58);
	filter: blur(calc((1 - var(--p)) * 2.6px)) saturate(calc(.35 + var(--p) * .65)) brightness(calc(1.12 - var(--p) * .12));
	box-shadow:
		0 0 calc(4px + var(--p) * 26px) calc(var(--p) * 3px) rgba(255, 255, 255, calc(.25 + var(--p) * .35)),
		0 0 calc(10px + var(--p) * 34px) rgba(111, 155, 255, calc(.25 + var(--p) * .45)),
		0 10px 22px rgba(14, 24, 70, calc(var(--p) * .28));
}
.yh-y.is-ready:not(.is-built) .yh-tile--node { animation: yh-star 2.8s ease-in-out calc(var(--i) * -.45s) infinite alternate; }
.yh-y.is-built .yh-tile--node { animation: yh-arrive .9s ease-out calc(var(--i) * .07s) 1 both, yh-float 6s ease-in-out calc(.9s + var(--i) * -.7s) infinite; }
@keyframes yh-star { from { opacity: calc(.32 + var(--p) * .58); } to { opacity: calc(.58 + var(--p) * .42); } }
@keyframes yh-arrive { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.9), 0 0 0 0 rgba(111,155,255,.8); } 60% { box-shadow: 0 0 30px 10px rgba(255,255,255,.55), 0 0 60px 18px rgba(111,155,255,.45); } 100% { box-shadow: 0 0 18px 2px rgba(255,255,255,.4), 0 0 34px rgba(111,155,255,.45), 0 10px 22px rgba(14,24,70,.28); } }
@keyframes yh-mist { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, -2%, 0) scale(1.06); } }
@keyframes yh-twinkle { from { opacity: calc(.25 + (1 - var(--p)) * .45); } to { opacity: calc(.45 + (1 - var(--p)) * .5); } }
@media (prefers-reduced-motion: reduce) {
	.yh-y::before, .yh-y::after, .yh-y.is-ready:not(.is-built) .yh-tile--node, .yh-y.is-built .yh-tile--node { animation: none; }
}
/* Phone: the Y is back (it is our mark), compact, between the buttons and the sample dashboard. */
@media (max-width: 720px) {
	.yh-hero .yh-hero__art { display: grid; margin-top: 18px; }
	.yh-y { width: min(70%, 280px); --spread: 1.5; }
	.yh-hero__caption { margin-top: 26px; font-size: 12px; max-width: 30ch; justify-self: center; }
}

/* Sample dashboard: a section heading like the others (the «numbers are examples» note was removed). */
.yh-preview__head { margin-bottom: clamp(16px, 2.4vw, 28px); }
