/* ═══════════════════════════════════════════════════════════════
   QUANTOS · Global Stylesheet
   One system across every page. Matte black, emerald accent,
   editorial restraint. No gradients-for-the-sake-of-it.
   ═══════════════════════════════════════════════════════════════ */


/* ── Base ── */
::selection { background: var(--em-40); color: var(--ink-1); }

.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--page-pad); width: 100%; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace; }

/* ── Type primitives ── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: var(--fs-mono-xs); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--em);
}


.h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02; letter-spacing: -0.038em;
  font-weight: 800; text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.04; letter-spacing: -0.034em;
  font-weight: 800; text-wrap: balance;
}
.h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15; letter-spacing: -0.025em;
  font-weight: 700;
}
.lead {
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7;
  color: var(--ink-3); max-width: 64ch;
}
.em-text { color: var(--em); font-style: normal; }
.em-text em { font-style: normal; color: var(--em); }

.divider { height: 1px; background: var(--line); margin: 0 var(--page-pad); max-width: var(--page-max); margin-left: auto; margin-right: auto; }

/* ═══ SECTION SHELL ═══ */
.sec { padding: 120px 0; position: relative; }
.sec--tight { padding: 80px 0; }
.sec__head { max-width: 820px; margin-bottom: 64px; }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec__head--center .lead { margin-left: auto; margin-right: auto; }
.sec__h2 {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 800; letter-spacing: -0.034em; line-height: 1.04;
  color: var(--ink-1);
  text-wrap: balance;
  margin: 16px 0 20px;
}
.sec__h2 em { font-style: normal; color: var(--em); }
.sec__lead {
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7;
  color: var(--ink-3); max-width: 64ch;
}
.sec__lead strong { color: var(--ink-2); font-weight: 600; }

/* ═══ PAGE HEADER (for sub-pages) ═══ */
.pagehead {
  padding: calc(var(--nav-h) + 96px) 0 72px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.pagehead::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 20% 0%, var(--em-08), transparent 60%);
  pointer-events: none;
}
.pagehead__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; position: relative; }
@media (max-width: 900px) { .pagehead__grid { grid-template-columns: 1fr; gap: 32px; } }
.pagehead__h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.04; letter-spacing: -0.036em;
  font-weight: 800; text-wrap: balance; margin: 20px 0 24px;
}
.pagehead__h1 em { font-style: normal; color: var(--em); }
.pagehead__lead { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.65; color: var(--ink-2); max-width: 56ch; }
.pagehead__lead strong { color: var(--ink-1); font-weight: 600; }
.pagehead__meta {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 28px;
  background: var(--surface-1); border: 1px solid var(--line-2); border-radius: 14px;
}
.pagehead__meta-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px dashed var(--line-2);
}
.pagehead__meta-row:last-child { border-bottom: none; padding-bottom: 0; }
.pagehead__meta-k {
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4);
}
.pagehead__meta-v { font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-md); color: var(--ink-1); font-weight: 500; text-align: right; }
.pagehead__meta-v.em { color: var(--em); }

/* ═══ EYEBROW PILL (hero-style) ═══ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow-pill {
  background: var(--em); color: #0a0a0b;
  padding: 3px 8px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
}

/* ═══ GENERIC CARD ═══ */
.card {
  padding: 28px;
  background: var(--surface-1); border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 240ms var(--ease), background 240ms var(--ease), transform 240ms var(--ease);
}
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card__h { font-size: 17px; font-weight: 700; color: var(--ink-1); letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 10px; }
.card__body { font-size: var(--fs-mono-md); line-height: 1.65; color: var(--ink-3); }
.card__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-xs); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--em);
  margin-bottom: 12px;
}

/* ═══ CTA BAND ═══ */
.cta {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg), rgba(242,242,238,0.04) 50%, var(--bg));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta__h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800; letter-spacing: -0.036em; line-height: 1.04;
  color: var(--ink-1); margin-bottom: 20px; text-wrap: balance;
}
.cta__h2 em { font-style: normal; color: var(--em); }
.cta__sub {
  font-size: var(--fs-mono-lg); line-height: 1.65; color: var(--ink-3);
  max-width: 56ch; margin: 0 auto 36px;
}
.cta__actions { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ═══ UTILS ═══ */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--em-12); border: 1px solid var(--em-20); color: var(--em);
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-xs); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.pill--neutral {
  background: var(--surface-2); border-color: var(--line-2); color: var(--ink-3);
}
.pill--amber { background: var(--amber-dim); border-color: rgba(245,158,11,0.25); color: var(--amber); }
.pill--red { background: var(--red-dim); border-color: rgba(239,68,68,0.25); color: var(--red); }

.mono-meta {
  font-family: 'IBM Plex Mono', monospace; font-size: var(--fs-mono-xs); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
}

/* Focus */
:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; border-radius: 6px; }



