/*
 * gym.html — the gym-management page.
 *
 * Shares the palette, typefaces and page scale with nutrition.css (both loaded).
 * This file holds what only this page draws: the laptop-and-phones hero, the four
 * role cards, the capability rail and the four-phone band.
 */

/* ── hero ────────────────────────────────────────────────────────────────── */
.gy-hero { position: relative; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); overflow: hidden; }
.gy-hero-grid {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 24px; align-items: center; padding: 54px 0 50px;
}
.gy-hero h1 { font-size: clamp(32px, 3.1vw, 44px); white-space: nowrap; line-height: 1.07; letter-spacing: -0.025em; margin-top: 14px; }
.gy-hero h1 em { font-style: normal; color: #93A47C; }
.gy-hero-sub { font-size: 16px; color: var(--ink-soft); margin: 18px 0 0; max-width: 44ch; line-height: 1.6; }

.gy-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; margin-top: 28px; }
.gy-pill { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; font-family: var(--display); line-height: 1.25; }
.gy-pill span {
  width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.gy-cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.gy-btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 13px 22px; font-size: 14px; font-weight: 600; font-family: var(--display);
}
.gy-btn-ghost:hover { border-color: var(--ink); }

.gy-devices { position: relative; min-height: 430px; padding-top: 26px; }
.gy-note { font-family: var(--script); font-size: 22px; line-height: 1.2; color: var(--ink-soft); }
.gy-hero-note { position: absolute; right: -16px; top: -8px; width: 156px; text-align: right; z-index: 4; }

