/* Design.dev — Main Styles */

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-system);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base);
}

a:hover {
  opacity: 0.8;
}

ul, ol {
  list-style: none;
}

/* Layout Utilities */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.nav-link {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav-link:hover {
  color: var(--text);
  opacity: 1;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-6xl) 0;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(to bottom, var(--text), var(--muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-subtitle a, .hero-subtitle a:visited {
  color: var(--text);
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 400;
}

/* Hero Newsletter */
.hero-actions {
  padding-top: var(--space-4xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4xl);
}

.hero-newsletter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
  max-width: 620px;
}

.hero-newsletter .seva-form {
  flex: 1;
  min-width: 0;
}

.hero-newsletter-note {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-md);
}

/* Hero Icon Preview */
.hero-icon-preview {
  width: 100%;
  max-width: 800px;
  margin: -20px 0 20px 0;
  padding: 0 var(--space-lg);
  text-align: center;
}

.hero-icon-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Rotating Badge */
.rotating-badge {
  position: relative;
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  margin-top: -25px;
}

.rotating-text {
  width: 100%;
  height: 100%;
  animation: rotate-badge 30s linear infinite;
}

.rotating-text text {
  fill: var(--text);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes rotate-badge {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.badge-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.badge-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

/* Keyboard Shortcut Badge */
.kbd {
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--muted);
  box-shadow: 0 2px 0 var(--border);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 600px;
  margin: 30px auto 0 auto;
}

.stat {
  padding: var(--space-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-base);
}

.stat:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* Section Styles */
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: var(--space-5xl);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

/* Tags Row with Search Shortcut */
.tags-row {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.tools-section-header .tags-row {
  justify-content: flex-end;
  margin-bottom: 0;
}

/* Search Shortcut Hint */
.search-shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.search-shortcut-hint:hover {
  opacity: 1;
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.search-shortcut-hint:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  opacity: 1;
}

.search-shortcut-hint .kbd {
  font-size: 11px;
  padding: 3px 6px;
}

/* Features Section */
.features {
  padding: var(--space-7xl) 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary) url("/?originalUrl=https%3A%2F%2Fdesign.dev%2Fassets%2Fimg%2Fgradient-bg.jpg") no-repeat center center;
  background-size: cover;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3xl);
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-xl);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon img {
  display: block;
}

.feature h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.feature p {
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto;
}

.feature-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.feature-link .feature-icon {
  transition: border-color 0.2s ease;
}

.feature-link h3 {
  transition: color 0.2s ease;
}

.feature-link:hover .feature-icon {
  border-color: rgba(255, 255, 255, 0.3);
}

.feature-link:hover h3 {
  color: #fff;
}

/* Sponsor Banner */
.sponsor-banner {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-main .sponsor-banner {
  border-radius: var(--radius);
}

.sponsor-banner::before,
.sponsor-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 155%;
  pointer-events: none;
  opacity: 0.9;
}

.sponsor-banner-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.sponsor-banner-link:hover {
  opacity: 1;
}

.sponsor-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  max-width: 1185px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-5xl);
}

.sponsor-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsor-logo img {
  height: auto;
}

.sponsor-logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sponsor-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  text-align: center;
  flex: 1;
}

.sponsor-headline {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sponsor-tagline {
  font-size: 14px;
  font-style: italic;
}

.sponsor-banner-cta {
  flex-shrink: 0;
}

.sponsor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.sponsor-button::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.2s ease;
}

.sponsor-banner-link:hover .sponsor-button {
  transform: translateY(-1px);
}

.sponsor-banner-link:hover .sponsor-button::after {
  transform: translateX(3px);
}

/* CodeRabbit — dark bg, orange accent */
.sponsor-banner--coderabbit {
  background: #181516;
}

.sponsor-banner--coderabbit::before {
  left: 0;
  background: radial-gradient(ellipse at left center, rgba(255, 87, 10, 0.15), transparent 70%);
}

.sponsor-banner--coderabbit::after {
  right: 0;
  background: radial-gradient(ellipse at right center, rgba(255, 87, 10, 0.15), transparent 70%);
}

