/* MultiFamilyBooks design tokens (one :root block). Fonts: load fonts.css first (font-display: swap). */
:root {
  /* Core palette: ledger paper, ledger green, ink, one brick accent */
  --mfb-ink: #13261F;          /* text, rules, dark field */
  --mfb-ink-2: #1D352C;        /* raised surface on dark */
  --mfb-green-900: #0F3B2E;
  --mfb-green-700: #1C5D48;    /* primary brand green, buttons, "Books" word */
  --mfb-green-600: #237054;    /* hover */
  --mfb-green-500: #2E8466;    /* rules on dark, chart series */
  --mfb-green-300: #7FC3A5;    /* "Books" word on dark, highlights on dark */
  --mfb-green-100: #E3EEE7;    /* tint fills, table header on light */
  --mfb-green-50:  #F0F6F2;
  --mfb-paper: #F7F5EE;        /* page field (ledger paper) */
  --mfb-white: #FFFFFF;        /* cards, screenshot frames */
  --mfb-rule: #D8E1DA;         /* hairlines, ledger ruling */
  --mfb-rule-strong: #B9C8BE;
  --mfb-muted: #4F5D57;        /* secondary text (6.4:1 on paper) */
  --mfb-subtle: #5F6C66;       /* captions (5.0:1 on paper) */
  --mfb-brick-600: #B4492F;    /* the one accent: lit cell, key number, "new" */
  --mfb-brick-300: #E8826A;    /* accent on dark */
  --mfb-brick-50:  #FBEEE9;
  --mfb-note-bg: #FFF6DA;      /* notice / review banner */
  --mfb-note-ink: #6B4A00;

  /* Tier colours (badges, comparison headers). Text on them is white. */
  --mfb-tier-acquisition: #2C5A85;     /* blueprint blue */
  --mfb-tier-acquisition-tint: #E6EEF6;
  --mfb-tier-portfolio: #1C5D48;       /* ledger green */
  --mfb-tier-portfolio-tint: #E3EEE7;
  --mfb-tier-complete: #5E3C7E;        /* deep plum (only tier with AI) */
  --mfb-tier-complete-tint: #EEE8F4;
  --mfb-tier-investor: #7D4E1D;         /* antique bronze (tier 4); white text 7.05:1, on paper 6.46:1 */
  --mfb-tier-investor-tint: #F5ECDD;    /* bronze text on this tint 6.0:1 */

  /* Type families */
  --mfb-font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mfb-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;  /* site: system-fast */
  --mfb-font-body-brand: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;          /* marketplace art, PDFs */
  --mfb-font-figures: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;                    /* numbers, labels */

  /* Type scale (site, 1.25 ratio from 17px body) */
  --mfb-text-xs: 0.8125rem;   /* 13px labels */
  --mfb-text-sm: 0.9375rem;   /* 15px */
  --mfb-text-md: 1.0625rem;   /* 17px body */
  --mfb-text-lg: 1.25rem;     /* 20px lede */
  --mfb-text-xl: 1.5rem;      /* 24px card titles */
  --mfb-text-2xl: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);  /* section heads */
  --mfb-text-3xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);     /* hero */
  --mfb-leading-tight: 1.1;
  --mfb-leading-snug: 1.3;
  --mfb-leading-body: 1.6;
  --mfb-tracking-display: -0.02em;
  --mfb-tracking-label: 0.06em;

  /* Spacing (4px base) */
  --mfb-space-1: 4px;  --mfb-space-2: 8px;  --mfb-space-3: 12px; --mfb-space-4: 16px;
  --mfb-space-5: 24px; --mfb-space-6: 32px; --mfb-space-7: 48px; --mfb-space-8: 64px; --mfb-space-9: 96px;
  --mfb-max: 1120px;
  --mfb-prose: 42rem;

  /* Radius: tidy, not bubbly */
  --mfb-radius-sm: 4px;
  --mfb-radius-md: 8px;
  --mfb-radius-lg: 12px;
  --mfb-radius-pill: 999px;

  /* Shadows: soft paper lift, green-tinted */
  --mfb-shadow-sm: 0 1px 2px rgba(19, 38, 31, 0.06), 0 1px 1px rgba(19, 38, 31, 0.04);
  --mfb-shadow-md: 0 4px 12px rgba(19, 38, 31, 0.08), 0 1px 3px rgba(19, 38, 31, 0.06);
  --mfb-shadow-lg: 0 18px 40px rgba(19, 38, 31, 0.14), 0 4px 10px rgba(19, 38, 31, 0.06);

  /* Focus */
  --mfb-focus: 0 0 0 3px rgba(46, 132, 102, 0.45);
}

