/* Custodian, new site (preview): the product page (product.html). Loaded
   after next.css and pages.css.
   Two tours, one for each dashboard: a list of the cards on one side, the
   card itself on the other. The cards are copies of the cards of the
   dashboards (apps/dashboard/next), in HTML with invented data: the same
   sizes, colours and words. The tour goes on by itself while it is on
   screen (tour.js), with a line that fills under the card in the list and a
   pause button; each card plays its own short animation when it comes in.
   Nothing here animates for long: the line moves 20 times a second from the
   script, and the states card changes its period in one step. A long CSS
   animation made the browser draw the screen at each frame, 120 times a
   second on a ProMotion screen, for as long as the tour was in view. */

/* ---------- the head and the two dashboards ----------
   As a product page of Papermark: the title in the middle, then the two
   dashboards in their window (the same as on the home), then the tours. */

.views { padding-bottom: 0; }
/* Under the dashboards, nothing: the window stands on the page, with a
   border as the rules of the site in place of the shadow (a ring of
   box-shadow looks thicker on his screen), and it does not move with the
   scroll.
   The note goes under the window. */
.views .frame { padding: 0; overflow: visible; border-radius: 0; background: none; }
.views .frame .frame__window { border: var(--rule-w) solid var(--rule); box-shadow: none; animation: none; transform: none; will-change: auto; }
.views .frame__note { position: static; margin: 12px auto 0; max-width: 1080px; padding: 0; background: none; text-align: right; font-size: 12.5px; color: var(--ink-2); }
.views .product__bar { justify-content: center; }

/* ---------- the tour ---------- */

.tour { display: grid; grid-template-areas: "head" "stage" "list"; gap: 28px; }
.tour > .tour__head { grid-area: head; }
.tour > .tour__stage { grid-area: stage; }
.tour > .tour__list { grid-area: list; }
@media (min-width: 1024px) {
  .tour { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head head" "list stage"; column-gap: clamp(48px, 5vw, 96px); row-gap: clamp(36px, 3.6vw, 56px); }
  .tour--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "stage list"; }
  .tour > .tour__stage { align-self: start; }
}
.tour__head h2 { max-width: 22em; }
.tour__head .lead { max-width: 30em; margin-top: 18px; }
.tour__head .text-link { margin-top: 18px; }

/* The list: a rule under each card; the rule of the card on screen fills
   while it is on screen. */
.tour__list { align-self: start; border-top: var(--rule-w) solid var(--rule); counter-reset: tour; }
.tour__item { position: relative; border-bottom: var(--rule-w) solid var(--rule); }
.tour__tab { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); align-items: baseline; width: 100%; padding: 14px 0; text-align: left; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink-2); transition: color 0.3s; }
.tour__tab:hover, .tour__item.is-on .tour__tab { color: var(--ink); }
.tour__num { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tour__more { display: grid; grid-template-rows: 1fr; }
.tour__more > p { min-height: 0; overflow: hidden; padding: 0 0 18px 2.4em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.js .tour__more { grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.js .tour__more > p { padding-bottom: 0; opacity: 0; transition: opacity 0.3s, padding-bottom 0.5s var(--ease); }
.js .tour__item.is-on .tour__more { grid-template-rows: 1fr; }
.js .tour__item.is-on .tour__more > p { padding-bottom: 18px; opacity: 1; transition: opacity 0.5s 0.15s, padding-bottom 0.5s var(--ease); }
.tour__bar { position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--rule-w)); height: var(--rule-w); overflow: hidden; pointer-events: none; }
.tour__bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }

/* The stage: no surface under it, as everywhere on this page; the card in
   the middle, with the note and the pause button under it. All the cards
   share one cell, so the stage keeps its height when the card changes. */