.sponsor-banner--coderabbit .sponsor-headline {
  color: #F9F5F3;
}

.sponsor-banner--coderabbit .sponsor-tagline {
  color: rgba(249, 245, 243, 0.55);
}

.sponsor-banner--coderabbit .sponsor-button {
  color: #fff;
  background: #FF570A;
  border-bottom-color: #CC4508;
}

.sponsor-banner--coderabbit .sponsor-banner-link:hover .sponsor-button {
  box-shadow: 0 4px 16px rgba(255, 87, 10, 0.35);
}

/* Wispr Flow — dark bg, green accent */
.sponsor-banner--wisprflow {
  background: #131816;
}

.sponsor-banner--wisprflow::before {
  left: 0;
  background: radial-gradient(ellipse at left center, rgba(74, 124, 89, 0.18), transparent 70%);
}

.sponsor-banner--wisprflow::after {
  right: 0;
  background: radial-gradient(ellipse at right center, rgba(74, 124, 89, 0.18), transparent 70%);
}

.sponsor-banner--wisprflow .sponsor-headline {
  color: #F0EBE0;
}

.sponsor-banner--wisprflow .sponsor-tagline {
  color: rgba(240, 235, 224, 0.5);
}

.sponsor-banner--wisprflow .sponsor-button {
  color: #F0EBE0;
  background: #4A7C59;
  border-bottom-color: #3A6247;
}

.sponsor-banner--wisprflow .sponsor-banner-link:hover .sponsor-button {
  box-shadow: 0 4px 16px rgba(74, 124, 89, 0.4);
}

/* Firecrawl — dark bg, orange accent */
.sponsor-banner--firecrawl {
  background: #1A1210;
}

.sponsor-banner--firecrawl::before {
  left: 0;
  background: radial-gradient(ellipse at left center, rgba(255, 77, 0, 0.15), transparent 70%);
}

.sponsor-banner--firecrawl::after {
  right: 0;
  background: radial-gradient(ellipse at right center, rgba(255, 77, 0, 0.15), transparent 70%);
}

.sponsor-banner--firecrawl .sponsor-headline {
  color: #FFF5F0;
}

.sponsor-banner--firecrawl .sponsor-logo-text {
  color: #FFF5F0;
}

.sponsor-banner--firecrawl .sponsor-tagline {
  color: rgba(255, 245, 240, 0.5);
}

.sponsor-banner--firecrawl .sponsor-button {
  color: #fff;
  background: #FF4D00;
  border-bottom-color: #CC3D00;
}

.sponsor-banner--firecrawl .sponsor-banner-link:hover .sponsor-button {
  box-shadow: 0 4px 16px rgba(255, 77, 0, 0.4);
}

/* Sponsor Banner Responsive */
@media (max-width: 900px) {
  .sponsor-banner-inner {
    flex-direction: column;
    gap: var(--space-xl);
    padding: var(--space-3xl) var(--space-xl);
  }

  .sponsor-banner::before,
  .sponsor-banner::after {
    width: 200px;
    opacity: 0.5;
  }

  .sponsor-banner::before {
    left: -50px;
  }

  .sponsor-banner::after {
    right: -50px;
  }
}

@media (max-width: 600px) {
  .sponsor-headline {
    font-size: 18px;
  }

  .sponsor-banner::before,
  .sponsor-banner::after {
    display: none;
  }
}

/* Tools Section */
.tools-section {
  padding: 0 var(--space-4xl) var(--space-7xl) var(--space-4xl);
  background: var(--bg);
}

/* Border only on homepage tools section */
.tools-section#tools {
  border-top: 1px solid var(--border);
}

.tools-section-footer {
  text-align: center;
  margin-top: var(--space-3xl);
}

.tools-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5xl) 0 var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
}

.tools-section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

/* Tags */
.tags {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.tag {
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.tag.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
  max-width: 1400px;
  margin: 0 auto;
}

/* Guides Container Layout */
.guides-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-6xl);
}

