/* ============================================================
   TANGO LEARNING PLATFORM — Design System
   Elegant, modern, beginner-friendly
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors */
  --bg: #FAF9F6;
  --bg-alt: #F2EDE3;
  --bg-dark: #1E1A16;
  --bg-card: #FFFFFF;
  --text: #1C1A18;
  --text-muted: #7A7068;
  --text-light: #ABA39A;
  --accent: #C4956A;
  --accent-dark: #9E7347;
  --accent-light: #EDD9BE;
  --accent-bg: #FBF5ED;
  --border: #E8E1D4;
  --border-strong: #D5CBBA;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-accent: 0 4px 24px rgba(196, 149, 106, 0.25);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --max-w: 1200px;
  --max-w-narrow: 760px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--text); }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-muted);
  font-weight: 400;
}

.label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

section {
  padding: clamp(60px, 8vw, 100px) 0;
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: var(--text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}

.nav__link:hover, .nav__link.active {
  color: var(--text);
  background: var(--bg-alt);
}

.nav__cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 500;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease) !important;
}

.nav__cta:hover {
  background: var(--accent-dark) !important;
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 0 20px;
  border-top: 1px solid var(--border);
  gap: 2px;
}

.nav__mobile .nav__link {
  padding: 10px 16px;
  font-size: 0.94rem;
}

.nav__mobile.open { display: flex; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--text);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--accent {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}
.btn--accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.btn--sm {
  font-size: 0.85rem;
  padding: 8px 18px;
}

.btn--lg {
  font-size: 1.05rem;
  padding: 16px 34px;
}

/* --- Badge / Tag --- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.badge--dark {
  background: var(--text);
  color: var(--bg);
}

.badge--muted {
  background: var(--bg-alt);
  color: var(--text-muted);
}

.badge--technique { background: #EDE8F5; color: #5B4A87; }
.badge--movement { background: #E8F0E8; color: #3A6B3A; }
.badge--social { background: #F5E8E8; color: #7A3A3A; }
.badge--musicality { background: #E8EFF5; color: #2A5A7A; }

/* --- Cards --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card__body { padding: 24px; }
.card__body--lg { padding: 32px; }

.card__tag {
  margin-bottom: 14px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card__text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-dark);
  margin-top: 16px;
  transition: gap 0.2s var(--ease);
}

.card__link:hover { gap: 10px; }

.card__link::after {
  content: '→';
}

/* --- Hero --- */
.hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196,149,106,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero__kicker {
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}

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

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border-strong);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin: 20px 0 28px;
}

.divider--center { margin: 20px auto 28px; }

/* --- Section Header --- */
.section-header {
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-header--center {
  text-align: center;
}

.section-header--center .divider { margin: 20px auto 28px; }

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-header--center p { margin: 0 auto; }

/* --- Grid layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }

/* --- Concept Grid (dictionary) --- */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* --- Roadmap --- */
.roadmap {
  position: relative;
}

.roadmap-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0;
  align-items: stretch;
}

.roadmap-item__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
}

.roadmap-item__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--text);
}