/* QUANTOS ENTERPRISE INNER-PAGE SHELL — START */

/*
  Applies only to inner pages using quantos.css.
  The protected homepage architecture subsystem does not load this shell.
*/

/* ── Page frame ─────────────────────────────────────────────── */

body .page {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* ── Section rhythm ─────────────────────────────────────────── */

body .sec {
  position: relative;
  padding-block: 96px;
}

body .sec--tight {
  padding-block: 64px;
}

body .sec__head {
  max-width: 760px;
  margin-bottom: 48px;
}

body .sec__head--center {
  margin-inline: auto;
  text-align: center;
}

body .sec__h2 {
  max-width: 19ch;
  margin: 14px 0 18px;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink-1);
  text-wrap: balance;
}

body .sec__lead {
  max-width: 68ch;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.72;
  color: var(--ink-3);
}

/* ── Structural dividers ────────────────────────────────────── */

body .divider {
  width: auto;
  max-width: calc(var(--page-max) - (var(--page-pad) * 2));
  height: 1px;
  margin-inline: auto;
  background: var(--line);
}

/* ── Institutional page header ──────────────────────────────── */

body .pagehead {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: calc(var(--nav-h) + 88px) 0 88px;
  border-bottom: 1px solid var(--line);
}

body .pagehead__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(48px, 7vw, 104px);
}

body .pagehead__content > div:first-child {
  min-width: 0;
}

body .pagehead__h1 {
  max-width: 18ch;
  margin: 18px 0 24px;
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

body .pagehead__lead {
  max-width: 62ch;
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.72;
  color: var(--ink-2);
}

/* ── Metadata becomes an information rail, not a SaaS card ─── */

body .pagehead .pagehead__meta {
  display: flex;
  flex-direction: column;
  gap: 0;

  padding: 4px 0 4px 28px !important;

  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid var(--line-2) !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body .pagehead .pagehead__meta-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  align-items: start;
  gap: 18px;

  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

body .pagehead .pagehead__meta-row:first-child {
  padding-top: 0;
}

body .pagehead .pagehead__meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

body .pagehead .pagehead__meta-k {
  font-size: var(--fs-mono-xs);
  line-height: 1.5;
  letter-spacing: 0.14em;
}

body .pagehead .pagehead__meta-v {
  min-width: 0;
  font-size: var(--fs-mono-md);
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

/* ── Controlled surfaces ────────────────────────────────────── */

body .pagehead__meta,
body .di-grid-3,
body .loop-strip,
body .fracture-map,
body .compare-table {
  border-color: var(--line);
}

body .di-cell,
body .loop-step,
body .versus-card,
body .fracture-map__cell {
  border-radius: 0;
}

body .versus-card {
  padding: 30px;
  border-color: var(--line);
  border-radius: 8px;
}

body .di-grid-3,
body .loop-strip,
body .fracture-map,
body .compare-table,
body .compare-wrap {
  border-radius: 8px;
}

/* ── Long-form reading ──────────────────────────────────────── */

body .doctrine {
  max-width: 820px;
}

body .doctrine p {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.82;
}

body .control-strip {
  max-width: 980px;
  padding: 26px 30px;
  border-left-width: 1px;
  font-size: 16px;
  line-height: 1.8;
}

/* ── Responsive shell ───────────────────────────────────────── */

@media (max-width: 1024px) {
  body .pagehead__grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
    gap: 48px;
  }

  body .sec {
    padding-block: 80px;
  }

  body .sec--tight {
    padding-block: 56px;
  }
}

@media (max-width: 900px) {
  body .pagehead {
    padding: calc(var(--nav-h) + 72px) 0 72px;
  }

  body .pagehead__grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 44px;
  }

  body .pagehead .pagehead__meta {
    padding: 24px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid var(--line-2) !important;
  }

  body .pagehead .pagehead__meta-row {
    grid-template-columns: minmax(110px, 0.35fr) minmax(0, 1fr);
  }

  body .sec__head {
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  body .page {
    padding-inline: 20px;
  }

  body .pagehead {
    padding: calc(var(--nav-h) + 52px) 0 56px;
  }

  body .pagehead__h1 {
    max-width: none;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.03;
  }

  body .pagehead__lead {
    font-size: 16px;
    line-height: 1.68;
  }

  body .pagehead .pagehead__meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  body .sec {
    padding-block: 64px;
  }

  body .sec--tight {
    padding-block: 48px;
  }

  body .sec__head {
    margin-bottom: 34px;
  }

  body .sec__h2 {
    max-width: none;
    font-size: clamp(27px, 8vw, 36px);
  }

  body .sec__lead {
    font-size: 16px;
  }

  body .versus-card {
    padding: 24px 22px;
  }

  body .control-strip {
    padding: 22px 20px;
  }
}

/* QUANTOS ENTERPRISE INNER-PAGE SHELL — END */
