:root {
  /* Page + non-featured plans share this so side cards do not stand out */
  --bg: #fcfaf7;
  --paper: #fffdfa;
  --ink: #191714;
  --muted: #5f5a52;
  --line: #e4ddd2;
  --accent: #1e5c5a;
  --accent-light: #e8f2f1;
  --accent-cta: #c43b2f;
  --ok: #16803c;
  --code-bg: #f0ebe3;
  --sans: "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;
  /* Bold = 600 only — never 700 (see GOTCHAS.md) */
  --font-bold: 600;

  /* Type scale — 7 steps only; root 16px. Do not introduce ad-hoc rem sizes.
     Hierarchy: xxl page H1 → xl section / legal H1 → lg prices → md emphasis → base body → sm chrome → xs labels */
  --text-xs: 0.75rem;   /* 12 — badges, eyebrows, footer col labels */
  --text-sm: 0.875rem;  /* 14 — meta, units, footer, bylines, billing switch */
  --text-base: 1rem;    /* 16 — body, origin story, plan features, legal body */
  --text-md: 1.125rem;  /* 18 — brand, hero points, plan names, quotes, lede */
  --text-lg: 1.5rem;    /* 24 — plan prices */
  --text-xl: 2rem;      /* 32 — section titles, legal H1, mobile H1 */
  --text-xxl: 2.5rem;   /* 40 — page hero H1 only */

  /* Vertical rhythm between main’s direct children (sections, strips, etc.) */
  --section-gap: 88px; /* ~15% above prior 76.8px */
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.65;
  font-size: 16px;
}

/* Sticky header clearance for in-page anchors on the single-page home */
main > section[id] {
  scroll-margin-top: 5.5rem;
}

.legal-doc h2[id] {
  scroll-margin-top: 5.5rem;
}

h1, h2, h3, h4, nav, .btn, .eyebrow, .site-header, .site-footer, .plan h3, .plan-price {
  font-family: var(--sans);
}

/* Cap bold at 600 — UA defaults for headings/strong are often 700 */
h1, h2, h3, h4, h5, h6, strong, b {
  font-weight: var(--font-bold);
}

a { color: var(--accent); }
a:hover { color: var(--accent-cta); }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: var(--font-bold);
  font-size: var(--text-md);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--text-base); /* match .btn (Sign in = Get started) */
  font-weight: 500;
}

.nav-links a:hover { text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-cta);
  color: #fff;
  border-color: var(--accent-cta);
}

.btn-primary:hover {
  background: #a83228;
  color: #fff;
}

/* Solid teal — used for non-featured plan CTAs */
.btn-secondary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-secondary:hover {
  background: #174846;
  color: #fff;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.hero {
  padding: 0;
  text-align: center;
}

.story-strip {
  margin: 0;
  padding: 28px 24px;
  background: var(--accent-light);
  border-radius: 12px;
}

.origin-note {
  margin: 0 auto 22px;
  max-width: 38rem;
  font-size: var(--text-base);
  line-height: 1.6;
  text-align: center;
  color: var(--ink);
}

.origin-note p {
  margin: 0 0 0.85rem;
}

.origin-note p:last-child {
  margin-bottom: 0;
}

.origin-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.origin-note a:hover {
  color: var(--accent-cta);
  text-decoration: underline;
}

.testimony {
  margin: 0 auto;
  max-width: 36rem;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  text-align: center;
}

.testimony p {
  margin: 0 0 12px;
  font-size: var(--text-md);
  font-style: italic;
  line-height: 1.55;
  color: var(--ink);
}

.testimony footer {
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 600;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0 0 36px;
  font-size: var(--text-xxl);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--accent);
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: var(--font-bold);
}

.lede {
  font-size: var(--text-md);
  margin: 0 0 16px;
  max-width: 640px;
}

.hero-points {
  margin: 0 auto 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.plan-badge {
  margin: 0;
  min-height: 1.15em;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.15;
}

.plan-badge-spacer {
  visibility: hidden;
  user-select: none;
}

.plain-list {
  margin: 0 0 32px;
  padding-left: 1.25rem;
  max-width: 40rem;
}

.plain-list li {
  margin-bottom: 0.55rem;
  font-size: var(--text-base);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--accent);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-light);
}

