/* E-bard's Soundlab sales site.
   Colours follow App Package DESIGN-GUIDE.md (dark slate surfaces, ivory text, amber = selected / focus ring,
   ivory fill = the one main action). Each app's identity colour comes from bundle.config.json. */
:root {
  --bg: #11151b; --panel: #181e26; --panel-2: #1e252f; --raised: #252d38; --line: #333d4a;
  --ink: #ebe3cf; --ink-2: #b9b3a3; --dim: #929baa; --amber: #ffa62b;
  --drums: #43b7a8; --practice: #d42a2a; --practice-nav: #7d9bb8; --vocal: #0F7A63; --narrator: #2A5A8C;
  /* Lighter tints of the two dark identity colours, taken from those apps' own dark themes, for text on dark. */
  --vocal-tint: #4FD1AE; --narrator-tint: #8CB5E4;
  --c: var(--ink); --c-text: var(--ink);
  --wrap: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: .01em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
.eyebrow { display: block; margin-bottom: .6rem; color: var(--c-text); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 62ch; }
.muted { color: var(--dim); }
.small { font-size: .9rem; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(17, 21, 27, .94); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav [aria-current] { display: inline-block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.nav [aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--c); border-radius: 0; }
.nav .nav-buy { margin-left: 8px; background: var(--ink); color: var(--bg); font-weight: 700; }
.nav .nav-buy:hover { background: #fff; color: var(--bg); }
.menu { display: none; }
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; min-height: 46px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); font-weight: 700; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary svg { width: 14px; height: 14px; fill: currentColor; }
  .menu[open] summary svg { transform: rotate(180deg); }
  .menu-list { position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: grid; gap: 2px; }
  .menu-list a, .menu-list [aria-current] { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; border-radius: 10px; text-decoration: none; }
  .menu-list a:hover { background: var(--panel-2); }
  .menu-list [aria-current] { color: var(--dim); }
  .menu-list .mark.mini { width: 30px; height: 30px; border-radius: 8px; }
  .menu-list .mark.mini svg { width: 19px; height: 19px; }
  .menu-list .nav-buy { margin-top: 6px; justify-content: center; background: var(--ink); color: var(--bg); font-weight: 700; }
}

/* ---------- buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--raised); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn.main { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.main:hover { background: #fff; color: var(--bg); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 72px);
  background: radial-gradient(1100px 520px at 50% 58%, #1b2330 0%, rgba(17, 21, 27, 0) 70%); }
.hero-text { text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.1rem, 5.8vw, 4rem); letter-spacing: .015em; }
.hero .lead { margin: 14px auto 0; }
.hero-points { list-style: none; max-width: 980px; margin: 24px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); grid-auto-flow: column; gap: 18px 36px; text-align: left; color: var(--ink-2); }
.hero-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 14px; }
@media (max-width: 760px) {
  .hero-points { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; gap: 16px; }
}
.hero .btns { justify-content: center; margin-top: 26px; }
.beta { display: inline-block; vertical-align: middle; margin-left: 12px; padding: 2px 9px; border: 1px solid var(--ink-2); border-radius: 6px; color: var(--ink-2); font-size: .8rem; letter-spacing: .08em; }
/* The studio drawing and its animation live in img/studio-scene.svg; site.js places it inline in .scene-slot. */
.scene-wrap { max-width: 1080px; margin: clamp(20px, 3.5vw, 36px) auto 0; }
.scene-slot { aspect-ratio: 1200 / 640; border-radius: 18px; overflow: hidden; background: #0b0e13; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.scene { display: block; width: 100%; height: 100%; }
/* The pause button sits under the picture, in its own row, so it never covers part of the scene. */
.scene-ctrl { display: flex; justify-content: flex-end; margin-top: 12px; }
.motion-btn { min-height: 44px; padding: 0 16px; font-size: .85rem; border-radius: 999px; }
.motion-btn[hidden] { display: none; }
@media (max-width: 700px) {
  .scene-slot { border-radius: 12px; }
  .scene-ctrl { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .motion-btn { display: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 + p { margin-top: 14px; }

/* app cards on the home page */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); gap: 20px; }
.app-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; background: var(--panel-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.app-card .shot-crop { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.app-card .shot-crop img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.app-card .body { padding: 22px 24px 8px; }
.app-card h3 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.app-card p { color: var(--ink-2); margin-top: 10px; }
.app-card ul { margin: 0 0 8px; padding-left: 1.1em; color: var(--ink-2); }
.app-card ul li { margin: 4px 0; }
.app-card .foot { padding: 8px 24px 24px; }
.mark {
  width: 40px; height: 40px; border-radius: 11px; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 48%, rgba(0, 0, 0, .2)), var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 2px 4px rgba(0, 0, 0, .45), 0 6px 12px rgba(0, 0, 0, .3);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}
.app-card:hover .mark, .other:hover .mark, .other:focus-visible .mark {
  transform: translateY(-3px) scale(1.04); filter: brightness(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 6px rgba(0, 0, 0, .45), 0 10px 18px rgba(0, 0, 0, .35);
}
.other:active .mark {
  transform: translateY(1px) scale(.97); filter: brightness(.96); transition-duration: .06s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 1px 2px rgba(0, 0, 0, .5);
}
@media (prefers-reduced-motion: reduce) {
  .mark { transition: none; }
  .app-card:hover .mark, .other:hover .mark, .other:focus-visible .mark, .other:active .mark { transform: none; }
}
.mark svg { width: 22px; height: 22px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--c-text); }
.link-arrow:hover { color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; fill: currentColor; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.feature { background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 14px; }
.section.alt .feature { background: var(--bg); }
.feature h3 { margin-bottom: 10px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.feature p, .feature li { color: var(--ink-2); font-size: .97rem; }
.feature ul { margin: 0 0 1em; padding-left: 1.1em; }
.feature li { margin: 3px 0; }
.feature b { color: var(--ink); font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0 !important; margin: 0 0 1em; }
.tag-list li { margin: 0 !important; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .86rem !important; color: var(--ink-2); background: var(--panel); }

/* ideas */
.ideas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; counter-reset: idea; }
.idea { position: relative; padding: 24px 22px 12px 22px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); }
.idea::before { counter-increment: idea; content: counter(idea, decimal-leading-zero); display: block; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--c-text); font-size: .85rem; letter-spacing: .1em; margin-bottom: 8px; }
.idea h3 { margin-bottom: 8px; }
.idea p { color: var(--ink-2); font-size: .97rem; }
.idea .uses { font-size: .85rem; color: var(--dim); }

/* screenshots */
.shots { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.shots.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
figure { margin: 0; }
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shot.phone { border-radius: 22px; border-width: 6px; border-color: #2a323d; max-width: 320px; margin: 0 auto; }
figcaption { margin-top: 10px; color: var(--dim); font-size: .9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 28px 24px; }
@media (max-width: 760px) { .shots, .shots.reverse { grid-template-columns: 1fr; } }

/* app page hero */
.app-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(900px 420px at 80% 10%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.app-hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); display: flex; align-items: center; gap: 16px; }
.app-hero h1 .mark { width: 56px; height: 56px; border-radius: 15px; }
.app-hero h1 .mark svg { width: 30px; height: 30px; }
.app-hero .lead { margin-top: 16px; }
.app-hero .btns { margin-top: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--ink-2); font-size: .95rem; }
.facts li { display: flex; align-items: baseline; gap: 8px; }
.facts b { font-size: 1.3rem; color: var(--ink); font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 860px) { .app-hero-grid { grid-template-columns: 1fr; } }

/* together */
.together { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 18px; }
.together .feature h3::before { display: none; }
.flow { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.flow .mark { width: 32px; height: 32px; border-radius: 9px; }
.flow .mark svg { width: 18px; height: 18px; }
.flow .arrow { width: 18px; height: 18px; fill: var(--dim); }

/* note */
.note { border-left: 3px solid var(--c); background: var(--panel-2); padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: .95rem; max-width: 820px; }
.note b { color: var(--ink); }

/* buy */
.buy { text-align: center; }
.buy-box { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 48px); background: var(--panel-2); border: 1px solid var(--line); border-radius: 20px; }
.buy-box h2 { margin-bottom: 12px; }
.soon { display: inline-block; margin: 6px 0 16px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--ink-2); font-weight: 700; letter-spacing: .06em; }
.buy-box .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* other apps strip */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.other { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); border-left: 5px solid var(--c); text-decoration: none; }
.other:hover { border-color: var(--c); color: var(--ink); }
.other span { display: block; }
.other .name { font-weight: 700; }
.other .blurb { color: var(--dim); font-size: .9rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--dim); font-size: .92rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-nav a { color: var(--ink-2); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-nav [aria-current] { color: var(--dim); }

/* per-app identity */
.app-drums { --c: var(--drums); --c-text: var(--drums); }
.app-practice { --c: var(--practice); --c-text: #ee8a8a; }
.app-vocal { --c: var(--vocal); --c-text: var(--vocal-tint); }
.app-narrator { --c: var(--narrator); --c-text: var(--narrator-tint); }

@media (max-width: 700px) {
  body { font-size: 15px; }
  .section { padding: 52px 0; }
  .feature, .idea { padding: 18px 18px 8px; }
  .app-card .body { padding: 18px 18px 6px; }
  .app-card .foot { padding: 6px 18px 20px; }
}
