/* Solo — AI song & music maker
   Two themes on one layout: [data-platform="ios"] (yellow) and [data-platform="android"] (violet). */

:root,
[data-platform="ios"] {
  --ink: #0a0908;
  --surface: #161513;
  --surface-2: #211f1c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f7f4ee;
  --muted: #a9a399;
  --a1: #fe9511;
  --a2: #fff75a;
  --accent: #ffc53a;            /* solid accent for text, borders, focus */
  --grad: linear-gradient(90deg, var(--a1) 0%, var(--a2) 100%);
  --on-accent: #1d1200;         /* text on gradient buttons */
  --glow: rgba(254, 149, 17, 0.38);
  --glow-2: rgba(255, 247, 90, 0.16);
}
[data-platform="android"] {
  --ink: #08060f;
  --surface: #141023;
  --surface-2: #1d1733;
  --muted: #a8a0c0;
  --text: #f4f0ff;
  --a1: #ff5fc4;
  --a2: #5b3bff;
  --accent: #ff5fc4;
  --grad: linear-gradient(115deg, #ff5fc4 0%, #8a3ff2 55%, #5b3bff 100%);
  --on-accent: #ffffff;
  --glow: rgba(138, 63, 242, 0.45);
  --glow-2: rgba(255, 95, 196, 0.22);
}

:root {
  --display: "Unbounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(80px + env(safe-area-inset-top, 0px)); background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background-color .3s; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Platform-only content */
[data-platform="ios"] .only-android,
[data-platform="android"] .only-ios { display: none !important; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ink) 75%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 20px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a.btn { color: var(--on-accent); }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 16px;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s, opacity .2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad); color: var(--on-accent); box-shadow: 0 10px 40px -12px var(--glow); }
.btn-primary:hover { box-shadow: 0 14px 50px -10px var(--glow); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Store buttons: own platform = primary, the other = quiet black badge */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 16px;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22);
  transition: transform .15s, box-shadow .2s, border-color .2s;
}
.store:hover { border-color: rgba(255,255,255,.45); }
.store:active { transform: scale(.97); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; opacity: .8; }
.store b { font: 600 19px/1.1 var(--body); letter-spacing: -0.01em; }
[data-platform="ios"] .store-appstore,
[data-platform="android"] .store-gplay {
  background: var(--grad); color: var(--on-accent); border-color: transparent;
  box-shadow: 0 12px 40px -12px var(--glow); order: -1;
}
[data-platform="ios"] .store-gplay,
[data-platform="android"] .store-appstore { min-height: 50px; }
[data-platform="ios"] .store-gplay b,
[data-platform="android"] .store-appstore b { font-size: 16px; }

