/* home-preview.css - the home page's product preview (partials/home_preview.php).
 *
 * Styles every drawing under views/partials/preview/ and the home page's cycling
 * preview. Loaded ONLY by pages that show them (the home page and
 * /try-salesintellect-crm via layouts/auth $styles, /how-we-help via
 * layouts/marketing $styles), so core.css stays small. Colours are the brand's
 * literal values: the page always renders the default theme.
 *
 * The deal pill's look is mirrored here from interface.css (.opp-pill and the
 * --opp-tone-* scale), because a public page does not load the signed-in
 * stylesheet. The MARKUP is still Core\OpportunityPill::render(); if the scale
 * colours change in interface.css, change them here too.
 */
.hp {
    --hp-navy-deep: #001c47;
    --hp-navy: #00317c;
    --hp-navy-2: #004499;
    --hp-accent: #00c8ff;
    --hp-ink: #17233a;
    --hp-muted: #5b6b85;
    --hp-line: #dfe6f1;
    --hp-walked: #1f9d63;
    --hp-walked-soft: #dff5ea;
    --hp-dwell: 7s;
    --opp-tone-none: #6d6c63;
    --opp-tone-low:  #c47624;
    --opp-tone-mid:  #857526;
    --opp-tone-high: #366b20;
    --opp-tone-won:  #11583d;
    --opp-tone-lost: #8f2a2a;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

/* ---- tabs ------------------------------------------------------------ */
.hp-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.hp-tab {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--hp-line);
    background: #fff;
    color: var(--hp-muted);
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    padding: .6rem .85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.hp-tab:hover { color: var(--hp-navy); border-color: #b9cbe6; }
.hp-tab:focus-visible { outline: 2px solid var(--hp-accent); outline-offset: 2px; }
.hp-tab[aria-selected="true"] { color: #fff; background: var(--hp-navy-deep); border-color: var(--hp-navy-deep); }
/* the timer: fills across the chosen tab while its scene plays */
.hp-timer {
    position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
    background: var(--hp-accent); transform-origin: left; transform: scaleX(0);
}
.hp.is-cycling .hp-tab[aria-selected="true"] .hp-timer { animation: hp-timer var(--hp-dwell) linear forwards; }
.hp.is-paused .hp-timer { animation-play-state: paused !important; }
@keyframes hp-timer { to { transform: scaleX(1); } }

/* ---- the screen ------------------------------------------------------ */
/* Every scene sits in the SAME grid cell, so the screen is always as tall as
   the tallest scene at this width - nothing is clipped on a phone, and the
   page does not jump as the scenes change. */
.hp-screen {
    position: relative;
    display: grid;
    background: #fff;
    border: 1px solid var(--hp-line);
    border-radius: 1rem;
    box-shadow: 0 24px 50px rgba(0, 40, 100, .13);
    overflow: hidden;
    color: var(--hp-ink);
}
.hp-scene {
    grid-area: 1 / 1;
    min-width: 0;
    padding: 1.25rem 1.35rem;
    display: flex; flex-direction: column; gap: .85rem;
    opacity: 0; transform: translateY(10px); visibility: hidden;
    transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s;
}
.hp-scene.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .45s ease, transform .45s ease, visibility 0s; }
.hp-head { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.hp-title { margin: 0; color: var(--hp-navy); font-weight: 700; font-size: .98rem; }
.hp-meta { color: var(--hp-muted); font-size: .76rem; white-space: nowrap; }
.hp-caption { margin: auto 0 0; padding-top: .65rem; border-top: 1px dashed var(--hp-line); color: var(--hp-muted); font-size: .8rem; line-height: 1.5; }
.hp-caption b { color: var(--hp-ink); font-weight: 600; }
.hp-note { margin: 0; text-align: right; font-size: .72rem; color: var(--hp-muted); }

/* 0. the opener: a calm "this is a CRM" before any feature */
.hp-intro { justify-content: flex-start; gap: 1.1rem; }
.hp-intro-title { margin: 0 0 .35rem; font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--hp-navy-deep); }
.hp-intro-copy p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--hp-muted); max-width: 52ch; }
.hp-table { border: 1px solid var(--hp-line); border-radius: .8rem; overflow: hidden; background: #fff; }
.hp-table-bar { display: flex; align-items: center; gap: .45rem; padding: .6rem .75rem; background: #f6f9fd; border-bottom: 1px solid var(--hp-line); }
.hp-search { display: flex; align-items: center; gap: .45rem; flex: 1; max-width: 13rem; height: 1.7rem; padding: 0 .6rem; border: 1px solid var(--hp-line); border-radius: .45rem; background: #fff; color: #9aa9bf; font-size: .75rem; }
.hp-search .hp-sk { flex: 1; }
.hp-filter { width: 3.2rem; height: 1.3rem; border-radius: 999px; background: #e4ecf6; }
.hp-filter.is-on { background: #cdeefb; box-shadow: inset 0 0 0 1px #8fdcf7; }
.hp-count { margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--hp-muted); white-space: nowrap; }
.hp-row { display: grid; grid-template-columns: 1.6rem 1.3fr 1.1fr .9fr .8fr; gap: .7rem; align-items: center; padding: .55rem .75rem; border-top: 1px solid #eef2f8; }
.hp-row--head { border-top: 0; padding-block: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a99b0; }
.hp-row.is-hi { background: #f0faff; box-shadow: inset 3px 0 0 var(--hp-accent); }
.hp-av { width: 1.6rem; height: 1.6rem; border-radius: 50%; opacity: .85; }
/* skeleton "text": a rounded bar of a given width */
.hp-sk { display: block; height: .45rem; width: var(--w); border-radius: 99px; background: #dde6f1; }
.hp-sk--dark { background: #b9c7da; height: .5rem; }
.hp-stage { display: block; height: .95rem; width: var(--w); border-radius: 999px; background: color-mix(in srgb, var(--c) 22%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, #fff); }
.hp-intro-points { list-style: none; margin: auto 0 0; padding: .65rem 0 0; border-top: 1px dashed var(--hp-line); display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .8rem; font-weight: 600; color: var(--hp-ink); }
.hp-intro-points i { color: var(--hp-navy-2); margin-right: .25rem; }

/* 1. workflow path */
.hp-wf { display: grid; grid-template-columns: 1.3fr 1fr; gap: .9rem; align-items: start; }
.hp-wf svg { width: 100%; height: auto; display: block; }
.hp-node rect { fill: #fff; stroke: #cfd9e8; stroke-width: 1.2; }
.hp-node text { font: 600 10.5px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--hp-ink); }
.hp-node .k { font-size: 8px; font-weight: 700; letter-spacing: .08em; fill: var(--hp-muted); }
.hp-node.is-walked rect { stroke: var(--hp-walked); stroke-width: 1.6; fill: var(--hp-walked-soft); }
.hp-node.is-walked .k { fill: var(--hp-walked); }
.hp-edge { fill: none; stroke: #cfd9e8; stroke-width: 1.6; }
.hp-walk { fill: none; stroke: var(--hp-walked); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: 0; }
.hp-branch { font: 700 9px system-ui, sans-serif; fill: var(--hp-muted); }
.hp-branch.is-yes { fill: var(--hp-walked); }
.hp-journey { border-left: 1px solid var(--hp-line); padding-left: .85rem; display: flex; flex-direction: column; gap: .2rem; }
.hp-journey-label { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-muted); }
.hp-who { font-weight: 700; font-size: .85rem; }
.hp-journey ol { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .55rem; }
.hp-journey li { display: grid; grid-template-columns: 4.3rem 1fr; gap: .35rem; font-size: .76rem; line-height: 1.35; }
.hp-journey time { color: var(--hp-muted); font-variant-numeric: tabular-nums; }

/* 2. campaign */
.hp-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; background: #e3f6ff; color: #006a8a; white-space: nowrap; }
.hp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #00a3d6; animation: hp-blink 1.4s ease-in-out infinite; }
@keyframes hp-blink { 50% { opacity: .25; } }
.hp-from { font-size: .82rem; }
.hp-from span { color: var(--hp-muted); }
.hp-progress { height: 8px; border-radius: 99px; background: #e8eef7; overflow: hidden; }
.hp-progress i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--hp-navy-2), var(--hp-accent)); border-radius: 99px; }
.hp-progress-row { display: flex; justify-content: space-between; margin-top: .3rem; font-size: .76rem; color: var(--hp-muted); font-variant-numeric: tabular-nums; }
.hp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.hp-stats div { border: 1px solid var(--hp-line); border-radius: .6rem; padding: .55rem .6rem; }
.hp-stats b, .hp-deal-top b { display: block; font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hp-stats span, .hp-deal-top span { font-size: .7rem; color: var(--hp-muted); }
.hp-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; border-bottom: 1px solid var(--hp-line); }
.hp-bars i { flex: 1; height: var(--h); background: #cfe6fb; border-radius: 4px 4px 0 0; }
.hp-bars i.is-now { background: var(--hp-accent); }
.hp-bars-x { display: flex; gap: 6px; font-size: .62rem; color: var(--hp-muted); margin-top: .2rem; }
.hp-bars-x span { flex: 1; text-align: center; }
.hp-feed { display: grid; gap: .3rem; font-size: .78rem; }
.hp-feed div { display: flex; gap: .5rem; align-items: center; }
.hp-feed i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* 3. deals */
.hp-deal-top { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.hp-deal-top b { font-size: 1.3rem; }
.hp-fc svg { width: 100%; height: auto; display: block; }
.hp-fc text { font: 500 10px system-ui, sans-serif; fill: var(--hp-muted); }
.hp-fc .grid { stroke: #edf1f7; stroke-width: 1; }
.hp-fc .won, .hp-legend .won { fill: var(--hp-navy-2); background: var(--hp-navy-2); }
.hp-fc .open, .hp-legend .open { fill: #9ee4ff; background: #9ee4ff; }
.hp-fc .bar { transform-box: fill-box; transform-origin: bottom; }
.hp-legend { display: flex; gap: .9rem; font-size: .7rem; color: var(--hp-muted); }
.hp-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: .3rem; vertical-align: -1px; }
.hp-deals { display: grid; }
.hp-deal { display: grid; grid-template-columns: 1fr auto auto; gap: .6rem; align-items: center; font-size: .8rem; padding: .4rem 0; border-top: 1px solid #eef2f8; }
.hp-val { color: var(--hp-muted); font-variant-numeric: tabular-nums; }
.hp-review { margin-left: .4rem; padding: .1rem .45rem; border-radius: 999px; background: #fdf1dc; color: #9a6412; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.hp .opp-pill { display: inline-flex; border-radius: 999px; overflow: hidden; font-size: .7rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.hp .opp-pill > span { padding: .12rem .5rem; }
.hp .opp-pill-chance { color: #fff; background: var(--opp-tone-none); }
.hp .opp-pill-chance[data-tone="low"]  { background: var(--opp-tone-low); }
.hp .opp-pill-chance[data-tone="mid"]  { background: var(--opp-tone-mid); }
.hp .opp-pill-chance[data-tone="high"] { background: var(--opp-tone-high); }
.hp .opp-pill-chance[data-tone="won"]  { background: var(--opp-tone-won); }
.hp .opp-pill-chance[data-tone="lost"] { background: var(--opp-tone-lost); }

/* 4. matrix */
.hp-matrix-wrap { overflow-x: auto; }
.hp-matrix { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: .78rem; }
.hp-matrix th { font-weight: 600; color: var(--hp-muted); text-align: left; padding: 2px 4px; white-space: nowrap; }
.hp-matrix thead th { text-align: center; font-size: .7rem; }
.hp-matrix td { text-align: center; border-radius: .5rem; padding: .7rem .25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hp-matrix td.is-hot { outline: 2px solid var(--hp-navy-deep); outline-offset: 1px; }
.hp-tip { align-self: flex-start; background: var(--hp-navy-deep); color: #fff; font-size: .78rem; border-radius: .6rem; padding: .5rem .75rem; box-shadow: 0 10px 24px rgba(0, 28, 71, .22); }
.hp-tip b { color: var(--hp-accent); }

/* 5. funnel */
.hp-funnel svg { width: 100%; height: auto; display: block; }
.hp-funnel text { font: 600 10.5px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; fill: var(--hp-ink); }
.hp-funnel .sub { font-weight: 500; font-size: 9.5px; fill: var(--hp-muted); }
.hp-band { fill: var(--c); opacity: .42; transition: opacity .2s ease; }
.hp-band:hover { opacity: .75; }
.hp-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.hp-chips span { font-size: .74rem; border: 1px solid var(--hp-line); border-radius: 999px; padding: .25rem .65rem; }
.hp-chips i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; }
.hp-chips b { font-variant-numeric: tabular-nums; }

/* contact record (partials/preview/contact) */
.hp-rec { display: flex; flex-direction: column; gap: .75rem; }
.hp-rec-head { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; }
.hp-rec-av { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #1e40af; color: #fff; font-weight: 700; font-size: .9rem; }
.hp-rec-name { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--hp-navy-deep); line-height: 1.2; }
.hp-rec-sub { font-size: .75rem; color: var(--hp-muted); }
.hp-rec-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.hp-rec-tags span { font-size: .7rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: #e8f1fb; color: var(--hp-navy); }
.hp-rec-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem .9rem; padding: .7rem 0; border-block: 1px solid #eef2f8; }
.hp-rec-fields dt { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a99b0; }
.hp-rec-fields dd { margin: 0; font-size: .85rem; font-weight: 600; }
.hp-rec-time { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hp-rec-time li { display: grid; grid-template-columns: 1.7rem 1fr; gap: .5rem; align-items: start; font-size: .75rem; color: var(--hp-muted); }
.hp-rec-time i { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: #eef5fd; color: var(--hp-navy-2); font-size: .8rem; }
.hp-rec-time b { display: block; font-size: .8rem; font-weight: 600; color: var(--hp-ink); }

/* sales board (partials/preview/board) */
.hp-board-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.hp-board-tabs span { font-size: .72rem; font-weight: 600; padding: .35rem .65rem; border-radius: .5rem; background: #f1f5fa; color: var(--hp-muted); }
.hp-board-tabs b { margin-left: .2rem; color: var(--hp-ink); }
.hp-board-tabs .is-on { background: var(--hp-navy-deep); color: #fff; }
.hp-board-tabs .is-on b { color: var(--hp-accent); }
.hp-board-tabs .is-missed b { display: inline-block; min-width: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: #c53030; color: #fff; text-align: center; }
.hp-board { display: grid; border: 1px solid var(--hp-line); border-radius: .7rem; overflow: hidden; }
.hp-board-row { display: grid; grid-template-columns: 1fr auto 1.3fr auto; gap: .6rem; align-items: center; padding: .6rem .75rem; border-top: 1px solid #eef2f8; font-size: .8rem; }
.hp-board-row:first-child { border-top: 0; }
.hp-board-row.is-open { background: #f0faff; }
.hp-board-who { font-weight: 600; }
.hp-board-st { font-size: .66rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; }
.hp-st-new { background: #e3f6ff; color: #006a8a; }
.hp-st-active { background: #dff5ea; color: #16704a; }
.hp-st-sched { background: #ede9fe; color: #5b3fb0; }
.hp-board-next { color: var(--hp-muted); font-size: .74rem; }
.hp-tries { display: flex; gap: 3px; }
.hp-tries i { width: 7px; height: 7px; border-radius: 50%; background: #dde6f1; }
.hp-tries i.is-on { background: var(--hp-navy-2); }
.hp-moves { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .55rem .75rem .7rem; background: #f0faff; border-top: 1px dashed #c9e6f5; }
.hp-moves-label { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-muted); margin-right: .2rem; }
.hp-move { font-size: .72rem; font-weight: 600; padding: .3rem .6rem; border-radius: .45rem; background: #fff; border: 1px solid var(--hp-line); }
.hp-move.is-go { background: var(--hp-walked); border-color: var(--hp-walked); color: #fff; }
.hp-move.is-stop { color: #a33; }

/* form with a payment (partials/preview/form) */
.hp-form-wrap { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: .8rem; align-items: center; }
.hp-form { display: flex; flex-direction: column; gap: .45rem; padding: .9rem; border: 1px solid var(--hp-line); border-radius: .8rem; background: #fbfdff; }
.hp-form-steps { display: flex; gap: .3rem; font-size: .66rem; font-weight: 700; }
.hp-form-steps span { flex: 1; padding: .25rem .4rem; border-radius: .35rem; background: #eef2f8; color: var(--hp-muted); }
.hp-form-steps .is-done { background: #dff5ea; color: #16704a; }
.hp-form-steps .is-on { background: var(--hp-navy-deep); color: #fff; }
.hp-form-q { font-size: .72rem; font-weight: 600; color: var(--hp-ink); margin-top: .2rem; }
.hp-form-choices { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.hp-form-choices span { display: flex; flex-direction: column; padding: .45rem .55rem; border: 1px solid var(--hp-line); border-radius: .5rem; font-size: .66rem; color: var(--hp-muted); background: #fff; }
.hp-form-choices b { font-size: .8rem; color: var(--hp-ink); }
.hp-form-choices em { font-style: normal; font-weight: 700; color: var(--hp-navy-2); margin-top: .15rem; }
.hp-form-choices .is-on { border-color: var(--hp-accent); box-shadow: 0 0 0 2px rgba(0, 200, 255, .25); }
.hp-form-card { display: flex; align-items: center; gap: .5rem; height: 2rem; padding: 0 .6rem; border: 1px solid var(--hp-line); border-radius: .45rem; background: #fff; color: #8a99b0; }
.hp-form-card .hp-sk:first-of-type { flex: 1; }
.hp-form-pay { margin-top: .25rem; text-align: center; padding: .55rem; border-radius: .5rem; background: var(--hp-navy-2); color: #fff; font-weight: 700; font-size: .82rem; }
.hp-form-pay small { font-weight: 500; opacity: .8; }
.hp-form-arrow { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--hp-accent); color: var(--hp-navy-deep); }
.hp-form-out { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .76rem; color: var(--hp-muted); }
.hp-form-out i { color: var(--hp-walked); margin-right: .3rem; }
.hp-form-out b { color: var(--hp-ink); }

/* subscription (partials/preview/subscription) */
.hp-sub-status { font-size: .7rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; background: #dff5ea; color: #16704a; }
.hp-sub-top { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hp-sub-top b { display: block; font-size: 1.2rem; line-height: 1.2; }
.hp-sub-top span { font-size: .7rem; color: var(--hp-muted); }
.hp-terms { width: 100%; border-collapse: collapse; font-size: .76rem; }
.hp-terms th { text-align: left; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a99b0; padding: .3rem .4rem; border-bottom: 1px solid var(--hp-line); }
.hp-terms td { padding: .45rem .4rem; border-bottom: 1px solid #eef2f8; font-variant-numeric: tabular-nums; }
.hp-terms tr.is-current td { background: #f0faff; font-weight: 600; }
.hp-pay { font-size: .66rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.hp-pay.is-paid { background: #dff5ea; color: #16704a; }
.hp-sub-site { display: flex; gap: .5rem; align-items: center; padding: .55rem .7rem; border-radius: .6rem; background: #f3f0ff; font-size: .75rem; color: #4c3a8f; }
.hp-sub-site i { font-size: 1.1rem; }

/* a drawing placed on its own (not in the cycling preview): /how-we-help rows */
.hp--still .hp-scene { opacity: 1; transform: none; visibility: visible; }

/* ---- the entrance of each scene (home-preview.js adds .is-live) ------
   Only with motion allowed AND the script running (.hp.is-cycling), so the
   resting page - no JS, reduced motion, a thumbnail - is always complete. */
@media (prefers-reduced-motion: no-preference) {
    .hp.is-cycling .hp-scene .hp-walk { stroke-dashoffset: 400; }
    .hp.is-cycling .hp-scene.is-live .hp-walk { animation: hp-draw 2.2s ease forwards; }
    .hp.is-cycling .hp-scene.is-live .hp-walk.d2 { animation-delay: .5s; }
    .hp.is-cycling .hp-scene.is-live .hp-walk.d3 { animation-delay: 1s; }
    .hp.is-cycling .hp-scene.is-live .hp-walk.d4 { animation-delay: 1.5s; }
    @keyframes hp-draw { to { stroke-dashoffset: 0; } }
    .hp.is-cycling .hp-scene.is-live .hp-journey li { animation: hp-rise .45s ease both; }
    .hp.is-cycling .hp-scene.is-live .hp-journey li:nth-child(2) { animation-delay: .5s; }
    .hp.is-cycling .hp-scene.is-live .hp-journey li:nth-child(3) { animation-delay: 1s; }
    .hp.is-cycling .hp-scene.is-live .hp-journey li:nth-child(4) { animation-delay: 1.5s; }
    .hp.is-cycling .hp-scene.is-live .hp-journey li:nth-child(5) { animation-delay: 2s; }
    @keyframes hp-rise { from { opacity: .2; transform: translateY(4px); } }
    .hp.is-cycling .hp-scene.is-live .hp-progress i { animation: hp-grow-x 2.2s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes hp-grow-x { from { width: 5%; } }
    .hp.is-cycling .hp-scene.is-live .hp-bars i,
    .hp.is-cycling .hp-scene.is-live .hp-fc .bar { animation: hp-grow-y .9s cubic-bezier(.2, .7, .2, 1) both; }
    @keyframes hp-grow-y { from { transform: scaleY(.05); } }
    .hp-bars i { transform-origin: bottom; }
    .hp.is-cycling .hp-scene.is-live .hp-matrix td { animation: hp-pop .45s ease both; animation-delay: var(--d); }
    @keyframes hp-pop { from { opacity: 0; transform: scale(.85); } }
    .hp.is-cycling .hp-scene.is-live .hp-band { animation: hp-fade .7s ease both; }
    @keyframes hp-fade { from { opacity: 0; } }
    .hp.is-cycling .hp-scene.is-live .hp-row:not(.hp-row--head) { animation: hp-rise .5s ease both; animation-delay: calc(var(--r) * 90ms); }
}
@media (prefers-reduced-motion: reduce) {
    .hp-scene, .hp-tab { transition: none; }
    .hp-live::before { animation: none; }
}

/* ---- phones ---------------------------------------------------------- */
@media (max-width: 560px) {
    .hp-form-wrap { grid-template-columns: 1fr; }
    .hp-form-arrow { transform: rotate(90deg); justify-self: center; }
    .hp-board-row { grid-template-columns: 1fr auto; }
    .hp-board-next, .hp-tries { display: none; }
    .hp-rec-head { grid-template-columns: auto 1fr; }
    .hp-rec-head .opp-pill { grid-column: 1 / -1; justify-self: start; }
    .hp-row { grid-template-columns: 1.6rem 1.3fr 1fr .9fr; }
    .hp-row > span:nth-child(5) { display: none; }
    .hp-wf { grid-template-columns: 1fr; }
    .hp-journey { border-left: 0; padding-left: 0; border-top: 1px solid var(--hp-line); padding-top: .6rem; }
    .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hp-tab { padding: .55rem .7rem; }
}
