/* Marketing landing page. Reuses tokens.css and components.css. */

.page-shell { position: relative; overflow: clip; }
.page-shell::before {
  content: "";
  position: absolute;
  inset: -260px auto auto 50%;
  width: min(1100px, 140vw);
  height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--glow-one), transparent 66%);
  pointer-events: none;
  z-index: 0;
}
main { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 44px; }
.hero__inner { max-width: 780px; text-align: center; }
.hero h1 { margin: 14px 0 0; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lede { margin: 18px auto 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--ink-secondary); }

/* One action: paste a link. */
.start {
  max-width: 660px;
  margin: 32px auto 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.start__field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 4px 12px;
  background: var(--surface-2);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}
.start__field:focus-within { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .14); }
.start__icon { width: 18px; height: 18px; color: var(--ink-tertiary); }
.start__input { flex: 1; min-width: 0; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; }
.start__input::placeholder { color: var(--ink-tertiary); }
.start__input:focus { outline: none; }
.start__submit { flex-shrink: 0; }
.start__hint { margin: 8px 2px 0; font-size: 12px; line-height: 1.5; color: var(--ink-tertiary); }
.start__hint[data-state="ok"] { color: var(--positive-strong); }
.start__hint[data-state="warn"] { color: var(--warning); }

.start__or { display: flex; align-items: center; gap: 12px; margin: 14px 2px; color: var(--ink-tertiary); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.start__or::before, .start__or::after { content: ""; flex: 1; height: 1px; background: var(--stroke); }

.start__file { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; }
.start__formats { margin: 0; font-size: 12px; color: var(--ink-tertiary); }

.start__status { display: grid; gap: 8px; margin-top: 14px; }
.start__status-label { margin: 0; font-size: 12px; color: var(--ink-secondary); }
.start__error { margin-top: 10px; }
.start > .auth-link { margin-top: 8px; }
.start__trust { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--stroke); font-size: 12.5px; color: var(--ink-secondary); text-align: center; }
.start__trust .icon { width: 14px; height: 14px; color: var(--positive); vertical-align: -2px; margin-right: 4px; }
.start__trust span[aria-hidden] { color: var(--ink-tertiary); }

/* ---------- example result ---------- */
.example { padding: 20px 0 76px; }
.example__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: 1040px; margin: 0 auto 12px; }
.example__heading h2 { font-size: 15px; font-weight: 600; color: var(--ink); }
.example__caption { font-size: 12px; color: var(--ink-tertiary); }
.example__card { max-width: 1040px; margin-inline: auto; padding: 0; overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface); }
.example__head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--stroke); }
.example__song { display: flex; align-items: center; gap: 12px; min-width: 0; }
.example__art {
  width: 52px; height: 52px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: linear-gradient(140deg, #3b3630 8%, #8a5f43 46%, #e2a071 74%, #2c2823 100%);
  position: relative;
  overflow: hidden;
}
.example__art::after { content: ""; position: absolute; inset: auto 0 0; height: 44%; background: #221f1b; clip-path: polygon(0 58%, 22% 16%, 46% 68%, 74% 8%, 100% 52%, 100% 100%, 0 100%); }
.example__title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.example__meta { font-size: 12px; color: var(--ink-tertiary); margin-top: 1px; }

.example__body { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 24px; padding: 18px 20px 20px; }

.sheet { display: grid; gap: 4px; align-content: start; min-width: 0; }
.sheet__section { margin: 14px 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-tertiary); }
.sheet__section:first-child { margin-top: 0; }
.line { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 2px 16px; padding: 5px 10px; border-left: 3px solid transparent; border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.line.is-current { background: var(--now-bg); border-left-color: var(--now-bar); }
.cw { display: inline-flex; flex-direction: column; align-items: flex-start; }
.cw strong { font: 700 calc(var(--sheet-size) * .86) / 1.3 var(--font-chord); color: var(--chord); letter-spacing: .01em; }
.cw span { font-size: var(--sheet-size); line-height: 1.4; color: var(--lyric); }
.line--bars { gap: 6px 14px; font: 600 calc(var(--sheet-size) * .82) / 1.5 var(--font-chord); color: var(--chord); padding-block: 2px 6px; }
.line--bars span { color: var(--ink-tertiary); }
.line--bars b { font-weight: 700; color: var(--chord); }

.diagrams { display: grid; align-content: start; gap: 10px; }
.diagrams__title { font-size: 12px; font-weight: 600; color: var(--ink-secondary); }
.diagrams__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.diagram { display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border: 1px solid var(--stroke); border-radius: var(--radius-xs); background: var(--surface-2); }
.diagram__name { font: 700 12px/1.2 var(--font-chord); color: var(--ink); }
.diagram__svg,
.diagram__grid { display: grid; place-items: center; width: 100%; min-width: 0; }
.diagram__svg svg,
.diagram__grid svg { display: block; width: 100%; max-width: 64px; height: auto; color: var(--ink); }
.diagram svg text[text-anchor="middle"] { display: none; }
.diagram__hint { font-size: 10px; color: var(--ink-tertiary); text-align: center; line-height: 1.4; }

.example__foot { display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--player-bg); color: var(--player-ink); }
.example__play { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-on); flex-shrink: 0; }
.example__play .icon { width: 14px; height: 14px; }
.example__time { font: 11px var(--font-chord); color: var(--player-ink); opacity: .8; white-space: nowrap; }
.example__track { flex: 1; height: 5px; border-radius: var(--radius-pill); background: var(--player-track); overflow: hidden; }
.example__track span { display: block; height: 100%; width: 9%; background: var(--accent); }
.example__note { font-size: 11px; color: var(--player-ink); opacity: .7; white-space: nowrap; }

