/* Landing, sign-in and training library. */
.landing, .workspace {
  --surface: #fdfdf9;
  --line: #d6d6cd;
  --muted: #575952;
  --radius: 12px;
}
.landing .header, .workspace .header { min-height: 84px; }
.landing .header nav { gap: clamp(16px, 2.5vw, 36px); }
.landing .login, .workspace .login { border-color: var(--line); }
.landing .eyebrow, .workspace .eyebrow { margin-bottom: 18px; }
.landing .button, .workspace .button { font-weight: 600; min-height: 50px; }
.landing .text-link, .workspace .text-link { font-size: 15px; }
.landing .button:focus-visible, .workspace .next-workout :focus-visible, .landing .purchase :focus-visible {
  outline-color: currentColor;
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink);
}
.landing .section { padding-block: clamp(48px, 7vw, 88px); }
.landing .section-heading { gap: clamp(16px, 5vw, 72px); }
.landing .section-heading > p { font-size: 16px; }
.landing .hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 0;
  padding-block: 0;
  margin-top: clamp(20px, 4vw, 50px);
  background: #262725;
  color: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
}
.landing .hero-copy { padding: clamp(28px, 5vw, 70px); }
.landing .hero h1 {
  font-size: clamp(41px, 5.2vw, 76px);
  line-height: 1.03;
  margin-bottom: 22px;
  max-width: 11em;
}
.landing .hero h1 em { display: block; }
.landing .hero .lead { margin-bottom: 22px; line-height: 1.5; color: #e5e5df; }
.landing .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  gap: 0;
  margin-block: 20px 30px;
  border-block: 1px solid var(--line);
  line-height: 1.3;
}
.landing .hero-facts div { padding: 18px 16px; }
.landing .hero-facts div + div { border-left: 1px solid var(--line); }
.landing .hero-facts dt { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.landing .hero-facts dd { margin: 0; font-size: 16px; font-weight: 600; }
.landing .hero-action { flex-wrap: wrap; justify-content: flex-start; gap: 10px 22px; }
.landing .hero-action .button { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.landing .hero-action .button:hover { background: var(--white); }
.landing .hero-action a:focus-visible { outline-color: var(--paper); }
.landing .hero-action > .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--paper); }
.landing .hero-action > .text-link span { font-size: 11px; }
.hero-conditions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
  margin: 14px 0 0;
  color: #deded7;
  font-size: 14px;
}
.landing .hero-portrait { height: 100%; min-height: 390px; margin: 0; background: #eee; }
.landing .hero-portrait img { object-position: center 39%; }
.landing .hero-portrait figcaption {
  left: 14px;
  right: 14px;
  bottom: 14px;
  gap: 4px 14px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  padding: 11px 15px;
}
.landing .hero-portrait figcaption span { color: var(--muted); }

.landing .demo { background: var(--mist); }
.demo-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(26px, 5vw, 74px); }
.demo-copy > p:not(.eyebrow) { max-width: 350px; color: var(--muted); margin: 18px 0 0; }
.demo-copy .fine { font-size: 14px; }
.landing .demo-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: clamp(12px, 2vw, 24px); }
.landing .demo video { border-radius: 8px 8px 0 0; }
.landing .demo-vertical video { max-height: 340px; }
.landing .demo-card { background: var(--surface); border-radius: 8px; }
.landing .demo-caption { align-items: baseline; margin: 0; gap: 10px; padding: 12px; }
.landing .demo-caption h3 { font-size: 15px; }
.landing .demo-caption span { white-space: nowrap; }
.curriculum { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.curriculum h3 { font: normal clamp(24px, 2.6vw, 32px)/1.15 Georgia, serif; margin-bottom: 13px; }
.curriculum p { font-size: 16px; max-width: 450px; }
.curriculum-plan, .curriculum-side article { padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.curriculum-plan { background: var(--graphite); color: var(--paper); }
.curriculum-plan p, .curriculum-plan li span { color: #e0e1d9; }
.curriculum-plan ol { padding: 0; list-style: none; margin: 28px 0 0; }
.curriculum-plan li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: 15px; padding: 12px 0; border-top: 1px solid #777972; }
.curriculum-side { display: grid; gap: 18px; }
.curriculum-side article { background: var(--mist); }
.curriculum-side p { color: var(--muted); margin-bottom: 12px; }
.landing .author-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(26px, 7vw, 120px); }
.landing .author figure { height: clamp(260px, 29vw, 390px); border-radius: var(--radius); overflow: hidden; }
.landing .author figure img { display: block; object-fit: cover; object-position: center 35%; }
.landing .author h2 { font-size: clamp(36px, 5vw, 64px); }
.landing .author-role { margin: 14px 0; font-weight: 600; }
.landing .credentials { margin-top: 25px; border-block: 1px solid #c6c7c0; }
.landing .document-gallery { padding-bottom: 14px; margin-top: 0; padding-top: 0; border-top: 0; }
.landing .before .section-heading { margin-bottom: 26px; }
.landing .purchase-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: clamp(24px, 6vw, 94px); }
.landing .price-card { background: var(--surface); border-radius: var(--radius); color: var(--ink); }
.landing .purchase .price-card .big-price { color: var(--ink); font-size: clamp(50px, 7vw, 76px); margin: 8px 0 10px; }
.landing .price-card .eyebrow, .landing .purchase .price-card .sale-status { color: var(--muted); }
.landing .purchase .price-card .sale-status { font-size: 14px; border: 0; padding: 0; margin: 12px 0 0; }
.landing .price-card .sale-status:empty, .landing #checkout-result:empty { display: none; }
.landing .launch-terms { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
.landing .price-card .button { color: var(--white); background: var(--ink); border-color: var(--ink); }
.landing .price-card .button:hover { background: #444541; }
.landing #checkout-notice { margin: 10px 0 0; text-align: center; }
.landing #checkout input[type="email"] { font-size: 16px; }

.account-page .account-layout { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px clamp(28px, 6vw, 90px); padding-block: clamp(32px, 7vw, 92px); }
.account-page .account-intro h1 { font-size: clamp(36px, 5.6vw, 66px); margin-bottom: 16px; }
.account-page .account-intro p { margin-bottom: 0; color: var(--muted); }
.account-page .account-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.account-page .account-card h2 { margin-bottom: 20px; }
.account-page .account-card .form-result:empty { display: none; }
.account-page .code-actions { display: flex; flex-wrap: wrap; gap: 0 18px; }
.account-page #code-recipient { overflow-wrap: anywhere; margin-bottom: 12px; }
.account-page #purchase-link { display: inline-block; margin-top: 14px; }
.access-help { grid-column: 2; display: flex; flex-wrap: wrap; column-gap: 18px; align-items: baseline; color: var(--muted); font-size: 15px; }
.access-help p { flex-basis: 100%; margin-bottom: 5px; }
.access-help a { padding-block: 8px; }

.library-main .library-title { padding-top: clamp(24px, 4vw, 56px); }
.library-main .library-title h1 { font-size: clamp(36px, 5.5vw, 64px); margin-bottom: 24px; }
.next-workout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .5fr);
  align-items: end;
  gap: 24px;
  padding: clamp(22px, 4.5vw, 44px);
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--paper);
}
.next-copy .eyebrow, .next-copy > p, .workout-progress { color: #e0e1d9; }
.next-copy h2 { font-size: clamp(28px, 4.5vw, 52px); margin-bottom: 9px; }
.next-copy > p { margin-bottom: 16px; font-size: 15px; }
.next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.next-actions .button { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.next-actions .button:hover { background: var(--mist); }
.workout-progress { border-top: 1px solid #797b74; padding-top: 12px; font-size: 14px; min-width: 0; }
.workout-progress p { margin: 4px 0 6px; font-size: 19px; color: var(--white); }
.workout-progress progress { display: block; width: 100%; height: 10px; accent-color: var(--paper); }
.library-main .library-tabs { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 0 clamp(10px, 4vw, 36px); overflow: visible; }
.library-main .library-tabs button { min-height: 46px; padding-block: 8px; }
.library-main .library-panel { padding-top: 16px; }
.library-main .library-week-title { font-size: 28px; margin: 8px 0 14px; }
.workout-week + .workout-week { margin-top: 26px; }
.library-main .library-cards { gap: 12px; }
.library-main .lesson-card { gap: 0; border-color: var(--line); border-radius: 8px; padding: 0; background: var(--surface); overflow: hidden; }
.lesson-card > img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--mist); }
.lesson-content { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 16px; }
.lesson-content > h3 { font-weight: 600; margin-bottom: 5px; }
.lesson-content > p { margin-bottom: 10px; }
.lesson-content > .button { align-self: start; width: auto; min-height: 44px; }
.lesson-content > .lesson-pending { margin: auto 0 0; padding-top: 6px; }
.week-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 18px; }
.week-links a { padding: 9px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.week-links a:hover { background: var(--mist); }
.workout-week { scroll-margin-top: 18px; }
.empty-library { background: var(--mist); border-radius: 8px; padding: 20px; color: var(--muted); font-size: 16px; }
.workspace .video-dialog { max-height: 92dvh; }
.workspace .video-dialog h2 { font-size: clamp(24px, 4vw, 38px); }
.workspace .video-dialog video, .workspace .video-dialog iframe { max-height: min(60dvh, 540px); }
.video-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; }
#video-status:empty { display: none; }
#video-fallbacks:not(:empty) { margin-top: 16px; }

@media (max-width: 800px) {
  .demo-layout { grid-template-columns: 1fr; }
  .landing .demo-grid { max-width: 660px; }
}
@media (max-width: 700px) {
  .landing .header, .workspace .header { min-height: 68px; gap: 10px; }
  .landing .hero, .landing .author-grid, .landing .purchase-grid, .curriculum, .account-page .account-layout, .next-workout { grid-template-columns: 1fr; }
  .landing .hero-copy { padding: 24px 20px; }
  .landing .hero h1 { font-size: clamp(35px, 10vw, 48px); margin-bottom: 14px; }
  .landing .hero .lead { font-size: 16px; margin-bottom: 14px; }
  .landing .hero-facts { margin-block: 16px 20px; }
  .landing .hero-facts div { padding: 9px 8px; }
  .landing .hero-facts dt { font-size: 12px; }
  .landing .hero-facts dd { font-size: 13px; }
  .landing .hero-portrait { height: clamp(220px, 58vw, 360px); min-height: 0; }
  .landing .hero-portrait img { object-position: center 33%; }
  .landing .hero-portrait figcaption { inset: auto 9px 9px; padding: 7px 10px; }
  .landing .hero-action .button { flex: 1 0 100%; }
  .landing .hero-action .text-link { white-space: nowrap; }
  .landing .demo-copy > p:not(.eyebrow) { margin-top: 12px; font-size: 16px; }
  .landing .demo-copy > p.fine { font-size: 14px; }
  .landing .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .landing .demo-vertical { margin: 6px auto 0; width: min(70%, 225px); }
  .landing .demo-caption { padding: 8px 10px; }
  .landing .author figure { max-width: 440px; }
  .access-help { grid-column: 1; }
  .library-main .library-tabs button { font-size: 14px; }
  .library-main .library-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-content { padding: 10px; }
  .lesson-content h3 { font-size: 16px; line-height: 1.3; }
  .library-main .lesson-content > .button { font-size: 13px; padding-inline: 9px; }
}
@media (max-width: 360px) {
  .landing .brand, .workspace .brand { letter-spacing: .04em; }
  .landing .header .login, .workspace .header .login { padding-inline: 8px; }
  .library-main .library-tabs button { font-size: 13px; }
}
