/* ==========================================================================
   Install page — redesigned
   ========================================================================== */

/* ──────────────────────────────────────────────────────────────────────────
   HERO — split layout with command preview
   ────────────────────────────────────────────────────────────────────────── */
.install-hero {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
}
.install-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 980px) {
  .install-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.install-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 1rem 0 1.5rem;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.install-hero .lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 48ch;
}

.install-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.install-hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.install-hero-meta-item svg { color: var(--accent-teal); flex-shrink: 0; }

/* Floating hero card with the actual command */
.install-hero-card {
  background: linear-gradient(165deg, #0c1426 0%, #0a1020 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(94, 234, 212, 0.08);
  position: relative;
}
.install-hero-card-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}
.install-hero-card-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.install-hero-card-bar .dot.r { background: #f87171; }
.install-hero-card-bar .dot.y { background: #fbbf24; }
.install-hero-card-bar .dot.g { background: #22c55e; }
.install-hero-card-bar .title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.install-hero-card-body {
  padding: 1.5rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.85;
}
.install-hero-card-line { display: flex; gap: 0.85rem; }
.install-hero-card-line .prompt { color: var(--accent-green-bright); font-weight: 600; user-select: none; }
.install-hero-card-line .cmd { color: var(--text-primary); }
.install-hero-card-line .out { color: var(--text-muted); }
.install-hero-card-line .ok { color: var(--accent-green-bright); }
.install-hero-card-cursor {
  display: inline-block;
  width: 9px;
  height: 1em;
  background: var(--accent-teal);
  vertical-align: -2px;
  margin-left: 4px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* ──────────────────────────────────────────────────────────────────────────
   METHOD PICKER — big card grid, not pill tabs
   ────────────────────────────────────────────────────────────────────────── */
.method-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 4rem;
}
@media (max-width: 720px) {
  .method-picker { grid-template-columns: 1fr; }
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--d-mid) var(--ease-out);
  font-family: var(--font-body);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}
.method-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.method-card.active {
  border-color: var(--accent-teal);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.06), rgba(34, 197, 94, 0.04));
  box-shadow: 0 0 0 1px rgba(94, 234, 212, 0.25), 0 12px 36px rgba(94, 234, 212, 0.1);
}
.method-card.active::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060912' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

.method-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.18);
  color: var(--accent-teal);
}
.method-card.active .method-card-icon {
  background: rgba(94, 234, 212, 0.15);
  border-color: rgba(94, 234, 212, 0.35);
}

.method-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.method-card-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}
.method-card-time {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-teal);
  letter-spacing: 0.06em;
  padding-top: 0.5rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   METHOD PANEL
   ────────────────────────────────────────────────────────────────────────── */
.method-panel { display: none; animation: panelIn 0.4s var(--ease-out); }
.method-panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ──────────────────────────────────────────────────────────────────────────
   TIMELINE STEPS — vertical line, numbered nodes
   ────────────────────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding-left: 80px;
}
@media (max-width: 720px) { .timeline { padding-left: 56px; } }

/* The vertical connecting line */
.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: linear-gradient(180deg,
    var(--accent-teal) 0%,
    rgba(94, 234, 212, 0.3) 40%,
    rgba(94, 234, 212, 0.15) 100%);
}
@media (max-width: 720px) { .timeline::before { left: 16px; } }

.t-step {
  position: relative;
  padding: 0 0 4rem;
}
.t-step:last-child { padding-bottom: 0; }

/* Numbered circle node */
.t-step::before {
  content: attr(data-step);
  position: absolute;
  left: -80px;
  top: 4px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-base), 0 0 24px rgba(94, 234, 212, 0.25);
}
@media (max-width: 720px) {
  .t-step::before {
    left: -56px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    box-shadow: 0 0 0 4px var(--bg-base), 0 0 18px rgba(94, 234, 212, 0.2);
  }
}

.t-step-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 0.4rem;
}

.t-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  line-height: 1.15;
}
.t-step > p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}
.t-step code {
  font-size: 0.85em;
}

/* Code blocks with copy button positioned cleanly */
.t-step pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  padding-right: 5rem; /* room for copy button */
  margin: 1.25rem 0;
  position: relative;
  font-size: 0.85rem;
}

/* Notes (info / warning) */
.note {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  background: rgba(94, 234, 212, 0.04);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 1.25rem 0;
}
.note strong { color: var(--text-primary); font-weight: 600; }
.note svg { flex-shrink: 0; margin-top: 2px; color: var(--accent-teal); }
.note.warn {
  background: rgba(251, 191, 36, 0.04);
  border-color: rgba(251, 191, 36, 0.25);
  border-left-color: #fbbf24;
}
.note.warn svg { color: #fbbf24; }
.note.warn strong { color: #fbbf24; }

/* Sub-step rows inside the wizard step */
.substeps {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}
.substep {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  align-items: flex-start;
  transition: border-color var(--d-fast) var(--ease-out);
}
.substep:hover { border-color: var(--border-accent); }
.substep-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-teal);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.substep-body strong {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.2rem;
}
.substep-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ──────────────────────────────────────────────────────────────────────────
   REQUIREMENTS — visual chips, not a table
   ────────────────────────────────────────────────────────────────────────── */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.req-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--d-mid) var(--ease-out);
}
.req-card:hover { border-color: var(--border-accent); }

.req-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.req-card-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-teal);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.req-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.25rem 0;
}
.req-row .label {
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.req-row .value {
  color: var(--text-primary);
  font-weight: 500;
}
.req-row.rec .value {
  color: var(--accent-teal);
}

/* Stack of verified platforms */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 3rem;
  padding: 1.5rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.platforms-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.5rem;
  align-self: center;
}
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(94, 234, 212, 0.06);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.platform-chip::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green-bright);
  box-shadow: 0 0 6px var(--accent-green-bright);
}

/* ──────────────────────────────────────────────────────────────────────────
   TROUBLESHOOTING — accordion
   ────────────────────────────────────────────────────────────────────────── */
.tshoot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tshoot details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--d-fast) var(--ease-out);
}
.tshoot details[open] {
  border-color: var(--border-accent);
  background: rgba(94, 234, 212, 0.03);
}
.tshoot summary {
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
  letter-spacing: -0.01em;
}
.tshoot summary::-webkit-details-marker { display: none; }
.tshoot summary:hover { background: var(--bg-hover); }
.tshoot details[open] summary:hover { background: transparent; }
.tshoot summary::before {
  content: '?';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  color: var(--accent-teal);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tshoot summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent-teal);
  transition: transform var(--d-fast) var(--ease-out);
  line-height: 1;
}
.tshoot details[open] summary::after {
  content: '−';
  color: var(--accent-teal);
}
.tshoot-body {
  padding: 0 1.4rem 1.4rem 4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}
.tshoot-body p:first-child { margin-top: 0; }
.tshoot-body p:last-child { margin-bottom: 0; }
.tshoot-body ul, .tshoot-body ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
.tshoot-body li { margin-bottom: 0.4rem; }
.tshoot-body code { font-size: 0.85em; }
.tshoot-body strong { color: var(--text-primary); font-weight: 600; }
@media (max-width: 720px) {
  .tshoot-body { padding-left: 1.4rem; }
}
