/* ===== CSS VARIABLES ===== */
:root {
  --bg: #09090b;
  --bg-elevated: #111114;
  --bg-card: #18181d;
  --bg-card-hover: #1e1e24;
  --border: #27272e;
  --border-light: #3a3a44;
  --text: #f0f0f2;
  --text-secondary: #a0a0ab;
  --text-muted: #636370;
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.15);
  --yellow: #eab308;
  --yellow-dim: rgba(234, 179, 8, 0.15);
  --red: #ef4444;
  --red-dim: rgba(239, 68, 68, 0.15);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}
button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
a {
  color: var(--green);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ===== SCREENS ===== */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.screen.active {
  display: flex;
  animation: screen-enter 0.4s ease forwards;
}
@keyframes screen-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== NAV ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
.nav-icon { font-size: 1.3rem; }
.nav-name { letter-spacing: -0.5px; }
.nav-tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
}

/* ===== LANDING ===== */
.landing-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px 80px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 197, 94, 0.06) 0%, transparent 60%),
    var(--bg);
}
.landing-hero {
  text-align: center;
  max-width: 640px;
  margin-bottom: 64px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}
.hero-accent {
  background: linear-gradient(135deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.hero-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--green);
  color: #000;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition);
}
.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
}
.btn-primary:hover::before {
  opacity: 1;
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.3);
}
.btn-icon { font-size: 1.2rem; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-1px);
}
.btn-secondary:active {
  transform: translateY(0) scale(0.98);
}
.btn-end {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--red-dim);
  color: var(--red);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  transition: all var(--transition);
}
.btn-end:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: var(--red);
  transform: translateY(-1px);
}
.btn-end:active {
  transform: translateY(0) scale(0.98);
}

/* ===== FEATURES ===== */
.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  width: 100%;
  margin-bottom: 48px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--transition);
  opacity: 0;
  animation: fade-in-up 0.5s ease forwards;
}
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ===== PAST SESSIONS ===== */
.past-sessions {
  width: 100%;
  max-width: 800px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.sessions-list { display: flex; flex-direction: column; gap: 10px; }
.session-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: default;
}
.session-item:hover { border-color: var(--border-light); }
.session-item-left { display: flex; align-items: center; gap: 16px; }
.session-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.session-item-info h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
}
.session-item-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.session-item-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}

/* ===== SESSION SCREEN ===== */
.session-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--red);
}
.recording-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.session-main {
  flex: 1;
  padding: 24px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(6, 182, 212, 0.04) 0%, transparent 50%),
    var(--bg);
}
.session-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-bottom: 20px;
}

/* Camera */
.camera-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
}
#camera-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.camera-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.camera-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,0.5);
  border-style: solid;
  border-width: 0;
}
.camera-corner.tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; border-radius: 4px 0 0 0; }
.camera-corner.tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; border-radius: 0 4px 0 0; }
.camera-corner.bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; border-radius: 0 0 0 4px; }
.camera-corner.br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; border-radius: 0 0 4px 0; }

.filler-alert {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(234, 179, 8, 0.9);
  color: #000;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  animation: filler-pop 0.3s ease;
  z-index: 10;
}
@keyframes filler-pop {
  0% { transform: translateX(-50%) scale(0.8); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Metrics Panel */
.metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}
.metric-card:hover { border-color: var(--border-light); }
.metric-card-small { padding: 14px 20px; }
.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.metric-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.metric-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-neutral { background: var(--bg-elevated); color: var(--text-muted); }
.badge-good { background: var(--green-dim); color: var(--green); }
.badge-warn { background: var(--yellow-dim); color: var(--yellow); }
.badge-bad { background: var(--red-dim); color: var(--red); }
.metric-value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}
.metric-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.metric-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.metric-bar-track {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.metric-bar {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.5s ease, background-color 0.3s ease;
}
.metric-bar.bar-yellow { background: var(--yellow); }
.metric-bar.bar-red { background: var(--red); }
.metric-bar.bar-cyan { background: var(--cyan); }
.metric-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.filler-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.filler-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  background: var(--yellow-dim);
  color: var(--yellow);
  border-radius: 12px;
}

