/* Landing page. The nav and hero come from assets/kit; the sections below are designed here.
   They sit inside .lp-body so the kit's one screen per section rules do not apply to them. */
:root {
  --l-ink: #202124; --l-grey: #4d5056; --l-rule: #dcdcd5; --l-accent: #9a5b0a; --l-deep: #774505; --l-tint: #f6e8c9; --l-dark: #26282b; --l-soft: #ebebe6;
  --ink: #202124; --ink-2: #55585e; --mono: "Red Hat Mono", ui-monospace, Menlo, monospace; --head: "Barlow Semi Condensed", "Barlow", sans-serif;
}
.sku { font-family: var(--mono); font-size: .9em; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; }
[hidden] { display: none !important; }
.lp-mark { width: 28px; height: 28px; margin-right: 8px; vertical-align: -7px; }
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo .lp-mark { margin-right: 0; }
.btn.btn--secondary { box-shadow: inset 0 0 0 1px #8d8e87; }

/* The top section is only as tall as its content, so no blank band is left under it */
main > section.hero { height: auto; min-height: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.hero .hero__media { align-self: center; height: auto; min-height: 0; background: none; border-radius: 0; overflow: visible; }
.hero-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--l-rule); border-radius: 12px; box-shadow: 0 24px 56px -28px rgba(32, 33, 36, .45); }

