/* ════════════════════════════════════════════════════════════
   About page - Solo 2027 reskin
   Hero swapped to the same Solo pattern as the homepage / SoloLab /
   SoloCognition landings so the entire marketing surface feels like
   one product. Legacy content card classes (origin-card, step-block,
   loop-box, eou-card) get Solo brand chrome via overrides below.
   ════════════════════════════════════════════════════════════ */

/* Hero rules moved to .solo-marketing-hero in solocogs-theme.css
   (2026-06-11). The about page hero now uses the canonical class. */

/* Origin cards - Solo brand chrome with mastery left-rail accent */
.origin-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.25rem; margin:2rem 0; }
.origin-card {
  background: var(--solo-bg-elevated);
  border: 1px solid var(--solo-divider);
  border-radius: var(--solo-radius);
  box-shadow: var(--solo-shadow-1);
  padding: 1.5rem 1.6rem;
  text-align: left;
  position: relative;
  overflow: hidden;
}
.origin-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--solo-mastery) 0%, var(--solo-mastery-deep) 100%);
}
.origin-card .oc-num {
  display: inline-block;
  background: var(--solo-mastery-pale);
  color: var(--solo-mastery-deep);
  font-family: var(--solo-font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 6px;
  margin-bottom: 0.65rem;
  opacity: 1;
}
.origin-card .oc-title {
  font-family: var(--solo-font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--solo-heading-color, var(--solo-navy));
  letter-spacing: -0.005em;
  margin-bottom: 0.4rem;
}
.origin-card .oc-body { font-family: var(--solo-font-body); font-size: 0.88rem; color: var(--solo-text); line-height: 1.65; }
@media(max-width:640px){ .origin-grid { grid-template-columns:1fr; } }

/* .solo-icon-frame moved to css/solocogs-theme.css (shared component
   used by about.html + how-it-works.html). Don't redefine here. */

/* Hero pricing pill - subtle "from £X/mo" hint right under the hero sub */
.hero-pricing-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--solo-bg-elevated);
  border: 1px solid var(--solo-divider);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-top: 1.1rem;
  font-family: var(--solo-font-head);
  font-size: 0.85rem; font-weight: 600;
  color: var(--solo-heading-color, var(--solo-navy));
  text-decoration: none;
  box-shadow: var(--solo-shadow-1);
  transition: border-color var(--solo-fast) var(--solo-ease),
              box-shadow var(--solo-fast) var(--solo-ease),
              transform var(--solo-fast) var(--solo-ease);
}
.hero-pricing-pill:hover {
  border-color: var(--solo-mastery);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18), var(--solo-shadow-1);
  transform: translateY(-1px);
}
.hero-pricing-pill strong { color: var(--solo-mastery-deep); }
.hero-pricing-pill::before {
  content: ''; width: 8px; height: 8px;
  background: var(--solo-mastery);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.25);
}

/* About-page tabs - 3-way audience routing under the hero / triptych.
   Only one panel is visible at a time; URL hash persists the choice. */
.about-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  max-width: 880px;
  margin: 1.5rem auto 2.5rem;
  padding: 0.45rem;
  background: var(--solo-bg);
  border: 1px solid var(--solo-divider);
  border-radius: 14px;
  position: sticky;
  top: 76px;                  /* clears the fixed nav bar */
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(241, 245, 249, 0.85);
}
.about-tab {
  flex: 1; min-width: 220px;
  padding: 0.75rem 1rem;
  background: transparent;
  border: 0;
  /* Pill - per locked button-shape rule (CLAUDE.md §2). */
  border-radius: 999px;
  font-family: var(--solo-font-head);
  font-size: 0.92rem; font-weight: 600;
  color: var(--solo-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  text-align: center;
  line-height: 1.25;
}
.about-tab:hover:not(.is-active) {
  background: var(--solo-bg-elevated);
  color: var(--solo-heading-color, var(--solo-navy));
}
.about-tab.is-active {
  background: var(--solo-mastery);
  color: var(--solo-heading-color, var(--solo-navy));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.10);
}
.about-tab:focus-visible { outline: 2px solid var(--solo-mastery-deep); outline-offset: 2px; }
.about-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.about-panel { display: none; animation: about-fade-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.about-panel.is-active { display: block; }
@keyframes about-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .about-panel { animation: none; }
  .about-tab   { transition: none; }
}
@media (max-width: 640px) {
  .about-tab-nav { position: static; backdrop-filter: none; background: var(--solo-bg); }
  .about-tab { flex: 1 1 100%; min-width: 0; }
}

