/* Attorney · Download page */

.page-download .site-main {
  max-width: 960px;
  padding-top: clamp(24px, 4vw, 40px);
  padding-bottom: clamp(48px, 8vw, 80px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Empty state ──────────────────────────────────────────── */

.dl-empty {
  text-align: center;
  padding: clamp(48px, 10vw, 96px) var(--space-5);
  max-width: 28rem;
  margin: 0 auto;
}

.dl-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  color: var(--accent-brand);
  background: rgba(139, 157, 200, 0.1);
  border: 1px solid rgba(139, 157, 200, 0.2);
}

.dl-empty__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.dl-empty__text {
  margin: 0 0 var(--space-6);
  color: var(--lumen-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* ── Pills ────────────────────────────────────────────────── */

.dl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--lumen-hairline);
  background: var(--lumen-graphite);
  font-size: 11px;
  font-weight: 500;
  color: var(--lumen-muted);
  white-space: nowrap;
}

.dl-pill--live {
  border-color: rgba(16, 185, 129, 0.35);
  background: var(--success-soft);
  color: #047857;
}

.dl-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(110, 231, 183, 0.5);
}

/* ── Hero panel ───────────────────────────────────────────── */

.dl-hero {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.dl-hero__panel {
  display: grid;
  gap: var(--space-6);
  padding: clamp(24px, 4vw, 36px);
  border-radius: 20px;
  border: 1px solid rgba(139, 157, 200, 0.2);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(59, 130, 246, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(139, 157, 200, 0.08), transparent 50%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    var(--lumen-panel);
  box-shadow: var(--inset-rim), 0 24px 64px rgba(0, 0, 0, 0.4);
}

@media (min-width: 800px) {
  .dl-hero__panel {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.dl-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.dl-hero__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dl-hero__title span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dl-hero__desc {
  margin: 0 0 var(--space-6);
  max-width: 42ch;
  color: var(--lumen-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

.dl-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}

/* Primary download button — uiverse-inspired */
.dl-btn-download {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 360px;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 157, 200, 0.35);
  background: linear-gradient(135deg, rgba(139, 157, 200, 0.95) 0%, #a8b8d8 100%);
  color: var(--lumen-void);
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(139, 157, 200, 0.35), var(--inset-rim);
  transition: transform var(--duration-fast) var(--ease-lumen), box-shadow var(--duration-normal);
}

.dl-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 157, 200, 0.45), var(--inset-rim);
}

.dl-btn-download:active {
  transform: translateY(0);
}

.dl-btn-download__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.dl-btn-download__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.dl-btn-download__text strong {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}

.dl-btn-download__text small {
  font-size: var(--text-xs);
  opacity: 0.75;
  font-weight: 500;
}

.dl-hero__alt {
  font-size: var(--text-sm);
  color: var(--accent-brand);
  text-decoration: none;
  transition: color var(--duration-fast);
}

.dl-hero__alt:hover {
  color: #c8d4e8;
  text-decoration: underline;
}

/* Spec card */
.dl-spec {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lumen-hairline);
  background: var(--lumen-graphite);
}

.dl-spec__label {
  margin: 0 0 var(--space-4);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lumen-muted);
}

.dl-spec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: 0;
}

.dl-spec__item dt {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--lumen-muted);
}

.dl-spec__item dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--lumen-foreground);
}

.dl-trust {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.dl-trust li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--lumen-muted);
}

.dl-trust svg {
  color: var(--accent-brand);
  flex-shrink: 0;
}

/* ── Section headers ──────────────────────────────────────── */

.dl-section-head {
  margin-bottom: var(--space-6);
  text-align: center;
}

@media (min-width: 640px) {
  .dl-section-head {
    text-align: left;
  }
}

.dl-section-head__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dl-section-head__desc {
  margin: 0;
  color: var(--lumen-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 48ch;
}

/* ── Build cards ──────────────────────────────────────────── */

.dl-builds {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.dl-builds__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .dl-builds__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }
}

.dl-build {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lumen-hairline);
  background: var(--lumen-panel);
  box-shadow: var(--inset-rim);
  transition: border-color var(--duration-normal), box-shadow var(--duration-normal);
}

.dl-build:hover {
  border-color: rgba(139, 157, 200, 0.28);
}