/* MultiFamilyBooks site styles. Built on tokens.css (the build concatenates tokens.css + this file into /styles.css).
   No JS, no scroll effects. One web font (Bricolage Grotesque 700, 23 KB, latin + latin-ext) for headings; body is system UI. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/BricolageGrotesque-Bold-opsz36.latin-ext.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--mfb-paper); color: var(--mfb-ink); font: 400 var(--mfb-text-md)/var(--mfb-leading-body) var(--mfb-font-body); overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mfb-green-700); text-underline-offset: 3px; }
a:hover { color: var(--mfb-green-900); }
:focus-visible { outline: none; box-shadow: var(--mfb-focus); border-radius: var(--mfb-radius-sm); }
h1, h2, h3, .sec { font-family: var(--mfb-font-display); font-weight: 700; letter-spacing: var(--mfb-tracking-display); line-height: var(--mfb-leading-tight); color: var(--mfb-ink); hyphens: auto; }
.wrap { width: min(var(--mfb-max), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.site-header { background: var(--mfb-white); border-bottom: 1px solid var(--mfb-rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--mfb-space-5); min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: var(--mfb-space-5); margin-left: auto; }
.nav a { color: var(--mfb-ink); text-decoration: none; font-weight: 600; font-size: var(--mfb-text-sm); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--mfb-green-700); }
.nav a[aria-current="page"] { border-bottom-color: var(--mfb-green-700); }
.langs { display: flex; border: 1px solid var(--mfb-rule-strong); border-radius: var(--mfb-radius-md); overflow: hidden; }
.langs a { font: 500 var(--mfb-text-xs)/1 var(--mfb-font-figures); letter-spacing: 0.04em; color: var(--mfb-muted); text-decoration: none; padding: 8px 9px; border-left: 1px solid var(--mfb-rule); }
.langs a:first-child { border-left: 0; }
.langs a:hover { background: var(--mfb-green-50); color: var(--mfb-ink); }
.langs a[aria-current="true"] { background: var(--mfb-ink); color: var(--mfb-white); }
.review { background: var(--mfb-note-bg); color: var(--mfb-note-ink); font-size: var(--mfb-text-xs); line-height: 1.45; padding: 8px 0; border-bottom: 1px solid #F0DFA6; }

/* Buttons */
.cta-row { display: flex; gap: var(--mfb-space-3); flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: var(--mfb-radius-md); font-weight: 700; font-size: var(--mfb-text-md); text-decoration: none; border: 2px solid transparent; line-height: 1.2; }
.btn-primary { background: var(--mfb-green-700); color: var(--mfb-white); box-shadow: var(--mfb-shadow-sm); }
.btn-primary:hover { background: var(--mfb-green-600); color: var(--mfb-white); }
.btn-secondary { background: var(--mfb-white); color: var(--mfb-ink); border-color: var(--mfb-ink); }
.btn-secondary:hover { background: var(--mfb-ink); color: var(--mfb-white); }
.placeholder { font-size: var(--mfb-text-xs); color: var(--mfb-subtle); margin: var(--mfb-space-3) 0 0; padding-left: 10px; border-left: 3px solid var(--mfb-brick-600); max-width: 38rem; }

