/* ============================================================================
   Public /methodology page ("How Our Solutions Are Made")
   ============================================================================
   Long-form article adapted from Documentations/methodology-page.HTM onto the
   brand tokens from site.css (--cortex-*). Sits on _LoginLayout (body.login-page,
   overflow-y:auto), so the page is a normal in-flow scrolling document — the
   same shape the postflop landing sections use. Loaded together with
   get-cortex.css, which provides the reused .landing-brand-name / .landing-cta.
============================================================================ */

.methodology-page {
  /* .landing-cta's glow shadows reference these; they're normally defined on
     .landing-page, which this page doesn't use. */
  --landing-red-glow:  rgba(175, 0, 0, 0.32);
  --landing-red-glow2: rgba(175, 0, 0, 0.16);

  position: relative;
  z-index: 2;               /* above body.login-page::before (the gradient layer) */
  min-height: 100dvh;
  color: var(--cortex-text);
  font-family: var(--cortex-font-body);
  line-height: 1.7;
  text-align: left;
}

/* Un-pin the fixed anon compliance bar so it flows below the article instead of
   floating over the scrolling content (same trick as the postflop landing). */
body.login-page:has(.methodology-page) .cortex-compliance--bar {
  position: static;
  justify-content: center;
}

body.login-page:has(.methodology-page) {
  padding-bottom: 0;
}

/* --- Article column ------------------------------------------------------ */
.meth-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.meth-section {
  padding: 48px 0;
}

.meth-section--first {
  padding-top: 0;
}

/* --- Top nav -------------------------------------------------------------- */
.meth-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 22, 27, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cortex-border);
}

.meth-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.meth-brand {
  font-size: 18px;
  text-decoration: none;
}

.meth-nav-cta {
  padding: 10px 18px;
  font-size: 11px;
  text-decoration: none;
}

/* --- Type ----------------------------------------------------------------- */
.methodology-page h1 {
  font-family: var(--cortex-font-brand);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 16px;
}

.methodology-page h2 {
  font-family: var(--cortex-font-brand);
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.methodology-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}

.methodology-page p {
  color: var(--cortex-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.methodology-page p b {
  color: var(--cortex-text);
}

/* Article links only (.meth-wrap): the nav brand + CTAs outside it keep their
   get-cortex.css identity, which a bare `.methodology-page a` rule out-ranks. */
.meth-wrap a {
  color: var(--cortex-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meth-wrap a:hover {
  color: var(--cortex-purple);
}

/* The final CTA sits inside .meth-wrap — exempt it from the article link paint. */
.meth-wrap a.landing-cta,
.meth-wrap a.landing-cta:hover {
  color: #fff;
  text-decoration: none;
}

.meth-kicker {
  color: var(--cortex-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* --- Hero ----------------------------------------------------------------- */
.meth-hero {
  padding: 64px 0 40px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(175, 0, 0, 0.12), transparent);
}

.meth-lead {
  font-size: 1.12rem;
}

/* --- Pipeline (4-step grid with arrows) ------------------------------------ */
.meth-pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 28px 0 8px;
  text-align: center;
}

.meth-pipe {
  background: var(--cortex-surface);
  border: 1px solid var(--cortex-border);
  border-radius: 12px;
  padding: 18px 12px;
  position: relative;
}

.meth-pipe b {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: var(--cortex-text);
}

.meth-pipe span {
  font-size: 0.78rem;
  color: var(--cortex-text-muted);
}

.meth-pipe:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cortex-purple);
  font-weight: 800;
  z-index: 2;
}

@media (max-width: 700px) {
  .meth-pipeline { grid-template-columns: 1fr 1fr; }
  .meth-pipe::after { display: none; }
}

/* --- Stat cards ------------------------------------------------------------ */
.meth-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.meth-stat {
  background: var(--cortex-surface);
  border: 1px solid var(--cortex-border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}

.meth-stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--cortex-text);
  font-family: var(--cortex-font-brand);
}

.meth-stat span {
  font-size: 0.85rem;
  color: var(--cortex-text-muted);
}

@media (max-width: 640px) {
  .meth-stats { grid-template-columns: 1fr; }
}

/* --- Distribution chart ----------------------------------------------------- */
.meth-chart {
  background: var(--cortex-surface);
  border: 1px solid var(--cortex-border);
  border-radius: 14px;
  padding: 26px;
  margin: 26px 0;
}

.meth-chart h4 {
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: var(--cortex-text);
}

.meth-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
}

.meth-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--cortex-purple), var(--cortex-blue));
  border-radius: 5px 5px 0 0;
  position: relative;
}

.meth-bar i {
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-style: normal;
  font-size: 0.72rem;
  color: var(--cortex-text-muted);
}

.meth-xlabels {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.meth-xlabels span {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: var(--cortex-text-muted);
}

.meth-chart-src {
  font-size: 0.75rem;
  color: var(--cortex-text-muted);
  margin-top: 14px;
  margin-bottom: 0;
}

/* --- Comparison table -------------------------------------------------------- */
.meth-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.92rem;
}

.meth-table th,
.meth-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--cortex-border);
}

.meth-table th {
  color: var(--cortex-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meth-table td {
  color: var(--cortex-text-muted);
}

.meth-table td:first-child {
  color: var(--cortex-text);
  font-weight: 600;
}

/* --- Callout + final CTA ------------------------------------------------------ */
.meth-callout {
  border-left: 3px solid var(--cortex-cyan);
  background: var(--cortex-surface);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.meth-callout p {
  margin: 0;
  font-size: 0.97rem;
}

.meth-final-cta-row {
  text-align: center;
  margin: 40px 0 8px;
}

.meth-final-cta {
  font-size: 13px;
  padding: 16px 32px;
  text-decoration: none;
}
