/* ORA product page. Builds on crest-product.css (shared .crx layout) and is loaded only by templates/ora.html. */

/* OMFYS palette only: maroon for brand and actions on white and warm backgrounds. */
.orx {
  --crx-maroon: #9d2f2f;
  --crx-maroon-hover: #7e2424;
  --crx-maroon-tint: #f8eded;
  --orx-tint: #f8eded;
  --orx-accent: #f2c9a0;
  --orx-pad: clamp(36px, 4vw, 56px);
}

.orx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.orx .crx-btn--primary { box-shadow: none; }

/* ---------- One rhythm for the whole page ----------
   Every section uses the same vertical padding, and backgrounds alternate white / warm. */

.orx .crx-section { padding: var(--orx-pad) 0; }
.orx .crx-section:last-child { padding-bottom: var(--orx-pad); }

.orx-outcomes,
.orx-kit,
.orx-fits { background: var(--crx-warm); }

/* Every heading underline in the same accent as the hero's. */
.orx .crx-h2::after { background: var(--orx-accent); }

/* Shared two-column split: title on the left, copy and action on the right. Used by the hero and the closing
   AI Agent section so the page opens and closes the same way. */
.orx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

/* ---------- Hero ---------- */

.orx-hero {
  padding: clamp(36px, 4.5vw, 64px) 0 var(--orx-pad);
  background: linear-gradient(180deg, #fff 0%, #fdfbfa 100%);
}

.orx-name {
  color: #ad3a3a !important;
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.orx-subtitle {
  margin-top: 10px !important;
  color: var(--crx-maroon) !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.orx-headline {
  margin-top: 22px !important;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  text-wrap: balance;
}

.orx-headline::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 16px;
  background: var(--orx-accent);
}

.orx-lead {
  font-size: 17px;
  line-height: 1.7;
}

.orx-hero-copy .orx-lead:first-child { margin-top: 0 !important; }

/* The problem, set quietly... */
.orx-lead--muted {
  color: var(--crx-muted) !important;
  font-size: 16px;
}

/* ...and ORA's answer, set as the key statement. */
.orx-lead--key {
  margin-top: 18px !important;
  padding: 16px 20px !important;
  border-left: 3px solid var(--crx-maroon);
  border-radius: 0 12px 12px 0;
  background: var(--orx-tint);
  color: var(--crx-ink) !important;
}

.orx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 26px;
}

/* ---------- What changes for you ---------- */

.orx-outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.orx-outcome {
  position: relative;
  padding: 28px 26px;
  border: 1px solid var(--crx-line);
  border-radius: var(--crx-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--crx-ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Top edge draws in on hover. */
.orx-outcome::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--crx-maroon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--crx-ease);
}

.orx-outcome:hover {
  transform: translateY(-4px);
  border-color: rgba(157, 47, 47, 0.22);
  box-shadow: 0 24px 40px -30px rgba(45, 25, 30, 0.5);
}

.orx-outcome:hover::before { transform: scaleX(1); }

/* One icon style for the whole page: maroon on a pale maroon tile, filled on hover. */
.orx-outcome-icon,
.orx-kit-icon,
.orx-gov-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--orx-tint);
  color: var(--crx-maroon);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.orx-outcome-icon,
.orx-gov-icon { width: 46px; height: 46px; margin-bottom: 16px; font-size: 19px; }

