/* ─────────────────────────────────────────────────────────────────────────
   GuitarAnon — Brand System
   Palette: black / white / red (matches Zero to Guitar Hero pamphlet)
   Fonts: Poppins for display, Inter for body
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --c-ink:        #0D0D0D;
  --c-ink-2:      #1C1C1C;
  --c-charcoal:   #2E2E2E;
  --c-gray-1:     #444444;
  --c-gray-2:     #777777;
  --c-gray-3:     #BBBBBB;
  --c-pale:       #F2F2F2;
  --c-paper:      #FAFAFA;
  --c-white:      #FFFFFF;
  --c-red:        #C8102E;
  --c-red-vivid:  #FF1744;
  --c-red-dark:   #9B0B23;
  --c-red-soft:   #FDECEA;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 18px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);

  --f-display: 'Poppins', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --f-body:    'Inter',   system-ui, -apple-system, 'Helvetica Neue', sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--c-ink-2);
  background: var(--c-white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--f-display);
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.3rem;  font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .82rem;  font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gray-2); }
p  { margin: 0 0 1em; }

.container { width: min(calc(100% - 40px), var(--maxw)); margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .18s ease;
  text-align: center; white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-primary { background: var(--c-red); color: var(--c-white); }
.btn-primary:hover { background: var(--c-red-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--c-ink); border-color: var(--c-gray-3); }
.btn-ghost:hover { border-color: var(--c-ink); }
.btn-dark { background: var(--c-ink); color: var(--c-white); }
.btn-dark:hover { background: var(--c-charcoal); }

.link-quiet { color: var(--c-ink-2); font-weight: 500; }
.link-quiet:hover { color: var(--c-red); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13,13,13,.96); backdrop-filter: saturate(180%) blur(12px);
  color: var(--c-white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-row { display: flex; align-items: center; gap: 30px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--c-white); font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-logo { width: 32px; height: 32px; }
.brand-text span { color: var(--c-red-vivid); }
.primary-nav { display: flex; gap: 22px; margin-left: auto; }
.primary-nav a { color: rgba(255,255,255,.78); font-weight: 500; font-size: .95rem; position: relative; transition: color .15s; }
.primary-nav a:hover { color: var(--c-white); }
.primary-nav a.active { color: var(--c-white); }
.primary-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--c-red); border-radius: 2px; }
.primary-nav .soon { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.48); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.badge-soon {
  display: inline-block; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.72);
  padding: 2px 7px; border-radius: 4px; font-weight: 600;
}
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--c-white); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ── Hero (rotating carousel) ─────────────────────────────────────────────── */
.hero {
  background: radial-gradient(circle at 20% 0%, #1f0508, var(--c-ink) 60%);
  color: var(--c-white);
  padding: 72px 0 96px;
  overflow: hidden;
  position: relative;
}
.hero-carousel { padding: 0; }
.hero-track {
  display: flex; flex-wrap: nowrap;
  width: 100%;
  transition: transform 700ms cubic-bezier(.6,.05,.2,1);
  will-change: transform;
}
.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 72px 0 90px;
  background: radial-gradient(circle at 20% 0%, #1f0508, var(--c-ink) 60%);
}
.hero-slide-book {
  background: radial-gradient(circle at 80% 0%, #170216, var(--c-ink) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.hero-grid-flip { grid-template-columns: 1fr 1.1fr; }   /* book cover slightly larger */
.hero-copy .eyebrow { font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--c-red-vivid); font-size: .78rem; margin-bottom: 18px; }
.hero-copy h1 { color: var(--c-white); margin-bottom: 24px; }
.hero-copy h1 .accent { color: var(--c-red-vivid); }
.hero-copy .lead { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 540px; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-ctas .btn-ghost { color: var(--c-white); border-color: rgba(255,255,255,.28); }
.hero-ctas .btn-ghost:hover { border-color: var(--c-white); background: rgba(255,255,255,.04); }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: rgba(255,255,255,.82); }
.hero-points li { display: flex; align-items: center; gap: 10px; font-size: .96rem; }
.check { color: var(--c-red-vivid); font-weight: 700; }

/* Slide 1 (chord library) art */
.hero-art {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.hero-card-stack {
  position: relative;
  width: 440px; height: 280px;
  margin: 0 auto;
}
/* Cropped via object-fit: cover — pulls in the cropped (chord-thumbs-sq) image
   to fill a 1:1 card with little white space. */
.hero-chord {
  position: absolute; width: 200px; height: 200px;
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.3);
  transition: transform .4s ease;
  object-fit: cover;
}
.hero-chord-1 { top: 30px; left: 0;     transform: rotate(-6deg); z-index: 3; }
.hero-chord-2 { top: 60px; left: 130px; transform: rotate(2deg);  z-index: 2; }
.hero-chord-3 { top: 30px; right: 0;    transform: rotate(5deg);  z-index: 1; }
.hero-art:hover .hero-chord-1 { transform: rotate(-8deg) translateY(-6px); }
.hero-art:hover .hero-chord-2 { transform: rotate(3deg)  translateY(-4px); }
.hero-art:hover .hero-chord-3 { transform: rotate(7deg)  translateY(-6px); }

/* Play pill — now lives below the chord stack (in normal flow) */
.play-pill {
  position: relative;
  align-self: center;
  background: var(--c-red); color: var(--c-white);
  padding: 12px 20px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  box-shadow: 0 12px 30px rgba(200,16,46,.5);
  animation: pulse 2.4s ease-in-out infinite;
}
.play-icon { background: #fff; color: var(--c-red); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: .72rem; font-weight: 700; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* Slide 2 (book ad) art */
.hero-art-book {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hero-book-cover {
  width: 300px; max-width: 80%;
  border-radius: var(--r-md);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.35);
  transform: rotate(-3deg);
  transition: transform .35s ease;
}
.hero-art-book:hover .hero-book-cover { transform: rotate(-1deg) translateY(-4px); }
.play-pill-book { animation: pulse 3s ease-in-out infinite; }

/* Carousel dots */
.hero-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.28); transition: background .2s, transform .2s;
}
.hero-dot:hover { background: rgba(255,255,255,.55); }
.hero-dot.active { background: var(--c-red-vivid); transform: scale(1.25); }

/* ── Stats strip ─────────────────────────────────────────────────────────── */
.stats-strip { background: var(--c-pale); padding: 32px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-num { font-family: var(--f-display); font-weight: 700; font-size: 2.2rem; color: var(--c-ink); }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--c-gray-2); font-weight: 600; }

