/* NF Audios: one look for the whole public site (NF-Web/server/unify/nf-unify.css).
   The store pages (nf2: home, store, product, bundles, MIDI, checkout) set the look; this layer gives the older builder
   pages (learn, free, help, KB, about, contact, press, legal, account, sign-in, search, 404) the same type scale, colours,
   buttons, section spacing, cards and hero. Loaded last on public and sign-in pages only (never in the console).
   Nothing here reaches inside .nfs (the store's own pages). */

body.bcos {
  --nfu-ink: #16241C; --nfu-soft: #4b5a52; --nfu-mute: #6b776f; --nfu-line: #e2e8e3;
  --nfu-bg2: #f4f7f4; --nfu-bg3: #eaf0eb; --nfu-green: #2F6B4F;
  --nfu-serif: Fraunces, "Iowan Old Style", Georgia, serif;
  --nfu-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nfu-ease: cubic-bezier(.2, .7, .2, 1);
  --nfu-shadow: 0 30px 70px -30px rgba(22, 36, 28, .35), 0 2px 6px rgba(22, 36, 28, .06);
}

/* ── the page hero: centred like the bundles page, kicker with a rule, the store's heading weight ── */
body.bcos .bcos-page-hero {
  padding: clamp(60px, 7vw, 100px) 0 clamp(36px, 4.5vw, 60px); text-align: center; border-bottom: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 100%, var(--nfu-bg3), transparent 70%), transparent;
}
body.bcos .bcos-page-hero .bcos-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font: 600 12px/1 var(--nfu-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nfu-green);
}
body.bcos .bcos-page-hero .bcos-kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
body.bcos .bcos-page-hero .bcos-kicker .bcos-dot { display: none; }
body.bcos .bcos-page-hero .bcos-display {
  font-family: var(--nfu-serif); font-weight: 480; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.06;
  letter-spacing: -.025em; color: var(--nfu-ink); margin: 0 auto; max-width: 18ch; text-wrap: balance;
}
body.bcos .bcos-page-hero .bcos-display .bcos-dot { display: none; }
body.bcos .bcos-page-hero .bcos-lead {
  margin: 18px auto 0; max-width: 640px; font-family: var(--nfu-sans); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--nfu-soft); text-wrap: pretty;
}
body.bcos .bcos-page-hero p:not([class]) { margin-top: 26px; }
body.bcos .bcos-page-hero + .bcos-section:not(.bcos-section-alt) { padding-top: clamp(12px, 2vw, 28px); }

/* ── headings, text and links in the builder sections ── */
body.bcos main :is(.bcos-section, .vx-sec) h2:not(.nfs *),
body.bcos main .vx-h2:not(.nfs *) {
  font-family: var(--nfu-serif); font-weight: 480; letter-spacing: -.02em; line-height: 1.1; color: var(--nfu-ink);
  font-size: clamp(30px, 3.8vw, 48px); text-wrap: balance;
}
body.bcos main :is(.vx-head, .bcos-section) .vx-muted:not(.nfs *),
body.bcos main .vx-lead:not(.nfs *) { color: var(--nfu-soft); }
body.bcos main .bcos-rich:not(.nfs *) { font-family: var(--nfu-sans); font-size: 17px; line-height: 1.7; color: var(--nfu-soft); }
body.bcos main .bcos-rich :is(p, li):not(.nfs *) { color: var(--nfu-soft); }
body.bcos main .bcos-rich :is(h2, h3, strong, b):not(.nfs *) { color: var(--nfu-ink); }
body.bcos main .bcos-rich a:not(.nfs *) { color: var(--nfu-green); text-decoration-color: color-mix(in srgb, var(--nfu-green) 40%, transparent); }
body.bcos main .bcos-rich a:hover { color: var(--nfu-ink); }

/* text-only pages (terms, privacy, refunds, licence): one reading column, no theatre-sized gaps between clauses */
body.bcos main .bcos-section:has(> .bcos-wrap > .bcos-rich):not(:has(.bcos-faq, form, .vx-grid)) { padding: clamp(14px, 2vw, 22px) 0; }
body.bcos main .bcos-section:has(> .bcos-wrap > .bcos-rich):not(:has(.bcos-faq, form, .vx-grid)) > .bcos-wrap { max-width: 760px; }
body.bcos main .bcos-section:has(> .bcos-wrap > .bcos-rich):not(:has(.bcos-faq, form, .vx-grid)) h2 {
  font-size: clamp(22px, 2.2vw, 28px); text-align: left; margin: 0 0 10px; letter-spacing: -.015em;
}
body.bcos main .bcos-section:has(> .bcos-wrap > .bcos-rich):not(:has(.bcos-faq, form, .vx-grid)) > .bcos-wrap > .bcos-rich { max-width: none; margin: 0; }
body.bcos main .bcos-section:has(> .bcos-wrap > .bcos-rich):last-of-type { padding-bottom: clamp(60px, 8vw, 110px); }

