:root {
  --color-bg: #F9F0E1;
  --color-surface: #FFFFFF;
  --color-text: #1D1D1D;
  --color-text-muted: #4A4A4A;
  --color-accent: #053E1D;
  --color-accent-hover: #031f0f;
  --color-accent-light: #E6FFDA;
  --green-light: #E6FFDA;
  --green-dark: #053E1D;
  --text-light: #4A4A4A;
  --card-brand: #053E1D;
  --card-tint: rgba(5, 62, 29, 0.04);
  --card-shadow: 0 18px 32px rgba(5, 62, 29, 0.08);
  --card-border: #D8EFD0;
  --card-heading-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23053E1D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --muted: #4A4A4A;
  --accent: var(--color-accent);
  --accent-dark: #031f0f;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.85rem;
  --spacing-md: 1.35rem;
  --spacing-lg: 2.1rem;
  background: linear-gradient(180deg, var(--card-tint), var(--color-surface));
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--card-brand);
  padding: calc(var(--spacing-lg) * 0.85);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
  --color-card: #FFFFFF;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chrome-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
  z-index: 60;
}

.chrome-inner {
  max-width: min(var(--layout-max-width), 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--spacing-md);
  align-items: center;
}

.chrome-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--color-text);
}

.chrome-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.chrome-logo {
  height: clamp(2.5rem, 4vw, 3rem);
  width: auto;
  display: block;
}

.chrome-ctas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1vw, 0.85rem);
}

.chrome-cta-pair {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.chrome-ctas-mobile {
  display: none;
}

.chrome-ctas-desktop {
  display: flex;
  gap: clamp(0.5rem, 1vw, 0.85rem);
}

.chrome-button {
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.35rem;
  font-size: 0.95rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  background: #053E1D;
  color: #F9F0E1;
  box-shadow: 0 8px 24px rgba(5, 62, 29, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.chrome-button:hover {
  transform: translateY(-1px);
  background: #031f0f;
  box-shadow: 0 14px 32px rgba(5, 62, 29, 0.28);
}

.chrome-button.is-disabled {
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
  background: rgba(5, 62, 29, 0.4);
  color: rgba(249, 240, 225, 0.85);
  box-shadow: none;
}

.easy-version-btn,
.easier-btn {
  cursor: pointer;
  text-decoration: underline;
}

.easy-version-btn:hover,
.easier-btn:hover {
  opacity: 0.8;
}

.fade-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-transition.visible {
  opacity: 1;
}

.exercise-icon-wrapper {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exercise-icon {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  display: block;
}

.machine-icon {
  width: 48px;
  height: 48px;
  color: transparent;
}

.machine-icon-wrap {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.exercise-emoji {
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planner-exercise-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.transition-message {
  text-align: center;
  margin: 1rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.chrome-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.chrome-brand-text strong {
  font-size: 1rem;
  color: var(--color-text);
}

.chrome-brand-text span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.chrome-menu {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--spacing-md);
  min-width: 0;
  position: relative;
}

.chrome-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 1vw, 0.75rem);
  row-gap: 0.35rem;
  min-width: 0;
}


.chrome-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem clamp(0.6rem, 1.4vw, 0.85rem);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}


.chrome-link:hover {
  color: var(--color-primary-action);
  background: var(--color-soft-bg);
}


.chrome-link.is-active {
  background: var(--color-primary-action);
  color: var(--color-card-bg);
  box-shadow: 0 8px 20px rgba(5, 62, 29, 0.2);
}


.chrome-button.ghost {
  background: transparent;
  color: var(--color-primary-action);
  border: 1px solid rgba(5, 62, 29, 0.3);
  box-shadow: none;
}


.chrome-button.ghost:hover {
  background: var(--color-soft-bg);
  border-color: var(--color-primary-action);
}

.chrome-burger {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  border: none;
  background: transparent;
  padding: 0.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  grid-column: 3;
  justify-self: end;
  align-self: center;
}

.chrome-burger span {
  width: 1.5rem;
  height: 0.125rem;
  background: var(--color-text);
  border-radius: 999px;
}

.chrome-footer {
  margin-top: var(--space-xl);
  background: #053E1D;
  color: #F9F0E1;
  border-top: 1px solid rgba(0, 255, 79, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chrome-footer-inner {
  max-width: var(--layout-max-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 1.75rem) clamp(2rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg-xl);
}

.chrome-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  max-width: min(20rem, 100%);
}

.chrome-footer-logo {
  width: clamp(5rem, 18vw, 7.5rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.chrome-footer-description {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(249, 240, 225, 0.85);
  line-height: 1.5;
}

.chrome-footer-support,
.chrome-footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #E6FFDA;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.35rem;
  word-break: break-all;
}

.chrome-footer-support:hover,
.chrome-footer-email:hover {
  color: #00FF4F;
}

.chrome-footer-columns-only {
  width: 100%;
}

.chrome-footer-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--spacing-md);
  min-width: min(20rem, 100%);
}

.chrome-footer-heading {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: rgba(249, 240, 225, 0.65);
  margin-bottom: 10px;
}

.chrome-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chrome-footer-link {
  color: rgba(249, 240, 225, 0.82);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.chrome-footer-link:hover {
  color: #00FF4F;
  transform: translateX(2px);
}

.chrome-footer-link-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: rgba(249, 240, 225, 0.6);
  line-height: 1.4;
}

.chrome-footer-bottom {
  border-top: 1px solid rgba(249, 240, 225, 0.1);
  padding-top: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(249, 240, 225, 0.75);
}

.chrome-footer-meta-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

@media (max-width: 60rem) {
  .chrome-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--spacing-md);
  }

  .chrome-menu {
    grid-column: 1 / -1;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1rem, 4vw, 1.5rem);
    background: var(--color-surface);
    border-radius: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 35px 60px rgba(15, 23, 42, 0.15);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .chrome-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .chrome-links {
    flex-direction: column;
    width: 100%;
  }

  .chrome-ctas-desktop {
    display: none;
  }

  .chrome-ctas-mobile {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }

  .chrome-cta-pair {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-sm);
  }

  .chrome-button,
  .chrome-button.ghost {
    width: 100%;
  }

  .chrome-burger {
    display: inline-flex;
    grid-column: 2;
  }
}

