/* The trainers pages: what a personal trainer gets, the plans, the application, and the plan page's list. */
/* The top: the claim at one side, over the dark of a photograph of a trainer with his phone at the other,
   and his clients on a glass card where the photograph fades into the page. */
.tr-hero-photo { height: clamp(620px, 56vw, 880px); -webkit-mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent); mask-image: linear-gradient(to bottom, var(--ink) 60%, transparent); }
.tr-hero-photo img { object-position: 100% 0; opacity: 1; }
.tr-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, transparent 52%); opacity: 0.7; }
.tr-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.tr-hero-copy { display: grid; gap: 24px; justify-items: start; }
.tr-title { font-size: clamp(40px, 5.3vw, 76px); max-width: 13ch; }
.tr-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.tr-points { justify-content: flex-start; }
.tr-stage { position: relative; align-self: stretch; min-height: 500px; }
.tr-stage-photo { display: none; }
/* A client's workout on a phone, with her trainer's voice above it (in the section about clients). */
.tr-demo { position: relative; display: grid; place-items: center; padding: 30px 0 6px; }
.tr-demo::before { content: ''; position: absolute; inset: 4% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--trainer-glow), transparent); filter: blur(60px); }
.tr-phone { width: min(230px, 60%); margin: 0; padding: 7px; border-radius: 38px; box-shadow: var(--shadow-deep), 0 0 120px var(--trainer-soft); }
.tr-phone img { display: block; width: 100%; height: auto; border-radius: 31px; }
.tr-float { position: absolute; z-index: 3; border-radius: var(--r-md); background: linear-gradient(180deg, var(--glass-strong), var(--glass)), var(--glass-deep); }
.tr-face { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge-strong); }
.tr-says { left: 0; top: 7%; display: flex; align-items: center; gap: 12px; max-width: 350px; padding: 12px 14px; animation: bob 7s ease-in-out infinite; }
.tr-says .tr-face { width: 52px; height: 52px; border-color: var(--trainer-line); box-shadow: 0 0 22px var(--trainer-glow); }
.tr-says > span:not(.mark) { display: grid; gap: 2px; min-width: 0; line-height: 1.3; }
.tr-says small { font-size: 12.5px; color: var(--dim); }
.tr-says b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.015em; }
.tr-roster { right: 0; bottom: 0; width: 268px; display: grid; gap: 12px; padding: 14px 16px; animation: bob 8s ease-in-out -3s infinite; }
.tr-roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tr-roster-head b { font-size: 14px; font-weight: 600; }
.tr-roster-head small { font-size: 12px; color: var(--dim); white-space: nowrap; }
.tr-people { display: grid; gap: 10px; }
.tr-people li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tr-people .tr-face { width: 36px; height: 36px; }
.tr-people span { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.tr-people b { font-size: 14px; font-weight: 600; }
.tr-people small { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-people i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); }
.tr-people i.is-warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

.tr-section { padding-top: clamp(44px, 6vw, 90px); padding-bottom: clamp(44px, 6vw, 90px); scroll-margin-top: 90px; }
.tr-section .section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* What you get: two wide tiles and three narrower ones, each with a picture of the thing, then three in words. */
.tr-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tr-tile { grid-column: span 2; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 20px; padding: 24px; }
.tr-tile > .tr-art { align-content: center; }
.tr-tile-wide { grid-column: span 3; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); grid-template-rows: minmax(0, 1fr); align-items: center; padding: 28px; }
.tr-tile-plain { grid-template-rows: auto; align-content: start; }
.tr-tile-copy { display: grid; gap: 8px; align-content: start; }
.tr-tile p { color: var(--dim); font-size: 15.5px; line-height: 1.55; }
.tr-art { display: grid; gap: 12px; min-width: 0; padding: 16px; border-radius: var(--r-md); border: 1px solid var(--edge-soft); background: var(--glass-deep); }
.tr-art .chip .icon { width: 15px; height: 15px; }
.tr-chip-go { border-color: var(--accent-line); color: var(--accent); }
.tr-art-voice { justify-items: start; }
.tr-voice-row { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.tr-voice-row .tr-face { width: 52px; height: 52px; border-color: var(--trainer-line); }
.tr-wave { flex: 1; min-width: 0; height: 48px; }
.tr-wave path { fill: none; stroke: var(--trainer); stroke-width: 3; stroke-linecap: round; }
.tr-art-avatar { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px 14px; }
.tr-avatar { width: 96px; height: 96px; border-radius: 22px; object-fit: cover; border: 1px solid var(--trainer-line); box-shadow: 0 0 30px var(--trainer-glow); }
.tr-wear { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tr-art .tr-note { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--edge-soft); background: var(--glass); color: var(--text); font-size: 14.5px; line-height: 1.45; }
.tr-note small { font-size: 12px; color: var(--dim); }
.tr-art .tr-line { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.tr-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); }
.tr-video img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.tr-play { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--scrim); border: 1px solid var(--edge-strong); -webkit-backdrop-filter: var(--blur-light); backdrop-filter: var(--blur-light); }
.tr-play .icon { width: 18px; height: 18px; fill: var(--text); stroke: none; }
.tr-video small { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: var(--r-pill); background: var(--scrim); font-family: var(--font-mono); font-size: 11.5px; }

/* Why trainers use it: four photographs, two by two. */
.tr-pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tr-pics .pic { aspect-ratio: 4 / 3; }