/* ── buttons: the store's pill ── */
body.bcos main .bcos-btn:not(.nfs *):not(.sw-chat *) {
  min-height: 48px; padding: 0 24px; border-radius: 99px; font: 600 15px/1 var(--nfu-sans); letter-spacing: -.005em;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .18s var(--nfu-ease), box-shadow .25s, background .2s, border-color .2s, color .2s;
}
body.bcos main .bcos-btn.bcos-btn-ink:not(.nfs *) { background: var(--nfu-ink); border-color: var(--nfu-ink); color: #fff; box-shadow: 0 10px 26px -12px rgba(22, 36, 28, .6); }
body.bcos main .bcos-btn.bcos-btn-ink:not(.nfs *):hover { background: var(--nfu-ink); border-color: var(--nfu-ink); color: #fff; transform: translateY(-2px); box-shadow: 0 18px 36px -14px rgba(22, 36, 28, .7), 0 0 0 4px rgba(47, 107, 79, .16); }
body.bcos main .bcos-btn.bcos-btn-line:not(.nfs *) { background: rgba(255, 255, 255, .7); border: 1px solid rgba(22, 36, 28, .18); color: var(--nfu-ink); }
body.bcos main .bcos-btn.bcos-btn-line:not(.nfs *):hover { background: var(--nfu-bg3); border-color: rgba(22, 36, 28, .35); color: var(--nfu-ink); transform: translateY(-2px); }
body.bcos main .bcos-btn:focus-visible { outline: 2px solid var(--nfu-green); outline-offset: 3px; }

/* ── questions and answers: the store's FAQ ── */
body.bcos main .bcos-faq:not(.nfs *) { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--nfu-line); }
body.bcos main .bcos-faq details { border-bottom: 1px solid var(--nfu-line); padding: 0; }
body.bcos main .bcos-faq summary { padding: 22px 44px 22px 0; position: relative; font: 500 18px/1.4 var(--nfu-sans); letter-spacing: -.01em; color: var(--nfu-ink); list-style: none; }
body.bcos main .bcos-faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; width: auto; height: auto; border: 0; margin: 0;
  transform: translateY(-52%); font: 300 26px/1 var(--nfu-sans); color: var(--nfu-green); background: none; transition: transform .2s;
}
body.bcos main .bcos-faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
body.bcos main .bcos-faq details p { margin: 0; padding: 0 0 24px; color: var(--nfu-soft); font-size: 16.5px; line-height: 1.65; }