.tour__stage { position: relative; display: grid; padding-bottom: 50px; isolation: isolate; }
.tour__panel { grid-area: 1 / 1; display: grid; place-items: center; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(12px) scale(0.985); transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; }
.tour__panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.6s var(--ease) 0.12s, transform 0.8s var(--ease) 0.12s, visibility 0s; }
.tour__panel > .db { width: 100%; max-width: var(--w, 480px); }
.tour__pause { position: absolute; left: 50%; bottom: 0; z-index: 2; transform: translateX(6px); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(17, 27, 29, 0.06); color: var(--ink); transition: background-color 0.2s; }
.tour__pause:hover { background: rgba(17, 27, 29, 0.11); }
.tour__pause svg { width: 12px; height: 12px; }
.tour__pause .i-play, .tour__pause[aria-pressed="true"] .i-pause { display: none; }
.tour__pause[aria-pressed="true"] .i-play { display: block; }
.tour__note { position: absolute; right: 50%; bottom: 8px; z-index: 2; margin-right: 6px; font-size: 12px; color: var(--ink-3); }
.reduce .tour__pause, .reduce .tour__bar { display: none; }
/* With no pause button the note is alone: in the middle. */
.reduce .tour__note { right: auto; left: 50%; margin-right: 0; transform: translateX(-50%); }

/* Off screen, every animation of the tour stops where it is. */
.tour.is-off *, .tour.is-off *::before, .tour.is-off *::after { animation-play-state: paused !important; }

/* ---------- copies of the dashboard cards ---------- */

