/* Remusic landing page: the v4 App Store look (soft blue gradient, plain headlines, rounded bento tiles). */
:root {
  color-scheme: light;
  --ink: #0B1220;
  --muted: #4A5468;
  --brand: #2457F5;
  --deep: linear-gradient(150deg, #4A76FF 0%, #2457F5 38%, #1A3FC0 72%, #122E8F 100%);
  --bg: #E6ECF7;
  --gap: 14px;
  --r: clamp(16px, 2.4vw, 30px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1100px 900px at 0% 0%, rgba(36, 87, 245, 0.34), transparent 70%),
    radial-gradient(900px 800px at 100% 14%, rgba(86, 156, 255, 0.42), transparent 70%),
    radial-gradient(900px 900px at 0% 42%, rgba(128, 116, 255, 0.22), transparent 70%),
    radial-gradient(1000px 900px at 100% 66%, rgba(36, 87, 245, 0.3), transparent 70%),
    radial-gradient(900px 800px at 10% 92%, rgba(86, 156, 255, 0.36), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-inline: 24px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(236, 241, 250, 0.72); border-bottom: 1px solid rgba(11, 18, 32, 0.06); }
.top-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 8px; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.links a:hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 17px; font-weight: 600; text-decoration: none; box-shadow: 0 10px 28px rgba(36, 87, 245, 0.3); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(36, 87, 245, 0.36); }
.btn:focus-visible { outline: 3px solid rgba(36, 87, 245, 0.45); outline-offset: 3px; }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.8); color: var(--ink); box-shadow: none; border: 1px solid rgba(11, 18, 32, 0.1); }
.btn-ghost:hover { box-shadow: none; background: #fff; }

/* Type */
h1, h2 { margin: 0 auto; text-align: center; font-weight: 500; text-wrap: balance; }
h1 { max-width: 920px; font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.035em; }
h2 { max-width: 900px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
.lead, .sub { margin: 18px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; text-wrap: pretty; }
.sub { font-size: clamp(16px, 1.4vw, 19px); margin-top: 14px; }

/* Sections */
.hero { padding-top: clamp(56px, 8vw, 104px); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.feature { padding-top: clamp(88px, 11vw, 150px); }

/* Bento tiles */
.bento { display: grid; gap: var(--gap); margin-top: clamp(32px, 4vw, 52px); }
.tile { width: 100%; border-radius: var(--r); }
img.tile { height: auto; }
.photo { position: relative; overflow: hidden; min-height: 280px; background: #1B2233; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.stack { display: grid; gap: var(--gap); align-content: start; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.hero-grid { grid-template-columns: 846fr 558fr; }
.sheets-grid { grid-template-columns: 944fr 460fr; }
.play-grid { grid-template-columns: 558fr 846fr; }
.edit-grid { grid-template-columns: 460fr 944fr; }
.export-grid { grid-template-columns: 846fr 558fr; }
.stack.fill { grid-template-rows: 2fr 1fr; align-content: stretch; }

.deep { background: var(--deep); color: #fff; }
.formats { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: clamp(20px, 2.4vw, 30px); }
.formats b { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 7px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 15px; font-weight: 600; }
.chips .on { background: #fff; color: var(--brand); }

/* Wall of musicians */
.wall { position: relative; margin-top: clamp(88px, 11vw, 150px); aspect-ratio: 1440 / 900; max-width: 1440px; padding-inline: 0; overflow: hidden; }
.faces img { position: absolute; left: var(--x); top: var(--y); width: 15.3%; aspect-ratio: 1; object-fit: cover; object-position: var(--pos, 50% 40%); border-radius: var(--r); }
.wall-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px; }
.wall-text > img { width: clamp(64px, 7vw, 104px); height: auto; margin-bottom: 26px; border-radius: 22%; filter: drop-shadow(0 14px 28px rgba(36, 87, 245, 0.3)); }
.wall-text h2 { max-width: 760px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.badges span { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); font-size: 16px; font-weight: 600; }
.badges svg { color: var(--brand); }

/* Pricing */
.pricing { padding-top: clamp(88px, 11vw, 150px); padding-bottom: 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); max-width: 920px; margin: clamp(32px, 4vw, 52px) auto 0; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r); background: rgba(255, 255, 255, 0.9); }
.plan h3 { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.plan h3 small { font-size: 15px; font-weight: 500; opacity: 0.8; letter-spacing: 0; }
.plan p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.plan ul { margin: 6px 0 10px; padding: 0; list-style: none; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.45; }
.plan li::before { content: ''; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: rgba(36, 87, 245, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232457F5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-pro { background: var(--deep); color: #fff; }
.plan-pro p, .plan-pro .plan-note { color: rgba(255, 255, 255, 0.8); }
.plan-pro li::before { background: rgba(255, 255, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-note { margin-top: auto; font-size: 15px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 48px; padding-bottom: 48px; font-size: 14px; color: var(--muted); }
.foot .brand { color: var(--ink); font-size: 17px; margin-right: auto; }
.foot a:not(.brand) { text-decoration: none; }
.foot a:not(.brand):hover { color: var(--ink); }

@media (max-width: 860px) {
  .links { display: none; }
  .top-inner { justify-content: space-between; }
  .hero-grid, .sheets-grid, .play-grid, .edit-grid, .export-grid { grid-template-columns: 1fr; }
  .photo { min-height: 0; aspect-ratio: 4 / 3; }
  .play-grid .photo, .edit-grid .photo { order: 2; }
  .stack.fill { grid-template-rows: none; }
  .plans { grid-template-columns: 1fr; }
  .wall { aspect-ratio: auto; overflow: visible; display: flex; flex-direction: column-reverse; gap: 32px; padding-inline: 24px; }
  .wall-text { position: static; padding: 0; }
  .faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .faces img { position: static; width: 100%; border-radius: 14px; }
}

@media (max-width: 560px) {
  :root { --gap: 10px; }
  .wrap, .wall { padding-inline: 16px; }
  .pair { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .top .btn-small { width: auto; }
  .plan .btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