.orx-outcome:hover .orx-outcome-icon,
.orx-gov-card:hover .orx-gov-icon { background: var(--crx-maroon); color: #fff; }

.orx-outcome h3 { font-size: 19px; line-height: 1.3; }

.orx-outcome p {
  margin-top: 10px !important;
  font-size: 15.5px;
  line-height: 1.7;
}

/* ---------- How a change ships ---------- */

.orx .crx-stage p { font-size: 15px; line-height: 1.65; }
.orx .crx-stage h3 { text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- What you get ---------- */

/* Three compact cards per row, built on 6 half-columns so a lone last card sits centred. */
.orx-kit-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.orx-kit-list li {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--crx-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* A card left alone on the last row (ORA Co-pilot) spans the full width as a featured row, so the grid
   ends on a clean edge instead of a stray card. Two left over share the row. */
.orx-kit-list li:nth-child(3n+1):last-child {
  grid-column: 1 / -1;
  align-items: center;
  border-color: rgba(157, 47, 47, 0.22);
  background: var(--orx-tint);
}

.orx-kit-list li:nth-child(3n+1):last-child .orx-kit-icon { background: var(--crx-maroon); color: #fff; }
.orx-kit-list li:nth-child(3n+1):nth-last-child(2),
.orx-kit-list li:nth-child(3n+1):nth-last-child(2) + li { grid-column: span 3; }

.orx-kit-list li:hover {
  border-color: rgba(157, 47, 47, 0.25);
  box-shadow: 0 18px 30px -24px rgba(45, 25, 30, 0.55);
}

.orx-kit-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }

.orx-kit-list li:hover .orx-kit-icon { background: var(--crx-maroon); color: #fff; }

.orx-kit-list h3 { font-size: 16px; line-height: 1.35; }

.orx-kit-list p {
  margin-top: 4px !important;
  font-size: 14.5px;
  line-height: 1.55;
}

/* ---------- Governance ----------
   Light cards in the same style as the rest of the page. */

.orx-gov-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.orx-gov-card {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--crx-line);
  border-radius: var(--crx-radius);
  background: #fff;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.orx-gov-card:hover {
  border-color: rgba(157, 47, 47, 0.22);
  box-shadow: 0 24px 40px -30px rgba(45, 25, 30, 0.5);
}

.orx-gov-card h3 {
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.3;
}

.orx-gov-card p {
  margin-top: 10px !important;
  font-size: 15.5px;
  line-height: 1.7;
}

.orx-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px !important;
}

.orx-roles li {
  padding: 6px 14px;
  border: 1px solid rgba(157, 47, 47, 0.25);
  border-radius: 999px;
  background: var(--orx-tint);
  color: var(--crx-maroon);
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1.4;
}

.orx-history {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 18px !important;
  padding-left: 22px !important;
}

/* Timeline line joining the versions. */
.orx-history::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  background: var(--crx-line);
}

.orx-history li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--crx-body);
  font-size: 14px !important;
  line-height: 1.5;
}

.orx-history li::before {
  content: "";
  position: absolute;
  left: -22px;
  width: 12px;
  height: 12px;
  border: 2px solid #c9bfb6;
  border-radius: 50%;
  background: #fff;
}

.orx-history li.is-live::before { border-color: var(--crx-maroon); background: var(--crx-maroon); }
.orx-history b { color: var(--crx-ink); font-variant-numeric: tabular-nums; }
.orx-history span { font-style: italic; }

/* ---------- Where it fits ---------- */

.orx-fit-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.orx-fit-list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 14px;
  border: 1px solid var(--crx-line);
  border-radius: 14px;
  background: #fff;
  color: var(--crx-ink);
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s var(--crx-ease), box-shadow 0.25s ease;
}

.orx-fit-list .fa {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orx-tint);
  color: var(--crx-maroon);
  font-size: 18px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.orx-fit-list li:hover {
  border-color: rgba(157, 47, 47, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 18px 30px -24px rgba(45, 25, 30, 0.6);
}

.orx-fit-list li:hover .fa { background: var(--crx-maroon); color: #fff; }

/* ---------- The ORA AI Agent ---------- */

.orx-agent-copy p {
  font-size: 17px;
  line-height: 1.8;
}

.orx-agent-actions { margin-top: 22px; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
  .orx .crx-stage-dot { letter-spacing: 0.06em; }
}

@media (max-width: 991px) {
  .orx-split,
  .orx-gov-grid { grid-template-columns: minmax(0, 1fr); }
  .orx-split { gap: 20px; }
  .orx-outcome-grid { grid-template-columns: minmax(0, 1fr); }
  .orx-fit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orx-kit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .orx-kit-list li,
  .orx-kit-list li:nth-child(3n+1):last-child,
  .orx-kit-list li:nth-child(3n+1):nth-last-child(2),
  .orx-kit-list li:nth-child(3n+1):nth-last-child(2) + li { grid-column: auto; }
  /* 10 cards fill 5 even rows here; keep Co-pilot styled like its neighbours. */
  .orx-kit-list li:nth-child(3n+1):last-child { align-items: flex-start; border-color: var(--crx-line); background: #fff; }
  .orx-kit-list li:nth-child(3n+1):last-child .orx-kit-icon { background: var(--orx-tint); color: var(--crx-maroon); }
}

@media (max-width: 767px) {
  .orx { --orx-pad: 32px; }
  .orx-lead,
  .orx-agent-copy p { font-size: 16px; }
  .orx-hero-actions .crx-btn,
  .orx-agent-actions .crx-btn { flex: 1 1 100%; width: 100%; justify-content: center; }

  .orx-kit-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .orx-kit-list li { padding: 14px 16px; }
  .orx-outcome { padding: 24px 20px; }
  .orx-fit-list { gap: 10px; }
  .orx-fit-list li { padding: 18px 10px; font-size: 14px !important; }
}
