/* =========================================================================
   Marketing — shared layout for the Guild's commercial surfaces.
   Wave B of the Eleventy migration (2026-08-14).

   Loaded via `pageCss: /assets/css/marketing.css` in page frontmatter.
   Currently: /join/, /founding/. Intended next: /recommendations/,
   /founding/wall/.

   WHY THIS FILE EXISTS
   /join/ and /founding/ were separate hand-coded pages that had independently
   grown the same components — a tier grid, an FAQ list, a section band. The
   rules were near-identical and drifting apart. /join/ was migrated first
   (2026-08-14) into join.css with a `jn-` prefix; reading /founding/ the same
   day showed roughly 60% overlap, so join.css was renamed here and reprefixed
   `mk-` rather than duplicating the tier grid a second time. That is the same
   failure the site audit flagged at larger scale: `.breadcrumb` defined in ten
   separate stylesheets, where changing a component safely means finding all
   ten. Better to not start a second copy.

   WHY THE mk- PREFIX
   The originals used `.section`, `.tier`, `.faq`, `.cta`, `.counter`, `.btn-
   primary` — names general enough to collide as the stylesheet layer grows.
   `.tier` already collides with lesson.css today. Prefixing ends that class
   of problem for these pages.

   TOKENS ONLY — no raw hex, per the contract at the top of tokens.css. The
   accent token is --forest-pine; both source pages used --forest, which does
   not exist in tokens.css and was silently falling back to inherit.
   ========================================================================= */

.mk-hero,
.mk-section,
.mk-faq,
.mk-founder,
.mk-cta {
  --mk-pad: clamp(20px, 5vw, 56px);
  --mk-wide: 1200px;
  --mk-measure: 720px;
}

/* -------------------------------------------------------------------------
   Hero. Light by default (/join/), dark variant for /founding/.
   ------------------------------------------------------------------------- */

.mk-hero {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
  padding: 120px var(--mk-pad) 80px;
  border-bottom: 1px solid var(--color-rule);
}

.mk-hero--dark {
  background: var(--walnut);
  color: var(--cream);
  padding-bottom: 100px;
  border-bottom: 0;
}

.mk-hero__watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background-image: url('/images/tpg-seal-watermark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.10;
  filter: grayscale(0.30) sepia(0.10);
  pointer-events: none;
  z-index: 0;
}

.mk-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--mk-wide);
  margin: 0 auto;
  text-align: center;
}

.mk-kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: var(--font-weight-sans-emphasis);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 28px;
}

/* Terracotta fails WCAG AA on walnut (2.92:1). tokens.css ships a lifted tint
   at 4.97:1 for dark grounds; the hand-coded pages never picked it up. */
.mk-hero--dark .mk-kicker,
.mk-cta .mk-kicker,
.mk-counter__label { color: var(--color-accent-warm-on-dark); }

.mk-hero h1 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(44px, 6.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--color-text);
  margin-bottom: 28px;
}

.mk-hero--dark h1 {
  font-size: clamp(48px, 7vw, 88px);
  color: var(--cream);
  margin-bottom: 32px;
}

.mk-hero__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.45;
  color: var(--color-text-muted);
  max-width: var(--mk-measure);
  margin: 0 auto;
}

.mk-hero--dark .mk-hero__lede {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: rgba(244, 238, 222, 0.85);
  max-width: 760px;
  margin-bottom: 48px;
}

/* -------------------------------------------------------------------------
   Counter — the inset note in the /founding/ hero. Static copy, not live data.
   ------------------------------------------------------------------------- */

.mk-counter {
  display: inline-block;
  padding: 14px 28px;
  background: rgba(244, 238, 222, 0.08);
  border-left: 3px solid var(--color-accent-warm);
  text-align: left;
}

.mk-counter__label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mk-counter__count {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 22px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------------
   Section band
   ------------------------------------------------------------------------- */

.mk-section {
  padding: 88px var(--mk-pad);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-rule);
}

.mk-section--kraft { background: var(--color-bg-alt); }

