/* ── Badlands Design System ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Doto:wght@800&display=swap');

:root {
  --bg: #0c0a0a;
  --surface: #141010;
  --surface-2: #1c1717;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --accent: #e53535;
  --accent-bright: #ff4444;
  --accent-dim: rgba(229,53,53,0.1);
  --accent-border: rgba(229,53,53,0.25);
  --text: #f0eaea;
  --muted: rgba(240,234,234,0.45);
  --muted-2: rgba(240,234,234,0.25);
  --green: #22c55e;
  --yellow: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --font-display: 'Doto', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --radius: 6px;
  --transition: 0.18s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Noise texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(12,10,10,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.logo { height: 28px; display: block; }

/* Desktop nav — always visible, hidden on mobile */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-right a:hover { color: var(--text); }

.nav-right a.active,
.nav-left a.active {
  color: var(--text);
  text-shadow: 0 0 8px rgba(199,3,3,0.8), 0 0 20px rgba(199,3,3,0.4);
}

.nav-right .btn-outline {
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-right .btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
}

/* ── Mobile nav ── */
@media (max-width: 820px) {

  /* Show hamburger, hide desktop nav links */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    width: 40px;
    height: 40px;
    padding: 0;
    position: relative;
    z-index: 301;
  }

  .nav-toggle .bar {
    display: block;
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease, background 0.18s ease;
  }

  .nav-toggle .bar:nth-child(1) { top: 13px; }
  .nav-toggle .bar:nth-child(2) { top: 19px; }
  .nav-toggle .bar:nth-child(3) { top: 25px; }

  .nav-toggle.open .bar { background: var(--text); }
  .nav-toggle.open .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open .bar:nth-child(2) { opacity: 0; }
  .nav-toggle.open .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Slide-in drawer */
  .nav-right {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    min-height: calc(100vh - 60px);
    background: rgba(10,8,8,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow-y: auto;
    border-top: 1px solid var(--border);
    z-index: 299;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .nav-right.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav-right a {
    display: block;
    width: 100%;
    padding: 18px 2rem;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .nav-right a:hover {
    color: var(--text);
    background: rgba(255,255,255,0.03);
  }

  .nav-right .btn-outline {
    margin: 24px 2rem;
    width: calc(100% - 4rem);
    text-align: center;
    padding: 14px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    color: var(--accent);
    background: none;
    font-size: 13px;
  }

  .nav-right .btn-outline:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }

  /* Dim overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 60px 0 0 0;
    background: rgba(0,0,0,0.4);
    z-index: 298;
  }

  .nav-overlay.open { display: block; }
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 80px 2rem 64px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-left a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-left a:hover { color: var(--text); }

.nav-left .btn-outline {
  color: var(--accent);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.nav-left .btn-outline:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.hero-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(229,53,53,0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.1s;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.2s;
}

.hero p {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  max-width: 520px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.3s;
}

/* ── Container ── */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── Section ── */
.section {
  padding: 16px 0 72px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color var(--transition);
}

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

/* ── Grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229,53,53,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ── Code block ── */
.code-block {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.code-block .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-right: 1px solid var(--border);
  padding-right: 10px;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-family: var(--font-mono);
  transition: color var(--transition);
}
.copy-btn:hover { color: var(--accent); }

/* ── Alert / note box ── */
.alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.65;
  color: rgba(240,200,200,0.85);
  max-width: 560px;
}

.alert-box .icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.compare-table th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.compare-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--muted);
  line-height: 1.5;
}

.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table td.good { color: var(--green); }
.compare-table td.bad  { color: var(--red);   }
.compare-table tr:last-child td { border-bottom: none; }