/* Hero */
.hero { padding: var(--mfb-space-8) 0 var(--mfb-space-7); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr); gap: var(--mfb-space-7); align-items: center; }
.hero .wrap { row-gap: var(--mfb-space-4); }
.hero h1 { grid-column: 1 / -1; font-size: min(var(--mfb-text-3xl), calc((100vw - 48px) / 10)); overflow-wrap: normal; hyphens: manual; margin: 0; }
.hero .tag { font-family: var(--mfb-font-display); font-weight: 700; font-size: var(--mfb-text-xl); margin-top: 0; line-height: var(--mfb-leading-snug); color: var(--mfb-green-700); margin: 0 0 var(--mfb-space-4); }
.hero .lede { color: var(--mfb-muted); font-size: var(--mfb-text-md); margin: 0 0 var(--mfb-space-5); max-width: 36rem; }
.shot { margin: 0; background: var(--mfb-white); border: 1px solid var(--mfb-rule); border-radius: var(--mfb-radius-lg); box-shadow: var(--mfb-shadow-lg); overflow: hidden; }
.shot::before { content: ""; display: block; height: 26px; border-bottom: 1px solid var(--mfb-rule); background: var(--mfb-green-50) radial-gradient(circle at 14px 13px, var(--mfb-rule-strong) 4px, transparent 4.5px) no-repeat, radial-gradient(circle at 30px 13px, var(--mfb-rule-strong) 4px, transparent 4.5px) no-repeat, radial-gradient(circle at 46px 13px, var(--mfb-rule-strong) 4px, transparent 4.5px) no-repeat; background-color: var(--mfb-green-50); }
.shot img { width: 100%; }
.shot figcaption { font-size: var(--mfb-text-xs); color: var(--mfb-subtle); padding: 8px 12px; border-top: 1px solid var(--mfb-rule); }

.hero-shots { position: relative; margin: 0; padding: 0 0 24% 0; }
.hero-shots .shot.front { position: relative; z-index: 1; width: 92%; margin-left: auto; }
.hero-shots .shot.back { position: absolute; z-index: 2; width: 56%; left: 0; bottom: 0; box-shadow: var(--mfb-shadow-lg); }
.hero-shots .shot.back::before { height: 16px; }

