/* The home page's hands-on sections: the tour, the drag-to-compare, the season on a phone and the checkout.
   Loaded on the home page alone. The markup is includes/home_demos.php and the movement is js/home-demos.js. */

/* ---- The tour of real screens ------------------------------------------------------------------------------- */
.tour { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: center; }
.tour__list { display: flex; flex-direction: column; gap: 6px; }
.tour__stop {
    position: relative; overflow: hidden; display: block; width: 100%; padding: 14px 16px 15px; text-align: left;
    font: inherit; color: var(--gray-300); background: transparent; border: 0; border-radius: var(--radius-md);
    cursor: pointer; transition: background 0.2s ease;
}
.tour__stop:hover { background: rgba(255, 255, 255, 0.05); }
.tour__stop.is-on { background: rgba(255, 255, 255, 0.09); }
.tour__stop:focus-visible { outline: 3px solid var(--chalk-lime); outline-offset: -3px; }
.tour__name {
    display: block; font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; line-height: 1.15;
    letter-spacing: 0.02em; text-transform: uppercase; color: var(--gray-300); transition: color 0.2s ease;
}
.tour__stop.is-on .tour__name { color: var(--chalk-lime); }
.tour__line { display: block; margin-top: 5px; font-size: 0.96rem; line-height: 1.45; }
.tour.is-live .tour__stop:not(.is-on) .tour__line { display: none; }
.tour__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: transparent; }
.tour__bar i { display: block; height: 100%; background: var(--chalk-lime); transform: scaleX(0); transform-origin: left center; }
.tour.is-running:not(.is-held) .tour__stop.is-on .tour__bar i { animation: tour-fill 7s linear forwards; }
.tour.is-running.is-paused:not(.is-held) .tour__stop.is-on .tour__bar i { animation-play-state: paused; }
@keyframes tour-fill { to { transform: scaleX(1); } }

.tour__stage {
    position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--white);
    border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 34px 70px -22px rgba(0, 0, 0, 0.6);
}
.tour__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0.55s ease; }
.tour__shot.is-on { opacity: 1; }
.tour__shot img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: var(--fx) var(--fy); }
.tour.is-live .tour__shot.is-on img { animation: tour-drift 8s ease-out both; }
@keyframes tour-drift { from { transform: scale(1); } to { transform: scale(1.03); } }
.tour:not(.is-live) .tour__cursor, .tour:not(.is-live) .tour__note, .tour:not(.is-live) .tour__ring { display: none; }

