/* ============================================================
   MieterGuard — Shared Stylesheet
   Dark premium SaaS, amber accent, Frankfurt vibes
   ============================================================ */

/* ── Custom Properties ────────────────────────────────────── */
:root {
  --bg:           #0C1929;
  --surface:      #132035;
  --surface-alt:  #0F1C2E;
  --accent:       #D97706;
  --accent-dark:  #B45309;
  --accent-faint: #2D1800;
  --primary:      #2A5FA8;
  --primary-dark: #0D2845;
  --primary-muted:#0F2040;
  --text:         #E4EEF8;
  --text-sec:     #7090AA;
  --text-muted:   #4A6070;
  --border:       #1C3050;
  --border-light: #182840;
  --success:      #10B981;
  --success-bg:   #042818;
  --error:        #EF4444;
  --purple:       #A78BFA;
  --purple-bg:    #130F1E;

  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --transition:   0.2s ease;
  --max-w:        1100px;
  --font:         system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-sec);
  max-width: 560px;
  line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 25, 41, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo svg {
  width: 28px;
  height: 28px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}
.nav-cta {
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  gap: 4px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 10px 12px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-mobile-menu a:hover { color: var(--text); background: var(--surface); }
.nav-mobile-menu .btn-primary { margin-top: 8px; text-align: center; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.35);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.5);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled, .btn-primary.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--text-sec);
  background: var(--surface);
  color: var(--text);
}
.btn-secondary:disabled, .btn-secondary.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.badge-accent {
  background: var(--accent-faint);
  color: var(--accent);
  border: 1px solid rgba(217, 119, 6, 0.25);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.badge-popular {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-size: 11px;
  padding: 3px 10px;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(42, 95, 168, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--text-sec);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 40px;
}
.hero-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.hero-form input[type="email"]::placeholder { color: var(--text-muted); }
.hero-form input[type="email"]:focus { border-color: var(--accent); }
.form-message {
  font-size: 14px;
  margin-top: -28px;
  margin-bottom: 12px;
  min-height: 20px;
}
.form-message.success { color: var(--success); }
.form-message.error { color: var(--error); }
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}
.hero-stat {
  font-size: 13px;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-stat-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Steps (Wie's funktioniert) ───────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.step-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.step-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Feature Cards ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 48px auto 0;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.15), 0 8px 40px rgba(217, 119, 6, 0.1);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(45, 24, 0, 0.4) 100%);
}
.pricing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.pricing-price {
  margin-bottom: 8px;
}
.pricing-price-main {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.pricing-price-sub {
  font-size: 13px;
  color: var(--text-sec);
  margin-top: 6px;
  line-height: 1.5;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  margin-bottom: 28px;
}
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-sec);
}
.pricing-check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}
.pricing-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  text-align: center;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition);
  gap: 16px;
}
.faq-question:hover { background: var(--surface-alt); }
.faq-question.open { background: var(--surface-alt); }
.faq-chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-sec);
  transition: transform 0.25s ease;
}
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
  background: var(--surface-alt);
}
.faq-answer.open { display: block; }

/* ── Affiliate Hint ───────────────────────────────────────── */
.affiliate-hint-section {
  padding: 0 0 64px;
}
.affiliate-banner {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.affiliate-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 18px;
}
.affiliate-banner-body {
  flex: 1;
}
.affiliate-banner-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.affiliate-banner-body p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0;
}
.affiliate-banner-body a {
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}
.affiliate-banner-body a:hover { opacity: 0.8; }

/* ── Blog Cards ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  border-color: rgba(255,255,255,0.1);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.blog-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  background: var(--primary-muted);
  color: #60A5FA;
}
.blog-tag.tag-mietminderung  { background: rgba(239,68,68,0.1);  color: #F87171; }
.blog-tag.tag-mieterhoehung  { background: rgba(249,115,22,0.15); color: #FB923C; }
.blog-tag.tag-betriebskosten { background: rgba(16,185,129,0.1); color: #34D399; }
.blog-tag.tag-uebergabe { background: rgba(167,139,250,0.1); color: var(--purple); }
.blog-tag.tag-kuendigung  { background: rgba(245,158,11,0.1); color: #FCD34D; }
.blog-tag.tag-kaution     { background: rgba(16,185,129,0.1); color: #34D399; }
.blog-tag.tag-schoenheit  { background: rgba(251,191,36,0.1); color: #FBBF24; }
.blog-read-time {
  font-size: 12px;
  color: var(--text-muted);
}
.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}
.blog-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.blog-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  transition: gap var(--transition);
}
.blog-card:hover .blog-card-link { gap: 8px; }
.blog-see-all {
  text-align: center;
  margin-top: 32px;
}
.blog-see-all a {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}
.blog-see-all a:hover { opacity: 0.8; }

/* ── Tag Filter (blog index) ──────────────────────────────── */
.tag-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.tag-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-sec);
  cursor: pointer;
  transition: all var(--transition);
}
.tag-filter-btn:hover, .tag-filter-btn.active {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-sec);
}
.tag-filter-btn.active {
  background: var(--accent-faint);
  color: var(--accent);
  border-color: rgba(217,119,6,0.4);
}