@media (max-width: 40rem) {
  .chrome-footer-columns {
    min-width: 0;
  }

  .chrome-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

.landing-page {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) calc(clamp(2rem, 5vw, 4rem) + var(--safe-area-bottom));
  min-height: 100vh;
}

.legal-page .landing-section {
  gap: var(--spacing-sm);
}

.legal-page .landing-section h3 {
  margin-bottom: var(--spacing-xs);
}

.legal-list {
  margin: var(--spacing-sm) 0 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-list li + li {
  margin-top: 0.35rem;
}

.landing-container {
  max-width: min(65rem, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-xl) + 0.75rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, clamp(16rem, 38vw, 28rem));
  gap: calc(var(--spacing-lg) + 0.35rem);
  align-items: stretch;
  background: #053E1D;
  border-radius: 1.25rem;
  border: none;
  padding: calc(var(--spacing-xl) + 0.5rem);
  box-shadow: 0 24px 60px rgba(5, 62, 29, 0.2);
  color: #F9F0E1;
}

@media (max-width: 60rem) {
  .landing-hero {
    grid-template-columns: 1fr;
  }
  .landing-hero > [aria-hidden="true"] {
    display: none;
  }
}

.landing-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.landing-hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
.landing-page h1,
.landing-section h1,
.landing-card h1,
.landing-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--spacing-sm);
  color: var(--color-text);
}

.landing-hero h1 {
  color: #F9F0E1;
}

.landing-page h2,
.landing-section h2,
.landing-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--spacing-sm);
  color: #053E1D;
}

.landing-hero h2 {
  color: #F9F0E1;
}

.landing-page h3,
.landing-section h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--spacing-sm);
  color: #053E1D;
}

.landing-card:not(.landing-card-dark) h2,
.landing-card:not(.landing-card-dark) h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 var(--spacing-sm);
  color: #053E1D;
  position: relative;
  padding-left: 1.85rem;
}

.landing-card:not(.landing-card-dark) h2::before,
.landing-card:not(.landing-card-dark) h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  background-image: var(--card-heading-icon);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.landing-card.landing-card-dark h2,
.landing-card.landing-card-dark h3,
.landing-section-dark .landing-card h2,
.landing-section-dark .landing-card h3 {
  padding-left: 0;
}

.landing-card.landing-card-dark h2::before,
.landing-card.landing-card-dark h3::before,
.landing-section-dark .landing-card h2::before,
.landing-section-dark .landing-card h3::before {
  display: none;
}

.landing-page p,
.landing-hero p,
.landing-section p,
.landing-card p,
.supportive-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 var(--spacing-sm);
}

.landing-card:not(.landing-card-dark) p:not(.landing-subtext):not(.supportive-text) {
  color: #4A4A4A;
  font-weight: 400;
}

.landing-section p:last-child,
.landing-card p:last-child {
  margin-bottom: 0;
}

.supportive-text {
  color: #4A4A4A;
  font-size: 0.95rem;
  font-weight: 400;
}

.landing-subtext {
  color: #1D1D1D;
  font-size: 1rem;
  font-weight: 500;
}

.landing-subtext.lead {
  font-size: 1.125rem;
}

.landing-text {
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 var(--spacing-sm);
}

.landing-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.landing-section {
  background: var(--color-surface);
  border-radius: 1.25rem;
  border: 1px solid rgba(5, 62, 29, 0.1);
  padding: calc(var(--spacing-lg) + 0.5rem);
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-md) + 0.35rem);
  color: var(--color-text);
  box-shadow: 0 12px 32px rgba(5, 62, 29, 0.06);
}