/* ── Section headers ────────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--c-gray-1); font-size: 1.05rem; }
.features { padding: 96px 0 40px; }

/* ── Feature cards ──────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  display: flex; flex-direction: column;
  background: var(--c-white); border-radius: var(--r-xl);
  border: 1px solid #eee; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  padding: 24px;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--c-ink); }
.feature-card .feature-art {
  aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-pale);
  margin-bottom: 22px;
}
.feature-card img { width: 70%; height: auto; }
.feature-card .accent-bg { background: linear-gradient(135deg, var(--c-red), var(--c-red-dark)); color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 2rem; letter-spacing: .08em; }
.feature-card .dark-bg { background: var(--c-ink); color: var(--c-white); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--c-gray-1); font-size: .95rem; }
.card-cta { margin-top: auto; padding-top: 14px; font-family: var(--f-display); font-weight: 600; color: var(--c-red); }

.waveform { display: flex; align-items: center; gap: 4px; height: 80%; }
.waveform span { width: 6px; background: var(--c-red-vivid); border-radius: 3px; animation: wave 1.6s ease-in-out infinite; }
.waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 70%; animation-delay: .1s; }
.waveform span:nth-child(3) { height: 50%; animation-delay: .2s; }
.waveform span:nth-child(4) { height: 90%; animation-delay: .3s; }
.waveform span:nth-child(5) { height: 40%; animation-delay: .4s; }
.waveform span:nth-child(6) { height: 75%; animation-delay: .5s; }
.waveform span:nth-child(7) { height: 60%; animation-delay: .6s; }
.waveform span:nth-child(8) { height: 95%; animation-delay: .7s; }
.waveform span:nth-child(9) { height: 35%; animation-delay: .8s; }
.waveform span:nth-child(10){ height: 70%; animation-delay: .9s; }
.waveform span:nth-child(11){ height: 55%; animation-delay: 1.0s; }
.waveform span:nth-child(12){ height: 85%; animation-delay: 1.1s; }
.waveform span:nth-child(13){ height: 45%; animation-delay: 1.2s; }
.waveform span:nth-child(14){ height: 65%; animation-delay: 1.3s; }
@keyframes wave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.coming-soon-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 60px; }
.coming-card { background: var(--c-pale); border-radius: var(--r-xl); padding: 30px; border: 1px dashed #ccc; }
.coming-card h4 { margin-top: 10px; }
.coming-card p { color: var(--c-gray-1); margin: 0; font-size: .95rem; }

/* ── How it works ────────────────────────────────────────────────────────── */
.how { padding: 80px 0; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how-steps li { padding: 28px; border-left: 3px solid var(--c-red); background: var(--c-paper); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--c-red); color: #fff; font-family: var(--f-display); font-weight: 700; margin-bottom: 16px; }
.how-steps p { margin: 0; color: var(--c-gray-1); font-size: .95rem; }

/* ── Pricing strip ──────────────────────────────────────────────────────── */
.pricing-strip { background: var(--c-ink); color: #fff; padding: 60px 0; margin-top: 40px; }
.pricing-row { display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap; }
.pricing-copy h2 { color: #fff; margin-bottom: 8px; }
.pricing-copy p { margin: 0; color: rgba(255,255,255,.72); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding: 60px 0 24px; border-top: 1px solid rgba(255,255,255,.06); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 40px; margin-bottom: 12px; }
.footer-grid h5 { color: var(--c-white); margin-bottom: 14px; }
.footer-grid a { display: block; color: rgba(255,255,255,.7); padding: 4px 0; }
.footer-grid a:hover { color: var(--c-red-vivid); }
.footer-bar { display: flex; justify-content: space-between; padding-top: 24px; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: 8px; }
.footer-bar a { color: rgba(255,255,255,.7); }
.footer-bar a:hover { color: var(--c-white); }

/* ── Paywall modal ──────────────────────────────────────────────────────── */
.paywall-modal {
  position: fixed; inset: 0; background: rgba(13,13,13,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; z-index: 100;
  padding: 20px;
}
.paywall-card {
  background: var(--c-white); border-radius: var(--r-xl);
  padding: 48px 40px; max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modal-in .24s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.paywall-icon { font-size: 2.4rem; margin-bottom: 8px; }
.paywall-card p { color: var(--c-gray-1); }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--c-gray-2); line-height: 1; }
.modal-close:hover { color: var(--c-ink); }
.modal-fine { font-size: .8rem; color: var(--c-gray-2); margin-top: 12px; }

/* ── Chord-families page ────────────────────────────────────────────────── */
.page-hero { padding: 80px 0 48px; background: linear-gradient(180deg, #FAFAFA, #fff); }
.page-hero h1 { margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p  { color: var(--c-gray-1); font-size: 1.05rem; max-width: 640px; }

.family-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0; border-bottom: 1px solid #eee; }
.family-tabs button {
  background: var(--c-white); border: 1px solid #e2e2e2; border-radius: 999px;
  padding: 8px 16px; font-family: var(--f-display); font-weight: 600; font-size: .9rem;
  cursor: pointer; transition: all .15s;
  color: var(--c-ink-2);
}
.family-tabs button:hover { border-color: var(--c-ink); }
.family-tabs button.active { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }

.chord-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 40px 0 80px; }
.chord-card {
  background: var(--c-white); border-radius: var(--r-lg);
  border: 1px solid #eee; padding: 18px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color .2s, box-shadow .25s, transform .25s;
  will-change: transform;
}
.chord-card:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-lg);
  transform: scale(1.06);
  z-index: 5;
}
.chord-card .chord-name { font-family: var(--f-display); font-weight: 700; font-size: 1.55rem; text-align: center; margin-bottom: 14px; color: var(--c-ink); }
.chord-thumb {
  aspect-ratio: 1/1; background: #fff; border: 1px solid #eee; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 14px;
}
.chord-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .25s; }
.chord-card:hover .chord-thumb img { transform: scale(1.04); }
.chord-actions { display: flex; gap: 8px; }
.chord-actions .mini-btn { flex: 1; text-align: center; padding: 9px 10px; border-radius: var(--r-sm); font-size: .82rem; font-family: var(--f-display); font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all .15s; text-decoration: none; }
.mini-btn-yt   { background: var(--c-pale); color: var(--c-ink); border-color: #e2e2e2; }
.mini-btn-yt:hover { background: #e8e8e8; }
.mini-btn-listen { background: var(--c-red); color: #fff; }
.mini-btn-listen:hover { background: var(--c-red-dark); }
.mini-btn-listen.playing { background: var(--c-ink); }
.mini-btn-listen[disabled] { opacity: .55; cursor: not-allowed; background: var(--c-gray-3); }

/* Listen paywall modal (audio-only blocker) */
.listen-paywall { position: fixed; inset: 0; background: rgba(13,13,13,.72); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.listen-paywall[data-open="1"] { display: flex; }
.listen-paywall .lp-card { background: var(--c-white); border-radius: var(--r-xl); max-width: 420px; width: 100%; padding: 34px 32px; text-align: center; position: relative; box-shadow: var(--shadow-lg); }
.listen-paywall .lp-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--c-gray-2); }
.listen-paywall .lp-icon { font-size: 2rem; margin-bottom: 10px; }
.listen-paywall h3 { font-size: 1.3rem; margin-bottom: 8px; }
.listen-paywall p { color: var(--c-gray-1); font-size: .95rem; margin-bottom: 18px; }
.listen-paywall .lp-fine { font-size: .78rem; color: var(--c-gray-2); margin-top: 14px; }

/* ── Chord Accompaniment Wheel ──────────────────────────────────────────── */
.wheel-stage {
  display: flex; justify-content: center; padding: 48px 0 40px;
  overflow-x: hidden; /* hide any sub-pixel shift during spin on narrow screens */
}
.wheel {
  --size: 680px;
  --radius: 270px;
  position: relative;
  width: var(--size); height: var(--size);
  transform-origin: 50% 50%;
  will-change: transform;
}
.wheel.spinning { animation: wheelSpin 650ms cubic-bezier(.25,.8,.25,1); }
@keyframes wheelSpin {
  0%   { transform: rotate(0deg)   scale(.96); }
  40%  { transform: rotate(220deg) scale(.96); }
  100% { transform: rotate(540deg) scale(1);   }
}
.wheel-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--c-white) 0 28%, var(--c-pale) 28% 29%, var(--c-white) 29% 100%);
  border: 1.5px solid #eee;
  box-shadow: var(--shadow-md);
}
.wheel-center {
  position: absolute; inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  z-index: 3; box-shadow: var(--shadow-lg); padding: 0 14px;
}
.wheel-center-label    { font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gray-3); text-align: center; }
.wheel-center-key      { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; line-height: 1; margin: 4px 0 6px; color: var(--c-white); }
.wheel-center-siglabel { font-size: .5rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-gray-3); margin-bottom: 1px; }
.wheel-center-sig      { font-family: var(--f-display); font-weight: 700; font-size: 1rem; color: var(--c-white); letter-spacing: .04em; }

