* { box-sizing: border-box; }
.plans-page {
  --plan-surface: var(--app-surface);
  --plan-border: var(--app-line);
  --plan-pro-surface: var(--app-tint);
  --plan-emphasis: var(--app-accent);
  --plan-canvas: var(--app-bg);
  --plan-ease: cubic-bezier(.2, .75, .2, 1);
  margin: 0;
  min-height: 100vh;
  background: var(--plan-canvas);
  color: var(--app-ink);
  font: 15px/1.5 system-ui, -apple-system, sans-serif;
}

.plans-page a { color: inherit; text-decoration: none; }
.plans-page :is(a, button):focus-visible { outline: 2px solid var(--app-accent); outline-offset: 4px; }
.plans-header { border-bottom: 1px solid var(--plan-border); }
.plans-header-inner, .plans-main { width: min(1120px, calc(100% - 56px)); margin: auto; }
.plans-header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plans-brand img { display: block; width: 110px; height: auto; }
.plans-nav { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 650; }
.plans-nav .plans-dashboard { color: var(--app-muted); }

.plans-hero {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  min-height: 330px;
  padding: 38px 0;
}

.plans-intro { position: relative; z-index: 1; animation: plans-enter .8s var(--plan-ease) both; }
.plans-kicker { color: var(--plan-emphasis); font-size: 11px; font-weight: 750; letter-spacing: .18em; }
.plans-hero h1 { font-size: clamp(54px, 8.2vw, 102px); line-height: .94; letter-spacing: -.083em; margin: 14px 0 18px; }
.plans-hero h1 em { font-style: normal; color: var(--plan-emphasis); }
.plans-hero p { color: var(--app-muted); max-width: 390px; margin: 0; font-size: 16px; }
.plans-hero .plan-status { margin-top: 12px; color: var(--plan-emphasis); font-size: 13px; }

.plans-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.6;
  animation: artwork-enter 1.05s var(--plan-ease) both;
}

.plans-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 51%, #fa67883e, transparent 66%);
  z-index: -1;
}

.record {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid #e995a7aa;
  background:
    repeating-radial-gradient(circle, #ffd5dd2a 0 1px, transparent 1px 5px),
    conic-gradient(from 110deg, #451124, #da597a, #87304d 30%, #2c1020 46%, #b05a70, #52182c 73%, #f994ad, #451124);
  box-shadow: inset 0 0 26px #250813a0, 13px 24px 55px #40102047;
  transform: rotateX(40deg) rotateY(-20deg) rotateZ(-22deg);
}

.record-label {
  display: grid;
  place-items: center;
  width: 32%;
  aspect-ratio: 1;
  border: 1px solid #ffeff3;
  border-radius: 50%;
  background: #fce1e7;
  color: #3b1423;
  font-size: clamp(15px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.12em;
  box-shadow: 0 0 30px #3c0f2055;
}

.record-orbit {
  position: absolute;
  width: 85%;
  aspect-ratio: 3.6;
  border-radius: 50%;
  border: 1px solid #c35b7799;
  transform: rotate(-25deg);
  box-shadow: 0 0 20px #ed9bb240, inset 0 0 20px #ed9bb220;
}

.record-orbit::after {
  position: absolute;
  content: "";
  right: 10%;
  top: 16%;
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffd5e2;
  box-shadow: 0 0 15px #ff9eb8;
  animation: orbit-light 4s ease-in-out infinite;
}

.plans-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.plan-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--plan-border);
  border-radius: 22px;
  background: var(--plan-surface);
  animation: plans-enter .78s var(--plan-ease) both;
  animation-delay: .13s;
  transition: translate .3s var(--plan-ease), border-color .3s;
}
.plan-pro { animation-delay: .22s; background: var(--plan-pro-surface); border-color: var(--plan-emphasis); }
.plan-label { animation-delay: .31s; }
@media (hover: hover) {
  .plan-card:hover { translate: 0 -4px; border-color: var(--plan-emphasis); }
}

.plan-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; }
.plan-top h2 { margin: 0; font-size: 24px; letter-spacing: -.045em; }
.plan-tag { border: 1px solid var(--plan-border); border-radius: 99px; padding: 3px 8px; color: var(--plan-emphasis); font-size: 11px; white-space: nowrap; }
.plan-card p { color: var(--app-muted); margin: 9px 0 16px; font-size: 14px; }
.plan-price { min-height: 34px; margin-top: auto; margin-bottom: 12px; font-size: 23px; font-weight: 780; letter-spacing: -.035em; }
.plan-price-paid { padding-top: 6px; font-size: 15px; letter-spacing: 0; }
.plans-page .plan-cta { text-align: left; border: 0; font: inherit; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-radius: 11px; padding: 11px 13px; background: var(--app-fill); color: var(--app-ink); font-weight: 750; transition: background .25s, transform .25s var(--plan-ease); }
.plans-page .plan-pro .plan-cta { background: var(--app-action); color: var(--app-action-ink); }
.plans-page .plan-cta:disabled { opacity: .65; cursor: wait; }
.plans-page .plan-cta:hover { transform: translateY(-2px); }
.plan-card ul { list-style: none; padding: 16px 0 0; margin: 17px 0 0; border-top: 1px solid var(--plan-border); font-size: 13px; }
.plan-card li { display: flex; gap: 8px; margin: 0 0 7px; }
.plan-card li::before { content: "✓"; color: var(--plan-emphasis); flex: 0 0 auto; }
.plans-footer { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin: 20px 0 30px; font-size: 12px; color: var(--app-muted); }
.plans-footer a { white-space: nowrap; color: var(--plan-emphasis); font-weight: 700; }

@keyframes plans-enter {
  from { opacity: 0; transform: translateY(22px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes artwork-enter {
  from { opacity: 0; transform: scale(.89) rotate(-10deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes orbit-light {
  50% { opacity: .42; transform: scale(.66); }
}

@media (max-width: 820px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-hero { min-height: 275px; }
}
@media (max-width: 520px) {
  .plans-header-inner, .plans-main { width: calc(100% - 32px); }
  .plans-header-inner { min-height: 62px; }
  .plans-brand img { width: 84px; }
  .plans-nav { gap: 10px; }
  .plans-hero { grid-template-columns: 1fr; padding: 49px 0 24px; }
  .plans-art { position: absolute; z-index: 0; opacity: .5; width: 44%; right: -7px; top: 24px; animation: none; }
  .plans-hero h1 { font-size: clamp(52px, 13vw, 68px); }
  .plans-hero p { font-size: 15px; }
  .plan-card { padding: 21px; }
  .plans-footer { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .plans-page *, .plans-page *::before, .plans-page *::after { animation: none !important; transition: none !important; }
}

.plan-arrow {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}
.plan-arrow::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}
.plan-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: left;
}

@media (min-width: 821px) {
  @supports (grid-template-rows: subgrid) {
    .plans-grid { row-gap: 0; }
    .plan-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
    .plan-price { margin-top: 0; }
  }
}

.payment-status {
  padding: 12px 16px;
  margin: 0 0 16px;
  color: var(--app-ink);
  background: var(--app-fill);
  border: 1px solid var(--app-line);
  border-radius: 12px;
  font-size: 14px;
}
.payment-status[data-state="confirmed"] {
  color: var(--app-accent);
  background: var(--app-tint);
  border-color: var(--app-accent);
}
.payment-status[data-state="error"] {
  color: var(--app-danger);
  background: var(--app-danger-bg);
  border-color: var(--app-danger);
}
.plan-comparison { margin: 48px 0 32px; }
.plan-comparison h2 { margin: 0 0 16px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.045em; }
.plan-table-scroll { overflow-x: auto; border: 1px solid var(--plan-border); border-radius: 16px; background: var(--plan-surface); }
.plan-table-scroll:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 3px; }
.plan-comparison table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; }
.plan-comparison :is(th, td) { padding: 12px 15px; border-bottom: 1px solid var(--plan-border); font-size: 14px; }
.plan-comparison thead th { background: var(--app-fill); white-space: nowrap; }
.plan-comparison tbody th { font-weight: 600; }
.plan-comparison tbody td { color: var(--app-muted); }
.plan-comparison tbody tr:last-child :is(th, td) { border-bottom: 0; }
.plan-comparison .comparison-note { color: var(--app-muted); font-size: 13px; }