.landing-section[hidden] {
  display: none;
}

.landing-section.landing-section-dark {
  background: #053E1D;
  border-color: rgba(0, 255, 79, 0.2);
  color: #F9F0E1;
  box-shadow: 0 24px 60px rgba(5, 62, 29, 0.25);
}

.landing-section-dark .landing-subtext,
.landing-section-dark h2,
.landing-section-dark p,
.landing-section-dark li,
.landing-section-dark .landing-text {
  color: #F9F0E1;
}

.landing-section-dark .landing-list-check li::before {
  color: #00FF4F;
}

.landing-container > .landing-section:nth-of-type(even):not(.landing-cta):not(.landing-section-dark) {
  background: var(--color-bg);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: var(--spacing-md);
}

.compact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--spacing-md);
}

@media (min-width: 48rem) {
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 80rem) {
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.compact-card {
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--card-brand);
  background: linear-gradient(180deg, var(--card-tint), var(--color-surface));
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.compact-card[data-expanded="true"] {
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.compact-card-collapsed {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
}

.compact-card-summary {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
  min-width: 0;
}

.compact-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(20, 83, 45, 0.1);
  border: 1px solid rgba(20, 83, 45, 0.15);
  color: var(--card-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.compact-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.compact-card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin: 0;
}

.compact-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1d17;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  position: relative;
  padding-left: 1.5rem;
}

.compact-card-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1rem;
  height: 1rem;
  background-image: var(--card-heading-icon);
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.compact-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 500;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.landing-button.is-disabled,
.checkout-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

.landing-button-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.65rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  background: rgba(154, 230, 180, 0.16);
  border: 1px solid rgba(154, 230, 180, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent, #9ae6b4);
  animation: landing-pill-flash 1.4s ease-in-out infinite alternate;
}

.checkout-btn.is-disabled .landing-button-pill {
  margin-left: 0.5rem;
}

@keyframes landing-pill-flash {
  from {
    opacity: 0.55;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(-1px);
  }
}

.compact-card-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.compact-card-meta {
  font-size: 0.8rem;
  color: #053E1D;
  background: rgba(5, 62, 29, 0.08);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  border: 1px solid rgba(20, 83, 45, 0.14);
  font-weight: 600;
  max-width: 18ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-aside {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-card-thumb {
  width: 3.5rem;
  height: 2.5rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: #111827;
}

.compact-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compact-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(20, 83, 45, 0.12);
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 600;
}

.compact-card-detail-hint {
  font-size: 0.75rem;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.compact-card-chevron {
  width: 1.1rem;
  height: 1.1rem;
  border-right: 2px solid #4b5563;
  border-bottom: 2px solid #4b5563;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.compact-card[data-expanded="true"] .compact-card-chevron {
  transform: rotate(135deg);
}

.compact-card-expanded {
  padding: 0 1rem 0.85rem;
  overflow: hidden;
  height: 0;
  transition: height 0.25s ease;
}

.compact-card-expanded-inner {
  border-top: 1px solid rgba(20, 83, 45, 0.08);
  padding-top: 0.75rem;
}

.compact-card-expanded[hidden] {
  padding-bottom: 0;
}

.sticky-reassurance {
  position: sticky;
  top: clamp(3rem, 5vw, 4rem);
  z-index: 50;
  background: rgba(76, 175, 80, 0.12);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: var(--color-text);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.landing-grid-two {
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
}

.landing-grid-span {
  grid-column: 1 / -1;
}


.landing-card {
  background: linear-gradient(180deg, var(--card-tint), var(--color-surface));
  border-radius: 1rem;
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--card-brand);
  padding: calc(var(--spacing-lg) * 0.85);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
}

.landing-card.landing-card-dark,
.landing-section-dark .landing-card {
  background: rgba(6, 16, 12, 0.9) !important;
  border-color: rgba(167, 215, 162, 0.55) !important;
  border-top: 1px solid rgba(167, 215, 162, 0.55) !important;
  color: #f1fff8 !important;
  padding: calc(var(--spacing-lg) + 0.2rem) !important;
  box-shadow: 0 35px 70px rgba(5, 12, 10, 0.65) !important;
}

.landing-card-philosophy {
  background: rgba(6, 16, 12, 0.95) !important;
  border-color: rgba(134, 239, 172, 0.4) !important;
  color: #f1fff8 !important;
}

.landing-card-dark .landing-subtext,
.landing-card-dark h3,
.landing-card-dark p,
.landing-card-dark li,
.landing-card-dark .supportive-text,
.landing-section-dark .landing-card .landing-subtext,
.landing-section-dark .landing-card h3,
.landing-section-dark .landing-card p,
.landing-section-dark .landing-card li,
.landing-section-dark .landing-card .supportive-text {
  color: #f1fff8;
}

.landing-card-dark .landing-card-image,
.landing-section-dark .landing-card .landing-card-image {
  background: rgba(134, 239, 172, 0.15);
  color: #86efac;
}

.landing-card-dark .landing-pill,
.landing-card-dark .landing-chip,
.landing-section-dark .landing-card .landing-pill,
.landing-section-dark .landing-card .landing-chip {
  background: rgba(134, 239, 172, 0.12);
  color: #ecfccb;
  border-color: transparent;
}

.landing-card input,
.landing-card textarea,
.landing-card select {
  border: 1px solid var(--color-accent-light);
  border-radius: 10px;
  padding: 10px;
  margin-top: var(--space-xs);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.landing-card textarea {
  resize: vertical;
}

.landing-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 var(--spacing-sm);
  color: var(--color-text);
}

.landing-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}


.landing-stack {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.landing-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  width: 100%;
}

.landing-gymxiety-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: var(--spacing-lg);
  align-items: center;
}

.landing-gymxiety-list {
  margin-top: var(--spacing-sm);
}

.landing-toggle-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  align-items: flex-start;
}


