/* ============================================
   BonLamCo — 5 AI Hires site
   Linear-inspired · Apple-clean · MD 35-58 register
   ============================================ */

:root {
  /* Neutrals */
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-card: #f5f5f4;
  --text: #0a0a0a;
  --text-muted: #525252;
  --text-subtle: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;

  /* Pink brand scale */
  --pink-50:  #FFF2F7;
  --pink-100: #FDD9E8;
  --pink-300: #F8B8D0;
  --pink-500: #EC5D9C;
  --pink-700: #C73E7A;

  /* Ink (charcoal) — Pair A secondary, used for premium tier surfaces */
  --ink: #18181B;

  /* Semantic accents */
  --accent: var(--pink-500);
  --accent-hover: var(--pink-700);
  --highlight: var(--pink-100);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --content-width: 680px;
  --wide-width: 960px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- Layout --- */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.nav-cta {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-cta:hover { color: var(--text); text-decoration: none; }

/* --- Hero --- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero .sub {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* --- Hero form --- */
.hero-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  flex-direction: row;
}
.hero-form input[type="email"] {
  flex: 1;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-form input[type="email"]:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.hero-form button, .btn-primary {
  padding: 14px 22px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 500;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.08s;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.hero-form button:hover, .btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.hero-form button:active, .btn-primary:active {
  transform: translateY(1px);
}
.hero-microcopy {
  font-size: 14px;
  color: var(--text-subtle);
  margin-top: 16px;
}

@media (max-width: 520px) {
  .hero-form { flex-direction: column; }
  .hero-form button { width: 100%; }
}

/* --- Section --- */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: 0; }
.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 24px;
}
.section h3 {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 40px 0 12px;
}
.section p {
  color: var(--text);
  margin: 0 0 18px;
}
.section p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text);
}
.section p.muted { color: var(--text-muted); }

/* --- Stat block (gap / 14% vs 70%) --- */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  margin: 40px 0;
}
.stat-card .stat-row {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.stat-card .stat-row + .stat-row { margin-top: 4px; }
.stat-card .stat-source {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 20px;
}

/* --- List (4 bullets / anti-patterns) --- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 28px;
}
.feature-list li {
  padding-left: 28px;
  position: relative;
}
.feature-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 500;
}
.feature-list li strong { font-weight: 600; }

/* --- Framework table --- */
.framework-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}
.framework-table th,
.framework-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.framework-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-strong);
}
.framework-table td:first-child {
  font-weight: 600;
  width: 40px;
  color: var(--text-subtle);
}
.framework-table td strong { font-weight: 600; }
@media (max-width: 640px) {
  .framework-table { font-size: 14px; }
  .framework-table td, .framework-table th { padding: 12px 8px; }
}

/* --- Pillar block (self-audit) --- */
.pillar {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  margin: 20px 0;
  background: var(--bg);
  transition: border-color 0.15s;
}
.pillar:focus-within { border-color: var(--text); }
.pillar h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.pillar .stmt {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 16px;
  font-style: italic;
}
.pillar .score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.pillar .score-row label { color: var(--text-muted); font-weight: 500; }
.score-input {
  width: 64px;
  padding: 8px 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
.score-input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* --- Audit total --- */
.audit-total {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 40px 0;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.audit-total .stat {
  text-align: center;
  min-width: 140px;
}
.audit-total .stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.audit-total .stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Interpretation blocks --- */
.interp {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
  background: var(--bg);
  transition: background 0.2s, border-color 0.2s;
}
.interp.active {
  background: var(--highlight);
  border-color: var(--pink-300);
}
.interp h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.interp p { margin: 0; color: var(--text); font-size: 15.5px; }

/* --- CTA block (premium tier — charcoal bg + pink CTA) --- */
.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  margin: 56px 0;
}
.cta-block h2 {
  color: #fff;
  margin: 0 0 16px;
  font-size: clamp(28px, 3.5vw, 38px);
}
.cta-block p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
}
.cta-block .btn-primary {
  background: var(--pink-500);
  color: #fff;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
}
.cta-block .btn-primary:hover { background: var(--pink-700); }

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.faq-item p { color: var(--text-muted); margin: 0; font-size: 15.5px; }

/* --- About block --- */
.about {
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 40px 0;
}
.about h3 { margin-top: 0; }

/* --- Anti-patterns --- */
.antipattern {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.antipattern:last-child { border-bottom: 0; }
.antipattern h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.antipattern p { margin: 0 0 12px; color: var(--text); font-size: 16px; }
.antipattern p:last-child { margin-bottom: 0; }

/* --- Footer --- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  color: var(--text-subtle);
  font-size: 13.5px;
  margin: 0 0 6px;
  line-height: 1.6;
}
.footer a { color: var(--text-muted); }

/* --- Page-break helper for reader's "8 pages" feel --- */
.page-divider {
  text-align: center;
  margin: 48px 0;
  color: var(--text-subtle);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-divider::before,
.page-divider::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--border-strong);
  vertical-align: middle;
  margin: 0 16px;
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }

/* --- Brand accents (optional opt-in hooks) --- */
/* Soft pink wash behind hero — add class "hero--wash" on the .hero element */
.hero--wash {
  background: linear-gradient(180deg, var(--pink-50) 0%, #ffffff 70%);
}
/* Pink prose link — use class "link" on inline anchors inside body copy */
a.link, .prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}
a.link:hover, .prose a:hover { color: var(--accent-hover); }
/* Inline pink highlight — use <mark> or class "mark" */
mark, .mark {
  background: var(--pink-100);
  color: var(--text);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* --- Premium tier override ---
   Add class "tier-premium" on <body> to flip the page into charcoal-hero mode.
   Reserved for Level 3 Retainer Pro and high-ticket offer pages. */
body.tier-premium .hero {
  background: var(--ink);
  color: #fff;
  padding: 120px 0 80px;
}
body.tier-premium .hero h1 { color: #fff; }
body.tier-premium .hero .sub { color: rgba(255,255,255,0.75); }
body.tier-premium .hero-microcopy { color: rgba(255,255,255,0.6); }
body.tier-premium .nav {
  background: rgba(24,24,27,0.85);
  border-bottom-color: rgba(255,255,255,0.08);
}
body.tier-premium .nav .logo { color: #fff; }
body.tier-premium .nav-cta { color: rgba(255,255,255,0.7); }
body.tier-premium .nav-cta:hover { color: #fff; }
