/* ============================================================
   InsidePiano — main.css
   Single source of truth for all frontend pages.
   All strings live in the HTML files; this file is style only.
   ============================================================ */

/* ── 1. Tokens ─────────────────────────────────────────────── */
:root {
  --bg-page:        #161618;
  --bg-card:        #1F1F21;
  --bg-card-hover:  #242426;
  --bg-elevated:    #28282B;

  --accent:         #7367f0;
  --accent-dim:     rgba(115, 103, 240, 0.15);
  --accent-hover:   rgba(115, 103, 240, 0.25);
  --accent-glow:    rgba(115, 103, 240, 0.08);

  --blue-series:    #4a9eff;
  --blue-dim:       rgba(74, 158, 255, 0.12);
  --red-series:     #f05060;
  --red-dim:        rgba(240, 80, 96, 0.12);
  --gold-series:    #c9962a;
  --gold-dim:       rgba(201, 150, 42, 0.12);
  --green-series:   #4caf7d;
  --green-dim:      rgba(76, 175, 125, 0.12);
  --essential:      #9b8ea0;
  --essential-dim:  rgba(155, 142, 160, 0.12);

  --text-primary:   #c8c8cd;
  --text-secondary: #939397;
  --text-muted:     #5e5e63;
  --text-on-accent: #ffffff;

  --border:         #2e2e33;
  --border-subtle:  #232326;
  --border-strong:  #3e3e44;

  --plan-standard:  #4a9eff;
  --plan-premium:   #4caf7d;
  --plan-lifetime:  #c9962a;

  --font-body:      'DM Sans', system-ui, sans-serif;
  --font-display:   'Playfair Display', Georgia, serif;
  --font-mono:      'JetBrains Mono', monospace;

  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  --max-width:        1140px;
  --max-width-narrow: 760px;
  --max-width-wide:   1320px;
  --nav-height:       64px;
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        12px;
  --radius-xl:        20px;
  --radius-pill:      999px;

  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;
}

/* ── 2. Reset ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
}

html {
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ── 3. Typography scale ────────────────────────────────────── */
.text-xs    { font-size: 0.75rem; }
.text-sm    { font-size: 0.875rem; }
.text-base  { font-size: 1rem; }
.text-lg    { font-size: 1.125rem; }
.text-xl    { font-size: 1.25rem; }
.text-2xl   { font-size: 1.5rem; }
.text-3xl   { font-size: 1.875rem; }
.text-4xl   { font-size: 2.25rem; }
.text-5xl   { font-size: 3rem; }
.text-6xl   { font-size: 3.75rem; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--accent); }

.leading-tight  { line-height: 1.2; }
.leading-snug   { line-height: 1.35; }
.leading-normal { line-height: 1.65; }

.uppercase     { text-transform: uppercase; }
.tracking-wide  { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.12em; }

/* ── 4. Layout utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.container--wide {
  max-width: var(--max-width-wide);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

.section     { padding-block: var(--space-xl); }
.section--sm { padding-block: var(--space-xl); }
.section--lg { padding-block: var(--space-4xl); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* ── Language switcher ─────────────────────────────────────── */
.lang-switcher {
  position: relative;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  transition: color var(--t-fast), background var(--t-fast);
  letter-spacing: 0.02em;
}

.lang-switcher__btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.05);
}

.lang-switcher__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.375rem;
  min-width: 130px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 200;
}

.lang-switcher.open .lang-switcher__dropdown {
  display: flex;
  flex-direction: column;
}

.lang-switcher__option {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), color var(--t-fast);
  text-decoration: none;
}

.lang-switcher__option:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

.lang-switcher__option--active {
  color: var(--accent);
  font-weight: 600;
}

/* ── 5. Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(22, 22, 24, 0.97);
  border-bottom: 1px solid var(--border-subtle);
  transition: top 0.35s ease, border-color var(--t-base);
}

.nav--hidden {
  top: -64px;
}

.nav--hidden + .nav__mobile {
  transform: translateY(-100%);
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

/* Logo image version */
.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: opacity var(--t-fast);
}