/* ── Steps (timeline) ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 20px 0 72px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 24px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.step:nth-child(1) { animation-delay: 0.35s; }
.step:nth-child(2) { animation-delay: 0.45s; }
.step:nth-child(3) { animation-delay: 0.55s; }
.step:nth-child(4) { animation-delay: 0.65s; }

.step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 1px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin: 6px 0;
  min-height: 32px;
}

.step:last-child .step-line { display: none; }

.step-content { padding-bottom: 40px; }
.step:last-child .step-content { padding-bottom: 0; }

.step-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  padding-top: 10px;
  display: block;
  opacity: 0.7;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.step-content p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 4px;
  max-width: 520px;
}

/* ── FAQ accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.faq-item:nth-child(1) { animation-delay: 0.3s; }
.faq-item:nth-child(2) { animation-delay: 0.38s; }
.faq-item:nth-child(3) { animation-delay: 0.46s; }
.faq-item:nth-child(4) { animation-delay: 0.54s; }
.faq-item:nth-child(5) { animation-delay: 0.62s; }
.faq-item:nth-child(6) { animation-delay: 0.70s; }
.faq-item:last-child { border-bottom: none; }

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: background var(--transition);
  gap: 16px;
}

.faq-q:hover { background: var(--surface-2); }

.faq-q .chevron {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

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

.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: -1px;
}

.faq-item.open .faq-a { display: block; }

/* ── Status cards ── */
.status-group-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 32px 0 12px;
}

.status-group-title:first-child { margin-top: 0; }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-header h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  gap: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

.meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* ── Sparkline ── */
.sparkline-container { position: relative; }

.sparkline {
  width: 100%;
  height: 40px;
  display: block;
}

.sparkline-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawLine 1.2s ease forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--muted-2);
  margin-top: 3px;
  letter-spacing: 0.06em;
}

/* ── Responsive image ── */
.responsive {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 16px;
  display: block;
  opacity: 0.85;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ── Client links ── */
.client-links {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.client-links a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}

.client-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Hero CTA buttons ── */
.hero-btns {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.4s;
}

/* ── Section heading ── */
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subheading {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 480px;
}

/* ── Prose ── */
.prose p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 620px;
}

.prose strong { color: var(--text); font-weight: 500; }

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.2s;
}


/* ── Info / warn / tip boxes ── */
.info-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}

.info-box-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 10px;
  display: block;
}

.warn-box {
  background: rgba(229,53,53,0.06);
  border: 1px solid rgba(229,53,53,0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.warn-box svg { flex-shrink: 0; margin-top: 2px; }
.warn-box p  { font-size: 12px; color: rgba(240,200,200,0.85); line-height: 1.7; margin: 0; }

.tip-box {
  background: rgba(34,197,94,0.05);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tip-box svg { flex-shrink: 0; margin-top: 2px; }
.tip-box p   { font-size: 12px; color: rgba(200,240,210,0.85); line-height: 1.7; margin: 0; }

/* ── Contact page ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
@media (max-width: 620px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-card:hover { border-color: var(--border-hover); }
.contact-card .c-icon { font-size: 22px; line-height: 1; }
.contact-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.contact-card p  { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; flex: 1; }
.contact-card .c-tag { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent-border); }
.form-group select option { background: #1c1717; }
.form-group textarea { min-height: 120px; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-footer p { font-size: 11px; color: var(--muted-2); margin: 0; line-height: 1.6; }

#form-success {
  display: none;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(200,240,210,0.85);
  margin-top: 16px;
  line-height: 1.6;
}
#form-error {
  display: none;
  background: rgba(229,53,53,0.06);
  border: 1px solid rgba(229,53,53,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 13px;
  color: rgba(240,200,200,0.85);
  margin-top: 16px;
  line-height: 1.6;
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.divider-label::before,
.divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Illustration frames ── */
.illustration {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

/* ── Troubleshoot grid ── */
.trouble-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.trouble-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.trouble-card h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.trouble-card p { font-size: 11px; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 540px) { .trouble-grid { grid-template-columns: 1fr; } }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 60px 1.25rem 48px; }
  .container, .container-wide { padding: 0 1.25rem; }
  .steps { padding: 16px 1.25rem 60px; }
  .step { grid-template-columns: 44px 1fr; gap: 0 14px; }
  .grid { grid-template-columns: 1fr; }
}

/* ── Legal / doc pages (ToS, Privacy) ── */
.doc-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 2rem 80px;
}

@media (max-width: 640px) {
  .doc-content { padding: 8px 1.25rem 60px; }
}

.hero-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  opacity: 0;
  animation: fadeUp 0.55s ease forwards 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-badge {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.expand-all-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color var(--transition), border-color var(--transition);
}
.expand-all-btn:hover { color: var(--text); border-color: var(--border-hover); }

.doc-section {
  margin-bottom: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}
.doc-section:nth-child(1)  { animation-delay: 0.30s; }
.doc-section:nth-child(2)  { animation-delay: 0.35s; }
.doc-section:nth-child(3)  { animation-delay: 0.40s; }
.doc-section:nth-child(4)  { animation-delay: 0.45s; }
.doc-section:nth-child(5)  { animation-delay: 0.50s; }
.doc-section:nth-child(6)  { animation-delay: 0.55s; }
.doc-section:nth-child(7)  { animation-delay: 0.60s; }
.doc-section:nth-child(8)  { animation-delay: 0.65s; }
.doc-section:nth-child(9)  { animation-delay: 0.70s; }
.doc-section:nth-child(10) { animation-delay: 0.75s; }
.doc-section:nth-child(11) { animation-delay: 0.80s; }
.doc-section:nth-child(12) { animation-delay: 0.85s; }
.doc-section:nth-child(13) { animation-delay: 0.90s; }
.doc-section:nth-child(14) { animation-delay: 0.95s; }
.doc-section:nth-child(15) { animation-delay: 1.00s; }

.doc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  cursor: pointer;
  user-select: none;
  gap: 12px;
  transition: background var(--transition);
}
.doc-section-header:hover { background: var(--surface-2); }