.trial-plan-toggle {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.plan-toggle {
  border: 1px solid rgba(210, 255, 234, 0.4);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}

.plan-toggle strong {
  font-size: 1.05rem;
}

.plan-toggle span {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-toggle.is-active {
  border-color: var(--accent);
  background: rgba(154, 230, 180, 0.12);
}
.landing-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 2rem;
  cursor: pointer;
}

.landing-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.landing-toggle-track {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--hover);
  border: 1px solid var(--color-accent-light);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.landing-toggle-thumb {
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.landing-toggle input:checked + .landing-toggle-track {
  background: rgba(34, 197, 94, 0.16);
  border-color: var(--color-accent);
}

.landing-toggle input:checked + .landing-toggle-track + .landing-toggle-thumb {
  transform: translateX(1.5rem);
}

.profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-weight: 500;
}

.profile-toggle input {
  width: 1.125rem;
  height: 1.125rem;
}

.supportive-link:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}


.landing-input,
.landing-select,
.landing-textarea {
  width: 100%;
  border: 1px solid var(--color-accent-light);
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}

.landing-select[multiple] {
  min-height: 140px;
}

.landing-error {
  border-radius: 12px;
  border: 1px solid #F87171;
  background: #FEE2E2;
  color: #B91C1C;
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.95rem;
}

.landing-loading {
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-md);
}

.landing-spinner {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 0.25rem solid var(--color-accent-light);
  border-top-color: var(--color-accent);
  animation: landing-spin 0.9s linear infinite;
}

.landing-empty-card {
  text-align: center;
}

.landing-empty-card .landing-actions {
  justify-content: center;
}

.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--card-brand);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.03), var(--color-surface));
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.equipment-item:hover,
.equipment-item:focus-within {
  background: rgba(20, 83, 45, 0.08);
  border-color: var(--card-brand);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.08);
}

.equipment-item input {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ── Fixed-height muscle selection cards ───────────────────────────────────── */
.muscle-card {
  position: relative;
  height: 72px;
  overflow: hidden;
  align-items: flex-start;
  padding-top: 0.85rem;
  padding-bottom: 0;
  flex-shrink: 0;
}

.muscle-card-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
}

/* Absolute-positioned pairing footer — never shifts card height */
.muscle-pairing-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  padding: 0 0.85rem;
  background: #F9F0E1;
  color: #1D1D1D;
  font-size: 0.7rem;
  font-family: 'Roboto', sans-serif;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(5, 62, 29, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.goal-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.goal-chip {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  background: linear-gradient(180deg, rgba(20, 83, 45, 0.03), var(--color-surface));
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
  min-width: 8rem;
}

.goal-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.goal-chip:hover,
.goal-chip:focus-within {
  background: rgba(20, 83, 45, 0.08);
  border-color: var(--card-brand);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.08);
}

.goal-chip:has(:checked) {
  background: rgba(20, 83, 45, 0.12);
  border-color: var(--card-brand);
  border-top: 3px solid var(--card-brand);
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.15);
}

.goal-chip span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.goal-chip small {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* ── Confidence pill row ────────────────────────────────────────────────────── */
.confidence-pill-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 1.4rem;
  border-radius: 2rem;
  border: 1.5px solid #1D1D1D;
  background: #F9F0E1;
  color: #1D1D1D;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.confidence-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.confidence-pill:has(:checked) {
  background: #053E1D;
  color: #ffffff;
  border-color: #053E1D;
}

.confidence-pill:hover:not(:has(:checked)) {
  background: #E6FFDA;
  border-color: #053E1D;
}

.landing-transition-card {
  text-align: center;
}