.nav__logo-img:hover { opacity: 0.85; }

/* Text fallback (used in footer) */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav__logo-text { color: var(--text-primary); letter-spacing: -0.02em; }
.nav__logo-text span { color: var(--accent); }
.nav__logo:hover { color: #ffffff; }

.nav__logo-icon {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  transition: color var(--t-fast), background var(--t-fast);
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

.nav__link:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav__link.active { color: var(--text-primary); }

.nav__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-on-accent);
  background: var(--accent);
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-md);
  transition: opacity var(--t-fast), transform var(--t-fast);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}

.nav__cta:hover { opacity: 0.88; transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md) var(--space-xl);
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 99;
}

.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1rem; padding: 0.625rem 0.75rem; }
.nav__mobile .nav__cta  { text-align: center; padding: 0.75rem; border-radius: var(--radius-md); margin-top: var(--space-sm); }

/* ── 6. Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.75rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn:disabled { opacity: 0.45; pointer-events: none; }

.btn--primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.btn--primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(115,103,240,0.35); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost { background: var(--accent-dim); color: var(--accent); border-color: rgba(115,103,240,0.3); }
.btn--ghost:hover { background: var(--accent-hover); border-color: rgba(115,103,240,0.5); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm   { font-size: 0.8125rem; padding: 0.5rem 1.125rem; }
.btn--lg   { font-size: 1.0625rem; padding: 1rem 2.25rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

/* ── 7. Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: border-color var(--t-base), background var(--t-base);
}

.card:hover           { border-color: var(--border-strong); background: var(--bg-card-hover); }
.card--elevated       { background: var(--bg-elevated); border-color: var(--border-strong); }
.card--accent         { border-color: rgba(115,103,240,0.4); }
.card--accent:hover   { border-color: rgba(115,103,240,0.6); }

/* ── 8. Section headers ─────────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-title em { font-style: italic; color: #ffffff; }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 588px;
}

.section-header { margin-bottom: var(--space-xl); }
.section-header--center { text-align: center; }
.section-header--center .section-subtitle { margin-inline: auto; }

/* ── 9. Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(115,103,240,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(74,158,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero__staff {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  opacity: 0.04;
  pointer-events: none;
  overflow: hidden;
}

.hero__staff::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 28px,
    rgba(255,255,255,0.6) 28px, rgba(255,255,255,0.6) 30px
  );
}

.hero__photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 55%, black 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.4) 25%, rgba(0,0,0,0.85) 55%, black 100%);
}

.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-2xl);
}

.hero__kicker {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.hero__kicker::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-xl);
  max-width: 680px;
}

.hero__title em { font-style: italic; color: var(--accent); }

.hero__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: var(--space-2xl);
}

.hero__actions { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }

.hero__proof {
  margin-top: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
}

.hero__proof-stat { text-align: left; }

.hero__proof-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.125rem;
}

.hero__proof-stat span { font-size: 0.8125rem; color: var(--text-muted); letter-spacing: 0.02em; }
.hero__proof-divider  { width: 1px; height: 40px; background: var(--border); }

/* ── 10. Series cards ───────────────────────────────────────── */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.series-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.series-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.series-card--blue  { --series-color: var(--blue-series);  --series-bg: var(--blue-dim); }
.series-card--red   { --series-color: var(--red-series);   --series-bg: var(--red-dim); }
.series-card--gold  { --series-color: var(--gold-series);  --series-bg: var(--gold-dim); }
.series-card--green { --series-color: var(--green-series); --series-bg: var(--green-dim); }

.series-card--blue::before  { background: var(--blue-series); }
.series-card--red::before   { background: var(--red-series); }
.series-card--gold::before  { background: var(--gold-series); }
.series-card--green::before { background: var(--green-series); }