/* Guides Intro Section */
.guides-intro {
  max-width: 1200px;
  margin: 0 auto var(--space-3xl) auto;
  text-align: center;
  padding: 0 0 var(--space-4xl) 0;
  border-bottom: 1px solid var(--border);
}

.intro-content {
  max-width: 100%;
  margin: 0 auto;
}

.intro-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-3xl);
}

.intro-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Guides Filter */
.guides-filter {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-bottom: var(--space-sm);
}

.filter-tag {
  padding: var(--space-sm) var(--space-xl);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.filter-tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.filter-tag.active {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

/* Guide Category */
.guide-category {
  position: relative;
  padding: var(--space-3xl) 0;
  border-radius: var(--radius-lg);
  transition: background var(--transition-base);
}

.guide-category:nth-child(even) {
  background: rgba(255, 255, 255, 0.01);
}

.guide-category:hover {
  background: rgba(255, 255, 255, 0.02);
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.category-header-content {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.category-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.guide-category:hover .category-icon {
  border-color: var(--border-hover);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  transform: translateY(-2px);
}

.category-info h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xs);
}

.category-info p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

.category-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-base);
}

.guide-category:hover .category-count {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

/* Guide Card */
.guide-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.guide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.guide-card:hover::before {
  opacity: 0.8;
}

.guide-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.guide-card:hover .guide-card-icon {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: scale(1.05);
}

.guide-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.guide-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

/* Cards */
.card {
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-subtle), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.card:hover::before {
  opacity: 0.6;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.card-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.card:hover .card-icon {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.card-icon svg {
  width: 18px;
  height: 18px;
}

.card p {
  color: var(--muted);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.card .meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.card .pill {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
}

/* Newsletter CTA */
.newsletter-cta {
  padding: var(--space-7xl) 0;
  background: var(--bg-secondary) url("/?originalUrl=https%3A%2F%2Fdesign.dev%2Fassets%2Fimg%2Ficon-preview.png") no-repeat 90% 50%;
  background-size: 40% auto;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  align-items: center;
}

.newsletter-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.newsletter-text p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: var(--space-2xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.newsletter-form input[type="email"] {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-xl);
  font-size: 16px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  transition: all var(--transition-base);
}

.newsletter-form input[type="email"]:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--input-focus-border);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--ring), 0 0 12px var(--input-focus-glow);
}

.cta-button {
  height: 48px;
  padding: 0 var(--space-2xl);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.cta-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.newsletter-note {
  font-size: 14px;
  font-style: italic;
  color: var(--muted);
}

.newsletter-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.newsletter-preview img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
  max-width: 400px;
}

/* Footer */
footer {
  padding: var(--space-5xl) 0 var(--space-2xl);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4xl);
  margin-bottom: var(--space-5xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 300px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-column a {
  color: var(--muted);
  font-size: 14px;
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--text);
  opacity: 1;
}

.footer-bottom {
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  max-width: none;
  font-size: 14px;
  color: var(--muted);
}

/* Command Palette */
#palette {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 100;
}

#palette .box {
  width: min(600px, 90vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#palette input {
  width: 100%;
  height: 56px;
  padding: 0 var(--space-xl);
  font-size: 16px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
}

#palette ul {
  max-height: 400px;
  overflow-y: auto;
  padding: var(--space-md);
}

#palette li {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

#palette li:hover,
#palette li:focus {
  background: rgba(255, 255, 255, 0.05);
}

/* Legal Pages */
.legal-page {
  padding: 100px 0 var(--space-7xl);
}

.breadcrumb + .legal-page {
  padding-top: var(--space-3xl);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2xl);
  background: linear-gradient(to bottom, var(--text), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: var(--space-5xl);
  margin-bottom: var(--space-xl);
  color: var(--text);
}