/* Step blocks - clean Solo cards */
.step-list { display:flex; flex-direction:column; gap:10px; }
.step-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--solo-bg-elevated);
  border: 1px solid var(--solo-divider);
  border-radius: var(--solo-radius-sm);
  box-shadow: var(--solo-shadow-1);
  padding: 1rem 1.25rem;
  text-align: left;
}
.step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--solo-mastery);
  color: var(--solo-heading-color, var(--solo-navy));
  font-family: var(--solo-font-head);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}
.step-title { font-family: var(--solo-font-head); font-size: 0.95rem; font-weight: 600; color: var(--solo-heading-color, var(--solo-navy)); margin-bottom: 4px; letter-spacing: -0.005em; }
.step-body { font-family: var(--solo-font-body); font-size: 0.88rem; color: var(--solo-text); line-height: 1.6; }

/* Confidence matrix */
.conf-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:1.25rem 0; }
.conf-cell { border-radius: var(--solo-radius-sm); padding:1rem 1.25rem; text-align:left; }
.conf-cell .cc-tags { display:flex; align-items:center; gap:8px; margin-bottom:6px; flex-wrap:wrap; }
.conf-cell .cc-tag { font-family: var(--solo-font-head); font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; letter-spacing: 0.04em; }
.conf-cell .cc-title { font-family: var(--solo-font-head); font-size:0.9rem; font-weight:600; color: var(--solo-heading-color, var(--solo-navy)); margin-bottom:4px; }
.conf-cell .cc-body { font-family: var(--solo-font-body); font-size:0.82rem; color: var(--solo-text); line-height:1.6; }
@media(max-width:560px){ .conf-grid { grid-template-columns:1fr; } }

/* Loop diagram - Solo cards + mastery teal arrows */
.loop-row { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; align-items:center; gap:.5rem; margin:1.5rem 0; }
.loop-box {
  background: var(--solo-bg-elevated);
  border: 1px solid var(--solo-divider);
  border-radius: var(--solo-radius);
  box-shadow: var(--solo-shadow-1);
  padding: 1rem 1.1rem;
  text-align: left;
}
.loop-box .lb-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--solo-mastery-pale); color: var(--solo-mastery-deep);
  margin-bottom: .55rem;
}
.loop-box .lb-icon .solo-icon { stroke: currentColor; width: 20px; height: 20px; }
.loop-box .lb-title { font-family: var(--solo-font-head); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--solo-heading-color, var(--solo-navy)); margin-bottom: 0.3rem; }
.loop-box .lb-body { font-family: var(--solo-font-body); font-size: 0.78rem; color: var(--solo-text); line-height: 1.55; }
.loop-arrow {
  color: var(--solo-mastery-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.loop-arrow .solo-icon { stroke: currentColor; }
@media(max-width:640px){
  .loop-row { grid-template-columns:1fr; }
  .loop-arrow { transform:rotate(90deg); display:block; }
}

/* Schools-tab cards: lock body text to a uniform min-height so all three
   cards' content ends at the same point. Without this the prose lengths
   (6/7/6 lines at the rendered width) make the body bottoms misalign by
   one line, which reads as "almost-but-not-quite intentional". */
#panel-schools .cards-3 .card { display: flex; flex-direction: column; }
#panel-schools .cards-3 .card h3 { min-height: 1.4em; margin: 0 0 0.5rem; }
#panel-schools .cards-3 .card p {
  min-height: 12em;          /* fits ~7 lines at 13px / line-height 1.7 */
  margin: 0;
}
@media (max-width: 720px) {
  #panel-schools .cards-3 .card p { min-height: 0; }
}

/* End-of-Unit result cards - Solo brand chrome with Charcoal header */
.eou-card {
  background: var(--solo-bg-elevated);
  border: 1px solid var(--solo-divider);
  border-radius: var(--solo-radius);
  box-shadow: var(--solo-shadow-1);
  overflow: hidden;
  text-align: left;
  flex: 1;
  min-width: 260px;
}
.eou-header { background: var(--solo-navy); padding: 1rem 1.25rem; }
.eou-flag { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--solo-divider); }
.eou-flag:last-child { border-bottom: none; }
.eou-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }

/* Sections sit on white between slate bands; section-title and section-label
   already inherit Lexend + Solo navy via the theme-solo body class. */
body.theme-solo .section { background: var(--solo-bg-elevated, #FFFFFF); }

/* The "callout" boxes with var(--teal-pale) backgrounds across the page -
   bring them onto the Solo mastery palette. Targets the inline-styled callouts. */
.about-callout-mastery {
  background: var(--solo-mastery-pale) !important;
  border: 1px solid rgba(45, 212, 191, 0.4) !important;
}
.about-callout-mastery-text { color: var(--solo-mastery-deep) !important; }
