/* =====================================================================
   THE HOME PAGE, REBUILT FOR THE PHONE (WEB-074, register S393, 22 October 2026).
   Martin: "appearing on a phone as a simple and easy website is key to the
   users that we want to attract". The first screen at 375 to 390 pixels wide
   is the promise, Donnie, Watch Donnie and Start - nothing else. House
   variables only: no colour values, house spacing steps, radii 16 / 12 / pill.
   ===================================================================== */

/* ---- the first screen ---- */
.hb-hero{padding-block:var(--mcf-s6) var(--mcf-s7)}
.hb-hero-in{max-width:1120px;display:flex;flex-direction:column;align-items:center;gap:var(--mcf-s4);text-align:center}
/* THE PAGE STANDARD (WEB-129, 19 November 2026): the title and its words on the left, Donnie the guide on the right with
   his first line (site-v2.css section 20, .guide); on a phone Donnie, beside his bubble, comes at the end of the hero, so
   the film still starts inside the first screen at 375 by 667. The film keeps its own width under them. */
.hb-top{width:100%;display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"title" "words";column-gap:var(--mcf-s7);row-gap:var(--mcf-s4);align-items:start;text-align:left}
.hb-hero .t-hero{grid-area:title;max-width:18ch;margin:0}
.hb-top-words{grid-area:words;display:flex;flex-direction:column;gap:var(--mcf-s4)}
.hb-lead{max-width:56ch;margin-inline:0;color:var(--mcf-grey-strong)}
.hb-hero-in>.st{max-width:880px}
/* on a phone the title, words, film and Apply keep the first screen (the film starts inside 375 by 667, checkdonnieintro
   5k); Donnie, beside his bubble, closes the hero - "Ask me anything" - just above his chat */
@media (max-width:640px){.hb-top{display:contents}.hb-hero .t-hero{align-self:stretch;text-align:left}.hb-top-words{align-self:stretch;text-align:left}}
.hb-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--mcf-s3);width:100%}
.hb-person{display:flex;align-items:center;justify-content:center;gap:var(--mcf-s3);text-align:left;color:var(--mcf-grey-strong);max-width:420px}
.hb-person .ico{width:24px;height:24px;flex:none;color:var(--mcf-blue)}
.hb-person a{font-weight:600;white-space:nowrap}

/* ---- what do you need money for: the pictures ---- */
.hb-needs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--mcf-s4)}
.hb-need{display:flex;flex-direction:column;align-items:center;gap:var(--mcf-s2);height:100%;min-height:44px;padding:var(--mcf-s3) var(--mcf-s3) var(--mcf-s4);background:var(--mcf-card);border:1px solid var(--mcf-line);border-radius:var(--mcf-r-card);color:var(--mcf-ink);text-align:center;transition:border-color var(--t-fast) ease}
.hb-need:hover{border-color:var(--mcf-blue);color:var(--mcf-ink)}
.hb-need img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
.hb-need b{font-weight:600;line-height:1.25}

/* ---- the steps ---- */
.hb-flush{padding-inline:0;margin-inline:0}
.hb-ready{max-width:46ch;color:var(--mcf-ink);text-align:left}

/* ---- ASK DONNIE: the gateway, straight after the film (Martin, 17 November 2026: "It needs more colour to stand out.
   Have a Donnie character standing beside it ... it needs to basically scream out to a user that this is a good place
   to start"). Since the page standard (WEB-129, Martin's decision D3, A, 19 November 2026) the soft blue tint, not solid
   blue: the strong colour comes once, at the end. Dark words; the chat in a white card with a blue top edge (.card-edge),
   so its chips, bubbles and box keep the contrast they were designed with. Donnie stands to
   the right of the card - he faces left, so his arm points at it: the chat script waves him (is-hello, donnie.css
   dd-wave) when the band comes into view, and when the wave ends his arm rises to point at the box, twice, then holds
   (hb-point: three passes, under five seconds, then still - WCAG 2.2.2, as the film's tap marks). On a phone he stands
   beside the words, smaller, above the box, and points down at it. Under reduced motion he simply stands pointing. ---- */