/* ---------- how it works ---------- */
.steps-section { background: var(--surface); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { display: grid; gap: 12px; padding: 22px; background: var(--canvas); border: 1px solid var(--stroke); border-radius: var(--radius-md); }
.step__num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 700; }
.step h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.step p { font-size: 13.5px; line-height: 1.6; color: var(--ink-secondary); }
.step__icon { color: var(--ink-tertiary); }
.step__icon .icon { width: 18px; height: 18px; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 40px; }
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; }
.feature .icon-circle { width: 36px; height: 36px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature p { font-size: 13.5px; line-height: 1.6; color: var(--ink-secondary); }

/* ---------- pricing ---------- */
.pricing-section { background: var(--canvas-secondary); border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.pricing { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 22px; max-width: 940px; margin: 46px auto 0; align-items: stretch; }
.price { position: relative; display: flex; flex-direction: column; padding: 30px 30px 26px; background: var(--surface); border: 1px solid var(--stroke); border-radius: var(--radius-lg); }
.price--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 230px);
  box-shadow: 0 22px 54px rgba(var(--accent-rgb), .16);
}
.price__ribbon { position: absolute; top: -14px; left: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--accent-strong); color: var(--accent-on); font-size: 12.5px; font-weight: 700; letter-spacing: .01em; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .28); }
.price__ribbon .icon { width: 14px; height: 14px; }
.price__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.price__name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.price__desc { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-secondary); }
.price__amount { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.price__now { font-size: 54px; line-height: 1; letter-spacing: -.045em; font-weight: 700; font-variant-numeric: tabular-nums; }
.price__unit { font-size: 15px; font-weight: 600; color: var(--ink-secondary); }
.price__then { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.price--featured .price__then { color: var(--accent-strong); }
.price__timeline { list-style: none; margin: 20px 0 0; padding: 14px 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; background: var(--surface); border: 1px solid rgba(var(--accent-rgb), .28); border-radius: var(--radius-md); }
.price__timeline li { position: relative; display: grid; gap: 2px; padding-left: 18px; font-size: 12.5px; line-height: 1.4; color: var(--ink-secondary); }
.price__timeline li::before { content: ""; position: absolute; left: 0; top: 4px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--accent); background: var(--surface); }
.price__timeline li:first-child::before { background: var(--accent); }
.price__timeline strong { font-size: 13px; color: var(--ink); }
.price__list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; align-content: start; gap: 11px; flex: 1; }
.price__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ink); }
.price__list .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--positive); }
.price .btn { width: 100%; }
.price__fine { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--ink-secondary); }
.price__fine .icon { width: 15px; height: 15px; margin-top: 1px; flex: none; color: var(--positive); }
.price__compare { text-align: center; margin: 24px 0 0; }
.price__compare a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-strong); }
.price__compare .icon { width: 18px; height: 18px; }
.price__assure { list-style: none; max-width: 940px; margin: 34px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.price__assure li { display: flex; gap: 12px; align-items: flex-start; }
.price__assure .icon { width: 20px; height: 20px; margin-top: 1px; flex: none; color: var(--accent-strong); }
.price__assure span { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-secondary); }
.price__assure strong { font-size: 14px; color: var(--ink); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 32px auto 0; border-top: 1px solid var(--stroke); }
.faq details { border-bottom: 1px solid var(--stroke); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 2px; font-size: 14.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 18px; height: 18px; color: var(--ink-tertiary); transition: transform var(--motion-fast); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details[open] summary { color: var(--ink); }
.faq p { padding: 0 2px 16px; font-size: 13.5px; line-height: 1.65; color: var(--ink-secondary); max-width: 660px; }
.faq p a { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .example__body { grid-template-columns: minmax(0, 1fr); }
  .diagrams__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .diagrams__hint { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding: 52px 0 34px; }
  .hero__lede { font-size: 15.5px; }
  .start { padding: 12px; border-radius: var(--radius-md); }
  .start__field { flex-wrap: wrap; padding: 8px; }
  .start__input { flex-basis: 100%; height: 34px; }
  .start__submit { width: 100%; }
  .start__file { align-items: stretch; flex-direction: column; }
  .start__file .btn { width: 100%; }
  .example__heading { flex-direction: column; gap: 4px; }
  .example__body { padding: 14px; gap: 16px; }
  .example__head { padding: 13px 14px; }
  .diagrams__grid { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .diagram { flex: 0 0 72px; }
  .example__foot { padding: 9px 14px; gap: 9px; }
  .example__note { display: none; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .pricing { grid-template-columns: 1fr; margin-top: 40px; }
  .price { padding: 26px 22px 22px; }
  .price__now { font-size: 46px; }
  .price__timeline { grid-template-columns: 1fr; gap: 10px; }
  .price__assure { grid-template-columns: 1fr; gap: 16px; margin-top: 28px; }
  .features { grid-template-columns: 1fr; gap: 22px; }
  .section-head { text-align: left; }
  .section-head .section-subtitle { margin-inline: 0; }
  .footer__inner { flex-direction: column; }
}