/*
 * workout.html — the "Learn more" page behind the Workout Tracking card.
 *
 * Shares the page scale, phone frame and card styles with nutrition.css (both are
 * loaded); this file holds what only the workout page draws: the four hero pills, the
 * two-phone logging shot, the Siri card, the guided picker, the insights list and the
 * muscle heat map.
 */

/* ── hero ────────────────────────────────────────────────────────────────── */
.wt-hero { position: relative; background: var(--paper); overflow: hidden; }
.wt-hero-photo { position: absolute; right: 0; top: 0; bottom: 0; width: 42%; }
.wt-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.wt-hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(251,250,248,0.35) 18%, transparent 46%);
}
.wt-hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
  gap: 20px; align-items: start; padding: 60px 0 52px; min-height: 600px;
}
.wt-hero h1 { font-size: clamp(40px, 4.1vw, 57px); white-space: nowrap; line-height: 1.06; letter-spacing: -0.025em; margin-top: 14px; }
.wt-hero h1 em { font-style: normal; color: #93A47C; }
.wt-hero-sub { font-size: 17px; color: var(--ink-soft); margin: 18px 0 0; max-width: 40ch; }

.wt-pills { display: flex; gap: 26px; margin-top: 30px; }
.wt-pill { text-align: center; width: 76px; }
.wt-pill span {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; margin: 0 auto 9px; color: var(--ink);
}
.wt-pill b { display: block; font-family: var(--display); font-size: 12px; font-weight: 600; line-height: 1.25; }

/* The note sits over the dark photo here, so it is written in white — dark ink on
   a dark gym shot was unreadable. */
/* Both blocks are inset from the PHOTO's right edge (they are its children), which
   keeps them on the gym background to the right of her rather than across her face. */
.wt-hero-note {
  position: absolute; right: 20px; top: 96px; z-index: 3; width: 132px; text-align: right;
  color: #fff; font-size: 25px; text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.wt-vert {
  position: absolute; right: 24px; bottom: 150px; z-index: 3; text-align: right;
  font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  line-height: 1.5; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,0.45);
}
.wt-vert::after { content: ''; display: block; width: 34px; height: 2px; background: #fff; margin: 10px 0 0 auto; }
.wt-hero .ntp { position: absolute; left: 60px; top: -10px; z-index: 2; width: 330px; }

/* Under ~1200px the phone mock-up covers the strip of photo the words sit on, so they
   are dropped rather than printed across the app screen. */
@media (max-width: 1200px) {
  .wt-hero-note, .wt-vert { display: none; }
}

/* ── phone screens the workout page draws ────────────────────────────────── */
.wtp-tabs { display: flex; gap: 6px; margin-top: 12px; background: #17171A; border-radius: 9px; padding: 3px; }
.wtp-tabs span { flex: 1; text-align: center; font-size: 10px; padding: 5px 0; border-radius: 7px; color: #9A9AA2; }
.wtp-tabs span.on { background: #F2F1ED; color: #111113; font-weight: 600; }

.wtp-card { background: #141417; border-radius: 12px; padding: 10px; margin-top: 10px; }
.wtp-ex { display: flex; align-items: center; gap: 8px; }
.wtp-ex b { font-family: var(--display); font-size: 12px; font-weight: 600; }
.wtp-ex span { display: block; font-size: 9px; color: #7E7E86; }
.wtp-ring-ic { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #8FB98F; display: grid; place-items: center; color: #8FB98F; font-size: 11px; }

.wtp-steppers { display: flex; gap: 8px; margin-top: 10px; }
.wtp-step { flex: 1; background: #1B1B1F; border-radius: 10px; padding: 7px 8px; text-align: center; }
.wtp-step em { font-style: normal; display: block; font-size: 8px; letter-spacing: 0.12em; color: #7E7E86; }
.wtp-step div { display: flex; align-items: center; justify-content: space-between; margin-top: 3px; }
.wtp-step b { font-family: var(--display); font-size: 19px; font-weight: 700; }
.wtp-step i { font-style: normal; color: #8A8A92; font-size: 13px; }

.wtp-flag { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 9px; color: #9A9AA2; background: #1B1B1F; border-radius: 999px; padding: 4px 9px; }

.wtp-rest { --pct: 62%; --w: 6px; width: 104px; height: 104px; margin: 12px auto 0; position: relative; }
.wtp-rest::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(#8FB98F var(--pct), #1E1E22 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w)));
}
.wtp-rest span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.wtp-rest em { font-style: normal; font-size: 9px; color: #8A8A92; }
.wtp-rest b { display: block; font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.wtp-rest i { font-style: normal; font-size: 11px; color: #8A8A92; }

.wtp-adjust { display: flex; gap: 8px; margin-top: 10px; }
.wtp-adjust span { flex: 1; text-align: center; font-size: 10px; color: #C9C9D0; background: #1B1B1F; border-radius: 8px; padding: 6px 0; }
.wtp-cta { margin-top: 10px; text-align: center; font-size: 11px; font-weight: 600; color: #10240F; background: #A8CE9F; border-radius: 9px; padding: 9px 0; }

.wtp-list-row { display: flex; align-items: center; gap: 9px; background: #141417; border-radius: 10px; padding: 9px; margin-top: 7px; }
.wtp-list-row.on { border: 1px solid #8FB98F; background: #15211A; }
.wtp-num { width: 20px; height: 20px; border-radius: 50%; background: #23232A; display: grid; place-items: center; font-size: 9px; color: #C9C9D0; flex: none; }
.wtp-list-row b { font-family: var(--display); font-size: 11.5px; font-weight: 600; display: block; }
.wtp-list-row span { font-size: 9px; color: #7E7E86; }
.wtp-add { margin-top: 9px; text-align: center; font-size: 10.5px; color: #C9C9D0; background: #1B1B1F; border-radius: 9px; padding: 8px 0; }

.wtp-table { margin-top: 10px; font-size: 9.5px; }
.wtp-table-head, .wtp-table-row { display: grid; grid-template-columns: 24px 1fr 1fr 22px; gap: 6px; align-items: center; padding: 5px 4px; }
.wtp-table-head { color: #7E7E86; font-size: 8.5px; }
.wtp-table-row { background: #141417; border-radius: 8px; margin-top: 5px; }
.wtp-table-row b { font-family: var(--display); font-weight: 600; font-size: 10.5px; }
.wtp-tick { width: 15px; height: 15px; border-radius: 50%; background: #8FB98F; display: grid; place-items: center; color: #0B0B0D; }
.wtp-tick.off { background: none; border: 1.4px solid #3A3A42; }
.wtp-chips { display: flex; gap: 5px; margin-top: 9px; }
.wtp-chips span { flex: 1; text-align: center; font-size: 8.5px; padding: 5px 0; border-radius: 7px; background: #17171A; color: #9A9AA2; }
.wtp-chips span.on { background: #F2F1ED; color: #111113; font-weight: 600; }
.wtp-note { margin-top: 9px; background: #141417; border-radius: 9px; padding: 8px; font-size: 9.5px; color: #8A8A92; }

/* ── logging section ─────────────────────────────────────────────────────── */
.wt-log-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr) 250px; gap: 30px; align-items: start; }
.wt-two-phones { display: flex; gap: 18px; justify-content: center; }
.wt-two-phones .ntp { width: 290px; }
.wt-two-phones .ntp:last-child { margin-top: 26px; }

.wt-siri { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 18px; text-align: center; }
.wt-siri-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; }
.wt-siri b { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; line-height: 1.35; }
.wt-siri p { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-mute); }

/* ── exercises section ───────────────────────────────────────────────────── */
.wt-ex-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.wt-picker { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.wt-picker h3 { font-size: 16px; font-weight: 600; }
.wt-pick-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.wt-pick-row:last-of-type { border-bottom: 0; }
.wt-pick-num { width: 24px; height: 24px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; flex: none; }
.wt-pick-row em { font-style: normal; display: block; font-size: 10.5px; color: var(--ink-mute); }
.wt-pick-row b { font-family: var(--display); font-size: 13px; font-weight: 600; }
.wt-pick-row img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; margin-left: auto; }
.wt-pick-cta { display: block; text-align: center; background: var(--ink); color: #fff; border-radius: 10px; padding: 11px 0; font-size: 13px; font-weight: 600; margin-top: 12px; }

.wtp-exrow { display: flex; align-items: center; gap: 9px; background: #141417; border-radius: 10px; padding: 7px; margin-top: 7px; }
.wtp-exrow img { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; flex: none; }
.wtp-exrow b { display: block; font-family: var(--display); font-size: 11.5px; font-weight: 600; }
.wtp-exrow span span { display: block; font-size: 9px; color: #7E7E86; }

/* ── progress section ────────────────────────────────────────────────────── */
.wt-prog-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.wt-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.wt-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.wt-panel-head h3 { font-size: 16px; font-weight: 600; }
.wt-badge {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--display); font-size: 10.5px;
  font-weight: 600; color: var(--ink); background: var(--paper-2); border-radius: 999px; padding: 4px 10px;
}
.wt-ins-row { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.wt-bodies { display: flex; gap: 10px; justify-content: center; align-items: flex-end; }
.wt-bodies svg { width: 44%; max-height: 230px; height: auto; }
.wt-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 11px; color: var(--ink-soft); }
.wt-legend div { display: flex; align-items: center; gap: 8px; }
.wt-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.wt-lock { display: flex; gap: 10px; align-items: flex-start; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; font-size: 12px; color: var(--ink-mute); }
.wt-lock b { display: block; font-family: var(--display); font-size: 13px; color: var(--ink); font-weight: 600; }
.wt-pr { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; color: #fff; background: var(--sage-deep); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* ── coach section ───────────────────────────────────────────────────────── */
.wt-coach-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr) 300px; gap: 30px; align-items: stretch; }
.wt-coach-photo { border-radius: var(--r-md); overflow: hidden; min-height: 300px; }
.wt-coach-photo img { width: 100%; height: 100%; object-fit: cover; }
.wt-coach-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.wt-coach-card ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.wt-coach-card li { display: flex; gap: 9px; font-size: 13px; color: var(--ink-soft); }
.wt-coach-card svg { flex: none; margin-top: 3px; color: var(--sage-deep); }

/* ── closing ─────────────────────────────────────────────────────────────── */
.wt-end-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 34px; align-items: center; }
.wt-end-row .nt-stores { margin: 0; }

@media (max-width: 1150px) {
  .wt-log-grid, .wt-ex-grid, .wt-prog-grid, .wt-coach-grid { grid-template-columns: 1fr 1fr; }
  .wt-log-grid > :last-child, .wt-ex-grid > :last-child, .wt-coach-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .wt-hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .wt-hero-photo { display: none; }
  .wt-hero .ntp { position: relative; left: 0; margin: 28px auto 0; }
  .wt-hero-note, .wt-vert { display: none; }
  .wt-log-grid, .wt-ex-grid, .wt-prog-grid, .wt-coach-grid, .wt-end-row { grid-template-columns: 1fr; }
  .wt-two-phones { flex-wrap: wrap; }
  .wt-two-phones .ntp:last-child { margin-top: 0; }
}

/* Keep the page to the drawn height: the exercise and progress bands are tighter. */
#exercises .ntp { width: 300px; }
#exercises .wtp-exrow img { width: 34px; height: 34px; }
.wt-picker { padding: 16px; }
.wt-pick-row { padding: 9px 0; }
.wt-panel { padding: 16px; }
.wt-ins-row { padding: 8px 11px; font-size: 12.5px; margin-top: 7px; }
.wt-siri { padding: 20px 16px; }

/* Side panels keep their own height; nothing is stretched to fill a row. */
.wt-log-grid, .wt-ex-grid, .wt-prog-grid { align-items: start; }

/* ── phones and small tablets ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wt-hero-photo { position: relative; display: block; width: 100%; height: 240px; }
  .wt-hero-photo::after { display: none; }
  .wt-hero-grid { grid-template-columns: 1fr; padding: 26px 0 32px; }
  .wt-hero h1 { white-space: normal; font-size: clamp(30px, 8.4vw, 44px); }
  .wt-pills { flex-wrap: wrap; gap: 14px 18px; }
  .wt-pill { width: 70px; }
  .wt-hero .ntp { position: relative; left: 0; width: min(320px, 100%); margin: 24px auto 0; }
  .wt-two-phones { flex-wrap: wrap; gap: 16px; }
  .wt-two-phones .ntp { width: min(300px, 100%); }
  .wt-two-phones .ntp:last-child { margin-top: 0; }
  #exercises .ntp { width: min(320px, 100%); margin-inline: auto; }
  .wt-coach-photo { min-height: 220px; }
  .wt-end-row { grid-template-columns: 1fr; gap: 20px; }
  .wt-panel, .wt-picker, .wt-siri { height: auto; }
}

@media (max-width: 560px) {
  .wt-bodies svg { max-height: 200px; }
  .wt-legend { grid-template-columns: 1fr 1fr; }
}