.mk-section__inner {
  max-width: var(--mk-wide);
  margin: 0 auto;
  text-align: center;
}

/* Scoped with the parent (0,2,0) so it outranks the prose rule above. */
.mk-section .mk-section__kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  margin-bottom: 16px;
}

.mk-section h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin: 0 auto 28px;
  max-width: var(--mk-measure);
}

/* SPECIFICITY, DELIBERATELY (2026-08-14).
   This was `.mk-section p` — specificity 0,1,1, which silently beat every
   single-class rule on a <p> inside the section. Measured on the live
   hand-coded pages before migration: the offer-banner price (meant to be
   64px), the section kickers (11px), and the tier name / price / sub-text
   (22 / 14 / 12px) were ALL rendering at 17px. The whole tier-card hierarchy
   was flat, and had been since the pages were built. The original stylesheet
   worked around it in one place with `!important` on .tier-note and nowhere
   else.

   The child combinator scopes this to the section's own prose paragraphs and
   leaves every nested component alone. Direct-child components that still
   need to win are scoped with the parent class below (0,2,0). Do not loosen
   this back to a descendant selector. */
.mk-section__inner > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  margin: 0 auto 22px;
  max-width: var(--mk-measure);
}

.mk-section__inner > p.mk-muted { color: var(--color-text-muted); }

.mk-benefits-intro {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(22px, 2.6vw, 28px);
  color: var(--color-text);
  margin: 56px auto 6px;
}

/* Scoped rather than !important — the original needed the escape hatch only
   because the prose rule was a descendant selector. */
.mk-section .mk-benefits-sub {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Benefit cards — /founding/
   ------------------------------------------------------------------------- */

.mk-benefits {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.mk-benefit-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid rgba(42, 33, 27, 0.08);
  overflow: hidden;
  transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.mk-benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.mk-benefit-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #d8caa8 0%, #c4b48f 100%);
  position: relative;
  overflow: hidden;
}

.mk-benefit-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-benefit-card__body { padding: 22px 24px 26px; }

.mk-benefit-card__body h3 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.mk-benefit-card__body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0;
  max-width: none;
}

.mk-benefit-card__body a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(41, 70, 56, 0.4);
}

.mk-benefit-card__body a:hover {
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

@media (max-width: 880px) { .mk-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mk-benefits { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------------
   Offer banner — /founding/
   ------------------------------------------------------------------------- */

.mk-offer-banner {
  margin-top: 48px;
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.mk-offer-banner__price {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 64px;
  line-height: 1;
  color: var(--color-text);
}

/* The "once" qualifier sitting beside the price. Missing this rule on the
   first pass rendered the banner as "$200once" — the span inherited the 64px
   heading size at body colour with no gap. Caught on the preview. */
.mk-offer-banner__price span {
  font-size: 18px;
  font-weight: var(--font-weight-serif-body);
  color: var(--color-text-muted);
  margin-left: 6px;
}

.mk-offer-banner__terms {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 460px;
}

@media (max-width: 560px) { .mk-offer-banner { padding: 28px; } }

/* -------------------------------------------------------------------------
   Tier cards
   ------------------------------------------------------------------------- */

.mk-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px auto 0;
  max-width: 1140px;
}

.mk-tier {
  background: var(--color-bg);
  border: 1px solid var(--color-rule);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.mk-tier--featured {
  border: 2px solid var(--color-accent-warm);
  padding: 31px 27px;
  position: relative;
}

.mk-tier--featured::before {
  content: 'Featured';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-accent-warm);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: var(--font-weight-sans-emphasis);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 5px 12px;
}

.mk-tier__head {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(42, 33, 27, 0.18);
}

.mk-tier__name {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 22px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.mk-tier__price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.mk-tier__list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.mk-tier__list li {
  padding: 8px 0 8px 18px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text);
  position: relative;
}

.mk-tier__list li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-accent-warm);
  font-weight: 700;
}

.mk-tier__cta {
  display: inline-block;
  padding: 12px 18px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  text-decoration: none;
  transition: background var(--transition-default), color var(--transition-default);
}

.mk-tier__cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
}

