/* =========================================================================
   YourGrowthPartner — Lean Labs–style design system
   Dark monochrome · Plus Jakarta Sans · clean, static, performant.
   Tokens & type scale extracted 1:1 from leanlabs.com.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  --bg: #0d0d0d;
  --bg-2: #0a0a0a;
  --fg: #ffffff;
  --muted: #b0b0b0;          /* body / secondary text */
  --muted-2: #949494;        /* tertiary / two-tone gray */
  --card: #141414;
  --card-2: #1a1a1a;
  --surface: #212121;
  --surface-2: #2b2b2b;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: #2b2b2f;
  --accent: #ffffff;         /* LL is monochrome; primary CTA is white */
  --accent-ink: #0d0d0d;
  --glow: rgba(120, 90, 200, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --container: 1152px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #a78bfa; outline-offset: 3px; border-radius: 4px; }

/* ---------- layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head--left { margin-left: 0; text-align: left; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.6875rem; font-weight: 600; color: var(--muted-2);
}
.eyebrow--pill {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 16px; color: var(--fg);
}
.h1 { font-size: clamp(2.25rem, 1.2rem + 3.2vw, 3.5rem); font-weight: 600; line-height: 1.14; letter-spacing: -0.01em; }
.h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.card-title { font-size: 1.25rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.3px; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--muted); }
.muted { color: var(--muted); }
.muted-2 { color: var(--muted-2); }
.eyebrow + .h2, .eyebrow + .h1 { margin-top: 20px; }
.h1 + .lead, .h2 + .lead, .h3 + p { margin-top: 20px; }
.two-tone { color: var(--muted-2); }   /* second clause of a headline */

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #e9e9e9; }
.btn-outline { background: transparent; color: var(--fg); border-color: var(--border-strong); }
.btn-outline:hover { border-color: #4a4a52; background: rgba(255,255,255,0.03); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 0.95rem; color: var(--muted); font-weight: 500; transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--fg); }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__toggle { display: none; background: none; border: 0; color: var(--fg); padding: 8px; }
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn-outline { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; left: 0; right: 0; top: 72px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
  }
  .nav__links.is-open a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 70%;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow) 0%, rgba(13,13,13,0) 70%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; position: relative; }
.hero__portrait { position: relative; }
.hero__portrait img { width: 87%; margin-left: auto; border-radius: 76px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__portrait img { width: 78%; margin: 0 auto; border-radius: 48px; }
}

/* ---------- generic surfaces / cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-2); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 18px; color: var(--fg);
}
.card p { color: var(--muted); }
.card__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.2px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* feature list with check bullets */
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); margin-top: 12px; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 10px;
}