.doc-section-num {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.doc-section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}

.doc-section-chevron {
  color: var(--muted);
  font-size: 16px;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}
.doc-section.open .doc-section-chevron { transform: rotate(45deg); }

.doc-section-body {
  display: none;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.doc-section.open .doc-section-body { display: block; }

.doc-section-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.doc-section-body p:last-child { margin-bottom: 0; }

.doc-section-body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-section-body ul li {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}
.doc-section-body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 11px;
}
.doc-section-body strong { color: var(--text); font-weight: 500; }

/* Changelog block */
.changelog {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 1.05s;
}
.changelog-header {
  padding: 14px 20px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.changelog-body {
  padding: 16px 20px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.changelog-entry {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.changelog-ver {
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  width: 32px;
  font-family: var(--font-mono);
}

/* ── Support page ── */
.support-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 2rem 80px;
}
@media (max-width: 640px) { .support-content { padding: 8px 1.25rem 60px; } }

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.35s;
  transition: border-color var(--transition);
}
.support-card:hover { border-color: var(--border-hover); }

.kofi-icon { font-size: 40px; margin-bottom: 16px; display: block; }

.support-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.support-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.btn-kofi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-kofi:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229,53,53,0.3);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 540px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
  transition: border-color var(--transition);
}
.info-card:hover { border-color: var(--border-hover); }
.info-card:nth-child(1) { animation-delay: 0.45s; }
.info-card:nth-child(2) { animation-delay: 0.52s; }
.info-card:nth-child(3) { animation-delay: 0.59s; }
.info-card:nth-child(4) { animation-delay: 0.66s; }

.info-card .ic-icon { font-size: 20px; margin-bottom: 10px; display: block; }
.info-card h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 12px; color: var(--muted); line-height: 1.65; }

.cost-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 4px 0;
}
.cost-table tr { border-bottom: 1px solid var(--border); }
.cost-table tr:last-child { border-bottom: none; }
.cost-table td { padding: 9px 0; color: var(--muted); }
.cost-table td:first-child { color: var(--text); width: 60%; }
.cost-table td:last-child { text-align: right; font-family: var(--font-mono); color: var(--accent); }

.disclaimer {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.75s;
}
.disclaimer strong { color: var(--text); font-weight: 500; }