/* ===========================================================================
   SHOW.INSTITUTE MARKETING SITE
   Layout and page-specific composition only. Every colour, size, space and
   radius comes from ../../shared/tokens/tokens.css.
   NO HEX LITERALS.
   =========================================================================== */

/* `tokens.css` and `base.css` beside this file are SYMLINKS to
   ../../shared/tokens/. They are not copies and cannot drift — they ARE the
   files the console imports.

   The symlink exists because a static server rooted at site/ cannot serve a
   path above its own root: importing ../../shared/tokens/tokens.css directly
   404s, every var() becomes invalid, and the page renders completely unstyled
   while site.css itself returns 200. That failure looks like a CSS bug and is
   a path bug.

   A deployment that cannot follow symlinks must dereference them at build time
   (`cp -RL site/ dist/`). It must never replace them with checked-in copies —
   a second copy of the token file is the thing this whole system exists to
   prevent. */
@import url("./tokens.css");
@import url("./base.css");

body { font-size: var(--text-md); }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule-subtle);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 62px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4ch;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  text-decoration: none;
}
.wordmark .mark {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  border-radius: 1px;
  background: var(--accent-600);
  transform: translateY(-0.06em);
}
.nav { display: flex; gap: var(--space-5); align-items: center; }
.nav a {
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text-primary); }
.nav a[aria-current="page"] { font-weight: var(--weight-medium); }

@media (max-width: 860px) {
  .nav { display: none; }
  .masthead-inner { justify-content: space-between; }
}

/* -------------------------------------------------------------------- hero */

.hero { padding: var(--space-11) 0 var(--space-9); }
.hero .display { margin-bottom: var(--space-5); max-width: 17ch; }
.hero .lede { font-size: var(--text-lg); max-width: 56ch; }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-7); }
.hero-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-tertiary); }

/* No accent bar here.
   This is a pull quote, and the bar was doing decorative work the typography
   already does: display face, larger size, generous space above. An accent
   rule on a quote is a habit, not a signal — and in this design system a
   coloured edge means STATUS, so spending one on a sentence with no status
   devalues every bar that has one. */
.hero-claim {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--text-primary);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule);
  max-width: 46ch;
}

/* ------------------------------------------------------------------ layout */

.section { padding: var(--space-9) 0; }
.section-sunken { background: var(--paper-sunken); border-block: 1px solid var(--rule-subtle); }
.section-ink {
  background: var(--stage-900);
  color: var(--text-inverse);
}
.section-head { max-width: 60ch; margin-bottom: var(--space-7); }
.section-head h2 { margin-bottom: var(--space-4); }

/* ----------------------------------------------------------- feature cards */

.feature {
  background: var(--paper-raised);
  border: 1px solid var(--rule-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.feature h3 { font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.feature p { font-size: var(--text-base); color: var(--text-secondary); margin: 0; }
.feature .slice {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent-700);
}
.feature-starred { border-color: var(--accent-100); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------------ problem list */

.problems { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px) { .problems { grid-template-columns: minmax(0,1fr); } }
.problem {
  border-top: 2px solid var(--accent-600);
  padding-top: var(--space-4);
}
.problem h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}
.problem p { font-size: var(--text-base); color: var(--text-secondary); margin: 0; }

/* -------------------------------------------------------------- chain flow */

.chain {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin: var(--space-6) 0;
}
.chain-step {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--rule);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  background: var(--paper-raised);
  white-space: nowrap;
}
.chain-step-own {
  border-color: var(--accent-600);
  background: var(--accent-050);
  color: var(--accent-700);
  font-weight: var(--weight-medium);
}
.chain-sep { color: var(--text-tertiary); font-size: var(--text-sm); }

/* ---------------------------------------------------------------- pricing */

.price-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0,1fr)); align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: minmax(0,1fr); } }
.price {
  background: var(--paper-raised);
  border: 1px solid var(--rule-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.price-featured { border-color: var(--accent-600); }
.price h3 { font-family: var(--font-body); font-size: var(--text-lg); margin-bottom: var(--space-2); }
.price .amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  display: block;
  margin: var(--space-4) 0 var(--space-1);
}
.price .per { font-size: var(--text-sm); color: var(--text-tertiary); }
.price ul { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.price li {
  font-size: var(--text-base);
  color: var(--text-secondary);
  padding-left: var(--space-5);
  position: relative;
}
.price li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--accent-600);
}

/* --------------------------------------------------------------- ecosystem */

.eco-grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 860px) { .eco-grid { grid-template-columns: minmax(0,1fr); } }
.eco {
  border: 1px solid var(--border-inverse-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background: var(--stage-800);
}
.eco h3 { color: var(--text-inverse); font-family: var(--font-body); font-size: var(--text-md); margin-bottom: var(--space-2); }
.eco p { color: var(--text-inverse-secondary); font-size: var(--text-base); margin: 0; }
.eco-self { border-color: var(--accent-600); }
.section-ink h2, .section-ink h3 { color: var(--text-inverse); }
.section-ink p { color: var(--text-inverse-secondary); }
.section-ink .eyebrow { color: var(--text-inverse-tertiary); }
.section-ink a { color: var(--action-text); }  /* an action: the accent (S0-104) */

/* ------------------------------------------------------------------ tables */

.compare th:first-child { width: 30%; }
.compare td { font-size: var(--text-base); color: var(--text-secondary); }
.compare td strong { color: var(--text-primary); font-weight: var(--weight-semibold); }

/* ------------------------------------------------------------------ figure */

.calc-demo {
  background: var(--stage-900);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.75;
  overflow-x: auto;
}
.calc-demo .lbl { color: var(--text-inverse-secondary); }
.calc-demo .val { color: var(--text-inverse); }
.calc-demo .hit { color: var(--attention-400); }
.calc-demo .out { color: var(--confirmed-400); font-weight: var(--weight-semibold); }
.calc-demo .sep { color: var(--text-inverse-tertiary); }
.calc-row { display: flex; justify-content: space-between; gap: var(--space-6); }

/* ------------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--rule-subtle);
  padding: var(--space-8) 0 var(--space-7);
  background: var(--paper-sunken);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.foot h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: var(--space-2); }
.foot a { font-size: var(--text-base); color: var(--text-secondary); text-decoration: none; }
.foot a:hover { color: var(--text-primary); }
.foot-legal {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-subtle);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ------------------------------------------------------------------- notes */

/* Same reasoning as the console's .callout: the tint and the hairline already
   carry the meaning, and a glyph carries it without relying on colour at all.
   The bar was a third restatement holding an asymmetric radius in place. */
.disclaimer {
  /* See the console's .callout: grid splits sibling text nodes into separate
     items and shreds the sentence. Position the glyph instead. */
  position: relative;
  background: var(--attention-50);
  border: 1px solid var(--attention-200);
  /* Left value in the shorthand, not a separate padding-left: a shorthand
     declared afterwards resets the longhand and buries the glyph. */
  padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 1.3rem);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: var(--measure);
}
.disclaimer::before {
  content: "!";
  position: absolute;
  left: var(--space-5);
  top: var(--space-4);
  width: 1.2rem;
  font-weight: var(--weight-bold);
  color: var(--attention-700);
  text-align: center;
  line-height: var(--leading-body);
}
.disclaimer strong { color: var(--attention-900); }
