/* styles.css — Outcomes Predictive Suite (Therapy Analytics Partners LLC) */

:root {
  --bg-color: #0b0e14;
  --bg-elevated: #121722;
  --card-bg: rgba(20, 26, 38, 0.78);
  --card-hover: rgba(26, 34, 50, 0.92);
  --text-main: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #F28C3D;
  --accent-soft: rgba(242, 140, 61, 0.14);
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.14);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.14);
  --border-color: rgba(255, 255, 255, 0.1);
}

body,
.quarto-container {
  background-color: var(--bg-color) !important;
  background-image:
    radial-gradient(circle at 12% 14%, rgba(242, 140, 61, 0.08), transparent 38%),
    radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.08), transparent 40%) !important;
  color: var(--text-main);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.68;
}

@media (min-width: 769px) {
  body,
  .quarto-container {
    background-attachment: fixed !important;
  }
}

.quarto-title-block,
.quarto-title {
  display: none !important;
}

main.content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 60px 28px;
}

/* Navbar */
.navbar {
  background: rgba(11, 14, 20, 0.94) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 1.5rem;
}

.navbar-logo {
  height: 52px;
  width: auto;
  margin-right: 10px;
}

.navbar-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.4px;
  background: linear-gradient(135deg, #ffffff 35%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 6px;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

/* Last right-hand nav item styled as CTA pill */
.navbar-nav.ms-auto .nav-item:last-child .nav-link {
  background: linear-gradient(135deg, var(--accent) 0%, #d97224 100%);
  color: #0b0e14 !important;
  font-weight: 700;
  padding: 8px 18px !important;
  border-radius: 6px;
  margin-left: 10px;
}

.navbar-nav.ms-auto .nav-item:last-child .nav-link:hover {
  opacity: 0.93;
  color: #0b0e14 !important;
}

/* Typography */
h1, h2, h3, h4 {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.015em;
}

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* Hero & Authority Strip */
.hero-wrap {
  text-align: center;
  padding: 56px 0 36px 0;
}

.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(242, 140, 61, 0.35);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.partner-pill strong {
  color: var(--accent);
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 18px auto;
  flex-wrap: wrap;
}

.hero-logo {
  height: 108px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

.hero-title {
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 35%, #cbd5e1 75%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  color: var(--text-secondary);
  max-width: 860px;
  margin: 0 auto 28px auto;
  line-height: 1.65;
}

.founder-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 24px;
  margin: 0 auto 32px auto;
  padding: 14px 24px;
  max-width: 960px;
  background: rgba(18, 23, 34, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.founder-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.founder-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: #141b29;
}

.founder-bar a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.founder-bar a:hover {
  color: var(--accent);
}

/* Buttons */
.btn-ops-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent) 0%, #d46b1f 100%);
  color: #0b0e14 !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none !important;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(242, 140, 61, 0.28);
}

.btn-ops-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(242, 140, 61, 0.38);
  color: #0b0e14 !important;
}

.btn-ops-secondary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-ops-secondary:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
  background: rgba(242, 140, 61, 0.08);
}

/* Cards & Grids */
.ops-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.ops-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
}

.ops-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ops-card-padded {
  padding: 38px;
}

.ops-shot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.ops-faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ops-faq-item summary {
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.ops-faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ops-faq-item[open] summary::after {
  content: "−";
}

.ops-faq-body {
  padding: 0 22px 18px 22px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.ops-card:hover {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(242, 140, 61, 0.35);
}

.ops-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.32rem;
  color: #ffffff !important;
}

.ops-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.97rem;
}

.phase-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.tag-emerald { background: var(--emerald-soft); color: var(--emerald); }
.tag-cyan { background: var(--cyan-soft); color: #22d3ee; }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-amber { background: var(--accent-soft); color: var(--accent); }

/* Video Container */
.video-shell {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  background: #000;
}

.video-shell iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Section Headers */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 64px auto 30px auto;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  margin-top: 0;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.06rem;
  margin: 0;
}

/* Comparison & Tier Tables */
.ops-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #111723 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.ops-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  margin-bottom: 0 !important;
  --bs-table-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-hover-bg: transparent !important;
  --bs-table-color: var(--text-secondary) !important;
  background-color: #111723 !important;
}

.ops-table thead th {
  background-color: #0b0f18 !important;
  color: #f8fafc !important;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-align: left;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
  vertical-align: bottom;
}

.ops-table tbody td {
  background-color: #131a28 !important;
  padding: 16px 14px;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  vertical-align: middle;
}

.ops-table tbody tr:nth-child(even) td {
  background-color: #101622 !important;
}

.ops-table tbody tr:last-child td {
  border-bottom: none !important;
}

.ops-table tbody tr.ops-highlight-row td {
  background-image: none !important;
  background-color: #172135 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24) !important;
  color: #ffffff !important;
  padding-top: 18px;
  padding-bottom: 18px;
}

.ops-table tbody tr.ops-highlight-row td:first-child {
  border-left: 4px solid #3b82f6 !important;
}

