/* CoachTalk home, "How it works" option F, "One day with CoachTalk", version 2 (review build round 7.3, owner 23 Nov
   2026; nothing here is live; version 1 is kept as css/hiw-f-v1.css). Linked only from hiw-f.html, after css/site.css and
   css/home73.css (neither is edited); driven by js/hiw-f.js.
   Owner's changes for version 2: three moments (On the course / Practice, Before / After the round, Anytime); one device
   at a time with a short explanation beside it (phone on the left and writing on the right; for the WebApp the writing
   on the left and the device on the right); no second, dimmed or frosted device; no caption line under the devices; the
   WebApp in a desktop monitor with a slim bezel and a stand.
   Type (site.css TYPE SYSTEM): label Inter 700 small uppercase, title Montserrat 700 (.h3), text the one reading style
   (.lead). Colour: neutral surfaces; blue only on the progress line under the active tab. Every colour is a site token
   or a token below, so light (default) and data-theme="dark" both work.
   Screens are never shown larger than their pixels allow at 2x (desktop) and 3x (phones): a phone screen is at most
   244 px wide (780 px files), the monitor screen at most 586 px (the 1172 px MindGame screen) on desktop and 390 px on
   phones. Phones (under 700 px): the device on top, the writing under it. Reduced motion: no fades, no tap. */

:root {
  --hf-stand-1: #DCE2EA;
  --hf-stand-2: #B9C3D0;
  --hf-device-shadow: 0 34px 60px -34px rgba(14, 40, 80, .45), 0 0 0 1px rgba(14, 40, 80, .08);
}
:root[data-theme="dark"] {
  --hf-stand-1: #3A4660;
  --hf-stand-2: #222B3F;
  --hf-device-shadow: 0 34px 60px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .4);
}

/* ---------- the section ---------- */
/* starts on the tint "Hear your coach" ends on, then white; "One connected coach" follows on its soft band */
.hiw-f { background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 24%); }
.hiw-f .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- the frame ---------- */
.hf { max-width: 1120px; margin-inline: auto; padding: clamp(16px, 2.2vw, 26px) clamp(16px, 3.4vw, 44px) clamp(28px, 3.4vw, 44px); border-radius: var(--r-xl); background: var(--bg-soft); border: 1px solid var(--line); }

/* ---------- the timeline: three moments as tabs, one slim line under them ---------- */
.hf-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin: 0 auto clamp(28px, 3.6vw, 48px); }
.hf-tabs [role="tab"] { appearance: none; -webkit-appearance: none; display: grid; grid-template-rows: 1fr auto; row-gap: 11px; justify-items: stretch; min-width: 0; min-height: 44px; margin: 0; padding: 8px 0 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink-3); font: 700 15px/1.25 var(--f-text); text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .3s ease; }
.hf-tabs [role="tab"]:hover { color: var(--ink-2); }
.hf-tabs [role="tab"][aria-selected="true"] { color: var(--ink); }
.hf-tl { align-self: end; padding-inline: 6px; }
.hf-line { position: relative; display: block; height: 3px; background: var(--line); overflow: hidden; }
.hf-tabs [role="tab"]:first-child .hf-line { border-radius: 2px 0 0 2px; }
.hf-tabs [role="tab"]:last-child .hf-line { border-radius: 0 2px 2px 0; }
.hf-line i { position: absolute; inset: 0; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); transition: transform .45s ease; }
.hf-tabs [aria-selected="true"] .hf-line i { transform: scaleX(var(--p, 1)); }
/* while the day walks on its own, the active line follows the clock exactly (js/hiw-f.js sets --p every frame) */
.hf-auto .hf-tabs [aria-selected="true"] .hf-line i { transition: none; }

/* ---------- the moments: one device and its writing, stacked in one place, one shown at a time ---------- */
.hf-slides { display: grid; }
.hf-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; gap: clamp(32px, 4.4vw, 64px); min-width: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.hf-slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease .3s, visibility 0s linear .3s; }
.hf-slide.hf-at-web .hf-copy { order: -1; } /* the WebApp: writing on the left, the monitor on the right */