/* What your clients get: the words beside the phone, then the real app, one large picture and two beside it. */
.tr-clients-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 4vw, 64px); align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }
.tr-clients-head .section-head { margin-bottom: 0; }
.tr-shots { display: grid; grid-template-columns: minmax(0, 2.36fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tr-shot-main { grid-row: span 2; }

/* How it works */
.tr-how { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: how; }
.tr-how li { counter-increment: how; display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--edge-soft); background: var(--glass); }
.tr-how li::before { content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--trainer-soft); border: 1px solid var(--trainer-line); color: var(--trainer); font-family: var(--font-mono); font-size: 13px; }
.tr-how b { font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.tr-how span { color: var(--dim); font-size: 15px; line-height: 1.55; }

/* The plans */
/* The prices at one side; at the other, what every plan holds. */
.tr-plan-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; }
.tr-plan-box { padding: clamp(20px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.tr-plan-side { padding: clamp(20px, 3vw, 36px); display: grid; gap: 4px; align-content: start; }
.tr-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tr-faces { display: flex; flex: none; }
.tr-faces img { width: 40px; height: 40px; margin-left: -10px; border-radius: 50%; object-fit: cover; border: 2px solid var(--ink); }
.tr-faces img:first-child { margin-left: 0; }
.tr-plans { display: grid; }
.tr-plans li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; border-top: 1px solid var(--edge-soft); font-size: 17px; }
.tr-plans li:first-child { border-top: 0; padding-top: 0; }
.tr-plans b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.02em; }
.tr-plans small { font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--dim); }
.tr-plan-side .ticks { margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--edge-soft); }
.tr-more { color: var(--dim); font-size: 15.5px; }

/* The application */
.tr-apply { max-width: 780px; }
.tr-apply .join-step { gap: 14px; }
.tr-group { display: grid; gap: 12px; min-width: 0; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--edge-soft); }
.tr-legend { margin: 0; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.tr-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tr-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.tr-cert { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--edge-soft); background: var(--glass); }
.tr-add { justify-self: start; }
.tr-add[hidden] { display: none; }
/* An item's answers side by side ("I have it", "I don't have this"), then what goes with "I have it". */
.tr-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.tr-file { width: 100%; min-width: 0; padding: 10px 0; color: var(--dim); font: 400 16px/1.3 Geist, system-ui, sans-serif; }
.tr-file::file-selector-button { margin-right: 12px; padding: 10px 16px; border-radius: var(--r-pill); border: 1px solid var(--edge); background: var(--glass); color: var(--text); font: inherit; cursor: pointer; }
.tr-file:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
.tr-files { display: grid; gap: 8px; }
.tr-files:empty { display: none; }
.tr-files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--edge-soft); background: var(--glass); font-size: 15px; }
.tr-files span { min-width: 0; overflow-wrap: anywhere; }
.tr-files small { color: var(--dim); white-space: nowrap; }
.tr-files .join-link { flex: none; padding: 0; }
.tr-doc { max-height: 400px; overflow-y: auto; display: grid; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--edge); background: var(--field); overflow-wrap: anywhere; }
.tr-doc section { display: grid; gap: 8px; }
.tr-doc h5, .tr-doc h6 { margin: 0; }
.tr-doc h6 { font-size: 15.5px; font-weight: 600; }
.tr-doc p { color: var(--dim); font-size: 15px; line-height: 1.6; }
.tr-doc .doc-version { color: var(--faint); font-size: 13px; margin-top: -10px; }
.tr-apply .join-agree { font-size: 15.5px; color: var(--text); }

/* The plan page: one plan to a row, with what it costs and whether it is yours. */
.tr-plan-list { grid-template-columns: minmax(0, 1fr); }
.tr-plan-list[hidden] { display: none; }
.tr-plan-list .join-plan span { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; }
.tr-plan-list .join-plan small { text-align: right; white-space: nowrap; }
.tr-plan-list .join-plan i { grid-column: 1 / -1; font-style: normal; font-size: 13px; color: var(--faint); }
.tr-plan-list .join-plan input:disabled + span { opacity: 0.55; cursor: default; }
.tr-part { display: grid; gap: 12px; }
.tr-part[hidden], [data-part][hidden] { display: none; }
#step-plan .join-error { color: var(--accent); }

@media (max-width: 1040px) {
  .tr-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-hero-photo { display: none; }
  .tr-stage { width: 100%; max-width: 560px; min-height: 0; margin: 0 auto; padding-bottom: 76px; }
  .tr-stage-photo { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--edge); box-shadow: var(--shadow-deep); }
  .tr-roster { right: 12px; }
  .tr-clients-head { grid-template-columns: minmax(0, 1fr); }
  .tr-demo { width: 100%; max-width: 440px; margin: 0 auto; }
  .tr-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .tr-tile { grid-column: span 3; }
  .tr-tile-wide { grid-column: span 6; }
  .tr-how { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .tr-tile, .tr-tile-wide { grid-column: span 6; }
  .tr-tile-wide { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .tr-shots { grid-template-columns: minmax(0, 1fr); }
  .tr-pics { grid-template-columns: minmax(0, 1fr); }
  .tr-says { top: 0; max-width: 92%; }
  .tr-roster { width: min(268px, 82%); }
}
@media (max-width: 600px) {
  .tr-pair, .tr-cert { grid-template-columns: minmax(0, 1fr); }
  .tr-plans li { font-size: 16px; }
  .tr-cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tr-says, .tr-roster { animation: none; }
}
