/* ==========================================================================
   n-Track Studio 11 — shared core
   Design tokens, resets, layout primitives, type scale and buttons, shared by
   every v11 page (homepage, buy page, …). Extracted verbatim from the first
   194 lines of css/home-v11.css, so that
       cat v11-core.css home-v11.css  ==  the original file, byte for byte
   and the homepage cascade is provably unchanged.

   Load order on any v11 page:  ntrack9.css -> v11-core.css -> <page>-v11.css
   ========================================================================== */

/* ==========================================================================
   n-Track Studio 11 — homepage
   Scoped entirely under .home-v11 so nothing leaks into the ~60 other
   templates that share css/ntrack9.css. Loads after ntrack9.css.
   ========================================================================== */

/* The token block is shared by every v11 page. Only this opening selector is
   shared — the Bootstrap resets below stay .home-v11-only, because the buy
   page brings its own (css/buy-v11.css) tuned to its legacy markup. */
.home-v11,
.buy-v11 {
  /* ---- colour ---- */
  --ink:        #0e0f11;
  --surface:    #16191b;
  --surface-2:  #1e2224;
  --surface-3:  #262b2e;
  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .16);

  --text:       #f2f4f5;
  /* Secondary text. Raised on 2026-09-22 from #a7b0b5 / #6f7a80: the faint
     grey was 3.6:1 on the cards (under WCAG AA's 4.5:1), and at the light
     body weight both read as washed out. Now 10:1+ and 6.3:1+ on --surface-2. */
  --text-dim:   #c9d0d4;
  --text-faint: #9aa4aa;

  --amber:      #e7a800;
  --amber-hi:   #ffc22e;
  --amber-ink:  #1a1204;

  /* reserved for AI / MixSplit only */
  --ai-1:       #22d3ee;
  --ai-2:       #a855f7;
  --ai-grad:    linear-gradient(105deg, var(--ai-1), var(--ai-2));

  /* stem identity colours */
  --stem-vocals: #f472b6;
  --stem-drums:  #fbbf24;
  --stem-bass:   #34d399;
  --stem-other:  #60a5fa;

  /* ---- space (8px scale) ---- */
  --s1: 4px;  --s2: 8px;  --s3: 16px; --s4: 24px;
  --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px; --s9: 128px;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  background: var(--ink);
  color: var(--text);
  /* Body copy stays on the site face. Headings and the wordmark use a display
     face with more character — swap --font-display alone to change them all.
     To try another, add it to the Google Fonts link in the template's <head>
     and name it here. */
  --font-body: 'Source Sans 3', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'Source Sans 3', 'Avenir Next', Helvetica, Arial, sans-serif;

  font-family: var(--font-body);
  /* 400, not 300: Source Sans Light is too thin for body copy on a dark
     ground. Titles set their own weights. */
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- reset Bootstrap 3's global reach inside our page --- */
.home-v11 :where(h1, h2, h3, h4, h5, p) {
  margin: 0;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}
.home-v11 ul { margin: 0; padding: 0; list-style: none; }
.home-v11 button { font: inherit; color: inherit; background: none; border: 0; }
.home-v11 a { color: inherit; text-decoration: none; }
.home-v11 img, .home-v11 video, .home-v11 canvas { max-width: 100%; display: block; }
/* The demo <audio> elements carry no controls — keep them out of the flex and
   grid layouts they sit inside. */
.home-v11 audio { display: none; }
/* Tone Lab panels are toggled with the hidden attribute; make sure no later
   display rule can out-rank the UA default. */
.home-v11 [hidden] { display: none !important; }
.home-v11 *, .home-v11 *::before, .home-v11 *::after { box-sizing: border-box; }

/* ---- layout primitives ---- */
.hv-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s4);
}
.hv-section {
  padding: var(--s8) 0;
  position: relative;
  background-color: var(--ink);
  border-top: 1px solid var(--line);
}
/* Softens the seam between two adjacent sections so the page reads as one
   surface rather than a stack of bands. */
.hv-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), transparent);
}
/* The colour wash each section carries. Sits under the content, over the base. */
.hv-section > .hv-wrap { position: relative; z-index: 1; }
.hv-section--tight { padding: var(--s7) 0; }

/* The topbar is fixed and ~80px tall, so an anchor jump would otherwise park
   the heading underneath it. */
.hv-section[id], .hv-anchor { scroll-margin-top: 100px; }
.hv-anchor { display: block; height: 0; overflow: hidden; }

/* ---- type ---- */
.hv-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s3);
}
.hv-eyebrow--ai {
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hv-h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hv-h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  line-height: 1.25;
}
.hv-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--text-dim);
  max-width: 62ch;
  margin-top: var(--s4);
}

.hv-head { max-width: 760px; margin-bottom: var(--s7); }
.hv-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.hv-head--center .hv-lede { margin-left: auto; margin-right: auto; }

/* ---- buttons ---- */
.hv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease),
              border-color .18s var(--ease), box-shadow .18s var(--ease);
  white-space: nowrap;
}
.hv-btn:hover, .hv-btn:focus-visible { transform: translateY(-2px); text-decoration: none; }
.hv-btn:active { transform: translateY(0); }

.hv-btn--primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 8px 26px rgba(231, 168, 0, .28);
}
.hv-btn--primary:hover, .hv-btn--primary:focus-visible {
  background: var(--amber-hi);
  color: var(--amber-ink);
  box-shadow: 0 12px 34px rgba(231, 168, 0, .38);
}
.hv-btn--ghost {
  border: 1.5px solid var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}