/* ---------- logo strip ---------- */
.logos { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.logos__label { text-align: center; margin-bottom: 26px; }
.logos__track { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 56px; }
.logos__track img { height: 34px; width: auto; opacity: 0.6; filter: grayscale(1) brightness(1.6); transition: opacity .25s var(--ease); }
.logos__track img:hover { opacity: 1; }

/* ---------- stats ---------- */
.stat { text-align: center; padding: 20px; }
.stat__num { font-size: clamp(2.5rem, 1.5rem + 3vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.stat__label { color: var(--muted-2); margin-top: 10px; font-size: 0.95rem; }

/* ---------- comparison (problem vs solution) ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare__col { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.compare__col--bad { background: #120f0f; }
.compare__col--good { background: #0f1210; }
.compare__row + .compare__row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.compare h4 { font-size: 1.05rem; font-weight: 600; }
.compare p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }

/* ---------- results / case cards ---------- */
.result-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.result-card__metrics { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 20px; }
.result-card__metric b { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.result-card__metric span { color: var(--muted-2); font-size: 0.85rem; }

/* ---------- testimonials ---------- */
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.quote p { font-size: 1.05rem; color: var(--fg); line-height: 1.6; }
.quote__by { margin-top: 20px; color: var(--muted-2); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-2); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 14px; }

/* ---------- blog cards ---------- */
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.post-card__media { aspect-ratio: 16/9; background: var(--surface); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__date { color: var(--muted-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.post-card__title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.post-card__more { margin-top: auto; color: var(--fg); font-weight: 600; font-size: 0.9rem; }

/* ---------- closing CTA ---------- */
.cta { position: relative; text-align: center; padding: 104px 0; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, var(--glow) 0%, rgba(13,13,13,0) 70%); pointer-events: none; }
.cta .h2 { position: relative; }

/* ---------- footer (mega, Lean Labs structure) ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 80px 0 40px; background: var(--bg-2); }

/* top band: brand tagline + two CTA cards */
.foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; align-items: stretch; }
.foot-brand__logo { height: 28px; width: auto; margin-bottom: 20px; }
.foot-brand__tag { color: var(--muted-2); font-size: 0.95rem; line-height: 1.65; max-width: 340px; }
.foot-brand__tag a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 2px; transition: text-decoration-color .2s var(--ease); }
.foot-brand__tag a:hover { text-decoration-color: #fff; }
.foot-card { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0)); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.foot-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-2px); }
.foot-card__eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); }
.foot-card__title { color: #fff; font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.foot-card__cta { color: var(--muted); font-size: 0.9rem; font-weight: 500; margin-top: auto; padding-top: 10px; }
.foot-card:hover .foot-card__cta { color: #fff; }

/* 6-column internal-link grid */
.foot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px 24px; margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--border); }
.foot-col__h { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.9rem; padding: 5px 0; transition: color .2s var(--ease); }
.foot-col a:hover { color: #fff; }

/* contact / company band */
.foot-contact { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: flex-start; margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--border); }
.foot-contact__info p { color: var(--muted-2); font-size: 0.9rem; line-height: 1.6; }
.foot-contact__addr { font-style: normal; margin-top: 12px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.foot-contact__reach { margin-top: 12px; }
.foot-contact__reach a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 4px; transition: text-decoration-color .2s var(--ease); }
.foot-contact__reach a:hover { text-decoration-color: #fff; }
.foot-contact__links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-contact__links a { color: rgba(255,255,255,.9); font-size: 0.9rem; font-weight: 500; transition: color .2s var(--ease); }
.foot-contact__links a:hover { color: #fff; }

/* legal row */
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.82rem; }
.foot-legal__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.foot-legal__links a { color: var(--muted); transition: color .2s var(--ease); }
.foot-legal__links a:hover { color: #fff; }
.foot-sep { color: #4d4d4d; }

@media (max-width: 1000px) {
  .foot-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-top { grid-template-columns: 1fr; }
  .foot-contact { flex-direction: column; }
}

/* ---------- prose (blog post / legal bodies) ---------- */
.prose { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.075rem; line-height: 1.75; }
.prose > * + * { margin-top: 20px; }
.prose h2 { color: var(--fg); font-size: 1.7rem; font-weight: 600; margin-top: 48px; letter-spacing: -0.01em; }
.prose h3 { color: var(--fg); font-size: 1.3rem; font-weight: 600; margin-top: 36px; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-top: 8px; }
.prose img { border-radius: var(--radius); margin: 28px 0; }
.prose blockquote { border-left: 3px solid var(--border-strong); padding-left: 20px; color: var(--fg); font-style: italic; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose h4 { color: var(--fg); font-size: 1.1rem; font-weight: 600; margin-top: 28px; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.prose strong, .prose b { color: var(--fg); }
/* tables inside prose scroll horizontally on small screens */
.prose .table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 0.95rem; }
.prose thead th { background: var(--surface); color: var(--fg); text-align: left; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose table a { color: #fff; }

/* ---------- reveal on scroll (progressive) ----------
   Default is fully VISIBLE, so with JS disabled/failed nothing is hidden.
   The hidden-then-animate state applies only when <html class="js"> is set
   by the inline bootstrap script build_page.py injects. */
/* Content is ALWAYS visible — never gated on JS/scroll (this is a live SEO
   site; invisible content is unacceptable). The .reveal class is retained in
   markup as a harmless hook but does not hide anything. */
.reveal, .js .reveal, .js .reveal.is-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .btn:hover, .card:hover, .post-card:hover { transform: none; }
}
