/* ── Welcome Page ────────────────────────────────────────────────── */
.welcome-wrap { max-width: 960px; margin: 0 auto; padding: 2rem 1.25rem 2rem; }

/* Hero */
.welcome-hero { text-align: center; padding: 2.5rem 0 2rem; }
.welcome-hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: .75rem; }
.welcome-hero p  { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.75rem; }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.75rem;
}

.tab-btn {
  background: none;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .825rem;
  font-weight: 600;
  margin-bottom: -2px;
  padding: .5rem .9rem;
  transition: color .15s, background .15s;
}
.tab-btn:hover { color: var(--text); background: var(--surface2); }
.tab-btn.active {
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
  color: var(--teal);
}

.tab-panel:not(.active) { display: none; }
.tab-panel.active { display: block; }

/* ── Hardware cards ────────────────────────────────────────────── */
.hw-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 680px) { .hw-cards { grid-template-columns: 1fr; } }

.hw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}
.hw-card.optimal { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }

.hw-card-title { color: var(--text-muted); font-size: .7rem; letter-spacing: .08em; margin-bottom: .2rem; text-transform: uppercase; }
.hw-card-level { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.hw-card.optimal .hw-card-level { color: var(--teal); }

.hw-specs { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.1rem; }
.hw-spec { display: flex; justify-content: space-between; font-size: .8rem; }
.hw-spec-label { color: var(--text-muted); }
.hw-spec-val { font-weight: 600; }

.hw-divider { border: none; border-top: 1px solid var(--border); margin: .75rem 0; }

.hw-quality-rows { display: flex; flex-direction: column; flex: 1; gap: .25rem; }
.hw-quality-row { align-items: center; display: flex; font-size: .8rem; justify-content: space-between; }
.hw-quality-label { color: var(--text-muted); }
.hw-quality-guests { color: var(--text); font-weight: 600; }
.hw-quality-row.audio .hw-quality-guests { color: var(--teal); }

.hw-disclaimer { color: var(--text-muted); font-size: .72rem; font-style: italic; margin-top: 1rem; text-align: center; }

/* ── OSS box ───────────────────────────────────────────────────── */
.oss-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.25rem 1.5rem;
}
.oss-box a { color: var(--teal); text-decoration: none; }
.oss-box a:hover { text-decoration: underline; }
.oss-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .25rem; }
.oss-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: .78rem;
  padding: .2rem .75rem;
}

/* ── Screenshots sub-tabs ──────────────────────────────────────── */
.subtab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.5rem;
}
.subtab-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .9rem;
  transition: color .15s, background .15s, border-color .15s;
}
.subtab-btn:hover {
  border-color: var(--text-muted);
  color: var(--text);
}
.subtab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.subtab-panel:not(.active) { display: none; }
.subtab-panel.active { display: block; }

.screenshot-frame {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.screenshot-img {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-block;
  height: auto;
  max-width: 420px;
  width: 100%;
}

/* ── Getting Started ────────────────────────────────────────────── */
.getting-started {
  border-top: 1px solid var(--border);
  margin: 0 auto;
  max-width: 960px;
  padding: 2rem 1.25rem;
}
.gs-heading { color: var(--text); font-size: 1.25rem; font-weight: 700; margin-bottom: .4rem; }
.gs-intro { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; }

.gs-steps { display: flex; flex-direction: column; }

.gs-step {
  display: flex;
  gap: 1rem;
  position: relative;
}
.gs-step:not(:last-of-type)::before {
  background: var(--border);
  bottom: 0;
  content: '';
  left: 1rem;
  position: absolute;
  top: 2.1rem;
  width: 2px;
}
.gs-step-num {
  align-items: center;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-size: .78rem;
  font-weight: 700;
  height: 2.1rem;
  justify-content: center;
  width: 2.1rem;
  z-index: 1;
}
.gs-step-body { padding-bottom: 1.5rem; padding-top: .3rem; }
.gs-step-title { font-size: .9rem; font-weight: 700; margin-bottom: .3rem; }
.gs-step-desc { color: var(--text-muted); font-size: .825rem; line-height: 1.5; }
.gs-cmd {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--teal);
  display: block;
  font-family: monospace;
  font-size: .8rem;
  margin-top: .45rem;
  overflow-x: auto;
  padding: .5rem .75rem;
}
.gs-ref {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--text-muted);
  font-size: .72rem;
  margin-left: .4rem;
  padding: .1rem .55rem;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Ask AI collapsible ─────────────────────────────────────────── */
.ai-ask-section { margin-top: 1.25rem; }

.ai-ask-toggle {
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--teal);
  cursor: pointer;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 600;
  gap: .4rem;
  padding: .35rem 1rem;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.ai-ask-toggle:hover { background: var(--surface); border-color: var(--teal); }

.ai-chevron { display: inline-block; transition: transform .2s ease; }
.ai-ask-section.open .ai-chevron { transform: rotate(180deg); }

.ai-prompt-list {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: .5rem 0 0 0;
  overflow: hidden;
  padding: 0;
}
.ai-prompt-list[hidden] { display: none; }
.ai-prompt-item {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: space-between;
  padding: .55rem 1rem;
}
.ai-prompt-item:last-child { border-bottom: none; }
.ai-prompt-text { color: var(--text-muted); font-size: .8rem; line-height: 1.4; }
.ai-copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  font-size: .75rem;
  padding: .2rem .45rem;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.ai-copy-btn:hover,
.ai-copy-btn.copied { border-color: var(--teal); color: var(--teal); }

/* ── Footer ────────────────────────────────────────────────────── */
.welcome-footer {
  border-top: 1px solid var(--border);
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.welcome-footer-section { margin-bottom: 2rem; }
.welcome-footer-section:last-child { margin-bottom: 0; }
.welcome-footer-section h2 { color: var(--text); font-size: 1.15rem; font-weight: 700; margin-bottom: 1.25rem; }

/* Contact */
.contact-box {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
}
.contact-phone { color: var(--teal); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }

/* Projects */
.projects-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.project-link {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: block;
  font-size: .875rem;
  padding: .75rem 1rem;
  text-decoration: none;
  transition: border-color .15s;
}
.project-link:hover { border-color: var(--text-muted); }
.project-link .pl-url { color: var(--teal); font-size: .75rem; margin-top: .15rem; }
.project-link .pl-tech { color: var(--text-muted); font-size: .7rem; }
