/* songco.de/pricing/: free with your own key, the plans, the API and MCP
   server. Built on public/blog/blog.css (tokens, header, footer, buttons,
   hero). Page markup: pricingPage() in scripts/build-blog.mjs. */

.pr-hero { padding-bottom: 40px; }

.pr-jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pr-jump a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-2);
  font-size: 14px;
  transition: color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.pr-jump a:hover { background: var(--surface-1); color: var(--text); }

.pr-section { padding-block: 56px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--head-h) + 8px); }

.pr-h {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}
.pr-lede { margin-top: 14px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.pr-note { margin-top: 20px; color: var(--text-3); font-size: 14px; line-height: 1.55; }
.pr-section code {
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
  font: 0.86em var(--font-mono);
  overflow-wrap: anywhere;
}

/* ———— your own key ———— */

.pr-key {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pr-free, .pr-plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
.pr-free { margin-top: 18px; color: var(--accent); font-size: clamp(44px, 6vw, 64px); }
.pr-free small, .pr-plan-price small { color: var(--text-3); font-size: 15px; font-weight: 400; letter-spacing: 0; }

.pr-checks { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; align-self: center; }
.pr-checks li { position: relative; padding-left: 28px; color: var(--prose); font-size: 15.5px; line-height: 1.5; }
.pr-checks li::before {
  content: '';
  position: absolute;
  top: 0.4em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--text-2);
  border-left: 2px solid var(--text-2);
  transform: rotate(-45deg);
}

/* ———— plans ———— */

.pr-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; }
.pr-plan {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pr-plan-name { color: var(--text-2); font: 500 14px var(--font-mono); }
.pr-plan-price { margin-top: 14px; font-size: 40px; }
.pr-plan-size { margin-top: 18px; color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pr-plan-guide { margin-top: 6px; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.pr-plan-go { margin-top: auto; padding-top: 24px; }
.pr-soon {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font: 12px var(--font-mono);
}
.pr-plan-go .btn { width: 100%; }

/* ———— tuned composition: the plan's quality bar, as the app draws it
   (public/styles.css, .segmented.premium), walking up to ultra. Picked,
   ultra sets off the same burst of pixels (public/ultra-field.js) ———— */

.pr-tuned {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  margin-top: 16px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 50%, rgba(184, 255, 46, 0.06), rgba(184, 255, 46, 0) 60%),
    var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pr-tuned-h { color: var(--text); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
.pr-tuned-copy p { margin-top: 12px; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.pr-tuned-copy p b { color: var(--text); font-weight: 600; }
.pr-tuned-more a { color: var(--accent); text-decoration: none; }
.pr-tuned-more a:hover { text-decoration: underline; }

.pr-tuned-demo { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-q-title { display: flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 13px; }
.pr-q-tuned {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.02em;
}
.pr-qbar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 11px;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) padding-box,
    linear-gradient(115deg, var(--accent-line), rgba(184, 255, 46, 0.06) 35%, rgba(184, 255, 46, 0.06) 65%, var(--accent-line)) border-box;
  isolation: isolate;
  transition: box-shadow 0.5s var(--ease);
}
.pr-qbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: 500 14px var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.pr-qbar button:hover { color: var(--text); }
.pr-qbar button[aria-pressed='true'] { color: var(--accent); }
.pr-qbar button:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.pr-q-thumb {
  position: absolute;
  z-index: -1;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / 4);
  border-radius: 9px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(184, 255, 46, 0.18), rgba(184, 255, 46, 0) 70%), var(--surface-4);
  box-shadow: inset 0 0 0 1px rgba(184, 255, 46, 0.32), 0 0 18px rgba(184, 255, 46, 0.1), 0 1px 3px rgba(0, 0, 0, 0.35);
  transform: translateX(calc(var(--i, 1) * 100%));
  transition: transform 0.42s var(--ease), background 0.3s var(--ease);
}
.pr-q-field {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
.pr-q-sparks { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; }
.pr-q-ultra > span { display: inline-flex; align-items: center; gap: 6px; }
.pr-q-mark { flex: none; width: 10px; height: 10px; fill: currentColor; transition: transform 0.7s var(--ease-spring), fill 0.3s var(--ease); }

.pr-qbar.ultra-on { box-shadow: 0 0 28px -8px var(--accent-line); animation: pr-q-wake 0.62s var(--ease-spring); }
.pr-qbar.ultra-on .pr-q-field { opacity: 1; }
.pr-qbar.ultra-on button:not(.pr-q-ultra) { color: var(--text-3); }
.pr-qbar.ultra-on .pr-q-thumb {
  background: rgba(18, 22, 8, 0.62);
  box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 16px rgba(184, 255, 46, 0.18);
  backdrop-filter: blur(1.5px);
}
.pr-qbar.ultra-on .pr-q-mark { fill: var(--accent); transform: rotate(180deg) scale(1.25); }
.pr-qbar.ultra-on .pr-q-ultra-name { font-weight: 700; }
.pr-q-note { min-height: 1.5em; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
@keyframes pr-q-wake {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pr-q-thumb, .pr-q-mark, .pr-q-field { transition: none; }
  .pr-qbar.ultra-on { animation: none; }
}

.pr-sub { margin-top: 56px; color: var(--text); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

.pr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.pr-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.pr-card {
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.pr-card h4 { color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pr-card p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.pr-card-lg { padding: 28px; }
.pr-card p.pr-card-big { margin-top: 10px; color: var(--text); font-size: 28px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.pr-card p.pr-card-big + p { margin-top: 14px; }

.pr-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pr-links-center { justify-content: center; margin-top: 32px; }

.pr-closing { padding-block: 72px 24px; text-align: center; }
.pr-closing .pr-lede { max-width: 40em; margin-inline: auto; }

@media (max-width: 900px) {
  .pr-tuned { grid-template-columns: 1fr; }
  .pr-key { grid-template-columns: 1fr; gap: 28px; }
  .pr-plans, .pr-grid { grid-template-columns: 1fr 1fr; }
  .pr-plans > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .pr-plans, .pr-grid, .pr-grid-2 { grid-template-columns: 1fr; }
  .pr-section { padding-block: 44px; }
  .pr-plan { padding: 22px; }
  .pr-qbar button { font-size: 13px; }
}
