/* ==========================================================================
   NAAM JAPA COUNTER - STYLESHEET (Pure Vanilla CSS3)
   Built for 600IQ Ecosystem - Spiritual & Mindfulness Aesthetic
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-dark: #0b0f19;
  --bg-header: rgba(11, 15, 25, 0.85);
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-input: #1a2234;
  --border-color: rgba(245, 158, 11, 0.25);
  --border-hover: rgba(245, 158, 11, 0.6);

  --accent-amber: #f59e0b;
  --accent-amber-dark: #d97706;
  --accent-glow: rgba(245, 158, 11, 0.35);

  --primary: #f59e0b;
  --primary-hover: #d97706;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --danger: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
}

[data-theme="light"] {
  --bg-dark: #faf8f5;
  --bg-header: rgba(255, 255, 255, 0.9);
  --bg-card: #ffffff;
  --bg-card-hover: #fdfbf7;
  --bg-input: #f3efe6;
  --border-color: #e5dec9;
  --border-hover: #d97706;
  --text-main: #1c1917;
  --text-muted: #78716c;
  --text-sub: #44403c;
  --shadow-glow: 0 10px 30px rgba(217, 119, 6, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-stack);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  touch-action: manipulation;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  transition: background-color 0.3s, border-color 0.3s;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  letter-spacing: -0.5px;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-amber);
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1.2rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}

.theme-toggle-btn:hover {
  transform: scale(1.05);
  border-color: var(--accent-amber);
}

/* ==========================================================================
   Hero & Minimized PWA Pill
   ========================================================================== */

.hero-section {
  text-align: center;
  padding: 1.75rem 0 1.25rem;
}

.hero-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hero-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
}

.install-app-pill {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s;
}

.install-app-pill:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.install-app-pill.hidden {
  display: none !important;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #fbbf24, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 680px;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}

.ios-modal-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* iOS Safari PWA Steps */
.ios-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  text-align: left;
}

.ios-banner-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
}

.ios-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.ios-step-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.ios-step-num {
  width: 22px;
  height: 22px;
  background: var(--accent-amber);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-share-svg {
  display: inline-block;
  vertical-align: middle;
  margin: 0 2px;
  stroke: var(--accent-amber);
}

/* ==========================================================================
   Main Japa Counter Card
   ========================================================================== */

.japa-counter-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-glow);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Toolbar */
.counter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.mantra-select-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 220px;
}

.toolbar-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.toolbar-dropdown, .custom-mantra-field {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.toolbar-dropdown:focus, .custom-mantra-field:focus {
  border-color: var(--accent-amber);
}

.custom-mantra-group {
  flex: 1;
  min-width: 200px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.toolbar-btn:hover {
  border-color: var(--accent-amber);
  color: var(--text-main);
}

.toolbar-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: var(--accent-amber);
}

.toolbar-btn.hidden {
  display: none !important;
}

/* Mantra Banner */
.mantra-banner {
  text-align: center;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.mantra-title-badge {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-amber);
  letter-spacing: -0.3px;
}

.mala-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
}

/* Visual Bead Progress Ring */
.mala-bead-progress-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0.5rem auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-fill {
  stroke-dasharray: 596.9; /* 2 * PI * 95 */
  stroke-dashoffset: 596.9;
  transition: stroke-dashoffset 0.25s ease-out;
}

.bead-indicator {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bead-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.bead-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Tap Zone */
.tap-zone {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.04) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  transition: transform 0.1s, border-color 0.2s, background-color 0.2s;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tap-zone:hover {
  border-color: var(--border-hover);
}

.tap-zone.pressing {
  transform: scale(0.98);
  border-color: var(--accent-amber);
  background-color: rgba(245, 158, 11, 0.08);
}

.tap-zone.mala-celebrate {
  animation: malaPulse 0.8s ease-out;
}

@keyframes malaPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.8); }
  50% { box-shadow: 0 0 50px 20px rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.count-display {
  margin-bottom: 0.5rem;
}

.count-number {
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tap-hint {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.stats-pills-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.stat-pill strong {
  color: var(--accent-amber);
}

/* Floating +1 animation */
.floating-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-plus {
  position: absolute;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-amber);
  pointer-events: none;
  animation: floatUp 0.6s ease-out forwards;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-45px) scale(1.4); }
}

.tap-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.5s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(1); opacity: 0; }
}

/* Hands-Free Sound Detection Mode Panel */
.mic-status-panel {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-top: 1.25rem;
}

.mic-status-panel.hidden {
  display: none !important;
}

