.tag-page {
  --tag-gutter: clamp(20px, 5vw, 104px);
  --tag-rule: rgb(3 4 11 / 20%);
  cursor: auto;
}

.tag-page a, .tag-page button { cursor: pointer; }
.tag-page [hidden] { display: none; }
.tag-page :focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.tag-page section[id] { scroll-margin-top: var(--head); }

.tag-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.tag-skip:focus { transform: none; }

.tag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: var(--tag-gutter);
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--head);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.tag-header nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
}

.tag-header nav a { text-decoration: none; }
.tag-nav-demo:hover { text-decoration: underline; text-underline-offset: 4px; }

.tag-header-buy {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding-inline: 14px;
  border: 1px solid var(--line);
}

.tag-header-buy:hover { background: var(--paper); color: var(--ink); }
.tag-page .btn { min-height: 52px; text-transform: uppercase; }

.tag-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  align-items: center;
  min-height: min(750px, calc(100svh - var(--head)));
  overflow: hidden;
  isolation: isolate;
}

.tag-hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(58px, 8vw, 125px) 12px clamp(50px, 7vw, 106px) var(--tag-gutter);
  animation: tag-enter .65s cubic-bezier(.2,.75,.3,1) both;
}

.tag-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  font-size: 11px;
  letter-spacing: .14em;
}

.tag-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}

.tag-hero .tag-kicker, .tag-workflow .tag-kicker { color: var(--ice); }

.tag-hero h1 {
  font-size: clamp(58px, 8.05vw, 160px);
  letter-spacing: -.03em;
  line-height: .82;
}

.tag-hero h1 > span { display: block; white-space: nowrap; }
.tag-dot { color: var(--blue-hi); }

.tag-lead {
  max-width: 34ch;
  margin: 26px 0;
  color: rgb(235 233 227 / 80%);
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1.45;
}

.tag-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-formats { margin: 24px 0 0; color: var(--ice); line-height: 1.7; }
.tag-formats span { margin-inline: 4px; }

.tag-hero-art {
  position: relative;
  align-self: stretch;
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 0;
  margin: 0;
  padding: 48px var(--tag-gutter) 48px 16px;
}

.tag-plate {
  position: absolute;
  inset: 0 0 0 7%;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 38%, transparent 5%, rgb(3 4 11 / 24%) 47%, var(--ink) 95%),
    var(--blue);
  clip-path: polygon(19% 0, 100% 0, 100% 100%, 0 100%);
}

.tag-plate::before, .tag-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tag-plate::before {
  background: radial-gradient(circle at center, var(--ink) 1px, transparent 1.4px) 0 0 / 5px 5px;
  opacity: .62;
  mask-image: linear-gradient(145deg, black 7%, transparent 55%, black 100%);
}

.tag-plate::after {
  background: var(--noise) center / 185px;
  opacity: .26;
  mix-blend-mode: soft-light;
}

.tag-plate-wave {
  --wave: #c6cfff;
  position: absolute;
  right: -13%;
  bottom: 1%;
  width: 126%;
  height: auto;
  opacity: .48;
  transform: rotate(-10deg);
}

.tag-editor {
  width: min(100%, 740px);
  border: 1px solid rgb(235 233 227 / 36%);
  background: var(--ink);
  box-shadow: 10px 18px 0 rgb(3 4 11 / 56%), 0 24px 55px rgb(3 4 11 / 45%);
  transform: rotate(-3deg);
  animation: tag-editor-enter .9s cubic-bezier(.2,.75,.3,1) both;
}

.tag-editor img, .tag-design img { display: block; width: 100%; height: auto; }

.tag-hero-art > figcaption {
  position: relative;
  margin-top: 22px;
  color: var(--paper);
  text-shadow: 0 1px 5px var(--ink);
}

.tag-hero-art > figcaption span { margin-left: 6px; }
.tag-hero-art > figcaption a { text-underline-offset: 4px; }

@keyframes tag-enter {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

@keyframes tag-editor-enter {
  from { opacity: 0; transform: translateY(20px) rotate(-1deg); }
  to { opacity: 1; transform: rotate(-3deg); }
}

.tag-section { padding: clamp(56px, 8vw, 128px) var(--tag-gutter); }

.tag-section h2 {
  font-size: clamp(49px, 6.35vw, 116px);
  letter-spacing: -.026em;
  line-height: .87;
}

.tag-section h2 em { font-style: normal; }

.tag-demos {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(25px, 5vw, 100px);
  background: var(--paper);
  color: var(--ink);
}

.tag-demo-copy { position: sticky; top: calc(var(--head) + 32px); }
.tag-demo-copy em { color: var(--blue); }

.tag-demo-copy > p:last-child {
  max-width: 33ch;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

.tag-tracks, .tag-steps { margin: 0; padding: 0; list-style: none; }
.tag-tracks { border-top: 1px solid var(--tag-rule); }
.tag-tracks li { border-bottom: 1px solid var(--tag-rule); }

.tag-track-button {
  --wave: #263cff;
  --wave-progress: #03040b;
  display: grid;
  grid-template-columns: 24px 36px minmax(106px, .68fr) minmax(0, 1.32fr) 37px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 61px;
  padding: 6px 9px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color .18s;
}

.tag-track-button:hover, .tag-track-button.is-playing { background: rgb(34 51 255 / 9%); }
.tag-track-button:focus-visible { outline-offset: -2px; }
.tag-track-index { opacity: .68; }

.tag-play {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
}

.tag-play::before {
  content: "";
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
  transform: translateX(1px);
}

.is-playing .tag-play { background: var(--blue); border-color: var(--blue); color: white; }
.is-playing .tag-play::before {
  width: 8px;
  height: 10px;
  border: 0;
  border-inline: 2px solid currentColor;
  transform: none;
}

.tag-track-name { font-size: 15px; font-weight: 750; line-height: 1.15; }
.tag-track-wave { display: block; width: 100%; height: 31px; }
.tag-track-duration { text-align: right; opacity: .72; }
.tag-native { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 7px 0; }
.tag-native audio { width: min(100%, 280px); }
.tag-player-status { margin: 12px 0 0; }
.tag-player-status:empty { display: none; }

.tag-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .83fr);
  align-items: center;
  gap: clamp(30px, 7vw, 130px);
  background: radial-gradient(ellipse at 100% 60%, var(--navy), transparent 57%), var(--ink);
}

