/* makebeats — static pages (pricing, contact, terms).
   Deliberately self-contained: the app's styles.css is built around the
   sequencer's layout custom properties, so the marketing/legal pages ship their
   own minimal sheet with no CDN, fonts or framework dependencies. */

:root {
  color-scheme: dark;
  --bg: #07080c;
  --panel: #101320;
  --panel-2: #161a2b;
  --line: #232838;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --lime: #b6ff3d;
  --cyan: #4dd2ff;
  --pink: #ff4dd2;
  --amber: #ffd45d;
  --max: 1000px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -0.002em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgba(182, 255, 61, 0.07), transparent 60%),
    radial-gradient(50rem 36rem at 100% 0%, rgba(77, 210, 255, 0.06), transparent 60%);
}

a { color: var(--lime); }

.wrap { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--lime); color: #06130a; padding: 10px 14px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---- Top bar ---- */

.top {
  position: sticky; top: 0; z-index: 5;
  backdrop-filter: blur(10px);
  background: rgba(7, 8, 12, 0.82);
  border-bottom: 1px solid var(--line);
}
.top-inner { display: flex; align-items: center; gap: 18px; height: 60px; }

/* The wordmark mirrors the app header exactly: a lime rounded square with the
   dark bar glyph drawn inside it, "make" solid and "beats" wearing the same
   rainbow gradient, then the little EQ meter. */
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none;
}
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--lime); color: #05130a;
  display: grid; place-items: center;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-title { font-weight: 800; letter-spacing: 0.02em; font-size: 15px; }
.brand-rainbow {
  color: var(--lime);
  background-image: linear-gradient(90deg,
    #ff4d4d 0%, #ff9f43 20%, #ffe14d 40%, #b6ff3d 55%, #4dd2ff 75%, #b06bff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; margin-left: 2px; opacity: 0.9; }
.eq i { width: 3px; height: 4px; background: var(--lime); border-radius: 2px; }

.top nav { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--text); }

/* ---- Shared bits ---- */

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn.primary { background: var(--lime); color: #06130a; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.wide { display: block; width: 100%; }

.eyebrow {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 14px; }
h2 { font-size: clamp(21px, 3.4vw, 27px); line-height: 1.2; letter-spacing: -0.025em; margin: 44px 0 12px; }
h3 { font-size: 17px; margin: 26px 0 8px; }
p { margin: 0 0 15px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); }

main { padding: 54px 0 72px; }
section { margin-bottom: 8px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
}

.page-head { margin-bottom: 12px; }

/* ---- Pricing ---- */

.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; margin: 34px 0 8px; align-items: start; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.plan.pro { border-color: rgba(182, 255, 61, 0.45); box-shadow: 0 0 0 1px rgba(182, 255, 61, 0.14); position: relative; }
.plan-name { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.plan.pro .plan-name { color: var(--lime); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 4px; }
.plan-price strong { font-size: clamp(38px, 7vw, 52px); letter-spacing: -0.04em; line-height: 1; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 600; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; }
.plan li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 11px; height: 7px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  transform: rotate(-45deg);
}
.plan li.off { color: var(--muted); }
.plan li.off::before { border-color: var(--line); }
.badge {
  position: absolute; top: -11px; right: 20px;
  background: var(--lime); color: #06130a; font-size: 10px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px;
}

.note { margin-top: 22px; }

.faq { margin-top: 8px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; padding: 15px 0; font-weight: 650; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 16px; color: var(--muted); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---- Prose (terms) ---- */

.prose { max-width: 72ch; }
.prose h2 { border-top: 1px solid var(--line); padding-top: 26px; }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }

.callout {
  border-left: 3px solid var(--amber); background: rgba(255, 212, 93, 0.06);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; font-size: 14px;
}

/* ---- Contact ---- */

.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; margin-top: 30px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .k { width: 120px; flex: 0 0 auto; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding-top: 2px; }
.contact-row .v { min-width: 0; }
.contact-row .v a { word-break: break-word; }
.contact-row .v small { display: block; color: var(--muted); margin-top: 3px; }

/* ---- Footer ---- */

footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; }
/* One row: nav pushed right, copyright pushed left on narrow screens and
   sharing the row on wide ones. align-items is explicit so the links and the
   copyright keep a common baseline when the row wraps. */
.foot-inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px 24px;
}
.foot-links { order: 2; display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; line-height: 1.6; }
.foot-links a:hover { color: var(--text); }
footer.site .fine { order: 1; margin: 0; }
