/* sale.composerforge.com (later composerforge.com): design A ("members match").
   The members platform's look, made bigger for easy reading:
   white cards on pale grey, Manrope headings, the logo's indigo,
   the five track colours as card tops. */

@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Colour tokens. tests/check-contrast.mjs reads the pairs listed in it from here. */
:root {
  --brand: #4c51bf;          /* the logo's indigo; 6.5:1 on white */
  --brand-dark: #434190;
  --brand-wash: #eef0fd;
  --brand-text-on: #ffffff;
  --promise-text: #f4f5ff;   /* card text on the indigo band */
  --ink: #1a202c;
  --body: #2d3748;
  --muted: #4a5568;
  --border: #e2e8f0;
  --field-border: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
  --disabled-bg: #e2e8f0;
  --disabled-text: #4a5568;
  --footer-bg: #1a202c;
  --footer-text: #cbd5e0;
  --v1-bg: #2d3748;
  --v1-text: #e2e8f0;
  --ok-bg: #f0fdf4;
  --ok-text: #276749;
  --notice-bg: #fffbeb;
  --notice-text: #78350f;
  --theory: #667eea; --composition: #f56565; --orchestration: #48bb78; --production: #ed8936; --business: #9f7aea;
  --radius: 12px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --kb-lit: #4c51bf;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg-alt); color: var(--body); font: 20px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.section--white { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--tight-top { padding-top: 0; }
.eyebrow { font: 700 17px/1.3 var(--font-heading); color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.lead { font-size: 23px; color: var(--muted); max-width: 40em; }
.center { text-align: center; }
.small { font-size: 18px; color: var(--muted); margin-top: 12px; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--brand); padding: 12px 18px; z-index: 50; font-weight: 700; }
.skip:focus { left: 16px; top: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 14px 28px; border-radius: 10px;
  font: 700 20px/1.2 var(--font-heading); text-decoration: none; border: 2px solid var(--brand); cursor: pointer; }
.btn--primary { background: var(--brand); color: var(--brand-text-on); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--brand); }
.btn--ghost:hover { background: var(--brand-wash); }
.btn[aria-disabled="true"] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-text); cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); font: 800 26px/1 var(--font-heading); letter-spacing: -0.01em; white-space: nowrap; }
.brand img { height: 52px; width: auto; display: block; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 19px; }
.top nav a:hover { color: var(--brand); text-decoration: underline; }
.top .btn { min-height: 50px; padding: 10px 20px; font-size: 18px; }

/* sale strip on the homepage (shown only while the sale is on, by site.js) */
.strip { background: var(--ink); color: #fff; padding: 14px 0; font-size: 19px; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; text-align: center; }
.strip a { color: #fff; font-weight: 700; }

/* hero */
.hero { background: #fff; padding: 72px 0 88px; border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.proof { margin-top: 28px; color: var(--muted); font-size: 19px; }
.proof b { color: var(--ink); }

/* drawn lesson illustration */
.mock { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 22px; box-shadow: 0 10px 30px rgba(26,32,44,.08); margin: 0; }
.mock__bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--composition) 0 62%, #e2e8f0 62%); margin-bottom: 18px; }
.mock__card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.mock__q { font: 700 20px/1.35 var(--font-heading); color: var(--ink); margin-bottom: 14px; }
.kb svg { width: 100%; height: auto; display: block; }
.mock__row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 17px; color: var(--muted); }
.mock__ok { background: var(--ok-bg); color: var(--ok-text); border-radius: 6px; padding: 6px 12px; font-weight: 700; }
.mock figcaption { font-size: 17px; color: var(--muted); margin-top: 12px; text-align: center; }

/* features */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.card p { color: var(--muted); margin: 0; }
.card .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-wash); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.card--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.sketch { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 0; }
.sketch svg { width: 100%; height: auto; display: block; }
.sketch figcaption { font-size: 17px; color: var(--muted); margin-top: 8px; }

