/* ==========================================================================
   The course guide of the homepage (front/partials/home-course-guide): what
   the Manual Handling Course teaches, in the order a learner takes it.

   The section stands inside .lp and reads its tokens (css/views/landing-page.css):
   the inks, the glass, the hairline, the shadows, the two faces, the measure
   and the page scale. Its head and the pill under its picture are the shared
   shapes of the landing, the mark of every card is a spot
   (css/blocks/spot-1.css). What follows is its own: the canvas, the
   definition beside the picture of the course on a screen, the steps and the
   card of the trades.

   A drawing stands beside its words at every width, never above them. The
   picture moves slowly (the open module plays, the two badges float) and only
   while it is on the screen: js/views/home-course-guide.js rests it with
   .is-resting, and a reader who asked for less motion sees it still.
   ========================================================================== */

.lp .hcg {
    --hcg-gap: calc(22px * var(--lp-scale));
    --hcg-pad: calc(30px * var(--lp-scale));
    background:
        radial-gradient(44% 40% at 100% 0%, rgba(199, 210, 254, 0.62) 0%, rgba(199, 210, 254, 0) 72%),
        radial-gradient(46% 44% at 0% 100%, rgba(186, 230, 253, 0.55) 0%, rgba(186, 230, 253, 0) 72%),
        linear-gradient(180deg, #f6f8ff 0%, #eef2ff 100%);
}

/* dotted paper behind the head, fading into the canvas */
.lp .hcg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(30, 58, 138, 0.14) 1px, rgba(30, 58, 138, 0) 1.5px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(72% 44% at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    mask-image: radial-gradient(72% 44% at 50% 0%, #000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lp .hcg-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--lp-measure);
    margin: 0 auto;
    padding: 0 var(--lp-pad-x);
    box-sizing: border-box;
}

/* The glass card of the landing */
.lp .hcg-lead,
.lp .hcg-step,
.lp .hcg-who {
    position: relative;
    box-sizing: border-box;
    background: var(--lp-glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
}

/* --------------------------------------------------------------------------
   The definition beside the picture
   -------------------------------------------------------------------------- */
.lp .hcg-top {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--hcg-gap);
    align-items: stretch;
}

.lp .hcg-lead {
    display: flex;
    flex-direction: column;
    padding: calc(36px * var(--lp-scale)) calc(36px * var(--lp-scale)) calc(30px * var(--lp-scale));
    overflow: hidden;
}

/* a line of light along its top edge */
.lp .hcg-lead::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--lp-blue) 0%, var(--lp-violet) 52%, #0ea5e9 100%);
}

.lp .hcg-lead p {
    margin: 0 0 calc(16px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.7;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .hcg-lead .hcg-lead__first {
    font-size: calc(17.5px * var(--lp-scale));
    line-height: 1.68;
}

.lp .hcg-lead p:last-of-type {
    margin-bottom: calc(28px * var(--lp-scale));
}

.lp .hcg-lead strong {
    font-weight: 700;
    color: var(--lp-ink);
}

.lp .hcg-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: auto 0 0;
    padding: calc(24px * var(--lp-scale)) 0 0;
    border-top: 1px solid var(--lp-line);
    list-style: none;
}

.lp .hcg-fact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 0 calc(20px * var(--lp-scale));
    border-left: 1px solid var(--lp-line);
}

.lp .hcg-fact:first-child {
    padding-left: 0;
    border-left: 0;
}

.lp .hcg-fact__value {
    font-family: var(--lp-font-display);
    font-size: calc(23px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--lp-ink);
}