/* the writing beside the device */
.hf-copy { display: grid; gap: 12px; align-content: center; justify-items: start; flex: 0 1 420px; min-width: 0; }
.hf-at-web .hf-copy { flex-basis: 380px; }
.hf-lab { font: 700 12px/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hf-copy .hf-title { margin: 0; }
.hf-copy .lead { margin: 2px 0 0; }

/* ---------- the phone: the site's phone frame; screen at most 244 px wide ---------- */
.hf-dev { margin: 0; min-width: 0; }
.hf-ph { flex: none; width: clamp(200px, 21vw, 262px); }
.hf-ph .phone { width: 100%; padding: 9px; border-radius: 44px; align-self: auto; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), var(--hf-device-shadow); }
.hf-scr { position: relative; overflow: hidden; border-radius: 35px; aspect-ratio: 828 / 1792; background: #F4F6F7; }

/* ---------- the WebApp: a desktop monitor with a slim bezel and a stand; screen at most 586 px wide ---------- */
.hf-mon { flex: 0 1 602px; display: grid; justify-items: center; }
.hf-mon .mon { width: 100%; padding: 8px 8px 10px; border-radius: 14px; background: var(--bezel); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), var(--hf-device-shadow); }
.hf-mon .mon-scr { position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 4px; background: #F3F6FB; }
.hf-mon .mon-neck { width: 15%; height: clamp(30px, 4vw, 52px); background: linear-gradient(90deg, var(--hf-stand-2) 0%, var(--hf-stand-1) 50%, var(--hf-stand-2) 100%); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%); }
.hf-mon .mon-foot { width: 34%; height: 9px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--hf-stand-1), var(--hf-stand-2)); box-shadow: 0 12px 20px -10px rgba(14, 40, 80, .4); }

/* ---------- the screens: stacked; the new one fades in on top, the old one leaves once it is covered ---------- */
.hf-scr > img, .mon-scr > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; border-radius: 0; opacity: 0; z-index: 0; transition: opacity .8s ease .8s; }
.hf-scr > img.is-on, .mon-scr > img.is-on { opacity: 1; z-index: 1; transition: opacity .8s ease 0s; }

/* a calm tap on the practice screen's Tap card (round v4 layout: Tap is the left card; centre on its hand icon) (js/hiw-f.js adds .is-tapping once; two soft rings) */
.hf-tap { position: absolute; z-index: 2; left: 24.5%; top: 33.5%; width: 17%; aspect-ratio: 1; border-radius: 50%; background: rgba(14, 138, 79, .16); box-shadow: 0 0 0 2px rgba(14, 138, 79, .45); opacity: 0; transform: translate(-50%, -50%) scale(.5); pointer-events: none; }
.hf-tap.is-tapping { animation: hftap 1.1s ease-out 2; }
@keyframes hftap { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.5); } 18% { opacity: .95; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* ---------- phones: the device on top, the writing under it ---------- */
@media (max-width: 699px) {
  .hf { padding: 12px 10px 26px; border-radius: var(--r-md); }
  .hf-tabs { margin-bottom: 22px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .hf-tabs::-webkit-scrollbar { display: none; }
  .hf-tabs [role="tab"] { font-size: 13px; line-height: 1.25; row-gap: 9px; padding-top: 6px; }
  .hf-tl { padding-inline: 3px; }
  .hf-nw { white-space: nowrap; }
  .hf-slide { flex-direction: column; justify-content: center; gap: 22px; }
  .hf-slide.hf-at-web .hf-copy { order: 0; }
  .hf-copy, .hf-at-web .hf-copy { flex: none; width: 100%; max-width: 460px; justify-items: center; text-align: center; gap: 8px; padding-inline: 6px; }
  .hf-ph { width: min(200px, 60vw); }
  .hf-ph .phone { padding: 8px; border-radius: 38px; }
  .hf-scr { border-radius: 30px; }
  .hf-mon { flex: none; width: min(100%, 402px); } /* screen at most 390 px: 402 minus the 6 px bezel each side */
  .hf-mon .mon { padding: 6px 6px 8px; border-radius: 11px; }
  .hf-mon .mon-foot { height: 7px; }
}
@media (max-width: 359px) {
  .hf-tabs [role="tab"] { font-size: 12.5px; }
  .hf-tl { padding-inline: 2px; }
}

/* ---------- reduced motion: no walk (js/hiw-f.js), no fades, no tap ---------- */
@media (prefers-reduced-motion: reduce) {
  .hf-slide, .hf-slide.is-on, .hf-scr > img, .mon-scr > img, .hf-line i, .hf-tabs [role="tab"] { transition: none !important; }
  .hf-tap { display: none; }
}