/* Trust row (was pills) */
.pills { list-style: none; margin: var(--mfb-space-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pills li { display: flex; align-items: center; gap: 8px; font-size: var(--mfb-text-sm); font-weight: 600; color: var(--mfb-ink); }
.pills li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--mfb-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231C5D48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.trust-band { background: var(--mfb-white); border-block: 1px solid var(--mfb-rule); padding: var(--mfb-space-4) 0; }
.trust-band .pills { margin: 0; justify-content: space-between; }

/* Sections */
.section { padding: var(--mfb-space-8) 0; }
.section + .section { padding-top: 0; }
.sec { font-size: var(--mfb-text-2xl); margin: 0 0 var(--mfb-space-5); max-width: 30ch; }
.grid { display: grid; gap: var(--mfb-space-5); }
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .feature, .price, .faq details, article .note { background: var(--mfb-white); border: 1px solid var(--mfb-rule); border-radius: var(--mfb-radius-lg); }
.card { padding: 0; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--mfb-shadow-sm); }
.card .thumb { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--mfb-rule); background: var(--mfb-white); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card .body { padding: var(--mfb-space-5); }
.card .step { font: 500 var(--mfb-text-xs)/1 var(--mfb-font-figures); color: var(--mfb-brick-600); letter-spacing: var(--mfb-tracking-label); display: block; margin-bottom: 10px; }
.card h2, .feature h2, .price h2 { font-size: var(--mfb-text-xl); margin: 0 0 var(--mfb-space-2); }
.card p, .feature p { margin: 0; color: var(--mfb-muted); font-size: var(--mfb-text-sm); }

/* Editions / tier comparison */
.price { position: relative; display: flex; flex-direction: column; gap: var(--mfb-space-2); padding: 0 var(--mfb-space-5) var(--mfb-space-5); overflow: hidden; border-top: 0; }
.price::before { content: ""; display: block; height: 8px; margin: 0 calc(-1 * var(--mfb-space-5)) var(--mfb-space-4); background: var(--tier, var(--mfb-ink)); }
.price.t-portfolio { --tier: var(--mfb-tier-portfolio); }
.price.t-acquisition { --tier: var(--mfb-tier-acquisition); }
.price.t-complete { --tier: var(--mfb-tier-complete); border-color: var(--mfb-tier-complete); box-shadow: var(--mfb-shadow-md); }
.price .amt:empty { display: none; }
.price.t-extra { --tier: var(--mfb-ink); }
.price h2 { color: var(--tier, var(--mfb-ink)); }
.price .amt { font-family: var(--mfb-font-display); font-weight: 700; font-size: 2.25rem; line-height: 1; color: var(--mfb-ink); font-variant-numeric: tabular-nums lining-nums; }
.price .muted { font-size: var(--mfb-text-sm); margin: 0; }
.price p:last-child { margin: var(--mfb-space-2) 0 0; padding-top: var(--mfb-space-3); border-top: 1px solid var(--mfb-rule); font-size: var(--mfb-text-sm); }
.muted { color: var(--mfb-muted); }

/* Final CTA band */
.cta-band { background: var(--mfb-green-900); color: var(--mfb-paper); padding: var(--mfb-space-7) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--mfb-space-5); flex-wrap: wrap; }
.cta-band .tag { font-family: var(--mfb-font-display); font-weight: 700; font-size: var(--mfb-text-2xl); line-height: var(--mfb-leading-tight); margin: 0; max-width: 22ch; color: var(--mfb-white); }
.cta-band .btn-primary { background: var(--mfb-green-300); color: var(--mfb-ink); }
.cta-band .btn-primary:hover { background: #9BD3BA; color: var(--mfb-ink); }
.cta-band .btn-secondary { background: transparent; color: var(--mfb-white); border-color: var(--mfb-green-300); }
.cta-band .btn-secondary:hover { background: var(--mfb-green-700); }
.cta-band .placeholder { color: #B9C8BE; border-left-color: var(--mfb-brick-300); }

/* Guides */
.guides { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mfb-space-4); }
.guides a { display: flex; justify-content: space-between; align-items: center; gap: var(--mfb-space-4); height: 100%; padding: var(--mfb-space-4) var(--mfb-space-5); background: var(--mfb-white); border: 1px solid var(--mfb-rule); border-radius: var(--mfb-radius-lg); color: var(--mfb-ink); font-weight: 600; text-decoration: none; }
.guides a::after { content: "→"; color: var(--mfb-green-700); font-weight: 700; }
.guides a:hover { border-color: var(--mfb-green-700); }
.more { margin: var(--mfb-space-5) 0 0; font-weight: 700; }

/* Features page */
.page-head { padding: var(--mfb-space-7) 0 var(--mfb-space-5); }
.page-head .sec { font-size: var(--mfb-text-3xl); margin-bottom: var(--mfb-space-3); }
.page-head .lede { color: var(--mfb-muted); max-width: 44rem; margin: 0; font-size: var(--mfb-text-lg); line-height: 1.5; }
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { padding: var(--mfb-space-5); }
.feature .idx { font: 500 var(--mfb-text-xs)/1 var(--mfb-font-figures); color: var(--mfb-brick-600); letter-spacing: var(--mfb-tracking-label); display: block; margin-bottom: 10px; }
.feature.wide { grid-column: 1 / -1; }
.feature.media { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--mfb-space-6); align-items: center; padding: var(--mfb-space-5); }
.feature.media:nth-of-type(even) .shot { order: -1; }
.feature.media .shot { box-shadow: var(--mfb-shadow-md); }
.feature.media .shot::before { height: 18px; background-size: auto; }
.buy-box { margin-top: var(--mfb-space-7); padding: var(--mfb-space-6); background: var(--mfb-white); border: 1px solid var(--mfb-rule); border-left: 6px solid var(--mfb-green-700); border-radius: var(--mfb-radius-lg); }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--mfb-space-7); align-items: start; padding-bottom: var(--mfb-space-8); }
.faq details { margin-bottom: var(--mfb-space-3); padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px var(--mfb-space-5); position: relative; font-weight: 700; color: var(--mfb-ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--mfb-green-50); color: var(--mfb-green-700); font: 700 18px/26px var(--mfb-font-body); text-align: center; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--mfb-rule); }
.faq details p { margin: 0; padding: var(--mfb-space-4) var(--mfb-space-5) var(--mfb-space-5); color: var(--mfb-muted); }
.faq-layout .buy-box { margin-top: 0; }
.faq-layout .buy-box .cta-row { flex-direction: column; align-items: stretch; }

