/* ============================================================
   OVIOS — SHARED SECTION COMPONENTS
   Used by the home, stateless, features and use-cases pages.
   Everything is prefixed so it cannot clash with other sheets.
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────── */
.ov-hero { padding: 8rem 0 3rem; position: relative; }
.ov-hero-badge { display: inline-flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.ov-hero-badge a { color: var(--text-muted); font-family: var(--font-mono); font-size: .75rem; letter-spacing: .05em; text-decoration: underline; }
.ov-hero h1 { margin-bottom: 1.25rem; max-width: 1100px; }
.ov-hero h1 .accent { color: var(--brand-primary); display: block; }
.ov-hero-sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-secondary); max-width: 760px; margin-bottom: 2.25rem; line-height: 1.7; }
.ov-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── Inline code ────────────────────────────────────────── */
.ov-code, .ov-section code {
  font-family: var(--font-mono); font-size: .85em; color: var(--brand-primary);
}

/* ── Grids ──────────────────────────────────────────────── */
.ov-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.ov-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ov-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ov-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .ov-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .ov-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ov-grid-2, .ov-grid-3, .ov-grid-4 { grid-template-columns: 1fr; } }

.ov-num {
  width: 2rem; height: 2rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600;
  color: var(--brand-primary); border: 1px solid var(--brand-primary);
  margin-bottom: 1rem;
}
.ov-step-label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: .5rem; }
.ov-cmd {
  display: inline-block; margin-top: .75rem; padding: .3rem .6rem;
  font-family: var(--font-mono); font-size: .8rem; color: var(--brand-primary);
  background: var(--brand-primary-glow); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
}
.ov-card-text { font-size: .9rem; color: var(--text-secondary); margin: 0; }

.ov-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.ov-chip {
  font-family: var(--font-mono); font-size: .75rem; padding: .3rem .75rem;
  color: var(--text-secondary); border: 1px solid var(--border-default); border-radius: 999px;
  background: var(--bg-surface);
}
.ov-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ── Protect (replication + HA) ─────────────────────────── */
.ov-protect { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 800px) { .ov-protect { grid-template-columns: 1fr; } }
.ov-protect-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 2rem; display: flex; flex-direction: column;
}
.ov-protect-card--ha { border-color: var(--brand-primary); box-shadow: var(--shadow-glow); }
.ov-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .6rem; border-radius: var(--radius-sm);
  color: var(--brand-secondary); border: 1px solid var(--brand-secondary); background: rgba(0,224,199,.08);
  margin-bottom: 1rem;
}
.ov-protect-card h3 { margin-bottom: .5rem; }
.ov-protect-card > p { color: var(--text-secondary); }
.ov-list { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: flex; flex-direction: column; gap: .6rem; }
.ov-list li { position: relative; padding-left: 1.4rem; font-size: .92rem; color: var(--text-secondary); }
.ov-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-success); }
.ov-list strong { color: var(--text-primary); }
.ov-note {
  background: var(--brand-primary-glow); border: 1px solid var(--border-strong);
  border-radius: var(--radius-md); padding: 1rem 1.1rem; margin-bottom: 1.25rem;
  font-size: .92rem; color: var(--text-primary);
}
.ov-protect-card .ov-actions { margin-top: auto; }

/* ── Flow diagram (primary → DR) ────────────────────────── */
.ov-flow { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.ov-node {
  font-family: var(--font-mono); font-size: .78rem; padding: .45rem .8rem;
  background: var(--bg-elevated); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  color: var(--text-primary);
}
.ov-node--primary { border-color: var(--brand-primary); }
.ov-node--dr { border-color: var(--brand-secondary); }
.ov-arrow { color: var(--text-muted); font-family: var(--font-mono); font-size: .75rem; }

/* ── Callout / banner ───────────────────────────────────── */
.ov-callout {
  margin-top: 2rem; padding: 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.ov-callout h3 { margin-bottom: .25rem; }
.ov-callout p { margin: 0; color: var(--text-secondary); max-width: 640px; }

/* ── Use-case cards ─────────────────────────────────────── */
.ov-usecase { display: flex; flex-direction: column; }
.ov-usecase .ov-card-text { margin-bottom: 1rem; }
.ov-usecase .ov-chips { margin-top: auto; }
.ov-usecase a { color: var(--brand-primary); font-size: .88rem; margin-top: .75rem; }

/* ── Bottom CTA ─────────────────────────────────────────── */
.ov-cta { padding: var(--section-pad) 0; }
.ov-cta-inner {
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: 4rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.ov-cta-inner h2 { margin-bottom: 0; }
.ov-cta-inner p { color: var(--text-secondary); max-width: 640px; }
@media (max-width: 600px) { .ov-cta-inner { padding: 2.5rem 1.5rem; } }