.series-card:hover {
  transform: translateY(-4px);
  border-color: var(--series-color);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.series-card__badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--series-color);
  background: var(--series-bg);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255,255,255,0.06);
}

.series-card__title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.series-card__outcome {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── 11. Testimonials ───────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
  position: absolute;
  top: var(--space-md);
  left: var(--space-xl);
  pointer-events: none;
}

.testimonial__body {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  font-style: italic;
  padding-top: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.testimonial__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(115,103,240,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.testimonial__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.testimonial__role { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.3; }

/* ── 12. Pricing ────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base), transform var(--t-base);
}

.plan-card--featured {
  border-color: rgba(115,103,240,0.5);
  transform: scale(1.02);
}

.plan-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.plan-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
}

.plan-badge--standard { background: rgba(74,158,255,0.15);  color: var(--plan-standard); }
.plan-badge--premium  { background: rgba(76,175,125,0.15);  color: var(--plan-premium); }
.plan-badge--lifetime { background: rgba(201,150,42,0.15);  color: var(--plan-lifetime); }

.plan-name    { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; color: #ffffff; letter-spacing: -0.01em; margin-bottom: var(--space-xs); }
.plan-cadence { font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--space-lg); }

.plan-price {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.plan-price__currency { font-family: var(--font-body); font-size: 1.25rem; font-weight: 600; color: var(--text-secondary); padding-top: 0.35rem; }
.plan-price__amount   { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: #ffffff; letter-spacing: -0.03em; line-height: 1; }
.plan-price__cents    { font-family: var(--font-body); font-size: 1.125rem; font-weight: 600; color: var(--text-secondary); padding-top: 0.35rem; }
.plan-price__period   { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--space-xl); }

.plan-savings {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--plan-premium);
  background: rgba(76,175,125,0.12);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-left: 0.5rem;
}

.plan-divider { height: 1px; background: var(--border-subtle); margin-block: var(--space-lg); }

.plan-features { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: var(--space-xl); }

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.plan-feature--muted { color: var(--text-muted); }
.plan-feature__icon  { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.plan-feature__icon--check { color: #4caf7d; }
.plan-feature__icon--cross { color: var(--text-muted); }

.plan-note { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; text-align: center; margin-top: var(--space-md); }

/* ── 13. Instructor section ─────────────────────────────────── */
.instructor-section {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.instructor-photo { position: relative; }

.instructor-photo__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-xl);
  filter: grayscale(10%);
}

.instructor-photo__frame {
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  pointer-events: none;
}

.instructor-photo__accent {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  border-radius: var(--radius-xl);
  background: var(--accent-dim);
  border: 1px solid rgba(115,103,240,0.3);
  z-index: -1;
}

.instructor-content__name {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.instructor-content__title {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-xl);
}

.instructor-content__bio {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.instructor-content__bio p + p { margin-top: var(--space-md); }

/* ── 14. Blog components — see blog section below ──────────── */

/* ── 15. Contact form ───────────────────────────────────────── */
.form-group { margin-bottom: var(--space-lg); }

.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; letter-spacing: 0.02em; }

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(115,103,240,0.12); }

.form-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-hint  { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.375rem; }
.form-error { font-size: 0.8125rem; color: #f05060; margin-top: 0.375rem; display: none; }

.form-success {
  background: rgba(76,175,125,0.1);
  border: 1px solid rgba(76,175,125,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: #4caf7d;
  font-size: 0.9375rem;
  text-align: center;
  display: none;
}

/* ── 16. FAQ ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}

.faq-item.open { border-color: var(--border-strong); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  gap: var(--space-md);
  transition: color var(--t-fast);
  user-select: none;
  background: none;
  width: 100%;
  text-align: left;
}

.faq-question:hover { color: #ffffff; }

.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--t-base), color var(--t-fast);
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.faq-answer__inner { padding: 0 var(--space-lg) var(--space-lg); font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-answer { max-height: 400px; }

/* ── 17. Legal Pages ────────────────────────────────────────── */
.legal-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.legal-hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
}

.legal-hero__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content {
  padding-block: var(--space-2xl);
}

.legal-content h2 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-sm);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul,
.legal-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-xs);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  opacity: 0.8;
}