.execution-ready-card {
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.card-fade-out {
  opacity: 0 !important;
  transform: translateY(6px);
}

.card-pop-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.card-pop-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-transition {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-transition.visible {
  opacity: 1;
}

.page-fade {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-fade.visible {
  opacity: 1;
}

.exercise-card {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.exercise-card.visible {
  opacity: 1;
}

.exercise-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.execution-section {
  width: 100%;
}

.execution-flow-card {
  padding-top: calc(var(--spacing-lg, 32px) + var(--spacing-sm, 8px));
}

.execution-screen {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 24px);
}

.execution-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg, 32px);
}

.execution-header-icon {
  width: clamp(3.5rem, 8vw, 4.25rem);
  height: clamp(3.5rem, 8vw, 4.25rem);
  border-radius: 1.1rem;
  background: #F3F4F6;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.execution-header-icon img {
  width: 70%;
  height: 70%;
}

.execution-header-text h2 {
  margin: 4px 0 0;
  font-weight: 600;
  line-height: 1.2;
}

.execution-header-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.execution-header-muscle {
  margin: 4px 0 0;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.execution-prescription-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: var(--spacing-md, 24px);
  background: var(--color-surface);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

.execution-prescription-values {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs, 6px);
}

.execution-prescription-main {
  font-size: clamp(1.35rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  color: var(--color-text);
}

.execution-prescription-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
}

.execution-instructions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 12px);
}

.execution-pill-list {
  margin-top: var(--spacing-xs, 8px);
}

.execution-etiquette {
  border-left: 4px solid rgba(16, 185, 129, 0.65);
  padding: var(--spacing-sm, 12px) var(--spacing-md, 20px);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 16px;
}

.execution-rest-card {
  text-align: center;
  padding: var(--spacing-lg, 32px) var(--spacing-md, 20px);
  border-radius: 26px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.16), rgba(16, 185, 129, 0.08));
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.18);
  animation: restPulse 3s ease-in-out infinite;
}

.execution-rest-value {
  margin: 0;
  font-size: clamp(1.65rem, 3vw + 1rem, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.execution-progress-indicator {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.execution-nav-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md, 20px);
  margin-top: var(--spacing-lg, 36px);
}

.execution-nav-copy {
  text-align: center;
  color: var(--color-text-muted);
}

.execution-nav-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm, 10px);
}

.execution-nav-actions .landing-button {
  width: 100%;
}

.execution-easier-action {
  text-align: center;
}

.execution-easier-action .easy-version-btn {
  width: 100%;
}

.execution-feedback {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.execution-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}

.execution-feedback-btn {
  flex: 1 1 7rem;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: transparent;
  color: var(--color-text);
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.execution-feedback-btn[data-intent="easy"] {
  border-color: rgba(34, 197, 94, 0.4);
}

.execution-feedback-btn[data-intent="hard"] {
  border-color: rgba(248, 113, 113, 0.4);
}

.execution-feedback-btn.is-selected {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 10px 24px rgba(76, 175, 80, 0.2);
}

.execution-feedback-status {
  margin-top: var(--spacing-sm);
  color: var(--color-text-muted);
}

.execution-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.execution-summary-item {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-accent-light);
  border-radius: 12px;
  background: var(--color-bg);
}

.execution-summary-item p {
  margin-bottom: var(--space-xs);
}

.execution-complete-actions .landing-button {
  width: 100%;
}

.completion-save-feedback {
  text-align: center;
  margin-top: var(--spacing-sm);
}

.history-header {
  gap: var(--spacing-sm);
}

.history-header-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
}

.history-header-copy {
  flex: 1 1 200px;
  min-width: 0;
}

.history-library-btn {
  flex: 0 0 auto;
}

.history-header h1 {
  margin-top: var(--spacing-xs);
}

@media (max-width: 30rem) {
  .history-library-btn {
    width: 100%;
    text-align: center;
  }
}

.history-list-section {
  gap: var(--spacing-md);
}

.history-list {
  width: 100%;
}

.history-card {
  position: relative;
  overflow: hidden;
}

.history-card .compact-card-detail-hint {
  display: none;
}

.history-card .compact-card-collapsed {
  padding: 1rem 1.25rem;
}

.history-card .compact-card-icon {
  width: clamp(3rem, 7vw, 3.75rem);
  height: clamp(3rem, 7vw, 3.75rem);
  border-radius: 1rem;
  background: #F3F4F6;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.history-card .compact-card-meta {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-text-muted);
}

.history-card .compact-card-badge {
  background: rgba(76, 175, 80, 0.12);
  color: var(--color-text);
}

.history-card .compact-card-text {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.45rem;
}

.history-card .compact-card-title {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
  flex-shrink: 1;
  min-width: 0;
}

