/* ZenStride — 100% Faithful Fit4Me Tai Chi Walking Clone Stylesheet */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background-color: #F9FAFB;
  color: #17181D;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input {
  font-family: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid #19D863;
  outline-offset: 2px;
}

/* Single-Column App Shell (Centered 440px outer, 360-390px inner content) */
.zs-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background-color: #F9FAFB;
  position: relative;
  overflow-x: hidden;
}

.zs-container {
  width: 100%;
  max-width: 374px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Top Header */
.zs-header {
  width: 100%;
  max-width: 374px;
  margin: 0 auto;
  padding: 14px 16px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.zs-header-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.zs-back-btn {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background-color: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5F626F;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.zs-back-btn:hover {
  background-color: #FFFFFF;
  border-color: #17181D;
  color: #17181D;
}

/* Fit4Me-style Geometric Italic Brand Wordmark for ZENSTRIDE */
.zs-brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  user-select: none;
}

.zs-brand-bars {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
  margin-right: 1px;
  transform: skewX(-12deg);
}

.zs-brand-bars span {
  display: block;
  height: 3.2px;
  border-radius: 2px;
  background-color: #19D863;
}
.zs-brand-bars span:nth-child(1) { width: 9px; }
.zs-brand-bars span:nth-child(2) { width: 7px; }
.zs-brand-bars span:nth-child(3) { width: 5px; margin-left: 2px; }

.zs-brand-text {
  font-size: 19px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.03em;
  line-height: 1;
}

.zs-brand-zen {
  color: #19D863;
}

.zs-brand-stride {
  color: #17181D;
}

/* Category & Segmented Progress Bar */
.zs-cat-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.zs-cat-title {
  font-size: 14px;
  font-weight: 600;
  color: #17181D;
  margin-bottom: 6px;
}

.zs-prog-track {
  width: 148px;
  height: 3px;
  background-color: #E9ECF4;
  border-radius: 99px;
  overflow: hidden;
  display: flex;
}

.zs-prog-fill {
  height: 100%;
  background-color: #19D863;
  border-radius: 99px;
  transition: width 0.25s ease;
}

.zs-prog-segments {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 500;
  color: #8E93A4;
}

.zs-prog-segments span.active {
  color: #17181D;
  font-weight: 700;
}

/* Typography */
.zs-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #17181D;
  text-align: center;
  letter-spacing: -0.015em;
}

.zs-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #5F626F;
  text-align: center;
  margin-top: 6px;
}

/* Primary Green Pill CTA Button */
.zs-bottom-dock {
  margin-top: auto;
  padding: 16px 0 24px;
  width: 100%;
  z-index: 20;
}

.zs-bottom-dock.card-dock {
  background: #FFFFFF;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 28px rgba(20, 23, 38, 0.07);
  padding: 16px 20px 22px;
  margin-left: -16px;
  margin-right: -16px;
  width: calc(100% + 32px);
}

.zs-btn-primary {
  width: 100%;
  height: 54px;
  border-radius: 9999px;
  background-color: #19D863;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(25, 216, 99, 0.34);
  transition: transform 0.12s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.zs-btn-primary:hover {
  background-color: #15C458;
  box-shadow: 0 12px 28px rgba(25, 216, 99, 0.42);
}

.zs-btn-primary:active {
  transform: scale(0.99);
}

/* Green Circle Arrow Icon */
.zs-arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #19D863;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-arrow-circle.white {
  background-color: #FFFFFF;
  color: #19D863;
  width: 24px;
  height: 24px;
}

