.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #121014;
  color: #fff;
}

.cover-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 20%;
  filter: saturate(0.9);
}

.cover-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 16, 20, 0.94) 0%, rgba(18, 16, 20, 0.82) 38%, rgba(18, 16, 20, 0.58) 100%),
    linear-gradient(180deg, rgba(18, 16, 20, 0) 55%, #121014 100%);
}

.cover-glow {
  position: absolute;
  z-index: -1;
  right: -120px;
  top: 40px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 30, 118, 0.55) 0%, rgba(169, 30, 118, 0) 66%);
}

.cover-in {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 72px 32px 80px;
}

.cover-kicker {
  color: #f284bf;
  font-size: 0.9rem;
  font-weight: 600;
}

.cover-title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 4.6vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.cover-swap {
  display: grid;
  height: 1em;
  overflow: hidden;
}

.cover-swap span {
  grid-area: 1 / 1;
  background: linear-gradient(90deg, #c22c8b, #f284bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  animation: cover-word 10s infinite;
}

.cover-swap span:nth-child(2) { animation-delay: 2.5s; }
.cover-swap span:nth-child(3) { animation-delay: 5s; }
.cover-swap span:nth-child(4) { animation-delay: 7.5s; }

@keyframes cover-word {
  0% { opacity: 0; transform: translateY(60%); }
  4%, 22% { opacity: 1; transform: none; }
  26%, 100% { opacity: 0; transform: translateY(-60%); }
}

.cover-sub {
  margin-top: 18px;
  max-width: 46ch;
  color: #e4dee5;
  font-size: 1.1rem;
}

.cover-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cover-cta {
  box-shadow: 0 0 0 1px rgba(242, 132, 191, 0.4), 0 14px 34px -12px rgba(169, 30, 118, 0.95);
}

.cover-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cover-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cover-proof {
  margin-top: 18px;
  color: #c9c2ca;
  font-size: 0.9rem;
}

.cover-proof b {
  color: #4fcb7f;
  font-weight: 600;
}

.cover-panel {
  position: relative;
}

.cover-glass {
  background: linear-gradient(180deg, rgba(37, 33, 40, 0.94), rgba(24, 21, 26, 0.96));
  border: 1px solid #4a4350;
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow: 0 40px 80px -40px #000, inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cover-label {
  color: #ada6ae;
  font-size: 0.86rem;
  font-weight: 500;
}

.cover-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: #121014;
  border: 1px solid #3a343f;
  font-size: 0.76rem;
  font-weight: 600;
  color: #ada6ae;
}

.cover-seg span {
  padding: 4px 12px;
  border-radius: 999px;
}

.cover-seg .on {
  background: #3a1a2c;
  color: #f284bf;
}

.cover-big {
  margin-top: 6px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  white-space: nowrap;
}

.cover-delta {
  margin-top: 6px;
  color: #ada6ae;
  font-size: 0.88rem;
}

.cover-delta b {
  color: #4fcb7f;
  font-weight: 600;
}

.cover-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}

.cover-chart text {
  font-family: var(--font-sans);
  font-size: 12px;
}

.cover-chart .draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: cover-draw 1.8s cubic-bezier(0.3, 0, 0.2, 1) 0.25s forwards;
}

.cover-chart .area {
  opacity: 0;
  animation: cover-fade 0.8s ease 1.5s forwards;
}

.cover-chart .halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: cover-halo 2.4s ease-out 2s infinite;
}

@keyframes cover-draw { to { stroke-dashoffset: 0; } }
@keyframes cover-fade { to { opacity: 1; } }
@keyframes cover-halo {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(3.2); opacity: 0; }
}

.cover-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cover-stat {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid #3a343f;
  background: rgba(18, 16, 20, 0.6);
  animation: cover-lit 10s infinite;
}

.cover-stat i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cover-stat b {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}

.cover-stat span {
  color: #c9c2ca;
  font-size: 0.82rem;
  line-height: 1.25;
}

.cover-stat:nth-child(2) { animation-delay: 2.5s; }
.cover-stat:nth-child(3) { animation-delay: 5s; }
.cover-stat:nth-child(4) { animation-delay: 7.5s; }

