/**
 * StenoAbhyas Master UI Stylesheet
 * Complete styles for Homepage, Hero, QuickStart Grid, Tools Showcase, Footer & Global Utilities
 */

/* ==========================================================================
   1. HERO SECTION & BADGES
   ========================================================================== */
.steno-hero-section {
  position: relative;
  padding: 64px 0 48px;
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%), var(--steno-bg, #F8FAFC);
  overflow: hidden;
  text-align: center;
}

[data-theme="dark"] .steno-hero-section {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.15) 0%, rgba(11, 15, 25, 0) 70%), var(--steno-bg, #0B0F19);
}

.steno-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--steno-text-secondary, #64748B);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
}

.sa-free-pill {
  background: linear-gradient(135deg, #2563EB, #0D9488);
  color: #FFFFFF !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 9999px;
  display: inline-block;
  text-transform: uppercase;
}

.steno-hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--steno-text-primary, #0F172A);
  max-width: 900px;
  margin: 0 auto 20px;
  letter-spacing: -0.025em;
}

.steno-hero-gradient {
  background: linear-gradient(135deg, #2563EB 0%, #0D9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.steno-hero-subhead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: var(--steno-text-secondary, #64748B);
  max-width: 780px;
  margin: 0 auto 32px;
}

.steno-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sa-bilingual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--steno-text-muted, #94A3B8);
  margin-bottom: 40px;
}

.sa-bilingual span[lang="hi"] {
  font-family: var(--steno-font-hindi, 'Noto Sans Devanagari', sans-serif);
  color: #0D9488;
}

/* ==========================================================================
   2. STATS GRID
   ========================================================================== */
.steno-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 40px auto 0;
  text-align: left;
}

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

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

.steno-stat-box {
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.steno-stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
  border-color: #BFDBFE;
}

[data-theme="dark"] .steno-stat-box {
  background: var(--steno-card-bg, #131B2E);
  border-color: var(--steno-border, #1E293B);
}

.steno-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #2563EB;
  line-height: 1.1;
  font-family: var(--steno-font-sans, sans-serif);
}

.steno-stat-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
  margin-top: 6px;
}

.steno-stat-sub {
  font-size: 12px;
  color: var(--steno-text-muted, #94A3B8);
  margin-top: 2px;
}

/* ==========================================================================
   3. "WHERE DO YOU WANT TO START TODAY?" 4-CARD QUICKSTART GRID
   ========================================================================== */
.steno-quickstart-section {
  padding: 64px 0;
  background: var(--steno-bg, #F8FAFC);
}

.steno-quickstart-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.steno-section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563EB;
  background: #EFF6FF;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

[data-theme="dark"] .steno-section-tag {
  background: rgba(37, 99, 235, 0.2);
  color: #60A5FA;
}

.steno-quickstart-title,
.steno-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--steno-text-primary, #0F172A);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.steno-quickstart-sub,
.steno-section-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--steno-text-secondary, #64748B);
  margin: 0;
}

.steno-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

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

@media (max-width: 600px) {
  .steno-quickstart-grid {
    grid-template-columns: 1fr;
  }
}

.steno-quickstart-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 16px;
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 1;
}

.steno-quickstart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.steno-qs-step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  opacity: 0.25;
  color: var(--steno-text-secondary, #64748B);
  font-family: var(--steno-font-mono, monospace);
}

.steno-qs-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #F1F5F9;
}

