/*
 * Fixes on Tess's /start page (feedback from Nick and Tess in #mkt-landing-lp, 23 Nov 2026), kept outside the
 * generated HTML: scripts/import-start-landing.mjs links this file at the end of <head>, after the page's own
 * styles, on every import. Hand-written: the import never deletes it. Each rule says which report it answers.
 * Every selector starts with `html body`: some of the page's styles sit in <body>, after this file, and would win a tie.
 */

/* 1. Reviews (Nick: an outlined oval over the top of the page on phones). The Trustpilot badge of each review is an
 *    <em class="tp">, and the product demos style a panel class `.tp` as an absolute box inset 22px/30px with a border:
 *    the five badges left their cards and were drawn as one large outlined oval at the top of the page. */
html body .say .who em.tp { position: static; inset: auto; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: none }

/* 1b. Product window, Agent screen (Nick: a white card over the chat, "Reading your products ✓ Creat…" cut). Same
 *     collision: the assistant's step list is <ul class="st" id="a-steps">, and two rules written for other demo
 *     screens (`.st` absolute white panel, and `.st` three columns 180px/1fr/220px) also apply to it. Back to the
 *     list the page designed: one column, 9 px apart, in the chat. */
html body #a-steps.st { position: static; inset: auto; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0; grid-template-columns: none; gap: 9px }

/* 2. Logo band (Nick: "if you tap it, it stops, and another tap does not restart it"; "it disappeared at one point").
 *    On a touch screen a tap is a hover that never ends, so `.lband:hover` paused the band for good; and the band was a
 *    13,000 px wide layer moved by a CSS animation, which iPhones can drop. fixes.js now moves it by scrolling, like
 *    the reviews band; the CSS animation is off once that script runs. */
html body .lband-row.fx-scroll { animation: none !important; transform: none !important }

/* 3. Phones (Nick: too much space at the top). The header is 60 px tall on a phone: 28 px of space under it. */
@media (max-width: 760px) {
  html body .hero { padding-top: calc(60px + 28px + env(safe-area-inset-top, 0px)) }
}

/* 4. TagadaPay cards (Tess: the logo row and "You apply" / "Your account is open" overlap). The cards' container
 *    query (`container-type: inline-size`) makes some Safari versions count each card column as 0 px tall: the cards
 *    collapsed to their padding and their content spilled over the captions. Same layout, by viewport width: the
 *    store name and the action stack between 861 and 1284 px, exactly where the container query stacked them. */
@media (min-width: 861px) {
  html body #tagadapay .tgp-m { container-type: normal }
}
@media (min-width: 861px) and (max-width: 1284px) {
  html body #tagadapay .tgp-store { flex-basis: 100% }
}

/* 5. Sections far from the screen stop their animations and their glass blur (Tess: "it lags on my computer"), as on
 *    the home (tagada.io, MR !86). fixes.js marks them; they wake up half a screen before they come into view. */
html body main#top > section[data-fx-idle] *,
html body main#top > section[data-fx-idle] *::before,
html body main#top > section[data-fx-idle] *::after {
  animation-play-state: paused !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* 6. Text jumping as the page loads (audit 24 Nov: layout shift 0.11 on desktop, the hero's lines and buttons move
 *    when Host Grotesk arrives, Google's "good" limit is 0.1). Until the font has loaded, the page draws Arial resized
 *    to Host Grotesk's measures (the values next/font computes for the home), so nothing moves when it swaps in. */
@font-face { font-family: "Host Grotesk Fallback"; src: local("Arial"); ascent-override: 96.69%; descent-override: 30.01%; line-gap-override: 0%; size-adjust: 104.98% }
html:root { --f-sans: "Host Grotesk", "Host Grotesk Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif }
