.official-plans {
  --ease: cubic-bezier(.2, .8, .2, 1);
}
.official-plans :focus-visible {
  outline-color: var(--cyan);
}
.official-plans button, .official-plans select {
  font: inherit;
}
.preview-ribbon {
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}
.preview-ribbon .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 8px;
}
.preview-ribbon a {
  color: var(--fog);
  text-decoration: none;
}
.ribbon-detail { color: var(--fog); }
.plans-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding-block: 54px 38px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(48px, 5.2vw, 74px);
  font-weight: 720;
  letter-spacing: -.045em;
  line-height: 1.02;
}
.hero-copy p {
  margin: 22px 0 0;
  color: var(--fog);
  font-size: 18px;
  line-height: 1.5;
}
.billing-control { flex: 0 0 310px; }
.billing-control > p {
  margin: 12px 0 0;
  color: var(--dim);
  font-size: 14px;
  text-align: center;
}
.period-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
  padding: 5px;
}
.period-switch__track {
  position: absolute;
  inset: 5px auto 5px 5px;
  width: calc(50% - 5px);
  background: var(--raised);
  border: 1px solid #50535d;
  border-radius: 8px;
  transition: transform .3s var(--ease);
}
.period-switch[data-period="week"] .period-switch__track { transform: translateX(100%); }
.period-switch button {
  position: relative;
  padding: 11px 8px;
  border: 0;
  border-radius: 8px;
  color: var(--fog);
  background: transparent;
  cursor: pointer;
  font-weight: 650;
  font-size: 16px;
}
.period-switch button[aria-checked="true"] { color: var(--paper); }
.build-plate {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: radial-gradient(circle at center, #2d2f37 0 1.5px, #191a20 2px 4px, transparent 4.6px) 0 0 / 24px 24px, #121319;
}
.plate-caption {
  position: absolute;
  top: 19px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 13px;
}
.plan-towers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
  padding: 76px 26px 0;
}
.plan-tower {
  --face: #23252c;
  --seam: rgba(240, 244, 248, .08);
  --edge: #4b4e59;
  --text: var(--paper);
  --secondary: var(--fog);
  position: relative;
  min-width: 0;
  height: var(--height);
  padding: 0;
  border: 1px solid var(--edge);
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: repeating-linear-gradient(to bottom, transparent 0 55px, var(--seam) 55px 56px), var(--face);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transform-origin: center bottom;
  transition: background-color .3s, border-color .3s, color .25s;
}
.plan-tower::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 10px;
  right: 10px;
  height: 12px;
  background: radial-gradient(ellipse 9px 12px at 50% 100%, var(--face) 0 95%, transparent 100%) 0 0 / 32px 12px repeat-x;
  filter: drop-shadow(0 -1px 0 var(--edge));
}
.plan-tower::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 10px;
  border-left: 1px solid rgba(0, 0, 0, .12);
  background: rgba(0, 0, 0, .13);
  border-radius: 0 6px 0 0;
  pointer-events: none;
}
.plan-tower[data-tier="creator"] { --face: #292c34; }
.plan-tower[data-tier="developer"] { --face: #30333c; }
.plan-tower[data-tier="studio_owner"] { --face: #393d47; }
.plan-tower:hover { --edge: #9ea3b0; }
.plan-tower[aria-checked="true"] {
  --face: var(--cyan);
  --text: var(--on-accent);
  --secondary: #12394a;
  --seam: rgba(6, 18, 28, .16);
  --edge: #70cef5;
}
.plan-tower:focus-visible { outline-offset: 5px; z-index: 1; }
.tower-body {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 21px 13px;
  z-index: 1;
}
.tower-name {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 670;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.tower-status {
  align-self: flex-start;
  margin-top: 6px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}
.plan-tower[aria-checked="true"] .tower-status { color: var(--on-accent); }
.plan-tower.is-current { --edge: #8b929e; }
.plan-tower.is-scheduled { --edge: var(--cyan); }
.plan-change-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
}
.plan-change-notice strong { color: var(--paper); font-weight: 600; }
.plan-change-notice p { margin: 3px 0 0; color: var(--fog); font-size: 14px; }
.plan-change-notice a { font-size: 14px; white-space: nowrap; }
.tower-original {
  margin-top: 8px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.2;
  text-decoration-thickness: 1px;
}
.tower-price-note { margin-top: 4px; color: var(--secondary); font-size: 12px; line-height: 1.2; }
.plan-tower.has-upgrade .tower-price { flex-wrap: wrap; gap: 0 5px; margin-top: 1px; }
.plan-tower.has-upgrade .tower-price b { font-size: clamp(30px, 3vw, 40px); }
.plan-tower.has-upgrade .tower-price > span { font-size: 12px; }
.selection-summary .selection-renewal { margin-top: 5px; color: var(--dim); font-size: 13px; }
.membership-notice { margin-top: 10px; color: var(--dim); font-size: 13px; }
[data-retry-membership] { color: var(--cyan); background: transparent; border: 1px solid var(--line-strong); border-radius: 5px; padding: 4px 12px; cursor: pointer; }
.tower-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  line-height: 1.2;
  white-space: nowrap;
}
.tower-price b {
  font: 700 clamp(34px, 3.6vw, 48px)/1.15 var(--font-display);
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums;
}
.tower-price > span {
  color: var(--secondary);
  font-size: 14px;
}
.tower-allowance {
  margin-top: 9px;
  font-size: 16px;
  line-height: 1.35;
}
.tower-allowance b { font-weight: 700; font-variant-numeric: tabular-nums; }
.tower-allowance > span {
  display: block;
  color: var(--secondary);
  font-size: 13px;
}
.tower-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  color: var(--secondary);
}
.tower-check {
  display: grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--secondary);
  border-radius: 50%;
}
.plan-tower[aria-checked="true"] .tower-check {
  border-color: var(--on-accent);
  background: var(--on-accent);
}
.plan-tower[aria-checked="true"] .tower-check::after {
  content: "";
  width: 8px;
  height: 5px;
  margin-top: -2px;
  border: solid var(--cyan);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.selection-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  border-top: 1px solid var(--line-strong);
  background: var(--panel);
}
.selection-summary { display: flex; align-items: center; gap: 18px; }
.selection-summary p { margin: 0; color: var(--fog); font-size: 15px; }
.selection-summary .selection-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px; margin-bottom: 4px; }
.selection-name strong { color: var(--paper); font-family: var(--font-display); font-size: 21px; font-weight: 650; }
.selection-name > span { color: var(--paper); font-size: 17px; }
.selection-action { flex: 0 0 215px; text-align: center; }
.selection-action a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--raised);
  color: var(--fog);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.selection-action svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.selection-action p { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.stage-notes { display: flex; justify-content: space-between; gap: 20px; padding-top: 13px; }
.stage-notes p { margin: 0; color: var(--dim); font-size: 13px; }
.value-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 90px;
  padding-block: 112px;
}
.official-plans h2 { font-size: clamp(34px, 3.3vw, 48px); line-height: 1.08; font-weight: 650; letter-spacing: -.035em; }
.section-intro p { max-width: 34ch; margin: 20px 0 16px; color: var(--fog); }
.section-intro a, .faq-intro a { font-size: 16px; text-decoration: none; }
.value-row { display: grid; grid-template-columns: 110px 1fr 86px; align-items: center; gap: 20px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.value-row > span { color: var(--fog); font-size: 16px; }
.value-row > strong { font: 650 25px/1.2 var(--font-display); text-align: right; }
.value-row strong > span { color: var(--dim); font: 400 13px var(--font-text); }
.value-meter { position: relative; height: 15px; background: #202229; border-radius: 3px; overflow: hidden; }
.value-meter::before { content: ""; display: block; height: 100%; width: var(--fill); background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 2px), var(--night) calc(5% - 2px) 5%), #50545e; transition: background-color .25s; }
.value-row.is-selected > span, .value-row.is-selected > strong { color: var(--cyan); }
.value-row.is-selected .value-meter::before { background-color: var(--cyan); }
.value-note { margin: 15px 0 0; color: var(--dim); font-size: 13px; }
.section-kicker { display: block; margin-bottom: 18px; color: var(--cyan); font-size: 15px; }
.free-section { padding-bottom: 100px; }
.free-slab { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; padding: 45px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--panel); }
.free-heading h2 { font-size: clamp(38px, 3.8vw, 55px); }
.free-heading p { color: var(--fog); font-size: 18px; line-height: 1.5; }
.free-heading .btn { margin-top: 10px; gap: 25px; }
.free-connections article { display: flex; align-items: start; gap: 18px; padding: 14px 0 23px; }
.free-connections article + article { padding-top: 23px; border-top: 1px solid var(--line); }
.connection-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--night); color: var(--cyan); }
.connection-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.free-connections h3 { font-size: 19px; margin-bottom: 8px; }
.free-connections article p { margin: 0; color: var(--fog); font-size: 16px; line-height: 1.5; max-width: 42ch; }
.free-limits { margin: 0; color: var(--dim); font-size: 13px; }
.faq-section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; padding-block: 10px 100px; }
.faq-intro p { color: var(--fog); margin: 20px 0 16px; }
.plan-faq details { border-bottom: 1px solid var(--line-strong); }
.plan-faq details:first-child { border-top: 1px solid var(--line-strong); }
.plan-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; cursor: pointer; list-style: none; line-height: 1.4; }
.plan-faq summary::-webkit-details-marker { display: none; }
.plan-faq summary > span { flex: 0 0 auto; color: var(--cyan); font-size: 25px; line-height: 1; transition: transform .2s; }
.plan-faq details[open] summary > span { transform: rotate(45deg); }
.plan-faq details > div { padding: 0 30px 14px 0; color: var(--fog); font-size: 16px; line-height: 1.6; }
.plans-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; border-top: 1px solid var(--line); padding-block: 32px; }
.plans-footer > p { margin: 0; color: var(--fog); font-size: 15px; }
.plans-footer nav { display: flex; gap: 20px; margin-left: auto; }
.plans-footer nav a { color: var(--fog); font-size: 14px; text-decoration: none; }
.plans-footer small { flex: 0 0 100%; color: var(--dim); font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .plan-tower { animation: place-tower .7s var(--ease) both; animation-delay: calc(var(--order) * 70ms); }
  .plan-tower.is-changing .tower-price, .plan-tower.is-changing .tower-allowance { animation: update-terms .3s var(--ease); }
  @keyframes place-tower { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
  @keyframes update-terms { from { opacity: .4; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
}
@media (max-width: 1100px) {
  .plan-towers { gap: 15px; padding-inline: 20px; }
  .tower-body { padding-inline: 15px; }
  .tower-name { font-size: 21px; }
  .tower-price b { font-size: 40px; }
  .value-section, .faq-section { gap: 48px; }
  .value-row { gap: 12px; grid-template-columns: 105px 1fr 85px; }
}
@media (max-width: 900px) {
  .plans-hero { padding-top: 40px; gap: 25px; }
  .hero-copy h1 { font-size: 55px; }
  .hero-copy p { font-size: 17px; }
  .billing-control { flex-basis: 275px; }
  .desktop-break { display: none; }
  .plan-towers { gap: 13px; padding-inline: 16px; }
  .tower-body { padding-inline: 12px; }
  .tower-name { font-size: 19px; }
  .tower-price { flex-wrap: wrap; gap: 0 4px; }
  .tower-price b { font-size: 35px; }
  .tower-price > span { font-size: 12px; }
  .tower-base { font-size: 12px; }
  .tower-allowance { font-size: 15px; }
  .value-section, .faq-section { gap: 32px; }
  .free-slab { padding: 32px; gap: 40px; }
}
@media (max-width: 740px) {
  .plans-hero { display: block; padding-block: 36px 30px; }
  .hero-copy h1 { font-size: clamp(43px, 8.3vw, 60px); }
  .hero-copy p { margin-top: 17px; max-width: 40ch; }
  .billing-control { margin-top: 26px; max-width: 330px; }
  .billing-control > p { text-align: left; }
  .build-plate { border-radius: 12px; }
  .plate-caption { position: static; padding: 16px 18px 0; font-size: 12px; }
  .plan-towers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 33px 17px; padding: 32px 18px 24px; }
  .plan-tower { height: 250px; border-bottom: 1px solid var(--edge); border-radius: 7px; }
  .plan-tower::after { border-radius: 0 6px 6px 0; width: 7px; }
  .tower-body { padding: 17px 15px 14px; }
  .tower-name { font-size: 21px; }
  .tower-price { margin-top: 10px; }
  .tower-price b { font-size: clamp(31px, 5.6vw, 42px); }
  .tower-price > span { font-size: 13px; }
  .tower-allowance { margin-top: 12px; font-size: 16px; }
  .tower-base { font-size: 12px; gap: 5px; }
  .tower-check { flex-basis: 18px; width: 18px; height: 18px; }
  .selection-strip { display: block; padding: 20px; }
  .selection-summary { gap: 14px; }
  .selection-summary .selection-name { gap: 10px; }
  .selection-name strong { font-size: 20px; }
  .selection-name > span { font-size: 15px; }
  .selection-summary p { font-size: 14px; }
  .selection-action { display: flex; align-items: center; gap: 15px; margin-top: 17px; text-align: left; }
  .selection-action a { width: auto; flex: 0 0 auto; gap: 8px; padding-inline: 13px; font-size: 14px; }
  .selection-action p { margin: 0; }
  .stage-notes { flex-direction: column; gap: 3px; padding-top: 10px; }
  .stage-notes p { font-size: 12px; }
  .value-section { grid-template-columns: 1fr; gap: 25px; padding-block: 65px; }
  .section-intro p { max-width: 40ch; margin-top: 16px; }
  .value-row { grid-template-columns: 112px 1fr 92px; gap: 16px; }
  .free-section { padding-bottom: 60px; }
  .free-slab { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
  .free-heading .btn { margin-top: 3px; }
  .free-heading h2 { font-size: 41px; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; padding-bottom: 60px; }
  .faq-intro h2 br { display: none; }
  .plan-faq summary { font-size: 17px; padding-block: 20px; }
  .plans-footer { gap: 18px; padding-block: 25px; }
  .plans-footer nav { flex: 0 0 100%; margin-left: 0; }
}
@media (max-width: 400px) {
  .ribbon-detail { display: none; }
  .plan-towers { gap: 30px 13px; padding-inline: 12px; }
  .tower-body { padding-inline: 10px; }
  .tower-name { font-size: 18px; }
  .tower-price { flex-direction: column; margin-top: 8px; }
  .tower-price b { font-size: 33px; }
  .tower-price > span { font-size: 12px; }
  .tower-allowance { font-size: 15px; margin-top: 8px; }
  .tower-base { font-size: 11px; }
  .tower-check { flex-basis: 16px; width: 16px; height: 16px; }
  .selection-strip { padding: 17px; }

  .selection-action { gap: 10px; }
  .value-row { grid-template-columns: 100px 1fr 82px; gap: 10px; }
  .value-row > span { font-size: 15px; }
  .value-row > strong { font-size: 23px; }
  .free-slab { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .official-plans *, .official-plans *::before, .official-plans *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


.selection-action a[aria-disabled="true"] { opacity: .55; cursor: default; }
.included-terms { margin: 20px 0; color: var(--fog); line-height: 1.6; }
.included-terms summary { cursor: pointer; }
.included-terms ul { padding-left: 22px; }
[data-retry-shop] { color: var(--cyan); background: transparent; border: 1px solid var(--line-strong); border-radius: 5px; padding: 4px 12px; cursor: pointer; }

.selection-action a[aria-disabled="false"] { background: var(--cyan); border-color: var(--cyan); color: var(--night); font-weight: 700; box-shadow: 0 4px 0 #167ba3; transition: background-color .15s, box-shadow .15s; }
.selection-action a[aria-disabled="false"]:hover { background: #55c4f2; border-color: #55c4f2; }
.selection-action a[aria-disabled="false"]:active { box-shadow: 0 1px 0 #167ba3; }