/* Articles */
.crumb { font-size: var(--mfb-text-sm); color: var(--mfb-subtle); margin: var(--mfb-space-6) 0 0; }
.crumb a { color: var(--mfb-subtle); }
article.prose { max-width: var(--mfb-prose); padding-bottom: var(--mfb-space-8); }
article.prose h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); margin: var(--mfb-space-4) 0 var(--mfb-space-5); }
article.prose h2 { font-size: var(--mfb-text-xl); margin: var(--mfb-space-7) 0 var(--mfb-space-3); }
article.prose p, article.prose li { color: #26352F; }
article .note { padding: var(--mfb-space-4) var(--mfb-space-5); font-size: var(--mfb-text-sm); }
article table { border-collapse: collapse; width: 100%; font-size: var(--mfb-text-sm); font-variant-numeric: tabular-nums; }
article th, article td { border-bottom: 1px solid var(--mfb-rule); padding: 8px 10px; text-align: left; }
article th { background: var(--mfb-green-100); }

/* Footer */
footer { background: var(--mfb-ink); color: #C9D6CE; padding: var(--mfb-space-7) 0; font-size: var(--mfb-text-sm); }
footer .foot-mark { height: 40px; width: auto; margin-bottom: var(--mfb-space-4); }
footer a { color: var(--mfb-white); }
footer .legal { color: #A9BAB0; max-width: 52rem; font-size: var(--mfb-text-xs); }

/* Tier badge (live text version of kit/badges) */
.tier-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--mfb-radius-md); background: var(--tier, var(--mfb-ink)); color: var(--mfb-white); font: 700 var(--mfb-text-sm)/1.1 var(--mfb-font-display); }
.tier-badge small { font: 500 11px/1 var(--mfb-font-figures); letter-spacing: var(--mfb-tracking-label); opacity: 0.85; }

/* Small Complete tag on CapEx / bank-import blocks (not the comparison-table badges). */
.kicker { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kicker .step, .kicker .idx { margin-bottom: 0; }
.tier-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: var(--mfb-radius-sm); font: 700 0.6875rem/1 var(--mfb-font-display); letter-spacing: 0.04em; text-transform: uppercase; background: var(--tier, var(--mfb-ink)); color: var(--mfb-white); }
.tier-tag.t-complete { --tier: var(--mfb-tier-complete); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: var(--mfb-space-4); }
  .hero-shots { margin-top: var(--mfb-space-4); }
  .cards { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card .thumb { flex: 0 0 38%; aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--mfb-rule); }
  .faq-layout { grid-template-columns: 1fr; }
  .feature.media { grid-template-columns: 1fr; }
  .feature.media:nth-of-type(even) .shot { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header .wrap { gap: 8px 10px; min-height: 0; }
  .brand img { height: 24px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: var(--mfb-space-5); border-top: 1px solid var(--mfb-rule); padding-top: 4px; }
  .langs { margin-left: auto; }
  .langs a { padding: 7px 5px; font-size: 12px; }
  .hero { padding: var(--mfb-space-6) 0 var(--mfb-space-6); }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .section { padding: var(--mfb-space-7) 0; }
  .card { flex-direction: column; }
  .card .thumb { aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--mfb-rule); }
  .features, .guides { grid-template-columns: 1fr; }
  .trust-band .pills { justify-content: flex-start; }
  .cta-band .btn { flex: 1 1 100%; }
}

