/* ── Phase wheel & life-stage tiles ── */

.pl-visual {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px 8px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(233,221,246,0.45) 0%, rgba(251,231,222,0.28) 55%, rgba(255,243,236,0.35) 100%);
  border: 1px solid rgba(155,126,189,0.14);
  box-shadow: 0 10px 36px rgba(61,37,80,0.06);
  text-align: center;
}

.pl-visual__lead {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: var(--t-sm);
  line-height: var(--lh-relax);
  color: var(--c-text-2);
  font-weight: var(--w-light);
}

.pl-visual--stages .pl-visual__lead {
  text-align: center;
}

/* Cycle phase wheel */
.cw-wrap {
  max-width: 580px;
  margin: 0 auto;
}

.cw-svg {
  width: 280px;
  height: 280px;
  display: block;
  margin: 0 auto;
}

.cw-arc {
  opacity: 0.2;
  transition: opacity 0.4s ease, stroke-width 0.4s ease;
}

.cw-arc.active {
  opacity: 1;
  stroke-width: 26;
}

.cw-dot {
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.cw-dot.active {
  opacity: 1;
}

.cw-spinner {
  transform-origin: 160px 160px;
  animation: wheel-rotate 10s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .cw-spinner { animation: none; }
}

.cw-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 28px;
  text-align: left;
}

.cw-card {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(155,126,189,0.15);
  border-radius: var(--r-card);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0.42;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.cw-card.active {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(155,126,189,0.14);
  transform: translateY(-2px);
}

.cw-card--wide {
  grid-column: 1 / -1;
  max-width: 340px;
  margin: 0 auto;
  width: 100%;
}

.cw-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.cw-card__name {
  font-size: var(--t-sm);
  font-weight: var(--w-semi);
  color: var(--c-text);
  margin-bottom: 3px;
}

.cw-card__desc {
  font-size: var(--t-xs);
  color: var(--c-text-2);
  line-height: var(--lh-relax);
  font-weight: var(--w-light);
}

.cw-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  justify-content: center;
  margin-top: 14px;
}
.cw-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
  background: transparent;
  border: none;
  padding: 2px 4px;
  cursor: pointer;
  font-family: var(--f-body);
}
.cw-legend-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.cw-legend-item--active {
  color: var(--c-text);
  font-weight: var(--w-semi);
}

/* Life stages — mode picker (not a cycle) */
.ls-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.ls-spotlight {
  --ls-accent: #9B7EBD;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 20px;
  margin-bottom: 16px;
  border-radius: var(--r-card);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(155,126,189,0.18);
  border-left: 4px solid var(--ls-accent);
  box-shadow: 0 8px 28px rgba(61,37,80,0.07);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.ls-spotlight__icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--ls-accent) 14%, white);
}

.ls-spotlight__kicker {
  font-size: 10px;
  font-weight: var(--w-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 6px;
}

.ls-spotlight__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: var(--w-light);
  color: var(--c-text);
  line-height: 1.1;
  margin: 0 0 8px;
}

.ls-spotlight__desc {
  font-size: var(--t-sm);
  line-height: var(--lh-relax);
  color: var(--c-text-2);
  font-weight: var(--w-light);
  margin: 0;
}

.ls-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.ls-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: var(--r-card);
  border: 1px solid rgba(155,126,189,0.16);
  background: rgba(255,255,255,0.72);
  cursor: pointer;
  text-align: left;
  font-family: var(--f-body);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ls-tile:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(155,126,189,0.32);
  transform: translateY(-1px);
}

.ls-tile--active {
  background: #fff;
  border-color: var(--c-primary);
  box-shadow: 0 4px 18px rgba(155,126,189,0.14);
}

.ls-tile__icon {
  font-size: 22px;
  line-height: 1;
}

.ls-tile__name {
  font-size: 12px;
  font-weight: var(--w-semi);
  color: var(--c-text);
  line-height: 1.25;
}

@media (max-width: 768px) {
  .pl-visual {
    padding: 22px 16px 4px;
    border-radius: var(--mob-card-radius);
  }

  .pl-visual__lead {
    font-size: 14px;
    margin-bottom: 18px;
    text-align: left;
  }

  .pl-visual--stages .pl-visual__lead {
    text-align: left;
  }

  .cw-svg {
    width: 230px;
    height: 230px;
  }

  .cw-cards {
    grid-template-columns: 1fr;
  }

  .cw-card {
    padding: 12px 14px;
  }

  .ls-spotlight {
    flex-direction: row;
    padding: 18px 16px;
  }

  .ls-spotlight__icon {
    font-size: 30px;
    width: 46px;
    height: 46px;
  }

  .ls-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cw-svg {
    width: 200px;
    height: 200px;
  }

  .ls-tiles {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ls-tile {
    padding: 12px;
  }

  .ls-tile__name {
    font-size: 11px;
  }
}

/* ── New donut + side-cards layout responsive ── */
@media (max-width: 768px) {
  #cycleWheel > div[style*="grid-template-columns:260px"] {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 24px !important;
  }
  #cycleWheel > div[style*="grid-template-columns:260px"] > div:last-child {
    width: 100%;
  }
}