.legal-content p {
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-intro {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  margin-bottom: var(--space-3xl);
  line-height: 1.6;
}

.legal-update {
  margin-top: var(--space-3xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-style: italic;
  color: var(--muted);
}

.legal-content ul {
  margin-bottom: var(--space-2xl);
  padding-left: var(--space-2xl);
}

.legal-content li {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--text-secondary);
  list-style: disc;
}

.legal-content li::marker {
  color: var(--muted);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-contact {
  margin-top: var(--space-5xl);
  padding: var(--space-3xl);
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.legal-contact p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.legal-content a:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: clamp(40px, 7vw, 80px);
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4xl);
  }

  .newsletter-cta {
    background-size: auto 100px;
    background-position: 50% 100%;
  }
  
  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-preview {
    order: -1;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
  }
}

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  cursor: pointer;
  color: var(--text);
  transition: all var(--transition-base);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  border-color: var(--accent);
  background: rgba(147, 51, 234, 0.1);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  z-index: 40;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: var(--space-2xl) 0;
  gap: 0;
}

.mobile-menu .nav-link {
  display: block;
  padding: var(--space-xl) var(--space-2xl);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.mobile-menu .nav-link:hover {
  background: rgba(147, 51, 234, 0.1);
  color: var(--accent);
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 var(--space-lg);
  }
  
  .legal-page {
    padding: 80px 0 var(--space-5xl);
  }
  
  .legal-content h1 {
    font-size: clamp(32px, 4vw, 48px);
  }
  
  .legal-content h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-top: var(--space-4xl);
  }
  
  .legal-contact {
    padding: var(--space-2xl);
  }
  
  .tools-section {
    padding: 0 var(--space-lg) var(--space-5xl) var(--space-lg);
  }
  
  .tools-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }
  
  .tools-section-header .tags-row {
    justify-content: flex-start;
    width: 100%;
  }
  
  .hero {
    min-height: auto;
    padding-top: 80px;
  }
  
  .hero-content {
    padding: var(--space-4xl) 0;
  }
  
  .hero h1 {
    font-size: clamp(32px, 6vw, 64px);
  }
  
  .hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-icon-preview {
    max-width: 100%;
    padding: 0 var(--space-lg);
  }
  
  .hero-newsletter {
    flex-direction: column;
    max-width: 500px;
    padding: 0 var(--space-lg);
  }
  
  .hero-newsletter .seva-form {
    width: 100%;
  }
  
  .hero-newsletter .formkit-fields {
    flex-wrap: wrap !important;
  }
  
  .hero-newsletter .formkit-field,
  .hero-newsletter .formkit-submit {
    flex-basis: 100% !important;
    margin-right: 0 !important;
  }
  
  .rotating-badge {
    display: none;
  }
  
  /* Hide desktop nav, show mobile toggle */
  .header-row > nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .guides-container {
    gap: var(--space-5xl);
  }
  
  .guides-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
  
  .category-header-content {
    gap: var(--space-lg);
  }
  
  .category-icon {
    width: 48px;
    height: 48px;
  }
  
  .category-info h2 {
    font-size: 24px;
  }
  
  .category-count {
    align-self: flex-start;
  }
  
  .guides-filter {
    gap: var(--space-sm);
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filter-tag {
    font-size: 13px;
    padding: 6px var(--space-lg);
    flex-shrink: 1;
  }

  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form input[type="email"] {
    width: 100%;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .footer-brand {
    align-items: center;
  }
  
  .footer-brand p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .search-shortcut-hint {
    display: none;
  }
  
  .hero-icon-label {
    font-size: 13px;
  }
  
  .hero-icon-label::before,
  .hero-icon-label::after {
    display: none;
  }
  
  .rotating-badge {
    width: 70px;
    height: 70px;
  }
  
  .rotating-text text {
    font-size: 6px;
  }
  
  .badge-icon {
    width: 22px;
    height: 22px;
  }
  
  .badge-icon svg {
    width: 12px;
    height: 12px;
  }
  
  .tools-section {
    padding: 0 var(--space-md) var(--space-4xl) var(--space-md);
  }
  
  .guides-container {
    gap: var(--space-4xl);
  }
  
  .category-header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
  
  .category-icon {
    width: 44px;
    height: 44px;
  }
  
  .category-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .category-info h2 {
    font-size: 22px;
  }
  
  .category-info p {
    font-size: 14px;
  }
  
  .guide-card {
    padding: var(--space-xl);
  }
  
  .guide-card h3 {
    font-size: 18px;
  }
  
  .guide-card p {
    font-size: 14px;
  }
  
  .intro-text {
    font-size: 16px;
    margin-bottom: var(--space-2xl);
  }
  
  .guides-filter {
    justify-content: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .filter-tag {
    font-size: 12px;
    padding: 6px var(--space-md);
    flex-shrink: 1;
  }
}

/* ConvertKit Form Styling */
.seva-form.formkit-form {
  margin-bottom: var(--space-lg);
  margin-left: auto;
  margin-right: auto;
}

/* Force inline layout on all ConvertKit forms (hero + CTA) */
.hero-newsletter .formkit-fields,
.newsletter-text .formkit-fields {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.hero-newsletter .formkit-input,
.hero-newsletter .formkit-submit {
  transition: none !important;
}

.hero-newsletter .formkit-input:hover,
.hero-newsletter .formkit-input:focus,
.hero-newsletter .formkit-submit:hover,
.hero-newsletter .formkit-submit:focus {
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s !important;
}

/* Hide empty error list */
.formkit-alert.formkit-alert-error:empty {
  display: none !important;
}

.formkit-field,
.formkit-submit {
  flex: 1 !important;
}

.formkit-field {
  margin-right: 10px !important;
  flex-basis: 50% !important;
}

.formkit-input {
  width: 100%;
  height: 48px !important;
  padding: 0 var(--space-xl) !important;
  font-size: 16px !important;
  border: 1px solid var(--input-border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--input-bg) !important;
  color: var(--text) !important;
  outline: none !important;
  transition: all var(--transition-base) !important;
  font-weight: 400 !important;
}

.formkit-input:hover {
  border-color: var(--border-hover) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.formkit-input:focus {
  border-color: var(--input-focus-border) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 0 0 3px var(--ring), 0 0 12px var(--input-focus-glow) !important;
}

.formkit-submit,
.seva-form.formkit-form button[data-element="submit"] {
  height: 48px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  background: var(--accent) !important;
  color: var(--bg) !important;
  cursor: pointer !important;
  transition: all var(--transition-base) !important;
  white-space: nowrap !important;
}

.formkit-submit:hover,
.seva-form.formkit-form button[data-element="submit"]:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.formkit-submit:focus-visible,
.seva-form.formkit-form button[data-element="submit"]:focus-visible {
  outline: 2px solid var(--ring) !important;
  outline-offset: 2px !important;
}

.formkit-submit > span {
  padding: 12px 24px !important;
}

/* ConvertKit Error Styling */
.formkit-alert.formkit-alert-error {
  color: #fff !important;
  background-color: maroon !important;
  font-size: 15px;
  margin-top: var(--space-sm);
}

/* Hide empty error list */
.formkit-alert.formkit-alert-error:empty {
  display: none !important;
}

/* Responsive ConvertKit Form */
@media (max-width: 640px) {
  .hero-newsletter .formkit-fields,
  .newsletter-text .formkit-fields {
    flex-wrap: wrap !important;
  }
  
  .formkit-input {
    width: 100% !important;
  }
  
  .formkit-submit,
  .seva-form.formkit-form button[data-element="submit"] {
    width: 100% !important;
  }
}

/* Sponsor Page Styles */
.sponsor-hero .hero-description {
  font-size: 18px;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto var(--space-4xl);
  line-height: 1.6;
}

.sponsor-hero .hero-stats {
  grid-template-columns: repeat(2, 1fr);
  max-width: 500px;
  justify-content: center;
}

.sponsor-features {
  background: var(--bg-secondary) url("/?originalUrl=https%3A%2F%2Fdesign.dev%2Fassets%2Fimg%2Fgradient-bg.jpg") no-repeat center center;
  background-size: cover;
  border-top: none;
  padding: var(--space-6xl) 0;
}

/* Audience Section */
.audience-section {
  padding: var(--space-6xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.section-subtitle {
  font-size: 20px;
  color: var(--muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-4xl);
  line-height: 1.6;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-3xl);
  margin-top: var(--space-4xl);
}

.audience-card {
  padding: var(--space-3xl);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition-base);
}

.audience-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--accent);
}

.audience-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-lg);
}