.dl-build--primary {
  border-color: rgba(139, 157, 200, 0.3);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(59, 130, 246, 0.08), transparent 60%),
    var(--lumen-panel);
}

.dl-build__tag {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lumen-void);
  background: linear-gradient(135deg, var(--accent-brand), #a8b8d8);
}

.dl-build--deprecated {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.06) 0%, var(--lumen-panel) 55%);
}

.dl-build__tag--warn {
  color: #92400e;
  background: var(--warning-soft);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.dl-build__frozen {
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dl-build__head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-right: 80px;
}

.dl-build__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--accent-brand);
  background: var(--accent-muted);
  border: 1px solid rgba(99, 102, 241, 0.22);
}

.dl-build__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.dl-build__file {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lumen-muted);
}

.dl-build__hint {
  margin: 0 0 var(--space-4);
  flex: 1;
  font-size: var(--text-sm);
  color: var(--lumen-muted);
  line-height: 1.6;
}

.dl-build__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--lumen-hairline);
  background: var(--lumen-graphite);
}

.dl-build__stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dl-build__stats dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lumen-muted);
}

.dl-build__stats dd {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--lumen-foreground);
}

.dl-build__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.dl-build__btn {
  flex: 1;
  min-width: 120px;
}

.dl-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--lumen-hairline);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--lumen-muted);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}

.dl-copy-btn:hover {
  color: var(--lumen-foreground);
  border-color: var(--lumen-hairline-strong);
  background: rgba(255, 255, 255, 0.03);
}

.dl-copy-btn__label {
  display: none;
}

@media (min-width: 480px) {
  .dl-copy-btn__label {
    display: inline;
  }
}

/* ── Install guide ────────────────────────────────────────── */

.dl-guide {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.dl-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .dl-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }
}

.dl-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lumen-hairline);
  background: rgba(255, 255, 255, 0.02);
}

@media (min-width: 768px) {
  .dl-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: calc(-1 * var(--space-5) / 2 - 6px);
    width: 12px;
    height: 1px;
    background: var(--lumen-hairline-strong);
    transform: translateY(-50%);
  }
}

.dl-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-brand);
  background: rgba(139, 157, 200, 0.12);
  border: 1px solid rgba(139, 157, 200, 0.25);
}

.dl-step__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
}

.dl-step__text {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--lumen-muted);
  line-height: 1.6;
}

.dl-step__text code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--lumen-graphite);
  color: var(--lumen-foreground);
}

/* ── Detail cards ─────────────────────────────────────────── */

.dl-details {
  margin-bottom: clamp(48px, 8vw, 72px);
}

.dl-details__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .dl-details__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }
}

.dl-detail-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lumen-hairline);
  background: var(--lumen-panel);
  box-shadow: var(--inset-rim);
}

.dl-detail-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  color: var(--accent-brand);
  background: rgba(139, 157, 200, 0.1);
  border: 1px solid rgba(139, 157, 200, 0.2);
}

.dl-detail-card__title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
}

.dl-detail-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.dl-detail-card__list li {
  font-size: var(--text-sm);
  color: var(--lumen-muted);
  line-height: 1.55;
}

.dl-detail-card__list strong {
  color: var(--lumen-foreground);
  font-weight: 600;
}

.dl-detail-card__paths-label {
  margin: var(--space-4) 0 var(--space-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lumen-muted);
}

.dl-detail-card__paths {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.dl-detail-card__paths code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--lumen-foreground);
  background: var(--lumen-graphite);
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-all;
}

/* ── FAQ (download page uses shared .site-faq from site.css) ─ */

@media (min-width: 640px) {
  .dl-faq__list {
    margin: 0;
  }
}

/* ── Help band ────────────────────────────────────────────── */

.dl-help__inner {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 157, 200, 0.2);
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(139, 157, 200, 0.1), transparent 60%),
    var(--lumen-panel);
  text-align: center;
}

.dl-help__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}

.dl-help__text {
  margin: 0 0 var(--space-5);
  color: var(--lumen-muted);
  font-size: var(--text-sm);
}

.dl-help__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

/* ── Toast ────────────────────────────────────────────────── */

.dl-toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(139, 157, 200, 0.35);
  background: rgba(17, 17, 20, 0.95);
  backdrop-filter: blur(12px);
  color: var(--lumen-foreground);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.dl-toast[hidden] {
  display: none;
}