/* ── 18. Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-md);
  margin-top: 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: var(--space-md);
  text-decoration: none;
}

.footer__logo-img {
  height: 40px;
  width: auto;
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.footer__logo-text span { color: var(--accent); }

.footer__tagline { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; max-width: 260px; margin-bottom: var(--space-lg); }

.footer__social { display: flex; gap: var(--space-sm); }

.footer__social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color var(--t-fast), color var(--t-fast);
}

.footer__social-link:hover { border-color: var(--accent); color: var(--accent); }

.footer__col-title { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.4rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.1rem; }
.footer__link  { font-size: 0.875rem; color: var(--text-secondary); transition: color var(--t-fast); }
.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  margin-top: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer__copyright { font-size: 0.8125rem; color: var(--text-muted); }
.footer__legal { display: flex; gap: var(--space-lg); }
.footer__legal a { font-size: 0.8125rem; color: var(--text-muted); transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--text-secondary); }

/* ── 18. CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% -20%, rgba(115,103,240,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-banner__title    { font-size: clamp(1.5rem, 3vw, 2.25rem); color: #ffffff; margin-bottom: var(--space-md); position: relative; }
.cta-banner__subtitle { font-size: 1.0625rem; color: var(--text-secondary); max-width: 480px; margin-inline: auto; margin-bottom: var(--space-2xl); position: relative; }
.cta-banner__actions  { display: flex; align-items: center; justify-content: center; gap: var(--space-md); flex-wrap: wrap; position: relative; }
.cta-banner__fine     { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-md); position: relative; }

/* ── 19. Page hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-2xl));
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero__title    { font-size: clamp(2rem, 4vw, 3rem); color: #ffffff; margin-bottom: var(--space-md); }
.page-hero__subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 560px; line-height: 1.7; }

/* ── 20. Free tier banner ───────────────────────────────────── */
.free-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.free-tier__badge {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4caf7d;
  background: rgba(76,175,125,0.12);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.free-tier__text { font-size: 0.9375rem; color: var(--text-secondary); }
.free-tier__text strong { color: var(--text-primary); }

/* ── 21. Video embed ────────────────────────────────────────── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.yt-facade {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: block; overflow: hidden;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.yt-facade:hover img { transform: scale(1.03); }
.yt-facade__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(0,0,0,0.7);
  transition: background 0.2s ease;
}
.yt-facade__play::after {
  content: '';
  position: absolute; top: 50%; left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #fff;
}
.yt-facade:hover .yt-facade__play { background: #ff0000; }

/* ── Instructor page ───────────────────────────────────────── */
.instructor-highlight {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  align-items: center;
}

.instructor-highlight--reverse {
  grid-template-columns: 2fr 1fr;
}

.instructor-highlight__title {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.instructor-highlight__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .instructor-highlight,
  .instructor-highlight--reverse {
    grid-template-columns: 1fr;
  }
  .instructor-highlight--reverse .video-wrapper {
    order: -1;
  }
}

/* ── Discography section ──────────────────────────────────── */
.discography-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.discography-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.discography-card__art {
  aspect-ratio: 1 / 1;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Subtle vinyl groove graphic as a pure CSS decoration */
.discography-card__art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 28%,
    rgba(115,103,240,0.06) 28%,
    rgba(115,103,240,0.06) 30%,
    transparent 30%,
    transparent 38%,
    rgba(115,103,240,0.05) 38%,
    rgba(115,103,240,0.05) 40%,
    transparent 40%,
    transparent 48%,
    rgba(115,103,240,0.04) 48%,
    rgba(115,103,240,0.04) 50%,
    transparent 50%
  );
}