.wheel-slot {
  position: absolute; top: 50%; left: 50%;
  width: 150px; padding: 8px 8px 10px;
  background: var(--c-white); border: 1.5px solid #eee;
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; cursor: pointer;
  /* Position on circle, then counter-rotate to keep content upright. */
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(0, calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.wheel-slot:hover {
  border-color: var(--c-ink);
  box-shadow: var(--shadow-md);
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(0, calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)))
    scale(1.08);
  z-index: 4;
}
.wheel-slot.playing { border-color: var(--c-red); box-shadow: 0 0 0 2px var(--c-red-soft), var(--shadow-md); }
.wheel-slot.no-audio { cursor: not-allowed; opacity: .82; }
.wheel-slot.no-audio img { filter: grayscale(45%); }
.wheel-slot.no-audio:hover {
  /* cancel the scale on disabled slots so they don't invite a tap */
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translate(0, calc(-1 * var(--radius)))
    rotate(calc(-1 * var(--angle)));
  border-color: #eee;
  box-shadow: var(--shadow-sm);
}
.wheel-slot .slot-mute {
  position: absolute; top: 6px; right: 6px;
  background: var(--c-ink); color: var(--c-white);
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .68rem; line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
/* object-fit: contain so the string-name letters at top of the chart stay visible */
.wheel-slot img { width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: var(--r-sm); background: #fff; }
.wheel-slot .slot-chord {
  font-family: var(--f-display); font-weight: 700; font-size: 1rem;
  color: var(--c-ink); margin-top: 4px;
}

/* Responsive scaling */
@media (max-width: 900px) {
  .wheel { --size: 540px; --radius: 215px; }
  .wheel-center { width: 160px; height: 160px; }
  .wheel-center-key { font-size: 2.8rem; }
  .wheel-slot { width: 122px; padding: 6px 6px 8px; }
  .wheel-slot .slot-chord { font-size: .9rem; }
}
@media (max-width: 640px) {
  .wheel-stage { padding: 24px 0 24px; }
  .wheel { --size: 360px; --radius: 142px; }
  .wheel-center { width: 110px; height: 110px; padding: 0 6px; }
  .wheel-center-label { font-size: .5rem; letter-spacing: .14em; }
  .wheel-center-key { font-size: 1.85rem; margin: 3px 0 2px; }
  .wheel-center-sig { font-size: .68rem; }
  .wheel-slot { width: 86px; padding: 4px 4px 6px; border-radius: 10px; }
  .wheel-slot:hover {
    transform:
      translate(-50%, -50%)
      rotate(var(--angle))
      translate(0, calc(-1 * var(--radius)))
      rotate(calc(-1 * var(--angle)));   /* no scale on touch — keeps tap target stable */
  }
  .wheel-slot img { border-radius: 4px; }
  .wheel-slot .slot-chord { font-size: .76rem; margin-top: 2px; }
}
@media (max-width: 380px) {
  .wheel { --size: 320px; --radius: 126px; }
  .wheel-center { width: 96px; height: 96px; }
  .wheel-center-key { font-size: 1.55rem; }
  .wheel-slot { width: 76px; }
  .wheel-slot .slot-chord { font-size: .7rem; }
}

/* ── Progressions page ──────────────────────────────────────────────────── */
.prog-toolbar {
  display: grid; grid-template-columns: 1fr 200px 200px;
  gap: 12px; padding: 28px 0 16px;
}
.prog-toolbar input[type="search"], .prog-toolbar select {
  padding: 14px 18px; border: 1.5px solid #e2e2e2; border-radius: var(--r-md);
  font-family: var(--f-body); font-size: 1rem; background: var(--c-white);
}
.prog-toolbar input[type="search"]:focus, .prog-toolbar select:focus { outline: none; border-color: var(--c-red); }

.prog-letters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 18px; border-bottom: 1px solid #eee; }
.letter-chip {
  padding: 6px 11px; border-radius: var(--r-sm);
  background: var(--c-white); border: 1.5px solid #eee;
  font-family: var(--f-display); font-weight: 600; font-size: .82rem;
  cursor: pointer; min-width: 34px; transition: all .15s;
}
.letter-chip:hover { border-color: var(--c-ink); }
.letter-chip.active { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }

.song-list { padding: 14px 0 10px; display: flex; flex-direction: column; gap: 2px; }
.song-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
  gap: 20px; align-items: center;
  padding: 10px 16px; border-bottom: 1px solid var(--c-pale);
  background: var(--c-white); transition: background .15s;
}
.song-row:hover { background: var(--c-paper); }
.col-artist { font-family: var(--f-body); font-weight: 600; color: var(--c-charcoal); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-title  { font-family: var(--f-display); font-weight: 700; color: var(--c-ink);     font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-genre  { color: var(--c-gray-2); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-cta-mini {
  padding: 5px 12px; font-size: .76rem;
  font-family: var(--f-display); font-weight: 600;
  background: var(--c-ink); color: var(--c-white);
  border: 0; border-radius: var(--r-sm); cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.row-cta-mini:hover { background: var(--c-red); }

.chord-pill, .chord-pill-row span {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--c-red-soft); color: var(--c-red-dark);
  font-family: var(--f-display); font-weight: 700; font-size: .76rem;
}
.chord-pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 22px; }

/* Song detail modal */
.song-modal { position: fixed; inset: 0; background: rgba(13,13,13,.75); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; overflow-y: auto; }
.song-modal[hidden] { display: none; }
.song-modal-card { background: var(--c-white); border-radius: var(--r-xl); max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 32px 36px; position: relative; box-shadow: var(--shadow-lg); }
.song-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--c-gray-2); }
.song-modal-close:hover { color: var(--c-ink); }
.modal-eyebrow { font-size: .72rem; font-weight: 700; color: var(--c-red); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.song-modal h2 { margin: 0 0 4px; font-size: 1.7rem; }
.modal-artist { color: var(--c-gray-1); margin: 0 0 16px; font-size: 1rem; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 0; border-top: 1px solid var(--c-pale); border-bottom: 1px solid var(--c-pale); margin-bottom: 16px; font-size: .9rem; color: var(--c-charcoal); align-items: center; }
.modal-meta .btn-sm { padding: 6px 12px; font-size: .82rem; }
.prog-section-head { font-size: .72rem; font-weight: 700; color: var(--c-gray-2); letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 6px; }
.prog-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prog-table th { text-align: left; padding: 10px 14px 10px 0; font-family: var(--f-display); font-weight: 700; color: var(--c-red); width: 110px; vertical-align: top; }
.prog-table td { padding: 10px 0; font-family: var(--f-display); font-weight: 600; color: var(--c-ink); border-bottom: 1px dashed var(--c-pale); }
.prog-table tr:last-child td { border-bottom: none; }
.prog-locked { background: var(--c-pale); border-radius: var(--r-md); padding: 26px 24px; text-align: center; margin-top: 12px; }
.prog-locked-icon { font-size: 1.8rem; margin-bottom: 8px; }
.prog-locked h4 { font-size: 1.15rem; margin: 0 0 8px; }
.prog-locked p { color: var(--c-gray-1); margin: 0 0 16px; font-size: .92rem; }

@media (max-width: 720px) {
  .prog-toolbar { grid-template-columns: 1fr; }
  .song-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 14px; }
  .col-artist, .col-genre { display: none; }
  .song-modal-card { padding: 22px 20px; max-height: 92vh; }
  .song-modal h2 { font-size: 1.4rem; }
}

/* ── Music library page ─────────────────────────────────────────────────── */
.track-list { padding: 18px 0 60px; display: grid; gap: 6px; }
.track-row {
  display: grid;
  grid-template-columns: 36px minmax(0, max-content) minmax(0, 1fr) auto auto auto;
  gap: 12px; align-items: center;
  padding: 8px 14px; background: var(--c-white);
  border: 1px solid #eee; border-radius: var(--r-md);
  transition: border-color .15s, box-shadow .15s;
  min-height: 0;
}
.track-row:hover { border-color: var(--c-ink); box-shadow: var(--shadow-sm); }
.track-play {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: .78rem; line-height: 1;
  transition: background .15s;
}
.track-play:hover { background: var(--c-red-dark); }
.track-play.playing { background: var(--c-ink); }
.track-title  { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-meta   { color: var(--c-gray-1); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-length { font-family: var(--f-display); font-weight: 600; color: var(--c-charcoal); font-size: .82rem; min-width: 36px; text-align: right; white-space: nowrap; }
.track-lic    { font-size: .64rem; font-weight: 700; color: var(--c-red-dark); background: var(--c-red-soft); padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; white-space: nowrap; }
.btn-sm       { padding: 5px 11px; font-size: .78rem; white-space: nowrap; }
@media (max-width: 900px) {
  .track-row { grid-template-columns: 32px minmax(0, max-content) minmax(0, 1fr) auto auto; gap: 10px; }
  .track-lic { display: none; }
}
@media (max-width: 640px) {
  .track-row { grid-template-columns: 32px minmax(0, 1fr) auto auto; gap: 10px; padding: 8px 12px; }
  .track-meta, .track-length { display: none; }
  .btn-sm { padding: 5px 10px; font-size: .72rem; }
}
.track-length { color: var(--c-gray-2); font-variant-numeric: tabular-nums; }
.track-lic { font-size: .72rem; color: var(--c-gray-2); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.track-row.locked .track-title { color: var(--c-gray-2); }
.track-row.locked .track-play { background: var(--c-gray-3); }

/* ── Pricing page ───────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; padding: 20px 0 80px; }
.plan-card { background: var(--c-white); border: 1.5px solid #eee; border-radius: var(--r-xl); padding: 40px 32px; display: flex; flex-direction: column; }
.plan-card.featured { border-color: var(--c-red); box-shadow: 0 24px 60px rgba(200,16,46,.12); position: relative; }
.plan-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--c-red); color: #fff; font-size: .7rem; letter-spacing: .12em; padding: 4px 12px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; }
.plan-card h3 { margin-bottom: 6px; }
.plan-card .plan-price { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--c-ink); margin: 16px 0 2px; }
.plan-card .plan-price small { font-weight: 500; font-size: 1rem; color: var(--c-gray-2); }
.plan-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; color: var(--c-gray-1); font-size: .95rem; }
.plan-card ul li::before { content: '✓'; color: var(--c-red); font-weight: 700; margin-right: 8px; }

/* ── Store page ─────────────────────────────────────────────────────────── */
.store-product { display: grid; grid-template-columns: 360px 1fr; gap: 48px; padding: 30px 0 60px; align-items: start; }
.store-product.featured { background: var(--c-paper); border-radius: var(--r-xl); padding: 40px; border: 1px solid #eee; margin-bottom: 60px; }
.store-cover img { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); display: block; }
.store-info .store-eyebrow { color: var(--c-red); font-family: var(--f-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: 8px; }
.store-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 12px; }
.store-info .store-tag { color: var(--c-gray-1); font-size: 1.05rem; margin-bottom: 22px; }
.store-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 8px; }
.store-points li { display: flex; align-items: center; gap: 10px; color: var(--c-ink-2); font-size: .95rem; }
.store-points .check { color: var(--c-red); font-weight: 700; }
.store-controls { display: grid; gap: 22px; margin-bottom: 28px; padding: 22px; background: var(--c-white); border-radius: var(--r-lg); border: 1px solid #eee; }
.control-label { display: block; font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-gray-2); margin-bottom: 10px; }
.lang-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lang-btn { background: var(--c-white); border: 1.5px solid #e2e2e2; border-radius: var(--r-md); padding: 10px 12px; font-family: var(--f-display); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .15s; color: var(--c-ink-2); }
.lang-btn:hover { border-color: var(--c-ink); }
.lang-btn.active { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.fmt-pills { display: inline-flex; background: var(--c-pale); border-radius: 999px; padding: 4px; gap: 4px; }
.fmt-pill { background: transparent; border: none; padding: 8px 22px; font-family: var(--f-display); font-weight: 600; font-size: .9rem; cursor: pointer; border-radius: 999px; transition: background .15s; color: var(--c-ink-2); }
.fmt-pill.active { background: var(--c-red); color: var(--c-white); }
.store-cta-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 8px; }
.store-price { font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--c-ink); }
.store-price small { font-weight: 500; font-size: .82rem; color: var(--c-gray-2); }
.store-fine { color: var(--c-gray-2); font-size: .82rem; margin: 0; }
.store-section-head { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; margin: 40px 0 20px; color: var(--c-gray-1); }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-bottom: 80px; }
.store-card { background: var(--c-white); border: 1px solid #eee; border-radius: var(--r-xl); padding: 24px; }
.store-card-soon { opacity: .7; }
.store-card-art { aspect-ratio: 3/2; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-family: var(--f-display); font-weight: 800; font-size: 2rem; letter-spacing: .08em; color: var(--c-ink); }
.store-card-art.accent-bg { background: linear-gradient(135deg, var(--c-red), var(--c-red-dark)); color: var(--c-white); }
.store-card-art.dark-bg { background: var(--c-ink); color: var(--c-red-vivid); }
.store-card h4 { margin-bottom: 8px; }
.store-card p { color: var(--c-gray-1); font-size: .92rem; margin-bottom: 12px; }

/* ── Checkout modal ─────────────────────────────────────────────────────── */
.checkout-modal { position: fixed; inset: 0; background: rgba(13,13,13,.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.checkout-card { background: var(--c-white); border-radius: var(--r-xl); padding: 40px 36px; max-width: 460px; width: 100%; position: relative; box-shadow: var(--shadow-lg); animation: modal-in .22s ease-out; }
.checkout-eyebrow { color: var(--c-red); font-family: var(--f-display); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; display: block; margin-bottom: 10px; }
.checkout-header h3 { margin: 0 0 14px; }
.order-summary { background: var(--c-paper); border-radius: var(--r-md); padding: 20px; margin: 20px 0; }
.order-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.order-line.order-total { border-top: 1px solid #e2e2e2; margin-top: 6px; padding-top: 16px; font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; }
.order-line.order-total .order-label { color: var(--c-ink); }
.order-title { font-family: var(--f-display); font-weight: 600; color: var(--c-ink); margin-bottom: 2px; }
.order-meta  { font-size: .82rem; color: var(--c-gray-2); }
.order-price { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); }
.order-price small { font-weight: 500; font-size: .72rem; color: var(--c-gray-2); margin-left: 4px; }
.pay-buttons { display: grid; gap: 10px; margin: 20px 0 16px; }
.pay-btn { justify-content: center; width: 100%; }
.pay-icon { margin-right: 2px; }
.checkout-fine { color: var(--c-gray-2); font-size: .8rem; margin: 10px 0 0; text-align: center; }
.spinner { width: 48px; height: 48px; margin: 8px auto 20px; border: 4px solid var(--c-pale); border-top-color: var(--c-red); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.success-badge { width: 64px; height: 64px; margin: 8px auto 16px; background: var(--c-red); color: #fff; font-size: 2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; border-radius: 50%; animation: pop .3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* ── Coming-soon page ───────────────────────────────────────────────────── */
.coming-hero { text-align: center; padding: 120px 0; background: radial-gradient(circle at 50% 20%, #2a090d, var(--c-ink) 70%); color: #fff; }
.coming-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); }
.coming-hero p { color: rgba(255,255,255,.72); font-size: 1.1rem; max-width: 520px; margin: 0 auto 30px; }

/* ── Social media icon row ──────────────────────────────────────────────── */
.social-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.social-icon { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: rgba(255,255,255,.78); border-radius: 50%; transition: all .15s; }
.social-icon:hover { background: var(--c-red); color: var(--c-white); transform: translateY(-2px); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
/* Tablet: stack hero + features, keep nav inline */
@media (max-width: 960px) {
  .hero-grid, .hero-grid-flip { grid-template-columns: 1fr; }
  .hero-card-stack { width: 100%; max-width: 380px; height: 240px; }
  .hero-chord { width: 170px; height: 170px; }
  .hero-chord-1 { left: 10%; top: 10px; }
  .hero-chord-2 { left: 35%; top: 40px; }
  .hero-chord-3 { right: 10%; top: 20px; }
  .hero-book-cover { width: 240px; }
  .feature-grid { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; }
  .coming-soon-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* Phone: hamburger nav, single columns, 44px+ tap targets */
@media (max-width: 720px) {
  :root { --maxw: 100%; }
  .container { width: calc(100% - 28px); }
  .primary-nav, .nav-cta { display: none; }
  .hamburger { display: inline-flex; margin-left: auto; }
  .primary-nav.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--c-ink); padding: 18px 20px; gap: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .primary-nav.open a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .primary-nav.open a:last-child { border-bottom: none; }
  .nav-row { padding: 12px 0; }
  .brand { font-size: 1.05rem; }
  .brand-logo { width: 28px; height: 28px; }

  /* Hero — tighten padding, shrink art, stack pill below */
  .hero-slide { padding: 48px 0 60px; }
  .hero-card-stack { width: 100%; max-width: 320px; height: 200px; }
  .hero-chord { width: 140px; height: 140px; }
  .hero-chord-1 { left: 4%; top: 4px; }
  .hero-chord-2 { left: 30%; top: 30px; }
  .hero-chord-3 { right: 4%; top: 14px; }
  .play-pill { padding: 10px 16px; font-size: .82rem; }
  .hero-book-cover { width: 200px; }
  .hero-copy .lead { font-size: 1.02rem; }
  .hero-ctas .btn { flex: 1; min-width: 140px; justify-content: center; }
  .hero-points li { font-size: .9rem; }
  .hero-dots { bottom: 12px; }

  /* Stats */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-num { font-size: 1.7rem; }
  .stat-label { font-size: .72rem; }

  /* Features / sections */
  .features { padding: 60px 0 24px; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: .98rem; }
  .feature-card { padding: 18px; }
  .feature-card .feature-art { aspect-ratio: 16/9; margin-bottom: 16px; }
  .how { padding: 48px 0; }
  .how-steps li { padding: 22px; }
  .pricing-strip { padding: 40px 0; }
  .pricing-row { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* Page hero */
  .page-hero { padding: 48px 0 28px; }
  .page-hero p { font-size: .98rem; }

  /* Family tabs */
  .family-tabs { padding: 18px 0; gap: 6px; }
  .family-tabs button { padding: 10px 14px; font-size: .85rem; min-height: 40px; }

  /* Chord grid */
  .chord-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px 0 60px; }
  .chord-card { padding: 12px; }
  .chord-card:hover { transform: none; }
  .chord-card .chord-name { font-size: 1.1rem; margin-bottom: 8px; }
  .chord-thumb { margin-bottom: 10px; }
  .chord-actions { gap: 6px; }
  .chord-actions .mini-btn { padding: 10px 6px; font-size: .72rem; min-height: 40px; }

  /* Search bar */
  .search-bar { padding: 18px 0; gap: 10px; }
  .search-bar input[type="search"] { min-width: 100%; padding: 12px 16px; font-size: .95rem; }
  .search-bar select { width: 100%; padding: 12px 16px; min-width: 100%; }

  /* Song list — collapse to title + view button */
  .song-row { grid-template-columns: 1.8rem 1fr auto; gap: 10px; padding: 14px 12px; }
  .song-row .song-artist, .song-row .song-chip, .song-row .song-key { display: none; }
  .song-row .song-title { font-size: .95rem; }
  .song-row .btn { padding: 10px 16px; font-size: .82rem; min-height: 40px; }

  /* Track list */
  .track-row { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 14px 12px; }
  .track-row .track-meta, .track-row .track-lic { display: none; }
  .track-row .track-title { font-size: .92rem; }

  /* Store */
  .store-product { grid-template-columns: 1fr; gap: 24px; }
  .store-product.featured { padding: 22px; }
  .store-cover { max-width: 280px; margin: 0 auto; }
  .store-info h2 { font-size: 1.6rem; }
  .store-info .store-tag { font-size: .98rem; }
  .store-controls { padding: 16px; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .lang-btn { padding: 12px 6px; font-size: .82rem; min-height: 44px; }
  .fmt-pills { width: 100%; justify-content: center; }
  .fmt-pill { flex: 1; padding: 12px 16px; min-height: 44px; }
  .store-cta-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .store-price { text-align: center; font-size: 1.7rem; }
  .store-cta-row .btn { width: 100%; justify-content: center; }
  .store-grid { grid-template-columns: 1fr; }
  .store-card { padding: 18px; }

  /* Buttons — ensure 44px min tap height */
  .btn { min-height: 44px; }
  .btn-lg { min-height: 50px; padding: 14px 22px; }

  /* Pricing cards */
  .plan-card { padding: 28px 22px; }
  .plan-card .plan-price { font-size: 2.1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bar { flex-direction: column; gap: 6px; text-align: center; }

  /* Checkout modal — full-bleed on tiny screens */
  .checkout-card { padding: 28px 22px; max-height: calc(100vh - 40px); overflow-y: auto; }
  .pay-btn { font-size: .95rem; }
}

/* Small phone: tighten further */
@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .container { width: calc(100% - 24px); }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.5rem; }
  .chord-grid { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero-card-stack { width: 100%; max-width: 280px; height: 170px; }
  .hero-chord { width: 116px; height: 116px; }
  .hero-book-cover { width: 170px; }
  .pricing-copy h2 { font-size: 1.4rem; }
  .play-pill { right: 5%; }
}

/* Avoid horizontal scroll, no matter what */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ── News section ───────────────────────────────────────────────────────── */
/* Featured news block on home */
.featured-news { padding: 60px 0 30px; background: var(--c-paper); border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.featured-news-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  background: var(--c-white); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid #eee; transition: border-color .15s, box-shadow .2s, transform .2s;
}
.featured-news-card:hover { border-color: var(--c-ink); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-news-cover { aspect-ratio: 16/10; overflow: hidden; }
.featured-news-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-news-body { padding: 28px 32px 28px 0; }
.featured-news-body h2 { font-size: 1.6rem; margin: 0 0 10px; line-height: 1.2; }
.featured-news-body p  { color: var(--c-gray-1); font-size: 1rem; margin: 0 0 16px; }
.featured-news-cta { font-family: var(--f-display); font-weight: 700; color: var(--c-red); font-size: .95rem; }
@media (max-width: 720px) {
  .featured-news-card { grid-template-columns: 1fr; gap: 0; }
  .featured-news-body { padding: 22px; }
  .featured-news-body h2 { font-size: 1.3rem; }
}

/* News index grid */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 32px 0 80px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex; flex-direction: column; background: var(--c-white);
  border: 1px solid #eee; border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-ink); }
.news-card-cover { aspect-ratio: 16/10; overflow: hidden; background: var(--c-pale); }
.news-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.news-card-body h3 { font-size: 1.1rem; line-height: 1.25; margin: 0; color: var(--c-ink); }
.news-card-body p  { color: var(--c-gray-1); font-size: .92rem; margin: 0; }
.news-card-meta { font-size: .72rem; font-weight: 700; color: var(--c-gray-2); letter-spacing: .12em; text-transform: uppercase; }
.news-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.news-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--c-pale); color: var(--c-charcoal);
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
}

/* Individual article page */
.news-article { padding: 0; }
.news-cover { width: 100%; height: clamp(220px, 35vw, 420px); position: relative; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover-credit {
  position: absolute; bottom: 8px; right: 12px;
  background: rgba(0,0,0,.55); color: rgba(255,255,255,.85);
  padding: 4px 10px; border-radius: 4px; font-size: .68rem;
}
.news-body { max-width: 720px; padding: 40px 20px 80px; }
.news-meta { color: var(--c-gray-2); font-size: .85rem; margin: 0 0 14px; }
.news-meta a { color: var(--c-red); font-weight: 600; }
.news-body h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 18px; }
.news-lede   { font-size: 1.18rem; color: var(--c-charcoal); line-height: 1.55; margin-bottom: 22px; font-weight: 500; }
.news-body p { font-size: 1.04rem; line-height: 1.7; margin: 0 0 18px; color: var(--c-ink-2); }
.news-body p strong { color: var(--c-ink); }
.news-share { padding: 24px 0 0; border-top: 1px solid #eee; margin-top: 32px; }

/* ── Chord Families — Essentials block + section divider ───────────────── */
.essentials { padding: 32px 0 8px; }
.essentials-head { padding: 0 0 18px; max-width: 720px; }
.essentials-head h2 { font-size: 1.5rem; margin: 0 0 8px; }
.essentials-head p  { color: var(--c-gray-1); font-size: .96rem; margin: 0; }
.essentials .chord-grid { padding: 0 0 12px; }
.section-divider {
  font-size: 1.1rem; font-weight: 700;
  margin: 36px 0 14px;
  padding-top: 28px; border-top: 1px solid #eee;
  color: var(--c-charcoal);
}

/* ── Progressions chord-pill links + per-song PDF CTA ──────────────────── */
.chord-pill-link {
  cursor: pointer; transition: background .15s, transform .12s;
  text-decoration: none;
}
.chord-pill-link:hover { background: var(--c-red); color: var(--c-white); transform: translateY(-1px); }
.song-pdf-cta {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  margin-top: 20px; padding: 16px 18px;
  background: var(--c-pale); border-radius: var(--r-md);
  border: 1px solid #e5e5e5;
}
.song-pdf-info  { min-width: 0; }
.song-pdf-title { font-family: var(--f-display); font-weight: 700; color: var(--c-ink); font-size: 1rem; line-height: 1.2; }
.song-pdf-sub   { color: var(--c-gray-1); font-size: .85rem; margin-top: 4px; }
@media (max-width: 560px) {
  .song-pdf-cta { flex-direction: column; align-items: stretch; }
}

/* Thank-you page — highlight the buyer's language */
.ty-card .lang-btn.primary { background: var(--c-red); color: var(--c-white); border-color: var(--c-red); }
.ty-card .lang-btn.primary:hover { background: var(--c-red-dark); border-color: var(--c-red-dark); }

/* ── Chord-chart image protection ──────────────────────────────────────── */
/* Blocks casual save: drag-to-desktop, text selection, iOS long-press save.
   Does NOT stop devtools/screenshots (no client-side method can). */
.chord-thumb img,
.hero-chord,
img[src*="chord-thumbs"] {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;   /* iOS long-press image menu */
  pointer-events: none;           /* makes right-click + drag inert */
}
/* Re-enable pointer events on the card so buttons still work */
.chord-card, .chord-thumb, .wheel-slot, .hero-card-stack { pointer-events: auto; }

/* Subtle watermark on chord chart cards (hard to miss in a screenshot) */
.chord-thumb::after {
  content: 'guitaranon';
  position: absolute;
  bottom: 4px; right: 6px;
  font-family: var(--f-display);
  font-size: .55rem; font-weight: 700;
  color: rgba(200, 16, 46, 0.28);
  letter-spacing: .08em;
  pointer-events: none;
  z-index: 2;
}
.chord-thumb { position: relative; }

/* ── Wheel page: tighter top, wider prose ──────────────────────────────── */
.wheel-hero { padding-top: 28px; padding-bottom: 10px; }
.wheel-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.wheel-hero p  { max-width: 100%; margin: 0 auto; font-size: 1rem; color: var(--c-gray-1); }
.wheel-hero + .container .family-tabs { padding: 14px 0 12px; }
.wheel-hero + .container .wheel-stage { padding-top: 18px; padding-bottom: 24px; }

/* ── Auth card extras (Google/Apple buttons, divider, captcha) ─────────── */
.social-auth { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--r-md);
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: all .15s;
  border: 1.5px solid #e2e2e2; background: var(--c-white); color: var(--c-ink);
}
.social-btn-google:hover { border-color: var(--c-ink); background: var(--c-paper); }
.social-btn-apple { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.social-btn-apple:hover { background: var(--c-charcoal); }
.social-btn svg { flex-shrink: 0; }

.auth-card .divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--c-gray-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em;
  margin: 4px 0 18px;
}
.auth-card .divider::before, .auth-card .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--c-pale);
}
.auth-card .field-hint { font-size: .72rem; color: var(--c-gray-2); margin: 6px 0 0; }
.auth-card .captcha-field { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0 4px; }
.auth-card .captcha-field .field-hint { text-align: center; }
.auth-err { color: var(--c-red-dark); background: var(--c-red-soft); border-radius: var(--r-sm);
            padding: 10px 12px; font-size: .85rem; margin-bottom: 10px; min-height: 0;
            transition: opacity .2s; }
.auth-err:empty { display: none; }
.auth-err.show { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* ── Families — essential tab separator + tier banner + locked states ─── */
.family-tabs .essential-tab {
  background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink);
  margin-right: 12px; position: relative;
}
.family-tabs .essential-tab::after {
  content: ''; position: absolute; top: 10%; right: -7px; height: 80%; width: 1px;
  background: var(--c-gray-3);
}
.family-tabs .essential-tab.active { background: var(--c-red); border-color: var(--c-red); }

.tier-banner {
  background: var(--c-paper); border: 1px solid #eee; border-radius: var(--r-md);
  padding: 12px 18px; margin: 16px 0 4px; font-size: .88rem;
}
.tier-banner-inner { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tier-banner strong { color: var(--c-ink); }
.tier-banner .tier-more { color: var(--c-gray-1); display: block; margin-top: 2px; font-size: .82rem; }
.tier-banner .tier-cta { display: flex; gap: 8px; }

.chord-card.locked-signup, .chord-card.locked-pro {
  position: relative; cursor: pointer;
}
.chord-card.locked-signup .chord-thumb, .chord-card.locked-pro .chord-thumb {
  filter: grayscale(80%) blur(2px) brightness(.95);
}
.chord-card.locked-signup::before, .chord-card.locked-pro::before {
  content: ''; position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--c-ink); color: var(--c-white);
  display: grid; place-items: center; font-size: .78rem; z-index: 3;
}
.chord-card.locked-signup::before { content: '🔒'; }
.chord-card.locked-pro::before    { content: '⭐'; }
.chord-card.locked-signup .chord-actions, .chord-card.locked-pro .chord-actions { pointer-events: none; opacity: .6; }
.chord-card.locked-signup::after, .chord-card.locked-pro::after {
  position: absolute; inset: auto 12px 80px 12px;
  text-align: center; font-family: var(--f-display); font-weight: 700; font-size: .82rem;
  color: var(--c-white); background: rgba(13,13,13,.8);
  padding: 6px 10px; border-radius: var(--r-sm); z-index: 2; pointer-events: none;
}
.chord-card.locked-signup::after { content: 'Sign up free to unlock'; }
.chord-card.locked-pro::after    { content: 'Go Pro to unlock'; }

/* ── Progressions modal — ordered chord-sequence strip ───────────────── */
.verse-chart-row {
  display: flex; gap: 6px; margin: 6px 0 22px;
  overflow-x: auto; padding-bottom: 4px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.verse-chart-row::-webkit-scrollbar { height: 6px; }
.verse-chart-row::-webkit-scrollbar-thumb { background: var(--c-gray-3); border-radius: 4px; }
.verse-card {
  flex: 0 0 auto; width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px; background: var(--c-white);
  border: 1px solid #eee; border-radius: var(--r-sm);
  text-decoration: none; color: var(--c-ink);
  scroll-snap-align: start;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.verse-card:hover { border-color: var(--c-ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.verse-card-thumb { width: 100%; aspect-ratio: 1/1; background: #fff; border-radius: 3px; overflow: hidden; }
.verse-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.verse-card-name { font-family: var(--f-display); font-weight: 700; font-size: .7rem; line-height: 1; }

/* ── Music Library — 3-option buy modal ────────────────────────────── */
.ml-buy-card { max-width: 480px; }
.ml-buy-options { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.ml-buy-opt {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 14px 16px; background: var(--c-white);
  border: 1.5px solid #e2e2e2; border-radius: var(--r-md);
  text-decoration: none; color: var(--c-ink); text-align: left;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.ml-buy-opt:hover { border-color: var(--c-ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.ml-buy-opt-best { border-color: var(--c-red); background: var(--c-red-soft); }
.ml-buy-opt-best:hover { border-color: var(--c-red-dark); }
.ml-buy-opt-pro { background: var(--c-ink); color: var(--c-white); border-color: var(--c-ink); }
.ml-buy-opt-pro:hover { background: var(--c-charcoal); }
.ml-opt-badge {
  position: absolute; top: -8px; right: 12px; background: var(--c-red); color: var(--c-white);
  font-family: var(--f-display); font-weight: 700; font-size: .62rem;
  padding: 2px 8px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase;
}
.ml-opt-price { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; min-width: 72px; }
.ml-opt-price small { font-family: var(--f-body); font-weight: 500; font-size: .72rem; opacity: .7; }
.ml-opt-meta { flex: 1; }
.ml-opt-title { font-family: var(--f-display); font-weight: 700; font-size: .98rem; }
.ml-opt-sub { font-size: .82rem; opacity: .75; margin-top: 2px; }

/* ── Home-page news rotator (auto-toggles through 3 most recent) ───────── */
.news-rotator {
  display: flex; flex-wrap: nowrap;
  transition: transform 700ms cubic-bezier(.6,.05,.2,1);
  will-change: transform;
}
.news-rotator > .featured-news-card {
  flex: 0 0 100%; min-width: 100%;
  /* re-use existing .featured-news-card layout */
}
.featured-news { overflow: hidden; }
.news-rotator-dots {
  display: flex; gap: 8px; justify-content: center;
  margin-top: 16px;
}
.news-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--c-gray-3); transition: background .2s, transform .2s;
}
.news-dot:hover { background: var(--c-gray-2); }
.news-dot.active { background: var(--c-red); transform: scale(1.3); }