.tag-workflow h2 em { color: var(--ice); }
.tag-steps { margin-top: 32px; counter-reset: workflow; }
.tag-steps li {
  counter-increment: workflow;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.tag-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  padding-top: 3px;
  color: var(--ice);
  font: 500 11px var(--f-mono);
}

.tag-steps li:last-child { border-bottom: 1px solid var(--line); }
.tag-steps h3 { margin: 0; font-size: 18px; }
.tag-steps p { max-width: 47ch; margin: 5px 0 0; color: rgb(235 233 227 / 78%); line-height: 1.46; }

.tag-design { margin: 0; min-width: 0; }
.tag-design img { border: 1px solid var(--line); }
.tag-design-label { display: block; margin-top: 14px; color: var(--ice); }

.tag-voice-preview {
  max-width: 420px;
  margin: 0 0 18px;
  border-block: 1px solid var(--line);
}

.tag-voice-preview .tag-design-label { margin-top: 10px; }
.tag-voice-preview .tag-track-button {
  --wave: #aab6ff;
  --wave-progress: #fff;
  grid-template-columns: 34px minmax(95px, .8fr) minmax(0, 1.2fr) 32px;
  min-height: 48px;
  padding-inline: 0;
}

.tag-voice-preview .tag-track-button:hover, .tag-voice-preview .tag-track-button.is-playing {
  background: rgb(198 207 255 / 10%);
}

.tag-hero-terms { margin: 12px 0 0; color: var(--paper); font-size: 13px; line-height: 1.45; }
.tag-hero-terms + .tag-formats { margin-top: 8px; }

.tag-purchase {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: end;
  gap: clamp(30px, 7vw, 130px);
  background: var(--blue);
  color: white;
}

.tag-purchase h2 { font-size: clamp(60px, 8.3vw, 156px); }
.tag-purchase h2 span { color: var(--ice); }
.tag-price { display: flex; align-items: end; gap: 16px; margin: 0 0 24px; }
.tag-price strong { font-size: clamp(58px, 6vw, 100px); }
.tag-price span { line-height: 1.5; }
.tag-offer h3 { margin: 0 0 10px; font-size: 19px; }
.tag-offer dl { margin: 0; border-top: 2px solid currentColor; }
.tag-offer dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(255 255 255 / 40%);
}

.tag-offer dt { font-weight: 750; }
.tag-offer dd { margin: 0; font-family: var(--f-mono); text-align: right; }
.tag-offer p { max-width: 50ch; line-height: 1.5; }
.tag-page .tag-checkout { width: 100%; background: var(--ink); border-color: var(--ink); color: white; }
.tag-page .tag-checkout:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tag-checkout-note { margin: 9px 0 0; }

.tag-lite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: clamp(28px, 5vw, 64px) var(--tag-gutter);
  background: var(--navy);
}
.tag-lite h2 { margin: 0; font-size: clamp(21px, 2.5vw, 34px); }
.tag-lite p { margin: 8px 0 0; max-width: 49ch; color: var(--ice); line-height: 1.45; }

@media (max-width: 900px) {
  .tag-hero { grid-template-columns: 1fr; min-height: 0; }
  .tag-hero-copy { padding: 48px var(--tag-gutter) 26px; }
  .tag-hero h1 { font-size: clamp(58px, 12vw, 105px); }
  .tag-hero-art { justify-items: center; padding: 25px var(--tag-gutter) 28px; }
  .tag-plate { inset: 0; clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 100%); }
  .tag-editor { max-width: 570px; }
  .tag-demos { grid-template-columns: 1fr; }
  .tag-demo-copy { position: static; }
}

@media (max-width: 640px) {
  .tag-header { gap: 12px; }
  .tag-nav-demo { display: none; }
  .tag-header-buy { padding-inline: 10px; gap: 7px; }
  .tag-hero-copy { padding-top: 37px; }
  .tag-hero .tag-kicker { margin-bottom: 18px; }
  .tag-hero h1 { font-size: clamp(47px, 12.9vw, 80px); }
  .tag-lead { margin-block: 20px; }
  .tag-formats { margin-top: 16px; }
  .tag-hero-art { padding-top: 14px; }
  .tag-editor { width: 96%; }
  .tag-actions .btn { gap: 10px; padding-inline: 12px; }
  .tag-workflow, .tag-purchase { grid-template-columns: 1fr; }
  .tag-track-button { grid-template-columns: 34px minmax(99px, .9fr) minmax(0, 1.1fr) 30px; gap: 8px; padding-inline: 4px; }
  .tag-track-index { display: none; }
  .tag-track-name { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .tag-hero-copy, .tag-editor { animation: none; }
  .tag-track-button { transition: none; }
}
