/* Errandry landing page */
:root { --lp-bg: #faf8f5; --lp-ink: #221e19; --lp-line: #e7e1d8; --lp-accent: #a8650c; --pad: max(20px, calc((100vw - 1180px) / 2)); }
body { font-size: 16.5px; }
h1, h2, h3 { font-family: var(--head); }
.demo-bar { padding-inline: var(--pad); }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 0 var(--pad); }
.lp-head nav { display: flex; align-items: center; gap: 8px; }
.lp-head nav a:not(.btn) { padding: 9px 12px; border-radius: 99px; color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.lp-head nav a:not(.btn):hover { background: var(--soft); }
.lp-head nav .btn { margin-left: 8px; }
.btn-big { min-height: 50px; padding: 0 22px; font-size: 16px; }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 44px; align-items: center; padding: 34px var(--pad) 66px; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; font-weight: 700; text-wrap: balance; }
.hero-copy > p { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-copy .hero-fine { font-size: 14px; margin-top: 14px; }
.hero-shot img { width: 100%; height: auto; border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 40px 70px -40px rgba(44, 36, 26, .55); }

.band { padding: 64px var(--pad); background: #fff; border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; }
.sec-head h2, .lp-qa h2 { font-size: clamp(27px, 3vw, 37px); line-height: 1.15; text-wrap: balance; }
.sec-head p { margin-top: 10px; color: var(--ink-2); }

.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; margin-top: 30px; align-items: stretch; }
.flow-steps { display: grid; align-content: start; gap: 6px; }
.flow-steps li { position: relative; }
.flow-steps button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 8px 14px; border: 1px solid transparent; border-radius: 14px; background: none; text-align: left; cursor: pointer; }
.flow-steps button:hover { background: var(--soft); }
.flow-steps i { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border: 2px solid var(--line-2); border-radius: 99px; background: #fff; font-style: normal; font-weight: 700; }
.flow-steps span { display: grid; line-height: 1.3; }
.flow-steps b { font: 600 18px/1.3 var(--head); }
.flow-steps small { color: var(--ink-2); font-size: 14px; }
.flow-steps button[aria-pressed="true"] { background: var(--accent-tint); }
.flow-steps button[aria-pressed="true"] i { border-color: var(--accent); background: var(--accent); color: #fff; }
.flow-steps button[aria-pressed="true"] small { color: #4a2c02; }
.flow-steps .is-past i { border-color: var(--accent); color: var(--accent-dark); }
.flow-steps p { margin: 4px 0 8px; padding: 0 14px 0 62px; font-size: 15.5px; }
.flow-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 20px; background: var(--soft); }
.flow-day, .flow-money { padding: 18px; border-radius: 14px; background: #fff; }
.flow h3 { font-size: 16px; margin-bottom: 14px; }
.flow-day ul { display: grid; gap: 8px; }
.flow-day li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; }
.flow-day time { font-size: 13px; color: var(--ink-2); padding-top: 4px; }
.flow-open { display: flex; align-items: center; min-height: 48px; padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--ink-2); font-size: 14px; }
.flow-block { min-height: 150px; }
.flow-job { display: grid; align-content: center; justify-items: start; gap: 3px; padding: 12px 14px; border-radius: 10px; border-left: 5px solid var(--accent); background: var(--accent-tint); transition: background-color .35s, border-color .35s; }
.flow-job b { font: 600 17px/1.25 var(--head); }
.flow-job small { font-size: 14px; }
.flow-job em { margin-top: 6px; padding: 2px 11px; border-radius: 99px; background: #fff; font-size: 13px; font-style: normal; font-weight: 700; }
.flow-job.is-held { background: repeating-linear-gradient(135deg, #f9e6c8 0 10px, #fdf1dc 10px 20px); }
.flow-job.is-done { border-left-color: #246136; background: #e2f1e3; }
.flow-money { display: flex; flex-direction: column; }
.flow-amount { font: 700 clamp(32px, 3.4vw, 44px)/1.1 var(--head); font-variant-numeric: tabular-nums; }
.flow-label { color: var(--ink-2); font-weight: 700; min-height: 3em; }
.flow-split { display: flex; height: 20px; margin: 14px 0; border-radius: 6px; overflow: hidden; }
.flow-split i { background: var(--accent); transition: margin .5s; }
.flow-split i + i { background: var(--accent); }
.flow-split.is-split i + i { margin-left: 6px; background: #5d7690; }
.flow-money dl { margin-top: auto; }
.flow-money dl div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.flow-money dt::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 3px; background: var(--accent); }
.flow-money dl div + div dt::before { background: #5d7690; }
.flow-money dd { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .flow.is-tick .flow-amount, .flow.is-tick .flow-job em { animation: tick .35s ease-out; } }
@keyframes tick { from { opacity: .2; transform: translateY(6px); } }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.rules > div { padding-top: 14px; border-top: 3px solid var(--navy); }
.rules h3 { font-size: 18px; }
.rules p { margin-top: 6px; font-size: 15.5px; color: var(--ink-2); }

.roles-sec { padding: 64px var(--pad); }
.roles-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.roles-rail li { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.roles-rail h3 { margin-top: 20px; font-size: 22px; }
.roles-rail p { margin: 6px 0 14px; max-width: 34ch; color: var(--ink-2); font-size: 15.5px; }
.roles-rail .btn { margin-top: auto; }
.center { margin-top: 28px; text-align: center; font-weight: 700; }

.graphs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 30px; align-items: stretch; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.panel h3 { margin-bottom: 14px; font-size: 18px; }
.panel .xc { --xc-h: 230px; }
.panel .xc-h .xc-row { min-height: 44px; }

.qa { padding: 64px var(--pad); }
.close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin: 0 var(--pad) 56px; padding: 40px; border-radius: 22px; background: var(--navy); color: #fff; }
.close h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.close p { margin-top: 8px; max-width: 50ch; color: #e8dfd1; }
.close-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { background: #fff; border-color: #fff; color: #2c241a; }
.btn-ghost { background: transparent; border-color: #9d917f; color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px var(--pad) 30px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.lp-foot a { font-weight: 700; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .graphs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .lp-js .lp-head nav:not(.x) { display: none; } .lp-js .lp-head.menu-open nav { display: grid; } .lp-head nav .btn { margin: 4px 0 0; justify-content: center; color: #fff; } .lp-head { min-height: 64px; } }
@media (max-width: 760px) {
  .hero { padding-top: 18px; padding-bottom: 44px; }
  .hero-actions .btn { flex: 1 1 200px; }
  .band, .roles-sec, .qa { padding-block: 46px; }
  .flow-stage { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  /* Role phones become one sideways row, each the same height */
  .roles-rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(272px, 80%); gap: 18px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .roles-rail li { scroll-snap-align: start; }
  .rules { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .close { padding: 28px 20px; }
  .close-actions .btn { flex: 1 1 180px; }
  .panel { padding: 14px 12px; }
  .panel .xc-xlabels span:nth-child(odd) { visibility: hidden; }
  .panel .xc-xlabels span { font-size: 12px; white-space: nowrap; overflow: visible; }
  .panel .xc-frame { grid-template-columns: 26px minmax(0, 1fr); column-gap: 4px; }
  .xc-ticks b, .xc-yaxis b, .xc-axisname, .xc-colbar em { font-size: 12px !important; }
  .panel .xc-h { --xc-label: 96px; --xc-value: 28px; }
}
