/*
Theme Name: TestMikrofonu Signal
Theme URI: https://testmikrofonu.pl
Author: TestMikrofonu.pl
Description: Ciemny motyw audio-first dla testmikrofonu.pl. Signal design — DM Sans + DM Mono, teal accent, waveform aesthetic.
Version: 1.2.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: tmpl-theme
Tags: dark, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ══════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════════ */
:root {
  --c-bg:        #0e1016;
  --c-bg2:       #141720;
  --c-bg3:       #1a1e2a;
  --c-card:      #1c2030;
  --c-card-h:    #222638;
  --c-border:    rgba(255,255,255,.07);
  --c-border-h:  rgba(255,255,255,.14);
  --c-accent:    #00c896;
  --c-accent-d:  rgba(0,200,150,.12);
  --c-accent-g:  rgba(0,200,150,.25);
  --c-accent2:   #3ecfb4;
  --c-blue:      #4f8ef7;
  --c-orange:    #f97316;
  --c-red:       #f05050;
  --c-text:      #e8ecf5;
  --c-text2:     #8b96b0;
  --c-text3:     #4a5270;
  --c-white:     #ffffff;
  --r:           14px;
  --r-sm:        8px;
  --r-xl:        22px;
  --font-body:   'DM Sans', system-ui, sans-serif;
  --font-mono:   'DM Mono', 'Courier New', monospace;
  --trans:       .18s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 4px 32px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(0,200,150,.08);
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--c-bg);
}

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid texture on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,150,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,150,.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

img, video, canvas, svg { max-width: 100%; display: block; }
a { color: var(--c-accent); text-decoration: none; transition: color var(--trans), opacity var(--trans); }
a:hover { color: var(--c-accent2); opacity: 1; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--c-text);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { color: var(--c-text2); line-height: 1.78; margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--c-text); font-weight: 600; }
em { font-style: italic; }
ul, ol { padding-left: 1.4rem; color: var(--c-text2); }
li { margin-bottom: .35rem; line-height: 1.65; }
code, pre { font-family: var(--font-mono); }
code { background: rgba(255,255,255,.06); border: 1px solid var(--c-border); border-radius: 4px; padding: .15em .4em; font-size: .875em; color: var(--c-accent2); }
pre { background: var(--c-bg3); border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: 1.25rem; overflow-x: auto; }

/* ══════════════════════════════════════════════════════════════
   LAYOUT
   ══════════════════════════════════════════════════════════════ */
.site-wrapper { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }
.site-main { flex: 1; padding-bottom: 5rem; }

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14,16,22,.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 62px;
  justify-content: space-between;
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--c-text);
}
.site-logo-link:hover { opacity: .85; color: var(--c-text); }

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--c-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,200,150,.35);
  transition: box-shadow var(--trans);
}
.site-logo-link:hover .logo-mark { box-shadow: 0 0 28px rgba(0,200,150,.55); }
.logo-mark svg { width: 26px; height: 26px; }

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--c-text);
}
.logo-text .logo-tld { color: var(--c-accent); }

/* Primary nav */
#primary-nav { display: flex; align-items: center; }

/* Critical: kill default list bullets/dots */
#primary-nav ul,
#primary-nav .tmpl-nav-list {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
#primary-nav li { list-style: none; margin: 0; padding: 0; }

#primary-nav a {
  display: block;
  padding: .45rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--c-text3);
  border-radius: var(--r-sm);
  transition: all var(--trans);
  white-space: nowrap;
}
#primary-nav a:hover,
#primary-nav .current-menu-item > a,
#primary-nav .current_page_item > a {
  color: var(--c-text);
  background: rgba(255,255,255,.07);
}

/* Start CTA in nav */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem !important;
  background: var(--c-accent) !important;
  color: #041a12 !important;
  border-radius: var(--r-sm) !important;
  font-weight: 700 !important;
  font-size: .8125rem !important;
  transition: background var(--trans), transform var(--trans) !important;
}
.nav-cta-btn:hover {
  background: #00dea5 !important;
  color: #041a12 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,200,150,.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .2s;
}

/* Mobile nav */
.mobile-nav-wrap {
  display: none;
  background: var(--c-bg2);
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav-wrap.open { display: block; }
.mobile-nav-wrap ul { list-style: none; padding: .75rem 1.5rem 1rem; margin: 0; }
.mobile-nav-wrap a { display: block; padding: .6rem .5rem; color: var(--c-text2); font-size: .9375rem; font-weight: 500; border-radius: var(--r-sm); }
.mobile-nav-wrap a:hover { color: var(--c-accent); }

/* ══════════════════════════════════════════════════════════════
   HOME HERO
   ══════════════════════════════════════════════════════════════ */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
  text-align: center;
}

