/* Guitar Mentor home, 2.5 release (2026-11-19).
   Loaded after site.css. Adds the 2.5 hero (three real screens + a live Fret
   neck) and the "New in 2.5" filmstrip. Uses the site tokens; adds none. */

/* ---------- hero ---------- */
.h25 { position: relative; isolation: isolate; overflow: hidden; padding-top: var(--nav-h); display: flex; flex-direction: column; min-height: min(100svh, 1060px); }
.h25-media { position: absolute; inset: 0; z-index: -2; }
.h25-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 20%; }
.h25::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(18, 14, 31, 0.9) 30%, rgba(18, 14, 31, 0.28) 62%, rgba(18, 14, 31, 0.12) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(18, 14, 31, 0.86) 20%, rgba(18, 14, 31, 0) 46%),
    linear-gradient(180deg, rgba(18, 14, 31, 0.75) 0%, rgba(18, 14, 31, 0) 20%);
}
.h25-body { flex: 1; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: 16px; padding-block: clamp(18px, 3.2vh, 44px) clamp(14px, 2.4vh, 28px); }

.h25-version {
  display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 5px 14px 5px 12px; margin-bottom: 20px;
  border-radius: 999px; border: 1px solid rgba(246, 184, 101, 0.38); background: rgba(246, 184, 101, 0.1);
  color: var(--tungsten); font-weight: 620; font-size: 0.93rem; text-decoration: none; transition: background 0.2s, border-color 0.2s;
}
.h25-version:hover { background: rgba(246, 184, 101, 0.18); border-color: rgba(246, 184, 101, 0.6); }
.h25-version i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(75, 227, 160, 0.18); }
.h25-version span { color: var(--text-2); font-weight: 500; }