.audience-card h3 {
  font-size: 24px;
  margin-bottom: var(--space-sm);
}

.audience-card h4 {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: var(--space-xl);
}

.audience-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Sponsor CTA Section */
.sponsor-cta {
  background: var(--bg);
  padding: var(--space-7xl) 0;
  border-top: 1px solid var(--border);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: var(--space-xl);
}

.cta-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: var(--space-4xl);
  line-height: 1.6;
}

.cta-benefits {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-benefits h3 {
  font-size: 20px;
  margin-bottom: var(--space-xl);
}

.cta-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cta-benefits li {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.cta-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cta-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3xl) var(--space-3xl) var(--space-4xl) var(--space-3xl);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-box h3 {
  font-size: 28px;
  margin-bottom: var(--space-xl);
}

.cta-box p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.cta-box strong {
  color: var(--text);
  font-size: 24px;
}

.sponsor-cta .cta-button {
  font-size: 18px;
  padding: 16px 40px;
  margin-top: var(--space-xl);
}

/* Responsive Adjustments for Sponsor Page */
@media (max-width: 768px) {
  .sponsor-hero .hero-stats {
    grid-template-columns: 1fr;
  }
  
  .audience-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-benefits {
    padding: var(--space-2xl);
  }
  
  .cta-box {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

/* ------------------------------------------------------------------
   Video Embed (responsive 16:9)
   ------------------------------------------------------------------ */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin: var(--space-lg, 1.5rem) 0;
  border-radius: 8px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

/* ------------------------------------------------------------------
   Breadcrumbs
   ------------------------------------------------------------------ */
.breadcrumb {
  padding: var(--space-md) 0;
  margin-top: 64px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.breadcrumb a,
.breadcrumb span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.breadcrumb a:hover {
  color: var(--text);
  opacity: 1;
}

.breadcrumb .breadcrumb-sep {
  margin: 0 var(--space-sm);
  color: var(--border);
  font-size: 12px;
  user-select: none;
}

.breadcrumb .breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb + main .hero {
  padding-top: 0;
}

/* ------------------------------------------------------------------
   Tool Footer — Related Content + FAQ
   ------------------------------------------------------------------ */
.tool-footer {
  margin: 0 auto;
  max-width: calc(var(--max-width) - var(--space-xl) * 2);
  width: calc(100% - var(--space-xl) * 2);
  padding-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.tool-footer h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-sm);
  color: var(--text);
}

/* Related Content */
.related-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.related-content-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl);
  text-decoration: none;
  transition: all var(--transition-base);
}

.related-content-card:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  opacity: 1;
}

.related-content-card-text {
  min-width: 0;
}

.related-content-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.related-content-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.related-content-card .arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: all var(--transition-base);
}

.related-content-card:hover .arrow {
  color: var(--text);
  transform: translateX(2px);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-base);
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  transition: all var(--transition-base);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  color: var(--text);
}

.faq-item summary:hover::after {
  color: var(--text);
}

.faq-answer {
  padding: 0 var(--space-sm) var(--space-xl);
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.faq-answer p {
  margin-bottom: var(--space-md);
  color: var(--muted);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--accent-subtle);
}

.faq-answer a {
  color: var(--accent-subtle);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.faq-answer a:hover {
  border-bottom-color: var(--accent-subtle);
  opacity: 1;
}

@media (max-width: 768px) {
  .tool-footer {
    gap: var(--space-3xl);
    padding-top: var(--space-3xl);
  }

  .faq-item summary {
    font-size: 14px;
    padding: var(--space-lg) var(--space-sm);
  }

  .faq-answer {
    font-size: 13px;
    padding: 0 var(--space-sm) var(--space-lg);
  }
}