.discography-card__art::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.discography-card__art-text {
  position: relative;
  z-index: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  text-align: center;
  padding: 0 var(--space-md);
  line-height: 1.4;
}

/* If a cover image is supplied, swap in an <img> inside .discography-card__art */
.discography-card__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.discography-card__body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  flex: 1;
}

.discography-card__year {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
}

.discography-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.discography-card__artist {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0;
}

.discography-card__note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
  .discography-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .discography-grid { grid-template-columns: 1fr; }
}

/* ── 22. Screenshots lightbox ──────────────────────────────── */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.screenshot-thumb {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: none;
  padding: 0;
  transition: border-color var(--t-base), transform var(--t-base);
}

.screenshot-thumb:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.screenshot-thumb img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screenshot-thumb__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  padding: 0.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  animation: lightboxIn 0.2s ease;
}

.lightbox[hidden] { display: none; }

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__content {
  max-width: 1100px;
  width: 100%;
  position: relative;
}

.lightbox__img {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.lightbox__caption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-md);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
  z-index: 10;
}

.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
  z-index: 10;
}

.lightbox__nav:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__nav--prev { left: var(--space-lg); }
.lightbox__nav--next { right: var(--space-lg); }

.lightbox__dots {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.lightbox__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t-fast), transform var(--t-fast);
}

.lightbox__dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox__nav--prev { left: var(--space-sm); }
  .lightbox__nav--next { right: var(--space-sm); }
}

@media (max-width: 480px) {
  .screenshots-grid { grid-template-columns: 1fr; }
}

/* ── 22. Interface preview image ────────────────────────────── */
.interface-preview {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

/* ── 23. Utility ────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.divider { height: 1px; background: var(--border-subtle); margin-block: var(--space-xl); }

/* .tag — defined in blog section below */
.tag--accent { background: var(--accent-dim); border-color: rgba(115,103,240,0.25); color: var(--accent); }

.link-underline { position: relative; color: var(--accent); }
.link-underline::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--t-base); }
.link-underline:hover::after { width: 100%; }

.page-fade { animation: pageFadeIn 0.4s ease forwards; }

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── 24. Blog admin ─────────────────────────────────────────── */
.admin-layout { min-height: 100vh; background: var(--bg-page); padding: var(--space-xl); }

.admin-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.admin-header__title { font-family: var(--font-display); font-size: 1.25rem; color: #ffffff; }

.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-xl); }

.admin-two-col { display: grid; grid-template-columns: 1fr 320px; gap: var(--space-xl); align-items: start; }