/* Screen 0: Gender Selection */
.zs-gender-stage {
  position: relative;
  width: 332px;
  height: 336px;
  margin: 22px auto 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zs-gender-orbit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.zs-gender-orbit svg {
  width: 300px;
  height: auto;
}

.zs-gender-card {
  position: relative;
  z-index: 10;
  width: 154px;
  height: 204px;
  border-radius: 20px;
  background-color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(23, 24, 29, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.zs-gender-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(25, 216, 99, 0.18);
}

.zs-gender-card.female {
  margin-top: 38px;
}

.zs-gender-card.male {
  margin-top: -18px;
}

.zs-gender-img {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  height: 158px;
  width: auto;
  object-fit: contain;
  z-index: 1;
}

.zs-gender-pill {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 46px;
  background-color: #19D863;
  border-radius: 0 20px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.zs-gender-pill::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 16px;
  height: 14px;
  background: radial-gradient(circle at 100% 0, transparent 14px, #19D863 14.5px);
}

/* Split Layout (Left Option Cards + Right Model Cutout) */
.zs-split-stage {
  position: relative;
  width: 100%;
  min-height: 390px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zs-left-card {
  position: relative;
  z-index: 10;
  width: 176px;
  min-height: 64px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECF4;
  box-shadow: 0 4px 14px rgba(20, 23, 38, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.zs-left-card:hover {
  border-color: #19D863;
  box-shadow: 0 6px 18px rgba(25, 216, 99, 0.12);
}

.zs-left-card.selected {
  background: linear-gradient(90deg, #FFFFFF 0%, #E6FAEE 100%);
  border-color: #8CE5AF;
}

.zs-left-card-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #17181D;
}

.zs-right-model {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: 206px;
  height: 392px;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  z-index: 1;
}

/* Anatomical Target Zones Model + Overlays */
.zs-zones-model-wrap {
  position: absolute;
  right: -12px;
  bottom: -8px;
  width: 192px;
  height: 396px;
  pointer-events: none;
  z-index: 1;
}

.zs-zones-model-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  transition: opacity 0.2s ease;
}

/* Checkbox Icon */
.zs-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid #D2D5DF;
  background-color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.zs-checkbox.checked {
  background-color: #19D863;
  border-color: #19D863;
  color: #FFFFFF;
}

/* 2x2 Photo Grid Cards (Screens 5, 6, 9) */
.zs-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.zs-photo-card {
  background-color: #FFFFFF;
  border: 1px solid #E9ECF4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(20, 23, 38, 0.03);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.zs-photo-card:hover {
  border-color: #19D863;
  transform: translateY(-2px);
}

.zs-photo-card.selected {
  border-color: #8CE5AF;
  background: linear-gradient(180deg, #E6FAEE 0%, #FFFFFF 100%);
}

.zs-photo-card-img-wrap {
  width: 100%;
  height: 144px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 8px;
  overflow: hidden;
}

.zs-photo-card-img-wrap.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.zs-photo-card-img-wrap img {
  max-height: 138px;
  width: auto;
  object-fit: contain;
}

.zs-photo-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: #FFFFFF;
  width: 100%;
}

.zs-photo-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #17181D;
  text-align: left;
}

/* Full-Width Stack Cards (Screens 10, 11, 12) */
.zs-stack-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  width: 100%;
}

.zs-wide-card {
  width: 100%;
  min-height: 76px;
  padding: 14px 16px;
  border-radius: 16px;
  background-color: #FFFFFF;
  border: 1px solid #E9ECF4;
  box-shadow: 0 4px 14px rgba(20, 23, 38, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.zs-wide-card:hover {
  border-color: #19D863;
}

.zs-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #BCEFD0;
  background: linear-gradient(180deg, #FFFFFF 0%, #E6FAEE 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Featured In Box (Screen 2) */
.zs-featured-box {
  position: relative;
  border: 1px solid #DCE1EB;
  border-radius: 16px;
  padding: 20px 16px 16px;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}

.zs-featured-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F9FAFB;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #17181D;
}

.zs-featured-box svg {
  height: 24px;
  width: auto;
}

/* Segmented Unit Pill Toggle & Numeric Inputs (Screens 13, 14) */
.zs-unit-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #EEF0F5;
  border-radius: 999px;
  padding: 3px;
  width: 100%;
  margin: 18px 0 16px;
}

.zs-unit-btn {
  height: 34px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #5F626F;
  transition: all 0.15s ease;
}

.zs-unit-btn.active {
  background-color: #FFFFFF;
  color: #19D863;
  box-shadow: 0 2px 6px rgba(20, 23, 38, 0.06);
}

.zs-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.zs-input-box {
  flex: 1;
  background-color: #EEF0F5;
  border: 1px solid #DCE1EB;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zs-input-box:focus-within {
  border-color: #19D863;
  background-color: #FFFFFF;
}

.zs-input-label {
  font-size: 11px;
  font-weight: 500;
  color: #8E93A4;
  margin-bottom: 2px;
}

.zs-input-field {
  width: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #17181D;
  outline: none;
}

/* Wellness Profile BMI Card (Screen 15) */
.zs-bmi-card {
  position: relative;
  background-color: #FFFFFF;
  border: 1px solid #E9ECF4;
  border-radius: 18px;
  padding: 20px 16px 16px;
  margin-top: 20px;
  box-shadow: 0 4px 14px rgba(20, 23, 38, 0.03);
}

.zs-bmi-top-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #F9FAFB;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #17181D;
  white-space: nowrap;
}

.zs-bmi-status {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #4BA8CE;
  margin-bottom: 22px;
}

.zs-bmi-bar-wrap {
  position: relative;
  width: 100%;
  margin: 10px 0 8px;
}

.zs-bmi-bar {
  height: 6px;
  width: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #4BA8CE 0%, #68D37A 38%, #F3C94C 70%, #EB5146 100%);
}

.zs-bmi-pill {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #4BA8CE;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.zs-bmi-ticks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  font-size: 11px;
  color: #5F626F;
  margin-top: 10px;
}

.zs-alert-card {
  margin-top: 12px;
  border-radius: 16px;
  background-color: #FFF0F0;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.zs-summary-card {
  position: relative;
  margin-top: 12px;
  border-radius: 18px;
  border: 1px solid #E2F0F7;
  background: linear-gradient(135deg, #EBF7FC 0%, #FFFFFF 65%);
  padding: 16px;
  overflow: hidden;
  min-height: 210px;
}

/* Paywall Specific Styles (Screen 18) */
.zs-paywall-sticky {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(249, 250, 251, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E9ECF4;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zs-plan-card {
  border-radius: 16px;
  border: 2px solid #E9ECF4;
  background-color: #FFFFFF;
  overflow: hidden;
  transition: all 0.15s ease;
  margin-bottom: 12px;
}

.zs-plan-card.selected {
  border-color: #19D863;
  box-shadow: 0 8px 22px rgba(25, 216, 99, 0.14);
}

.zs-plan-badge {
  background-color: #19D863;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 4px 8px;
}

.zs-plan-badge.dark {
  background-color: #17181D;
}

.zs-plan-body {
  width: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.zs-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #D2D5DF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.zs-plan-card.selected .zs-radio {
  border-color: #19D863;
  background-color: #19D863;
}

.zs-price-tag {
  background-color: #F1F3F9;
  border-radius: 12px;
  padding: 8px 12px;
  text-align: right;
  flex-shrink: 0;
}

.zs-plan-card.selected .zs-price-tag {
  background-color: #E6FAEE;
  border: 1px solid #8CE5AF;
}

/* Legal Footer */
.zs-legal {
  margin-top: 20px;
  padding-bottom: 16px;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  color: #5F626F;
}

.zs-legal a, .zs-legal button {
  color: #5F626F;
  text-decoration: underline;
  font-size: 11px;
}

.hidden {
  display: none !important;
}