@keyframes cover-lit {
  0%, 3% { border-color: #3a343f; background: rgba(18, 16, 20, 0.6); }
  6%, 22% { border-color: #f284bf; background: rgba(58, 26, 44, 0.85); }
  26%, 100% { border-color: #3a343f; background: rgba(18, 16, 20, 0.6); }
}

.cover-example {
  margin-top: 12px;
  color: #8b848c;
  font-size: 0.76rem;
}

.cover-toast {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: -26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid #4a4350;
  background: rgba(37, 33, 40, 0.98);
  box-shadow: 0 20px 40px -18px #000;
  font-size: 0.88rem;
  font-weight: 600;
  animation: cover-float 5s ease-in-out infinite;
}

.cover-toast i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4fcb7f;
}

.cover-toast small {
  display: block;
  color: #ada6ae;
  font-size: 0.74rem;
  font-weight: 500;
}

@keyframes cover-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.strip {
  padding: 9px 16px;
  background: #3a1a2c;
  color: #f284bf;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

@media (max-width: 1023px) {
  .cover-photo {
    height: 46%;
    object-position: 42% 18%;
  }

  .cover-shade {
    background: linear-gradient(180deg, rgba(18, 16, 20, 0.5) 0%, rgba(18, 16, 20, 0.62) 20%, #121014 44%);
  }

  .cover-glow {
    right: -260px;
    top: auto;
    bottom: 120px;
    width: 560px;
    height: 560px;
  }

  .cover-in {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 112px 16px 36px;
  }

  .cover-title {
    font-size: clamp(2rem, 10.2vw, 3.4rem);
  }

  .cover-sub {
    font-size: 1.02rem;
  }

  .cover-buttons .btn {
    width: 100%;
  }

  .cover-glass {
    padding: 18px 16px;
    border-radius: 20px;
  }

  .cover-toast {
    right: 10px;
    top: -22px;
  }

  .cover-stats {
    gap: 8px;
  }

  .cover-stat {
    padding: 10px;
    gap: 7px;
  }

  .cover-stat b {
    font-size: 1.1rem;
  }

  .cover-stat span {
    font-size: 0.76rem;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .cover-in {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cover-buttons .btn {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cover-swap span,
  .cover-stat,
  .cover-toast,
  .cover-chart .halo {
    animation: none;
  }

  .cover-swap span:first-child {
    opacity: 1;
  }

  .cover-chart .draw {
    animation: none;
    stroke-dashoffset: 0;
  }

  .cover-chart .area {
    animation: none;
    opacity: 1;
  }

  .cover-stat:first-child {
    border-color: #f284bf;
    background: rgba(58, 26, 44, 0.85);
  }
}

.pains {
  background: radial-gradient(60rem 28rem at 12% 0%, color-mix(in oklab, var(--brand) 16%, transparent), transparent 70%);
}

.pains-mark {
  background: linear-gradient(90deg, #c22c8b, #f284bf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pain {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.pain-scene {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: 11.5rem;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.pain-scene:has(.pain-paper) {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.pain-text {
  padding: 18px 20px 20px;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.pain-paper {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
  border-radius: 6px;
  color: #2b2620;
  box-shadow: 0 14px 26px -18px #000;
}

.pain-lined {
  background: repeating-linear-gradient(#fbf6e6, #fbf6e6 22px, #d9cfb4 22px, #d9cfb4 23px);
  transform: rotate(-3deg);
}

.pain-cells {
  background:
    linear-gradient(#d5dbe2 1px, transparent 1px) 0 0 / 100% 23px,
    linear-gradient(90deg, #d5dbe2 1px, transparent 1px) 0 0 / 33.33% 100%,
    #f6f8fa;
  transform: rotate(2deg);
}

.pain-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}

.pain-hand {
  font-style: italic;
}

.pain-cell {
  font-size: 0.9rem;
}

.pain-number {
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pain-versus {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}

.pain-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.pain-row-faded {
  opacity: 0.55;
}

.pain-avatar {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand-text);
  font-size: 0.85rem;
  font-weight: 700;
}

.pain-chip {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.pain-chip-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.pain-receipt {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(100%, 19rem);
  padding: 16px 18px 18px;
  background: #fbfaf7;
  color: #2b2620;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 14px 26px -18px #000;
  -webkit-mask: radial-gradient(5px at 6px 100%, transparent 96%, #000) 0 0 / 12px 100%;
  mask: radial-gradient(5px at 6px 100%, transparent 96%, #000) 0 0 / 12px 100%;
}

.pain-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pain-line-total {
  padding-top: 8px;
  border-top: 1px dashed #b9b2a6;
  color: #c0302b;
  font-weight: 700;
}

.pain-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pain-bubble {
  max-width: 19rem;
  padding: 10px 14px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 1rem;
}

.pain-seen {
  color: var(--warning);
  font-size: 0.85rem;
  font-weight: 600;
}

.highlights {
  background: linear-gradient(100deg, #7d1458 0%, #a91e76 45%, #c22c8b 100%);
  color: #fff;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(18, 16, 20, 0.22);
}

.highlight-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  color: #fff;
}

.day-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #3a343f;
  border-radius: 13px;
  background: rgba(18, 16, 20, 0.6);
  animation: cover-lit 10s infinite;
}

.day-list li:nth-child(2) { animation-delay: 2.5s; }
.day-list li:nth-child(3) { animation-delay: 5s; }
.day-list li:nth-child(4) { animation-delay: 7.5s; }

.day-list i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.day-list span {
  min-width: 0;
  color: #e4dee5;
  font-size: 0.97rem;
  line-height: 1.3;
}

.day-list b {
  color: #fff;
}

.day-list em {
  padding: 5px 12px;
  border: 1px solid rgba(242, 132, 191, 0.5);
  border-radius: 999px;
  color: #f284bf;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .day-list li {
    animation: none;
  }
}