.content-block {
  margin-bottom: 24px;
}

.content-block h2,
.content-block h3 {
  margin-top: 0;
  font-family: var(--sans);
  color: var(--accent);
}

.content-block h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.content-block p:last-child { margin-bottom: 0; }

/* Features — ribbon chips (kept from look U) */
.feature-ribbon {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 46rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.feature-ribbon li {
  display: inline-block;
  margin: 0;
  padding: 0.55em 1.1em;
  /* Same surface as .plan-featured; body ink (not white-on-teal) */
  background: var(--accent-light);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.35;
  transform: skewX(-8deg);
  border-radius: 2px;
}

/* Section head — title + controls */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
  text-align: center;
}

.section-heading {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-head .billing-switch {
  margin: 0;
  flex: 0 0 auto;
}

/* Offer grid — rows aligned across cards via subgrid */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 0;
  margin: 20px 0 16px;
}

.plan {
  /* Plan type: name md · price lg · features base · chrome sm — featured uses bg only */
  --plan-name: var(--text-md);
  --plan-price: var(--text-lg);
  --plan-body: var(--text-base);
  --plan-ui: var(--text-sm);
  display: grid;
  grid-template-rows: subgrid;
  /* badge · name · price · meta · 4 feature rows · CTA */
  grid-row: span 9;
  padding: 18px 18px 20px;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  background: transparent;
  align-content: start;
  text-align: center;
}

.plan-featured {
  background: var(--accent-light);
}

.plan h3 {
  margin: 4px 0 0;
  font-size: var(--plan-name);
}

.plan-price {
  font-size: var(--plan-price);
  font-weight: var(--font-bold);
  color: var(--accent);
  margin: 10px 0 0;
}

.plan-price > .when-month,
.plan-price > .when-year {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.plan-price span span {
  font-size: var(--plan-ui);
  font-weight: 500;
  color: var(--muted);
}

.plan-meta {
  font-size: var(--plan-ui);
  color: var(--muted);
  margin: 4px 0 8px;
  min-height: 1.35em;
}

.plan-features {
  display: contents;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--plan-body);
}

.plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.plan .btn {
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
  justify-self: stretch;
  /* keep .btn font-size (base) — do not shrink to plan-ui */
}

@media (max-width: 700px) {
  .offer-grid {
    grid-template-columns: 1fr;
    row-gap: 28px;
  }

  .plan {
    display: flex;
    flex-direction: column;
    grid-row: auto;
  }

  .plan-features {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
  }
}

.site-callout {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  font-size: var(--text-base);
}

.section-note {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 8px auto 12px;
  max-width: 46rem;
  text-align: center;
}

/* Bank-style pricing footnotes */
.fn-ref {
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 600;
  line-height: 0;
  margin-left: 0.12em;
  white-space: nowrap;
}

.fn-ref a {
  color: var(--muted);
  text-decoration: none;
}

.fn-ref a:hover,
.fn-ref a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.pricing-footnotes {
  list-style: none;
  margin: 0 auto;
  padding: 20px max(20px, env(safe-area-inset-left)) 28px max(20px, env(safe-area-inset-right));
  max-width: 46rem;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
  box-sizing: border-box;
}

.pricing-footnotes li {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  column-gap: 0.35rem;
  margin: 0 0 0.45rem;
  padding: 0;
  scroll-margin-top: 1rem;
}

.pricing-footnotes li:last-child {
  margin-bottom: 0;
}

.pricing-footnotes .fn-num {
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

/* Field setup — how SR plugs into church sound (homepage) */
.setup-section {
  margin: 0;
}

.setup-lede {
  margin: 0 auto 28px;
  max-width: 40rem;
  text-align: center;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin: 0 0 28px;
}

.setup-block h3,
.setup-notes h3 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--accent);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.setup-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.setup-list li {
  margin: 0 0 12px;
  padding: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink);
  text-wrap: pretty;
}

.setup-list li:last-child {
  margin-bottom: 0;
}

.setup-list strong {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}

