/* Kapow Download Page Styles
   Design system: Void #0A0A0F bg, Surface #111118 cards, Yellow #FFD60A accent, Inter font */

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

:root {
  --void: #0A0A0F;
  --surface: #111118;
  --surface-hover: #18181F;
  --border: #1E1E28;
  --border-light: #2A2A35;
  --text: #F5F5F7;
  --text-muted: #A1A1AA;
  --text-dim: #71717A;
  --accent: #FFD60A;
  --accent-hover: #E6C009;
  --accent-muted: rgba(255, 214, 10, 0.15);
  --success: #22C55E;
  --danger: #EF4444;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* --- Navigation (shared with homepage) --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--accent); }

.nav-signin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav-signin:hover { color: var(--text); }
.nav-signin-icon { width: 18px; height: 18px; }

/* Nav auth signed-in state */
.nav-avatar-wrapper {
  position: relative;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s;
  border: 2px solid transparent;
  overflow: hidden;
}

.nav-avatar:hover { border-color: var(--accent); }

.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 180px;
  padding: 8px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 200;
}

.nav-avatar-wrapper.open .nav-dropdown { display: block; }

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-muted);
  transition: background 0.1s, color 0.1s;
  cursor: pointer;
}

.nav-dropdown-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-dropdown-plan {
  font-size: 13px;
  color: var(--text-dim);
}

.nav-dropdown-plan span { color: var(--accent); font-weight: 600; }

.nav-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.nav-dropdown-signout { color: var(--danger); }
.nav-dropdown-signout:hover { color: var(--danger); }

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: 0.2s;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--void);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--text-dim);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* --- Containers --- */
.dl-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.dl-container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Hero Section --- */
.dl-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

.dl-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.dl-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255, 214, 10, 0.08) 0%, transparent 70%);
  filter: blur(60px);
}

.dl-hero-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.dl-hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.dl-hero-btn {
  margin-bottom: 16px;
}

.dl-hero-meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Sections --- */
.dl-section {
  padding: 80px 0;
}

.dl-section-alt {
  background: var(--surface);
}

.dl-section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 12px;
}

.dl-section-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 48px;
}

/* --- What You Need --- */
.dl-needs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.dl-need-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}

.dl-section-alt .dl-need-card {
  background: var(--void);
}

.dl-need-icon {
  margin-bottom: 20px;
}

.dl-need-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.dl-need-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.dl-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dl-need-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.dl-need-badge-free {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

.dl-need-badge-required {
  background: rgba(167, 139, 250, 0.12);
  color: #A78BFA;
}

/* --- Getting Started Steps --- */
.dl-steps {
  max-width: 600px;
  margin: 0 auto;
}

.dl-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.dl-step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-step-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.dl-step-content p {
  font-size: 14px;
  color: var(--text-muted);
}

.dl-step-connector {
  width: 2px;
  height: 32px;
  background: var(--border);
  margin-left: 23px;
}

/* --- Billing Toggle --- */
.dl-billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.dl-billing-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dl-billing-label-active {
  color: var(--text);
}

.dl-billing-save {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--void);
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.02em;
}

.dl-billing-switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.dl-billing-switch:hover {
  border-color: var(--text-dim);
}

.dl-billing-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}

.dl-billing-switch-on {
  background: var(--accent-muted);
  border-color: var(--accent);
}

.dl-billing-switch-on .dl-billing-switch-thumb {
  transform: translateX(22px);
  background: var(--accent);
}

/* --- Pricing Cards --- */
.dl-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.dl-pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.dl-pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(255, 214, 10, 0.08);
}

.dl-pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--void);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.dl-pricing-header {
  margin-bottom: 24px;
}

.dl-pricing-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dl-pricing-price {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.dl-pricing-period {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dim);
}

.dl-pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
}

.dl-pricing-yearly {
  font-size: 13px;
  color: var(--accent);
  margin-top: 4px;
}

.dl-pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.dl-pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dl-pricing-feature:last-child { border-bottom: none; }

.dl-pricing-feature::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background: var(--success);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  -webkit-mask-size: contain;
}

.dl-pricing-feature-highlight {
  color: var(--accent);
  font-weight: 600;
}

.dl-pricing-cta {
  width: 100%;
  text-align: center;
}

/* --- FAQ --- */
.dl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dl-faq-item {
  background: var(--surface);
}

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

.dl-faq-question:hover { color: var(--accent); }

.dl-faq-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--text-dim);
}

.dl-faq-question[aria-expanded="true"] .dl-faq-chevron {
  transform: rotate(180deg);
}

.dl-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.dl-faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Open Source --- */
.dl-opensource {
  padding: 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dl-opensource-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.dl-opensource-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 440px;
  margin-bottom: 8px;
}

/* --- Footer --- */
.dl-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

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

.dl-footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.dl-footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  padding: 4px 0;
  transition: color 0.15s;
}

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

.dl-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.dl-footer-bottom p {
  font-size: 13px;
  color: var(--text-dim);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }

  .dl-hero { padding: 120px 0 60px; }
  .dl-hero-title { font-size: 32px; }
  .dl-hero-subtitle { font-size: 16px; }

  .dl-needs-grid { grid-template-columns: 1fr; }

  .dl-pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .dl-pricing-card-featured { order: -1; }

  .dl-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dl-footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  .dl-section-title { font-size: 26px; }
}

@media (max-width: 480px) {
  .dl-hero-title { font-size: 28px; }
  .dl-step { gap: 16px; }
  .dl-step-number { width: 40px; height: 40px; min-width: 40px; font-size: 16px; }
  .dl-footer-grid { grid-template-columns: 1fr; }
}
