/* Merged for the 2026-10-28 candidate build (fix F22): the former
   css/tokens.css + css/components.css + css/site.css chain, in the
   original cascade order, so the flat pages load one site sheet. */
/* ============================================================
   Sleevenine Program — Shared Design Foundation: TOKENS
   Usage: set the --brand-* tokens per site, then import this
   file plus components.css. Everything below adapts.
   ============================================================ */

:root {
  /* ---- Brand (override per site — keep to ONE dominant hue) ---- */
  --brand-600: #1d4ed8;   /* primary actions, links */
  --brand-700: #1e40af;   /* hover states */
  --brand-50:  #eff6ff;   /* tinted surfaces */
  --brand-100: #dbeafe;
  --accent-500: #0ea5e9;  /* sparing highlights, gradients */

  /* ---- Neutrals (warm-leaning for friendliness; swap if needed) ---- */
  --ink-950: #0c0f14;
  --ink-900: #141a23;
  --ink-700: #2b3442;
  --ink-500: #5b6676;
  --ink-400: #7d8898;
  --paper:   #ffffff;
  --paper-2: #f7f8fa;   /* alt section background */
  --line:    #e6e9ef;   /* hairlines */

  /* ---- Type ---- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid scale — display shrinks gracefully on mobile */
  --text-hero:    clamp(2.5rem, 1.4rem + 5vw, 4.5rem);
  --text-h1:      clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  --text-h2:      clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
  --text-h3:      1.25rem;
  --text-lead:    clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --text-body:    1rem;
  --text-small:   0.875rem;
  --text-caption: 0.75rem;

  --leading-tight: 1.05;
  --leading-snug:  1.25;
  --leading-body:  1.65;

  --tracking-display: -0.02em;

  /* ---- Spacing (8pt) ---- */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s6: 1.5rem;  --s8: 2rem;   --s12: 3rem;  --s16: 4rem;
  --s24: 6rem;   --s32: 8rem;

  --section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);
  --container: 72rem;          /* 1152px */
  --container-narrow: 44rem;

  /* ---- Shape & depth ---- */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgb(12 15 20 / 0.06);
  --shadow-md: 0 6px 24px -8px rgb(12 15 20 / 0.14);
  --shadow-lg: 0 24px 64px -24px rgb(12 15 20 / 0.22);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Business Launch Stack — brand overrides (consumer-guides archetype)
   Warm ember palette: the old site's burnt-sienna accent, elevated.
   ============================================================ */
:root {
  --brand-600: #b04a1e;   /* ember — primary actions, links */
  --brand-700: #8c3a15;   /* ember deep — hover */
  --brand-50:  #fdf1e8;   /* tinted surfaces */
  --brand-100: #f8dcc4;
  --accent-500: #e8933f;  /* warm amber — sparing highlights */

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ============================================================
   Sleevenine Program — Shared Design Foundation: COMPONENTS
   Requires tokens.css. Mobile-first. Adapt per brand; do not
   cargo-cult — elevate, don't clone.
   ============================================================ */

/* ---- Reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-900);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); }
:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Layout ---- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - 2.5rem, var(--container-narrow)); margin-inline: auto; }
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--paper-2); }

/* ---- Type ---- */
.display, h1, h2 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  text-wrap: balance;
}
.hero-title { font-size: var(--text-hero); margin: 0 0 var(--s6); }
.h1 { font-size: var(--text-h1); margin: 0 0 var(--s4); }
.h2 { font-size: var(--text-h2); margin: 0 0 var(--s4); }
.h3 { font-size: var(--text-h3); font-weight: 650; margin: 0 0 var(--s2); line-height: var(--leading-snug); }
.lead { font-size: var(--text-lead); color: var(--ink-500); max-width: 42rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-size: var(--text-caption); font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--brand-700); margin-bottom: var(--s4);
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--brand-600); border-radius: 2px; }
.muted { color: var(--ink-500); }
.small { font-size: var(--text-small); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-weight: 650; font-size: var(--text-body); line-height: 1;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-700); box-shadow: var(--shadow-lg); color: #fff; }
.btn-secondary {
  background: var(--paper); color: var(--ink-900);
  border-color: var(--line); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--ink-400); color: var(--ink-900); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding-block: var(--s3);
}
.brandmark { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 750; font-size: 1.0625rem; color: var(--ink-950); text-decoration: none; }
.brandmark-mark {
  width: 2rem; height: 2rem; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-size: 1.1rem;
}
.nav-links { display: none; gap: var(--s6); list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); text-decoration: none; font-weight: 550; font-size: var(--text-small); }
.nav-links a:hover { color: var(--brand-700); }
@media (min-width: 56rem) { .nav-links { display: flex; } .nav-cta .btn { padding: 0.65rem 1.25rem; font-size: var(--text-small); } }
@media (max-width: 23rem) {
  .nav-inner { flex-wrap: wrap; }
  .nav-cta { width: 100%; }
  .nav-cta .btn { width: 100%; }
}