/* ── cards: guides, help articles, free line-up ── */
body.bcos main :is(.nf-learn-card, .bcos-kb-card) {
  border-radius: 18px; background: #fff; border: 1px solid var(--nfu-line); box-shadow: none;
  transition: transform .3s var(--nfu-ease), box-shadow .3s, border-color .3s;
}
body.bcos main :is(.nf-learn-card, .bcos-kb-card):hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--nfu-shadow); color: inherit; }
body.bcos main :is(.nf-learn-card, .bcos-kb-card) em { font: 600 11.5px/1.2 var(--nfu-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--nfu-green); }
body.bcos main :is(.nf-learn-card, .bcos-kb-card) strong { font-family: var(--nfu-serif); font-weight: 560; font-size: 21px; line-height: 1.22; letter-spacing: -.01em; color: var(--nfu-ink); }
body.bcos main :is(.nf-learn-card, .bcos-kb-card) p { color: var(--nfu-soft); }
body.bcos main .bcos-kb-card .pane-dot { background: var(--nfu-green); }
body.bcos main .bcos-find-chip-a { border-radius: 99px; border: 1px solid var(--nfu-line); background: #fff; color: var(--nfu-ink); font: 500 14.5px/1 var(--nfu-sans); }
body.bcos main .bcos-find-chip-a.is-on, body.bcos main .bcos-find-chip-a:hover { background: var(--nfu-ink); border-color: var(--nfu-ink); color: #fff; }

/* the free line-up: the name and line had one word per row beside the long Center button; button under the words instead */
body.bcos main .sw-free-item { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 18px; padding: 14px; border-radius: 18px; border: 1px solid var(--nfu-line); align-items: start; transition: transform .3s var(--nfu-ease), box-shadow .3s; }
body.bcos main .sw-free-item:hover { transform: translateY(-3px); box-shadow: var(--nfu-shadow); }
body.bcos main .sw-free-media { grid-row: span 2; }
body.bcos main .sw-free-copy h3 { font-family: var(--nfu-serif); font-weight: 560; font-size: 20px; }
body.bcos main .sw-free-copy p { color: var(--nfu-soft); }
body.bcos main .sw-free-go { grid-column: 2; justify-content: flex-start; }
body.bcos main .sw-free-go .bcos-btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
@media (max-width: 560px) { body.bcos main .sw-free-item { grid-template-columns: 76px minmax(0, 1fr); } body.bcos main .sw-free-go .bcos-btn { flex: 0 1 auto; } }

/* the closing call to action on builder pages: the store's soft panel */
body.bcos main .bcos-cta.is-light { border-radius: 24px; background: linear-gradient(180deg, var(--nfu-bg2), #fff); border: 1px solid var(--nfu-line); }
body.bcos main .bcos-cta h2 { font-family: var(--nfu-serif); font-weight: 480; letter-spacing: -.02em; color: var(--nfu-ink); }
body.bcos main .bcos-cta p { color: var(--nfu-soft); }

/* ── forms (contact, help, account, sign-in) ── */
body.bcos :is(main, .bcos-auth-card) :is(.bcos-form, .vx-form) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) {
  border-radius: 12px; border: 1px solid #d5ddd7; background: #fff; color: var(--nfu-ink); font-family: var(--nfu-sans); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
body.bcos :is(main, .bcos-auth-card) :is(.bcos-form, .vx-form) :is(input, select, textarea):focus { outline: none; border-color: var(--nfu-green); box-shadow: 0 0 0 4px rgba(47, 107, 79, .14); }
body.bcos :is(main, .bcos-auth-card) :is(.bcos-form, .vx-form) label { color: var(--nfu-ink); font-family: var(--nfu-sans); }
body.bcos .bcos-auth-card .bcos-btn-ink { border-radius: 99px; background: var(--nfu-ink); border-color: var(--nfu-ink); font: 600 15px/1 var(--nfu-sans); min-height: 50px; }
body.bcos .bcos-auth-card .bcos-btn-ink:hover { background: var(--nfu-ink); border-color: var(--nfu-ink); box-shadow: 0 0 0 4px rgba(47, 107, 79, .16); }
body.bcos .bcos-auth-card .bcos-kicker { font: 600 12px/1 var(--nfu-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--nfu-green); }
body.bcos .bcos-auth-card .bcos-kicker .bcos-dot { display: none; }
body.bcos .bcos-auth-card h1 { font-family: var(--nfu-serif); font-weight: 480; letter-spacing: -.02em; color: var(--nfu-ink); }
body.bcos .bcos-auth-card a:not(.bcos-btn):not(.bcos-brand) { color: var(--nfu-green); }

/* ── small screens ── */
@media (max-width: 640px) {
  body.bcos .bcos-page-hero { padding: 48px 0 28px; }
  body.bcos .bcos-page-hero .bcos-display { font-size: clamp(36px, 10vw, 44px); }
  body.bcos main .bcos-faq summary { font-size: 17px; padding: 18px 40px 18px 0; }
}

/* /programs (unify.php): three tiles under the programs, in the store look */
.nfs .nfu-duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.nfs .nfu-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.nfs .nfu-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nfs .nfu-tile b { font: 600 22px/1.2 var(--serif); }
.nfs .nfu-tile span { color: var(--soft); font-size: 15.5px; line-height: 1.55; }
.nfs .nfu-tile em { margin-top: auto; font-style: normal; font-weight: 600; font-size: 14.5px; color: var(--green); }
@media (max-width: 860px) { .nfs .nfu-duo { grid-template-columns: 1fr; } }

/* product cards inside guides and the press list: names in the store's serif */
body.bcos main .sw-card .vx-card-title:not(.nfs *) { font-family: var(--nfu-serif); font-weight: 560; letter-spacing: -.01em; }
