/* VisionCut Media — blog styles
   Self-contained: does not depend on the homepage style.css.
   Brand tokens match the homepage: near-black background, #0055ff blue, Syne + DM Sans. */

:root {
  --bg: #070707;
  --panel: #0f0f13;
  --panel-2: #16161c;
  --line: rgba(255, 255, 255, 0.09);
  --text: #d9dbe2;
  --muted: #a3a6b1;
  --white: #ffffff;
  --blue: #0055ff;
  --blue-hover: #1a68ff;
  --blue-text: #5b93ff; /* lighter blue for text on dark: passes contrast where #0055ff would not */
  --head: 'Syne', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { left: 8px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.bl-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(20px, 5%);
  background: rgba(7, 7, 7, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.bl-logo {
  font-family: var(--head); font-weight: 800; font-size: 20px; letter-spacing: -0.3px;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.bl-logo span { color: var(--blue-text); }
.bl-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.bl-links a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.bl-links a:hover, .bl-links a[aria-current="page"] { color: var(--white); }
.bl-links a.bl-phone { font-weight: 600; font-size: 13px; }
.bl-links a.bl-cta {
  background: var(--blue); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-weight: 600; transition: background-color 0.2s;
}
.bl-links a.bl-cta:hover { background: var(--blue-hover); color: #fff; }

@media (max-width: 980px) {
  .bl-links li.bl-hide-md { display: none; }
}
@media (max-width: 520px) {
  .bl-links li.bl-hide-sm { display: none; }
  .bl-logo { font-size: 18px; }
  .bl-links a.bl-cta { padding: 9px 14px; }
}

/* ---------- Layout ---------- */
.bl-wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Blog listing ---------- */
.bl-head { padding: 72px 0 40px; max-width: 760px; }
.bl-head h1 {
  font-family: var(--head); font-weight: 800; color: var(--white);
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 16px;
}
.bl-head p { color: var(--muted); font-size: 19px; max-width: 54ch; margin: 0; }

.bl-list { display: grid; gap: 24px; padding-bottom: 96px; }
.bl-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: border-color 0.2s;
}
.bl-card:hover, .bl-card:focus-within { border-color: rgba(0, 85, 255, 0.6); }
.bl-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.bl-card-body { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.bl-card h2 {
  font-family: var(--head); font-weight: 700; color: var(--white);
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin: 0;
}
.bl-card h2 a { color: inherit; text-decoration: none; }
.bl-card h2 a::after { content: ""; position: absolute; inset: 0; } /* makes the whole card clickable */
.bl-card p { color: var(--muted); margin: 0; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .bl-head { padding-top: 48px; }
  .bl-card { grid-template-columns: 1fr; }
  .bl-card-body { padding: 24px; }
}

/* ---------- Single post ---------- */
.post { width: min(700px, 100% - 40px); margin-inline: auto; padding: 40px 0 96px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs [aria-hidden] { margin: 0 8px; }

.post h1 {
  font-family: var(--head); font-weight: 800; color: var(--white);
  font-size: clamp(30px, 4.8vw, 46px); line-height: 1.12; letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; color: var(--muted); margin-bottom: 32px; }
.post-hero { margin: 0 0 44px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.post-hero img { width: 100%; }

.post-body { font-size: 18px; line-height: 1.75; }
.post-body p { margin: 0 0 1.2em; }
.post-body h2 {
  font-family: var(--head); font-weight: 700; color: var(--white);
  font-size: clamp(25px, 3.4vw, 31px); line-height: 1.2; letter-spacing: -0.02em;
  margin: 2.1em 0 0.65em; scroll-margin-top: 90px;
}
.post-body h3 {
  font-family: var(--head); font-weight: 700; color: var(--white);
  font-size: 21px; line-height: 1.3; margin: 1.7em 0 0.5em;
}
.post-body ul { margin: 0 0 1.3em; padding-left: 1.3em; }
.post-body li { margin: 0.35em 0; padding-left: 0.2em; }
.post-body li::marker { color: var(--blue-text); }
.post-body strong { color: var(--white); font-weight: 600; }
.post-body p a { color: var(--blue-text); }
.post-body p a:hover { color: var(--white); }

/* table */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { padding: 14px 20px; text-align: left; }
.post-body th { background: var(--panel-2); font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--white); }
.post-body tbody tr + tr td { border-top: 1px solid var(--line); }
.post-body td:first-child { color: var(--white); font-weight: 600; white-space: nowrap; }

/* Video A vs Video B */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 1.6em 0; }
.compare > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.compare > div.compare-b { border-color: rgba(0, 85, 255, 0.45); }
.post-body .compare h3 { margin: 0 0 0.7em; font-size: 18px; }
.post-body .compare ul { margin-bottom: 1.1em; }
.post-body .compare p { margin: 0; font-size: 16px; color: var(--muted); }
@media (max-width: 640px) { .compare { grid-template-columns: 1fr; } }

/* pull quote + formula */
.pull { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue); }
.post-body .pull p {
  margin: 0; font-family: var(--head); font-weight: 600; color: var(--white);
  font-size: 22px; line-height: 1.4;
}
.formula {
  margin: 1.6em 0; padding: 22px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--head); font-weight: 700; color: var(--white);
  font-size: clamp(16px, 2.4vw, 20px); line-height: 1.5;
}

/* call to action */
.cta { margin: 3em 0; padding: 44px 40px; background: var(--panel); border: 1px solid rgba(0, 85, 255, 0.35); border-radius: 18px; }
.post-body .cta h2 { margin-top: 0; }
.post-body .cta p:last-of-type { margin-bottom: 0; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.btn {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 10px;
  font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
@media (max-width: 560px) { .cta { padding: 32px 24px; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 26px; line-height: 1; color: var(--blue-text); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.post-body .faq summary h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.post-body .faq details p { margin: 0 0 22px; }

.post-back { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-back a { color: var(--blue-text); font-weight: 600; text-decoration: none; }
.post-back a:hover { color: var(--white); }

/* ---------- Footer ---------- */
.bl-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; background: var(--bg); }
.bl-footer .bl-wrap { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 40px; }
.bl-footer .bl-logo { display: inline-block; margin-bottom: 12px; }
.bl-footer p { margin: 0; font-size: 14px; color: var(--muted); }
.bl-footer-title { display: block; font-family: var(--head); font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 12px; }
.bl-footer a:not(.bl-logo) { display: block; color: var(--muted); font-size: 14px; text-decoration: none; padding: 3px 0; }
.bl-footer a:not(.bl-logo):hover { color: var(--white); }
@media (max-width: 800px) { .bl-footer .bl-wrap { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
