/* Shared base for the three Personal Training concept takes: reset, type defaults, the header pill, the live
   arrow buttons and the footer, restated from the live /home-rebuild/ so the takes are judged on what differs. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--tcc-ground); color: var(--tcc-text);
  font-family: var(--tcc-font-body); font-size: max(17px, var(--tcc-text-base)); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--tcc-font-heading); font-weight: 500; color: var(--tcc-heading); margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--tcc-text-4xl); line-height: 1.02; }
h2 { font-size: var(--tcc-text-3xl); line-height: 1.06; }
h3 { font-size: var(--tcc-text-2xl); line-height: 1.1; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--tcc-edge), var(--tcc-wrap)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--tcc-brand); outline-offset: 3px; }
.nb { white-space: nowrap; }

/* ---------- Buttons: the live pill, "Reveal" (tcc-btn--arrow since 5 Nov; Sam picked it 4 Nov) ----------
   The plain arrow sits bare after the label; on hover (pointing devices), keyboard focus or a press a disc grows behind it
   while the arrow slides through. The circle keeps its footprint at rest. Each variant sets the arrow colour (color on
   .btn__ic) and the disc colour (--disc). Mirrors bricks/controls/classes.json. */
.btn {
  --h: var(--tcc-control-h-lg); --d: calc(var(--h) - 2 * var(--tcc-control-inset));
  display: inline-flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: calc(var(--h) * .26);
  height: var(--h); min-height: var(--tcc-control-touch); padding: 0 var(--tcc-control-inset) 0 calc(var(--h) * .48);
  border: 0; border-radius: var(--tcc-control-radius); width: fit-content;
  font: 600 var(--tcc-control-fs-lg)/1 var(--tcc-font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .3s var(--tcc-easing-arrive), color .3s var(--tcc-easing-arrive);
}
.btn--sm { --h: var(--tcc-control-h-sm); font-size: var(--tcc-control-fs-sm); padding-left: calc(var(--h) * .45); min-height: var(--h); }
.btn__ic { position: relative; flex: none; width: var(--d); height: var(--d); border-radius: 999px; background: transparent; color: inherit; overflow: hidden; contain: paint;
  transition: color .3s var(--tcc-easing-arrive); }
.btn__ic::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--disc, transparent); transform: scale(0); transition: transform .4s var(--tcc-easing-arrive); }
.btn__ic > span { position: absolute; inset: 0 auto 0 0; display: flex; width: 200%; transform: translate3d(-50%,0,0); transition: transform .5s var(--tcc-easing-move); }
.btn__ic > span::before, .btn__ic > span::after {
  content: ''; flex: 0 0 50%; align-self: center; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
@media (hover: hover) {
  .btn:hover .btn__ic::before { transform: scale(1); }
  .btn:hover .btn__ic > span { transform: translate3d(0,0,0); }
}
.btn:focus-visible .btn__ic::before, .btn:active .btn__ic::before { transform: scale(1); }
.btn:focus-visible .btn__ic > span, .btn:active .btn__ic > span { transform: translate3d(0,0,0); }
.btn--primary, .btn--primary:hover { --disc: var(--tcc-brand-hi); background: var(--tcc-brand); color: var(--tcc-text-on-brand); }
.btn--ghost { --disc: rgba(255,255,255,.22); background: var(--tcc-btn-ghost-fill); color: var(--tcc-text); box-shadow: inset 0 0 0 1px var(--tcc-btn-ghost-ring); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--ghost:hover { background: var(--tcc-btn-ghost-fill-hover); }
.btn--outline { --disc: var(--tcc-brand-hi); background: transparent; color: var(--tcc-text); box-shadow: inset 0 0 0 1.5px var(--tcc-brand); }
.btn--outline .btn__ic { color: var(--tcc-brand); }
@media (hover: hover) {
  .btn--outline:hover { background: var(--tcc-brand); color: var(--tcc-ink); }
  .btn--outline:hover .btn__ic { color: var(--tcc-ink); }
}
.btn--outline:focus-visible, .btn--outline:active { background: var(--tcc-brand); color: var(--tcc-ink); }
.btn--outline:focus-visible .btn__ic, .btn--outline:active .btn__ic { color: var(--tcc-ink); }
/* the quiet text link with a sliding arrow (homepage "More about the coaches") */
.tlink { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font: 600 var(--tcc-control-fs-lg)/1.2 var(--tcc-font-body); color: var(--tcc-text); text-decoration: none; }
.tlink::after { content: ''; width: 16px; height: 16px; background: currentColor; transition: transform .4s var(--tcc-easing-arrive);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.tlink:hover { color: var(--tcc-brand-hi); }
.tlink:hover::after { transform: translateX(4px); }

/* ---------- Header pill (restated from the live header, simplified: no mega menu) ---------- */
.hd { position: fixed; z-index: 100; top: var(--tcc-top); left: 0; right: 0; pointer-events: none; }
.hd__pill {
  pointer-events: auto; margin-inline: auto; width: min(100% - 2 * var(--tcc-edge), 100vw);
  height: var(--tcc-bar); display: flex; align-items: center; gap: 24px;
  padding: 0 calc((var(--tcc-bar) - var(--tcc-header-btn-h)) / 2) 0 14px;
  border-radius: 999px; background: var(--tcc-header-fill); box-shadow: inset 0 0 0 1px var(--tcc-header-line);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: width .48s var(--tcc-easing-move);
}
.hd.is-narrow .hd__pill { width: min(100% - 2 * var(--tcc-edge), var(--tcc-header-narrow)); }
.hd__brand { display: block; flex: none; }
.hd__brand img { height: calc(20px + var(--tcc-up) * .02); width: auto; }
.hd__links { display: flex; gap: calc(34px + var(--tcc-up) * .03); margin-inline: auto; }
.hd__links a { font: 500 var(--tcc-control-fs-nav)/1 var(--tcc-font-body); color: var(--tcc-header-link); text-decoration: none; padding: 10px 2px; }
.hd__links a:hover, .hd__links a[aria-current] { color: var(--tcc-text); }
.hd__cta { flex: none; }
.hd__burger { display: none; margin-left: auto; width: var(--tcc-header-btn-h); height: var(--tcc-header-btn-h); min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--tcc-text); cursor: pointer; place-items: center; }
.hd__menu { pointer-events: auto; margin: 8px auto 0; width: min(100% - 2 * var(--tcc-edge), 480px); padding: 12px; border-radius: 22px; background: var(--tcc-surface); box-shadow: inset 0 0 0 1px var(--tcc-header-line); }
.hd__menu a:not(.btn) { display: block; padding: 14px 12px; font: 500 20px/1.2 var(--tcc-font-heading); color: var(--tcc-text); text-decoration: none; border-bottom: 1px solid var(--tcc-border); }
.hd__menu .btn { margin: 14px 0 4px; width: 100%; justify-content: space-between; }
@media (max-width: 1023px) {
  .hd__links, .hd__cta { display: none; }
  .hd__burger { display: grid; }
}

/* ---------- Footer (restated from the live footer's content) ---------- */
.ft { background: #000; color: var(--tcc-text); padding: var(--tcc-space-2xl) 0 28px; }
.ft__top { display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end; }
.ft__ask { font: 500 var(--tcc-text-3xl)/1.05 var(--tcc-font-heading); color: var(--tcc-heading); text-decoration: none; }
.ft__ask:hover { color: var(--tcc-brand-hi); }
.ft__meta { display: grid; gap: 6px; font-size: 15px; color: var(--tcc-on-dark-muted); }
.ft__meta a { color: var(--tcc-text); }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; margin-top: var(--tcc-space-xl); padding-top: 22px; border-top: 1px solid var(--tcc-border); font-size: 14px; color: var(--tcc-on-dark-muted); }
.ft__bottom a { color: var(--tcc-on-dark-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ft__social { display: flex; gap: 6px; }
.ft__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--tcc-border); }
.ft__social svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 767px) { .ft__top { grid-template-columns: 1fr; } }

/* ---------- Reduced motion: every element finished and visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .btn__ic::before { display: none; }
}
