/* Staffgrove landing page */
.lp { --lp-bg: #fff; --lp-ink: var(--ink); --lp-line: var(--line); --lp-accent: var(--accent); background: #fff; font-size: 17px; line-height: 1.6; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
h1, h2, h3 { text-wrap: balance; }
.lp h2 { font: 600 clamp(27px, 3.2vw, 38px)/1.2 var(--head); }
.lp .btn { min-height: 44px; font-size: 15.5px; white-space: nowrap; }
.lp .btn-big { min-height: 50px; padding: 0 22px; font-size: 16.5px; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; position: relative; }
.lp-head nav { display: flex; align-items: center; gap: 28px; }
.lp-head nav a:not(.btn) { color: var(--ink); font-weight: 700; font-size: 15.5px; text-decoration: none; }
.lp-head nav a:not(.btn):hover { color: var(--accent-dark); }
.lp .lp-head nav .btn-primary { color: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding: 44px 0 72px; }
.hero h1 { font: 600 clamp(34px, 3.6vw, 46px)/1.14 var(--head); letter-spacing: -.01em; }
.hero-copy > p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-copy .hero-note { margin-top: 14px; font-size: 15px; }
.shotframe { min-width: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #f8f6f6; box-shadow: 0 40px 70px -40px rgba(80, 30, 45, .45); }
.shot-top { display: flex; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.shot-top i { width: 10px; height: 10px; border-radius: 99px; background: var(--line-2); }
.shotframe img { width: 100%; height: auto; }

.band { padding: 80px 0; background: var(--bg); border-block: 1px solid var(--line); }
.block { padding: 80px 0; }
.block-head { max-width: 680px; margin-bottom: 36px; }
.block-head p { margin-top: 10px; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.split p { margin-top: 14px; color: var(--ink-2); }
.textlink { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; font-weight: 700; }

.mini { min-width: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.mini table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }
.mini caption { padding-bottom: 8px; text-align: left; font: 600 18px/1.3 var(--head); }
.mini th, .mini td { height: 46px; padding: 0 2px; border-bottom: 1px solid var(--line); text-align: center; }
.mini th:first-child { width: 31%; text-align: left; font-weight: 700; line-height: 1.25; }
.mini thead th { color: var(--ink-2); font-size: 13px; font-weight: 500; line-height: 1.25; }
.mini thead b { display: block; color: var(--ink); font-size: 16px; }
.chip { display: block; padding: 4px 0; border-radius: 6px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.chip-wait { background: repeating-linear-gradient(135deg, #fff 0 4px, var(--accent-tint) 4px 8px); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.mini tfoot th, .mini tfoot td { border-bottom: 0; font-weight: 700; }
.mini tfoot td.is-over { background: var(--wait-tint); box-shadow: inset 0 0 0 2px #c99a1e; border-radius: 6px; color: var(--wait); }
@media (prefers-reduced-motion: no-preference) {
  .lp-js .mini.rv .chip-wait { opacity: 0; transform: translateY(-10px); }
  .lp-js .mini.rv.in .chip-wait { opacity: 1; transform: none; transition: opacity .5s ease-out .8s, transform .5s ease-out .8s; }
  .lp-js .mini.rv.in tfoot td.is-over { animation: flag .6s ease-out 1.4s backwards; }
}
@keyframes flag { from { background: transparent; box-shadow: inset 0 0 0 2px transparent; } }

/* The pay run: inputs feed four stages, then one set of totals */
.flow-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow-in li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 15px; line-height: 1.45; }
.flow-in li::after { content: ""; position: absolute; left: 50%; bottom: -29px; width: 2px; height: 28px; background: var(--line-2); }
.flow-in .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.flow-in b { display: block; font-size: 16px; }
.flow-stages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; padding: 26px 20px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.flow-stages::before, .flow-stages::after { content: ""; position: absolute; top: 47px; left: 12.5%; width: 75%; height: 3px; background: var(--line-2); }
.flow-stages::after { background: var(--accent); transform-origin: left; }
.flow-stages li { position: relative; z-index: 1; text-align: center; }
.flow-stages span { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 10px; border: 2px solid var(--accent); border-radius: 99px; background: #fff; color: var(--accent-dark); }
.flow-stages span .icon { width: 20px; height: 20px; }
.flow-stages b { font: 600 18px/1.3 var(--head); }
.flow-stages p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .flow-stages::after { animation: run-line 9s ease-in-out infinite; }
  .flow-stages li span { animation: run-dot 9s ease-in-out infinite; }
  .flow-stages li:nth-child(2) span { animation-name: run-dot2; }
  .flow-stages li:nth-child(3) span { animation-name: run-dot3; }
  .flow-stages li:nth-child(4) span { animation-name: run-dot4; }
}
@keyframes run-line { 0%, 12% { transform: scaleX(0); } 28%, 36% { transform: scaleX(.333); } 52%, 60% { transform: scaleX(.667); } 76%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes run-dot { 0%, 100% { background: #fff; color: var(--accent-dark); } 4%, 94% { background: var(--accent); color: #fff; } }
@keyframes run-dot2 { 0%, 25%, 100% { background: #fff; color: var(--accent-dark); } 29%, 94% { background: var(--accent); color: #fff; } }
@keyframes run-dot3 { 0%, 49%, 100% { background: #fff; color: var(--accent-dark); } 53%, 94% { background: var(--accent); color: #fff; } }
@keyframes run-dot4 { 0%, 73%, 100% { background: #fff; color: var(--accent-dark); } 77%, 94% { background: var(--accent); color: #fff; } }
.flow-sum { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr; margin-top: 14px; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.flow-sum > div { padding: 12px 18px; }
.flow-sum > div + div { border-left: 1px solid var(--line); }
.flow-sum dt { color: var(--ink-2); font-size: 14.5px; }
.flow-sum dd { font: 600 23px/1.4 var(--head); font-variant-numeric: lining-nums tabular-nums; }
.flow-sum .is-net { background: var(--accent-tint); }
.flow-sum .is-net dt { color: var(--accent-dark); font-weight: 700; }
.flow-note { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: stretch; }
.phones article { display: flex; flex-direction: column; min-width: 0; }
.phones .dev { width: min(270px, 100%); }
.phones h3 { margin-top: 24px; font: 600 22px/1.3 var(--head); }
.phones article > p { margin-top: 4px; color: var(--ink-2); }
.phones ul { display: grid; gap: 7px; margin: 12px 0 18px; font-size: 15.5px; }
.phones li { display: flex; gap: 9px; }
.phones li .icon { margin-top: 5px; width: 16px; height: 16px; color: var(--accent); }
.phones .btn { margin-top: auto; align-self: stretch; }

.chartcard { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; }
.chartcard .xc-plot { min-height: 260px; }

.closing { padding: 80px 0 0; margin-bottom: 80px; }
.closing > div { padding: 52px 56px; border-radius: 18px; background: #4a1d27; color: #fff; }
.closing p { max-width: 56ch; margin-top: 10px; color: #f1dde1; }
.lp .btn-light { background: #fff; border-color: #fff; color: #4a1d27; }
.lp .btn-ghost { background: transparent; border-color: #c99ba5; color: #fff; }
.lp-foot { padding: 28px 0 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.lp-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.lp-foot p:last-child { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lp-foot a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 700; }

.xc { --xc-bar: var(--accent); --xc-bar-hi: var(--accent-dark); --xc-ink: var(--ink); --xc-ink2: var(--ink-2); --xc-hover: rgba(156, 74, 90, .08); }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 32px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 900px) {
  .lp-head nav { gap: 20px; }
  .flow-in { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .flow-in li::after { display: none; }
  .flow-stages { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 18px; padding: 20px 16px; }
  .flow-stages::before, .flow-stages::after { display: none; }
  .flow-stages li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; text-align: left; }
  .flow-stages span { grid-row: span 2; margin: 0; }
  .flow-sum { grid-template-columns: 1fr 1fr; }
  .flow-sum > div:nth-child(3) { border-left: 0; }
  .flow-sum > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .phones { grid-template-columns: minmax(0, 1fr); gap: 56px; max-width: 360px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .lp { font-size: 16px; }
  .band, .block { padding: 56px 0; }
  .hero { padding-bottom: 48px; }
  .hero-acts .btn { flex: 1 1 100%; }
  .closing { padding-top: 56px; margin-bottom: 56px; }
  .closing > div { padding: 32px 22px; }
  .mini { padding: 14px 10px; }
  .mini table { font-size: 13px; }
  .mini th:first-child { width: 29%; }
  .chip { font-size: 12px; }
  .flow-sum > div { padding: 10px 12px; }
  .flow-sum dd { font-size: 18px; }
  .chartcard { padding: 14px 8px; }
  .lp-cost .xc-colbar em { display: none; }
  .lp-cost .xc-xlabels span { white-space: nowrap; display: flex; justify-content: center; }
  .lp-cost .xc-xlabels span:not(:nth-child(3n+2)) { visibility: hidden; }
}
@media (max-width: 900px) {
  .lp-js .lp-head:not(.menu-open) > nav { display: none; }
  .lp-head.menu-open > nav .btn { justify-content: center; margin-top: 6px; }
  html:not(.lp-js) .lp-head { flex-wrap: wrap; }
  html:not(.lp-js) .lp-head nav { flex-wrap: wrap; gap: 10px 18px; padding-bottom: 12px; }
}