.db { --fill: rgba(17, 27, 29, 0.06); --line: var(--rule); --safe: #1d7a4e; --danger: #b42318; --warning: #a35a0f; --soft: #7d8789; position: relative; font-size: 14px; line-height: 1.5; color: var(--ink); text-align: left; }
.db svg { overflow: visible; }
.db-panel { padding: 18px 20px; border: var(--rule-w) solid var(--rule); border-radius: 22px; background: #fff; }
.db-panel + .db-panel { margin-top: 12px; }
.db-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 12px; }
.db-title { font-size: 15px; font-weight: 500; line-height: 1.3; letter-spacing: -0.005em; }
.db-aside { overflow: hidden; font-size: 12.5px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.db-sub { margin-bottom: 12px; font-size: 12.5px; color: var(--ink-2); }
.db-note { margin-top: 12px; font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.db-ic { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.db-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }

/* Key figures: one card, cells parted by thin lines (the gaps of the grid
   show the colour of the line). */
.db-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--rule-w); overflow: hidden; border: var(--rule-w) solid var(--rule); border-radius: 22px; background: var(--line); }
.db-figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.db-fig { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; padding: 16px 20px 14px; background: #fff; }
.db-fig--wide { grid-column: 1 / -1; }
.db-fig__label { display: flex; align-items: center; gap: 8px; overflow: hidden; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.db-fig__label i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--teal)); }
.db-fig__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-width: 0; }
.db-fig__value { font-size: clamp(30px, 2.3vw, 38px); font-weight: 400; line-height: 0.92; letter-spacing: -0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.db-fig__value small { margin-left: 1px; font-size: 0.5em; letter-spacing: 0; }
.db-fig__value--word { font-size: clamp(24px, 1.8vw, 30px); letter-spacing: -0.03em; }
.db-fig__note { overflow: hidden; font-size: 12px; color: var(--ink-2); text-overflow: ellipsis; white-space: nowrap; }
.db-spark { flex: none; width: 72px; height: 26px; margin-bottom: 2px; }
.db-spark polyline { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.db-spark circle { fill: var(--c); }
.db-meter { display: inline-flex; flex: none; gap: 3px; margin-bottom: 4px; }
.db-meter i { width: 14px; height: 6px; border-radius: 3px; background: rgba(17, 27, 29, 0.1); }
.db-meter i.on { background: var(--c); }

/* Lines over time. */
.db-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; font-size: 12.5px; color: var(--ink-2); }
.db-legend span { display: inline-flex; align-items: center; gap: 7px; }
.db-legend i, .db-tip li i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.db-plot { position: relative; height: clamp(170px, 15vw, 210px); margin: 8px 8px 26px 28px; }
.db-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.db-plot .grid line { stroke: rgba(17, 27, 29, 0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.db-plot .lines path { fill: none; stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.db-y, .db-x { position: absolute; font-size: 11px; line-height: 1; color: var(--soft); font-variant-numeric: tabular-nums; }
.db-y { left: -28px; width: 20px; text-align: right; transform: translateY(-50%); }
.db-x { top: calc(100% + 10px); transform: translateX(-50%); white-space: nowrap; }
.db-x--start { transform: none; }
.db-x--end { transform: translateX(-100%); }
.db-cursor { position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: rgba(17, 27, 29, 0.18); }
.db-dot { position: absolute; right: 0; width: 8px; height: 8px; margin: -4px -4px 0 0; border-radius: 50%; background: var(--c); }
.db-tip { position: absolute; top: 6px; right: 14px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 2px 6px rgba(17, 27, 29, 0.05), 0 18px 40px -18px rgba(17, 27, 29, 0.35); font-size: 12.5px; white-space: nowrap; }
.db-tip b { display: block; margin-bottom: 4px; font-weight: 500; }
.db-tip li { display: flex; align-items: center; gap: 7px; color: var(--ink-2); }
.db-tip li i { width: 7px; height: 7px; }
.db-tip li span { margin-left: auto; padding-left: 14px; color: var(--ink); }

/* A choice of period, and lists of bars. */
.db-seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 4.4em); flex: none; padding: 3px; border-radius: 999px; background: var(--fill); font-size: 12.5px; }
.db-seg span { position: relative; z-index: 1; padding: 5px 0; font-weight: 500; text-align: center; color: var(--ink-2); }
.db-seg::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: 4.4em; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px -10px rgba(17, 27, 29, 0.35); }
.db-seg::before { transition: transform 0.45s var(--ease); }
.db-seg span { transition: color 0.3s; }
.db-seg[data-period="0"] span:nth-child(1), .db-seg[data-period="1"] span:nth-child(2), .db-seg[data-period="2"] span:nth-child(3) { color: var(--ink); }
.db-seg[data-period="1"]::before { transform: translateX(100%); }
.db-seg[data-period="2"]::before { transform: translateX(200%); }
.db-periods { display: grid; }
.db-period { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.db-periods[data-period="0"] > :nth-child(1), .db-periods[data-period="1"] > :nth-child(2), .db-periods[data-period="2"] > :nth-child(3) { opacity: 1; visibility: visible; transition: opacity 0.45s 0.1s, visibility 0s; }
.db-bars { display: flex; flex-direction: column; gap: 14px; }
.db-bar__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.db-bar__name { overflow: hidden; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.db-bar__value { flex: none; font-size: 12.5px; color: var(--ink-2); }
.db-track { position: relative; display: block; height: 8px; margin-top: 7px; border-radius: 999px; background: var(--fill); }
.db-track > i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); border-radius: inherit; background: var(--c, var(--teal)); transform-origin: left center; }

/* States against the usual level. */
.db-groups { display: flex; flex-direction: column; gap: 12px; }
.db-group { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr) 2.5rem 16px; align-items: center; gap: 10px; font-size: 13.5px; }
.db-group__name { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.db-group .db-track { height: 6px; margin: 0; }
.db-usual { position: absolute; top: -4px; bottom: -4px; left: var(--b); width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.db-group__value { font-size: 12.5px; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.db-good { color: var(--safe); }
.db-bad { color: var(--danger); }
.db-flat { color: var(--soft); }
.db-group .db-ic { width: 16px; height: 16px; }

/* Safe and unsafe replies. */
.db-safety { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: 999px; background: var(--fill); }
.db-safety span { height: 100%; transform-origin: left center; }
.db-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.db-counts dt { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); }
.db-counts dt i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.db-counts dd { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; }
.db-counts dd b { font-size: 28px; font-weight: 400; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.db-harm { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: rgba(224, 123, 103, 0.16); font-size: 12px; font-weight: 500; color: var(--danger); }
.db-harm .db-ic { width: 12px; height: 12px; }
.db-divide { margin-top: 14px; padding-top: 12px; border-top: var(--rule-w) solid var(--line); }
.db-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.db-row b { font-weight: 500; color: var(--ink); }
.db-safeline { display: block; width: 100%; height: 34px; margin: 6px 0; }
.db-seen { font-size: 12.5px; color: var(--ink-2); }

/* Suggestions and alerts. */
.db-tips { display: flex; flex-direction: column; gap: 14px; }
.db-tipx { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.db-tipx__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--ink); }
.db-tipx__icon--high { background: rgba(224, 123, 103, 0.18); color: var(--danger); }
.db-tipx__icon--medium { background: rgba(227, 166, 74, 0.2); color: var(--warning); }
.db-tipx b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.db-tipx p { margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.db-tag { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: rgba(224, 123, 103, 0.16); font-size: 12px; font-weight: 500; color: var(--danger); }
.db-title--sub { margin-bottom: 12px; }

/* Bands of the HR view. */
.db-band { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.db-band i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.db-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.db-table th { padding: 0 8px 6px; font-size: 12px; font-weight: 500; line-height: 1.25; text-align: left; white-space: nowrap; }
.db-table th small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 400; color: var(--ink-2); }
.db-table td { height: 36px; padding: 0 8px; border-top: var(--rule-w) solid var(--line); }
.db-table th:first-child, .db-table td:first-child { width: 6.6rem; padding-left: 0; font-weight: 500; }
.db-table th:last-child, .db-table td:last-child { padding-right: 0; }
.db-table tr > :nth-child(2) { --k: 0; }
.db-table tr > :nth-child(3) { --k: 1; }
.db-table tr > :nth-child(4) { --k: 2; }
.db-table tr > :nth-child(5) { --k: 3; }
.db-table tr > :nth-child(6) { --k: 4; }

/* The foot of the dashboard: the facts, the anonymous ID, the data. */
.db-foot { display: grid; gap: 14px; }
.db-facts { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.db-facts .db-mono { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--ink); }
.db-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.db-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.db-btn--danger { background: var(--danger); color: #fff; }
.db-btn--plain { padding: 0 8px; background: none; color: var(--ink-2); }
.db-btn .db-ic { width: 14px; height: 14px; }
.db-dialog { position: relative; z-index: 1; margin: -84px 0 0 clamp(16px, 6%, 40px); padding: 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 2px 6px rgba(17, 27, 29, 0.05), 0 28px 60px -28px rgba(17, 27, 29, 0.4); }
.db-dialog__title { font-size: 22px; font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.db-dialog__text { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.db-field { display: grid; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 500; }
.db-input { display: flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid rgba(17, 27, 29, 0.2); border-radius: 12px; font-size: 15px; letter-spacing: 0.18em; color: var(--ink); }
.db-dialog .db-actions { justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* The capture switch of the extension, and the assistants. */
.db-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.db-pop__head b { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.db-pop__head svg.db-mark { width: 22px; height: 22px; color: var(--teal); }
.db-switch { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--teal); }
.db-switch::after { content: ""; position: absolute; top: 3px; left: 19px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.db-pop__label { margin: 16px 0 8px; font-size: 12px; color: var(--ink-2); }
.db-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.db-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.db-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.db-pop__note { margin-top: 16px; padding-top: 12px; border-top: var(--rule-w) solid var(--line); font-size: 12.5px; color: var(--ink-2); }

/* ---------- what each card does when it comes in ----------
   Played once each time the card comes on screen (.is-on), from the first
   frame (fill both); the final state is the card as the dashboard shows it. */

@keyframes db-wipe { from { clip-path: inset(-12px 100% -12px -12px); } to { clip-path: inset(-12px -12px -12px -12px); } }
@keyframes db-pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes db-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes db-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes db-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes db-light { from { background: rgba(17, 27, 29, 0.1); } to { background: var(--c); } }

.js:not(.reduce) .tour__panel.is-on .db-spark, .js:not(.reduce) .tour__panel.is-on .db-plot svg, .js:not(.reduce) .tour__panel.is-on .db-safeline { animation: db-wipe 1.3s var(--ease) both; animation-delay: calc(0.3s + var(--k, 0) * 0.12s); }
.js:not(.reduce) .tour__panel.is-on .db-plot svg { animation-duration: 1.9s; animation-timing-function: cubic-bezier(0.45, 0.05, 0.35, 1); }
.js:not(.reduce) .tour__panel.is-on .db-spark circle { transform-box: fill-box; transform-origin: center; animation: db-pop 0.4s var(--ease) both; animation-delay: calc(1.3s + var(--k, 0) * 0.12s); }
.js:not(.reduce) .tour__panel.is-on .db-fig__note, .js:not(.reduce) .tour__panel.is-on .db-legend span { animation: db-in 0.6s var(--ease) both; animation-delay: calc(0.5s + var(--k, 0) * 0.08s); }
/* The trend: the lines draw, then the pointer rests on the last day. */
.js:not(.reduce) .tour__panel.is-on .db-cursor, .js:not(.reduce) .tour__panel.is-on .db-dot { animation: db-fade 0.4s both 2.3s; }
.js:not(.reduce) .tour__panel.is-on .db-tip { animation: db-in 0.5s var(--ease) both 2.45s; }
/* The states: the bars of the period in view grow. */
.js:not(.reduce) .tour__panel.is-on .db-periods[data-period="0"] > :nth-child(1) .db-track > i, .js:not(.reduce) .tour__panel.is-on .db-periods[data-period="1"] > :nth-child(2) .db-track > i, .js:not(.reduce) .tour__panel.is-on .db-periods[data-period="2"] > :nth-child(3) .db-track > i { animation: db-grow 0.9s var(--ease) both; animation-delay: calc(0.2s + var(--k, 0) * 0.07s); }
.db-bars > li:nth-child(2) { --k: 1; } .db-bars > li:nth-child(3) { --k: 2; } .db-bars > li:nth-child(4) { --k: 3; } .db-bars > li:nth-child(5) { --k: 4; } .db-bars > li:nth-child(6) { --k: 5; } .db-bars > li:nth-child(7) { --k: 6; }
/* Bars that grow, one after the other. */
.js:not(.reduce) .tour__panel.is-on .db-grows .db-track > i, .js:not(.reduce) .tour__panel.is-on .db-safety > span { animation: db-grow 1s var(--ease) both; animation-delay: calc(0.3s + var(--k, 0) * 0.1s); }
.js:not(.reduce) .tour__panel.is-on .db-usual, .js:not(.reduce) .tour__panel.is-on .db-group > .db-ic, .js:not(.reduce) .tour__panel.is-on .db-group__value { animation: db-fade 0.5s both; animation-delay: calc(1.1s + var(--k, 0) * 0.1s); }
.js:not(.reduce) .tour__panel.is-on .db-later { animation: db-in 0.6s var(--ease) both; animation-delay: var(--t, 1.2s); }
/* Suggestions and alerts come in one after the other. */
.js:not(.reduce) .tour__panel.is-on .db-tipx { animation: db-in 0.7s var(--ease) both; animation-delay: calc(0.35s + var(--k, 0) * 0.35s); }
/* The HR bands: each meter lights its step. */
.js:not(.reduce) .tour__panel.is-on .db-meter i.on { animation: db-light 0.5s both; animation-delay: calc(0.5s + var(--k, 0) * 0.12s); }
.js:not(.reduce) .tour__panel.is-on .db-fig__value--word { animation: db-in 0.6s var(--ease) both; animation-delay: calc(0.35s + var(--k, 0) * 0.12s); }
/* Tables: the columns come in from left to right, as the weeks go. */
.js:not(.reduce) .tour__panel.is-on .db-table :is(th, td):not(:first-child) { animation: db-in 0.55s var(--ease) both; animation-delay: calc(0.3s + var(--k, 0) * 0.22s); }
/* Data: the erase card comes up, with the password asked again. */
.js:not(.reduce) .tour__panel.is-on .db-dialog { animation: db-in 0.7s var(--ease) both 1.9s; }
.db-foot:has(+ .db-dialog) { opacity: 0.5; }
.db-foot:has(+ .db-dialog) .db-facts { opacity: 0; }
.js:not(.reduce) .tour__panel.is-on .db-foot:has(+ .db-dialog) { animation: db-dim 0.6s both 1.9s; }
.js:not(.reduce) .tour__panel.is-on .db-foot:has(+ .db-dialog) .db-facts { animation: db-out 0.4s both 1.9s; }
@keyframes db-dim { from { opacity: 1; } to { opacity: 0.5; } }
@keyframes db-out { from { opacity: 1; } to { opacity: 0; } }
/* Capture: the switch turns on, then each assistant lights up. */
.js:not(.reduce) .tour__panel.is-on .db-switch { animation: db-switch-bg 0.4s both 0.6s; }
.js:not(.reduce) .tour__panel.is-on .db-switch::after { animation: db-switch-knob 0.4s var(--ease) both 0.6s; }
.js:not(.reduce) .tour__panel.is-on .db-chip { animation: db-chip 0.45s both; animation-delay: calc(1.05s + var(--k, 0) * 0.13s); }
.js:not(.reduce) .tour__panel.is-on .db-chip i { animation: db-light 0.45s both; animation-delay: calc(1.05s + var(--k, 0) * 0.13s); }
@keyframes db-switch-bg { from { background: rgba(17, 27, 29, 0.18); } to { background: var(--teal); } }
@keyframes db-switch-knob { from { transform: translateX(-16px); } to { transform: none; } }
@keyframes db-chip { from { color: var(--soft); } to { color: var(--ink); } }

/* ---------- capture ---------- */

.capture { align-items: center; }
/* The card of the limits: no surface, as the stages; the list starts at the
   height of the title. */
.card { padding: 0; border-radius: 0; background: none; }
.limits { align-items: start; }
@media (min-width: 900px) { .limits .checks { margin-top: 10px; } }
.capture .tour__stage { padding-bottom: 0; }
.capture .checks { margin-top: 24px; }
.capture .row { margin-top: 28px; }

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .tour { gap: 22px; }
  .tour__tab { padding: 14px 0; font-size: 16px; }
  .tour__more > p { font-size: 15px; }
  .db-panel { padding: 16px; }
  .db-fig { padding: 14px 14px 12px; }
  .db-figs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-spark { width: 56px; }
  .db-group { grid-template-columns: 5.4rem minmax(0, 1fr) 2.3rem 16px; gap: 8px; font-size: 13px; }
  .db-table { font-size: 12.5px; }
  .db-table th, .db-table td { padding: 0 5px; }
  .db-table th:first-child, .db-table td:first-child { width: 5.6rem; }
  .db-table .db-band { gap: 5px; font-size: 12px; }
  .db-hide-sm { display: none; }
  .db-tip { right: 6px; }
}

/* The narrowest phones: the tables of the HR view a little tighter. */
@media (max-width: 360px) {
  .db-panel { padding: 14px 12px; }
  .db-table { font-size: 11.5px; }
  .db-table th, .db-table td { padding: 0 3px; }
  .db-table th:first-child, .db-table td:first-child { width: 4.6rem; }
  .db-table .db-band { gap: 4px; font-size: 11px; }
  .db-table th small { font-size: 10.5px; }
}

/* Less motion: every card in its final state, and the tour waits for a click. */
@media (prefers-reduced-motion: reduce) {
  .tour__panel { transition: none; }
}