/* Volume Bars */
.volume-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}
.vol-bar {
  flex: 1;
  background: var(--green);
  border-radius: 2px;
  min-height: 3px;
  height: 3px;
  transition: height 0.08s ease;
  opacity: 0.7;
}

/* Transcript */
.transcript-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.transcript-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.transcript-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.word-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.transcript-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
  max-height: 150px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.transcript-content::-webkit-scrollbar { width: 4px; }
.transcript-content::-webkit-scrollbar-track { background: transparent; }
.transcript-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.transcript-placeholder {
  color: var(--text-muted);
  font-style: italic;
}
.filler-highlight {
  background: var(--yellow-dim);
  color: var(--yellow);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}
.interim-text {
  color: var(--text-muted);
  font-style: italic;
}

/* Session actions */
.session-actions {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

/* ===== SUMMARY SCREEN ===== */
.summary-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 80px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    var(--bg);
}
.summary-header {
  text-align: center;
  margin-bottom: 36px;
}
.summary-check {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  color: var(--green);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 16px;
  animation: check-pop 0.5s ease;
}
@keyframes check-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}
.summary-meta {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Overall Score */
.overall-score-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 24px;
}
.overall-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.overall-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 16px;
}
.overall-value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--green);
}
.overall-max {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.overall-bar-track {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 4px;
  overflow: hidden;
}
.overall-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 4px;
  width: 0%;
  transition: width 1s ease;
}

/* Score grid */
.scores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 32px;
}
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
}
.score-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.score-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.score-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.score-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
}
.score-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* AI Coaching */
.ai-coaching {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}
.coaching-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.coaching-icon { font-size: 1.4rem; }
.coaching-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.coaching-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 16px 0;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.coaching-assessment {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--green);
}
.coaching-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.coaching-col-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.strengths-title { color: var(--green); }
.improvements-title { color: var(--yellow); }
.coaching-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coaching-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.coaching-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-light);
}
.tips-list li::before { background: var(--cyan); }

/* Transcript review */
.transcript-review {
  width: 100%;
  margin-bottom: 32px;
}
.transcript-review-toggle {
  display: block;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.transcript-review-toggle:hover {
  border-color: var(--border-light);
  color: var(--text);
}
.transcript-review-content {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
}
.transcript-review[open] .transcript-review-toggle {
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Summary actions */
.summary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
  animation: fade-in 0.2s ease;
}
.loading-content {
  text-align: center;
  max-width: 360px;
  padding: 0 24px;
}
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--border);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.8s linear infinite;
}
.loading-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.loading-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  animation: fade-in 0.2s ease;
}
.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 440px;
  text-align: center;
  animation: modal-pop 0.3s ease;
}
@keyframes modal-pop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
}
.error-icon {
  animation: shake 0.5s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}
.modal-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-content p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}
.modal-content button { margin-top: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .session-grid {
    grid-template-columns: 1fr;
  }
  .metrics-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .metric-card-small { grid-column: span 2; }
}
@media (max-width: 640px) {
  .landing-main { padding: 40px 16px 60px; }
  .hero-title { letter-spacing: -1px; }
  .landing-features { gap: 12px; }
  .session-main { padding: 16px; }
  .metrics-panel { grid-template-columns: 1fr; }
  .metric-card-small { grid-column: span 1; }
  .scores-grid { grid-template-columns: 1fr; gap: 10px; }
  .coaching-columns { grid-template-columns: 1fr; gap: 16px; }
  .summary-main { padding: 32px 16px 60px; }
  .overall-value { font-size: 2.8rem; }

  /* Touch-friendly button sizes on mobile */
  .btn-primary, .btn-secondary, .btn-end {
    min-height: 48px;
    padding-left: 28px;
    padding-right: 28px;
  }

  /* Better modal padding on mobile */
  .modal-content {
    padding: 28px 24px;
    margin: 0 16px;
    max-width: calc(100% - 32px);
  }

  /* Larger nav touch targets */
  .nav {
    padding: 12px 16px;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  margin-top: auto;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-secondary);
}
.footer-icon { font-size: 1.1rem; }
.footer-name { letter-spacing: -0.3px; }
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--text-secondary);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-right: 4px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text-secondary);
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .footer-links {
    justify-content: center;
    gap: 16px;
  }
}

/* ===== UTILS ===== */
.animate-in {
  animation: fade-in 0.4s ease;
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
