/* ================================================================
   IntrinsicIQ — Shared public/editorial page system
   Used by About, Insights, Pricing, Methodology, and Disclaimer.
   The public shell owns navigation/footer; this file owns readable
   long-form content and instrument-like editorial components.
   ================================================================ */

.page-content {
  position: relative;
  padding: clamp(58px, 7vw, 92px) 24px 112px;
}

.page-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 360px;
  pointer-events: none;
  background: var(--ambient-gold);
  opacity: .62;
}

.page-wrap {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
}

/* Masthead ------------------------------------------------------ */

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.page-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gilt);
}

.page-h1 {
  max-width: 790px;
  margin-bottom: 17px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 62px);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: .98;
  text-wrap: balance;
}

.page-lead {
  max-width: 720px;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.78;
}

/* Long-form hierarchy ------------------------------------------ */

.page-section { margin-bottom: 58px; }

.page-h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.page-h2::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 1px;
  background: var(--gilt);
}

.page-h3 {
  margin: 27px 0 10px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
}

.page-p,
.method-desc,
.disc-p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.82;
}

.page-p,
.disc-p { margin-bottom: 14px; }
.page-p strong,
.disc-p strong,
.method-desc strong { color: var(--text); font-weight: 600; }
.page-p a,
.disc-p a { color: var(--gold-dim); text-decoration: none; }
.page-p a:hover,
.disc-p a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* Numbered methodology blocks ---------------------------------- */

.method-block {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
  padding: 21px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.method-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: var(--gold-bg);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
}

.method-body { min-width: 0; }

.method-title {
  margin: 3px 0 8px;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

/* Formula blocks ------------------------------------------------ */

.formula-block {
  position: relative;
  overflow-x: auto;
  margin: 17px 0 22px;
  padding: 18px 20px 17px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold-dim);
  border-radius: var(--r-panel);
  background: var(--surface-alt);
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;
}

.formula-label {
  display: block;
  margin-bottom: 9px;
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.formula-var { color: var(--gold); }

.formula-note {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border-zinc);
  color: var(--text-dim);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
}

/* Lists and callouts ------------------------------------------- */

.page-list {
  list-style: none;
  margin: 10px 0 22px;
  padding: 0;
}

.page-list li {
  position: relative;
  padding: 9px 0 9px 23px;
  border-bottom: 1px solid var(--border-zinc);
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.68;
}

.page-list li:last-child { border-bottom: 0; }
.page-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 5px;
  width: 6px;
  height: 1px;
  background: var(--gold-dim);
}

.page-list li strong { color: var(--text); }
.page-list.plain-list li { padding-block: 6px; border-bottom: 0; }

.page-callout {
  position: relative;
  margin: 23px 0 32px;
  padding: 18px 20px;
  border: 1px solid var(--gold-line);
  border-left: 2px solid var(--gold);
  border-radius: var(--r-panel);
  background: linear-gradient(110deg, var(--gold-bg), transparent 80%);
}

.page-callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.75;
}

.page-callout p strong { color: var(--text); }
.page-callout.callout-red { border-color: rgba(239,68,68,.3); border-left-color: var(--red); background: var(--red-bg); }
.page-callout.callout-red p { color: var(--text-muted); }
.page-callout.callout-blue { border-color: rgba(96,165,250,.28); border-left-color: var(--blue); background: var(--blue-bg); }
.page-callout.callout-blue p { color: var(--text-muted); }

/* Shared data tables ------------------------------------------- */

.weight-table,
.team-table {
  width: 100%;
  margin: 15px 0 28px;
  border-collapse: collapse;
  border: 1px solid var(--border-zinc);
  background: var(--surface);
  font-size: 12px;
}

.weight-table th {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
}

.weight-table td,
.team-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-zinc);
  color: var(--text-muted);
  line-height: 1.62;
  vertical-align: top;
}

.weight-table td:first-child,
.team-table td:first-child { color: var(--text); font-weight: 600; }
.weight-table tr:last-child td,
.team-table tr:last-child td { border-bottom: 0; }
.team-table td:first-child { width: 190px; }
.wt-mono { color: var(--gold); font-family: var(--mono); font-size: 11px; }

/* Philosophy and technology ------------------------------------ */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 31px;
}

.pillar-card {
  position: relative;
  padding: 21px 19px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: -1px auto auto 18px;
  width: 32px;
  height: 1px;
  background: var(--gilt);
}

