/* FORMALIS Pitch Page */

/* Header overrides */
.top {
  border-bottom: 1px solid var(--line);
}

.pitch-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

/* HERO */
.pitch-hero {
  text-align: center;
  padding: 3rem 0 2rem;
}

.pitch-hero .brand-mark {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.pitch-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1rem;
}

.pitch-hero .lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.pitch-hero .cta-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

/* SECTIONS */
.pitch-section {
  margin-top: 3rem;
}

.pitch-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.card-problem { border-left: 3px solid #ef4444; }
.card-feature { border-left: 3px solid var(--accent); }
.card-usecase { border-left: 3px solid #10b981; }

/* STEPS TIMELINE */
.steps-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 2.5rem;
}

.step-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* TECH DETAILS */
.tech-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.tech-details summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}

.tech-details summary:hover {
  background: var(--hover);
}

.tech-details[open] summary {
  border-bottom: 1px solid var(--border);
}

.tech-content {
  padding: 1.25rem;
}

.tech-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.25rem 0 0.5rem;
}

.tech-content h3:first-child {
  margin-top: 0;
}

.tech-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.tech-content ul, .tech-content ol {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.tech-content li {
  margin-bottom: 0.35rem;
}

.tech-content code {
  background: var(--bg);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

/* LINKS */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.15s, border-color 0.15s;
}

.link-card:hover {
  background: var(--hover);
  border-color: var(--accent);
}

/* ARCHITECTURE */
.pitch-section pre.mermaid {
  display: flex;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
}

/* FOOTER */
.pitch-footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .pitch-hero h1 { font-size: 1.8rem; }
  .pitch-hero .brand-mark { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: 1fr 1fr; }
}

[data-theme="dark"] .card-problem { border-left-color: #f87171; }
[data-theme="dark"] .card-feature { border-left-color: var(--accent); }
[data-theme="dark"] .card-usecase { border-left-color: #34d399; }

/* Beta Badge Small */
.beta-badge-sm {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.05rem 0.3rem;
  border-radius: 2px;
  background: var(--signal);
  color: #fff;
  vertical-align: super;
  line-height: 1;
  margin-left: 0.15rem;
}
