/* use.css — Phase 3b. Use-case persona pages.
   Builds on style.css base; reuses .learn-* classes for callouts/CTA/FAQ;
   adds .use-* for persona-specific patterns.

   Color tokens used (defined in style.css):
     --bg, --fg, --muted, --accent (#5fffaf), --warn (#ff7a7a), --note (#ffd166)
*/

/* Hero — same proportions as .learn-hero but with persona-specific identity */
.use-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid rgba(95, 255, 175, 0.08);
}

.use-hero .section-label { margin-bottom: 12px; }

.use-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.use-hero .lede {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #cfe8d8;
  max-width: 720px;
  margin: 0 0 28px;
}

.use-persona-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.9rem;
  color: #93b8a3;
}

.use-persona-meta-item {
  display: inline-flex;
  align-items: center;
}

.use-persona-meta-item::before {
  content: "//";
  color: rgba(95, 255, 175, 0.5);
  margin-right: 6px;
}

/* Capability / limitation panels — paired symmetric blocks */
.use-balance {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .use-balance { grid-template-columns: 1fr 1fr; }
}

.use-panel {
  padding: 24px 24px 20px;
  border-radius: 8px;
  background: rgba(95, 255, 175, 0.03);
  border-left: 3px solid rgba(95, 255, 175, 0.4);
}

.use-panel.warn {
  background: rgba(255, 122, 122, 0.03);
  border-left-color: rgba(255, 122, 122, 0.5);
}

.use-panel-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fffaf;
  margin-bottom: 10px;
  display: block;
}

.use-panel.warn .use-panel-label { color: #ff7a7a; }

.use-panel h3 {
  font-size: 1.2rem;
  margin: 0 0 14px;
  color: #f0fbf3;
}

.use-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-panel li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: #cfe8d8;
  line-height: 1.55;
  border-bottom: 1px solid rgba(95, 255, 175, 0.04);
}

.use-panel li:last-child { border-bottom: 0; }

.use-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #5fffaf;
  font-weight: bold;
}

.use-panel.warn li::before {
  content: "✗";
  color: #ff7a7a;
}

.use-panel li strong { color: #f0fbf3; }

/* Workflow — numbered list of steps that link to Phase 3a guides */
.use-workflow {
  counter-reset: workflow;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.use-workflow > li {
  counter-increment: workflow;
  padding: 16px 0 16px 56px;
  position: relative;
  border-bottom: 1px solid rgba(95, 255, 175, 0.06);
  color: #cfe8d8;
  line-height: 1.55;
}

.use-workflow > li:last-child { border-bottom: 0; }

.use-workflow > li::before {
  content: counter(workflow, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.85rem;
  color: #5fffaf;
  background: rgba(95, 255, 175, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.use-workflow strong { color: #f0fbf3; }

/* Decision matrix — "is this right for me" */
.use-decision {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0;
}

@media (min-width: 768px) {
  .use-decision { grid-template-columns: 1fr 1fr; }
}

.use-decision-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(95, 255, 175, 0.1);
  background: rgba(10, 14, 12, 0.4);
}

.use-decision-card.yes { border-color: rgba(95, 255, 175, 0.3); }
.use-decision-card.no  { border-color: rgba(255, 122, 122, 0.3); }

.use-decision-label {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.use-decision-card.yes .use-decision-label { color: #5fffaf; }
.use-decision-card.no  .use-decision-label { color: #ff7a7a; }

.use-decision-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-decision-card li {
  padding: 6px 0;
  color: #cfe8d8;
  font-size: 0.95rem;
}

/* Persona hub grid — same shape as compare hub cards */
.use-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 32px 0;
}

@media (min-width: 768px) {
  .use-hub-grid { grid-template-columns: repeat(2, 1fr); }
}

.use-hub-card {
  display: block;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(95, 255, 175, 0.1);
  background: rgba(10, 14, 12, 0.4);
  color: #cfe8d8;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.use-hub-card:hover {
  border-color: rgba(95, 255, 175, 0.4);
  transform: translateY(-2px);
}

.use-hub-card-tag {
  font-family: "JetBrains Mono", "SF Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5fffaf;
  margin-bottom: 8px;
}

.use-hub-card h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: #f0fbf3;
}

.use-hub-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #93b8a3;
  line-height: 1.5;
}
