/* Kiwi Voice docs — brand overrides */

:root {
  --md-primary-fg-color: #0d9488;
  --md-primary-bg-color: #f0fdfa;
  --md-accent-fg-color: #14b8a6;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #a0e8df;
  --md-primary-bg-color: #0a0d12;
  --md-default-bg-color: #0c1117;
  --md-default-fg-color: #c9d1d9;
  --md-code-bg-color: #161b22;
}

/* ── Header ── */

[data-md-color-scheme="slate"] .md-header {
  background: #0a0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-md-color-scheme="slate"] .md-tabs {
  background: #0a0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* ── Hero ── */

.kv-hero {
  text-align: center;
  padding: 4rem 1.5rem 3.5rem;
  position: relative;
}

.kv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(20, 184, 166, 0.08), transparent),
    radial-gradient(ellipse 400px 250px at 30% 60%, rgba(139, 92, 246, 0.04), transparent);
  pointer-events: none;
}

.kv-hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 1em;
  border-radius: 100px;
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #14b8a6;
  background: rgba(20, 184, 166, 0.06);
  margin-bottom: 1.5rem;
}

.kv-hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 40%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kv-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  opacity: 0.75;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.kv-hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.kv-hero-actions .md-button {
  font-size: 0.9rem;
  padding: 0.6em 1.8em;
  border-radius: 8px;
}

/* ── Sections ── */

.kv-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.kv-section + .kv-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kv-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* ── Feature grid ── */

.kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.kv-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.kv-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: rgba(20, 184, 166, 0.04);
  transform: translateY(-2px);
}

.kv-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.kv-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--md-default-fg-color);
}

.kv-card > span:last-child {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.65;
}

/* ── Badge pills (used on feature pages) ── */

.md-typeset .badge {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
}

.md-typeset .badge-free { background: #065f4620; color: #14b8a6; }
.md-typeset .badge-paid { background: #f59e0b20; color: #f59e0b; }
.md-typeset .badge-gpu  { background: #8b5cf620; color: #a78bfa; }
.md-typeset .badge-new  { background: #ef444420; color: #f87171; }

/* ── TTS table ── */

.md-typeset .tts-table th,
.md-typeset .tts-table td {
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

/* ── Screenshot ── */

.md-typeset .screenshot {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 1.5rem 0;
}

/* ── Light theme adjustments ── */

[data-md-color-scheme="default"] .kv-hero-badge {
  background: rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.3);
  color: #0d9488;
}

[data-md-color-scheme="default"] .kv-hero-sub {
  opacity: 0.65;
}

[data-md-color-scheme="default"] .kv-hero::before {
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(13, 148, 136, 0.06), transparent);
}

[data-md-color-scheme="default"] .kv-card {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.015);
}

[data-md-color-scheme="default"] .kv-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  background: rgba(13, 148, 136, 0.04);
}

[data-md-color-scheme="default"] .kv-section + .kv-section {
  border-top-color: rgba(0, 0, 0, 0.08);
}

/* ── Responsive ── */

@media (max-width: 600px) {
  .kv-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .kv-grid {
    grid-template-columns: 1fr;
  }
}