.setup-path {
  margin: 0 0 28px;
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.setup-path-label {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.setup-path-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 16px;
  counter-reset: setup-step;
}

.setup-path-steps li {
  position: relative;
  margin: 0;
  padding: 0 0 0 1.85rem;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  counter-increment: setup-step;
}

.setup-path-steps li::before {
  content: counter(setup-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  line-height: 1.35rem;
  text-align: center;
}

.setup-notes {
  margin: 0;
  padding: 22px 24px;
  background: var(--accent-light);
  border-radius: 12px;
}

.setup-notes .setup-list li {
  margin-bottom: 10px;
}

.setup-notes .setup-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .setup-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .setup-path-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Monthly / Yearly billing switch */
.billing-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  margin: 4px 0 8px;
  font-family: var(--sans);
  gap: 2px;
}

.billing-switch-opt {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}

.billing-switch-opt:hover {
  color: var(--ink);
}

.billing-switch-opt.is-active {
  background: var(--accent);
  color: #fff;
}

.billing-switch-opt.is-active:hover {
  color: #fff;
}

.billing-switch-opt:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

[data-billing="month"] .when-year { display: none !important; }
[data-billing="year"] .when-month { display: none !important; }

.plan-meta .when-year {
  color: var(--ok);
  font-weight: 500;
}

/* Hero points — › markers; block centered, rows left-aligned */
.hero-points-checks {
  list-style: none;
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 24px;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
}

.hero-points-checks li {
  position: relative;
  padding: 0 0 0.65rem 1.55rem;
  margin: 0;
  font-size: var(--text-md);
  line-height: 1.65;
  text-align: left;
}

.hero-points-checks li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.35em; /* relative to list item (base) */
  font-weight: 600;
  line-height: 1.22;
  color: var(--accent);
}

.legal-doc {
  padding: 8px 0 32px;
}

.legal-doc h1 {
  font-family: var(--sans);
  font-size: var(--text-xl);
  color: var(--accent);
  margin: 0 0 8px;
}

.legal-doc .effective {
  font-size: var(--text-sm);
  color: var(--muted);
  margin: 0 0 28px;
}

.legal-doc h2 {
  font-family: var(--sans);
  font-size: var(--text-md);
  margin: 28px 0 10px;
  color: var(--accent);
}

.legal-doc p, .legal-doc li { font-size: var(--text-base); }

.legal-doc ul { padding-left: 1.35rem; }

.placeholder {
  background: #fff8e8;
  border: 1px dashed #9a6700;
  border-radius: 4px;
  padding: 0 4px;
}

.review-banner {
  background: #fff8e8;
  border: 1px solid #e8d49a;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: #6b5200;
}

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  margin-top: 48px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-col {
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}

@media (max-width: 700px) {
  .footer-grid {
    flex-direction: column;
  }

  .hero h1 { font-size: var(--text-xl); }
}

.footer-entity {
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
  min-width: 0;
}

.footer-entity strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 6px; }

.footer-col a {
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-col a:hover { text-decoration: underline; }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em; /* relative to surrounding text */
  background: var(--code-bg);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* Brand kit — /brandkit reference page only; section rhythm from main gap */
.brandkit-hero {
  margin: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.brandkit-hero h1 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: var(--text-xxl);
  font-weight: var(--font-bold);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--accent);
}

.brandkit-lede {
  max-width: 40rem;
  margin: 0 0 20px;
}

.brandkit-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: 500;
}

.brandkit-toc a {
  text-decoration: none;
}

.brandkit-toc a:hover {
  text-decoration: underline;
}

.brandkit-section {
  margin: 0;
  scroll-margin-top: 5.5rem;
}

.brandkit-intro {
  margin: 0 0 20px;
  max-width: 40rem;
  font-size: var(--text-base);
  color: var(--muted);
}

.brandkit-subhead {
  margin: 28px 0 12px;
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--accent);
}

.brandkit-label {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.brandkit-meta {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.5;
}

.brandkit-muted {
  color: var(--muted);
  font-weight: 400;
}

.brandkit-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 700px) {
  .brandkit-identity {
    grid-template-columns: 1fr;
  }
}

