/* Content / SEO pages — professional reading layout */

.content-body {
  --content-max: 42rem;
  --page-pad: 1.25rem;
  background: #f6f7fb;
  color: #111827;
  min-height: 100vh;
}

.content-body,
.content-body * {
  box-sizing: border-box;
}

/* ── Header (brand pill, always readable) ── */

.content-body .site-header {
  background: transparent;
  padding: 1rem var(--page-pad) 0;
}

.content-body .site-header.is-scrolled .header-shell,
.content-body .header-shell {
  background: #ff033e;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 32px rgba(140, 0, 35, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.content-body .site-header.is-scrolled .site-logo--on-brand,
.content-body .site-logo--on-brand {
  display: block !important;
}

.content-body .site-header.is-scrolled .site-logo--on-light,
.content-body .site-logo--on-light {
  display: none !important;
}

.content-body .site-header .header-nav a,
.content-body .site-header.is-scrolled .header-nav a {
  color: rgba(255, 255, 255, 0.92);
}

.content-body .site-header .header-nav a:hover,
.content-body .site-header.is-scrolled .header-nav a:hover,
.content-body .site-header.is-scrolled .header-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.content-body .site-header .header-actions .btn-primary,
.content-body .site-header.is-scrolled .header-actions .btn-primary,
.content-body .btn-primary.btn-sm {
  background: #ffffff;
  color: #ff033e;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.content-body .site-header .header-actions .btn-primary:hover,
.content-body .site-header.is-scrolled .header-actions .btn-primary:hover {
  background: #fff5f7;
  color: #e50338;
}

.content-body .mobile-nav-toggle,
.content-body .site-header.is-scrolled .mobile-nav-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
}

.content-body .mobile-nav {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.1);
}

.content-body .mobile-nav a,
.content-body .site-header.is-scrolled .mobile-nav a {
  color: #374151;
}

.content-body .mobile-nav a:hover,
.content-body .site-header.is-scrolled .mobile-nav a:hover {
  color: #111827;
  background: #f6f7fb;
}

/* ── Main column (centered) ── */

.content-main {
  padding: 6.75rem 0 3.5rem;
}

.content-body .content-main > .container,
.content-body .content-main > .content-shell {
  width: min(var(--content-max), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding-inline: 0;
}

.content-hero {
  padding: 0.5rem 0 1.75rem;
  text-align: left;
}

.content-hero .eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e50338;
  margin: 0 0 0.85rem;
}

.content-hero h1 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #111827;
  max-width: none;
}

.content-hero .lede {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4b5563;
  max-width: none;
  margin: 0 0 1.5rem;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

.content-body .content-actions .btn-ghost {
  color: #111827 !important;
  border: 1px solid rgba(17, 24, 39, 0.14) !important;
  background: #fff !important;
  box-shadow: none;
}

.content-body .content-actions .btn-ghost:hover {
  border-color: rgba(255, 3, 62, 0.35) !important;
  color: #e50338 !important;
}

.content-body .content-actions .btn-primary {
  box-shadow: 0 8px 22px rgba(140, 0, 35, 0.2);
}

/* ── Prose ── */

.prose {
  max-width: none;
  width: 100%;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1f2937;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.prose h2 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.35rem 0 0.85rem;
  color: #111827;
}

.prose h3 {
  font-size: 1.08rem;
  margin: 1.75rem 0 0.55rem;
  color: #111827;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: #e50338;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: #111827;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
  background: #fff;
}

.prose th,
.prose td {
  border: 1px solid rgba(17, 24, 39, 0.1);
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: #fafafa;
  font-weight: 700;
  color: #111827;
}

/* ── Related ── */

.related-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  width: 100%;
}

@media (min-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.related-card {
  display: block;
  padding: 1.05rem 1.15rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1rem;
  color: #111827;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.related-card:hover {
  border-color: rgba(255, 3, 62, 0.35);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.08);
  transform: translateY(-1px);
}

.related-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.98rem;
}

.related-card span {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ── CTA waitlist ── */

.content-cta {
  margin: 2.75rem 0 0;
  padding: 1.5rem 1.35rem;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1.25rem;
  box-shadow: 0 8px 28px rgba(17, 24, 39, 0.04);
  width: 100%;
}

.content-cta h2 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: 1.3rem;
  margin: 0 0 0.45rem;
  color: #111827;
}

.content-cta > p {
  margin: 0 0 1.15rem;
  color: #4b5563;
  line-height: 1.5;
}

.content-body .waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  align-items: stretch;
}

.content-body .waitlist-input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  font: inherit;
  background: #fff;
  color: #111827;
}

.content-body .waitlist-input:focus {
  outline: none;
  border-color: rgba(255, 3, 62, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 3, 62, 0.12);
}

.content-body .waitlist-row .btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.content-body .form-check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin-bottom: 0.55rem;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.45;
}

.content-body .form-check input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.content-body .form-footnote {
  color: #6b7280;
  font-size: 0.85rem;
  margin: 0.65rem 0 0;
}

.content-body .hidden {
  display: none !important;
}

/* ── Breadcrumbs ── */