/* laptop */
.gy-laptop { position: relative; width: 92%; margin-left: 0; }
.gy-lid {
  background: #14161A; border-radius: 14px 14px 4px 4px; padding: 10px 10px 12px;
  box-shadow: 0 26px 60px rgba(0,0,0,0.26);
}
.gy-screen { background: #0E1013; border-radius: 8px; overflow: hidden; display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 300px; }
.gy-base { height: 12px; background: linear-gradient(180deg, #C9CBD0, #9EA1A8); border-radius: 0 0 12px 12px; margin: 0 -4%; }

.gy-side { background: #121418; padding: 12px 10px; color: #8A8F98; font-size: 8.5px; }
.gy-side b { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 10px; color: #fff; font-weight: 600; }
.gy-side b i { width: 14px; height: 14px; border-radius: 4px; background: #2E7D6A; display: block; }
.gy-side em { font-style: normal; display: block; font-size: 7px; color: #6B7079; margin: 2px 0 12px 20px; }
.gy-side u { text-decoration: none; display: flex; gap: 7px; align-items: center; padding: 5px 6px; border-radius: 6px; }
.gy-side u.on { background: #1C2026; color: #fff; }
.gy-side u s { text-decoration: none; width: 11px; height: 11px; border-radius: 3px; background: #2A2F36; display: block; flex: none; }

.gy-main { padding: 12px 14px; color: #fff; }
.gy-topbar { display: flex; justify-content: flex-end; gap: 8px; font-size: 8px; color: #9AA0A8; }
.gy-topbar span { background: #191C21; border-radius: 6px; padding: 4px 8px; }
.gy-hello { font-family: var(--display); font-size: 14px; font-weight: 600; margin-top: 10px; }
.gy-hello + p { margin: 2px 0 0; font-size: 8.5px; color: #8A8F98; }
.gy-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.gy-kpi { background: #16191E; border-radius: 8px; padding: 8px; }
.gy-kpi em { font-style: normal; display: block; font-size: 7.5px; color: #8A8F98; }
.gy-kpi b { font-family: var(--display); font-size: 15px; font-weight: 700; }
.gy-kpi i { font-style: normal; font-size: 7px; color: #7FB98F; display: block; }
.gy-chart { background: #16191E; border-radius: 8px; padding: 10px; margin-top: 10px; }
.gy-chart em { font-style: normal; font-size: 8px; color: #8A8F98; }
.gy-chart svg { width: 100%; height: 58px; display: block; margin-top: 4px; }
.gy-activity { margin-top: 10px; font-size: 8px; color: #C3C7CD; }
.gy-activity div { display: flex; align-items: center; gap: 7px; padding: 5px 0; border-bottom: 1px solid #1B1F25; }
.gy-activity div:last-child { border-bottom: 0; }
.gy-activity i { width: 6px; height: 6px; border-radius: 50%; background: #7FB98F; flex: none; }
.gy-activity span { margin-left: auto; color: #70757D; }

/* phones over the laptop */
.gy-phone {
  position: absolute; width: 168px; border-radius: 22px; padding: 5px;
  background: linear-gradient(150deg, #4A4A50, #121215 32%, #0A0A0C 70%, #3A3A40);
  box-shadow: 0 20px 44px rgba(0,0,0,0.32); z-index: 3;
}
.gy-phone-screen { background: #0B0B0D; border-radius: 18px; padding: 8px 7px; color: #fff; }
.gy-phone-1 { right: 132px; bottom: -22px; }
.gy-phone-2 { right: -16px; bottom: 16px; }
.gy-ph-top { display: flex; justify-content: space-between; font-size: 6.5px; color: #8A8F98; }
.gy-ph-title { font-family: var(--display); font-size: 9px; font-weight: 600; margin-top: 6px; }
.gy-ph-title + span { font-size: 6.5px; color: #8A8F98; }
.gy-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.gy-tile { background: #16191E; border-radius: 8px; padding: 7px 5px; text-align: center; font-size: 6.5px; color: #C3C7CD; }
.gy-tile b { display: block; width: 16px; height: 16px; border-radius: 5px; background: #24303A; margin: 0 auto 4px; }
.gy-class { background: #16191E; border-radius: 8px; padding: 6px; margin-top: 6px; font-size: 6.5px; color: #C3C7CD; }
.gy-class b { display: block; font-family: var(--display); font-size: 7.5px; color: #fff; }
.gy-member-shot { border-radius: 14px; overflow: hidden; height: 132px; position: relative; }
.gy-member-shot img { width: 100%; height: 100%; object-fit: cover; }
.gy-member-shot p { position: absolute; left: 8px; bottom: 8px; margin: 0; font-family: var(--display); font-size: 10px; font-weight: 700; line-height: 1.2; color: #fff; }

/* ── role cards ──────────────────────────────────────────────────────────── */
.gy-roles-head { text-align: center; max-width: 46ch; margin: 0 auto 30px; }
.gy-roles-head h2 { font-size: clamp(28px, 3vw, 38px); }
.gy-roles-head p { margin: 10px 0 0; font-size: 15px; color: var(--ink-soft); }
.gy-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gy-role { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.gy-role-img { position: relative; aspect-ratio: 4 / 3; }
.gy-role-img img { width: 100%; height: 100%; object-fit: cover; }
.gy-role-ic {
  position: absolute; left: 16px; bottom: -20px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff;
}
.gy-role-body { padding: 30px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gy-role-body h3 { font-size: 17px; font-weight: 700; }
.gy-role-body > p { margin: 6px 0 0; font-size: 13px; color: var(--ink-mute); }
.gy-role-body ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.gy-role-body li { display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
.gy-role-body svg.tick { flex: none; margin-top: 3px; color: var(--sage-deep); }
.gy-role-body .btn { margin-top: auto; justify-content: center; }
.gy-role-cta { padding-top: 18px; }

/* ── capability rail ─────────────────────────────────────────────────────── */
.gy-rail { display: grid; grid-template-columns: repeat(8, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.gy-rail div { padding: 16px 12px; text-align: center; border-left: 1px solid var(--line); font-family: var(--display); font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.gy-rail div:first-child { border-left: 0; }
.gy-rail svg { display: block; margin: 0 auto 8px; color: var(--ink); }

/* ── pocket band ─────────────────────────────────────────────────────────── */
.gy-pocket { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 34px; align-items: center; }
.gy-pocket h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; }
.gy-pocket p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.gy-pocket .nt-stores { margin-top: 24px; }
.gy-fourphones { position: relative; display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.gy-fourphones .gy-phone { position: relative; right: auto; bottom: auto; width: 176px; }
.gy-fourphones .gy-phone:nth-child(odd) { margin-bottom: 18px; }
.gy-pocket-note { position: absolute; right: -20px; top: 4px; width: 150px; text-align: left; }

/* ── closing ─────────────────────────────────────────────────────────────── */
.gy-end { background: var(--paper-2); border-top: 1px solid var(--line); padding: 48px 0; position: relative; overflow: hidden; }
.gy-end-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 34px; align-items: center; }
.gy-end h2 { font-size: clamp(24px, 2.6vw, 32px); }
.gy-end p { margin: 8px 0 0; font-size: 14px; color: var(--ink-soft); }
.gy-end ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gy-end li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink-soft); }
.gy-end svg { flex: none; margin-top: 3px; color: var(--sage-deep); }

@media (max-width: 1150px) {
  .gy-roles { grid-template-columns: 1fr 1fr; }
  .gy-rail { grid-template-columns: repeat(4, 1fr); }
  .gy-rail div:nth-child(5) { border-left: 0; }
}

@media (max-width: 900px) {
  .gy-hero-grid, .gy-pocket, .gy-end-row { grid-template-columns: 1fr; }
  .gy-devices { min-height: 0; }
  .gy-laptop { width: 100%; margin-left: 0; }
  .gy-phone-1, .gy-phone-2 { position: relative; right: auto; bottom: auto; display: none; }
  .gy-hero-note, .gy-pocket-note { display: none; }
  .gy-pills { grid-template-columns: 1fr 1fr; }
  .gy-roles { grid-template-columns: 1fr; }
  .gy-rail { grid-template-columns: 1fr 1fr; }
  .gy-rail div { border-left: 0; border-top: 1px solid var(--line); }
  .gy-fourphones { flex-wrap: wrap; }
}

/* ── phones ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gy-hero-grid { padding: 26px 0 32px; }
  .gy-hero h1 { white-space: normal; font-size: clamp(30px, 8.4vw, 42px); }
  .gy-pills { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gy-cta-row .btn, .gy-cta-row .gy-btn-ghost { width: 100%; justify-content: center; }
  .gy-devices { padding-top: 0; }
  .gy-fourphones { gap: 12px; }
  .gy-fourphones .gy-phone { width: min(160px, 44%); }
  .gy-fourphones .gy-phone:nth-child(odd) { margin-bottom: 0; }
  .gy-roles-head h2 { font-size: 28px; }
}

@media (max-width: 560px) {
  .gy-pills { grid-template-columns: 1fr; }
  .gy-rail { grid-template-columns: 1fr; }
  .gy-role-body { padding: 28px 16px 16px; }
}