.lp .hcg-fact__label {
    font-family: var(--lp-font-body);
    font-size: calc(14.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.4;
    color: var(--lp-ink-3);
}

/* --------------------------------------------------------------------------
   The picture: the course on a screen
   -------------------------------------------------------------------------- */
.lp .hcg-visual {
    position: relative;
    display: flex;
    min-width: 0;
    padding-bottom: calc(26px * var(--lp-scale));
}

.lp .hcg-shot {
    position: relative;
    display: grid;
    flex: 1 1 auto;
    place-items: center;
    min-width: 0;
    padding: calc(44px * var(--lp-scale)) calc(30px * var(--lp-scale)) calc(64px * var(--lp-scale));
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--lp-radius);
    background:
        linear-gradient(rgba(30, 58, 138, 0.05) 1px, rgba(30, 58, 138, 0) 1px) 0 0 / 100% 26px,
        linear-gradient(90deg, rgba(30, 58, 138, 0.05) 1px, rgba(30, 58, 138, 0) 1px) 0 0 / 26px 100%,
        linear-gradient(155deg, #e9f0ff 0%, #e6e8ff 52%, #f1ecff 100%);
    box-shadow: var(--lp-shadow), 0 0 0 1px var(--lp-line);
}

.lp .hcg-shot__glow {
    position: absolute;
    inset: 14% 12% 20%;
    border-radius: 50%;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.lp .hcg-win {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: calc(356px * var(--lp-scale));
    border-radius: calc(18px * var(--lp-scale));
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--lp-line), 0 2px 4px rgba(15, 23, 42, 0.05), 0 34px 60px -34px rgba(30, 58, 138, 0.65);
    font-family: var(--lp-font-body);
    overflow: hidden;
}

.lp .hcg-win__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lp-line);
}

.lp .hcg-win__dots {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 5px;
}

.lp .hcg-win__dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dbe3f1;
}

.lp .hcg-win__name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-ink);
}

.lp .hcg-win__time {
    flex: 0 0 auto;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
    font-size: calc(13.5px * var(--lp-scale));
    font-weight: 700;
    line-height: 1;
    color: var(--lp-blue-deep);
}

.lp .hcg-win__screen {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 8;
    margin: 12px 12px 0;
    border-radius: calc(12px * var(--lp-scale));
    background:
        radial-gradient(56% 78% at 50% 42%, #ffffff 0%, rgba(255, 255, 255, 0) 72%),
        linear-gradient(140deg, #dbeafe 0%, #e0e7ff 55%, #ede9fe 100%);
    overflow: hidden;
}

.lp .hcg-win__screen .spot {
    --spot-size: calc(104px * var(--lp-scale));
}

.lp .hcg-win__play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 6px 14px -6px rgba(30, 58, 138, 0.55), inset 0 0 0 1px var(--lp-line);
}

.lp .hcg-win__play::before {
    content: '';
    position: absolute;
    left: 13px;
    top: 10px;
    border-style: solid;
    border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent var(--lp-blue);
}

.lp .hcg-win__track {
    position: absolute;
    left: 58px;
    right: 14px;
    bottom: 26px;
    height: 6px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.14);
    overflow: hidden;
}

.lp .hcg-win__track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--lp-blue), var(--lp-violet));
    transform: scaleX(0.62);
    transform-origin: 0 50%;
    animation: hcg-play 8s linear infinite;
}

.lp .hcg-win__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
}

.lp .hcg-win__step {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: calc(10px * var(--lp-scale));
    background: #f5f7fd;
    font-size: calc(14px * var(--lp-scale));
    font-weight: 600;
    line-height: 1.2;
    color: var(--lp-ink-3);
}

.lp .hcg-win__step b {
    min-width: 0;
    font-weight: inherit;
}

.lp .hcg-win__step i {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(30, 58, 138, 0.22);
}

.lp .hcg-win__step.is-done {
    color: var(--lp-ink-2);
}

.lp .hcg-win__step.is-done i {
    background: var(--lp-green);
    box-shadow: none;
}

.lp .hcg-win__step.is-done i::after {
    content: '';
    position: absolute;
    left: 6.5px;
    top: 3.5px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.lp .hcg-win__step.is-now {
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.3);
    color: var(--lp-ink);
}

.lp .hcg-win__step.is-now i {
    box-shadow: inset 0 0 0 2px var(--lp-blue);
}

.lp .hcg-win__step.is-now i::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--lp-blue);
    animation: hcg-pulse 2.4s ease-in-out infinite;
}

/* the two badges on the edge of the picture */
.lp .hcg-float {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
}

.lp .hcg-float--cert {
    top: calc(-18px * var(--lp-scale));
    right: calc(20px * var(--lp-scale));
    gap: 10px;
    max-width: calc(100% - 40px);
    padding: 7px 17px 7px 7px;
    box-sizing: border-box;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 0 0 1px var(--lp-line), 0 18px 30px -18px rgba(30, 58, 138, 0.6);
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.2;
    color: var(--lp-ink);
    animation: lp-float 5s ease-in-out infinite;
}

.lp .hcg-float--cert .spot {
    --spot-size: calc(38px * var(--lp-scale));
}

.lp .hcg-float--cert b {
    font-weight: inherit;
}