.band.hb-askband{padding-block:var(--mcf-s8) var(--mcf-s8)}
.hb-ask{max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) 340px;grid-template-areas:"words donnie" "chat donnie";column-gap:var(--mcf-s4);row-gap:var(--mcf-s5);align-items:end}
.hb-ask-words{grid-area:words;display:flex;flex-direction:column;align-items:flex-start;gap:var(--mcf-s3);align-self:start}
.hb-ask-kicker{display:inline-flex;align-items:center;min-height:30px;padding:0 14px;border-radius:var(--mcf-r-pill);background:var(--mcf-blue);color:var(--mcf-card);font-size:var(--mcf-size-small);font-weight:700}
.hb-ask-title{font-size:var(--mcf-size-display);font-weight:700;line-height:1.08;letter-spacing:-.02em;color:var(--mcf-ink);max-width:16ch}
.hb-ask-line{font-size:var(--mcf-size-section);line-height:1.4;color:var(--mcf-ink);max-width:38ch;text-wrap:pretty}
.hb-ask-words a{color:var(--mcf-blue);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.hb-ask-words a:hover{color:var(--mcf-blue-hover);text-decoration-thickness:2px}
.hb-ask-words a:focus-visible{outline:3px solid var(--mcf-blue);outline-offset:3px;border-radius:4px}
.hb-ask .dd-chat{grid-area:chat;margin:0;padding:var(--mcf-s5);background:var(--mcf-card);border:4px double var(--mcf-blue);border-radius:var(--mcf-r-card)}
.hb-donnie{--hb-point:36deg;grid-area:donnie;align-self:end;width:340px;max-width:100%;margin-bottom:calc(-1 * var(--mcf-s2))}
.hb-donnie svg{display:block;width:100%;height:auto}
/* THE SHOULDER, FOR AN ANIMATED ARM (17 November 2026): donnie.css pins the arm with transform-box:view-box at 178 196.
   Chrome honours that for a transform set plainly, but an ANIMATED transform (the wave, this point) it turns about the
   arm's own box instead - the pointing arm came out a hand's width lower than the same angle set still, in headless
   Chrome and in the browser pane alike (scratch test, four Donnies side by side). The same point named in the arm's own
   box (fill-box: the arm's box is x 116-190, y 184-250; the shoulder 178 196 is 62 12 inside it) renders the same
   still and animated, so the wave and the point both turn on the shoulder here. */
.hb-donnie .dd-arm{transform-box:fill-box;transform-origin:62px 12px}
/* his arm: still at rest while the band is out of view (the chat script's own wave at load is fine either way), then the
   point - from the wave's end (is-hello comes off) with script, from load without it. */
html.js .hb-donnie.is-seen:not(.is-hello) .dd-arm,html:not(.js) .hb-donnie:not(.is-hello) .dd-arm{animation:hb-point 1.3s ease-in-out .4s 3 alternate both}
@keyframes hb-point{from{transform:rotate(0)}to{transform:rotate(var(--hb-point))}}
@media (prefers-reduced-motion:reduce){.hb-donnie .dd-arm{transform:rotate(var(--hb-point))}}
@media (max-width:900px){
  .hb-ask{grid-template-columns:minmax(0,1fr) 220px;column-gap:var(--mcf-s5)}
  .hb-donnie{width:220px}
  .hb-ask-title{font-size:var(--mcf-size-page)}
}
@media (max-width:640px){
  .band.hb-askband{padding-block:var(--mcf-s7) var(--mcf-s7)}
  /* the words and Donnie share the top row - he is small, beside them, above the box - and the chat takes the whole row under */
  .hb-ask{grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:"words donnie" "chat chat";column-gap:var(--mcf-s3);row-gap:var(--mcf-s4);align-items:end}
  .hb-ask-words{gap:var(--mcf-s2)}
  .hb-ask-title{font-size:var(--mcf-size-title);max-width:none}
  .hb-ask-line{font-size:var(--mcf-size-body);line-height:1.45}
  .hb-donnie{--hb-point:18deg;width:112px;margin-bottom:0}
  .hb-ask .dd-chat{padding:var(--mcf-s3)}
}
.hb-small{font-size:var(--mcf-size-small);color:var(--mcf-grey)}

/* ---- who we are: the reviews, the people, the facts ---- */
.hb-reviews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mcf-s5)}
.hb-reviews .vf-review{margin:0;max-width:none;background:var(--mcf-card)}
.hb-team{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mcf-s5)}
.hb-person-card{display:flex;gap:var(--mcf-s4);align-items:flex-start;padding:var(--mcf-s5);background:var(--mcf-card);border:1px solid var(--mcf-line);border-radius:var(--mcf-r-card)}
.hb-person-card img{width:72px;height:72px;flex:none;border-radius:var(--mcf-r-pill);object-fit:cover}
.hb-person-card p+p{margin-top:var(--mcf-s2)}
.hb-person-card>div{min-width:0}
.hb-person-card p.hb-book-wrap{margin-top:var(--mcf-s3)}
.hb-book{min-height:44px;white-space:normal;text-align:center;line-height:1.2;padding-top:8px;padding-bottom:8px}
.hb-name{display:flex;flex-direction:column;gap:2px}
.hb-name b{font-weight:600;font-size:var(--mcf-size-heading)}
.hb-name span{color:var(--mcf-grey);font-size:var(--mcf-size-small)}
.hb-facts{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mcf-s4) var(--mcf-s6)}
.hb-facts li{display:block;padding-top:var(--mcf-s4);border-top:1px solid var(--mcf-line)}
.hb-facts b{font-weight:600}
.hb-facts span{color:var(--mcf-grey-strong)}