.ops-col-center {
  text-align: center !important;
}

.ops-check {
  color: #10b981;
  font-size: 1.28rem;
}

.ops-miss {
  color: #64748b;
  font-size: 1.15rem;
}

.ops-cell-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  line-height: 1.25;
}

/* Executive License Tier Cards & Inheritance Banners */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 36px 0;
  align-items: stretch;
}

.tier-card {
  background: linear-gradient(180deg, rgba(22, 29, 44, 0.94) 0%, rgba(15, 20, 31, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 30px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.24);
}

.tier-card-standard {
  border-top: 3px solid var(--blue);
}

.tier-card-classic {
  border-top: 3px solid var(--cyan);
  border-color: rgba(6, 182, 212, 0.26);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.06);
}

.tier-card-enhanced {
  border-top: 3px solid var(--emerald);
  border-color: rgba(16, 185, 129, 0.28);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.08);
}

.tier-card-premier {
  border-top: 4px solid var(--accent);
  border-color: rgba(242, 140, 61, 0.44);
  background: linear-gradient(180deg, rgba(28, 32, 46, 0.96) 0%, rgba(16, 21, 32, 0.96) 100%);
  box-shadow: 0 16px 40px rgba(242, 140, 61, 0.14);
}

.tier-card h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff !important;
  letter-spacing: -0.02em;
}

.tier-subtitle {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
  margin: 0 0 20px 0;
  min-height: 3.1em;
}

.tier-inherits {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.tier-inherits i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.tier-inherits-base {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-left: 4px solid var(--blue);
  color: #bfdbfe;
}

.tier-inherits-cyan {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-left: 4px solid var(--cyan);
  color: #cffafe;
}

.tier-inherits-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-left: 4px solid var(--emerald);
  color: #d1fae5;
}

.tier-inherits-amber {
  background: rgba(242, 140, 61, 0.16);
  border: 1px solid rgba(242, 140, 61, 0.48);
  border-left: 4px solid var(--accent);
  color: #ffedd5;
}

.tier-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.tier-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.93rem;
  line-height: 1.52;
  color: var(--text-secondary);
}

.tier-feature-list li strong {
  color: #f8fafc;
  font-weight: 700;
}

.tier-check {
  margin-top: 3px;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.tier-check-blue { color: #60a5fa; }
.tier-check-cyan { color: #22d3ee; }
.tier-check-emerald { color: #34d399; }
.tier-check-amber { color: #F28C3D; }

.tier-footer {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tier-footer-caption {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

/* Comparison Matrix Refinements */
.ops-tier-th-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ops-tier-th-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}

.ops-table tbody tr.ops-table-group td {
  background-color: #0d1320 !important;
  color: #e2e8f0 !important;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.ops-group-pill {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.ops-dash {
  color: #475569;
  font-weight: 600;
  font-size: 1.1rem;
  user-select: none;
}

.ops-table td.ops-col-premier,
.ops-table th.ops-col-premier {
  background-color: rgba(242, 140, 61, 0.05) !important;
  border-left: 1px solid rgba(242, 140, 61, 0.16);
}

.ops-table thead th.ops-col-premier {
  background-color: #141824 !important;
  border-top: 2px solid var(--accent);
}

@media (max-width: 991.98px) {
  .tier-grid {
    grid-template-columns: 1fr;
  }
  .tier-subtitle {
    min-height: 0;
  }
}

/* Partner Bio Cards */
.partner-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 24px;
}

.partner-flex {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.partner-photo {
  width: 148px;
  height: 148px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
  background: #141b29;
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.partner-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none !important;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.partner-link-pill:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.partner-role {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

@media (max-width: 680px) {
  .partner-flex {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
}

/* Form Styling */
.ops-form-input,
.ops-form-select,
.ops-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #131a27;
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 18px;
  box-sizing: border-box;
  font-family: inherit;
}

.ops-form-input:focus,
.ops-form-select:focus,
.ops-form-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.ops-form-label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* Footer */
.nav-footer {
  border-top: 1px solid var(--border-color) !important;
  background: #080a0f !important;
  padding: 1.5rem 0 !important;
  color: var(--text-muted) !important;
}

.nav-footer a {
  color: var(--accent) !important;
  text-decoration: none;
  font-weight: 600;
}

.nav-footer a:hover {
  text-decoration: underline;
}

/* Keyboard Focus & Reduced Motion Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 991.98px) {
  .ops-grid-3 {
    grid-template-columns: 1fr;
  }
  .navbar-nav.ms-auto .nav-item:last-child .nav-link {
    margin-left: 0;
    margin-top: 8px;
    display: inline-block;
  }
}

@media (max-width: 768px) {
  main.content {
    padding: 0 16px 40px 16px;
  }
  .ops-grid-2,
  .ops-grid-3 {
    grid-template-columns: 1fr;
  }
  .ops-card-padded {
    padding: 22px 18px;
  }
  .hero-logo {
    height: 82px;
  }
  .founder-bar {
    padding: 12px 16px;
    gap: 10px 16px;
  }
}
