/* Likes Training — site theme (claude default, light, dark) */
:root,
[data-theme="claude"] {
  --bg: #f5f0e8;
  --surface: #faf8f5;
  --surface-2: #fff;
  --text: #3a2e22;
  --text-muted: #7c6f62;
  --border: rgba(200, 192, 180, 0.55);
  --primary: #a8692f;
  --primary-hover: #8f5624;
  --accent: #7c5c3a;
  --hero-bg: linear-gradient(135deg, #faf8f5 0%, #f0e8dc 45%, #e8ddd0 100%);
  --card-shadow: 0 8px 32px rgba(58, 46, 34, 0.08);
  --nav-bg: rgba(250, 248, 245, 0.92);
  --code-bg: #f0ebe3;
  --highlight: #a8692f;
  --success: #1a7f37;
  --footer-bg: #3a2e22;
  --footer-text: #f5f0e8;
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #ffffff;
  --text: #1f2328;
  --text-muted: #656d76;
  --border: rgba(208, 215, 222, 0.8);
  --primary: #0969da;
  --primary-hover: #0550ae;
  --accent: #1a7f37;
  --hero-bg: linear-gradient(135deg, #f6f8fa 0%, #ffffff 50%, #eef2ff 100%);
  --card-shadow: 0 8px 24px rgba(31, 35, 40, 0.08);
  --nav-bg: rgba(255, 255, 255, 0.92);
  --code-bg: #f6f8fa;
  --highlight: #0969da;
  --success: #1a7f37;
  --footer-bg: #0d1117;
  --footer-text: #f6f8fa;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-2: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --border: rgba(48, 54, 61, 0.8);
  --primary: #58a6ff;
  --primary-hover: #79b8ff;
  --accent: #3fb950;
  --hero-bg: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1c2333 100%);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(13, 17, 23, 0.92);
  --code-bg: #21262d;
  --highlight: #58a6ff;
  --success: #3fb950;
  --footer-bg: #010409;
  --footer-text: #e6edf3;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: min(100%, 12rem);
  text-decoration: none;
  color: inherit;
}

.site-logo:hover { text-decoration: none; }

.site-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #160536;
  overflow: hidden;
}

.site-logo-mark img {
  width: 30px;
  height: 30px;
  max-width: none;
  display: block;
  flex-shrink: 0;
}

.site-logo-name {
  font-family: "Outfit", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  .site-logo { max-width: 36px; }
  .site-logo-name { display: none; }
}

.site-nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-links a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav-links a:hover { color: var(--primary); }

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  text-decoration: none;
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.4rem 0.6rem;
}

.btn-ghost:hover { color: var(--primary); }

.select-sm {
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.nav-icon-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-icon-select-icon {
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-icon-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  border: none;
  appearance: none;
}

#nav-login-btn[hidden] {
  display: none !important;
}

.nav-toggle {
  display: flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 900px) {
  .site-nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text);
  padding: 0.5rem 0;
  font-weight: 500;
  text-decoration: none;
}

/* Hero */
.hero {
  background: var(--hero-bg);
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 5rem 0 4rem; }
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.hero-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* Stats */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { text-align: center; }

.stat-value {
  font-family: "Outfit", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt { background: var(--surface); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--code-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.feature-icon .material-symbols-outlined {
  font-size: 1.35rem;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}

.star-icon {
  font-size: 1rem;
  color: var(--text-muted);
}

.star-icon.filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: #e3a008;
}

.feature-shot {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

.app-shot {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 420px;
  height: auto;
  margin: 0 auto;
}

.shot-carousel {
  position: relative;
  margin-top: 0;
}

.shot-carousel.is-empty {
  display: none;
}

.shot-carousel.is-loading {
  min-height: 120px;
}

.shot-carousel .feature-shot {
  margin-top: 1rem;
}

.shot-carousel--hero .hero-shot,
.shot-carousel--hero .feature-shot,
.shot-carousel--app .app-shot {
  margin-top: 0;
}

.shot-carousel-viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.shot-carousel-track {
  display: flex;
  transition: transform 0.32s ease;
  will-change: transform;
}

.shot-carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.shot-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  backdrop-filter: blur(6px);
  transition: background 0.15s, opacity 0.15s;
}

.shot-carousel-btn:hover:not(:disabled) {
  background: var(--surface-2);
}

.shot-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.shot-carousel-btn .material-symbols-outlined {
  font-size: 1.25rem;
}

.shot-carousel-btn--prev { left: 0.35rem; }
.shot-carousel-btn--next { right: 0.35rem; }

.shot-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.shot-carousel-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.shot-carousel-dot.is-active {
  background: var(--primary);
  transform: scale(1.15);
}

.shot-carousel:not(.shot-carousel--hero):not(.shot-carousel--app) {
  margin-top: 1rem;
}

.shot-carousel--app .shot-carousel-viewport {
  display: flex;
  justify-content: center;
}

.shot-carousel--app .shot-carousel-slide {
  display: flex;
  justify-content: center;
}

/* Integrations */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .brand-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
}

