/* Landing page. The header and buttons come from assets/kit; every section is designed here. */
.bd { --rasp: #b02a5b; --rasp-deep: #8e1f48; --tint: #f8dde7; --plum: #2e1322; --ink0: #271a21; --grey: #5a4a52; --rule: #e6dee1; --late: #a8320a; --late-tint: #fde4d8; --ok0: #1d6236; --ok-tint: #ddefe2; }
.bd .nav__logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; }
.bd .icon { width: 20px; height: 20px; flex: none; }
.bd .btn.btn--secondary { box-shadow: inset 0 0 0 1px #bfaab4; }
.only-phone { display: none; }

.bd main > section.hero.bd-hero, .bd main > section.lp { display: block; height: auto; min-height: 0; }
.bd main > section.hero.bd-hero { padding: calc(var(--nav, 64px) + clamp(36px, 5vw, 68px)) 0 clamp(40px, 5vw, 72px); }
.bd main > section.hero.bd-hero > .wrap { display: block; height: auto; }
.bd-hero__text { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.bd-hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; text-wrap: balance; }
.bd-hero__lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--grey); max-width: 44ch; }
.bd-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
/* The computer and phone sit side by side, so neither hides the other and both are shown whole */
.bd-hero__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25%); gap: clamp(16px, 2.4vw, 32px); align-items: center; margin-top: clamp(36px, 4.5vw, 56px); padding: clamp(20px, 3.4vw, 44px); border-radius: 28px; background: var(--tint); height: auto; }
.bd main > section.hero.bd-hero .bd-hero__stage { -webkit-mask-image: none; mask-image: none; flex: none; }
.bd-window { min-width: 0; border: 1px solid #dcc0cb; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -34px rgba(46, 19, 34, .55); }
.bd-window__bar { display: flex; align-items: center; gap: 6px; margin: 0; padding: 9px 14px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--grey); }
.bd-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: #dccdd4; }
.bd-window__bar span { margin-left: 10px; }
.bd-window img { display: block; width: 100%; height: auto; }
.bd-hero__phone.mock { width: 100%; padding: 7px; border-radius: 41px; }
.bd-hero__phone .mock-screen { border-radius: 34px; }
.bd-hero__phone img { display: block; width: 100%; height: auto; }