.pillar-title {
  margin-bottom: 10px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pillar-body { color: var(--text-muted); font-size: 12px; line-height: 1.72; }

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.stack-tag {
  padding: 5px 9px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-ctl);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 10px;
}

/* Pricing base. pricing.css adds its page composition. --------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
  margin: 32px 0 64px;
}

.pricing-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 25px 22px 22px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.pricing-card.pricing-featured {
  border-color: var(--gold-line);
  background: linear-gradient(150deg, var(--gold-bg), var(--surface) 32%);
}

.pricing-card.pricing-featured::before {
  content: "";
  position: absolute;
  inset: -1px 20px auto;
  height: 2px;
  background: var(--gilt);
}

.pricing-badge {
  align-self: flex-start;
  margin-bottom: 13px;
  padding: 4px 8px;
  border: 1px solid var(--gold-line);
  border-radius: var(--r-ctl);
  background: var(--gold-bg);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pricing-tier {
  margin-bottom: 5px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.pricing-tier-name {
  color: var(--text);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
}

.pricing-card.pricing-featured .pricing-tier-name { color: var(--gold); }

.pricing-price {
  margin: 18px 0 5px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.pricing-price sub {
  margin-left: 2px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
  vertical-align: baseline;
}

.pricing-desc {
  min-height: 86px;
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--border-zinc);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.62;
}

.pricing-features { flex: 1; margin: 0; padding: 0; list-style: none; }

.pricing-features li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--border-zinc);
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.pricing-features li:last-child { border-bottom: 0; }
.pricing-features li::before { content: "✓"; position: absolute; top: 7px; left: 0; color: var(--green); font-size: 10px; font-weight: 700; }
.pricing-features li.feat-no { color: var(--text-dim); }
.pricing-features li.feat-no::before { content: "–"; color: var(--text-dim); font-weight: 400; }
.pricing-features li.feat-divider {
  margin-top: 7px;
  padding: 12px 0 5px;
  border-bottom: 0;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  pointer-events: none;
  text-transform: uppercase;
}
.pricing-features li.feat-divider::before { display: none; }

/* Disclaimer and insights bases -------------------------------- */

.disc-section {
  margin-bottom: 32px;
  padding: 24px 25px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.disc-h2 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-zinc);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.insights-hero {
  margin-bottom: 52px;
  padding: 54px 30px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: linear-gradient(145deg, var(--gold-bg), var(--surface) 48%);
  text-align: left;
}

.insights-hero h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.05;
}

.insights-hero p { max-width: 620px; color: var(--text-muted); font-size: 14px; line-height: 1.75; }

.insights-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.insights-card {
  padding: 22px 20px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-panel);
  background: var(--surface);
}

.insights-card-label {
  margin-bottom: 10px;
  color: var(--gold-dim);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.insights-card-title { margin-bottom: 8px; color: var(--text); font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.4; }
.insights-card-body { color: var(--text-muted); font-size: 12px; line-height: 1.68; }
.coming-soon-tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 4px 8px;
  border: 1px solid var(--border-zinc);
  border-radius: var(--r-ctl);
  background: var(--surface-alt);
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Ivory --------------------------------------------------------- */

[data-theme="light"] .page-content::before { opacity: .42; }
[data-theme="light"] .pricing-card.pricing-featured { background: linear-gradient(150deg, var(--gold-bg), var(--surface) 40%); }

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

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 25px; }
  .pricing-desc { min-height: 0; }
  .pillar-grid,
  .insights-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-content { padding: 48px 16px 78px; }
  .page-lead { margin-bottom: 45px; padding-bottom: 24px; font-size: 14px; }
  .page-section { margin-bottom: 46px; }
  .page-h2 { font-size: 22px; }
  .method-block { grid-template-columns: 30px minmax(0, 1fr); gap: 13px; padding: 17px; }
  .method-num { width: 28px; height: 28px; }
  .pillar-grid,
  .insights-cards { grid-template-columns: 1fr; }
  .team-table,
  .team-table tbody,
  .team-table tr,
  .team-table td { display: block; width: 100%; }
  .team-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border-zinc); }
  .team-table tr:last-child { border-bottom: 0; }
  .team-table td { padding: 3px 0; border: 0; }
  .team-table td:first-child { width: auto; }
  .disc-section { padding: 20px 18px; }
  .insights-hero { padding: 36px 22px; }
}

@media print {
  .page-content { padding: 0; }
  .page-content::before { display: none; }
  .page-wrap { width: 100%; max-width: none; }
}