/* tracks */
.tracks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.track { background: #fff; border: 1px solid var(--border); border-top: 8px solid var(--c); border-radius: var(--radius); padding: 24px 20px; display: flex; flex-direction: column; }
.track--theory { --c: var(--theory); }
.track--composition { --c: var(--composition); }
.track--orchestration { --c: var(--orchestration); }
.track--production { --c: var(--production); }
.track--business { --c: var(--business); }
.track h3 { font-size: 23px; margin-bottom: 8px; }
.track p { font-size: 18px; color: var(--muted); flex: 1; }
.track .st { font-weight: 700; font-size: 17px; color: var(--ink); }
.dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); background: #fff; }
.dot.is-live { background: var(--c); }
.dot.is-making { background: color-mix(in srgb, var(--c) 35%, #fff); }
.note { margin-top: 28px; font-size: 19px; }

/* promises */
.promise { background: var(--brand); color: #fff; }
.promise h2, .promise h3 { color: #fff; }
.promise .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); }
.promise .card p { color: var(--promise-text); }

/* about */
.about .box { max-width: 820px; }
.stats { display: flex; gap: 36px; margin: 8px 0 26px; flex-wrap: wrap; }
.stats div { font-size: 18px; color: var(--muted); }
.stats b { display: block; font: 800 40px/1.1 var(--font-heading); color: var(--brand); }

/* signup forms (post straight to Kit) */
.signup { background: #fff; border-top: 1px solid var(--border); }
.signup .box { max-width: 760px; }
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 12px; margin-top: 24px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 18px; color: var(--ink); }
.form input { font: inherit; min-height: 58px; padding: 10px 14px; border: 2px solid var(--field-border); border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-wash); }
.form .btn { align-self: end; }

/* footer */
.v1note { background: var(--v1-bg); color: var(--v1-text); padding: 18px 0; font-size: 18px; }
.v1note a { color: #fff; font-weight: 700; }
footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0; font-size: 18px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
footer a { color: #fff; }
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer .brand { color: #fff; }
footer .fine { flex-basis: 100%; margin: 0; font-size: 17px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; cursor: pointer; }

/* ---------- sale page ---------- */
.sale-hero { background: #fff; padding: 64px 0 56px; border-bottom: 1px solid var(--border); text-align: center; }
.sale-hero .lead { margin: 0 auto 1em; }
.badge { display: inline-block; background: var(--ink); color: #fff; font: 800 18px/1.2 var(--font-heading); padding: 10px 16px; border-radius: 8px; letter-spacing: .04em; margin-bottom: 20px; }
.when { font: 700 21px/1.45 var(--font-heading); color: var(--ink); margin: 0 auto 10px; max-width: 34em; }
.count { display: flex; gap: 6px 10px; align-items: baseline; justify-content: center; font-size: 19px; color: var(--muted); margin: 6px 0 0; flex-wrap: wrap; }
.count b { font: 800 34px/1 var(--font-heading); color: var(--ink); }
.ended { font: 800 26px/1.3 var(--font-heading); color: var(--ink); margin: 10px 0 0; }
.notice { background: var(--notice-bg); color: var(--notice-text); border-radius: 10px; padding: 14px 18px; margin: 18px auto 0; max-width: 40em; font-size: 19px; }
.notice a { color: var(--notice-text); font-weight: 700; }
.offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-items: stretch; max-width: 1000px; margin: 0 auto; }
.offer { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; position: relative; }
.offer--pick { border-color: var(--brand); box-shadow: 0 12px 30px rgba(76,81,191,.16); }
.offer .tag { position: absolute; top: -16px; left: 28px; background: var(--brand); color: #fff; font: 700 16px/1 var(--font-heading); padding: 8px 12px; border-radius: 6px; }
.offer h3 { margin-bottom: 6px; }
.offer .sum { color: var(--muted); margin: 0; }
.price { font: 800 54px/1 var(--font-heading); color: var(--ink); margin: 14px 0 6px; }
.later { font-weight: 700; color: var(--ink); font-size: 18px; margin: 0 0 2px; }
.once { color: var(--muted); font-size: 18px; margin-bottom: 18px; }
.offer ul { padding: 0; margin: 0 0 24px; list-style: none; flex: 1; }
.offer li { padding: 8px 0 8px 32px; position: relative; font-size: 19px; border-top: 1px solid var(--border); }
.offer li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 16px; height: 9px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.offer .excl { font-size: 18px; color: var(--muted); margin: -10px 0 20px; }
.upgrade { text-align: center; font: 700 21px/1.45 var(--font-heading); color: var(--ink); max-width: 36em; margin: 32px auto 0; }
.offer .btn { width: 100%; }
.mods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 32px; }
.mods ol { margin: 0; padding-left: 1.6em; }
.mods li { padding: 4px 0; }
.mods .card h3 { border-bottom: 4px solid var(--c); padding-bottom: 8px; }
.free { margin-top: 24px; }
.free ul { margin: 0; padding-left: 1.2em; }
.guarantee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 32px; }
.seal { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--brand); display: grid; place-items: center; text-align: center; font: 800 20px/1.1 var(--font-heading); color: var(--brand); }
details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 20px 24px; font: 700 21px/1.35 var(--font-heading); color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 28px; line-height: 1; color: var(--brand); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 24px 20px; color: var(--body); }
details > div p:last-child { margin-bottom: 0; }
.faq { max-width: 860px; }

/* sale states: body[data-sale] is set by sale.js. Without JavaScript none of
   these show, so no buy button can appear outside the sale. */
.when-before, .when-during, .when-after { display: none; }
body[data-sale="before"] .when-before,
body[data-sale="during"] .when-during,
body[data-sale="after"] .when-after { display: revert; }
body[data-sale="before"] .btn.when-before,
body[data-sale="during"] .btn.when-during,
body[data-sale="after"] .btn.when-after,
body[data-sale="before"] .count.when-before,
body[data-sale="during"] .count.when-during { display: flex; }
.js-only { display: none; }
body[data-sale] .js-only { display: revert; }

/* plain text pages (legal, thanks, 404) */
.prose { max-width: 800px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 46px); }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose .updated { color: var(--muted); font-size: 18px; }
.draft { background: var(--notice-bg); color: var(--notice-text); border-radius: 10px; padding: 14px 18px; font-size: 19px; }
.page { background: #fff; padding: 64px 0 88px; }

/* cookie banner (Google Analytics only loads after "Accept") */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 2px solid var(--border); box-shadow: 0 -6px 20px rgba(26,32,44,.08); padding: 14px 0; }
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.consent p { margin: 0; flex: 1 1 22em; font-size: 18px; color: var(--body); }
.consent .btns { gap: 10px; }
.consent .btn { min-height: 54px; padding: 10px 22px; font-size: 19px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3, .mods { grid-template-columns: minmax(0, 1fr); }
  .card--wide { grid-column: auto; grid-template-columns: minmax(0, 1fr); }
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .offers { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
}
@media (max-width: 560px) {
  body { font-size: 19px; }
  .lead { font-size: 21px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 21px; gap: 8px; } .brand img { height: 40px; }
  .top .wrap { gap: 12px; min-height: 72px; }
  .top .btn { font-size: 17px; padding: 8px 14px; white-space: nowrap; }
  .guarantee { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .offer { padding: 30px 20px; }
  .price { font-size: 46px; }
  .card { padding: 24px; }
  .consent .btns { width: 100%; }
  .consent .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .consent, .top nav, .strip { display: none !important; } }