.bd main > section.lp { padding-block: clamp(76px, 8.5vw, 120px); scroll-margin-top: 64px; }
.bd main > section.lp > .wrap { height: auto; }
.lp--tint { background: #f7f4f5; }
.lp--dark { background: var(--plum); }
.lp h2, .lp-foot h2 { margin: 0; font-size: clamp(31px, 3.7vw, 48px); line-height: 1.08; text-wrap: balance; color: var(--ink0); }
.lp h3 { margin: 0; letter-spacing: -.008em; }
.lp-lead { margin: 18px 0 0; max-width: 54ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--grey); text-wrap: pretty; }
.lp-head { margin-bottom: clamp(36px, 4.4vw, 56px); }
.lp-head h2 { max-width: 22ch; }
.lp-head--split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 72px; align-items: end; }
.lp-head--split .lp-lead { margin: 0; }
.lp--dark h2 { color: #fbf3f6; }
.lp--dark .lp-lead { color: #d8c1cd; }
.chip { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-style: normal; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.chip--ok { background: var(--ok-tint); color: var(--ok0); }
.chip--late { background: var(--late-tint); color: var(--late); }
.chip--info { background: #deebf4; color: #25567a; }

/* Switches */
.lp-tabs, .lp-seg { display: flex; gap: 8px; margin-bottom: 18px; }
.lp-tabs[hidden], .lp-seg[hidden], .ph-list[hidden] { display: none; }
.lp-tabs { overflow-x: auto; scrollbar-width: none; }
.lp-tabs button { flex: none; min-height: 44px; padding: 0 20px; border: 1px solid #cfc2c8; border-radius: 10px; background: #fff; color: var(--ink0); font: 700 15px/1 var(--font-text); cursor: pointer; }
.lp-tabs button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.lp-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 13px; background: #e9e0e4; }
.lp-seg button { min-height: 42px; padding: 0 22px; border: 0; border-radius: 10px; background: none; color: var(--grey); font: 700 15px/1 var(--font-text); white-space: nowrap; cursor: pointer; }
.lp-seg button[aria-pressed="true"] { background: #fff; color: var(--ink0); box-shadow: 0 1px 4px rgba(46, 19, 34, .2); }
.is-switched .pg-panels, .is-switched .tv-panels { display: grid; }
.is-switched .pg-panel, .is-switched .tv-panel { grid-area: 1 / 1; visibility: hidden; }
.is-switched .is-current { visibility: visible; }

/* Sign-off flow: four real events joined by arrows */
.so { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 22px; margin: 0; padding: 0; list-style: none; }
.so-step { position: relative; display: flex; flex-direction: column; min-width: 0; }
.so-node { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tint); color: var(--rasp-deep); }
.so-step--changes .so-node { background: #ffd9c7; color: #8d2807; }
.so-step--approved .so-node { background: #bfe6ca; color: #12472a; }
.so-line { position: absolute; top: 25px; left: 62px; width: calc(100% - 52px); height: 2px; background: #a77e92; transform-origin: left; }
.so-tip { position: absolute; top: 21px; right: -10px; width: 10px; height: 10px; border: solid #a77e92; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.so-card { display: flex; flex: 1; flex-direction: column; margin-top: 18px; padding: 20px; border-radius: 16px; background: #fff; }
.so-card h3 { font-size: 20px; line-height: 1.25; color: var(--ink0); }
.so-note { flex: 1; margin: 10px 0 16px; font-size: 16px; line-height: 1.5; color: var(--ink0); }
.so-who { display: grid; margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.45; color: var(--grey); }
.so-who b { color: var(--ink0); }
.so-hint { display: none; }
.so.is-armed .so-card { opacity: .25; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.so.is-armed .so-line { transform: scaleX(0); transition: transform .5s linear; }
.so.is-armed .so-tip { opacity: 0; transition: opacity .2s; }
.so.is-armed.is-playing .so-card { opacity: 1; transform: none; transition-delay: calc(var(--i) * .65s); }
.so.is-armed.is-playing .so-line { transform: none; transition-delay: calc(var(--i) * .65s + .25s); }
.so.is-armed.is-playing .so-tip { opacity: 1; transition-delay: calc(var(--i) * .65s + .7s); }

/* Progress explorer */
.pg-panel { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: #fff; }
.pg-panels > .pg-panel + .pg-panel { margin-top: 16px; }
.is-switched .pg-panels > .pg-panel + .pg-panel { margin-top: 0; }
.pg-chart { display: flex; flex-direction: column; min-width: 0; padding: 26px 28px 18px; }
.pg-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 16px; }
.pg-name b { font: 700 22px/1.3 var(--font-display); }
.pg-name span { color: var(--grey); font-size: 15px; }
.pg-name em { margin-left: auto; }
.pg-chart .xc { display: flex; flex: 1; flex-direction: column; --xc-h: 300px; }
.pg-miles { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 16px 24px; list-style: none; background: #fbf8f9; border-left: 1px solid var(--rule); }
.pg-miles li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 12px; padding: 9px 0; line-height: 1.35; }
.pg-miles li + li { border-top: 1px solid var(--rule); }
.pg-miles i { grid-row: 1 / 3; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border: 2px solid #cfc2c8; border-radius: 50%; }
.pg-miles i .icon { width: 13px; height: 13px; }
.pg-miles .is-done i { background: var(--rasp); border-color: var(--rasp); color: #fff; }
.pg-miles .is-doing i { border-color: var(--rasp); background: radial-gradient(circle, var(--rasp) 0 5px, #fff 6px); }
.pg-miles .is-late i { border-color: var(--late); background: var(--late-tint); }
.pg-miles span { font-size: 15.5px; font-weight: 650; }
.pg-miles small { font-size: 13.5px; color: var(--grey); }
.pg-miles .is-late small { color: var(--late); font-weight: 700; }

/* One request, two views */
.tv { display: flex; flex-direction: column; align-items: flex-start; }
.tv-panels { align-self: stretch; }
.tv-panel { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -40px rgba(46, 19, 34, .6); }
.tv-panels > .tv-panel + .tv-panel { margin-top: 16px; }
.is-switched .tv-panels > .tv-panel + .tv-panel { margin-top: 0; }
.tv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 20px 26px; border-bottom: 1px solid var(--rule); }
.tv-head h3 { font-size: 21px; line-height: 1.3; }
.tv-head p { margin: 3px 0 0; font-size: 14px; color: var(--grey); }
.tv-body { display: grid; flex: 1; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.tv-thread { display: flex; flex-direction: column; gap: 12px; padding: 22px 26px; }
.tv-msg { padding: 13px 16px; border-radius: 12px; background: #f7f4f5; }
.tv-msg p { margin: 0; font-size: 15.5px; line-height: 1.5; }
.tv-msg p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14.5px; }
.tv-msg small { color: var(--grey); font-size: 13px; }
.tv-msg.is-internal { background: #fdf6e3; border: 1px dashed #c99b2e; }
.tv-msg p span { display: inline-flex; align-items: center; gap: 5px; color: #764600; font-weight: 700; font-size: 13px; }
.tv-msg p span .icon { width: 14px; height: 14px; }
.tv-reply { display: flex; flex: 1; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 76px; padding: 12px 12px 12px 16px; border: 1px solid #cfc2c8; border-radius: 12px; font-size: 14.5px; color: var(--grey); }
.tv-reply span { align-self: flex-start; }
.tv-reply b { padding: 8px 18px; border-radius: 9px; background: var(--rasp); color: #fff; font-size: 14px; }
.tv-side { display: flex; flex-direction: column; margin: 0; padding: 12px 26px; background: #fbf8f9; border-left: 1px solid var(--rule); }
.tv-side div { padding: 13px 0; }
.tv-side div + div { border-top: 1px solid var(--rule); }
.tv-side dt { font-size: 13px; color: var(--grey); }
.tv-side dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.4; }
.tv-side .tv-rule { margin-top: auto; }

/* Invoices */
.bd main > section.lp > .wrap.iv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.iv-path { margin: 34px 0 0; padding: 0; list-style: none; }
.iv-path li { position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.iv-path li:last-child { padding-bottom: 0; }
.iv-path li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 8px; width: 2px; background: #cfc2c8; }
.iv-path li:not(:last-child)::after { content: ""; position: absolute; left: 18px; bottom: 9px; width: 8px; height: 8px; border: solid #a8949d; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.iv-path i { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--tint); color: var(--rasp-deep); }
.iv-path .is-late i { background: var(--late-tint); color: var(--late); }
.iv-path .is-paid i { background: var(--ok-tint); color: var(--ok0); }
.iv-path div { display: grid; align-content: center; line-height: 1.45; }
.iv-path b { font-size: 17px; }
.iv-path span { font-size: 15.5px; color: var(--grey); }
.iv-sheet { margin: 0; padding: clamp(20px, 3vw, 38px); border: 1px solid var(--rule); border-top: 7px solid var(--rasp); border-radius: 8px; background: #fff; box-shadow: 0 34px 60px -40px rgba(46, 19, 34, .55); }
.iv-sheet p, .iv-sheet ul { margin: 0; padding: 0; list-style: none; }
.iv-top { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.iv-top div { display: grid; align-content: start; }
.iv-top div:last-child { text-align: right; }
.iv-top b { font: 700 20px/1.3 var(--font-display); }
.iv-top span { font-size: 14px; color: var(--grey); }
.iv-sheet .iv-to { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; padding: 18px 0; font-weight: 700; border-bottom: 1px solid var(--rule); }
.iv-to span { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: var(--grey); }
.iv-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--rule); }
.iv-lines li span { display: grid; min-width: 0; line-height: 1.4; }
.iv-lines b { font-size: 15.5px; }
.iv-lines small { font-size: 13.5px; color: var(--grey); }
.iv-lines strong { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 15.5px; }
.iv-sheet .iv-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin-top: 18px; padding: 15px 18px; border-radius: 12px; background: var(--tint); font-weight: 700; }
.iv-total b { font: 700 26px/1.3 var(--font-display); }
.iv-sheet .iv-fine { margin-top: 16px; font-size: 13px; color: var(--grey); }

/* Phone */
.bd main > section.lp > .wrap.ph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.ph-list { display: grid; gap: 8px; margin-top: 30px; }
.ph-list button { display: grid; gap: 2px; width: 100%; padding: 14px 18px; border: 1px solid transparent; border-left: 4px solid #d8c9d0; border-radius: 4px 12px 12px 4px; background: none; color: var(--ink0); text-align: left; font-family: var(--font-text); cursor: pointer; }
.ph-list button b { font-size: 17px; }
.ph-list button span { font-size: 15px; line-height: 1.45; color: var(--grey); }
.ph-list button[aria-pressed="true"] { background: #fff; border-color: var(--rule); border-left: 4px solid var(--rasp); }
.bd .ph-open { margin-top: 26px; }
.ph-stage { display: flex; justify-content: center; align-items: center; padding: 38px 20px; border-radius: 28px; background: var(--tint); }
/* The frame is the screen plus an even 10px edge, with matching corner radii */
.mock { flex: none; width: min(320px, 100%); padding: 10px; border-radius: 50px; background: #1a1015; box-shadow: 0 34px 56px -30px rgba(26, 16, 21, .7); }
.mock-screen { display: flex; flex-direction: column; overflow: hidden; border-radius: 40px; background: #f7f4f5; }
.mock-status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 2px 24px 0 28px; font-size: 12px; color: var(--ink0); }
.mock-island { position: absolute; top: 7px; left: 50%; width: 30%; height: 21px; transform: translateX(-50%); border-radius: 99px; background: #1a1015; }
.mock-signal { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.mock-signal i { width: 2.5px; height: 4px; border-radius: 1px; background: var(--ink0); }
.mock-signal i:nth-child(2) { height: 6px; }
.mock-signal i:nth-child(3) { height: 8px; }
.mock-signal i:nth-child(4) { height: 10px; }
.mock-signal em { width: 20px; height: 10px; margin-left: 4px; border: 1.5px solid var(--ink0); border-radius: 3px; background: linear-gradient(var(--ink0), var(--ink0)) 2px 50% / 12px 5px no-repeat; }
.mock-shots { display: grid; }
.mock-shot { grid-area: 1 / 1; }
.mock-shot img { display: block; width: 100%; height: auto; }
.is-switched .mock-shot:not(.is-current) { visibility: hidden; }
/* White space under the tab bar, so the rounded corners never touch the labels. No home bar. */
.mock-home { height: 12px; background: #fff; }

/* Permissions */
.rt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16px; }
.rt-table th, .rt-table td { padding: 15px 20px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; }
.rt-table thead th { font-size: 14px; color: var(--grey); border-bottom: 2px solid var(--ink0); }
.rt-table thead th:nth-child(3), .rt-table td:nth-child(3) { background: #fcf1f5; }
.rt-table tbody th { width: 28%; font-weight: 700; }
.rt-table thead th:nth-child(2), .rt-table thead th:nth-child(3) { width: 36%; }
.rt-table td .icon { display: inline-block; width: 17px; height: 17px; margin-right: 10px; vertical-align: -3px; color: var(--ok0); }
.rt-table td.is-no { color: var(--grey); }
.rt-table td.is-no .icon { color: var(--late); }

/* Questions: every answer is on the page */
.bd main > section.lp > .wrap.qa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 36px 72px; align-items: start; }
.qa-list { border-top: 1px solid #cfc2c8; }
.qa-list > div { padding: 20px 0; border-bottom: 1px solid #cfc2c8; }
.qa-list h3 { font-size: 19px; line-height: 1.35; color: var(--ink0); }
.qa-list p { margin: 8px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.6; color: var(--grey); }

/* Footer */
.lp-foot { padding: clamp(48px, 6vw, 80px) 0 28px; background: #fff; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: clamp(28px, 4vw, 52px); border-radius: 24px; background: var(--plum); }
.lp-cta h2 { color: #fbf3f6; }
.lp-cta p { margin: 12px 0 0; max-width: 48ch; color: #d8c1cd; font-size: 17px; }
.lp-cta .btn.btn--primary { background: var(--tint); color: var(--plum); }
.lp-foot__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; margin-top: 44px; }
.lp-foot__links p { margin: 10px 0 0; max-width: 40ch; font-size: 14.5px; color: var(--grey); }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 0 26px; align-content: start; }
.lp-foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--ink0); text-decoration: none; }
.lp-foot nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lp-legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--grey); }

@media (max-width: 1023px) {
  .bd-hero__text, .lp-head--split { grid-template-columns: minmax(0, 1fr); }
  .bd-hero__text { gap: 18px; }
  .pg-panel, .tv-body { grid-template-columns: minmax(0, 1fr); }
  .pg-miles { border-left: 0; border-top: 1px solid var(--rule); }
  .pg-chart .xc { --xc-h: 240px; }
  .tv-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; border-left: 0; border-top: 1px solid var(--rule); }
  .tv-side div + div { border-top: 0; }
  .tv-side .tv-rule { grid-column: 1 / -1; margin: 0; border-top: 1px solid var(--rule); }
  .bd main > section.lp > .wrap.iv, .bd main > section.lp > .wrap.ph, .bd main > section.lp > .wrap.qa { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  /* The flow becomes a row you swipe, one event at a time */
  .so { display: flex; gap: 0 16px; margin-inline: calc(var(--gut, 24px) * -1); padding: 0 var(--gut, 24px) 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut, 24px); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .so::-webkit-scrollbar { display: none; }
  .so-step { flex: 0 0 min(78%, 300px); scroll-snap-align: start; }
  .so-node { width: 44px; height: 44px; }
  .so-line { top: 21px; left: 54px; width: calc(100% - 46px); }
  .so-tip { top: 17px; right: -8px; width: 9px; height: 9px; }
  .so-hint { display: block; margin: 14px 0 0; text-align: center; font-size: 14px; color: #d8c1cd; }
  .so.is-gliding { scroll-snap-type: none; }
}
@media (max-width: 639px) {
  .only-wide { display: none; }
  .only-phone { display: inline; }
  /* Header buttons look about 34px tall and keep a 44px tap area */
  header.nav:not(.is-open) .nav__actions .btn { position: relative; height: 34px; min-height: 0; padding-inline: 13px; font-size: 13.5px; }
  header.nav .nav__bar .nav__toggle { position: relative; width: 34px; height: 34px; min-width: 0; min-height: 0; padding: 0; }
  header.nav .nav__toggle svg { width: 16px; height: 16px; }
  header.nav:not(.is-open) .nav__actions .btn::after, header.nav .nav__bar .nav__toggle::after { content: ""; position: absolute; inset: -5px -3px; }

  .bd main > section.hero.bd-hero { padding-top: calc(var(--nav, 56px) + 24px); }
  .bd-hero h1 { font-size: 36px; line-height: 1.07; }
  .bd-hero__actions { display: grid; margin-top: 18px; }
  .bd-hero__actions .btn { width: 100%; justify-content: center; }
  .bd-hero__stage { grid-template-columns: minmax(0, 1fr); margin-top: 28px; padding: 18px; border-radius: 22px; }
  .bd-window { display: none; }
  .bd-hero__phone.mock { max-width: 320px; margin-inline: auto; }

  .bd main > section.lp { padding-block: 56px; }
  .lp h2, .lp-foot h2 { font-size: 29px; }
  .lp-head { margin-bottom: 26px; }
  .lp-lead { margin-top: 12px; font-size: 16.5px; }
  .lp-tabs { margin-inline: calc(var(--gut, 24px) * -1); padding-inline: var(--gut, 24px); }
  .lp-seg { display: grid; grid-template-columns: 1fr 1fr; align-self: stretch; width: 100%; }
  .lp-seg[hidden] { display: none; }
  .lp-seg button { min-height: 44px; padding: 0 8px; }
  .pg-chart { padding: 18px 14px 8px; }
  .pg-name b { flex: 1 1 100%; font-size: 20px; }
  .pg-chart .xc { --xc-h: 180px; }
  .pg-miles { justify-content: flex-start; padding: 8px 16px; }
  .pg-miles li { padding: 8px 0; }
  .tv-head { padding: 16px; }
  .tv-head h3 { font-size: 19px; }
  .tv-thread { padding: 14px; gap: 10px; }
  .tv-msg { padding: 12px; }
  .tv-side { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 16px; }
  .tv-side dd { font-size: 14.5px; }
  .iv-path { margin-top: 24px; }
  .iv-sheet .iv-to { grid-template-columns: minmax(0, 1fr); }
  .iv-to em { justify-self: start; margin-top: 8px; }
  /* Phone screens: one picture, three buttons above it */
  .bd main > section.lp > .wrap.ph { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .ph-copy { display: contents; }
  .ph h2 { order: 0; }
  .ph-copy .lp-lead { order: 1; margin-top: -8px; }
  .ph-list { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 4px; border-radius: 13px; background: #e9e0e4; }
  .ph-list button { display: block; min-height: 44px; padding: 4px; border: 0; border-radius: 10px; text-align: center; }
  .ph-list button[aria-pressed="true"] { border: 0; box-shadow: 0 1px 4px rgba(46, 19, 34, .2); }
  .ph-list button b { font-size: 14px; }
  .ph-list button span { display: none; }
  .ph-stage { order: 3; padding: 22px 16px; border-radius: 22px; }
  .mock { width: min(290px, 100%); }
  .bd .ph-open { order: 4; margin: 0; justify-content: center; }
  /* Permissions: one role at a time */
  .rt-table { font-size: 15px; }
  .rt-table, .rt-table tbody { display: block; }
  .rt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .rt-table tr { display: grid; padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .rt-table th, .rt-table td { display: block; padding: 0; border: 0; }
  .rt-table tbody th { width: auto; font-size: 13.5px; color: var(--grey); }
  .rt-table td:nth-child(3) { background: none; }
  .rt-table td { position: relative; padding: 3px 0 0 27px; line-height: 1.45; }
  .rt-table td .icon { position: absolute; left: 0; top: 6px; }
  .rt.is-switched .rt-table[data-show="1"] td:nth-child(3), .rt.is-switched .rt-table[data-show="2"] td:nth-child(2) { display: none; }
  .qa-list h3 { font-size: 17px; }
  .qa-list > div { padding: 16px 0; }
  .lp-cta { padding: 26px 20px; }
  .lp-cta .btn { width: 100%; justify-content: center; }
  .lp-foot nav { display: grid; grid-template-columns: 1fr 1fr; width: 100%; column-gap: 16px; }
  .lp-foot nav a { font-size: 16px; }
}
@media (min-width: 640px) { .rt .lp-seg { display: none; } }
@media (prefers-reduced-motion: reduce) { .bd *, .bd *::before, .bd *::after { transition: none !important; animation: none !important; } }