.roadmap-item__dot--accent {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.roadmap-item__line {
  width: 2px;
  flex: 1;
  background: var(--border-strong);
  margin: 6px 0;
}

.roadmap-item:last-child .roadmap-item__line { display: none; }

.roadmap-item__content {
  padding: 0 0 40px 24px;
}

.roadmap-item__month {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.roadmap-item__subtitle {
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.roadmap-item__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.topic-pill {
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

.topic-pill--focus {
  background: var(--accent-bg);
  color: var(--accent-dark);
  border-color: var(--accent-light);
}

/* --- Do's & Don'ts --- */
.dos-donts-grid {
  display: grid;
  gap: 16px;
}

.dos-donts-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.dos-donts-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dos-donts-col--do h4 { color: #3A6B3A; }
.dos-donts-col--dont h4 { color: #7A3A3A; }

.dos-donts-col h4::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.dos-donts-col--do h4::before {
  content: '✓';
  background: #E8F0E8;
  color: #3A6B3A;
}

.dos-donts-col--dont h4::before {
  content: '✕';
  background: #F5E8E8;
  color: #7A3A3A;
}

.dos-donts-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.dos-donts-why {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-muted);
  border-left: 3px solid var(--accent);
}

.dos-donts-why strong {
  color: var(--text);
  font-weight: 500;
}

/* --- Exercise Cards --- */
.exercise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.exercise-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.exercise-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.exercise-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}

.difficulty {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.difficulty--beginner { background: #E8F0E8; color: #3A6B3A; }
.difficulty--intermediate { background: #FFF3E0; color: #8B5E00; }
.difficulty--advanced { background: #F5E8E8; color: #7A3A3A; }

.exercise-card__improves {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exercise-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.exercise-card__mistake {
  font-size: 0.85rem;
  color: #7A3A3A;
  background: #FDF5F5;
  border: 1px solid #F5D5D5;
  border-radius: var(--radius);
  padding: 10px 14px;
}

.exercise-card__mistake strong {
  font-weight: 600;
}

/* --- Concept Detail Page --- */
.concept-hero {
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 70px);
  background: var(--bg);
}

.concept-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.concept-hero__back:hover { color: var(--text); }
.concept-hero__back::before { content: '←'; }

.concept-hero__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-style: italic;
  margin-bottom: 20px;
}

.concept-hero__def {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  font-weight: 400;
}

.concept-section {
  padding: clamp(40px, 6vw, 70px) 0;
  border-top: 1px solid var(--border);
}

.concept-section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.concept-section h3 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 20px;
  font-style: italic;
}

.concept-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 680px;
}

.concept-section p + p {
  margin-top: 16px;
}

.mistakes-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.mistake-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #FDF5F5;
  border: 1px solid #F5D5D5;
  border-radius: var(--radius);
}

.mistake-item__icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.mistake-item__text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5A3030;
}

.tip-box {
  background: var(--accent-bg);
  border: 1px solid var(--accent-light);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 680px;
}

.tip-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.drill-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  max-width: 680px;
  box-shadow: var(--shadow-sm);
}

.drill-box h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-width: 680px;
}

.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.related-link:hover {
  background: var(--bg-alt);
  border-color: var(--accent-light);
  transform: translateX(3px);
}

.related-link::after { content: '→'; color: var(--accent); }

/* --- Orchestra Cards (Musicality) --- */
.orchestra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}

.orchestra-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.orchestra-card__name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.orchestra-card__style {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.orchestra-card__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* --- Search Bar --- */
.search-wrap {
  position: relative;
  max-width: 500px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 0 20px 0 46px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.search-input::placeholder { color: var(--text-light); }

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

/* --- Filter Tabs --- */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-tab:hover { border-color: var(--text); color: var(--text); }

.filter-tab.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg-dark);
  color: var(--bg);
  padding: clamp(70px, 10vw, 120px) 0;
}

.cta-section h2 {
  color: var(--bg);
  margin-bottom: 20px;
}

.cta-section .lead {
  color: rgba(250, 249, 246, 0.65);
  margin-bottom: 40px;
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 200px;
  height: 50px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-pill);
  padding: 0 20px;
  font-size: 0.95rem;
  color: white;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--accent); }

/* --- Stats bar --- */
.stats-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-bg);
  border: 1px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item__text h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.feature-item__text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Quote block --- */
.quote-block {
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  background: var(--accent-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 680px;
}

.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
}

/* --- Contact Form --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  font-family: var(--font-body);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  gap: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(250, 249, 246, 0.65);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--bg);
  font-weight: 600;
  margin-bottom: 12px;
}

.footer__brand-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(250,249,246,0.5);
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,249,246,0.4);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.88rem;
  color: rgba(250,249,246,0.6);
  transition: color 0.2s;
}

.footer__link:hover { color: var(--bg); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.82rem;
  color: rgba(250,249,246,0.35);
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 7vw, 80px);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.page-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color 0.2s;
}

.page-header__back:hover { color: var(--text); }
.page-header__back::before { content: '←'; }

/* --- Info Banner --- */
.info-banner {
  background: var(--accent-bg);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-banner__icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.info-banner__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.info-banner__text strong { color: var(--text); font-weight: 600; }

/* --- Milonga section boxes --- */
.milonga-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.milonga-box h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-style: italic;
}