/* ── 25. 404 page ───────────────────────────────────────────── */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-xl); }
.error-page__code { font-family: var(--font-display); font-size: clamp(6rem, 15vw, 10rem); font-weight: 700; color: var(--accent); opacity: 0.25; line-height: 1; letter-spacing: -0.05em; margin-bottom: var(--space-md); display: block; }
.error-page__title { font-size: clamp(1.5rem, 3vw, 2.25rem); color: #ffffff; margin-bottom: var(--space-md); }
.error-page__subtitle { font-size: 1rem; color: var(--text-secondary); max-width: 400px; margin-inline: auto; margin-bottom: var(--space-2xl); }

/* ── 26. Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container, .container--narrow, .container--wide { padding-inline: var(--space-lg); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan-card--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
  .instructor-section { grid-template-columns: 300px 1fr; gap: var(--space-2xl); }
}

@media (max-width: 768px) {
  :root { --space-4xl: 4rem; --space-3xl: 3rem; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .series-grid { grid-template-columns: 1fr; }

  .hero__proof { flex-wrap: wrap; gap: var(--space-md); }
  .hero__photo { display: none; }

  .instructor-section { grid-template-columns: 1fr; }
  .instructor-photo { max-width: 320px; margin-inline: auto; }

  .footer__inner { grid-template-columns: 1fr; gap: var(--space-md); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .free-tier { flex-direction: column; align-items: flex-start; gap: var(--space-md); }

  .cta-banner { padding: var(--space-2xl) var(--space-lg); }

  .admin-two-col { grid-template-columns: 1fr; }

  .section { padding-block: var(--space-2xl); }
  .section--lg { padding-block: var(--space-3xl); }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding-inline: var(--space-md); }
  .plan-card { padding: var(--space-lg); }
}


/* ═══════════════════════════════════════════════════════════════════════════
   BLOG STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─ Page header ─ */
.page-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
}
.page-header-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─ Filter bar ─ */
.blog-filter { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-tag {
  padding: .35rem .875rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .8rem;
  text-decoration: none;
  transition: all .15s;
}
.filter-tag:hover,
.filter-tag.active {
  background: rgba(115,103,240,.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ─ Blog index ─ */
.blog-index { padding: 3rem 0 5rem; }
.blog-empty { color: var(--text-secondary); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

/* ─ Blog card ─ */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.blog-card:hover {
  border-color: rgba(115,103,240,.4);
  transform: translateY(-2px);
}

/* Homepage blog strip uses __image (BEM), blog index uses -img-wrap (flat) */
.blog-card__image {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: var(--bg-elevated);
  display: block;
}
.blog-card__image--placeholder {
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--bg-elevated);
  display: block;
}

.blog-card__body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card__meta   { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.04em; margin-bottom: var(--space-sm); text-transform: uppercase; }
.blog-card__title  { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; color: var(--text-primary); line-height: 1.35; margin-bottom: var(--space-sm); transition: color var(--t-fast); }
.blog-card__excerpt { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.65; flex: 1; margin-bottom: var(--space-md); }
.blog-card:hover .blog-card__title { color: #ffffff; }
.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap var(--t-fast);
  margin-top: auto;
  text-decoration: none;
}
.blog-card:hover .blog-card__link { gap: 0.625rem; }
.blog-card-img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.blog-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.blog-card:hover .blog-card-img-wrap img { transform: scale(1.03); }

.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: .6rem;
}
.blog-card-title a { color: #fff; text-decoration: none; }
.blog-card-title a:hover { color: var(--accent); }
.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--text-secondary);
}
.read-more { color: var(--accent); text-decoration: none; font-weight: 500; }
.read-more:hover { text-decoration: underline; }

/* ─ Tag pill ─ */
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: 4px;
  background: rgba(115,103,240,.12);
  color: var(--accent);
  text-decoration: none;
  transition: background .15s;
}
.tag:hover { background: rgba(115,103,240,.25); }
.tag-sm { font-size: .68rem; padding: .15rem .45rem; }

/* ─ Pagination ─ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination-pages { display: flex; gap: .35rem; }
.pagination-page,
.pagination-prev,
.pagination-next {
  padding: .45rem .875rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  font-size: .875rem;
  transition: all .15s;
}
.pagination-page:hover,
.pagination-prev:hover,
.pagination-next:hover { border-color: var(--accent); color: var(--accent); }
.pagination-page.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.pagination-ellipsis { padding: .45rem .5rem; color: var(--text-secondary); }

/* ─ Single post ─ */
.post-cover {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: var(--bg-card);
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.post-container {
  max-width: 780px;
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

/* ─ Post two-column layout with sidebar ─ */
.post-outer {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

.post-main {
  min-width: 0; /* prevent overflow in grid */
}

/* ─ Sidebar ─ */
.post-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-widget__title {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.sidebar-posts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-post + .sidebar-post {
  border-top: 1px solid var(--border-subtle);
}

.sidebar-post__link {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding: .875rem 0;
  text-decoration: none;
  transition: opacity .15s;
}

.sidebar-post__link:hover { opacity: .8; }

.sidebar-post__thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-elevated);
}

.sidebar-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-post__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
}

.sidebar-post__info {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-width: 0;
}

.sidebar-post__title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-post__link:hover .sidebar-post__title { color: var(--accent); }

.sidebar-post__date {
  font-size: .72rem;
  color: var(--text-muted);
}

.sidebar-all-posts {
  display: block;
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.sidebar-all-posts:hover { text-decoration: underline; }

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr 260px;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
  }
}