.tour__cursor {
    position: absolute; z-index: 3; left: var(--cx, 62%); top: var(--cy, 58%); fill: var(--primary-navy); stroke: var(--white); stroke-width: 1.6;
    filter: drop-shadow(0 3px 4px rgba(15, 38, 66, 0.4)); transition: left 0.95s cubic-bezier(0.55, 0, 0.2, 1), top 0.95s cubic-bezier(0.55, 0, 0.2, 1);
}
.tour__ring {
    position: absolute; z-index: 2; left: var(--cx, 62%); top: var(--cy, 58%); width: 62px; height: 62px; margin: -28px 0 0 -28px;
    border: 3px solid var(--primary-green); border-radius: 50%; opacity: 0; pointer-events: none;
}
.tour__stage.is-click .tour__ring { animation: tour-ring 0.85s ease-out; }
@keyframes tour-ring { 0% { opacity: 0.95; transform: scale(0.35); } 100% { opacity: 0; transform: scale(1.25); } }
.tour__note {
    position: absolute; z-index: 4; left: var(--cx, 62%); top: var(--cy, 58%); padding: 8px 13px; white-space: nowrap;
    font-size: 0.92rem; font-weight: 600; line-height: 1.1; color: var(--white); background: var(--primary-navy);
    border-radius: var(--radius-pill); box-shadow: var(--shadow-md); opacity: 0; transform: translate(10px, calc(-100% - 2px)) scale(0.92);
    transform-origin: left bottom; transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.tour__stage.is-flip .tour__note { transform: translate(calc(-100% - 8px), calc(-100% - 2px)) scale(0.92); transform-origin: right bottom; }
.tour__stage.is-note .tour__note { opacity: 1; transform: translate(10px, calc(-100% - 8px)); }
.tour__stage.is-note.is-flip .tour__note { transform: translate(calc(-100% - 8px), calc(-100% - 8px)); }
.tour__caption { display: none; margin: 14px 2px 0; font-size: 1rem; line-height: 1.45; min-height: 3em; }
.tour-band__foot { margin-top: 26px; text-align: center; font-size: 0.92rem; }

/* ---- Drag to compare ---------------------------------------------------------------------------------------- */
.cmp { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 30px; align-items: stretch; }
.cmp__tabs { display: flex; flex-direction: column; gap: 8px; }
.cmp__item { background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease; }
.cmp__item.is-on { box-shadow: var(--shadow-md), inset 3px 0 0 var(--primary-green); }
.cmp__tab {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 16px; text-align: left; font: inherit; color: var(--primary-navy);
    background: transparent; border: 0; border-radius: var(--radius-md); cursor: pointer;
}
.cmp__tab .icon { flex-shrink: 0; color: var(--primary-green-dark); }
.cmp__tab:focus-visible { outline: 3px solid var(--primary-green); outline-offset: -3px; }
.cmp__tab h3 { margin: 0; font-size: 1.14rem; line-height: 1.2; color: inherit; }
.cmp__item p { margin: 0; padding: 0 16px 15px 16px; font-size: 0.97rem; line-height: 1.5; color: var(--gray-600); }
.cmp.is-live .cmp__item:not(.is-on) p { display: none; }

.cmp__stage {
    --x: 42%; position: relative; min-height: 400px; overflow: hidden; touch-action: pan-y;
    border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-xl);
}
.cmp__scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.cmp__scene.is-on { opacity: 1; visibility: visible; }
.cmp__pane { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 9px; padding: 18px; color: var(--gray-900); }
.cmp__pane--before { background: #e9edf2; }
.cmp__pane--after { background: var(--white); align-items: flex-end; clip-path: inset(0 0 0 var(--x)); }
.cmp__pane--after > * { width: min(100%, 390px); }
.cmp-head {
    display: flex; justify-content: space-between; gap: 10px; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary-navy);
}
.cmp-head em { font-style: normal; color: #b42318; white-space: nowrap; }
.cmp__pane--after .cmp-head em { color: var(--primary-green-dark); }
.cmp-bub { align-self: flex-start; max-width: 62%; padding: 7px 12px; font-size: 0.94rem; line-height: 1.3; background: var(--white); border-radius: 15px; }
.cmp-bub--coach { background: #2f6fb5; color: var(--white); }
.cmp-card { display: flex; align-items: center; gap: 12px; padding: 11px 13px; font-size: 0.93rem; line-height: 1.34; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.cmp-card b { display: block; color: var(--primary-navy); }
.cmp-card small { display: block; font-size: 0.84rem; font-weight: 600; color: var(--primary-green-dark); }
.cmp-card--pin { border-color: var(--primary-green); background: #f1f8ec; }
.cmp-pill {
    flex-shrink: 0; padding: 5px 9px; font-family: var(--font-display); font-size: 0.86rem; font-weight: 700; line-height: 1; letter-spacing: 0.05em;
    text-transform: uppercase; color: #3f6b26; background: var(--primary-green-light); border-radius: var(--radius-pill);
}
.cmp-pill--due { color: #92400e; background: #fef3c7; }
.cmp-sheet { width: 292px; table-layout: fixed; border-collapse: collapse; font-family: Consolas, "Courier New", monospace; font-size: 0.84rem; background: var(--white); }
.cmp-sheet th, .cmp-sheet td { padding: 6px 7px; overflow: hidden; text-align: left; white-space: nowrap; border: 1px solid #c8d1dc; height: 31px; }
.cmp-sheet th:first-child { width: 48%; }
.cmp-sheet th { font-weight: 700; color: var(--gray-600); background: #f1f4f8; }
.cmp-sheet .is-bad { color: #b42318; background: #fde8e6; }
.cmp-chips { display: flex; gap: 6px; }
.cmp-chips i { padding: 5px 10px; font-size: 0.84rem; font-style: normal; font-weight: 600; color: var(--gray-600); border: 1px solid var(--gray-200); border-radius: var(--radius-pill); }
.cmp-chips i.is-on { color: var(--white); background: var(--primary-navy); border-color: var(--primary-navy); }
.cmp-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 13px; font-size: 0.92rem; border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.cmp-line b { color: var(--primary-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-line > span:not(.cmp-pill) { color: var(--gray-600); }
.cmp-meter { height: 11px; overflow: hidden; background: var(--gray-200); border-radius: 6px; }
.cmp-meter i { display: block; height: 100%; background: var(--primary-green); border-radius: 6px; }
.cmp-note { width: 268px; max-width: 100%; padding: 9px 13px; font-size: 0.92rem; line-height: 1.32; background: #fff8d6; box-shadow: 0 3px 6px rgba(15, 38, 66, 0.14); transform: rotate(var(--r)); }
.cmp-note b { display: block; color: var(--primary-navy); }
.cmp-paper {
    position: absolute; left: var(--l); top: var(--t); width: 188px; min-height: 92px; padding: 11px 13px; font-size: 0.9rem; line-height: 1.32;
    background: var(--white); box-shadow: 0 5px 10px rgba(15, 38, 66, 0.2); transform: rotate(var(--r));
}
.cmp-paper b { display: block; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary-navy); }
.cmp__line { position: absolute; top: 0; bottom: 0; left: var(--x); z-index: 2; width: 3px; margin-left: -1.5px; background: var(--primary-green); pointer-events: none; }
.cmp__line::after {
    content: "\2194"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.3rem;
    font-weight: 700; color: var(--primary-navy); background: var(--primary-green); border-radius: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 3px 12px rgba(15, 38, 66, 0.35);
}
.cmp__range { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp__range:disabled { display: none; }
.cmp__stage:has(.cmp__range:focus-visible) .cmp__line::after { outline: 3px solid var(--primary-navy); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
    .cmp__scene.is-on [style*="--i"] { animation: cmp-in 0.34s ease-out both; animation-delay: calc(var(--i) * 70ms + 120ms); }
    @keyframes cmp-in { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}

/* ---- The season on a phone ---------------------------------------------------------------------------------- */
/* clip rather than hidden: an overflow of hidden on the band would make it the sticky phone's scroller. */
.section--navy.season-band { overflow: clip; }
.season { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(24px, 6vw, 80px); max-width: 960px; margin: 0 auto; align-items: start; }
.season__steps { display: flex; flex-direction: column; gap: 26vh; margin: 0; padding: 10vh 0 22vh; list-style: none; }
.season__step { padding-left: 18px; border-left: 3px solid rgba(255, 255, 255, 0.16); transition: border-color 0.3s ease; }
.season__step.is-on { border-left-color: var(--chalk-lime); }
.season__step button { display: flex; align-items: baseline; gap: 10px; padding: 0; font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; text-align: left; }
.season__step button:focus-visible { outline: 3px solid var(--chalk-lime); outline-offset: 4px; }
.season__no { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gray-400); }
.season__title {
    font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.05; text-transform: uppercase;
    color: var(--gray-400); transition: color 0.3s ease;
}
.season__step.is-on .season__no, .season__step.is-on .season__title { color: var(--chalk-lime); }
.season__step p { margin: 8px 0 0; max-width: 46ch; font-size: 1.06rem; line-height: 1.55; transition: color 0.3s ease; }
.season.is-live .season__step:not(.is-on) p { color: var(--gray-400); }
.season__slot { position: sticky; top: calc(var(--header-height) + 22px); }
.season__phone { max-width: 290px; aspect-ratio: 9 / 17; margin-inline: auto; padding: 11px; background: #050d18; border-radius: 38px; box-shadow: 0 26px 54px rgba(0, 0, 0, 0.42), inset 0 0 0 2px rgba(255, 255, 255, 0.08); }
.season__screen { position: relative; height: 100%; overflow: hidden; background: var(--white); border-radius: 28px; }
.scr {
    position: absolute; inset: 0 0 46px; display: flex; flex-direction: column; gap: 10px; padding: 22px 15px 10px; font-size: 0.88rem; line-height: 1.3; color: var(--gray-900);
    opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.scr.is-on { opacity: 1; transform: none; }
.scr h4 { margin: 0; font-family: var(--font-display); font-size: 1.42rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--primary-navy); }
.scr-sub { font-size: 0.8rem; color: var(--gray-600); }
.scr-big { font-family: var(--font-display); font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--primary-green-dark); font-variant-numeric: tabular-nums; }
.scr-bar { display: block; flex-shrink: 0; height: 10px; overflow: hidden; background: var(--gray-200); border-radius: 5px; }
.scr-bar i { display: block; width: var(--w); height: 100%; background: var(--primary-green); border-radius: 5px; }
.scr-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border: 1px solid var(--gray-200); border-radius: 8px; }
.scr-row b { font-weight: 600; color: var(--primary-navy); white-space: nowrap; }
.scr-row em { font-style: normal; color: var(--gray-600); white-space: nowrap; }
.scr-row--hi { border-color: var(--primary-green); background: #f1f8ec; }
.scr-row--stack { display: block; }
.scr-row--stack b, .scr-row--stack em { display: block; white-space: normal; }
.scr-final { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; color: var(--primary-navy); }
.scr-final b { font-weight: 800; color: var(--primary-green-dark); }
.scr-final span { color: var(--gray-400); }
.season__tabs { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; height: 46px; border-top: 1px solid var(--gray-200); }
.season__tabs i { width: 22px; height: 22px; background: var(--gray-200); border-radius: 7px; }
.season__tabs i:first-child { background: var(--primary-green); }
@media (prefers-reduced-motion: no-preference) {
    .scr.is-on .scr-bar i { animation: scr-grow 0.85s cubic-bezier(0.25, 0.8, 0.3, 1) both; }
    .scr.is-on [style*="--i"] { animation: scr-in 0.32s ease-out both; animation-delay: calc(var(--i) * 90ms + 180ms); }
    @keyframes scr-grow { from { width: 0; } to { width: var(--w); } }
    @keyframes scr-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
}

/* ---- The checkout you can flip ------------------------------------------------------------------------------ */
.co { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 26px; align-items: start; }
.co__rules { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.co-rule { display: flex; flex-direction: column; gap: 9px; padding: 20px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.co-rule__head { display: flex; align-items: center; gap: 12px; }
.co-rule__head .icon-badge { flex-shrink: 0; margin: 0; }
.co-rule h3 { margin: 0; font-size: 1.2rem; line-height: 1.15; }
.co-rule p { margin: 0; font-size: 0.96rem; line-height: 1.5; color: var(--gray-600); }
.co-rule__ctl { display: flex; flex-direction: column; gap: 9px; margin-top: auto; padding-top: 6px; }
.co-switch { display: flex; align-items: center; gap: 10px; font-size: 0.96rem; font-weight: 600; line-height: 1.25; color: var(--primary-navy); cursor: pointer; }
.co-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-switch__track { position: relative; flex-shrink: 0; width: 44px; height: 25px; background: var(--gray-300); border-radius: var(--radius-pill); transition: background 0.18s ease; }
.co-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.18s cubic-bezier(0.3, 1.4, 0.5, 1); }
.co-switch input:checked + .co-switch__track { background: var(--primary-green); }
.co-switch input:checked + .co-switch__track::after { transform: translateX(19px); }
.co-switch input:focus-visible + .co-switch__track { outline: 3px solid var(--primary-navy); outline-offset: 2px; }
.co-switch input:disabled + .co-switch__track, .co-seg input:disabled + span { opacity: 0.55; }
.co-stack { padding-left: 2px; font-size: 0.92rem; }
.co-seg { display: flex; margin: 0; padding: 3px; border: 0; background: var(--gray-100); border-radius: var(--radius-pill); }
.co-seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.co-seg label { flex: 1 1 0; min-width: 0; cursor: pointer; }
.co-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-seg span { display: block; padding: 8px 6px; font-size: 0.9rem; font-weight: 600; line-height: 1.15; text-align: center; color: var(--gray-600); border-radius: var(--radius-pill); transition: background 0.18s ease, color 0.18s ease; }
.co-seg input:checked + span { color: var(--white); background: var(--primary-navy); }
.co-seg input:focus-visible + span { outline: 3px solid var(--primary-green); outline-offset: 1px; }
.co__mini { display: none; }

.co__receipt { position: sticky; top: calc(var(--header-height) + 20px); overflow: hidden; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-xl); }
.co__top { display: flex; flex-direction: column; padding: 16px 20px; color: var(--white); background: var(--primary-navy); }
.co__top span { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-300); }
.co__top b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; color: var(--white); }
.co__rows { margin: 0; padding: 12px 20px 6px; }
.co-row { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.26s ease, opacity 0.22s ease; }
.co-row.is-out { grid-template-rows: 0fr; opacity: 0; }
.co-row > div { display: flex; justify-content: space-between; gap: 14px; min-height: 0; overflow: hidden; }
.co-row dt, .co-row dd { margin: 0; padding: 6px 0; font-size: 1rem; }
.co-row dt { color: var(--gray-700); }
.co-row dd { font-weight: 600; color: var(--primary-navy); font-variant-numeric: tabular-nums; }
.co-row dd.is-off-the-top { color: var(--primary-green-dark); }
.co__why { margin: 0 20px 6px; padding: 9px 11px; font-size: 0.88rem; line-height: 1.4; color: #92400e; background: #fef3c7; border-radius: var(--radius-sm); }
.co__total { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 20px 0; padding-top: 12px; border-top: 2px dashed var(--gray-300); }
.co__total span { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-navy); }
.co__total b { font-family: var(--font-display); font-size: 2.7rem; font-weight: 800; line-height: 1; color: var(--primary-green-dark); font-variant-numeric: tabular-nums; }
.co__plan { margin: 10px 20px 18px; font-size: 0.94rem; line-height: 1.45; color: var(--gray-600); }

/* ---- The tap-a-square sheet, in the home page's fundraising section ----------------------------------------- */
.home-swipe-hint { display: none; margin: 2px 0 0; text-align: center; font-size: 0.9rem; color: var(--gray-600); }
.home-squares { margin-top: 12px; }
.home-squares .fr-demo { margin-top: 0; }
.home-squares .fr-demo__action { padding: 9px 14px; font-size: 1rem; }
.home-tries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.home-try {
    display: block; padding: 16px 18px; color: var(--gray-700); text-decoration: none; background: var(--gray-50);
    border: 1px solid var(--gray-200); border-radius: var(--radius-md); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.home-try:hover { transform: translateY(-3px); border-color: var(--primary-green); box-shadow: var(--shadow-md); }
.home-try b { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.15; text-transform: uppercase; color: var(--primary-navy); }

@media (prefers-reduced-motion: reduce) {
    .tour__shot, .tour__note, .tour__cursor, .scr, .co-row, .cmp__scene { transition: none; }
    .tour__bar { display: none; }
    .tour.is-live .tour__shot.is-on img { animation: none; }
}

@media (max-width: 1100px) {
    .co { grid-template-columns: minmax(0, 1fr) 330px; }
    .co__rules { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
    .tour { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tour__view { order: -1; }
    .tour__list { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .tour__list::-webkit-scrollbar { display: none; }
    .tour__stop { flex: 0 0 auto; width: auto; padding: 9px 13px 11px; }
    .tour__name { font-size: 1.08rem; white-space: nowrap; }
    .tour.is-live .tour__line { display: none; }
    .tour.is-live .tour__caption { display: block; }
    .tour__note { padding: 6px 10px; font-size: 0.8rem; }
    .tour__cursor { width: 22px; height: 22px; }
    .tour__ring { width: 44px; height: 44px; margin: -20px 0 0 -20px; }

    .cmp { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .cmp__stage { order: -1; min-height: 400px; }

    .season { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .season__slot { order: -1; top: var(--header-height); z-index: 2; padding: 8px 0 12px; background: var(--primary-navy); }
    .season__phone { max-width: 158px; aspect-ratio: 9 / 15.4; padding: 6px; border-radius: 24px; }
    .season__screen { border-radius: 18px; }
    .scr { inset: 0 0 26px; gap: 5px; padding: 11px 9px 6px; font-size: 0.64rem; }
    .season__tabs { height: 26px; }
    .season__tabs i { width: 13px; height: 13px; border-radius: 4px; }
    .scr h4 { font-size: 0.98rem; }
    .scr-sub { font-size: 0.6rem; }
    .scr-big { font-size: 2rem; }
    .scr-bar { height: 7px; }
    .scr-row { padding: 4px 6px; border-radius: 6px; }
    .scr-final { font-size: 1.1rem; }
    .season__steps { gap: 15vh; padding: 3vh 0 24vh; }

    .co { grid-template-columns: minmax(0, 1fr); }
    .co__receipt { position: static; }
    .co__mini {
        position: sticky; bottom: 12px; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 9px 16px;
        color: var(--white); background: var(--primary-navy); border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
    }
    .co__mini span { font-weight: 600; }
    .co__mini b { font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; color: var(--chalk-lime); font-variant-numeric: tabular-nums; }

    .home-tries { grid-template-columns: minmax(0, 1fr); }
}

/* The two longest lists on the page become rows to swipe on a phone. Everything stays in the HTML, and a card is as
   far as a thumb, where the twelve feature cards alone were five screens of scrolling. */
@media (max-width: 640px) {
    .feature-grid, .help-cards {
        display: flex; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px;
        scrollbar-width: none; overscroll-behavior-x: contain;
    }
    .feature-grid::-webkit-scrollbar, .help-cards::-webkit-scrollbar { display: none; }
    .feature-grid > *, .help-cards > * { flex: 0 0 84%; min-width: 0; scroll-snap-align: start; }
    .js-anim .feature-grid .animate-on-scroll { opacity: 1; transform: none; }
    .home-swipe-hint { display: block; }
}

@media (max-width: 480px) {
    .cmp-sheet { width: 100%; }
    .cmp-note { width: 84%; }
    .cmp-paper { width: 60%; }
    .cmp-bub { max-width: 78%; }
}