.milonga-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.milonga-box p + p { margin-top: 12px; }

/* --- Orchestra accent line --- */
.orchestra-era {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* --- Comparison layout (3-type) --- */
.type-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.type-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.type-card--featured {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.type-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.type-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Utilities --- */
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }

.text-center { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }

.hidden { display: none !important; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .type-comparison { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .nav { position: relative; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .dos-donts-item { grid-template-columns: 1fr; }
  .roadmap-item { grid-template-columns: 56px 1fr; }
  .stats-bar { gap: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; }
  .filter-tabs { gap: 6px; }
}

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

/* --- Practice Timer Widget --- */
.timer-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 180px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.timer-widget:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.14); }

.timer-widget__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.timer-widget__display {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s;
}

.timer-widget__display.done { color: var(--accent); }

.timer-widget__presets {
  display: flex;
  gap: 6px;
}

.timer-widget__controls {
  display: flex;
  gap: 8px;
  width: 100%;
}

.timer-widget__controls .btn { flex: 1; justify-content: center; }

@media (max-width: 480px) {
  .timer-widget { bottom: 16px; right: 16px; min-width: 160px; }
  .timer-widget__display { font-size: 2.1rem; }
}

/* --- Inline Tooltips --- */
.tango-term {
  border-bottom: 1px dashed var(--accent-light);
  cursor: help;
  color: inherit;
  transition: border-color 0.2s;
}

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

.tooltip-popup {
  position: fixed;
  z-index: 300;
  background: var(--bg-card);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.tooltip-popup.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tooltip-popup__text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tooltip-popup__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  pointer-events: auto;
}

.tooltip-popup__link:hover { color: var(--text); }

/* --- Concept Sequential Nav --- */
.concept-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
  max-width: var(--max-w-narrow);
  gap: 16px;
}

.concept-nav__prev,
.concept-nav__next {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.2s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}

.concept-nav__prev:hover,
.concept-nav__next:hover {
  border-color: var(--accent-light);
  background: var(--accent-bg);
  color: var(--text);
}

.concept-nav__spacer { flex: 1; }

/* --- "After Class" quick-start cards on practice.html --- */
.after-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.after-class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s var(--ease);
}

.after-class-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.after-class-card__stage {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.after-class-card h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.after-class-card__links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.after-class-card__link {
  font-size: 0.82rem;
  color: var(--accent-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}

.after-class-card__link::before { content: '→'; font-size: 0.8rem; }
.after-class-card__link:hover { gap: 8px; }

@media (max-width: 768px) {
  .after-class-grid { grid-template-columns: 1fr; }
}

/* --- FAQ Accordion --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--max-w-narrow);
}

details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

details.faq-item[open] { border-color: var(--accent-light); }

details.faq-item summary {
  list-style: none;
  padding: 20px 24px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background 0.15s;
}

details.faq-item summary:hover { background: var(--bg-alt); }
details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
  line-height: 1;
}

details.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item__answer {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.faq-item__answer p + p { margin-top: 12px; }

.faq-item__answer a {
  color: var(--accent-dark);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Print styles (milonga cheatsheet) --- */
@media print {
  .nav, .footer, .btn, .hero__scroll { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .page-header { padding: 20pt 0 16pt; border: none; }
  h1 { font-size: 24pt; }
  h2 { font-size: 16pt; page-break-after: avoid; }
  h3, h4 { page-break-after: avoid; }
  .cheatsheet-section { page-break-inside: avoid; border: 1pt solid #ccc; padding: 12pt; margin-bottom: 10pt; border-radius: 4pt; }
  .cheatsheet-col { page-break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  .container { max-width: 100%; padding: 0 12pt; }
}