.mic-status-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.mic-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.mic-status-title {
  color: var(--accent-emerald);
  font-size: 0.95rem;
  flex: 1;
}

.mic-sens-badge {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.mic-status-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.mic-visualizer {
  height: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.mic-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-amber));
  transition: width 0.05s ease-out;
  border-radius: 4px;
}

.mic-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sens-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 200px;
}

.sens-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.sens-slider {
  flex: 1;
  accent-color: var(--accent-emerald);
}

.sound-mode-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger-subtle {
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-danger-subtle:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

/* Bottom Action Toolbar */
.bottom-action-toolbar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.bottom-btn {
  flex: 1;
  min-width: 100px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.bottom-btn:hover {
  border-color: var(--accent-amber);
  transform: translateY(-1px);
}

.bottom-btn-danger {
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.bottom-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: #ffffff;
}

.bottom-btn-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border: none;
}

.bottom-btn-accent:hover {
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   Zen / Focus Dim Mode
   ========================================================================== */

body.zen-mode {
  background-color: #000000 !important;
}

body.zen-mode .site-header,
body.zen-mode .hero-section,
body.zen-mode .seo-article,
body.zen-mode .faq-section,
body.zen-mode .related-tools-section,
body.zen-mode .site-footer {
  display: none !important;
}

body.zen-mode .japa-counter-card {
  background-color: #050505;
  border-color: #222;
  margin-top: 2rem;
}

/* ==========================================================================
   Stats & Daily History Drawer
   ========================================================================== */

.stats-drawer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.stats-drawer.hidden {
  display: none !important;
}

.stats-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.close-drawer-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.stat-icon {
  font-size: 1.8rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
}

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

.history-section h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-sub);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.history-row {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

/* Modals & Calibration UI */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-content-wide {
  max-width: 500px;
}

.modal-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.modal-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.privacy-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  text-align: left;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.privacy-box strong {
  color: var(--accent-emerald);
  display: block;
  margin-bottom: 0.25rem;
}

.env-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.calibration-status-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin: 1rem 0;
}

.calib-visualizer {
  height: 12px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.calib-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.calib-lbl {
  color: var(--text-muted);
}

.calib-val {
  color: var(--accent-amber);
  font-size: 1.1rem;
}

.calib-guide {
  font-size: 0.85rem;
  color: var(--accent-amber);
  font-weight: 600;
  min-height: 1.5em;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-button {
  flex: 1;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.cta-accent {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.cta-danger {
  background: var(--danger);
  color: #fff;
}

.secondary-btn {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s;
}

.secondary-btn:hover {
  border-color: var(--accent-amber);
}

/* Toast */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  z-index: 2000;
  transition: opacity 0.3s;
}

.toast-notification.hidden {
  display: none !important;
}

/* ==========================================================================
   SEO Article & Content
   ========================================================================== */

.seo-article {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2.5rem;
}

.seo-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.75rem 0 0.85rem;
  color: var(--text-main);
}

.seo-article h2:first-child {
  margin-top: 0;
}

.seo-article h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.25rem 0 0.65rem;
  color: var(--accent-amber);
}

.seo-article p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.seo-article ul, .seo-article ol {
  color: var(--text-muted);
  margin: 0 0 1.25rem 1.5rem;
}

.seo-article li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   FAQ Section Accordion
   ========================================================================== */

.faq-section {
  margin-bottom: 2.5rem;
}

.faq-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

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

.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--accent-amber);
  transition: transform 0.2s;
}

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

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-answer.hidden {
  display: none !important;
}

/* ==========================================================================
   Related Tools Grid
   ========================================================================== */

.related-tools-section {
  margin-bottom: 3rem;
}

.related-tools-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.related-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.related-tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.related-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-amber);
}

.related-tool-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.related-tool-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.related-tool-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  max-width: 320px;
}

.brand-logo {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links-group {
  display: flex;
  gap: 3rem;
}

.footer-heading {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-amber);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 2.25rem 0 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
  }

  .footer-links li {
    margin-bottom: 0.65rem;
  }

  .footer-links a {
    display: inline-block;
    padding: 0.2rem 0;
    font-size: 0.92rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.1rem; }
  .tap-zone { padding: 2rem 1rem; min-height: 220px; }
  .count-number { font-size: 4.5rem; }
  .bottom-action-toolbar { flex-direction: column; }
  .mic-controls-row { flex-direction: column; align-items: stretch; }
  .sound-mode-actions { width: 100%; justify-content: space-between; }
}
