/* PromptCAD — page-scoped overrides on the shared Alpha Intel Labs styles.
   The app's own palette is sky blue with an amber accent, so the page adopts
   it rather than the site's rose. Structure and layout stay shared. */

:root {
  --accent: #38BDF8;
  --accent-gold: #F59E0B;
  --pc-deep: #0369A1;
}

/* Hero -------------------------------------------------------------------- */
.pc-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
  padding: 3.5rem 1.5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pc-hero svg {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
}

.pc-hero-text {
  flex: 1 1 340px;
}

.pc-hero h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.pc-hero h1 .cad {
  color: var(--accent);
}

.pc-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Buttons ----------------------------------------------------------------- */
.pc-btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #06263a;
  font-weight: 600;
  border: 1px solid transparent;
}

.pc-btn:hover {
  background: #7dd3fc;
  text-decoration: none;
}

.pc-btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}

.pc-btn-ghost:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
}

.pc-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Steps ------------------------------------------------------------------- */
.pc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.pc-steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  counter-increment: step;
}

.pc-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--pc-deep);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pc-steps p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Model cards ------------------------------------------------------------- */
.pc-models {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pc-model {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.pc-model.is-recommended {
  border-color: var(--accent);
}

.pc-model-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.pc-model-head h3 {
  font-size: 1.15rem;
}

.pc-model-head .pub {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.pc-model p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.pc-spec {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.pc-spec b {
  color: var(--text);
  font-weight: 600;
}

.badge-rec {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
}

.badge-api {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-gold);
}

/* Notes ------------------------------------------------------------------- */
.pc-note {
  background: var(--bg-card);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pc-paths {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.9;
}

/* Sections ---------------------------------------------------------------- */
.pc-section {
  max-width: 980px;
  margin: 0 auto;
  padding: 3rem 1.5rem 0;
}

.pc-section > h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.6rem;
}

.pc-lede {
  color: var(--text-muted);
  max-width: 68ch;
  margin-bottom: 1.5rem;
}

.pc-eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Screenshots ------------------------------------------------------------- */
figure.pc-shot {
  margin: 0 0 1.5rem;
}

figure.pc-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

figure.pc-shot figcaption {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  line-height: 1.5;
}

.pc-shots-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Pipeline --------------------------------------------------------------- */
.pc-pipeline {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: stage;
  display: grid;
  gap: 0.85rem;
}

.pc-pipeline > li {
  display: grid;
  grid-template-columns: 2.3rem 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pc-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.35rem;
  counter-increment: stage;
}

.pc-pipeline > li::before {
  content: counter(stage);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.pc-pipeline h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.pc-pipeline p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pc-pipeline p + p {
  margin-top: 0.5rem;
}

/* Operation chips --------------------------------------------------------- */
.pc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.pc-chips li {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

/* Prompt -> plan illustration -------------------------------------------- */
.pc-flow {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-top: 1.25rem;
}

.pc-flow .prompt {
  font-size: 1.02rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.9rem;
  margin-bottom: 1.15rem;
}

.pc-flow ol {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
}

.pc-flow ol li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.32rem 0;
  color: var(--text-muted);
  border-bottom: 1px dashed var(--border);
}

.pc-flow ol li:last-child {
  border-bottom: 0;
}

.pc-flow .op {
  color: var(--accent);
  min-width: 8.5rem;
}

.pc-flow .out {
  color: var(--accent-gold);
  margin-top: 0.9rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

/* Inline code and keys --------------------------------------------------- */
.pc-section code,
.pc-note code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(56, 189, 248, 0.10);
  color: var(--accent);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  background: var(--bg-card-hover);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1em 0.4em;
  white-space: nowrap;
}

/* Requirements ----------------------------------------------------------- */
.pc-req {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.pc-req li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.pc-req b {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
