/* TrakCorp blog — shared layout for the /blog hub and article pages.
   Uses the TrakCorp design-system tokens; no new colours introduced. */

html { scroll-behavior: smooth; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #0a0a0a;
  color: #F5F5F0;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: #F5F5F0; text-decoration: none; transition: color .2s var(--ease-premium); }
a:hover { color: #34D399; }
::selection { background: hsl(142 76% 36% / 0.35); color: #fff; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---- Header -------------------------------------------------------- */
.bhead {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid hsl(0 0% 100% / 0.06);
}
.bhead-in {
  max-width: 1200px; margin: 0 auto; padding: 15px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.bhead img { height: 24px; width: auto; display: block; }
.bnav { display: flex; align-items: center; gap: 22px; }
.bnav a {
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
  color: hsl(0 0% 100% / 0.7);
}
.bnav a:hover { color: #34D399; }
.bnav .cta {
  border: 1px solid hsl(142 76% 36% / 0.5);
  border-radius: 8px; padding: 9px 16px;
  color: #34D399; background: hsl(142 76% 36% / 0.08);
}
.bnav .cta:hover { background: hsl(142 76% 36% / 0.16); }
@media (max-width: 640px) { .bnav a.hide-sm { display: none; } }

/* ---- Shell --------------------------------------------------------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 740px; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: #8A9088;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--accent-green);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.8);
}
.hero {
  position: relative; overflow: hidden;
  padding: 168px 0 0; background: #0a0a0a;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 0%, hsl(142 76% 36% / 0.12), transparent 70%);
}
.hero > .wrap { position: relative; }
h1 {
  margin: 26px 0 0; font-weight: 300;
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  line-height: 1.05; letter-spacing: -0.03em; color: #F5F5F0;
  text-wrap: balance; animation: fadeUp .8s var(--ease-premium) .1s both;
}
.lede {
  margin: 24px 0 0; max-width: 680px; font-size: 18px; line-height: 1.65;
  font-weight: 300; color: hsl(0 0% 100% / 0.68);
  animation: fadeUp .8s var(--ease-premium) .2s both;
}
.byline {
  margin-top: 34px; padding: 20px 0; display: flex; flex-wrap: wrap; gap: 10px 20px;
  border-top: 1px solid hsl(0 0% 100% / 0.08);
  font-size: 12.5px; color: #8A9088;
}

/* ---- Article prose ------------------------------------------------- */
article { padding: 64px 0 40px; }
article h2 {
  margin: 62px 0 0; font-weight: 300;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.15; letter-spacing: -0.02em; color: #F5F5F0;
}
article h3 {
  margin: 40px 0 0; font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; color: hsl(0 0% 100% / 0.94);
}
article p {
  margin: 20px 0 0; font-size: 16.5px; line-height: 1.75;
  font-weight: 300; color: hsl(0 0% 100% / 0.72);
}
article p strong { color: hsl(0 0% 100% / 0.94); font-weight: 500; }
article a { color: #34D399; border-bottom: 1px solid hsl(142 76% 36% / 0.35); }
article ul { margin: 20px 0 0; padding: 0; list-style: none; }
article ul li {
  position: relative; padding: 11px 0 11px 22px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.06);
  font-size: 15.5px; line-height: 1.6; font-weight: 300;
  color: hsl(0 0% 100% / 0.72);
}
article ul li::before {
  content: ""; position: absolute; left: 0; top: 20px;
  width: 6px; height: 1px; background: var(--accent-green);
}
.callout {
  margin: 40px 0 0; padding: 26px 28px;
  border: 1px solid hsl(0 0% 100% / 0.09); border-radius: 14px;
  background: hsl(0 0% 100% / 0.02);
}
.callout p:first-child { margin-top: 0; }
.tbl { margin: 28px 0 0; width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1px solid hsl(0 0% 100% / 0.07);
  font-weight: 300; color: hsl(0 0% 100% / 0.72);
}
.tbl th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: #8A9088;
}
.tbl td.price {
  font-family: var(--font-display); font-weight: 500;
  color: #F5F5F0; white-space: nowrap;
}
@media (max-width: 640px) { .tbl th, .tbl td { padding: 12px 8px; font-size: 14px; } }

.toc {
  margin: 40px 0 0; padding: 22px 24px;
  border: 1px solid hsl(0 0% 100% / 0.08); border-radius: 14px;
}
.toc div {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8A9088;
}
.toc ol { margin: 14px 0 0; padding-left: 18px; }
.toc li { margin: 8px 0; font-size: 15px; font-weight: 300; color: hsl(0 0% 100% / 0.72); }
.toc a { color: hsl(0 0% 100% / 0.82); border: 0; }

/* ---- CTA ----------------------------------------------------------- */
.endcta {
  margin: 76px 0 0; padding: 40px; border-radius: 18px;
  border: 1px solid hsl(142 76% 36% / 0.28);
  background: linear-gradient(140deg, hsl(142 76% 36% / 0.1), transparent 70%);
}
.endcta h2 { margin: 14px 0 0; }
.endcta .btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 22px; border-radius: 10px;
  font-size: 14px; font-weight: 500;
}
.btn-primary { background: var(--accent-green); color: #05130d; }
.btn-primary:hover { color: #05130d; filter: brightness(1.08); }
.btn-ghost { border: 1px solid hsl(0 0% 100% / 0.16); color: hsl(0 0% 100% / 0.86); }
@media (max-width: 640px) { .endcta { padding: 28px 22px; } }

/* ---- Post cards (hub + related) ------------------------------------ */
.cards {
  margin: 40px 0 0; display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  display: block; padding: 28px; border-radius: 16px;
  border: 1px solid hsl(0 0% 100% / 0.08);
  background: hsl(0 0% 100% / 0.02);
  transition: border-color .3s var(--ease-premium), transform .3s var(--ease-premium);
}
.card:hover { border-color: hsl(142 76% 36% / 0.4); transform: translateY(-3px); color: inherit; }
.card .kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: #8A9088;
}
.card h2, .card h3 {
  margin: 16px 0 0; font-size: 21px; font-weight: 500;
  line-height: 1.28; letter-spacing: -0.02em; color: #F5F5F0;
}
.card p {
  margin: 12px 0 0; font-size: 14.5px; line-height: 1.65;
  font-weight: 300; color: hsl(0 0% 100% / 0.6);
}
.card .more { margin-top: 20px; font-size: 13px; font-weight: 500; color: #34D399; }

/* ---- Footer -------------------------------------------------------- */
.bfoot {
  margin-top: 110px; border-top: 1px solid hsl(0 0% 100% / 0.07);
  padding: 46px 0 40px;
}
.bfoot-in {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #8A9088;
}
.bfoot-in a { color: hsl(0 0% 100% / 0.7); }
.bfoot-links { display: flex; flex-wrap: wrap; gap: 20px; }