.brandkit-wordmark-card {
  padding: 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brandkit-wordmark {
  font-size: var(--text-lg);
  margin: 0;
}

.brandkit-dl {
  margin: 0;
}

.brandkit-dl > div {
  margin: 0 0 14px;
}

.brandkit-dl dt {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 4px;
}

.brandkit-dl dd {
  margin: 0;
  font-size: var(--text-base);
}

.brandkit-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.brandkit-swatch {
  margin: 0;
  padding: 0 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.brandkit-swatch-chip {
  height: 72px;
  border-bottom: 1px solid var(--line);
}

.brandkit-chip-bg { background: var(--bg); }
.brandkit-chip-paper { background: var(--paper); }
.brandkit-chip-ink { background: var(--ink); }
.brandkit-chip-muted { background: var(--muted); }
.brandkit-chip-line { background: var(--line); }
.brandkit-chip-accent { background: var(--accent); }
.brandkit-chip-accent-light { background: var(--accent-light); }
.brandkit-chip-cta { background: var(--accent-cta); }
.brandkit-chip-ok { background: var(--ok); }
.brandkit-chip-code { background: var(--code-bg); }

.brandkit-swatch h3 {
  margin: 12px 12px 4px;
  font-family: var(--sans);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

.brandkit-token,
.brandkit-hex {
  margin: 0 12px;
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.brandkit-hex {
  color: var(--muted);
}

.brandkit-swatch .brandkit-meta {
  margin: 6px 12px 0;
  font-size: var(--text-xs);
}

.brandkit-table-wrap {
  overflow-x: auto;
  margin: 0 0 8px;
}

.brandkit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  font-family: var(--sans);
}

.brandkit-table th,
.brandkit-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.brandkit-table th {
  font-weight: var(--font-bold);
  color: var(--muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brandkit-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 700px) {
  .brandkit-type-grid {
    grid-template-columns: 1fr;
  }
}

.brandkit-type-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brandkit-specimen {
  margin: 0 0 8px;
  font-size: var(--text-lg);
  line-height: 1.25;
}

.brandkit-specimen-serif {
  font-family: var(--serif);
  font-weight: 400;
}

.brandkit-specimen-sans {
  font-family: var(--sans);
  font-weight: 600;
}

.brandkit-specimen-body {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: var(--text-base);
  line-height: 1.65;
}

.brandkit-specimen-italic {
  font-style: italic;
  font-size: var(--text-md);
}

.brandkit-specimen-ui {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: 400;
}

.brandkit-specimen-medium {
  font-weight: 500;
}

.brandkit-specimen-bold {
  font-weight: 600;
}

.brandkit-code {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: var(--code-bg);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--text-sm);
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
}

.brandkit-scale {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.brandkit-scale-row {
  display: grid;
  grid-template-columns: 7.5rem 6.5rem minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.brandkit-scale-row:last-child {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .brandkit-scale-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.brandkit-scale-token,
.brandkit-scale-size {
  font-family: var(--sans);
  font-size: var(--text-sm);
}

.brandkit-scale-size {
  color: var(--muted);
}

.brandkit-scale-sample {
  min-width: 0;
}

.brandkit-sample-xxl {
  font-family: var(--sans);
  font-size: var(--text-xxl);
  font-weight: var(--font-bold);
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--accent);
}

.brandkit-sample-xl {
  font-family: var(--sans);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--accent);
}

.brandkit-sample-lg {
  font-family: var(--sans);
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--accent);
}

.brandkit-sample-md {
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
}

.brandkit-sample-base {
  font-size: var(--text-base);
}

.brandkit-sample-sm {
  font-family: var(--sans);
  font-size: var(--text-sm);
  color: var(--muted);
}

.brandkit-sample-xs {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.brandkit-demo {
  margin: 0 0 12px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.brandkit-demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.brandkit-story-demo {
  margin: 0 0 12px;
}

.brandkit-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 700px) {
  .brandkit-rules {
    grid-template-columns: 1fr;
  }
}

.brandkit-do,
.brandkit-dont {
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.brandkit-do {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
}

.brandkit-dont {
  border-color: color-mix(in srgb, var(--accent-cta) 30%, var(--line));
}

.brandkit-do h3,
.brandkit-dont h3 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: var(--text-md);
  font-weight: var(--font-bold);
}

.brandkit-do h3 {
  color: var(--ok);
}

.brandkit-dont h3 {
  color: var(--accent-cta);
}

.brandkit-do ul,
.brandkit-dont ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: var(--text-base);
}

.brandkit-do li,
.brandkit-dont li {
  margin-bottom: 0.45rem;
}

.brandkit-source {
  margin-top: 20px;
}