.h25 h1 { font-size: clamp(2.6rem, 4.5vw, 4.15rem); line-height: 0.96; letter-spacing: -0.03em; max-width: 11em; }
.h25 h1 span { display: block; }
.h25 h1 .a { font-weight: 800; font-variation-settings: "wdth" 88; }
@media (min-width: 921px) { .h25 h1 { max-width: none; } .h25 h1 span { white-space: nowrap; } }
.h25 h1 .b { font-weight: 320; font-variation-settings: "wdth" 78; letter-spacing: -0.015em; color: #e9defc; margin-top: 0.06em; }
.h25 .lead { margin-top: 22px; max-width: 27em; }
.h25 .store-row { margin-top: 28px; }
.h25 .hero-note { margin-top: 18px; }

/* launch code: a ticket you can copy */
.coupon { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 31em; }
.coupon p { margin: 0; color: var(--text-2); font-size: 0.88rem; line-height: 1.45; }
.coupon-code {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 14px; cursor: pointer;
  border-radius: 12px; border: 1.5px dashed rgba(246, 184, 101, 0.6); background: rgba(246, 184, 101, 0.08); color: var(--tungsten);
  transition: background 0.2s, border-color 0.2s;
}
.coupon-code:hover { background: rgba(246, 184, 101, 0.16); border-color: var(--tungsten); }
.coupon-code b { font-weight: 800; font-size: 1.02rem; letter-spacing: 0.06em; font-variation-settings: "wdth" 100; }
.coupon-code span { min-width: 4.4em; padding: 4px 9px; border-radius: 8px; background: var(--tungsten); color: #1d1206; font-weight: 700; font-size: 0.78rem; text-align: center; }
.coupon-code.is-copied span { background: var(--green); }
.coupon-plan { margin-top: 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
@media (max-width: 480px) { .coupon { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* three real screens, fanned */
.h25-fan { --pw: clamp(180px, 15.6vw, 228px); position: relative; justify-self: end; width: calc(var(--pw) * 2.5); height: calc(var(--pw) * 2.26); }
.ph {
  position: absolute; left: 50%; top: 0; width: var(--w); aspect-ratio: 1206 / 2622; margin-left: calc(var(--w) / -2);
  border-radius: calc(var(--w) * 0.155); padding: calc(var(--w) * 0.028);
  background: linear-gradient(145deg, #54496c, #15111f 42%, #2f2746);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 50px 90px -34px rgba(0, 0, 0, 0.95), 0 0 110px -40px var(--glow, rgba(246, 184, 101, 0.5));
  transform: var(--to); transform-origin: 50% 90%;
}
.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.128); background: #0b0812; }
.ph-mid { --w: var(--pw); --to: translateY(0); z-index: 3; }
.ph-left { --w: calc(var(--pw) * 0.84); --to: translate(-88%, 13%) rotate(-9deg); --glow: rgba(75, 227, 160, 0.4); z-index: 2; }
.ph-right { --w: calc(var(--pw) * 0.84); --to: translate(88%, 13%) rotate(9deg); --glow: rgba(255, 95, 162, 0.42); z-index: 1; }
.ph-left img, .ph-right img { filter: brightness(0.86); }

/* one load moment: the screens rise and fan out */
@media (prefers-reduced-motion: no-preference) {
  .js .h25 .ph { opacity: 0; transform: translateY(16%) scale(0.94); }
  .js .h25.is-in .ph { opacity: 1; transform: var(--to); transition: transform 1.1s var(--ease), opacity 0.5s ease-out; transition-delay: var(--d, 0s); }
  .ph-left { --d: 0.16s; }
  .ph-right { --d: 0.24s; }
}

/* ---------- live Fret neck ---------- */
.neck25 { position: relative; padding-bottom: clamp(20px, 3vw, 36px); }
.neck25-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-bottom: 14px; }
.neck25-say { min-width: 0; }
.neck25-say h2 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; font-variation-settings: "wdth" 95; }
.neck25-say p { margin: 4px 0 0; color: var(--text-3); font-size: var(--fs-small); }
.neck25-say .notes { color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.neck25-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(18, 14, 31, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.seg button { min-width: 38px; min-height: 36px; padding: 4px 11px; border: 0; border-radius: 10px; background: transparent; font-weight: 680; font-size: 0.93rem; cursor: pointer; color: var(--text-2); transition: background 0.18s, color 0.18s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--tungsten); color: #1d1206; }
.hear {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 18px 6px 14px; border-radius: 999px; border: 0; cursor: pointer;
  background: #25b9cf; color: #04171c; font-weight: 700; font-size: 0.95rem; transition: background 0.18s, transform 0.18s;
}
.hear:hover { background: #4fd2e6; }
.hear:active { transform: scale(0.97); }
.hear svg { width: 14px; height: 14px; }

.neck25-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.neck25-scroll::-webkit-scrollbar { display: none; }
.neck25-scroll:focus-visible { outline-offset: -3px; }
.neck25-scroll svg { display: block; width: 100%; min-width: 980px; height: auto; touch-action: pan-x pan-y; user-select: none; -webkit-user-select: none; }
.neck25 .dot { cursor: pointer; transition: opacity 0.28s ease-out; }
.neck25 .dot circle { fill: #efe6d2; transition: fill 0.2s; }
.neck25 .dot text { fill: #241a10; font: 700 15px var(--font); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.neck25 .dot.root circle { fill: #e9a321; stroke: #ffd98a; stroke-width: 2; }
.neck25 .dot.out { opacity: 0.2; }
.neck25 .dot:hover circle, .neck25 .dot.ping circle { fill: #fff; }
.neck25 .dot.root:hover circle, .neck25 .dot.root.ping circle { fill: #ffc84d; }
.neck25 .dot:focus-visible { outline: none; }
.neck25 .dot:focus-visible circle { stroke: #fff; stroke-width: 3; }
.neck25 .win { fill: rgba(255, 255, 255, 0.045); stroke: rgba(255, 244, 222, 0.75); stroke-width: 1.6; transition: x 0.32s var(--ease), width 0.32s var(--ease); pointer-events: none; }
.neck25 .fretno { fill: var(--text-3); font: 600 13px var(--font); text-anchor: middle; }
.neck25 .fretno.on { fill: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .neck25 svg.intro .dot { animation: dot-in 0.42s var(--ease) both; animation-delay: calc(0.5s + var(--i) * 45ms); transform-box: fill-box; transform-origin: center; }
  .neck25 .dot.ping { animation: dot-ping 0.3s ease-out; transform-box: fill-box; transform-origin: center; }
}
@keyframes dot-in { from { opacity: 0; transform: scale(0.3); } }
@keyframes dot-ping { 40% { transform: scale(1.22); } }
@media (prefers-reduced-motion: reduce) { .neck25 .win, .neck25 .dot { transition: none; } }
.neck25-hint span { display: none; }
@media (max-width: 1000px) { .neck25-hint span { display: inline; } }
.neck25-hint { margin: 10px 0 0; color: var(--text-3); font-size: 0.82rem; }

/* ---------- New in 2.5 filmstrip ---------- */
.new25 { padding-block: clamp(64px, 8vw, 112px); overflow: hidden; }
.new25-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.4vw, 44px); }
.new25-head > div:first-child { max-width: 700px; }
.new25-head .lead { margin-top: 18px; }
.new25-nav { display: flex; align-items: center; gap: 14px; }
.new25-count { color: var(--text-2); font-weight: 620; font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
.new25-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, opacity 0.2s; }
.new25-nav button:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(226, 218, 255, 0.4); }
.new25-nav button[disabled] { opacity: 0.35; cursor: default; }
.new25-nav svg { width: 18px; height: 18px; }

.strip {
  --cw: clamp(236px, 23vw, 292px);
  display: flex; gap: 16px; list-style: none; margin: 0; padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 8px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 0 0 var(--cw); scroll-snap-align: start; }
.poster { position: relative; margin: 0; height: 100%; aspect-ratio: 864 / 1640; border-radius: 26px; overflow: hidden; background: #07050c; border: 1px solid var(--line); }
.poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.poster::after { content: ""; position: absolute; inset: 52% 0 0; background: linear-gradient(180deg, rgba(7, 5, 12, 0) 0%, rgba(7, 5, 12, 0.9) 40%, #07050c 70%); pointer-events: none; }
.poster figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 20px 22px; }
.poster h3 { font-size: 1.16rem; line-height: 1.14; font-variation-settings: "wdth" 96; }
.poster p { margin: 8px 0 0; color: var(--text-2); font-size: 0.9rem; line-height: 1.45; }
.poster .flag { display: inline-block; margin-bottom: 8px; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: rgba(246, 184, 101, 0.16); color: var(--tungsten); }

.segs { display: flex; gap: 4px; margin-top: 22px; }
.segs i { flex: 1; height: 3px; border-radius: 3px; background: rgba(226, 218, 255, 0.14); transition: background 0.25s; }
.segs i.on { background: var(--tungsten); }
.new25-foot { margin-top: 22px; color: var(--text-3); font-size: 0.92rem; }
.new25-foot a { color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .h25-body { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .h25-fan { --pw: clamp(170px, 18vw, 220px); width: calc(var(--pw) * 2.2); }
  .ph-left { --to: translate(-74%, 14%) rotate(-9deg); }
  .ph-right { --to: translate(74%, 14%) rotate(9deg); }
}
@media (max-width: 920px) {
  .h25 { min-height: 0; }
  .h25-body { grid-template-columns: 1fr; gap: 36px; }
  .h25-fan { --pw: clamp(150px, 34vw, 230px); width: 100%; max-width: 560px; height: calc(var(--pw) * 2.1); }
  .h25-media img { object-position: 78% 0; }
  .h25::before {
    background:
      linear-gradient(180deg, rgba(18, 14, 31, 0.6) 0%, rgba(18, 14, 31, 0.86) 34%, rgba(18, 14, 31, 0.7) 62%, var(--bg) 96%);
  }
}
@media (max-width: 640px) {
  .h25 h1 { font-size: clamp(2.5rem, 11.6vw, 3.5rem); }
  .h25-version { margin-bottom: 18px; }
  .neck25-ctl { width: 100%; }
  .seg { flex: 1 1 auto; }
  .seg button { flex: 1 1 auto; min-width: 0; padding-inline: 6px; white-space: nowrap; font-size: 0.9rem; }
  .hear { flex: 1 1 100%; justify-content: center; }
  .strip { --cw: min(72vw, 280px); gap: 12px; }
  .neck25-scroll svg { min-width: 1240px; }
  .new25-nav button { display: none; }
  .new25-count { text-align: left; }
}