/* ── Article Layout ───────────────────────────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
  padding: 56px 0 96px;
}
.article-content {
  min-width: 0;
}
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.article-read-time {
  font-size: 13px;
  color: var(--text-muted);
}
.article-content h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
}
.article-lead {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 16px;
}
.article-meta-bottom {
  font-size: 13px;
  color: var(--text-muted);
}
.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
  line-height: 1.3;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 16px;
}
.article-body ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-left: 4px;
}
.article-body ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}
.article-body ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 9px;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body .legal-ref {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--primary-muted);
  color: #60A5FA;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.affiliate-hint {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin: 36px 0;
}
.affiliate-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.affiliate-hint a {
  color: var(--accent);
  font-weight: 500;
  margin-left: 4px;
}
.affiliate-hint a:hover { opacity: 0.8; }
.affiliate-hint p, .affiliate-hint > div > p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 4px 0 0;
}
.article-app-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-faint) 100%);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}
.article-app-cta h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.article-app-cta p {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ── Article Sidebar ──────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-toc h4, .sidebar-app-card h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sidebar-toc nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-toc nav a {
  font-size: 13px;
  color: var(--text-sec);
  padding: 5px 8px;
  border-radius: 5px;
  border-left: 2px solid transparent;
  line-height: 1.4;
  transition: all var(--transition);
}
.sidebar-toc nav a:hover {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--surface-alt);
  padding-left: 12px;
}
.sidebar-app-card {
  background: var(--surface);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.sidebar-app-card p {
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.6;
  margin-bottom: 16px;
}
.sidebar-app-card .btn-primary {
  width: 100%;
  font-size: 13px;
  padding: 10px 16px;
}

/* ── Final CTA ────────────────────────────────────────────── */
.final-cta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 96px 0;
  text-align: center;
}
.final-cta-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 32px auto 0;
}
.final-cta-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition);
}
.final-cta-form input[type="email"]::placeholder { color: var(--text-muted); }
.final-cta-form input[type="email"]:focus { border-color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--text-sec);
  margin-top: 12px;
  max-width: 220px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col ul li a {
  font-size: 14px;
  color: var(--text-sec);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Blog Hero ────────────────────────────────────────────── */
.blog-hero {
  padding: 72px 0 56px;
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .hero-form { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .final-cta-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; margin: 32px 24px 0; }
  .affiliate-banner { flex-direction: column; }
  .faq-question { padding: 16px 20px; }
  .faq-answer { padding: 0 20px 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .pricing-card { padding: 24px; }
}

/* ── Smooth transitions misc ─────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: rgba(217, 119, 6, 0.25);
  color: var(--text);
}

/* ── Legal / Simple Pages ─────────────────────────────────── */
.legal-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.back-link:hover { color: var(--text-sec); }
.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal-h1 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  color: var(--text);
}
.stand {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}
.block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 10px;
}
.block.highlight {
  background: var(--success-bg);
  border-color: var(--success);
}
.block-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 10px;
}
.block.highlight .block-heading { color: var(--success); }
.block > p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.75;
  white-space: pre-line;
}
.block a { color: var(--accent); }
.block a:hover { text-decoration: underline; }
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.price-card {
  background: rgba(217,119,6,0.08);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 10px;
  padding: 14px 16px;
}
.price-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}
.price-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}
.price-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.legal-footer {
  border-top: 1px solid var(--border-light);
  padding: 28px 24px;
}
.legal-footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legal-footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}
.legal-footer-links {
  display: flex;
  gap: 20px;
}
.legal-footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}
.legal-footer-links a:hover { color: var(--text-sec); }
@media (max-width: 600px) {
  .legal-main { padding: 40px 20px 64px; }
  .legal-footer-inner { flex-direction: column; }
  .price-grid { grid-template-columns: 1fr; }
}