.history-card .compact-card-subtitle {
  font-size: 0.8rem;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-card .compact-card-subtitle::before {
  content: '·';
  margin-right: 0.35rem;
  color: #9ca3af;
}

.history-card .compact-card-meta-row {
  flex: 0 0 100%;
  margin-top: 0.1rem;
}

.history-card-subtext,
.history-card-meta-line {
  color: #4A4A4A;
  margin: 0.25rem 0;
  font-size: 0.95rem;
}

.history-card-footer {
  margin-top: var(--spacing-sm);
  display: flex;
  justify-content: flex-end;
}

.history-empty {
  text-align: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.history-empty .landing-button {
  width: 100%;
}

.history-detail-header {
  gap: var(--spacing-sm);
}

.history-overview-section {
  gap: var(--spacing-sm);
}

.history-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
}

.history-exercises {
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}


.history-exercise-list {
  width: 100%;
}

.history-exercise-card .compact-card-collapsed {
  padding: 1rem;
}

.history-exercise-card .compact-card-icon {
  width: clamp(2.75rem, 6vw, 3.25rem);
  height: clamp(2.75rem, 6vw, 3.25rem);
  border-radius: 0.85rem;
  background: #F3F4F6;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.history-exercise-card .compact-card-meta {
  background: rgba(15, 23, 42, 0.08);
  color: var(--color-text-muted);
}

.history-exercise-card.empty {
  text-align: center;
}

.history-exercise-icon {
  width: clamp(2.75rem, 6vw, 3.5rem);
  height: clamp(2.75rem, 6vw, 3.5rem);
  border-radius: 0.9rem;
  background: #F3F4F6;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.history-exercise-icon img {
  width: 70%;
  height: 70%;
}

.history-exercise-text h3 {
  margin-top: 0;
}

.history-exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.history-exercise-etiquette {
  margin-top: var(--spacing-xs);
}

.workout-detail-animations {
  gap: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.workout-detail-anim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: var(--spacing-sm);
}

.workout-detail-anim-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.workout-detail-anim-icon {
  width: clamp(4rem, 10vw, 5rem);
  height: clamp(4rem, 10vw, 5rem);
  border-radius: 1rem;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.workout-detail-anim-icon img,
.workout-detail-anim-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.workout-detail-anim-label {
  font-size: 0.72rem;
  color: var(--text-secondary, #6b7280);
  line-height: 1.2;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-detail-actions {
  gap: var(--spacing-sm);
  align-items: center;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
}

.history-back-button {
  width: 100%;
}

.history-detail-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  justify-content: center;
}

.supportive-link.danger {
  color: #b91c1c;
}

.landing-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  min-height: 160px;
  text-align: center;
}

.state-card {
  display: flex;
  justify-content: center;
}

.state-card .landing-card {
  max-width: min(32.5rem, 100%);
}

.state-card-body {
  align-items: center;
}

.landing-error-card {
  border: 1px solid #F87171;
  box-shadow: 0 20px 45px rgba(248, 113, 113, 0.25);
}

.profile-avatar {
  width: clamp(4rem, 12vw, 6rem);
  height: clamp(4rem, 12vw, 6rem);
  border-radius: 50%;
  background: var(--card-border);
  margin: 0 auto 1rem auto;
}

.profile-card {
  text-align: center;
  align-items: center;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--spacing-md);
  width: 100%;
}

.profile-details strong {
  font-size: 1.1rem;
  color: var(--color-text);
}


@media (max-width: 40rem) {
  .landing-card-title {
    font-size: 1.15rem;
  }

  .execution-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .execution-header-text {
    text-align: left;
    width: 100%;
  }

  .execution-header-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .execution-rest-card {
    padding: var(--spacing-md, 20px);
  }

  .execution-rest-value {
    font-size: 1.85rem;
  }

  .execution-nav-actions,
  .execution-complete-actions {
    flex-direction: column;
  }

  .execution-nav-actions .landing-button,
  .execution-complete-actions .landing-button {
    width: 100%;
  }

  .history-card-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .history-card-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .history-card-chip {
    margin-top: var(--spacing-sm);
  }

  .history-exercise-card {
    flex-direction: column;
  }

  .history-exercise-icon {
    width: 3rem;
    height: 3rem;
  }
}

@keyframes restPulse {
  0% {
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.18);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.22);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.18);
    transform: scale(1);
  }
}

@keyframes landing-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.landing-card.emphasis {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.landing-card-compact {
  padding: var(--spacing-sm) var(--spacing-md);
}

.landing-card-image {
  width: 3rem;
  height: 3rem;
  border-radius: 0.65rem;
  background: var(--color-bg);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.landing-card-image img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.landing-card-image + h3 {
  margin-top: var(--spacing-sm);
}

.landing-list,
.landing-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  color: var(--color-text);
}

.landing-list-check li {
  position: relative;
  padding-left: 24px;
}

.landing-list-check li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 0.85rem;
}

.landing-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.landing-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-accent-light);
  font-size: 0.9rem;
}

.landing-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.landing-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--color-accent-light);
  cursor: pointer;
  width: fit-content;
  overflow: hidden;
}

.landing-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.landing-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.landing-chip input:checked + span {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(76, 175, 80, 0.25);
}

.landing-chip input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.landing-space-top-sm {
  margin-top: var(--spacing-sm);
}

.landing-space-top-md {
  margin-top: var(--spacing-md);
}

.landing-stat-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.landing-stat {
  background: var(--color-bg);
  border-radius: 12px;
  padding: var(--spacing-sm);
  border: 1px solid var(--color-accent-light);
}