.breadcrumbs {
  font-size: 0.84rem;
  color: #6b7280;
  margin: 0 0 1.25rem;
  line-height: 1.4;
}

.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #e50338;
}

/* ── Footer ── */

.content-body .site-footer {
  background: #fff;
  color: #4b5563;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  padding: 2.25rem var(--page-pad) 2rem;
  margin-top: 1rem;
}

.content-body .site-footer .container {
  width: min(52rem, calc(100% - 0rem));
  margin-inline: auto;
}

.content-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.5rem;
  max-width: 40rem;
  text-align: center;
}

.content-footer-links a {
  color: #4b5563;
  text-decoration: none;
  font-size: 0.88rem;
}

.content-footer-links a:hover {
  color: #ff033e;
}

.content-body .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.content-body .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.85rem;
}

.content-body .footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

.content-body .site-footer a,
.content-body .footer-nav button {
  color: #4b5563;
}

.site-footer .footer-nav a {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.site-footer .footer-nav a:hover {
  color: #ff033e;
}

/* ── Tools ── */

.tool-panel {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1.25rem;
  padding: 1.35rem 1.25rem;
  margin: 1.5rem 0;
  width: 100%;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.tool-panel label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #111827;
}

.tool-panel input,
.tool-panel textarea,
.tool-panel select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 0.75rem;
  font: inherit;
  margin-bottom: 0.9rem;
  background: #fff;
  color: #111827;
}

.tool-panel input:focus,
.tool-panel textarea:focus {
  outline: none;
  border-color: rgba(255, 3, 62, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 3, 62, 0.1);
}

.tool-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

@media (min-width: 560px) {
  .tool-row {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .tool-row > div {
    margin-bottom: 0;
  }

  .tool-row .btn-primary {
    margin-bottom: 0.9rem;
  }
}

.tool-people {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.tool-person {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  background: #f8f9fc;
  border-radius: 0.75rem;
}

.tool-result {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  background: #f8f9fc;
  border-radius: 0.85rem;
  white-space: pre-wrap;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.84rem;
  line-height: 1.55;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tool-result:empty {
  display: none;
}

.content-body .btn-ghost {
  color: #111827 !important;
  border-color: rgba(17, 24, 39, 0.16) !important;
  background: #fff !important;
}

/* ── Legal ── */

.legal-doc {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1.25rem;
  padding: 1.6rem 1.35rem;
  width: 100%;
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.04);
}

.legal-doc h1 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 1.15rem;
  color: #111827;
  letter-spacing: -0.02em;
}

/* ── FAQ ── */

.faq-mini {
  margin-top: 2rem;
  width: 100%;
}

.faq-mini > h2 {
  margin-top: 0;
}

.faq-mini details {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 0.9rem;
  padding: 0.95rem 1.05rem;
  margin-bottom: 0.65rem;
}

.faq-mini summary {
  cursor: pointer;
  font-weight: 700;
  color: #111827;
  list-style: none;
}

.faq-mini summary::-webkit-details-marker {
  display: none;
}

.faq-mini summary::after {
  content: '+';
  float: right;
  color: #9ca3af;
  font-weight: 700;
}

.faq-mini details[open] summary::after {
  content: '–';
}

.faq-mini p {
  margin: 0.7rem 0 0;
  color: #4b5563;
  clear: both;
}

/* ── Feature truth + MIA demo ── */

.feature-truth {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-left: 3px solid #ff033e;
  border-radius: 0.95rem;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  font-size: 0.94rem;
  width: 100%;
}

.feature-truth p {
  margin: 0;
  color: #374151;
  line-height: 1.55;
}

.mia-demo-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0 0 0.85rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  letter-spacing: 0.02em;
}

.mia-chat {
  min-height: 12rem;
  max-height: 22rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.9rem;
  background: #f6f7fb;
  border-radius: 0.95rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.mia-bubble {
  max-width: 92%;
  padding: 0.75rem 0.95rem;
  border-radius: 1rem;
  font-size: 0.94rem;
  line-height: 1.45;
}

.mia-bubble--mia {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: #111827;
  border-bottom-left-radius: 0.35rem;
}

.mia-bubble--user {
  align-self: flex-end;
  background: #ff033e;
  color: #fff;
  border-bottom-right-radius: 0.35rem;
}

.mia-actions {
  font-size: 0.8rem;
  color: #374151;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding: 0 0.15rem;
}

.mia-actions span {
  background: #fff;
  border: 1px solid rgba(255, 3, 62, 0.25);
  color: #e50338;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-weight: 700;
}

.mia-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mia-chip {
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  color: #111827;
  transition: border-color 0.15s, color 0.15s;
}

.mia-chip:hover {
  border-color: rgba(255, 3, 62, 0.45);
  color: #e50338;
}

@media (max-width: 560px) {
  .content-main {
    padding-top: 6.25rem;
  }

  .content-cta,
  .tool-panel,
  .legal-doc {
    padding-inline: 1.1rem;
  }

  .content-actions {
    width: 100%;
  }

  .content-actions .btn-primary,
  .content-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
