/* vgrowth.css: vGrowth's own crops and placements (plan.md, "vGrowth"), and its calculator (plan.md, "The calculator");
   the other parts are the solution pages' (components.css). */

/* Header: the hand reaching for the phone at the photo's right; the free plan building in a tall glass column over the
   cup at its left (plan-builder's narrow form, 700 high). On the phone the photo stands tall above, the plan over its
   lower part. */
.page-vgrowth .sp-hero { --pos: 55% 50%; --pos-n: 55% 50%; --hs-w: 23rem; --hs-y: 3.5rem; --ph-min: 50rem; --hm-h-n: 44rem; --hs-top-n: 18rem; }
.page-vgrowth .sp-hero .page-hero__scene > [data-scene] { height: 43.75rem; }
/* under 1280 px the plan is 700 high: its stop sits inside its card's top corner, so both fit one view */
@media (max-width: 1279px) { .page-vgrowth .page-hero__stop { top: calc(var(--hs-top-n) + 0.75rem); right: calc(var(--gutter) + 0.75rem); } }

/* The Problem: the hands and the reports at the right; this month's marketing over the grey wall at the left. */
.page-vgrowth .sp-problem .photo-stage { --pos: 60% 50%; --pos-n: 70% 50%; --ps-x: 1.5rem; --ps-r: auto; --ps-media-n: 30rem; --ps-top-n: 14rem;
  --veil: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 66%, transparent) 0%, color-mix(in srgb, var(--c-ink) 32%, transparent) 50%, transparent 72%); }
.page-vgrowth .sp-problem .photo-stage > .stop { left: auto; right: var(--space-3); }

/* The calculator: over the framed dusk photo, the sliders' card at the left and the V filling with new clients at the
   right, the window and the lamp between them. Under 1024 px the photo on top, the card and the V under it. */
.sp-calc .photo-stage { --ps-h: 38rem; --pos: 50% 62%; --pos-n: 45% 60%; --ps-media-n: 22rem; --ps-top-n: 15rem;
  --veil: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, transparent 36%, transparent 62%, color-mix(in srgb, var(--c-ink) 60%, transparent) 100%); }
.sp-calc__stage { margin-top: var(--space-6); }
.calc { position: absolute; z-index: 2; inset: 1.5rem; display: grid; grid-template-columns: minmax(0, 26rem) 1fr minmax(0, 21rem); align-items: center; gap: 1.5rem; }
.calc__card { grid-column: 1; display: grid; gap: 1.15rem; padding: 1.4rem 1.4rem 1.5rem; border-radius: var(--radius-l); background: var(--c-glass-strong); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--c-line-strong); box-shadow: var(--shadow-l), inset 0 1px 0 color-mix(in srgb, var(--c-paper) 12%, transparent); }
.calc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.35rem 1rem; }
.calc__row label { font: 500 0.95rem/1.3 var(--font-text); color: var(--c-paper); }
.calc__val { font: 700 1.2rem/1 var(--font-display); color: var(--c-paper); font-variant-numeric: tabular-nums; }
.calc input[type="range"] { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--c-brand) 0 var(--kit-fill, 50%), var(--c-ink-3) var(--kit-fill, 50%) 100%); }
.calc input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--c-ink-3); }
.calc input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c-brand); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--c-paper); border: 5px solid var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 22%, transparent), 0 0 16px var(--c-glow); }
.calc input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--c-paper); border: 5px solid var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 22%, transparent), 0 0 16px var(--c-glow); }
.calc input[type="range"]:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; border-radius: 6px; }
.calc__note { margin: 0; font: 400 0.85rem/1.45 var(--font-text); color: var(--c-muted); }
.calc__card .btn { justify-self: start; }
.calc__res { grid-column: 3; display: grid; justify-items: center; gap: 0.6rem; text-align: center; }
.calc__clients { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; padding: 0.45rem 1rem; border-radius: var(--radius-full); background: var(--c-glass-strong); border: 1px solid var(--c-line-strong); }
.calc__clients b { font: 700 1.9rem/1 var(--font-display); color: var(--c-paper); font-variant-numeric: tabular-nums; }
.calc__clients span { font: 500 0.95rem/1.2 var(--font-text); color: var(--c-paper); }
.calc__v { width: 100%; max-width: 19rem; }
.calc__v svg { display: block; width: 100%; height: auto; overflow: visible; }
.calc__vfill { fill: color-mix(in srgb, var(--c-ink) 60%, transparent); }
.calc__vline { fill: none; stroke: var(--c-brand); stroke-width: 2.5; stroke-linejoin: round; filter: drop-shadow(0 0 calc(4px + var(--full, 0) * 10px) var(--c-glow)); }
.calc__t { fill: var(--c-brand); opacity: 0; transform: translateY(-26px); transform-box: fill-box; transition: transform 0.5s cubic-bezier(0.3, 1.35, 0.5, 1), opacity 0.25s ease; }
.calc__t.is-in { opacity: 1; transform: none; }
.calc__year { margin: -0.4rem 0 0; display: grid; gap: 0.3rem; padding: 0.7rem 1.2rem; border-radius: var(--radius-m); background: var(--c-glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--c-brand) 60%, transparent); box-shadow: 0 0 34px -8px var(--c-glow); }
.calc__year b { font: 700 2.1rem/1 var(--font-display); color: var(--c-paper); font-variant-numeric: tabular-nums; }
.calc__year span { font: 500 0.9rem/1.2 var(--font-text); color: var(--c-muted); }
@media (prefers-reduced-motion: reduce) { .calc__t { transition: none; } }
@media (max-width: 1023px) {
  .calc { position: relative; inset: auto; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); max-width: 34rem; margin-inline: auto; }
  .calc__card, .calc__res { grid-column: 1; }
  .calc__res { padding-bottom: var(--space-2); }
}

/* Who it's for: the owner and his bookkeeper at the right; the fit card over the calm wall and window at the left. */
.page-vgrowth .sp-who .photo-stage { --pos: 60% 40%; --pos-n: 68% 35%; --ps-x: 1.5rem; --ps-w: 26rem; --ps-media-n: 30rem; --ps-top-n: 13rem;
  --veil: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, transparent 60%); }

/* Process: the printed plan held before the laptop; the route across the lower part. */
.page-vgrowth .sp-process .photo-stage { --pos: 50% 40%; --pos-n: 45% 40%; }

/* Close: the woman on the phone over the booking book right of center; the words over the clear right third. */
.page-vgrowth .sp-close { --pos: 45% 35%; --pos-n: 50% 25%; --close-top-n: 15rem; }