.lp .hcg-float--practical {
    left: calc(-18px * var(--lp-scale));
    bottom: calc(22px * var(--lp-scale));
    transform: rotate(-7deg);
    animation: hcg-drift 6s ease-in-out infinite 0.6s;
}

.lp .hcg-float--practical .spot {
    --spot-size: calc(66px * var(--lp-scale));
    box-shadow: inset 0 0 0 1px var(--sp-edge), 0 22px 30px -18px var(--sp);
}

/* off the screen everything that moves holds where it stands */
.lp .hcg-shot.is-resting .hcg-win__track i,
.lp .hcg-shot.is-resting .hcg-win__step.is-now i::after,
.lp .hcg-shot.is-resting .hcg-float,
.lp .hcg-shot.is-resting .hcg-shot__pill {
    animation-play-state: paused;
}

@keyframes hcg-play {
    0% { transform: scaleX(0.06); }
    82%, 100% { transform: scaleX(1); }
}

@keyframes hcg-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.55); opacity: 0.6; }
}

@keyframes hcg-drift {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-6px); }
}

/* --------------------------------------------------------------------------
   The steps, in the order a learner takes them
   -------------------------------------------------------------------------- */
/* the line that opens the steps: their number, between two hairlines */
.lp .hcg-rule {
    display: flex;
    align-items: center;
    gap: calc(18px * var(--lp-scale));
    margin: calc(44px * var(--lp-scale)) 0 calc(26px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lp-ink-3);
}

.lp .hcg-rule::before,
.lp .hcg-rule::after {
    content: '';
    flex: 1 1 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0), var(--lp-line-strong));
}

.lp .hcg-rule::after {
    background: linear-gradient(90deg, var(--lp-line-strong), rgba(30, 58, 138, 0));
}

.lp .hcg-rule > span {
    flex: 0 1 auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--lp-glass-strong);
    box-shadow: inset 0 0 0 1px var(--lp-line), 0 10px 24px -18px rgba(30, 58, 138, 0.5);
    text-align: center;
}

.lp .hcg-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--hcg-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .hcg-step {
    --hcg-tone: var(--lp-blue);
    display: flex;
    flex-direction: column;
    padding: var(--hcg-pad);
    overflow: hidden;
    transition: transform 0.28s var(--lp-ease), box-shadow 0.28s var(--lp-ease);
}