.brand-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-item span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.integrations-languages {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.integrations-lang-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.integrations-lang-icon {
  font-size: 1.75rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.integrations-lang-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.integrations-lang-head p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .lang-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  text-align: center;
}

.lang-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.lang-item span:last-child {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}

.brand-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.brand-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 168px;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--code-bg);
  object-fit: cover;
}

.testimonial-meta h4 {
  margin: 0;
  font-size: 0.95rem;
}

.testimonial-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  flex: 1;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.testimonial-stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.35rem;
  flex-shrink: 0;
}

.testimonial-data {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: auto;
}

.data-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text);
}

/* Camps */
.camp-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .camp-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .camp-grid { grid-template-columns: repeat(3, 1fr); }
}

.camp-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.camp-card img.camp-cover-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--code-bg);
  display: block;
}

.camp-cover {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

.camp-cover--gradient {
  display: flex;
  align-items: center;
  justify-content: center;
}

.camp-cover-coach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
}

.camp-coach-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.camp-coach-name {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camp-body { padding: 1rem 1.25rem 1.25rem; }

.camp-body h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.camp-body p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

.price-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
}

.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--card-shadow);
}

.price-badge {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.price-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.price-amount {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.price-amount small {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.price-features li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* Download */
.download-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .download-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.store-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.android-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.android-brands a {
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--text);
  text-decoration: none;
}

.android-brands a:hover { color: var(--primary); }

/* Open platform */
.platform-links {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .platform-links { grid-template-columns: repeat(2, 1fr); }
}

.platform-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}

.platform-link:hover {
  border-color: var(--primary);
  text-decoration: none;
}

.platform-link strong { display: block; margin-bottom: 0.2rem; }
.platform-link .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}
.platform-link div span { font-size: 0.85rem; color: var(--text-muted); }

/* QR section */
.qr-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  margin: 0 auto 0.5rem;
}

.qr-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 1.5rem;
}

.site-footer a { color: var(--footer-text); opacity: 0.85; }
.site-footer a:hover { opacity: 1; }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand img { height: 32px; margin-bottom: 0.75rem; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.6;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-col a {
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* Legal pages */
.legal-page { padding: 2rem 0 4rem; }

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-family: "Outfit", sans-serif;
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.legal-header p { color: var(--text-muted); margin: 0; }

.legal-body h2, .legal-body h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
  color: var(--text);
}

.legal-body h2:first-child, .legal-body h4:first-child {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
}

.legal-body p,
.legal-body h4:not(:first-child) {
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.legal-body .text-white,
.legal-body .text-base,
.legal-body .text-black {
  color: var(--text-muted) !important;
}

.legal-body .font-bold,
.legal-body h4.font-bold {
  color: var(--text) !important;
  font-weight: 600;
}

.legal-body .highlight {
  color: var(--highlight);
  font-weight: 600;
}

.legal-body a { word-break: break-all; }

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.legal-tab {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.legal-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.legal-panel { display: none; }
.legal-panel.active { display: block; }

.legal-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

/* CTA band */
.cta-band {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.cta-band h2 {
  font-family: "Outfit", sans-serif;
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p { margin: 0 0 1.5rem; opacity: 0.9; }

.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-band .btn-primary:hover {
  background: var(--surface);
  color: var(--primary-hover);
}

/* Nav auth */
.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.nav-user-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.nav-user-chip[hidden] {
  display: none !important;
}

.nav-user-avatar-wrap {
  flex-shrink: 0;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.nav-user-avatar--emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--code-bg);
  border: 1px solid var(--border);
}

.nav-user-avatar--emoji[hidden],
.nav-user-avatar[hidden] {
  display: none !important;
}

.nav-user-name {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.btn-link-sm {
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
}

.btn-link-sm:hover { color: var(--primary); }

/* Coach showcase */
.coach-showcase-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .coach-showcase-grid { grid-template-columns: repeat(3, 1fr); }
}

.coach-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--card-shadow);
}

.coach-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
  border: 2px solid var(--border);
}

.coach-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.coach-tier {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.coach-tier-label { color: var(--text-muted); }

.coach-stars {
  display: flex;
  justify-content: center;
  gap: 0.1rem;
  margin-bottom: 0.35rem;
}

.coach-city {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.coach-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section-loading,
.section-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
  grid-column: 1 / -1;
}

.testimonial-stars {
  display: flex;
  gap: 0.1rem;
  margin-bottom: 0.5rem;
}

/* Login modal */
body.modal-open { overflow: hidden; }

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.login-modal[hidden] { display: none; }

.login-dialog {
  position: relative;
  width: min(420px, 100%);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--card-shadow);
}

.login-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 0;
}

.login-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.login-sub {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.login-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text);
}

.login-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.login-error {
  min-height: 1.25rem;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #c62828;
}

.login-panel label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.login-panel label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.login-panel input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.login-code-inputs {
  display: flex;
  gap: 0.5rem;
}

.login-code-inputs input { flex: 1; }

.btn-block { width: 100%; margin-top: 0.25rem; }

.login-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-wechat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.store-btn .material-symbols-outlined {
  font-size: 1.25rem;
  vertical-align: middle;
}