/* Breadcrumb */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  font-size: .8rem;
  color: var(--text-secondary);
}
.breadcrumb ol li + li::before { content: '/'; margin-right: .35rem; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text-primary); }

/* Post header */
.post-header { margin-bottom: 2.5rem; }
.post-cats { display: flex; gap: .4rem; margin-bottom: .875rem; }
.post-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
}
.post-byline {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-secondary);
}
.post-author { color: var(--text-primary); font-weight: 500; }
.post-divider { opacity: .4; }

/* Post body — light mode so notation and lead sheets read naturally */
.post-content {
  font-family: var(--font-body);
  color: #1a1a1a;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 3rem;
  border: 1px solid #e8e6e1;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
@media (max-width: 640px) {
  .post-content { padding: 1.5rem 1.25rem; }
}
.post-content h2 {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: #111;
  margin: 2rem 0 .75rem;
  padding-top: .5rem;
  border-top: 1px solid #e8e6e1;
}
.post-content h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #111;
  margin: 1.75rem 0 .6rem;
}
.post-content h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 1.5rem 0 .5rem;
}
.post-content p { margin-bottom: 1.25rem; color: #2a2a2a; }
.post-content ul,
.post-content ol {
  margin: 0 0 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: #2a2a2a;
}
.post-content li { line-height: 1.6; }
.post-content a { color: #5b50d6; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { text-decoration: none; }
.post-content strong { color: #111; font-weight: 600; }
.post-content em { font-style: italic; color: #333; }
.post-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid #7367f0;
  background: #f5f3ff;
  border-radius: 0 8px 8px 0;
  color: #333;
  font-style: italic;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: #f0eff5;
  padding: .15em .4em;
  border-radius: 4px;
  color: #5b50d6;
}
.post-content pre {
  background: #1e1e22;
  border: 1px solid #333;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
  font-size: .85rem;
  line-height: 1.7;
  color: #c8c8cd;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.25rem auto;
  display: block;
}
.post-content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}
.post-content > a[href*="youtube.com"],
.post-content > a[href*="youtu.be"] {
  display: block;
  margin: 1.5rem 0;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 2rem;
}

/* Post CTA */
.post-cta {
  margin: 2.5rem 0;
  background: rgba(115,103,240,.08);
  border: 1px solid rgba(115,103,240,.25);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.post-cta h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .5rem;
}
.post-cta p {
  color: var(--text-secondary);
  font-size: .9rem;
  margin-bottom: 1.25rem;
}

/* Post navigation */
.post-nav { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.post-nav-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.post-nav-prev,
.post-nav-next {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color .15s;
}
.post-nav-next { text-align: right; }
.post-nav-prev:hover,
.post-nav-next:hover { border-color: rgba(115,103,240,.4); }
.post-nav-label { font-size: .75rem; color: var(--text-secondary); }
.post-nav-title { font-size: .875rem; font-weight: 500; color: var(--text-primary); line-height: 1.4; }

/* Lang switch in footer */
.lang-switch {
  font-size: .8rem;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: .25rem .6rem;
  border-radius: 5px;
}
.lang-switch:hover { color: var(--accent); border-color: var(--accent); }

/* ─ Blog responsive ─ */
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav-inner { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .post-container { padding-top: 1.5rem; }
}

/* ─ Lead sheet / notation images ─
   Post body images on white/light backgrounds (lead sheets, notation, diagrams)
   get a light-mode treatment so they don't float as raw white rectangles.
   The wrapper is injected by JS on page load.
*/
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.notation-wrap {
  margin: 1.5rem 0;
  display: flex;
  justify-content: center;
}
.notation-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 0 !important;
}
/* Caption shown below notation if alt text exists */
.notation-wrap figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: #6b6860;
  margin-top: 0.5rem;
  font-style: italic;
}