.landing-stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--color-text);
}

.landing-stat span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}


.primary-btn,
.landing-button {
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  background: #053E1D;
  color: #F9F0E1;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: var(--spacing-md);
  box-shadow: 0 8px 20px rgba(5, 62, 29, 0.2);
}

.primary-btn:hover,
.landing-button:hover {
  background: #031f0f;
  box-shadow: 0 12px 28px rgba(5, 62, 29, 0.28);
}

.secondary-btn,
.landing-button.secondary {
  background: transparent;
  color: #053E1D;
  border: 1px solid rgba(5, 62, 29, 0.35);
  box-shadow: none;
}

.secondary-btn:hover,
.landing-button.secondary:hover {
  background: #E6FFDA;
  border-color: #053E1D;
}

.subtle-link {
  margin-top: var(--spacing-sm);
  color: var(--color-text-muted);
  text-decoration: underline;
  font-weight: 500;
}

.exercise-card-actions {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.exercise-video-placeholder {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.95rem;
  padding: var(--spacing-sm);
  background: rgba(249, 250, 251, 0.92);
  margin-top: var(--spacing-sm);
}

.exercise-video-placeholder .video-frame-link {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(17, 24, 39, 0.25);
  border-radius: 0.85rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(17, 24, 39, 0.02);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.exercise-video-placeholder .video-frame-link:hover {
  border-color: var(--color-accent);
  background: rgba(76, 175, 80, 0.08);
}

.exercise-card-actions .secondary-btn {
  width: 100%;
  justify-content: center;
}

.exercise-card-actions .subtle-link {
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
}

.landing-actions .landing-button,
.landing-actions .primary-btn,
.landing-actions .secondary-btn {
  margin-top: 0;
}

.landing-button.success {
  background: #059669;
  border: 1px solid #059669;
  color: #ffffff;
}

.landing-button.success:hover {
  background: #047857;
}

.landing-actions-stack {
  width: 100%;
  flex-wrap: nowrap;
}

.landing-actions-stack .landing-button,
.landing-actions-stack .primary-btn,
.landing-actions-stack .secondary-btn {
  flex: 1;
}

body.modal-open {
  overflow: hidden;
}

.gymxiety-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  background: rgba(17, 24, 39, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 999;
}

.gymxiety-modal.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.gymxiety-modal-card {
  position: relative;
  width: 100%;
  max-width: min(32.5rem, 100%);
  background: linear-gradient(180deg, var(--card-tint), var(--color-surface));
  border-radius: 24px;
  padding: calc(var(--spacing-lg) * 0.88);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  border-top: 4px solid var(--card-brand);
  outline: none;
}

.gymxiety-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.gymxiety-modal-card h2,
.gymxiety-modal-card h3 {
  position: relative;
  padding-left: 1.75rem;
  font-weight: 700;
  color: #0f1d17;
}

.gymxiety-modal-card h2::before,
.gymxiety-modal-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.1rem;
  height: 1.1rem;
  background-image: var(--card-heading-icon);
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: center;
}

.gymxiety-modal-close {
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 600;
  cursor: pointer;
}

.gymxiety-modal-close:hover {
  color: var(--color-text);
}

.gymxiety-modal-list {
  margin-top: var(--spacing-md);
  gap: var(--spacing-xs);
}

@keyframes gymxietyModalPop {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gymxiety-modal.visible .gymxiety-modal-card {
  animation: gymxietyModalPop 0.24s ease;
}

@media (max-width: 40rem) {
  .landing-actions-stack {
    flex-direction: column;
  }

  .landing-actions-stack .landing-button {
    width: 100%;
  }
}

.landing-cta {
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-accent-light);
}

.landing-cta .landing-actions {
  justify-content: center;
}

.landing-footer {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-accent-light);
}

.landing-footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.landing-footer-columns {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.landing-footer-brand {
  max-width: min(26.25rem, 100%);
}

.landing-footer-logo {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

.landing-footer-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: var(--spacing-md);
  min-width: min(20rem, 100%);
}

.landing-footer-heading {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-sm);
}

.landing-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.landing-footer-link {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.landing-footer-link:hover {
  opacity: 1;
  color: var(--color-accent);
}

.landing-footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--color-accent-light);
}