.steno-qs-blue .steno-qs-icon { background: #EFF6FF; }
.steno-qs-teal .steno-qs-icon { background: #F0FDFA; }
.steno-qs-orange .steno-qs-icon { background: #FFF7ED; }
.steno-qs-purple .steno-qs-icon { background: #FAF5FF; }

.steno-qs-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
  margin: 0 0 10px;
}

.steno-qs-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--steno-text-secondary, #64748B);
  margin: 0 0 20px;
  flex: 1;
}

.steno-qs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  padding-top: 14px;
  border-top: 1px solid var(--steno-border, #E2E8F0);
}

.steno-qs-blue { border-top: 4px solid #2563EB; }
.steno-qs-blue .steno-qs-footer { color: #2563EB; }
.steno-qs-teal { border-top: 4px solid #0D9488; }
.steno-qs-teal .steno-qs-footer { color: #0D9488; }
.steno-qs-orange { border-top: 4px solid #EA580C; }
.steno-qs-orange .steno-qs-footer { color: #EA580C; }
.steno-qs-purple { border-top: 4px solid #7C3AED; }
.steno-qs-purple .steno-qs-footer { color: #7C3AED; }

.steno-qs-arrow {
  transition: transform 0.2s ease;
}

.steno-quickstart-card:hover .steno-qs-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   4. FEATURED DICTATION WIDGET
   ========================================================================== */
.steno-featured-dictation-section {
  padding: 48px 0;
  background: var(--steno-card-bg-subtle, #F1F5F9);
}

.steno-featured-box {
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .steno-featured-box {
    padding: 24px 20px;
  }
}

.steno-featured-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.steno-featured-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--steno-text-muted, #94A3B8);
}

.steno-featured-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 900px) {
  .steno-featured-content-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.steno-featured-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--steno-text-primary, #0F172A);
  margin: 0 0 8px;
}

.steno-featured-subtitle {
  font-size: 14px;
  color: var(--steno-text-secondary, #64748B);
  margin: 0 0 18px;
}

.steno-featured-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.steno-feat-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--steno-text-primary, #0F172A);
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #E2E8F0;
}

[data-theme="dark"] .steno-feat-tag {
  background: #1E293B;
  border-color: #334155;
  color: #F1F5F9;
}

.steno-featured-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--steno-text-secondary, #64748B);
  font-style: italic;
  padding: 14px 18px;
  border-left: 3px solid #2563EB;
  background: #F8FAFC;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

[data-theme="dark"] .steno-featured-excerpt {
  background: #0F172A;
}

.steno-featured-actions-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
}

[data-theme="dark"] .steno-featured-actions-card {
  background: #1E293B;
  border-color: #334155;
}

.steno-feat-card-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
  margin-bottom: 14px;
}

.steno-feat-speed-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.steno-feat-speed-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.steno-feat-speed-pill.is-active,
.steno-feat-speed-pill:hover {
  background: #2563EB;
  border-color: #2563EB;
}

.steno-fsp-speed {
  font-size: 14px;
  font-weight: 800;
  color: var(--steno-text-primary, #0F172A);
}

.steno-fsp-lbl {
  font-size: 10.5px;
  color: var(--steno-text-muted, #94A3B8);
  margin-top: 2px;
}

.steno-feat-speed-pill.is-active .steno-fsp-speed,
.steno-feat-speed-pill.is-active .steno-fsp-lbl,
.steno-feat-speed-pill:hover .steno-fsp-speed,
.steno-feat-speed-pill:hover .steno-fsp-lbl {
  color: #FFFFFF !important;
}

.steno-feat-sub-links {
  text-align: center;
  margin-top: 14px;
}

.steno-feat-sub-links a {
  font-size: 12.5px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
}

.steno-feat-sub-links a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   5. SCIENTIFIC METHODOLOGY 4-CARD GRID
   ========================================================================== */
.steno-section {
  padding: 72px 0;
}

.steno-section-alt {
  background: var(--steno-card-bg-subtle, #F8FAFC);
}

.steno-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.steno-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

@media (max-width: 580px) {
  .steno-features-grid {
    grid-template-columns: 1fr;
  }
}

.steno-feature-card {
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 14px;
  padding: 26px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steno-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.steno-feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.steno-feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
  margin: 0 0 10px;
}

.steno-feature-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--steno-text-secondary, #64748B);
  margin: 0;
}

.steno-mono {
  font-family: var(--steno-font-mono, monospace);
  font-weight: 700;
  color: #2563EB;
}

.steno-hindi {
  font-family: var(--steno-font-hindi, sans-serif);
  font-weight: 600;
  color: #0D9488;
}

/* ==========================================================================
   6. HIGH-TRAFFIC TOOLS SPOTLIGHT GRID (4 ELEVATED CARDS)
   ========================================================================== */
.steno-tools-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1040px) {
  .steno-tools-spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .steno-tools-spotlight-grid {
    grid-template-columns: 1fr;
  }
}

.steno-tool-spotlight-card {
  display: flex;
  flex-direction: column;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 1;
}

.steno-tool-spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
  border-color: #93C5FD;
}

.steno-tool-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #EFF6FF;
}

.steno-tool-info h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
  margin: 10px 0 8px;
}

.steno-tool-info p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--steno-text-secondary, #64748B);
  margin: 0 0 18px;
}

.steno-tool-badge-pill {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #2563EB;
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.steno-tool-link-text {
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.steno-tool-spotlight-card:hover .steno-tool-link-text {
  color: #1D4ED8;
}

/* ==========================================================================
   7. FINAL CALL TO ACTION
   ========================================================================== */
.steno-final-cta-section {
  padding: 60px 0 80px;
}

.steno-final-cta-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: 20px;
  padding: 56px 40px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.steno-final-cta-card h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.steno-final-cta-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 680px;
  margin: 0 auto 32px;
}

.steno-final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   8. FOOTER STYLES & VISIBILITY GUARANTEE
   ========================================================================== */
.steno-footer {
  background: #0B1120 !important;
  color: #E2E8F0 !important;
  padding: 48px 0 28px !important;
  border-top: 1px solid #1E293B !important;
  font-size: 14px;
  margin-top: 40px !important;
  position: relative;
  z-index: 10;
}

.steno-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* 1. Pre-Footer Quick-Start CTA Banner */
.steno-prefooter-banner {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F766E 100%);
  border-radius: 20px;
  padding: 28px 36px;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.steno-prefooter-content {
  flex: 1;
  min-width: 280px;
}

.steno-prefooter-badge {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #67E8F9;
  margin-bottom: 6px;
}

.steno-prefooter-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 12px;
  max-width: 620px;
  line-height: 1.4;
}

.steno-prefooter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.steno-prefooter-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #F0FDFA !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.steno-prefooter-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.steno-prefooter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.steno-btn-footer-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: #FFFFFF;
  color: #0F172A !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}

.steno-btn-footer-primary:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.steno-btn-footer-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.steno-btn-footer-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 2. Main 4-Column SaaS Grid */
.steno-footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 1.2fr 1.2fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .steno-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .steno-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steno-prefooter-banner {
    padding: 20px 24px;
  }
}

.steno-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 14px;
}

.steno-footer-txt-steno {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF !important;
  letter-spacing: -0.02em;
}

.steno-footer-txt-abhyas {
  font-size: 24px;
  font-weight: 900;
  color: #38BDF8 !important;
  letter-spacing: -0.02em;
}

.steno-footer-desc {
  font-size: 13.5px;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 380px;
}

.steno-footer-sys-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.steno-footer-sys-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid #334155;
}

.steno-footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #2DD4BF;
}