/* ---- Hero ---- */
.hero { padding-block: clamp(3rem, 2rem + 7vw, 6.5rem) var(--section-pad); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42rem 26rem at 85% -5%, color-mix(in srgb, var(--brand-600) 10%, transparent), transparent 65%),
    radial-gradient(30rem 20rem at 8% 10%, color-mix(in srgb, var(--accent-500) 8%, transparent), transparent 60%);
}
.hero > .container { position: relative; }
.hero-copy { max-width: 46rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-top: var(--s8); padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: var(--s2); font-size: var(--text-small); color: var(--ink-500); font-weight: 550; }
.hero-proof li::before { content: "✓"; color: var(--brand-600); font-weight: 800; }

/* ---- Feature grid ---- */
.grid-3 { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s8); }
@media (min-width: 56rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--s8);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 2.75rem; height: 2.75rem; border-radius: var(--radius-md);
  background: var(--brand-50); color: var(--brand-700);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: var(--s4);
}
.card p { color: var(--ink-500); margin: var(--s2) 0 0; font-size: var(--text-small); }

/* ---- Split / how-it-works ---- */
.steps { display: grid; gap: var(--s6); margin-top: var(--s8); counter-reset: step; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: var(--s8); border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: calc(-1 * var(--s2)); left: 0;
  font-family: var(--font-display); font-size: 2.5rem; color: var(--brand-100);
  background: var(--paper); padding-right: var(--s3); line-height: 1;
}
.step p { color: var(--ink-500); font-size: var(--text-small); margin: var(--s2) 0 0; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--ink-950), var(--ink-900));
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 2rem + 4vw, 4.5rem);
  text-align: center; position: relative; overflow: clip;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(36rem 18rem at 50% -20%, color-mix(in srgb, var(--brand-600) 35%, transparent), transparent 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 var(--s4); font-size: var(--text-h2); }
.cta-band p { color: rgb(255 255 255 / 0.72); max-width: 36rem; margin: 0 auto var(--s6); }
.cta-band .btn-row { justify-content: center; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line); padding-block: var(--s12) var(--s8); margin-top: var(--section-pad); }
.footer-grid { display: grid; gap: var(--s8); grid-template-columns: 1fr; }
@media (min-width: 56rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h2 { font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); margin: 0 0 var(--s3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer a { color: var(--ink-500); text-decoration: none; font-size: var(--text-small); }
.footer a:hover { color: var(--brand-700); }
.footer-base {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); justify-content: space-between;
  margin-top: var(--s12); padding-top: var(--s6); border-top: 1px solid var(--line);
  font-size: var(--text-caption); color: var(--ink-500);
}

/* ---- Utility ---- */
.kicker-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: var(--s12) 0; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); margin-top: var(--s8); }
@media (min-width: 56rem) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-num { font-family: var(--font-display); font-size: var(--text-h2); color: var(--ink-950); }
.stat-label { font-size: var(--text-small); color: var(--ink-500); }

/* ============================================================
   Business Launch Stack — site-specific styles
   Requires tokens.css + components.css. Article/guide layer.
   ============================================================ */

/* ---- Article hero (guide pages) ---- */
.article-hero {
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 4.5rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background:
    radial-gradient(40rem 22rem at 88% -10%, color-mix(in srgb, var(--brand-600) 9%, transparent), transparent 65%),
    linear-gradient(180deg, var(--brand-50), var(--paper) 78%);
  border-bottom: 1px solid var(--line);
}
.article-hero .hero-title { font-size: var(--text-h1); }
.breadcrumbs { font-size: var(--text-small); color: var(--ink-400); margin: 0 0 var(--s6); }
.breadcrumbs a { color: var(--ink-500); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-700); text-decoration: underline; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6);
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  font-size: var(--text-small); color: var(--ink-500);
}
.article-meta strong { color: var(--ink-700); font-weight: 650; }

