/* RuntimeAI PM guide — sim shell + readable doc layout */

body.rai-guide-page {
  margin: 0;
  min-height: 100dvh;
  background: var(--v-white, #fff);
  color: var(--v-ink, #1a1a1a);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 4.5rem;
  --border: #e5e5e5;
  --surface: #ffffff;
  --bg: #fafafa;
  --text: #171717;
  --muted: #525252;
  --accent: #1375d9;
}

body.rai-guide-page[data-theme="dark"] {
  background: #0f1419;
  color: #e7ecf1;
  --border: #2d3a47;
  --surface: #1a222c;
  --bg: #0f1419;
  --text: #e7ecf1;
  --muted: #a9b6c6;
  --accent: #5aa8ef;
}

.rai-guide-main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.rai-guide-hero {
  padding: 0.5rem 0 1.5rem;
}

.rai-guide-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--v-ink, #1a1a1a);
}

.rai-guide-lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: var(--v-muted, #5a5a5a);
  max-width: 46rem;
}

.rai-guide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rai-guide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rai-guide-btn--primary {
  background: var(--v-brand-teal, #1375d9);
  color: var(--v-white, #fff);
  border: 1px solid var(--v-brand-teal-deep, #0f5fad);
}

.rai-guide-btn--primary:hover {
  background: var(--v-brand-teal-deep, #0f5fad);
  color: var(--v-white, #fff);
}

.rai-guide-btn--secondary {
  background: var(--v-white, #fff);
  color: var(--v-ink, #1a1a1a);
  border: 1px solid var(--v-border, #e5e5e5);
}

.rai-guide-btn--secondary:hover {
  border-color: var(--v-brand-teal, #1375d9);
  color: var(--v-brand-teal, #1375d9);
}

.rai-guide-prose h2 {
  margin: 2.5rem 0 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--v-border, #e5e5e5);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.rai-guide-prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.rai-guide-prose h3 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.rai-guide-prose p {
  margin: 0 0 1rem;
}

.rai-guide-prose ul,
.rai-guide-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.rai-guide-prose li {
  margin-bottom: 0.45rem;
}

.rai-guide-prose a {
  color: var(--v-brand-teal, #1375d9);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.rai-guide-prose a:hover {
  color: var(--v-brand-teal-deep, #0f5fad);
}

.rai-guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rai-step;
}

.rai-guide-step {
  counter-increment: rai-step;
  margin-bottom: 2rem;
}

.rai-guide-step > h3::before {
  content: counter(rai-step) ". ";
  color: var(--v-brand-teal, #1375d9);
}

.rai-guide-panel {
  margin: 0.85rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--v-radius-sm, 10px);
  border: 1px solid var(--v-border, #e5e5e5);
}

.rai-guide-panel--action {
  background: var(--v-white, #fff);
}

.rai-guide-panel--evaluate {
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--v-brand-teal, #1375d9) 6%, var(--v-white)) 0%,
    var(--v-white) 55%
  );
  border-color: color-mix(in srgb, var(--v-brand-teal, #1375d9) 22%, var(--v-border, #e5e5e5));
}

.rai-guide-panel-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v-muted, #5a5a5a);
}

.rai-guide-panel ul {
  margin: 0;
}

.rai-guide-benchmarks {
  margin: 0;
  padding-left: 1.25rem;
}

.rai-guide-benchmarks li {
  margin-bottom: 0.75rem;
}

.rai-guide-feedback-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v-border, #e5e5e5);
}

.rai-guide-feedback-section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.rai-guide-feedback-intro {
  margin: 0 0 1.25rem;
  color: var(--v-muted, #5a5a5a);
}

.rai-guide-feedback-form {
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}

.rai-guide-feedback-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--v-ink, #1a1a1a);
}

.rai-guide-feedback-form input,
.rai-guide-feedback-form select,
.rai-guide-feedback-form textarea {
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--v-border, #e5e5e5);
  border-radius: var(--v-radius-sm, 10px);
  background: var(--v-white, #fff);
  color: inherit;
}

.rai-guide-feedback-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.rai-guide-feedback-form input:focus,
.rai-guide-feedback-form select:focus,
.rai-guide-feedback-form textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--v-brand-teal, #1375d9) 35%, transparent);
  border-color: var(--v-brand-teal, #1375d9);
}

.rai-guide-feedback-alt {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--v-muted, #5a5a5a);
}

.rai-guide-feedback-alt a {
  color: var(--v-brand-teal, #1375d9);
  font-weight: 600;
}

.rai-guide-feedback-status {
  min-height: 1.25rem;
  font-size: 0.875rem;
  color: var(--v-muted, #5a5a5a);
}

.rai-guide-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--v-white, #fff) 92%, transparent);
  border-top: 1px solid var(--v-border, #e5e5e5);
  backdrop-filter: blur(10px);
}

.rai-guide-sticky__inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.rai-guide-sticky__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--v-muted, #5a5a5a);
}

@media (max-width: 640px) {
  .rai-guide-main {
    padding-inline: 1rem;
  }

  .rai-guide-sticky__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .rai-guide-btn {
    width: 100%;
  }
}
