:root {
  --red: #a78bfa;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #0b0b0b;
  font-family: Arial, Helvetica, sans-serif;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  display: none;
}

html.is-embedded,
html.is-embedded body {
  background: transparent;
}

button {
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.services-window {
  min-height: 100vh;
  padding: clamp(22px, 3.4vw, 42px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.services-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(250px, 390px);
  gap: clamp(18px, 3vw, 44px);
  align-items: end;
  margin-bottom: clamp(24px, 3.2vw, 36px);
}

.eyebrow,
.tier-number {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.intro,
.tier-copy,
.service-path p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.55;
  text-wrap: pretty;
}

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

.tier-card,
.service-path {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.tier-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 454px;
  padding: clamp(16px, 2.3vw, 24px);
  border-color: var(--red);
  background:
    linear-gradient(145deg, rgba(167, 139, 250, 0.18), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.07);
}

.tier-card h2 {
  margin: -2px 0 0;
  font-size: clamp(1.5rem, 2.7vw, 2.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.tier-price {
  margin: -5px 0 0;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-best {
  margin: 0;
  padding: 11px 12px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.48;
  text-wrap: pretty;
}

.tier-best strong {
  margin-right: 4px;
  color: var(--red);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tier-card ul {
  display: grid;
  gap: 9px;
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.87rem;
  line-height: 1.35;
}

.tier-card li::before {
  content: "+";
  margin-right: 8px;
  color: var(--red);
  font-weight: 900;
}

.tier-work {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.tier-work span {
  flex: 1 0 100%;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tier-work button {
  min-height: 27px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.62rem;
}

.tier-card button,
.path-actions button {
  min-height: 42px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.tier-card .tier-work button {
  min-height: 27px;
  padding: 0 9px;
  background: linear-gradient(135deg, rgba(109, 70, 190, 0.96), rgba(48, 28, 92, 0.9));
  font-size: 0.62rem;
}

button:hover,
button:focus-visible,
button:active {
  background: linear-gradient(135deg, #a78bfa, #5b35ad);
  outline: 0;
  transform: translateY(-2px);
}

.service-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
}

.service-path strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.94rem;
}

.path-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

@media (max-width: 880px) {
  .services-header,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .tier-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .services-window {
    padding: 20px 16px 24px;
  }

  .service-path {
    align-items: stretch;
    flex-direction: column;
  }

  .path-actions button {
    flex: 1;
  }
}