/* Ambient glow */
.home-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0,200,150,.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Animated waveform behind hero */
.hero-wave-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  opacity: .18;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(0,200,150,.08);
  border: 1px solid rgba(0,200,150,.2);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 6px var(--c-accent);
  animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.home-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--c-white);
}
.home-hero h1 .accent-word {
  color: var(--c-accent);
  position: relative;
  display: inline-block;
}

.home-hero-sub {
  font-size: 1.0625rem;
  color: var(--c-text2);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
  background: var(--c-card);
}
.hero-stat {
  flex: 1;
  min-width: 120px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  border-right: 1px solid var(--c-border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-accent);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .25rem;
}
.hero-stat-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-text3);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  transition: all var(--trans);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-accent);
  color: #041a12;
}
.btn-primary:hover {
  background: #00dea5;
  color: #041a12;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,200,150,.35);
}
.btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--c-border-h);
  color: var(--c-text);
}
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ══════════════════════════════════════════════════════════════
   TOOL CARDS GRID (homepage sections)
   ══════════════════════════════════════════════════════════════ */
.tools-section { padding: 3.5rem 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-accent);
  margin-bottom: .4rem;
  display: block;
}
.section-title { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 800; }

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

.tool-card {
  display: flex;
  flex-direction: column;
  gap: .875rem;
  padding: 1.5rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,200,150,.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--trans);
}
.tool-card:hover {
  border-color: rgba(0,200,150,.25);
  background: var(--c-card-h);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  color: inherit;
}
.tool-card:hover::before { opacity: 1; }

.tool-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.icon-teal   { background: rgba(0,200,150,.12); }
.icon-blue   { background: rgba(79,142,247,.12); }
.icon-orange { background: rgba(249,115,22,.12); }
.icon-purple { background: rgba(139,92,246,.12); }
.icon-red    { background: rgba(240,80,80,.12); }

.tool-card-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(0,200,150,.1);
  color: var(--c-accent);
  margin-bottom: .1rem;
}
.tool-card-tag.blue   { background: rgba(79,142,247,.1); color: var(--c-blue); }
.tool-card-tag.orange { background: rgba(249,115,22,.1); color: var(--c-orange); }

.tool-card h3 { font-size: 1.025rem; font-weight: 700; color: var(--c-text); margin-bottom: .2rem; }
.tool-card p  { font-size: .84375rem; color: var(--c-text2); line-height: 1.6; margin: 0; }

.tool-card-arrow {
  margin-top: auto;
  font-size: .8rem;
  color: var(--c-text3);
  transition: color var(--trans), transform var(--trans);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.tool-card:hover .tool-card-arrow { color: var(--c-accent); transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════
   DIAGNOSTIC BANNER
   ══════════════════════════════════════════════════════════════ */
.diag-banner {
  background: linear-gradient(135deg, rgba(0,200,150,.07) 0%, rgba(79,142,247,.06) 100%);
  border: 1px solid rgba(0,200,150,.18);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.diag-banner-icon { font-size: 2.5rem; flex-shrink: 0; }
.diag-banner-text { flex: 1; min-width: 200px; }
.diag-banner-text h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.diag-banner-text p  { margin: 0; font-size: .9rem; }

/* ══════════════════════════════════════════════════════════════
   SHARE WIDGET (homepage)
   ══════════════════════════════════════════════════════════════ */
.share-section {
  background: var(--c-bg2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.share-section h3 { margin-bottom: .5rem; }
.share-section p  { margin-bottom: 1.25rem; font-size: .9rem; }
.share-btns { display: flex; gap: .625rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.25rem; }
.share-btn {
  padding: .5rem 1.1rem;
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text2);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all var(--trans);
}
.share-btn:hover { border-color: var(--c-accent); color: var(--c-accent); }
.share-link-row {
  display: flex;
  gap: .5rem;
  max-width: 520px;
  margin: 0 auto;
}
.share-link-input {
  flex: 1;
  min-width: 0;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: .55rem 1rem;
  color: var(--c-text3);
  font-family: var(--font-mono);
  font-size: .75rem;
  outline: none;
}

/* ══════════════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════════════ */
.how-section { padding: 3.5rem 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: how-counter;
}
.how-card {
  padding: 2rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  counter-increment: how-counter;
  position: relative;
}
.how-card::before {
  content: counter(how-counter, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(0,200,150,.1);
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
  letter-spacing: -.05em;
}
.how-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.how-card p  { font-size: .875rem; margin: 0; }

/* ══════════════════════════════════════════════════════════════
   SINGLE PAGE / TOOL PAGE
   ══════════════════════════════════════════════════════════════ */
.page-content { padding: 2rem 0 4rem; }
.page-content h2 { margin-top: 2.25rem; margin-bottom: .75rem; }
.page-content h3 { margin-top: 1.75rem; margin-bottom: .5rem; }
.page-content p  { margin-bottom: 1rem; }
.page-content ul,
.page-content ol { margin-bottom: 1rem; }
.page-content li { margin-bottom: .4rem; }
.page-content a  { color: var(--c-accent); }
.page-content a:hover { color: var(--c-accent2); }

/* ══════════════════════════════════════════════════════════════
   BLOG / ARCHIVE
   ══════════════════════════════════════════════════════════════ */
.posts-header { padding: 3rem 0 2rem; }
.posts-header h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: .5rem; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-bottom: 4rem;
}
.post-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--c-border-h);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.post-card-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .75rem; }
.post-card-meta { font-family: var(--font-mono); font-size: .6875rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .07em; }
.post-card-title { font-size: 1.0625rem; font-weight: 700; color: var(--c-text); line-height: 1.35; }
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--c-accent); }
.post-card-excerpt { font-size: .875rem; color: var(--c-text2); line-height: 1.65; margin: 0; flex: 1; }
.post-card-read { align-self: flex-start; font-size: .8125rem; font-weight: 600; color: var(--c-accent); display: flex; align-items: center; gap: .3rem; margin-top: auto; }
.post-card-read:hover { color: var(--c-accent2); }