.mk-tier__cta--primary {
  background: var(--color-accent-warm);
  color: var(--cream);
  border-color: var(--color-accent-warm);
}

.mk-tier__cta--primary:hover {
  background: var(--color-text);
  color: var(--cream);
  border-color: var(--color-text);
}

.mk-tier__sub {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-muted);
  text-align: center;
  min-height: 2.9em; /* reserves two lines so CTAs align across all three cards */
}

.mk-tier__sub a {
  color: var(--color-accent);
  font-weight: 500;
}

.mk-section .mk-tier-note {
  margin-top: 36px;
  font-size: 14px;
  font-style: italic;
  color: var(--color-text-muted);
  max-width: var(--mk-measure);
}

@media (max-width: 980px) {
  .mk-tiers { grid-template-columns: 1fr; max-width: 480px; gap: 28px; }
}

/* -------------------------------------------------------------------------
   Founder's note — /founding/
   ------------------------------------------------------------------------- */

.mk-founder {
  background: var(--color-bg-alt);
  padding: 80px var(--mk-pad);
}

.mk-founder__inner {
  max-width: var(--mk-measure);
  margin: 0 auto;
}

.mk-founder__kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  text-align: center;
  margin-bottom: 18px;
}

.mk-founder h3 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 32px;
}

.mk-founder p {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 22px;
}

.mk-founder__signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  color: var(--color-text-muted);
}

/* -------------------------------------------------------------------------
   Closing CTA band
   ------------------------------------------------------------------------- */

.mk-cta {
  background: var(--walnut);
  color: var(--cream);
  padding: 100px var(--mk-pad);
  text-align: center;
}

.mk-cta__inner {
  max-width: 640px;
  margin: 0 auto;
}

.mk-cta h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 22px;
}

.mk-cta p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(244, 238, 222, 0.85);
  margin: 0 auto 36px;
  max-width: 520px;
}

.mk-btn-primary {
  display: inline-block;
  background: var(--color-accent-warm);
  color: var(--cream);
  text-decoration: none;
  padding: 18px 36px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: var(--font-weight-sans-emphasis);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition-default);
}

.mk-btn-primary:hover {
  background: var(--cream);
  color: var(--walnut);
  text-decoration: none;
}

.mk-alt-cta {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(244, 238, 222, 0.75);
}

.mk-alt-cta a {
  color: var(--color-accent-warm-on-dark);
  border-bottom: 1px solid rgba(228, 110, 68, 0.4);
}

.mk-alt-cta a:hover { text-decoration: none; }

/* -------------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------------- */

.mk-faq {
  background: var(--color-bg-alt);
  padding: 80px var(--mk-pad);
}

.mk-faq__inner {
  max-width: 760px;
  margin: 0 auto;
}

.mk-faq__kicker {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-warm);
  text-align: center;
  margin-bottom: 14px;
}

.mk-faq h2 {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: clamp(28px, 3.4vw, 36px);
  text-align: center;
  color: var(--color-text);
  margin-bottom: 48px;
}

.mk-faq__item {
  border-top: 1px solid rgba(42, 33, 27, 0.18);
  padding: 24px 0;
}

.mk-faq__item:last-child {
  border-bottom: 1px solid rgba(42, 33, 27, 0.18);
}

.mk-faq__q {
  font-family: var(--font-serif);
  font-weight: var(--font-weight-serif-heading);
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.mk-faq__a {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.mk-faq__a a {
  color: var(--color-accent);
  border-bottom: 1px solid rgba(41, 70, 56, 0.4);
}

.mk-faq__a a:hover {
  text-decoration: none;
  border-bottom-color: var(--color-accent);
}

@media (max-width: 640px) {
  .mk-hero { padding: 72px var(--mk-pad) 56px; }
  .mk-section,
  .mk-faq,
  .mk-founder,
  .mk-cta { padding: 56px var(--mk-pad); }
}