/* BUBBLE CLEAR (round 12, Martin's screenshot: "Meet Donnie, Tap to hear him" over the end of Watch Donnie): the
   corner bubble has a set width here, and the first screen's buttons keep out of its column at every width - centred
   on a wide screen, set left of it on a phone. check-mockups ("bubble") holds it. */
body[data-intro="bubble"] .intro-bubble{width:212px}
@media (min-width:641px){.hb-acts{max-width:calc(100vw - 2 * (var(--gutter) + 212px + var(--mcf-s3)))}}
@media (max-width:900px){
  .hb-needs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hb-reviews,.hb-team,.hb-facts{grid-template-columns:1fr}
}
@media (max-width:640px){
  .hb-hero{padding-block:var(--mcf-s3) var(--mcf-s6)}
  .hb-hero-in{gap:var(--mcf-s2)}
  .hb-acts{gap:var(--mcf-s2)}
  /* WEB-103 (S523): centred on a phone - Martin, 6 November: "the blue box sits too far to the left on the phone
     screen". The same space both sides; 70 still keeps it clear of the corner bubble (check-mockups holds both). */
  .hb-acts{flex-direction:column;align-items:stretch;align-self:stretch;width:auto;margin-inline:70px}
  .hb-acts .dlink-big{padding-right:var(--mcf-s4);gap:var(--mcf-s2)}
  .hb-acts .btn,.hb-acts .dlink{width:100%}
  .hb-needs{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--mcf-s3)}
  /* the corner "Meet Donnie" bubble: on a phone only his face, so it does not sit over the first screen's words;
     Watch Donnie is already there. Its words stay for screen readers. */
  body[data-intro="bubble"] .intro-bubble{padding:4px;width:auto}
  body[data-intro="bubble"] .intro-bubble-art{width:56px;height:56px}
  body[data-intro="bubble"] .intro-bubble-art img{width:56px;height:56px}
  body[data-intro="bubble"] .intro-bubble-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .hb-hero{padding-bottom:calc(var(--mcf-s6) + 72px)}
  .hb-hero .hb-lead{font-size:var(--mcf-size-body);line-height:1.45}
  .hb-person,.hb-ready{align-self:stretch;justify-content:flex-start;text-align:left;margin-right:76px;max-width:none}
}

/* ---- DONNIE'S STAGE (S393): Watch Donnie plays his film large, here in the first screen; the machines can be
   tapped where the film's marks.json says they are; the four choices lie over the film's calm end ---- */