/* Platform switcher */
.switcher { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.switcher button {
  border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.switcher svg { width: 16px; height: 16px; }
[data-platform="ios"] .switcher [data-set="ios"],
[data-platform="android"] .switcher [data-set="android"] { background: var(--grad); color: var(--on-accent); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 56px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -220px -10% auto; height: 820px; z-index: -1;
  background:
    radial-gradient(38% 46% at 76% 42%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 60% 72%, var(--glow-2), transparent 70%);
}
.hero-grid > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: 56px; }
.hero h1 { font: 700 clamp(44px, 6.6vw, 88px)/0.98 var(--display); letter-spacing: -0.045em; margin: 0 0 24px; }
.hero h1 .line { display: block; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36ch; margin: 0 0 32px; }
.proof { display: flex; align-items: center; gap: 12px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.stars { color: #ffc24a; letter-spacing: 2px; }
.proof strong { color: var(--text); font-weight: 800; }

/* ---------- Interactive create demo ---------- */
.demo {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line); border-radius: 28px; padding: 20px;
  box-shadow: 0 40px 120px -40px var(--glow), 0 1px 0 rgba(255,255,255,.06) inset;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-width: 480px; width: 100%; justify-self: end;
}
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: rgba(255,255,255,.04); padding: 4px; border-radius: 14px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px; padding: 9px 6px; border-radius: 10px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--grad); color: var(--on-accent); }
.panel { border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 18px; padding: 14px; min-height: 150px; background: rgba(0,0,0,.25); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 700; font-size: 14px; }
.mini-btn { border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); color: var(--accent); background: none; border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.mini-btn:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.panel textarea {
  width: 100%; min-height: 84px; resize: none; border: 0; background: none; color: var(--text);
  font: 500 15px/1.45 var(--body); padding: 0; outline: none;
}
.panel textarea::placeholder { color: #6f6a62; }
.drop { display: grid; place-items: center; gap: 8px; text-align: center; min-height: 104px; border: 1px dashed var(--line); border-radius: 14px; cursor: pointer; color: var(--muted); font-size: 14px; position: relative; overflow: hidden; }
.drop:hover { border-color: var(--accent); color: var(--text); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 28px; height: 28px; }
.demo-label { font-size: 13px; font-weight: 700; color: var(--muted); margin: 16px 0 8px; }
.choice { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.choice::-webkit-scrollbar { display: none; }
.choice button {
  flex: none; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.choice button[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.demo .btn { width: 100%; margin-top: 18px; }
.result { display: none; margin-top: 14px; padding: 12px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.result.show { display: block; }
.result-row { display: flex; align-items: center; gap: 12px; }
.cover { width: 52px; height: 52px; border-radius: 12px; background: var(--grad); flex: none; display: grid; place-items: center; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover svg { width: 22px; height: 22px; color: var(--on-accent); }
.result-title { font: 600 16px/1.2 var(--display); letter-spacing: -0.02em; }
.result-tags { font-size: 12px; color: var(--muted); margin-top: 3px; }
.playbtn { margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: #000; cursor: pointer; display: grid; place-items: center; flex: none; }
.playbtn svg { width: 16px; height: 16px; }
.wave { display: flex; align-items: center; gap: 3px; height: 30px; margin-top: 12px; }
.wave i { flex: 1; background: var(--grad); border-radius: 2px; height: 22%; }
.result.playing .wave i { animation: bar 1s ease-in-out infinite alternate; }
.result-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.result-note a { color: var(--accent); font-weight: 700; }
.progress { height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 12px; display: none; }
.progress.show { display: block; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 1.8s cubic-bezier(.3,.7,.3,1); }
@keyframes bar { from { height: 18%; } to { height: var(--h, 80%); } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head h2 { font: 700 clamp(32px, 4.2vw, 52px)/1.04 var(--display); letter-spacing: -0.035em; margin: 0 0 16px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.head-row > div { max-width: 660px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; position: relative; overflow: hidden; }
.feature h3 { font: 600 23px/1.15 var(--display); letter-spacing: -0.025em; margin: 18px 0 10px; }
.feature p { color: var(--muted); margin: 0; max-width: 44ch; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.feature .ico svg { width: 24px; height: 24px; }
.span-3 { grid-column: span 3; }
.span-2 { grid-column: span 2; }
.feature.lit { background: radial-gradient(90% 120% at 100% 100%, var(--glow), transparent 60%), var(--surface); }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 16px; border: 1px solid var(--line); border-radius: 24px; }
.extras div { padding: 22px 26px; }
.extras div + div { border-left: 1px solid var(--line); }
.extras b { display: block; font-weight: 800; margin-bottom: 4px; }
.extras span { color: var(--muted); font-size: 15px; }

/* Gallery: stays inside the content column, cards fit exactly */
.gallery-wrap {
  width: min(var(--wrap), 100% - 40px); margin-inline: auto;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 4px 0 8px;
}
.gallery-wrap::-webkit-scrollbar { display: none; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; }
.gallery figure { margin: 0; min-width: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; aspect-ratio: 786 / 1704; object-fit: cover; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); }
.gallery-nav { display: flex; gap: 10px; }
.gallery-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: opacity .15s, background .15s; }
.gallery-nav button:hover:not(:disabled) { background: var(--surface-2); }
.gallery-nav button:disabled { opacity: .35; cursor: default; }
.gallery-nav svg { width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .gallery { grid-auto-columns: calc((100% - 2 * 16px) / 3); gap: 16px; }
}
@media (max-width: 640px) {
  .gallery { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
  .gallery img { border-radius: 18px; }
}

/* How songs work */
.balance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bal { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.bal h3 { font: 600 21px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.bal .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.bal p { color: var(--muted); margin: 0; }
.order-note { margin-top: 20px; color: var(--muted); font-size: 15px; display: flex; gap: 10px; align-items: center; }
.order-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan.best { border: 1.5px solid var(--accent); background: radial-gradient(100% 70% at 50% 0%, var(--glow-2), transparent 70%), var(--surface); }
.badge { position: absolute; top: -13px; right: 24px; background: var(--grad); color: var(--on-accent); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; }
.plan h3 { font: 600 18px/1.2 var(--display); margin: 0 0 18px; color: var(--muted); letter-spacing: -0.01em; }
.price { font: 700 44px/1 var(--display); letter-spacing: -0.04em; }
.price small { font: 600 16px/1 var(--body); color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.per { color: var(--muted); font-size: 15px; margin: 10px 0 0; min-height: 24px; }
.plan ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan .btn { width: 100%; }
.packs { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; padding: 24px 30px; border-radius: 24px; border: 1px dashed var(--line); }
.packs h3 { font: 600 20px/1.2 var(--display); margin: 0 0 4px; letter-spacing: -0.02em; }
.packs p { margin: 0; color: var(--muted); font-size: 15px; }
.pack-chips { display: flex; gap: 8px; }
.pack-chips { flex-wrap: wrap; }
.pack-chips button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s; }
.pack-chips button b { font-weight: 800; font-size: 15px; }
.pack-chips button span { color: var(--accent); font-weight: 700; font-size: 14px; }
.pack-chips button:hover:not(:disabled) { border-color: var(--accent); }
.pack-chips button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[data-product]:disabled { cursor: progress; opacity: .6; }
[data-product].loading { opacity: 1; }
.plan button.btn { font: inherit; font-weight: 700; cursor: pointer; }
.pay-msg { min-height: 1.4em; margin: 14px 0 0; color: var(--accent); font-size: 15px; font-weight: 600; }
.pay-msg:empty { margin: 0; }
.fine { color: var(--muted); font-size: 13px; margin-top: 20px; max-width: 90ch; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font: 600 19px/1.3 var(--display); letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--body); color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* CTA */
.cta { text-align: center; border-radius: 40px; padding: 72px 24px; background: radial-gradient(60% 80% at 50% 0%, var(--glow), transparent 70%), var(--surface); border: 1px solid var(--line); }
.cta > img { width: 88px; height: 88px; border-radius: 24px; margin: 0 auto 28px; box-shadow: 0 20px 60px -10px var(--glow); }
.cta h2 { font: 700 clamp(34px, 5vw, 62px)/1.02 var(--display); letter-spacing: -0.04em; margin: 0 auto 16px; max-width: 16ch; }
.cta p { color: var(--muted); margin: 0 auto 32px; max-width: 46ch; }
.cta .stores { justify-content: center; }
.qrs { display: flex; justify-content: center; gap: 28px; margin-top: 36px; }
.qrs figure { margin: 0; display: grid; justify-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.qrs img { width: 112px; height: 112px; border-radius: 14px; padding: 6px; background: #fff; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { color: var(--text); font: 600 17px/1.3 var(--display); margin: 0 0 10px; letter-spacing: -0.01em; }
.footer-grid p { margin: 0 0 8px; max-width: 48ch; }
.footer-grid a { color: var(--text); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Inner pages ---------- */
.page { padding: 64px 0 40px; }
.page-head { margin-bottom: 40px; }
.page-head h1 { font: 700 clamp(36px, 5vw, 60px)/1.02 var(--display); letter-spacing: -0.04em; margin: 0 0 12px; }
.page-head p { color: var(--muted); margin: 0; }
.prose { max-width: 72ch; color: color-mix(in srgb, var(--text) 85%, var(--muted)); }
.prose h2 { font: 600 22px/1.3 var(--display); color: var(--text); letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p, .prose li { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.contact-card dt { color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.contact-card dd { margin: 0; font: 600 18px/1.4 var(--display); letter-spacing: -0.01em; word-break: break-word; }
.contact-card a { text-decoration: none; color: var(--accent); }


/* ---------- Hero stage: phone + animated prompt card ---------- */
.stage { position: relative; display: grid; place-items: center; min-height: 580px; }
.phone {
  width: min(290px, 64vw); aspect-ratio: 9 / 19.5; border-radius: 44px; overflow: hidden; background: #000;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 120px -30px var(--glow), inset 0 0 0 6px #000;
  transform: rotate(4deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.prompt-card {
  position: absolute; left: 0; bottom: 12%; width: min(340px, 88%);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px; padding: 18px 18px 16px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.75); transform: rotate(-3deg);
}
.prompt-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; justify-content: space-between; }
.prompt-label span:last-child { color: var(--accent); font-weight: 700; }
.prompt-text { font: 600 17px/1.35 var(--body); min-height: 46px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.prompt-out { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.pc-play { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; flex: none; }
.pc-play svg { width: 13px; height: 13px; fill: var(--on-accent); margin-left: 2px; }
.pc-wave { display: flex; align-items: center; gap: 3px; height: 30px; flex: 1; }
.pc-wave i { flex: 1; background: var(--grad); background-size: 1600% 100%; border-radius: 2px; height: 20%; transition: height .25s ease; }
.prompt-card.is-playing .pc-wave i { animation: bar 1.1s ease-in-out infinite alternate; }
.song-meta { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 18px; }
@keyframes blink { 50% { opacity: 0; } }

/* Try-it section */
.try { padding-top: 40px; }
.try-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 56px; align-items: center; }
.try-grid > * { min-width: 0; }
.try .demo { justify-self: end; }
@media (max-width: 1000px) {
  .try-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .try .demo { justify-self: stretch; }
}


/* ---------- Legal pages ---------- */
.legal { padding-top: 56px; overflow-x: clip; }
.legal-head { position: relative; padding: 8px 0 36px; isolation: isolate; }
.legal-head::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -160px; width: 620px; height: 420px; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .6; pointer-events: none; }
.legal-head h1 { font: 700 clamp(38px, 5.5vw, 68px)/1 var(--display); letter-spacing: -0.045em; margin: 0 0 18px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.legal-meta span { font-size: 14px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.legal-meta span:first-child { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.legal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.legal-actions svg { width: 18px; height: 18px; }

.glance { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding: 32px; border-radius: 28px; background: radial-gradient(80% 140% at 0% 0%, var(--glow-2), transparent 60%), var(--surface); border: 1px solid var(--line); margin-bottom: 64px; }
.glance-intro h2 { font: 600 24px/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 8px; }
.glance-intro p { color: var(--muted); font-size: 15px; margin: 0; }
.glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.glance-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; color: var(--accent); }
.glance-card p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }

.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); }
.toc summary { list-style: none; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 12px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.35; transition: color .15s, border-color .15s; }
.toc a::before { content: counter(toc); min-width: 16px; color: color-mix(in srgb, var(--muted) 60%, transparent); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); border-left-color: var(--accent); }
.toc a.active::before { color: var(--accent); }

.legal .prose { max-width: 70ch; font-size: 16.5px; line-height: 1.75; }
.legal-section { padding: 8px 0 28px; scroll-margin-top: 100px; }
.legal-section + .legal-section { border-top: 1px solid var(--line); padding-top: 32px; }
.legal .prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 16px; font-size: 24px; }
.legal .prose h2 .num { font: 700 14px/1 var(--display); color: var(--accent); min-width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); transform: translateY(-3px); flex: none; }
.legal .prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 0 0 18px; }
.legal .prose ul li { position: relative; padding: 12px 16px 12px 40px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; line-height: 1.5; }
.legal .prose ul li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 20px; }
.service { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .15s, background .15s; }
.service:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--surface-2); }
.service b { font-weight: 800; font-size: 15px; }
.service span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 700; }
.service svg { width: 14px; height: 14px; }

.callout { position: relative; padding: 24px 26px; border-radius: 20px; background: radial-gradient(100% 140% at 100% 0%, var(--glow-2), transparent 60%), var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.callout-label { display: inline-block; font-size: 13px; font-weight: 800; color: var(--on-accent); background: var(--grad); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.callout p { margin: 0; color: var(--text); }

.legal-contact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 24px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.legal-contact h3 { font: 600 20px/1.2 var(--display); margin: 0 0 4px; letter-spacing: -0.02em; color: var(--text); }
.legal-contact p { margin: 0; color: var(--muted); font-size: 15px; }
.legal-contact svg { width: 18px; height: 18px; }

@media (max-width: 1000px) {
  .glance { grid-template-columns: 1fr; gap: 20px; padding: 26px; margin-bottom: 40px; }
  .legal-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; }
  .toc summary { margin: 0; cursor: pointer; color: var(--text); font-size: 15px; display: flex; justify-content: space-between; }
  .toc summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
  .toc details[open] summary::after { content: "\2212"; }
  .toc details[open] summary { margin-bottom: 12px; }
}
@media (max-width: 640px) {
  .glance-grid, .services { grid-template-columns: 1fr; }
  .legal .prose h2 { font-size: 20px; }
}
@media print {
  .site-header, .site-footer, .toc, .legal-actions, .legal-contact, .legal-head::before { display: none !important; }
  body, .glance, .callout, .service, .legal .prose ul li { background: #fff !important; color: #000 !important; }
  .legal-grid, .glance { display: block; }
  .prose, .glance-card p, .callout p { color: #000 !important; }
}

/* Links styled as buttons or cards inside prose keep their own colors */
.prose a.btn { text-decoration: none; }
.prose a.btn-primary { color: var(--on-accent); }
.prose a.btn-ghost { color: var(--text); }
.prose a.service { color: var(--text); text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .demo { justify-self: stretch; max-width: none; }
  .features { grid-template-columns: 1fr 1fr; }
  .span-3, .span-2 { grid-column: span 1; }
  .features .feature:first-child { grid-column: span 2; }
  .extras, .balance, .plans { grid-template-columns: 1fr; }
  .extras div + div { border-left: 0; border-top: 1px solid var(--line); }
  .plan.best { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .stage { min-height: 520px; }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: color-mix(in srgb, var(--ink) 97%, transparent); border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 14px 0; font-size: 17px; }
  .nav-links .btn { margin-top: 8px; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .features .feature:first-child { grid-column: auto; }
  .feature { padding: 26px; border-radius: 24px; }
  .gallery-nav, .qrs { display: none; }
  .stores .store { flex: 1 1 100%; justify-content: center; }
  .cta { border-radius: 28px; padding: 56px 20px; }
  .head-row { display: block; }
}
@media (hover: none) and (pointer: coarse) { .qrs { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