.lp .hcg-step--indigo { --hcg-tone: #4f46e5; }
.lp .hcg-step--sky { --hcg-tone: #0284c7; }
.lp .hcg-step--teal { --hcg-tone: #0d9488; }
.lp .hcg-step--rose { --hcg-tone: #e11d48; }
.lp .hcg-step--violet { --hcg-tone: #7c3aed; }
.lp .hcg-step--blue { --hcg-tone: #2563eb; }

/* a breath of its tone in the corner of the card, over the glass */
.lp .hcg-step {
    background:
        radial-gradient(calc(250px * var(--lp-scale)) calc(190px * var(--lp-scale)) at 100% 0%, color-mix(in srgb, var(--hcg-tone) 16%, transparent) 0%, transparent 72%),
        var(--lp-glass);
}

.lp .hcg-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-hover), 0 0 0 1px var(--lp-line-strong);
}

.lp .hcg-step__no {
    position: absolute;
    z-index: 1;
    top: calc(26px * var(--lp-scale));
    right: calc(28px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(34px * var(--lp-scale));
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--hcg-tone);
    opacity: 0.24;
}

/* the drawing beside the name of the step, the number of the step in the corner */
.lp .hcg-step__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: calc(20px * var(--lp-scale));
    min-width: 0;
    padding-right: calc(58px * var(--lp-scale));
}

.lp .hcg-step__mark {
    flex: 0 0 auto;
    line-height: 0;
}

.lp .hcg-step__mark .spot {
    --spot-size: calc(68px * var(--lp-scale));
    transition: transform 0.28s var(--lp-ease);
}

.lp .hcg-step:hover .hcg-step__mark .spot {
    transform: rotate(-5deg) scale(1.04);
}

.lp .hcg-step__title {
    min-width: 0;
    margin: 0;
    font-family: var(--lp-font-display);
    font-size: calc(19px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .hcg-step__text {
    position: relative;
    z-index: 1;
    margin: calc(18px * var(--lp-scale)) 0 calc(20px * var(--lp-scale));
    font-family: var(--lp-font-body);
    font-size: calc(16px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.65;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

/* the foot of a card: what the step is made of, drawn */
.lp .hcg-step__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(16px * var(--lp-scale));
    margin: auto 0 0;
    padding: calc(16px * var(--lp-scale)) 0 0;
    border-top: 1px solid var(--lp-line);
}

.lp .hcg-step__count {
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.3;
    color: var(--lp-ink-2);
}

/* where the module stands in the course */
.lp .hcg-pips {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.lp .hcg-pips i {
    width: 16px;
    height: 5px;
    border-radius: 999px;
    background: rgba(30, 58, 138, 0.14);
}

.lp .hcg-pips i.is-past {
    background: var(--hcg-tone);
    opacity: 0.38;
}

.lp .hcg-pips i.is-now {
    width: 30px;
    background: var(--hcg-tone);
}

/* the exam: its pass mark as a ring, its questions as dots */
.lp .hcg-exam {
    justify-content: flex-start;
}

.lp .hcg-ring {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: calc(52px * var(--lp-scale));
    height: calc(52px * var(--lp-scale));
}

.lp .hcg-ring svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.lp .hcg-ring__track {
    fill: none;
    stroke: rgba(30, 58, 138, 0.12);
    stroke-width: 7;
}

.lp .hcg-ring__arc {
    fill: none;
    stroke: var(--hcg-tone);
    stroke-width: 7;
    stroke-linecap: round;
}

.lp .hcg-ring b {
    position: relative;
    font-family: var(--lp-font-display);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--lp-ink);
}

.lp .hcg-exam__words {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 0;
}

.lp .hcg-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.lp .hcg-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.lp .hcg-dots i.is-on {
    background: var(--hcg-tone);
    box-shadow: none;
}

/* the practical: what a learner does, in three words */
.lp .hcg-flow {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px calc(30px * var(--lp-scale));
    list-style: none;
}

.lp .hcg-flow li {
    position: relative;
    padding: calc(11px * var(--lp-scale)) calc(16px * var(--lp-scale));
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 0 0 1px var(--lp-line-strong);
    font-family: var(--lp-font-body);
    font-size: calc(14px * var(--lp-scale));
    font-weight: 600;
    line-height: 1;
    color: var(--lp-ink-2);
}

.lp .hcg-flow li + li::before {
    content: '';
    position: absolute;
    left: calc(-19px * var(--lp-scale));
    top: 50%;
    width: 7px;
    height: 7px;
    border: solid var(--hcg-tone);
    border-width: 2px 2px 0 0;
    opacity: 0.75;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   Who needs the course, and the trades it is taken in
   -------------------------------------------------------------------------- */
.lp .hcg-who {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: calc(40px * var(--lp-scale));
    align-items: center;
    margin: var(--hcg-gap) 0 0;
    padding: calc(34px * var(--lp-scale)) calc(36px * var(--lp-scale));
}

.lp .hcg-who__words {
    min-width: 0;
}

.lp .hcg-who__title {
    margin: 0 0 calc(12px * var(--lp-scale));
    font-family: var(--lp-font-display);
    font-size: calc(24px * var(--lp-scale));
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--lp-ink);
    text-wrap: balance;
}

.lp .hcg-who__text {
    margin: 0;
    font-family: var(--lp-font-body);
    font-size: calc(16.5px * var(--lp-scale));
    font-weight: 500;
    line-height: 1.7;
    color: var(--lp-ink-2);
    text-wrap: pretty;
}

.lp .hcg-trades {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(14px * var(--lp-scale));
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp .hcg-trade {
    display: flex;
    align-items: center;
    gap: calc(14px * var(--lp-scale));
    min-width: 0;
    padding: calc(11px * var(--lp-scale)) calc(16px * var(--lp-scale)) calc(11px * var(--lp-scale)) calc(11px * var(--lp-scale));
    border-radius: var(--lp-radius-sm);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px var(--lp-line), 0 16px 26px -24px rgba(30, 58, 138, 0.6);
    font-family: var(--lp-font-display);
    font-size: calc(16px * var(--lp-scale));
    font-weight: 700;
    line-height: 1.25;
    color: var(--lp-ink);
    transition: transform 0.28s var(--lp-ease);
}

.lp .hcg-trade:hover {
    transform: translateY(-2px);
}

.lp .hcg-trade .spot {
    --spot-size: calc(48px * var(--lp-scale));
}

.lp .hcg-trade > span:last-child {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   Narrower screens
   -------------------------------------------------------------------------- */
@media (max-width: 959px) {
    .lp .hcg-top {
        grid-template-columns: minmax(0, 1fr);
    }

    /* the picture stands under the definition: its top badge keeps its room */
    .lp .hcg-visual {
        width: 100%;
        max-width: 560px;
        margin: 10px auto 0;
    }

    .lp .hcg-who {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .lp .hcg-trades {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 859px) {
    .lp .hcg-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .lp .hcg {
        --hcg-gap: 16px;
        --hcg-pad: 22px;
    }

    .lp .hcg-lead {
        padding: 28px 20px 12px;
    }

    .lp .hcg-lead p,
    .lp .hcg-lead .hcg-lead__first {
        font-size: 16px;
        line-height: 1.65;
    }

    .lp .hcg-lead p:last-of-type {
        margin-bottom: 20px;
    }

    .lp .hcg-rule {
        gap: 12px;
        margin: 34px 0 20px;
    }

    /* the three figures as rows: the figure, then what it is */
    .lp .hcg-facts {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0;
    }

    .lp .hcg-fact {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        padding: 13px 0;
        border-left: 0;
        border-top: 1px solid var(--lp-line);
    }

    .lp .hcg-fact:first-child {
        border-top: 0;
    }

    .lp .hcg-fact__value {
        flex: 0 0 auto;
        font-size: 20px;
    }

    .lp .hcg-fact__label {
        text-align: right;
    }

    .lp .hcg-shot {
        padding: 36px 16px 50px;
    }

    .lp .hcg-float--cert {
        top: -14px;
        right: 12px;
        max-width: calc(100% - 24px);
    }

    /* the picture fills the stage of a phone: the badge that floats beside it has no room and rests */
    .lp .hcg-float--practical {
        display: none;
    }

    .lp .hcg-win__screen .spot {
        --spot-size: 88px;
    }

    .lp .hcg-step {
        padding: 22px 18px;
    }

    .lp .hcg-step__head {
        gap: 14px;
        padding-right: 48px;
    }

    .lp .hcg-step__mark .spot {
        --spot-size: 56px;
    }

    .lp .hcg-step__no {
        top: 22px;
        right: 18px;
        font-size: 28px;
    }

    .lp .hcg-step__title {
        font-size: 18px;
    }

    .lp .hcg-step__text {
        margin: 14px 0 18px;
    }

    .lp .hcg-step__foot {
        padding-top: 14px;
    }

    .lp .hcg-flow {
        gap: 8px 26px;
    }

    .lp .hcg-flow li + li::before {
        left: -17px;
    }

    .lp .hcg-who {
        padding: 26px 20px;
    }

    .lp .hcg-who__title {
        font-size: 22px;
    }

    /* the trades in two columns, each one row of a drawing and its name */
    .lp .hcg-trades {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .lp .hcg-trade {
        gap: 12px;
        padding: 9px 14px 9px 9px;
        font-size: 15.5px;
    }

    .lp .hcg-trade .spot {
        --spot-size: 44px;
    }
}

/* A narrow phone cannot hold two trades with their names in a row. The paragraph above names them all, so the
   drawings stand as one strip under it and each name stays for a screen reader. The picture keeps its screen
   and lets go of its list. */
@media (max-width: 429px) {
    .lp .hcg-trades {
        display: flex;
        justify-content: space-between;
        gap: 6px;
    }

    .lp .hcg-trade {
        position: relative;
        flex: 0 0 auto;
        padding: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
    }

    .lp .hcg-trade > span:last-child {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    /* six drawings and five gaps inside the card: 76px of insets, 30px of gaps */
    .lp .hcg-trade .spot {
        --spot-size: min(46px, calc((100vw - 106px) / 6));
    }

    .lp .hcg-win__steps {
        display: none;
    }

    .lp .hcg-win__screen {
        margin-bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp .hcg-shot .hcg-win__track i,
    .lp .hcg-shot .hcg-win__step.is-now i::after,
    .lp .hcg-shot .hcg-float,
    .lp .hcg-shot .hcg-shot__pill {
        animation: none;
    }

    .lp .hcg-step,
    .lp .hcg-step__mark .spot,
    .lp .hcg-trade {
        transition: none;
    }

    .lp .hcg-step:hover,
    .lp .hcg-trade:hover,
    .lp .hcg-step:hover .hcg-step__mark .spot {
        transform: none;
    }
}