/* Single post */
.single-post { padding: 2rem 0 5rem; }
.single-post-header { margin-bottom: 2.5rem; }
.single-post-meta { font-family: var(--font-mono); font-size: .75rem; color: var(--c-text3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.single-post-title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.single-post-content { max-width: 760px; }
.single-post-content h2 { margin-top: 2.5rem; margin-bottom: .875rem; }
.single-post-content h3 { margin-top: 2rem; margin-bottom: .75rem; }
.single-post-content p { margin-bottom: 1.25rem; }
.single-post-content img { border-radius: var(--r); margin: 1.5rem 0; }
.single-post-content ul,
.single-post-content ol { margin-bottom: 1.25rem; }
.single-post-content blockquote {
  border-left: 3px solid var(--c-accent);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(0,200,150,.05);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
  color: var(--c-text2);
}

/* ══════════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════════ */
.error-page { padding: 6rem 0; text-align: center; }
.error-page .error-code { font-family: var(--font-mono); font-size: 7rem; font-weight: 900; color: rgba(0,200,150,.12); line-height: 1; display: block; margin-bottom: 1rem; letter-spacing: -.05em; }
.error-page h1 { margin-bottom: .75rem; }
.error-page p  { margin-bottom: 2rem; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--c-bg2);
  border-top: 1px solid var(--c-border);
  padding: 3.5rem 0 1.75rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {}
.footer-brand .site-logo-link { margin-bottom: .875rem; display: inline-flex; }
.footer-brand-desc { font-size: .875rem; color: var(--c-text3); line-height: 1.75; max-width: 280px; }

.footer-col h5 {
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-text3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .875rem; color: var(--c-text2); transition: color var(--trans); }
.footer-col a:hover { color: var(--c-accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
  font-size: .8rem;
  color: var(--c-text3);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--c-text3); }
.footer-links a:hover { color: var(--c-accent); }

/* ══════════════════════════════════════════════════════════════
   WAVEFORM DECORATION (static SVG lines in hero)
   ══════════════════════════════════════════════════════════════ */
.deco-wave {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.text-accent { color: var(--c-accent); }
.text-mono   { font-family: var(--font-mono); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* WordPress alignment classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; display: block; text-align: center; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8125rem; color: var(--c-text3); margin-top: .4rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 2rem 0; }
.pagination a,
.pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 600;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-text2);
  transition: all var(--trans);
}
.pagination a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination .current { background: var(--c-accent); color: #041a12; border-color: var(--c-accent); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  #primary-nav { display: none; }
  .hamburger { display: flex; }
  .home-hero { padding: 3.5rem 0 3rem; }
  .hero-stats { flex-direction: column; border-radius: var(--r); }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--c-border); width: 100%; }
  .hero-stat:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .diag-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { justify-content: center; }
  .tools-grid { grid-template-columns: 1fr; }
}