.st{width:100%;text-align:left;background:var(--mcf-card);border:2px solid var(--mcf-blue);border-radius:var(--mcf-r-card);overflow:hidden}
.st[hidden]{display:none}
.hb-words-link{margin:0}
.hb-words-link a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}
.hb-film-aside .film-words p{font-size:var(--mcf-size-small);line-height:1.5}
.st:not(.is-on) .st-head,.st:not(.is-on) .st-controls,.st:not(.is-on) .st-note,.st:not(.is-on) .st-taps{display:none}
.st:not(.is-on){border-color:var(--mcf-line)}
.st-big-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:76px;height:76px;padding:0;border:0;border-radius:var(--mcf-r-pill);background:var(--mcf-blue);color:var(--mcf-card);cursor:pointer;transition:transform var(--t-fast) ease}
.st-big-play .ico{width:34px;height:34px;margin-left:4px}
.st-big-play:hover{transform:translate(-50%,-50%) scale(1.06)}
.st.is-on .st-big-play{display:none}
.st-head{display:flex;align-items:center;justify-content:space-between;gap:var(--mcf-s3);padding:var(--mcf-s1) var(--mcf-s1) var(--mcf-s1) var(--mcf-s4);border-bottom:1px solid var(--mcf-line)}
.st-head b{font-weight:600}
.st-screen{position:relative;aspect-ratio:16/9;background:var(--mcf-blue-tint);overflow:hidden}
.st-video{display:block;width:100%;height:100%;object-fit:contain;background:var(--mcf-blue-tint);cursor:pointer}
.st-video::cue{font-size:clamp(14px,3.6vw,24px);line-height:1.3}
.st-taps{position:absolute;inset:0;pointer-events:none}
.st-tap{position:absolute;min-width:44px;min-height:44px;padding:0;background:transparent;border:3px solid var(--mcf-blue);outline:3px solid var(--mcf-card);border-radius:var(--mcf-r-inner);cursor:pointer;pointer-events:auto}
.st-tap[hidden]{display:none}
html.js .st-tap:not([hidden]){animation:st-tap 1.6s ease-in-out 4} /* 4 times, then still (WEB-105, WCAG 2.2.2) */
@keyframes st-tap{0%,100%{opacity:1}50%{opacity:.55}}
.st-tap:focus-visible{outline:3px solid var(--mcf-blue);outline-offset:2px}
.st-more{position:absolute;inset:var(--mcf-s2);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:var(--mcf-s2);padding:var(--mcf-s3);background:var(--mcf-card);border:1px solid var(--mcf-blue);border-radius:var(--mcf-r-inner);text-align:center;overflow:auto}
.st-more[hidden]{display:none}
.st-more p{margin:0;font-weight:600;font-size:var(--mcf-size-heading);line-height:1.3}
.st-more-link{display:inline-flex;align-items:center;min-height:44px}
.st-more-acts{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--mcf-s2)}
.st .st-next{position:absolute;inset:var(--mcf-s2);margin:0;justify-content:center;gap:var(--mcf-s2);padding:var(--mcf-s3);background:var(--mcf-card);border:1px solid var(--mcf-line);overflow:auto}
.st .st-next .intro-ask{text-align:center}
.st .intro-choices .btn{flex:1 1 40%}
.st-note{margin:0;padding:var(--mcf-s2) var(--mcf-s4) 0;font-size:var(--mcf-size-small);color:var(--mcf-grey)}
.st-note[hidden]{display:none}
.st-controls{display:flex;gap:var(--mcf-s2);padding:var(--mcf-s3) var(--mcf-s4)}
.st-ctl{flex:1 1 0;min-width:0;padding:0 10px}
.st-ctl[aria-pressed="false"]{color:var(--mcf-grey);text-decoration:line-through}
.st .intro-mail{margin:0 var(--mcf-s4) var(--mcf-s4)}
/* while the film plays, the corner bubble and the page's small floating Donnie step aside, so they cover nothing */
html.stage-on body[data-intro="bubble"] .intro-bubble{display:none}
@media (max-width:640px){
  .st .st-next{inset:0;border:0;border-radius:0;padding:var(--mcf-s2)}
  .st .st-next .intro-ask{font-size:var(--mcf-size-small)}
  .st .st-next .intro-choices{gap:6px}
  .st .st-next .btn{font-size:var(--mcf-size-small);padding:0 8px}
  .st-more{inset:0;border-radius:0}
  .st-more p{font-size:var(--mcf-size-body)}
}
@media (prefers-reduced-motion:reduce){html.js .st-tap:not([hidden]){animation:none}}

/* ---- THE CLOSE (WEB-129, 19 November 2026): the solid blue band (site-v2.css section 20, .band-fill and .path) - the
   heading on the left, Donnie with his line 2 on the right, the four steps under them. On blue, his bubble keeps a white
   edge and tail. On a phone the shared rules make him 104 pixels, beside his words. ---- */
.hb-close-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:var(--mcf-s6);align-items:end}
.hb-close-guide{max-width:420px}
.hb-close-guide>p{border-color:var(--mcf-card)}
.hb-close-guide>p::before{border-right-color:var(--mcf-card)}
@media (min-width:641px){.hb-close-guide>.donnie{width:132px;max-width:132px;flex-shrink:0}}
@media (max-width:900px){.hb-close-head{grid-template-columns:minmax(0,1fr);gap:var(--mcf-s5)}}
/* WEB-138 (S616, 30 November 2026): the three proof lines and the trust line in the first screen, one column, under the lead */
.hb-proof{grid-template-columns:minmax(0,1fr);gap:var(--mcf-s2);max-width:56ch}
.hb-proof li{padding-top:var(--mcf-s2);color:var(--mcf-grey-strong)}
.hb-trust{font-size:.92em}
.hb-acts .hb-refi{align-self:center}
.hb-proof-wrap{width:100%;max-width:56ch;margin-inline:auto;display:flex;flex-direction:column;gap:var(--mcf-s3);text-align:left}
