/* LoopToSong colour rule, 60-30-10 (Roland 2026-11-11):
     60%  charcoal        #2A2B2A  the ground of every page and section
     30%  deep charcoal   #1B1C1B  alternate sections, cards and panels
     10%  orange          #F06A3B  the main action, the selected state, a key word
   No cream or white bands and no sage green anywhere. Text is off-white #F4F3EC (headings) and #C9CCC5 (body).
   The section colours inside music graphics (intro blue, groove green …) are data and stay.
   This file is loaded last on every page, so it wins over the older cream and sage rules. */

:root {
  /* site.css tokens */
  --bg-flat: #2A2B2A; --bg: none; --panel: #1B1C1B; --key: #232423; --device: #1B1C1B;
  --line: rgba(244, 243, 236, 0.12); --border: rgba(244, 243, 236, 0.28);
  --text: #ECEDE8; --head: #F4F3EC; --muted: #A9ADA8;
  --t300: #F4F3EC; --t400: #F4F3EC; --t500: #F4F3EC; --t600: #C9CCC5; --t700: rgba(244, 243, 236, 0.45);
  --t800: rgba(244, 243, 236, 0.25); --t900: #1B1C1B; --t950: #1B1C1B;
  --accent: #F28A62; --inv: #F4F3EC; --inv-text: #1F201F; --amber: #F06A3B; --orange: #F06A3B;
  --sel: #F06A3B; --sel-shadow: none; --screen: #141514; --rib: #1B1C1B; --on-teal: #1F201F;
  /* toolkit.css tokens */
  --p-bg: #2A2B2A; --p-deep: #141514; --p-panel: #1B1C1B; --p-panel-2: #232423; --p-panel-3: #2E2F2D;
  --p-line: rgba(244, 243, 236, 0.12); --p-line-2: rgba(244, 243, 236, 0.22); --p-border: #5E605C;
  --p-text: #ECEDE8; --p-head: #F4F3EC; --p-muted: #A9ADA8; --p-faint: #A2A6A0;
  --p-sage: #F4F3EC; --p-sage-hi: #F4F3EC; --p-sage-2: #C9CCC5; --p-sage-dim: rgba(244, 243, 236, 0.08);
  --p-sel: #F06A3B; --p-screen: #141514; --p-rib: #1B1C1B;
  /* meaning: "good" is off-white, "bad" is orange (no green or red UI); warnings stay sand */
  --p-good: #ECEDE8; --p-bad: #F06A3B;
  /* pro.css tokens */
  --pro-bg: #2A2B2A; --pro-panel: #1B1C1B; --pro-line: rgba(244, 243, 236, 0.16); --pro-sage: #F4F3EC;
}
body { background-color: #2A2B2A; }

/* ---------- the former sage surfaces: deep charcoal panels with light text ---------- */
.t-metal, .t-device {
  --p-text: #ECEDE8; --p-head: #F4F3EC; --p-muted: #A9ADA8; --p-faint: #A2A6A0; --p-sage: #F4F3EC; --p-sage-hi: #F4F3EC;
  --p-sage-2: #C9CCC5; --p-line: rgba(244, 243, 236, 0.12); --p-line-2: rgba(244, 243, 236, 0.22); --p-ink: #1F201F;
  --text: #ECEDE8; --head: #F4F3EC; --muted: #A9ADA8; --t300: #F4F3EC; --t400: #F4F3EC; --t600: #C9CCC5; --line: rgba(244, 243, 236, 0.12);
  color: #ECEDE8 !important; background: #1B1C1B !important; box-shadow: none !important;
}
.t-metal :where(button, .chip, .p-chip, a.chip, [role="tab"], [role="radio"]):not([class*="fill"]):not([class*="primary"]):not(.on):not(.is-on):not(.active):not(.is-active):not([aria-pressed="true"]):not([aria-selected="true"]):not([aria-checked="true"]):not([aria-current]) {
  background: #2A2B2A; color: #ECEDE8; border-color: rgba(244, 243, 236, 0.14);
}
.t-bezel { box-shadow: 0 0 0 1px rgba(244, 243, 236, 0.14) !important; }

/* ---------- the former cream bands ---------- */
/* a page's opening (hero) is the 60% charcoal with a hairline under it; any other cream section is the 30% deep charcoal */
.t-cream, .t-hero, .t-read, .g-read, .legal main, .signin, .l-hero, .l-demo, #price, #faq {
  --text: #ECEDE8; --head: #F4F3EC; --muted: #A9ADA8; --t300: #F4F3EC; --t400: #F4F3EC; --t500: #F4F3EC; --t600: #C9CCC5;
  --line: rgba(244, 243, 236, 0.12); --border: rgba(244, 243, 236, 0.28); --accent: #F28A62; --panel: transparent; --g-body: #C9CCC5;
  --p-text: #ECEDE8; --p-head: #F4F3EC; --p-muted: #A9ADA8; --p-faint: #A2A6A0; --p-sage: #F4F3EC; --p-sage-hi: #F4F3EC; --p-sage-2: #C9CCC5;
  --p-line: rgba(244, 243, 236, 0.12); --p-line-2: rgba(244, 243, 236, 0.22); --p-border: rgba(244, 243, 236, 0.3); --p-panel: transparent; --p-panel-2: rgba(244, 243, 236, 0.04);
  --ink: #F4F3EC; --ink-2: #C9CCC5; --or-ink: #F28A62;
  color: #ECEDE8 !important;
}
.t-cream, .t-read, #price, #faq, .g-after { background: #1B1C1B !important; box-shadow: 0 0 0 100vmax #1B1C1B !important; }
.t-hero, .h-hero, .pp-hero, .nf, .l-hero, .l-demo, .g-read, .legal main, .signin { background: #2A2B2A !important; box-shadow: 0 0 0 100vmax #2A2B2A !important; }
.t-hero, .h-hero, .pp-hero, .g-index-top, .ac-head { border-bottom: 1px solid rgba(244, 243, 236, 0.12); }
.l-demo { padding-top: 24px !important; }

:is(.t-cream, .t-hero, .t-read, .g-read, .legal main, .signin, .l-hero, .l-demo, [id="price"], [id="faq"]) :is(h1, h2, h3, h4, summary, b, strong) { color: #F4F3EC !important; }
:is(.t-cream, .t-hero, .t-read, .g-read, .legal main, .signin, .l-hero, [id="price"], [id="faq"]) :is(p, li):not(.t-kick):not(.l-kicker):not(.eyebrow):not(.pro-note) { color: #C9CCC5 !important; }
:is(.t-cream, .t-hero, .t-read, .g-read, .legal main, .signin, .l-hero, .l-demo, [id="price"], [id="faq"]) :is(h1, h2) em { color: #F06A3B !important; }
:is(.t-cream, .t-hero, .t-read, .g-read, .legal main, .l-hero, [id="price"], [id="faq"], .g-after) :is(.t-kick, .l-kicker, .eyebrow, .nf-code, .flm-kicker) { color: #C9CCC5 !important; }
:is(.t-cream, .t-hero, .t-read, .g-read, .legal main, .signin, .l-hero, [id="price"], [id="faq"]) a:not(.btn):not(.p-btn):not(.l-textlink) { color: #F28A62 !important; }
.g-read .g-crumbs a, .g-read .g-toc a, .legal main .toc a { color: #F4F3EC !important; }
.g-read li::marker, .legal main li::marker { color: #F06A3B; }
.l-hero .l-textlink { color: #F4F3EC !important; border-bottom-color: #F4F3EC !important; }

/* cards, notes, tables and figures on those bands: no light fills, hairlines only */
:is(.t-cream, .t-read, .g-read, .legal main, [id="price"], [id="faq"]) :is(.g-toc, .g-note, .g-fig, .g-table-wrap, .toc, .inshort, .table-scroll, .progress-card, .g-card, .flm-pv-ref, details) { background: transparent !important; border-color: rgba(244, 243, 236, 0.14) !important; }
.g-read .g-table thead th, .legal main thead th { background: #1B1C1B !important; color: #F4F3EC !important; }
.g-read .g-table th, .g-read .g-table td, .legal main th, .legal main td { color: #C9CCC5 !important; border-bottom-color: rgba(244, 243, 236, 0.1) !important; }
.g-read .g-table tbody th { color: #F4F3EC !important; }
.g-read .g-on { color: #F4F3EC !important; } .g-read .g-off { color: #8E928C !important; }
.g-read code, .g-read kbd, .legal main code { color: #F4F3EC !important; background: rgba(244, 243, 236, 0.08) !important; }
.g-read .g-note { border-left-color: #F06A3B !important; }
.legal main .inshort { border-left-color: #F06A3B !important; color: #ECEDE8 !important; }
.g-read .g-fig text { fill: #ECEDE8; } .g-read .g-fig .sm { fill: #A9ADA8; } .g-read .g-fig .crv { stroke: #F4F3EC; }
.g-read .g-fig .ax { stroke: rgba(244, 243, 236, 0.5); } .g-read .g-fig .grid { stroke: rgba(244, 243, 236, 0.14); }
.g-read .g-fig .hot { fill: #F4F3EC; } .g-read .g-fig .blk { stroke: rgba(0, 0, 0, 0.35); }

/* landing */
.l-knob { background: #F06A3B !important; color: #1F201F !important; box-shadow: none !important; }
.l-band b, .l-play { color: #F4F3EC !important; }
.btn-sec { box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.7) !important; color: #F4F3EC !important; }
.btn-sec:hover { background: rgba(244, 243, 236, 0.08) !important; }
#price .l-plan:not(.l-plan--pro) { background: transparent !important; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.35) !important; color: #ECEDE8 !important; }
#price .l-plan:not(.l-plan--pro) :is(h3, .l-price) { color: #F4F3EC !important; }
#price .l-plan:not(.l-plan--pro) .l-price small { color: #A9ADA8 !important; }
#price .l-plan:not(.l-plan--pro) ul, #price .l-plan:not(.l-plan--pro) li { border-color: rgba(244, 243, 236, 0.12) !important; }
#price .l-plan:not(.l-plan--pro) li::before { border-color: #F4F3EC !important; }
#price .l-plan--pro { background: #2A2B2A !important; }
#price .l-head, #faq .l-head { border-bottom-color: rgba(244, 243, 236, 0.16) !important; }
#faq details { border-bottom-color: rgba(244, 243, 236, 0.14) !important; }
#faq summary::after { box-shadow: inset 0 0 0 1.5px #F4F3EC !important; color: #F4F3EC !important; }
#faq summary:hover { color: #F28A62 !important; }
.c-in, .la-c--in, .la-l { background: #C9CCC5 !important; }
.c-vary, .la-c--vary { border-color: #C9CCC5 !important; background: rgba(201, 204, 197, 0.3) !important; }
.c-out, .la-c--out { border-color: rgba(244, 243, 236, 0.25) !important; }
.l-hover { background: rgba(244, 243, 236, 0.5) !important; }
.l-phases span::after { background: #F4F3EC !important; } .l-phases .p2::after { background: rgba(244, 243, 236, 0.3) !important; }
.l-steps li.is-now .l-num { background: #F06A3B !important; color: #1F201F !important; box-shadow: none !important; }
.brand .l-bar, .brand .brand-bar { background: #F4F3EC !important; }

/* hub and Pro page cards that were dark on cream */
.t-cream .pp-card:not(.pp-card--best) { background: transparent !important; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.35) !important; color: #ECEDE8 !important; }
.t-cream .pp-card--best { background: #2A2B2A !important; }
.t-cream .pp-card:not(.pp-card--best).is-picked { box-shadow: inset 0 0 0 2.5px #F4F3EC !important; }
.t-cream .pp-card--best.is-picked { box-shadow: inset 0 4px 0 #F06A3B, inset 0 0 0 2.5px #F4F3EC !important; }

/* the "Free preview" line and the locks */
.pro-note { color: #A9ADA8 !important; } .pro-note__k, .pro-note .pro-lock-icon { color: #F4F3EC !important; } .pro-note a { color: #F28A62 !important; }
.pro-locked, .pro-locked :is(h3, h4, b, strong) { color: #A9ADA8 !important; }
.pro-locked::after { background: #F4F3EC !important; }
.pro-more-row, .pro-more-row .pro-lock-icon { color: #F28A62 !important; }

/* sign-in, account, 404 */
.signin .check input, .ac-switch input { accent-color: #F06A3B; color-scheme: dark; }
.signin .btn-line, .nf .p-btn-s, .ac .p-btn-s { color: #F4F3EC !important; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.6) !important; }
.signin .err { color: #F2875C !important; }
.ac-head .ac-note { border-left-color: #F06A3B !important; color: #ECEDE8 !important; }
.nf h1 { color: #F4F3EC !important; } .nf p { color: #C9CCC5 !important; }

/* the app: the upload zone was the one sage surface */
.app-body .drop:not(.small) { background: #1B1C1B !important; color: #ECEDE8 !important; border: 1.5px dashed rgba(244, 243, 236, 0.35) !important; box-shadow: none !important; }
.app-body .drop:not(.small) :is(h2, h3, b, strong, p, span, small) { color: #ECEDE8 !important; }
.app-body .drop:not(.small) svg { color: #F4F3EC !important; stroke: currentColor; }

/* challenges: the plain progress count in the dark palette */
:is(.t-read, .t-more) .progress-card :is(#progress-count, #progress-count b, .pc-read > span, .meter span, .meter em, .pc-foot .text-button) { color: #F4F3EC !important; }
:is(.t-read, .t-more) .progress-card :is(.pc-tag, .pc-foot small, #progress-count i) { color: #A9ADA8 !important; }
:is(.t-read, .t-more) .meter i { background: rgba(244, 243, 236, 0.12) !important; } :is(.t-read, .t-more) .meter b, :is(.t-read, .t-more) .led { background: #F06A3B !important; }

/* leftovers that were set for cream or sage surfaces */
.t-cream .pp-card { --p-text: #ECEDE8; --p-head: #F4F3EC; --p-muted: #A9ADA8; --p-sage: #F4F3EC; --p-sage-hi: #F4F3EC; --p-sage-dim: rgba(244, 243, 236, 0.08); --p-line-2: rgba(244, 243, 236, 0.22); --p-line: rgba(244, 243, 236, 0.12); }
.t-cream .pp-card :is(small, span, p, li) { color: #A9ADA8; }
.t-cream .pp-card :is(h2, h3, b, strong, .pp-price) { color: #F4F3EC; }
.pp-hero .pp-kicker { color: #C9CCC5 !important; }
.g-read .g-card .g-more, .g-card .g-more { color: #F28A62 !important; }
.g-read figcaption, .g-read .g-meta, .g-read .g-toc strong { color: #A9ADA8 !important; }
#pq .pq-prompt { color: #F4F3EC !important; }
#pq .pq-hint { color: #A9ADA8 !important; }
:is(.t-metal, .t-device) .pro-more-row, :is(.t-metal, .t-device) .pro-more-row .pro-lock-icon { color: #F28A62 !important; }
.button.choice[aria-pressed="true"] { background: #F06A3B !important; color: #1F201F !important; border-color: #F06A3B !important; box-shadow: none !important; }
.beat-led, .transport .now-playing::before { background: #3A3C3A; }
.g-read .g-table caption { color: #A9ADA8 !important; }
.g-read :is(.g-toc, .g-crumbs) a:not(.btn):not(.p-btn):not(.l-textlink), .legal main .toc a:not(.btn):not(.p-btn):not(.l-textlink) { color: #F4F3EC !important; }
.t-cream .pp-card .p-btn-s { color: #F4F3EC !important; background: transparent !important; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.6) !important; }

/* Codex review 48: controls and selected states in the rule's colours */
.play-round, .l-knob { background: #F06A3B !important; color: #1F201F !important; box-shadow: none !important; }
.app-body .drop:not(.small) .eq i, .drop.small .eq i, .demo-sheet .eq i { background: #F4F3EC !important; }
.toast { background: #F4F3EC !important; color: #1F201F !important; }
.t-cream .pp-card:not(.pp-card--best).is-picked { box-shadow: inset 0 0 0 2.5px #F06A3B !important; }
.t-cream .pp-card--best.is-picked { box-shadow: inset 0 4px 0 #F06A3B, inset 0 0 0 2.5px #F06A3B !important; }
#pq .pq-crumb.cur { border-color: #F06A3B !important; color: #F4F3EC !important; }
.ms-overview-card.is-active { border-color: #F06A3B !important; box-shadow: inset 0 3px 0 #F06A3B !important; }

/* Section divider (Roland 2026-11-11, variant 2): one thin, full-width orange line that fades out at both ends, at the
   top of each main section. Minimal: 2px, no shade. */
:is(.l-section, .h-sec:not(.h-close), .pp-what, .pp-faq, .t-more, .g-after) { position: relative; }
:is(.l-section, .h-sec:not(.h-close), .pp-what, .pp-faq, .t-more, .g-after)::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 100vw; margin-left: -50vw; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(240, 106, 59, 0) 0%, rgba(240, 106, 59, 0.85) 50%, rgba(240, 106, 59, 0) 100%);
}
.t-more, .g-after { border-top: 0 !important; }
html { overflow-x: clip; }
/* the full-width background of a band must not spread over its neighbours (it is drawn as a huge shadow) */
.t-cream, .t-read, [id="price"], [id="faq"], .g-after, .t-hero, .h-hero, .pp-hero, .nf, .l-hero, .l-demo, .g-read, .legal main, .signin { clip-path: inset(0 -100vmax); }
/* Pro not open yet: both plan buttons read "Opens soon" and look switched off */
.t-cream .pp-card .p-btn.is-off { color: #A9ADA8 !important; background: transparent !important; box-shadow: inset 0 0 0 1.5px rgba(244, 243, 236, 0.18) !important; filter: none !important; cursor: default; }