.landing-footer-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 40rem) {
  .landing-page {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  .landing-actions {
    flex-direction: column;
  }
  .landing-gymxiety-card {
    grid-template-columns: 1fr;
  }
  .primary-btn,
  .secondary-btn,
  .landing-button {
    width: 100%;
  }
  .equipment-item {
    width: 100%;
  }
  .goal-selector {
    flex-direction: column;
  }
  .goal-chip {
    width: 100%;
    min-width: 0;
  }
  .confidence-pill-row {
    flex-wrap: nowrap;
  }
  .confidence-pill {
    flex: 1;
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
  .execution-feedback-actions {
    flex-direction: column;
  }
  .execution-feedback-btn {
    width: 100%;
  }
  .execution-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-button {
    color: var(--color-surface);
  }
  .execution-summary {
    grid-template-columns: 1fr;
  }
  .landing-footer-columns {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  .landing-footer-grid {
    min-width: 0;
  }
  .landing-footer-meta-row {
    flex-direction: column;
    gap: var(--spacing-xs);
    align-items: flex-start;
  }
}

@media (max-width: 40rem) {
  .gymxiety-modal {
    padding: var(--spacing-md);
  }

  .gymxiety-modal-card {
    padding: var(--spacing-md);
    max-height: 90vh;
    overflow-y: auto;
  }
}

/* ─── Gym Confidence page ──────────────────────────────────────────────────── */

.gym-confidence-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gc-hero {
  background: linear-gradient(135deg, #f4fbf7 0%, #f0f5ff 100%);
  border: 1px solid #dfe8f1;
  border-radius: 28px;
  padding: clamp(24px, 5vw, 36px);
  box-shadow: 0 25px 60px rgba(15, 25, 40, 0.08);
}

.gc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: #25634c;
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gc-eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.gc-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #0f1a1b;
}

.gc-hero p {
  margin: 0;
  color: #425066;
  line-height: 1.5;
  max-width: 640px;
}

.gc-hero p + p {
  margin-top: 8px;
}

.gc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.gc-chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
  font-size: 0.85rem;
  font-weight: 600;
}

.gc-highlight-card {
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #e5e9f2;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.gc-highlight-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #0f1a1b;
}

.gc-highlight-card p {
  margin: 0;
  color: #425066;
  line-height: 1.55;
}

.gc-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.gc-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e7ecf3;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.gc-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f1a1b;
}

.gc-card p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

.gc-section-label {
  margin: 0;
}

.gc-mini-card {
  border-radius: 16px;
  border: 1px solid #edf1f7;
  padding: 14px;
  background: #f8fafc;
}

.gc-mini-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1f2937;
}

.gc-mini-card-tip {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #4b5563;
}

.gc-mini-card + .gc-mini-card {
  margin-top: 12px;
}

.gc-bullet-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gc-bullet-list li {
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
  color: #1f2a37;
  align-items: flex-start;
}

.gc-bullet-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  margin-top: 6px;
  flex-shrink: 0;
}

.gc-situations-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  max-height: 520px;
}

.gc-situations-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.4rem;
  margin-right: -0.4rem;
}

.gc-situation-card {
  border: 1px solid #e5e9f2;
  border-radius: 16px;
  padding: 14px 16px;
  background: #fdfefe;
}

.gc-situation-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.gc-situation-card-tip {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.4;
}

.gc-card-footer {
  margin-top: auto;
}

@media (max-width: 600px) {
  .gc-card {
    padding: 20px;
  }

  .gc-situations-card {
    max-height: none;
  }

  .gc-situations-list {
    max-height: none;
    overflow: visible;
  }
}

/* ─── Gym Basics page ──────────────────────────────────────────────────────── */

.gb-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.gb-hero {
  border-radius: 32px;
  border: 1px solid #e0ecff;
  padding: clamp(24px, 5vw, 40px);
  background: radial-gradient(circle at top left, rgba(58, 122, 87, 0.12), rgba(15, 23, 42, 0));
  box-shadow: 0 30px 80px rgba(8, 23, 43, 0.12);
}

.gb-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #1f5a45;
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.gb-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.gb-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: #0f1a1b;
}

.gb-hero p {
  margin: 0;
  color: #3c4a5b;
  line-height: 1.7;
  max-width: 720px;
}

.gb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.gb-chip {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f3d35;
  background: rgba(19, 78, 74, 0.12);
  border: 1px solid rgba(19, 78, 74, 0.2);
}

.gb-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gb-topic-card {
  width: 100%;
}

.gb-topic-card-inner {
  border-radius: 28px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.gb-topic-meta h3 {
  margin: 10px 0 8px;
  font-size: 1.15rem;
  color: #0f1a1b;
}

.gb-topic-meta p {
  margin: 0;
  color: #253344;
  font-size: 0.95rem;
  line-height: 1.6;
}

.gb-topic-step {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f3d35;
  background: rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 61, 53, 0.2);
}

.gb-topic-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-topic-bullets li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #11212f;
}

.gb-topic-bullets li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  margin-top: 6px;
  flex-shrink: 0;
}

.gb-support-card {
  border-radius: 24px;
  border: 1px dashed #b6d1ff;
  padding: 24px;
  background: #f8fbff;
  color: #1a2740;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gb-support-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.gb-support-card p {
  margin: 0;
  line-height: 1.5;
}

.gb-support-card a {
  color: #0f62fe;
  font-weight: 600;
}

@media (max-width: 640px) {
  .gb-topic-card-inner {
    padding: 20px;
  }

  .gb-chip-row {
    flex-direction: column;
  }
}