/* Proposed: tier comparison table (see partials/tier-comparison.html). Scrolls sideways inside its box on small phones, never the page. */
.compare-wrap { overflow-x: auto; background: var(--mfb-white); border: 1px solid var(--mfb-rule); border-radius: var(--mfb-radius-lg); box-shadow: var(--mfb-shadow-sm); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--mfb-text-sm); }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--mfb-rule); text-align: center; vertical-align: middle; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--mfb-ink); }
.compare thead th { vertical-align: bottom; padding-top: 20px; }
.compare thead th:first-child { text-align: left; }
.compare .tier-badge { display: inline-flex; }
.compare .t-acquisition { --tier: var(--mfb-tier-acquisition); }
.compare .t-portfolio { --tier: var(--mfb-tier-portfolio); }
.compare .t-complete { --tier: var(--mfb-tier-complete); }
.compare col.featured { background: var(--mfb-green-50); }
.compare .yes::before { content: ""; display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: var(--mfb-green-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%231C5D48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; vertical-align: middle; }
.compare .no::before { content: "–"; color: var(--mfb-subtle); }
.compare .price-slot { font: 500 var(--mfb-text-xs)/1 var(--mfb-font-figures); color: var(--mfb-subtle); }
.compare tfoot td { border-bottom: 0; padding-bottom: 20px; }
.compare tfoot .btn { min-height: 40px; padding: 8px 14px; font-size: var(--mfb-text-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.missing { outline: 2px dashed var(--mfb-brick-600); outline-offset: 2px; }
.price .amt:empty { display: none; }
.compare tbody th small { display: block; margin-top: 4px; font-weight: 400; font-size: var(--mfb-text-xs); line-height: 1.45; color: var(--mfb-muted); }
.compare .price-slot { line-height: 1.3; }
@media (max-width: 640px) {
  .compare { min-width: 0; table-layout: fixed; font-size: var(--mfb-text-xs); }
  .compare colgroup col:not(:first-child) { width: 22%; }
  .compare th, .compare td { padding: 10px 4px; }
  .compare tbody th, .compare thead th:first-child { padding-left: 12px; }
  .compare thead th { padding-top: 14px; }
  .compare .tier-badge { display: block; padding: 6px 0 0; border-top: 3px solid var(--tier); border-radius: 0; background: none; color: var(--tier); font-size: 11px; letter-spacing: -0.01em; white-space: nowrap; }
  .compare .yes::before { width: 18px; height: 18px; background-size: 18px; }
  .compare tbody th small { display: none; }
  .compare .price-slot { font-size: 10px; }
}
/* ---- Tier 4: Investor ($299) ---- */
.t-investor { --tier: var(--mfb-tier-investor); }
.compare .t-investor, .price.t-investor { --tier: var(--mfb-tier-investor); }
.investor { border-top: 4px solid var(--mfb-tier-investor); background: var(--mfb-white); }
.investor-head { max-width: 46rem; }
.investor-head .tier-badge { margin-bottom: 12px; }
.investor-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0 0; }
.investor-price .amt { font: 700 var(--mfb-text-2xl)/1 var(--mfb-font-display); color: var(--mfb-tier-investor); }
.investor-body { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 24px 0 40px; }
.comp-h { font: 700 var(--mfb-text-xl)/1.2 var(--mfb-font-display); color: var(--mfb-ink); margin: 0 0 12px; }
.comp-table caption.verified-stamp { caption-side: top; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--mfb-rule); background: var(--mfb-note-bg); color: var(--mfb-note-ink); font: 600 var(--mfb-text-sm)/1.3 var(--mfb-font-figures); }
.comp-table caption.verified-stamp time { font-weight: 700; margin-left: 6px; }
.comp-table th small, .comp-table td small { display: block; font-weight: 400; font-size: var(--mfb-text-xs); color: var(--mfb-muted); margin-top: 2px; }
.comp-table col.featured { background: var(--mfb-tier-investor-tint); }
.comp-table .price-row td { font: 600 var(--mfb-text-base)/1.2 var(--mfb-font-figures); color: var(--mfb-ink); }
.comp-table .price-row td.us { color: var(--mfb-tier-investor); }
.comp-table .part::before { content: "Partial"; font-size: var(--mfb-text-xs); color: var(--mfb-muted); }
.comp-note { font-size: var(--mfb-text-xs); margin-top: 10px; }
@media (min-width: 961px) { .investor-body { grid-template-columns: 1fr 1.3fr; align-items: start; } }
@media (max-width: 640px) { .comp-table { min-width: 560px; table-layout: auto; } }

/* 4-tier compare table (final prices 19 Nov 2026) */
.compare col.investor-col { background: var(--mfb-tier-investor-tint); }
.compare .compare-price { font: 700 var(--mfb-text-lg, 20px)/1 var(--mfb-font-figures); color: var(--mfb-ink); font-variant-numeric: tabular-nums; }
.compare .tier-badge.t-investor { background: var(--mfb-tier-investor); color: #fff; }
@media (max-width: 640px) { .compare .compare-price { font-size: 15px; } }

/* Purchasable vs coming-soon edition cards */
.cards.soon { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--mfb-space-5); }
.price.t-team { --tier: var(--mfb-ink); }
.price .buy { margin-top: auto; }
.price .buy .btn { display: inline-flex; justify-content: center; width: 100%; box-sizing: border-box; }
.btn-soon {
  display: inline-flex; align-items: center; justify-content: center;
  pointer-events: none; cursor: default;
  background: var(--mfb-green-50, #F0F6F2); color: var(--mfb-ink);
  border: 1px solid var(--mfb-rule); opacity: 0.9;
}
.cta-band .btn-soon { background: transparent; color: var(--mfb-paper); border-color: var(--mfb-green-300); }
@media (max-width: 960px) {
  .cards.editions, .cards.soon { grid-template-columns: 1fr; }
}

/* ---- Demos page ---- */
.demos h1{margin:0 0 .25em}
.demo-note{color:var(--mfb-subtle);margin:0 0 1rem}
.demo-strip{list-style:none;padding:0;margin:0 0 .5rem;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.demo-strip a{display:flex;flex-direction:column;gap:6px;height:100%;box-sizing:border-box;padding:14px;border:1px solid var(--mfb-rule);border-radius:12px;background:#fff;color:var(--mfb-ink);text-decoration:none}
.demo-strip a span:last-child{font-size:.9rem;color:var(--mfb-subtle);line-height:1.4}
.demo-strip b{font-size:1.15rem}
.demo-strip .tier-badge,.demo-adds .tier-badge{align-self:flex-start;width:auto}
.demo-compare{margin:0 0 1.5rem}
.demo-tabs{display:flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid var(--mfb-rule);border-radius:12px;background:var(--mfb-green-50,#F0F6F2);margin:0 0 1.5rem;width:max-content;max-width:100%;box-sizing:border-box}
.demo-tabs a{padding:10px 18px;border-radius:9px;color:var(--mfb-ink);text-decoration:none;font-weight:600}
.demo-panel{margin:0 0 3rem;scroll-margin-top:1rem}
.demo-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:28px;align-items:start}
.demos video{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:10px;background:var(--mfb-ink);border:1px solid var(--mfb-rule)}
.demos figure{margin:0}
.demos figcaption{margin-top:8px;font-weight:600}
.demo-adds h2{margin:0 0 .5rem}.demo-adds h3,.demo-ch-h{margin:1rem 0 .4rem;font-size:1rem;text-transform:uppercase;letter-spacing:.06em;color:var(--mfb-subtle)}
.demo-adds ul{margin:0 0 1rem;padding-left:1.1rem}.demo-adds li{margin:.25rem 0}
.demo-price{font-size:1.8rem;font-weight:800;margin:0 0 .75rem}
.demo-chapters{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
@media (max-width:900px){.demo-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-main{grid-template-columns:1fr}.demo-chapters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.demo-chapters{grid-template-columns:1fr}.demo-tabs{width:100%}.demo-tabs a{flex:1 1 40%;text-align:center;padding:10px 8px}}