.steno-footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF !important;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.steno-footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.steno-footer-link {
  color: #94A3B8 !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.steno-footer-link:hover {
  color: #FFFFFF !important;
  transform: translateX(4px);
}

/* 3. Bottom Legal & Back to Top */
.steno-footer-bottom-bar {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748B;
}

.steno-footer-legal a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.steno-footer-legal a:hover {
  color: #FFFFFF;
}

.steno-footer-divider {
  margin: 0 6px;
  color: #334155;
}

.steno-back-to-top-btn {
  background: #1E293B;
  color: #94A3B8;
  border: 1px solid #334155;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.steno-back-to-top-btn:hover {
  background: #2563EB;
  color: #FFFFFF;
  border-color: #1D4ED8;
  transform: translateY(-1px);
}

/* ==========================================================================
   9. GLOBAL LAYER & Z-INDEX PROTECTION (HEADER OVERLAP GUARANTEE)
   ========================================================================== */
.steno-card,
.steno-course-card,
.steno-exam-card,
.sa-exam-card,
.sa-mock-card,
.steno-quickstart-card,
.steno-tool-spotlight-card {
  z-index: 1 !important;
}

.steno-card:hover,
.steno-course-card:hover,
.steno-exam-card:hover,
.sa-exam-card:hover,
.sa-mock-card:hover,
.steno-quickstart-card:hover,
.steno-tool-spotlight-card:hover {
  z-index: 5 !important; /* Strict constraint: never exceed navbar z-index (9000) */
}

/* ==========================================================================
   10. PRACTICE PAGE STEPPER BAR & AUDIO LAB POLISH
   ========================================================================== */
.steno-practice-stepper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 14px;
  padding: 14px 24px;
  margin-bottom: 20px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

@media (max-width: 768px) {
  .steno-practice-stepper-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .steno-pstep-arrow {
    display: none;
  }
}

.steno-pstep-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.steno-pstep-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  color: var(--steno-text-secondary, #64748B);
  font-weight: 800;
  font-size: 14px;
}