.hv-btn--ghost:hover, .hv-btn--ghost:focus-visible {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .09);
  color: var(--text);
}
.hv-btn--lg { padding: 17px 42px; font-size: 19px; }

.hv-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.hv-ctas--center { justify-content: center; }

/* ==========================================================================
   Pricing cards  —  shared by the homepage (#get) and the buy page
   Moved here verbatim from css/home-v11.css §8 on 2026-08-31. Both pages
   load v11-core.css before their own sheet, so this keeps one definition
   of the card rather than two that drift apart.
   ========================================================================== */
.hv-get {
  background-image:
    radial-gradient(95% 60% at 50% 0%, rgba(231, 168, 0, .12), transparent 62%),
    radial-gradient(70% 45% at 15% 100%, rgba(231, 168, 0, .05), transparent 60%);
}
.hv-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s4);
  margin-top: var(--s6);
}
.hv-plan {
  padding: var(--s5);
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.hv-plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.hv-plan--free { background: linear-gradient(170deg, rgba(231, 168, 0, .14), var(--surface-2)); border-color: rgba(231, 168, 0, .4); }
.hv-plan__name { font-size: 19px; font-weight: 600; }
.hv-plan__price { font-size: 34px; font-weight: 300; letter-spacing: -.02em; }
.hv-plan__price small { font-size: 15px; color: var(--text-faint); font-weight: 400; }
.hv-plan__text { font-size: 15px; color: var(--text-dim); flex: 1; margin-bottom: var(--s3); }
.hv-plan .hv-btn { width: 100%; }

.hv-close {
  margin-top: var(--s8);
  padding: var(--s8) var(--s4);
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(231, 168, 0, .18), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.hv-close .hv-h2 { margin-bottom: var(--s3); }
.hv-close .hv-ctas { margin-top: var(--s6); }
.hv-close__fine { margin-top: var(--s4); font-size: 14px; color: var(--text-faint); }

.hv-req { margin-top: var(--s5); font-size: 14px; color: var(--text-faint); text-align: center; }
.hv-req button { color: var(--text-dim); text-decoration: underline; cursor: pointer; }
.hv-req__body {
  display: none;
  margin: var(--s4) auto 0;
  max-width: 760px;
  text-align: left;
  gap: var(--s4);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.hv-req.is-open .hv-req__body { display: grid; }
.hv-req__item { padding: var(--s3); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.hv-req__item strong { display: block; color: var(--text-dim); margin-bottom: 4px; }


/* ==========================================================================
   Product hero  —  shared by the features page and the homepage
   Moved here verbatim from css/features-v11.css on 2026-10-14: the homepage
   opens with the same layout (title, lede, buttons, then the v11 Timeline in
   a window with plug-in windows floating over it). The scroll drift of the
   floating windows is page script: features.php.html inline, js/home-v11.js
   on the homepage.
   ========================================================================== */
/* A screenshot in a window: title bar, hairline, deep shadow. */
.fv-frame {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0c0e;
  border: 1px solid var(--line-2);
  box-shadow:
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 0 110px -20px var(--fv-glow, rgba(231, 168, 0, .14));
}
.fv-frame__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 12px;
  background: #1a1c20;
  border-bottom: 1px solid var(--line);
}
.fv-frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.fv-frame img { display: block; width: 100%; height: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.fv-hero {
  padding-top: var(--s7);
  border-top: 0;
  overflow: hidden;
  background-image:
    radial-gradient(55% 45% at 50% 0%, rgba(231, 168, 0, .11), transparent 70%),
    radial-gradient(45% 40% at 88% 55%, rgba(168, 85, 247, .09), transparent 70%),
    radial-gradient(45% 40% at 8% 65%, rgba(34, 211, 238, .08), transparent 70%);
}
.fv-hero__head { margin-bottom: var(--s6); }
.fv-nowrap { white-space: nowrap; }
.fv-hero__title { font-size: clamp(36px, 5.4vw, 64px); font-weight: 500; }
.fv-hero__ctas { margin-top: var(--s5); }
.fv-hero__ctas .fa { margin-right: 8px; }

.fv-stage {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  perspective: 1800px;
}
.fv-stage::before {          /* the light the windows sit in */
  content: '';
  position: absolute;
  inset: 10% 5% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(231, 168, 0, .18), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}
.fv-stage__base {
  transform: rotateX(7deg);
  transform-origin: 50% 100%;
}
.fv-stage__float {
  position: absolute;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  box-shadow: 0 34px 70px -18px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .35);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.fv-stage__float--a { width: 30%; left: -6%;  bottom: 6%; }
.fv-stage__float--b { width: 42%; right: -7%; top: 12%; }
.fv-stage__float--c { width: 25%; right: 9%;  bottom: 3%; }

@media (max-width: 900px) {
  .fv-stage__float--c { display: none; }
}
@media (max-width: 560px) {
  .fv-hero { padding-top: var(--s5); }
  .fv-stage__float--a { width: 40%; left: -4%; bottom: -8%; }
  .fv-stage__float--b { width: 52%; right: -6%; top: -6%; }
}
@media (prefers-reduced-motion: reduce) {
  .fv-stage__float { transform: none; }
}