.lp-wrap { width: min(100% - 2 * var(--gut), var(--container)); margin-inline: auto; }
.lp { padding-block: clamp(64px, 8vw, 112px); scroll-margin-top: 64px; color: var(--l-ink); }
.lp--white { background: #fff; }
.lp--tint { background: var(--l-tint); }
.lp--dark { background: var(--l-dark); }
.lp h2, .lp-cta h2 { margin: 0; font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; text-wrap: balance; color: var(--l-ink); }
.lp h3 { margin: 0; font-family: var(--head); letter-spacing: 0; }
.lp p, .lp ul, .lp ol, .lp dl, .lp dd, .lp figure { margin: 0; padding: 0; }
.lp ul, .lp ol { list-style: none; }
.lp-lead { max-width: 58ch; margin-top: 16px !important; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--l-grey); text-wrap: pretty; }
.lp-head { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.lp-head--left { justify-items: start; text-align: left; }
.lp-head h2 { max-width: 26ch; }
.lp--dark h2 { color: #f6f6f3; }
.lp--dark .lp-lead { color: #c6c8cc; }

/* Switches: panels share one grid cell, so every choice has exactly the same size */
.seg { display: flex; gap: 4px; padding: 5px; border-radius: 12px; background: var(--l-soft); }
.seg button { flex: 1; min-height: 46px; padding: 6px 16px; border: 0; border-radius: 9px; background: none; font: 600 16px/1.25 var(--font-text); color: var(--l-grey); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--l-ink); box-shadow: 0 1px 3px rgba(32, 33, 36, .18); }
.seg button:focus-visible { outline: 3px solid #1f6fd6; outline-offset: 1px; }
.seg--two { width: min(460px, 100%); margin: 0 auto 24px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.is-switching .stack > * { grid-area: 1 / 1; }
.is-switching .is-off { visibility: hidden; }

/* 1. Trace a stock number */
.tr > .seg { margin-bottom: 20px; }
.tr .seg button { display: grid; justify-items: start; align-content: center; gap: 2px; min-width: 0; padding: 9px 14px; text-align: left; }
.tr .seg button b { font-size: 15px; color: var(--l-ink); }
.tr .seg button span { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.tr-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--l-rule); border-radius: 14px; overflow: hidden; background: #fff; }
.tr-sum { display: flex; flex-direction: column; padding: 28px; background: #f6f6f2; border-right: 1px solid var(--l-rule); }
.tr-sum h3 { margin-bottom: 14px; font-size: 23px; line-height: 1.2; }
.tr-sum dl { display: flex; flex-direction: column; flex: 1; }
.tr-sum dl > div { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; border-bottom: 1px solid var(--l-rule); font-size: 16px; }
.tr-sum dt { color: var(--l-grey); }
.tr-sum dd { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr-sum .is-total { border-bottom: 2px solid var(--l-ink); border-top: 1px solid var(--l-ink); }
.tr-sum .is-total dt { color: var(--l-ink); font-weight: 700; }
.tr-sum .is-total dd { font: 700 28px/1 var(--head); }
.tr-sum .is-free { margin-top: 14px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--l-tint); }
.tr-sum .is-free dt { color: var(--l-ink); font-weight: 600; }
.tr-sum .is-free dd { font: 700 34px/1 var(--head); color: var(--l-deep); }
.tr-sum .is-free small { font: 600 15px var(--font-text); }
.tr-chart { padding: 28px !important; min-width: 0; }
.tr-chart figcaption, .rp-card figcaption, .wh-value figcaption { margin-bottom: 14px; font: 700 20px/1.25 var(--head); color: var(--l-ink); }
.tr-moves { margin-top: 18px !important; border-top: 1px solid var(--l-rule); }
.tr-moves li { display: grid; grid-template-columns: minmax(0, 1fr) 52px 96px; gap: 12px; align-items: center; min-height: 44px; padding-block: 6px; border-bottom: 1px solid var(--l-rule); font-size: 15px; }
.tr-moves li:last-child { border-bottom: 0; }
.tr-moves li > span:first-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.tr-moves b { min-width: 92px; font-weight: 600; }
.tr-moves i { font-style: normal; color: var(--l-deep); }
.tr-moves em { font-style: normal; font-size: 14px; color: var(--l-grey); }
.tr-moves strong { text-align: right; font-variant-numeric: tabular-nums; }
.tr-moves .is-down { color: #a31f1f; }
.tr-moves .is-up { color: #25652f; }
.tr-bal { text-align: right; font-size: 14px; color: var(--l-grey); font-variant-numeric: tabular-nums; }

/* 2. Receiving: four stages joined by arrows, then the record itself */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 62px; right: -32px; height: 2px; background: repeating-linear-gradient(90deg, var(--l-accent) 0 7px, transparent 7px 13px); }
.flow-step:not(:last-child)::before { content: ""; position: absolute; top: 19px; right: -31px; width: 9px; height: 9px; border: solid var(--l-accent); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.flow-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--l-accent); background: #fff; color: var(--l-deep); }
.flow-ico .icon { width: 22px; height: 22px; }
.flow-step.is-now .flow-ico { background: var(--l-accent); color: #fff; }
.flow-step h3 { margin: 16px 0 6px; font-size: 21px; }
.flow-step p { font-size: 15.5px; line-height: 1.5; color: var(--l-grey); }
.flow-step small { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--l-deep); }
.slip { margin-top: 36px; border: 1px solid var(--l-rule); border-radius: 14px; background: #fff; overflow: hidden; }
.slip-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 16px 24px; background: var(--l-dark); color: #fff; }
.slip-head p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.slip-head b { font: 700 20px var(--head); }
.slip-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slip-line { padding: 20px 24px; }
.slip-line + .slip-line { border-left: 1px solid var(--l-rule); }
.slip-item { display: grid; gap: 2px; }
.slip-item b { font-size: 17px; }
.slip-item span { font-size: 14.5px; color: var(--l-grey); }
.slip-bar { display: flex; gap: 2px; height: 18px; margin-block: 14px; }
.slip-bar span { flex-basis: 0; border-radius: 4px; }
.slip-bar .is-got, .k-got::before { background: var(--l-accent); }
.slip-bar .is-due, .k-due::before { background: repeating-linear-gradient(135deg, #cfcfc7 0 5px, #e7e7e1 5px 10px); }
.slip-nums { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--l-grey); }
.slip-nums b { color: var(--l-ink); }
.slip-nums span::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 7px; border-radius: 3px; }
.k-bad::before { background: #a31f1f; }
.k-bad, .k-bad b { color: #a31f1f !important; }
.k-bad.is-zero, .k-bad.is-zero b { color: var(--l-grey) !important; }
.k-bad.is-zero::before { background: #cfcfc7; }
.slip-note { display: flex; gap: 10px; padding: 14px 24px !important; border-top: 1px solid var(--l-rule); background: #f6f6f2; font-size: 15px; color: var(--l-grey); }
.slip-note .icon { margin-top: 3px; }

/* 3. Warehouses and the routes between them */
.wh { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; align-items: stretch; }
.wh-routes { display: flex; flex-direction: column; gap: 14px; }
.wh-route { display: grid; flex: 1; grid-template-columns: 108px minmax(0, 1fr) 108px; gap: 14px; align-items: center; padding: 18px; border-radius: 14px; background: #34373b; color: #fff; }
.wh-site { display: grid; justify-items: center; gap: 3px; padding: 12px 4px !important; border-radius: 10px; background: #f6f6f3; color: var(--l-ink); text-align: center; }
.wh-site .icon { width: 22px; height: 22px; color: var(--l-accent); }
.wh-site b { font: 700 18px/1.15 var(--head); }
.wh-site span { font-size: 13px; color: var(--l-grey); }
.wh-way { display: grid; gap: 8px; min-width: 0; text-align: center; }
.wh-way > p:first-child { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.wh-way em { padding: 2px 10px; border-radius: 99px; background: #4a4d53; font-style: normal; font-size: 13px; font-weight: 600; }
.is-moving .wh-way em { background: var(--l-tint); color: var(--l-dark); }
.wh-way i { position: relative; display: block; height: 28px; }
.wh-way i::before { content: ""; position: absolute; left: 0; right: 4px; top: 13px; height: 2px; background: repeating-linear-gradient(90deg, #8e9197 0 6px, transparent 6px 12px); }
.wh-way i::after { content: ""; position: absolute; right: 2px; top: 9px; width: 8px; height: 8px; border: solid #c6c8cc; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.is-moving .wh-way i::before { background-image: repeating-linear-gradient(90deg, #e3a74b 0 6px, transparent 6px 12px); }
.wh-way s { position: absolute; z-index: 1; top: 0; left: calc(50% - 17px); display: grid; place-items: center; width: 34px; height: 28px; border-radius: 7px; background: var(--l-accent); text-decoration: none; }
.wh-what { font: 500 13px/1.5 var(--mono); color: #d9dadd; }
.wh-value { display: flex; flex-direction: column; padding: 26px !important; border-radius: 14px; background: #fff; }
.wh-value table { width: 100%; margin-top: 18px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.wh-value th, .wh-value td { padding: 9px 0 9px 8px; border-bottom: 1px solid var(--l-rule); text-align: right; }
.wh-value th:first-child { padding-left: 0; text-align: left; font-weight: 600; }
.wh-value thead th { vertical-align: bottom; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--l-grey); }
.wh-value > p { margin-top: auto !important; padding-top: 14px !important; font-size: 15px; color: var(--l-grey); }
@media (prefers-reduced-motion: no-preference) {
  .is-moving .wh-way i::before { animation: dash 1.1s linear infinite; }
  .is-moving .wh-way s { animation: drive 7s ease-in-out infinite alternate; }
  /* The truck turns to face the way it is driving: right on the way out, left on the way back */
  .is-moving .wh-way s .icon { animation: turn 14s step-end infinite; }
  .flow-step:not(:last-child)::after { animation: dash13 1.4s linear infinite; }
}
@keyframes dash { to { background-position: 12px 0; } }
@keyframes dash13 { to { background-position: 13px 0; } }
@keyframes drive { from { left: 12%; } to { left: calc(88% - 34px); } }
@keyframes turn { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }

/* 4. Dispatch lane */
.eq { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.eq-item { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 14px !important; font-weight: 600; }
.eq-row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: center; }
.eq-row p { display: grid; align-content: center; gap: 4px; min-height: 108px; padding: 12px 8px !important; border: 1px solid var(--l-rule); border-radius: 12px; }
.eq-row b { font: 700 42px/1 var(--head); font-variant-numeric: tabular-nums; }
.eq-row span { font-size: 14.5px; line-height: 1.3; color: var(--l-grey); }
.eq-row i { display: grid; place-items: center; color: var(--l-grey); }
.eq-row .is-free { border-color: var(--l-accent); background: var(--l-tint); }
.eq-row .is-free b { color: var(--l-deep); }
.lane { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lane-col { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; background: var(--l-soft); }
.lane-col h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 4px 12px; font-size: 20px; }
.lane-col h3 b { min-width: 28px; padding: 1px 9px; border-radius: 99px; background: #fff; font: 700 14px/1.6 var(--font-text); text-align: center; }
.lane-col ul { display: grid; gap: 8px; }
.lane-col li { display: grid; gap: 2px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 2px rgba(32, 33, 36, .1); font-size: 14px; color: var(--l-grey); }
.lane-col li b { font-size: 15.5px; line-height: 1.3; color: var(--l-ink); }
.lane-col > p { margin-top: auto !important; padding: 14px 4px 2px !important; font-size: 14.5px; line-height: 1.45; color: var(--l-ink); }

/* 5. Reports */
.rp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rp-card { display: flex; flex-direction: column; min-width: 0; padding: 26px !important; border: 1px solid var(--l-rule); border-radius: 14px; background: #fff; }
.rp-card > .xc { --xc-h: 270px; }

/* 6. Roles */
.rl-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 36px; align-items: stretch; }
.rl-about { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.rl-about h3 { font-size: 28px; }
.rl-who { font-weight: 600; color: var(--l-deep); }
.rl-who + p { margin-top: 12px !important; font-size: 17px; color: var(--l-grey); }
.rl-about ul { display: grid; gap: 10px; margin-block: 20px 26px !important; }
.rl-about li { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; }
.rl-about li .icon { margin-top: 2px; color: var(--l-accent); }
.rl-window { display: grid; grid-template-columns: 208px minmax(0, 1fr); border: 1px solid var(--l-rule); border-radius: 14px; overflow: hidden; box-shadow: 0 22px 50px -30px rgba(32, 33, 36, .45); }
.rl-side { padding: 14px 10px !important; background: var(--l-dark); color: #e4e5e7; }
.rl-side li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 15px; font-weight: 500; }
.rl-side li span { flex: 1; }
.rl-side .is-on { background: #fff; color: var(--l-ink); }
.rl-side .is-locked { color: #9a9da3; }
.rl-side .is-locked > .icon:last-of-type { width: 14px; height: 14px; }
.rl-main { display: flex; flex-direction: column; min-width: 0; padding: 22px; background: #f6f6f2; }
.rl-hello { font: 700 24px var(--head); }
.rl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--l-rule); border-radius: 10px; background: #fff; }
.rl-stats p { display: grid; padding: 10px 14px !important; }
.rl-stats p + p { border-left: 1px solid var(--l-rule); }
.rl-stats span { font-size: 13.5px; color: var(--l-grey); }
.rl-stats b { font: 700 28px/1.2 var(--head); }
.rl-cap { margin-top: 18px !important; margin-bottom: 8px !important; font-weight: 700; }
.rl-list { border: 1px solid var(--l-rule); border-radius: 10px; background: #fff; }
.rl-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 54px; padding: 8px 14px; }
.rl-list li + li { border-top: 1px solid var(--l-rule); }
.rl-list li > .icon { color: var(--l-accent); }
.rl-list li > span { display: grid; line-height: 1.35; }
.rl-list em { font-style: normal; font-size: 14px; color: var(--l-grey); }
.rl-list strong { font-size: 14.5px; }
.rl-foot { display: flex; gap: 9px; margin-top: auto !important; padding-top: 14px !important; font-size: 14.5px; color: var(--l-grey); }
.rl-foot .icon { margin-top: 2px; }

/* 7. Phone */
.ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.ph .seg { margin-top: 28px; background: #ead8ad; }
.ph .seg button { color: #3d3626; }
.ph-texts { margin-top: 22px; }
.ph-texts h3 { margin-bottom: 6px; font-size: 24px; }
.ph-texts p { font-size: 17px; line-height: 1.55; color: #45402f; }
.ph-note { display: flex; gap: 10px; margin-top: 22px !important; padding-top: 18px !important; border-top: 1px solid #d9c389; font-size: 15px; color: #45402f; }
.ph-note .icon { margin-top: 2px; }
.ph-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 12px; font-weight: 700; color: var(--l-deep); text-underline-offset: 4px; }
.ph-link .m-arrow { width: 12px; height: 12px; }
a[data-narrow] { display: none !important; }
.ph-stage { display: grid; justify-items: center; min-width: 0; }
.ph-stage .stack { grid-template-columns: minmax(0, 320px); justify-content: center; width: 100%; }
/* Even frame: the outer radius is the screen radius plus the frame width, so all four corners match */
.ph-frame { width: 100%; padding: 10px; border-radius: 50px; background: #141518; box-shadow: 0 0 0 2px #47494f, 0 30px 60px -28px rgba(32, 33, 36, .6); }
.ph-screen { border-radius: 40px; overflow: hidden; background: #fff; }
.ph-screen img { display: block; width: 100%; height: auto; }
.ph-status { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 40px; padding: 0 24px; font-size: 13px; font-weight: 700; }
.ph-status i { width: 84px; height: 24px; border-radius: 99px; background: #141518; }
.ph-status b { justify-self: end; position: relative; width: 22px; height: 11px; border: 1.5px solid #202124; border-radius: 3px; }
.ph-status b::before { content: ""; position: absolute; inset: 1.5px 4px 1.5px 1.5px; background: #202124; }
/* White space under the tab bar, so the rounded corners never touch the labels */
.ph-home { height: 12px; }
.lp .rl-tabbar { display: none; }

/* Questions and close */
.lp-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.lp-faq .lp-lead a { color: var(--l-deep); font-weight: 600; text-underline-offset: 4px; }
.lp-faq__list { border-top: 1px solid var(--l-rule); }
.lp-faq details { border-bottom: 1px solid var(--l-rule); }
.lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 6px; border: solid var(--l-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lp-faq details[open] summary::after { transform: rotate(225deg); }
.lp-faq details p { padding: 0 40px 22px 0; font-size: 16px; line-height: 1.6; color: var(--l-grey); max-width: 62ch; }

.lp-foot { padding-block: clamp(48px, 6vw, 80px) 28px; background: var(--l-dark); color: #f4f4f1; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-bottom: 48px; border-bottom: 1px solid #484b50; }
.lp-cta h2 { max-width: 22ch; color: #fff; }
.lp-cta p { margin: 12px 0 0; font-size: 18px; color: #c6c8cc; }
.lp-cta .btn { min-height: 56px; padding-inline: 34px; background: var(--l-tint); color: var(--l-dark); font-size: 18px; }
.lp-foot__links { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px 48px; margin-top: 40px; }
.lp-foot__links p { max-width: 44ch; margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #b9bbbf; }
.lp-logo { display: inline-flex; align-items: center; font: 700 22px var(--head); color: #fff; text-decoration: none; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 4px 26px; max-width: 720px; }
.lp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: #f4f4f1; text-decoration: none; }
.lp-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-legal { margin: 28px 0 0; font-size: 14px; color: #b9bbbf; }

@media (max-width: 1023px) {
  main > section.hero { height: auto; min-height: 0; padding-bottom: 40px; }
  main > section.hero .hero__media { flex: 0 0 auto; margin-top: 8px; }
  .tr-panel, .wh, .rl-panel, .lp-faq, .rp { grid-template-columns: minmax(0, 1fr); }
  .tr-sum { border-right: 0; border-bottom: 1px solid var(--l-rule); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .flow-step:nth-child(2)::after, .flow-step:nth-child(2)::before { display: none; }
  .lane { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  a[data-wide] { display: none !important; }
  a[data-narrow] { display: inline-flex !important; }
  .ph { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* Phones: one thing at a time, switches and swipe rows instead of tall stacks */
@media (max-width: 639px) {
  .lp { padding-block: 48px; }
  .lp h2, .lp-cta h2 { font-size: 31px; line-height: 1.08; }
  .lp-lead { margin-top: 10px !important; font-size: 16.5px; }
  .lp-head { margin-bottom: 22px; justify-items: start; text-align: left; }
  .nav__actions .btn, .nav:not(.is-open) .nav__actions .btn { min-height: 34px; height: 34px; padding-inline: 14px; font-size: 14px; position: relative; }
  .nav__actions .btn::before { content: ""; position: absolute; inset: -6px 0; }
  .nav__toggle { width: 34px; height: 34px; min-width: 0; min-height: 0; position: relative; }
  .nav__toggle::after { content: ""; position: absolute; inset: -6px; }
  .hero-shot img { max-width: 390px; margin-inline: auto; }

  .lp-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gut)); padding: 2px var(--gut) 6px; }
  .lp-rail::-webkit-scrollbar { display: none; }
  .lp-rail.is-gliding { scroll-snap-type: none; }
  .lp-rail > * { scroll-snap-align: start; flex: none; }

  .tr > .seg { margin: 0 -16px 14px; padding: 2px 16px; gap: 8px; border-radius: 0; background: none; }
  .tr .seg button { flex: none; width: 172px; border: 1px solid var(--l-rule); }
  .tr .seg button[aria-pressed="true"] { border-color: var(--l-accent); background: var(--l-tint); box-shadow: none; }
  .tr-sum { padding: 16px; }
  .tr-sum h3 { font-size: 20px; margin-bottom: 8px; }
  .tr-sum dl > div { min-height: 34px; font-size: 15px; }
  .tr-sum .is-free { margin-top: 10px; }
  .tr-chart { padding: 16px !important; }
  .tr-moves li { grid-template-columns: minmax(0, 1fr) 46px; }
  .tr-moves li:nth-child(n+4) { display: none; }
  .tr-moves b { min-width: 0; }
  .tr-bal { display: none; }

  .flow { gap: 36px; }
  .flow-step { width: 236px; padding: 14px; border: 1px solid var(--l-rule); border-radius: 12px; background: #fff; }
  .flow-step:nth-child(2)::after, .flow-step:nth-child(2)::before { display: block; }
  .flow-step:not(:last-child)::after { top: 38px; left: 76px; right: -28px; }
  .flow-step:not(:last-child)::before { top: 34px; right: -27px; }
  .flow-step h3 { margin-top: 12px; }
  .slip { margin-top: 18px; }
  .slip-head, .slip-line { padding: 14px 16px; }
  .slip-lines { grid-template-columns: minmax(0, 1fr); }
  .slip-line + .slip-line { border-left: 0; border-top: 1px solid var(--l-rule); }
  .slip-bar { margin-block: 10px; }
  .slip-note { padding: 12px 16px !important; }

  .wh { gap: 14px; }
  .wh-route { grid-template-columns: 82px minmax(0, 1fr) 82px; gap: 8px; padding: 10px; }
  .wh-site { padding: 8px 2px !important; }
  .wh-site b { font-size: 16px; }
  .wh-way { gap: 4px; }
  .wh-way > p:first-child { flex-direction: column; gap: 3px; }
  .wh-value { padding: 16px !important; }

  .eq { margin-bottom: 20px; }
  .eq-row { grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) 14px minmax(0, 1fr); gap: 4px; }
  .eq-row p { min-height: 112px; padding: 8px 4px !important; }
  .eq-row b { font-size: 32px; }
  .eq-row span { font-size: 13px; }
  .lane { gap: 10px; }
  .lane-col { width: min(272px, 80vw); }

  .rp-card { padding: 16px !important; }
  .rp-card > .xc { --xc-h: 292px; }
  .is-switching .rp > * { grid-area: 1 / 1; }

  .rl-panel { gap: 16px; align-content: start; }
  .rl-about ul, .rl-who + p { display: none; }
  .rl-about { display: grid; gap: 2px; justify-content: stretch; }
  .rl-about h3 { font-size: 22px; }
  .rl-about .btn { margin-top: 10px; justify-content: center; }
  .rl-window { grid-template-columns: minmax(0, 1fr); align-content: start; grid-template-rows: auto 1fr; }
  .rl-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 8px !important; }
  .rl-side li { min-height: 34px; padding: 0 8px; gap: 8px; font-size: 14px; }
  .rl-main { padding: 14px; }
  .rl-hello { font-size: 21px; }
  .rl-stats p { padding: 8px !important; }
  .rl-stats b { font-size: 23px; }
  .rl-stats span { font-size: 13px; line-height: 1.25; }
  .rl-list li { padding: 7px 10px; gap: 10px; }

  .ph .seg { margin-top: 18px; }
  .ph-texts { margin-top: 14px; }
  .ph-texts h3 { font-size: 21px; }
  .ph-texts p { font-size: 16px; }
  .ph-stage .stack { grid-template-columns: minmax(0, 288px); }
  .ph-frame { padding: 8px; border-radius: 44px; }
  .ph-screen { border-radius: 36px; }
  .ph-status { height: 34px; padding: 0 20px; }
  .ph-status i { width: 72px; height: 20px; }

  .lp-faq summary { font-size: 17px; min-height: 58px; }
  .lp-faq details p { padding-right: 0; }
  .lp-cta { padding-bottom: 28px; }
  .lp-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 760px) { .sku { font-size: max(.9em, 13px); } }
#phone .lp-lead { color: var(--ink, #222326); }

/* Phones: each role preview is a small phone app with its own tab bar, not a shrunken desktop menu */
@media (max-width: 639px) {
  .lp .rl-window { display: flex; flex-direction: column; border: 7px solid #141518; border-radius: 30px; }
  .lp .rl-window .rl-side { display: none; }
  .lp .rl-window .rl-main { flex: 1 0 auto; }
  .lp .rl-window .rl-tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 10px 4px 11px; border-top: 1px solid var(--l-rule); background: #fff; }
  .rl-tabbar li { display: grid; justify-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--l-grey); white-space: nowrap; }
  .rl-tabbar i { display: grid; place-items: center; width: 44px; height: 25px; border-radius: 99px; }
  .rl-tabbar .icon { width: 18px; height: 18px; }
  .rl-tabbar i b { width: 4px; height: 4px; border-radius: 50%; background: currentColor; box-shadow: -6px 0 currentColor, 6px 0 currentColor; }
  .rl-tabbar .is-on { color: var(--l-deep); font-weight: 700; }
  .rl-tabbar .is-on i { background: var(--l-tint); }
}