/* ---- Article body (prose) ---- */
.article-body { padding-block: var(--section-pad); }
.article-body .container-narrow > section { margin-bottom: var(--s12); }
.article-body h2 { margin-top: 0; scroll-margin-top: 5rem; }
.article-body h3 { scroll-margin-top: 5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; }
.article-body li { margin-bottom: var(--s2); }
.article-body li::marker { color: var(--brand-600); }

/* Tables */
.table-scroll { overflow-x: auto; margin: var(--s6) 0; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.data-table { border-collapse: collapse; width: 100%; font-size: var(--text-small); min-width: 34rem; margin: 0; }
.data-table th, .data-table td { padding: var(--s3) var(--s4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th {
  background: var(--brand-50); color: var(--brand-700);
  font-size: var(--text-caption); text-transform: uppercase; letter-spacing: 0.08em;
  border-bottom: 2px solid var(--brand-100); white-space: nowrap;
}
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: var(--paper-2); }
.data-table td:first-child { font-weight: 650; color: var(--ink-900); }

/* Callouts: worked examples & formulas */
.formula, .example {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius-md);
  padding: var(--s4) var(--s6);
  margin: var(--s6) 0;
}
.formula p, .example p { margin: 0 0 var(--s2); }
.formula p:last-child, .example p:last-child { margin-bottom: 0; }
.formula code, .example code {
  font-family: var(--font-mono); font-size: 0.95em;
  background: rgb(255 255 255 / 0.7); padding: 0.15em 0.4em; border-radius: var(--radius-sm);
}

/* Assumptions panel */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--paper-2); padding: var(--s6) var(--s8);
  margin-top: var(--s12);
}
.panel h2 { font-size: var(--text-h3); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }
.panel ul { margin-bottom: 0; }

/* FAQ */
.faq-block h3 { font-size: 1.0625rem; margin-top: var(--s6); }
.faq-block h3:first-of-type { margin-top: var(--s4); }

/* Prepared / reviewed note */
.prepared {
  font-size: var(--text-small); color: var(--ink-500);
  border-top: 1px solid var(--line); padding-top: var(--s4); margin-top: var(--s12);
}

/* Pre-launch checklist styling */
ul.checklist { list-style: none; padding-left: 0; }
ul.checklist li {
  position: relative; padding-left: 2rem; margin-bottom: var(--s3);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--s3) var(--s4) var(--s3) 2.75rem; box-shadow: var(--shadow-sm);
}
ul.checklist li::before {
  content: "✓"; position: absolute; left: var(--s4); top: var(--s3);
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--brand-50); color: var(--brand-700);
  font-weight: 800; font-size: 0.8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- Keep-reading cards ---- */
.keep-reading { padding-block: var(--section-pad); background: var(--paper-2); border-top: 1px solid var(--line); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .card { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-link .h3 { color: var(--ink-950); }
.card-kicker {
  font-size: var(--text-caption); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: var(--s2); display: block;
}
.card-cta { display: inline-block; margin-top: var(--s4); font-weight: 650; font-size: var(--text-small); color: var(--brand-700); }
.card-link:hover .card-cta { text-decoration: underline; }

/* ---- Honesty strip (homepage) ---- */
.honesty-strip {
  border: 1px solid var(--brand-100); background: var(--brand-50);
  border-radius: var(--radius-lg); padding: var(--s6) var(--s8);
  display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s12);
}
.honesty-strip .card-icon { margin-bottom: 0; flex-shrink: 0; }
.honesty-strip p { margin: 0; font-size: var(--text-small); color: var(--ink-700); }
.honesty-strip strong { color: var(--ink-950); }

/* ---- Homepage sections ---- */
.guide-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; margin-top: var(--s8); }
@media (min-width: 40rem) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .guide-grid { grid-template-columns: repeat(3, 1fr); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }

/* ---- Footer extras ---- */
.footer-brand p { font-size: var(--text-small); color: var(--ink-500); margin: var(--s3) 0 0; max-width: 24rem; }
.disclosure { font-size: var(--text-caption); color: var(--ink-500); }

/* ---- Focus visibility on dark CTA band ---- */
.cta-band .btn-primary { background: var(--brand-600); }
.cta-band .btn-primary:hover { background: var(--brand-700); }