.steno-pstep-item.is-active .steno-pstep-num {
  background: #2563EB;
  color: #FFFFFF;
}

.steno-pstep-meta {
  display: flex;
  flex-direction: column;
}

.steno-pstep-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--steno-text-primary, #0F172A);
}

.steno-pstep-sub {
  font-size: 11.5px;
  color: var(--steno-text-muted, #94A3B8);
}

.steno-pstep-arrow {
  color: #CBD5E1;
  font-weight: 700;
  font-size: 16px;
}

/* ==========================================================================
   11. COURSES STEP TABS
   ========================================================================== */
.steno-courses-step-tabs {
  margin-bottom: 20px;
}

.steno-step-tab-btn {
  padding: 8px 16px;
  background: var(--steno-card-bg, #FFFFFF);
  border: 1px solid var(--steno-border, #E2E8F0);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--steno-text-secondary, #64748B);
  cursor: pointer;
  transition: all 0.2s ease;
}

.steno-step-tab-btn:hover {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #2563EB;
}

.steno-step-tab-btn.is-active {
  background: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   12. EXAM CARDS STACKED BUTTONS & ZERO COLLISION GUARANTEE
   ========================================================================== */
.sa-exam-card-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin-top: 20px !important;
}

.sa-exam-card-footer .sa-btn-primary,
.sa-exam-card-footer .sa-btn-secondary {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.sa-exam-card-footer .sa-btn-primary {
  background: #2563EB !important;
  color: #FFFFFF !important;
  border: 1px solid #1D4ED8 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25) !important;
}

.sa-exam-card-footer .sa-btn-primary:hover {
  background: #1D4ED8 !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
  transform: translateY(-1px) !important;
}

.sa-exam-card-footer .sa-btn-secondary {
  background: #F8FAFC !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

.sa-exam-card-footer .sa-btn-secondary:hover {
  background: #F1F5F9 !important;
  border-color: #94A3B8 !important;
  color: #0F172A !important;
  transform: translateY(-1px) !important;
}

/* Zero hidden opacity - guarantees everything renders immediately without JS waiting */
body, main, section, .steno-container, .steno-hero-section {
  opacity: 1 !important;
}

/* ==========================================================================
   13. COMPREHENSIVE MOBILE-FIRST RESPONSIVE AUDIT & OVERRIDES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Zero horizontal overflow enforcement */
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  *, *::before, *::after {
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .steno-hero-section {
    padding: 36px 14px 32px !important;
  }
  .steno-hero-title {
    font-size: clamp(1.75rem, 6.5vw, 2.5rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }
  .steno-hero-subhead {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin-bottom: 22px !important;
    padding: 0 4px !important;
  }
  .steno-hero-ctas {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .steno-hero-ctas .steno-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 15px !important;
    box-sizing: border-box !important;
  }
  .steno-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    margin-top: 24px !important;
  }
  .steno-stat-box {
    padding: 14px 16px !important;
  }
  .steno-stat-num {
    font-size: 1.6rem !important;
  }
  .steno-stat-label {
    font-size: 12px !important;
  }

  /* Grids: Quickstart, Systems, Features, Tools Spotlight */
  .steno-quickstart-grid,
  .steno-systems-grid,
  .steno-features-grid,
  .steno-tools-spotlight-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .steno-quickstart-card,
  .steno-system-card,
  .steno-feature-card,
  .steno-tool-spotlight-card {
    padding: 18px 16px !important;
  }

  /* Prefooter Banner */
  .steno-prefooter-banner {
    padding: 22px 16px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 18px !important;
  }
  .steno-prefooter-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }
  .steno-prefooter-pills {
    justify-content: center !important;
    gap: 6px !important;
  }
  .steno-prefooter-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .steno-btn-footer-primary,
  .steno-btn-footer-glass {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
  }

  /* Global Footer */
  .steno-footer {
    padding: 40px 0 24px !important;
  }
  .steno-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .steno-footer-bottom-bar {
    flex-direction: column !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .steno-back-to-top-btn {
    width: 100% !important;
    justify-content: center !important;
    min-height: 44px !important;
  }
}

@media (max-width: 400px) {
  .steno-stats-grid {
    grid-template-columns: 1fr !important;
  }
  .steno-hero-title {
    font-size: 1.65rem !important;
  }
}
