:root {
  --bg:      #020204;
  --s3:      #0a0a0e;
  --s4:      #101015;
  --accent:  #6EE0FF;
  --accent-dim: rgba(110,224,255,0.08);
  --accent-glow: rgba(110,224,255,0.16);
  --white:   #F5F5F7;
  --muted:   rgba(245,245,247,0.52);
  --border:  rgba(245,245,247,0.07);
  --font-d:  'Bricolage Grotesque', sans-serif;
  --font-b:  'DM Sans', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-b);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Scroll reveal — same easing/blur treatment as the main site */
.blur-rv{filter:blur(12px);opacity:0;transform:translateY(20px);transition:filter .9s cubic-bezier(.16,1,.3,1),opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1);}
.blur-rv.vi{filter:blur(0);opacity:1;transform:none;}
@media (max-width: 768px) {
  .blur-rv{filter:none!important;transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)!important;}
  .blur-rv.vi{filter:none!important;}
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }
::selection { background: rgba(110,224,255,0.25); color: var(--white); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav — identical to the main site's floating pill nav */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; justify-content: center;
  padding: 14px 24px; pointer-events: none;
}
#nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 860px;
  height: 52px; padding: 0 10px 0 22px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  backdrop-filter: blur(60px) saturate(1.8); -webkit-backdrop-filter: blur(60px) saturate(1.8);
  transition: max-width .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
#nav-inner.scrolled {
  max-width: 720px;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 8px 40px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.1) inset;
}
.nav-logo {
  font-family: 'Inter', -apple-system, sans-serif; font-size: 20px; font-weight: 700;
  color: #fff; text-decoration: none; letter-spacing: -.02em;
  flex-shrink: 0; display: flex; align-items: center;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo img { height: 15px; width: auto; margin-top: 2px; display: block; }
.nav-links { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.5); text-decoration: none;
  font-size: 13px; font-weight: 500; transition: color .2s;
  padding: 6px 12px; border-radius: 100px;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-cta {
  background: #00d4ff; color: #000; border: none;
  padding: 6px 6px 6px 14px; border-radius: 100px;
  font-family: 'DM Sans', -apple-system, sans-serif; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: transform .2s, box-shadow .25s, filter .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 3px 10px rgba(0,212,255,.25);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 5px 16px rgba(0,212,255,.35); filter: brightness(1.05); text-decoration: none; }
.nav-cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,0,0,.14); font-size: 10.5px; line-height: 1;
}
@media (max-width: 768px) {
  #nav { padding: 10px 14px; }
  #nav-inner { height: 44px; padding: 0 5px 0 14px; }
  .nav-links { display: none; }
  .nav-cta { padding: 6px 6px 6px 13px; font-size: 12px; gap: 5px; }
  .nav-cta-arrow { width: 16px; height: 16px; font-size: 10px; }
}

/* Breadcrumb */
.crumb {
  max-width: 700px; margin: 0 auto; padding: 110px 24px 0;
  font-size: 13px; color: rgba(245,245,247,0.32); font-weight: 400;
}
.crumb a { color: rgba(245,245,247,0.32); }
.crumb a:hover { color: var(--white); text-decoration: none; }
.crumb span { margin: 0 8px; opacity: .5; }

/* Header */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 24px 24px 100px; }
.article-header { text-align: center; display: flex; flex-direction: column; align-items: center; }
.article-header:has(.vs-title) {
  width: 100vw; max-width: 100vw; position: relative;
  left: 50%; margin-left: -50vw; padding: 0 24px;
  margin-top: clamp(24px, 9vh, 130px);
}
.tag-chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: var(--s3); border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px; margin-bottom: 28px;
}
.tag-chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
h1.article-title {
  font-family: var(--font-d); font-size: clamp(38px,6.6vw,64px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.05; color: var(--white); margin-bottom: 24px;
  max-width: 720px;
}

/* "Flayr VS Competitor" huge comparison title */
h1.vs-title {
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  gap: 0.2em; font-size: clamp(40px,7vw,124px); max-width: 1400px; white-space: nowrap;
  width: 100%; margin-left: auto; margin-right: auto;
}
@media (max-width: 640px) {
  h1.vs-title { flex-wrap: wrap; white-space: normal; font-size: clamp(40px,13vw,64px); }
}
h1.vs-title .vs-brand { color: var(--white); }
h1.vs-title .vs-competitor { color: var(--white); }
h1.vs-title .vs-word {
  position: relative; display: inline-block;
  font-family: -apple-system, 'SF Pro Display', 'Bricolage Grotesque', sans-serif; font-style: normal; font-weight: 800;
  font-size: 0.82em; padding: 0 0.1em;
  color: #ff3b30;
  animation: vs-pulse 2.6s ease-in-out infinite;
}
h1.vs-title .vs-word::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 1.7em; height: 1.7em; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,59,48,0.2), rgba(255,59,48,0.06) 45%, transparent 70%);
  filter: blur(10px); z-index: -1;
  animation: vs-flame 2.6s ease-in-out infinite;
}
@keyframes vs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.9; }
}
@keyframes vs-flame {
  0%, 100% { opacity: 0.55; transform: translate(-50%,-50%) scale(0.94); }
  50% { opacity: 0.85; transform: translate(-50%,-50%) scale(1.05); }
}

.article-dek { font-size: 19.5px; font-weight: 300; color: var(--muted); margin-bottom: 26px; max-width: 620px; line-height: 1.65; }
.article-meta { font-size: 13.5px; color: rgba(245,245,247,0.3); margin-bottom: 56px; display: flex; gap: 14px; align-items: center; justify-content: center; }
.article-header:has(+ .article-hero-media) .article-meta { margin-bottom: 20px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(245,245,247,0.3); }

/* Article hero media (image/video under header) */
.article-hero-media {
  width: 100%; margin-bottom: 48px; border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.article-hero-media img, .article-hero-media video {
  display: block; width: 100%; height: auto; object-fit: cover;
}
.article-hero-media.logo-card {
  max-width: 220px; margin-left: auto; margin-right: auto;
}
.article-hero-media.logo-card img { aspect-ratio: 1 / 1; }
.article-hero-media.small {
  max-width: 480px; margin-left: auto; margin-right: auto;
}

/* Quick answer / verdict */
.quick-answer {
  background: linear-gradient(160deg, var(--s4), var(--s3));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 40px; margin-bottom: 56px;
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.5);
}
.quick-answer .qa-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-d); font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.quick-answer .qa-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.quick-answer p { font-size: 18px; color: rgba(245,245,247,0.87); margin: 0; line-height: 1.7; }
.quick-answer p + p { margin-top: 18px; font-size: 15.5px; color: var(--muted); }
.quick-answer.verdict { padding: 40px 44px; border-color: rgba(110,224,255,0.22); }
.quick-answer.verdict p:first-of-type {
  font-family: var(--font-d); font-size: 21px; font-weight: 500; letter-spacing: -0.015em;
  color: var(--white); line-height: 1.55;
}

/* Article body */
.article-body { color: rgba(245,245,247,0.74); font-size: 17.5px; }
.article-body h2 {
  font-family: var(--font-d); font-size: 29px; font-weight: 700; letter-spacing: -0.025em;
  color: var(--white); margin: 60px 0 22px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-d); font-size: 19.5px; font-weight: 700; letter-spacing: -0.01em; color: var(--white); margin: 32px 0 12px; }
.article-body p { margin-bottom: 17px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 17px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--white); font-weight: 500; }

/* Compare card (when-to-use blocks) */
.compare-card {
  background: linear-gradient(160deg, var(--s4), var(--s3)); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px 32px; margin: 26px 0;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,0.55);
}
.compare-card.win { border-color: rgba(110,224,255,0.3); box-shadow: 0 20px 44px -24px rgba(110,224,255,0.12), 0 20px 40px -28px rgba(0,0,0,0.55); }
.compare-card h4 {
  font-family: var(--font-d); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; color: var(--white);
  margin-bottom: 13px; display: flex; align-items: center; gap: 8px;
}
.compare-card.win h4::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow); flex-shrink: 0;
}

/* Table */
.table-wrap { overflow-x: auto; margin: 26px 0 38px; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 40px -28px rgba(0,0,0,0.55); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.article-body th { text-align: left; padding: 15px 20px; font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: rgba(245,245,247,0.34); background: var(--s4); border-bottom: 1px solid var(--border); }
.article-body td { padding: 15px 20px; border-bottom: 1px solid rgba(245,245,247,0.05); }
.article-body tr:last-child td { border-bottom: none; }
.article-body td:first-child { color: var(--white); font-weight: 500; }

/* FAQ (native details/summary) */
.faq-section { margin-top: 64px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px;
  background: var(--s3); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 24px; font-size: 16.5px; font-weight: 500;
  color: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; color: inherit; margin: 0; }
.faq-item summary::after {
  content: '+'; font-size: 22px; font-weight: 300; color: var(--accent); flex-shrink: 0; transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 24px 24px; font-size: 15.5px; color: var(--muted); line-height: 1.7; max-width: 620px; }

/* Related articles */
.related-articles { margin-top: 64px; }
.related-articles h2 { font-family: var(--font-d); font-size: 22px; margin-bottom: 16px; }
.related-articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.related-articles-grid a {
  display: block; background: var(--s3); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; font-size: 14.5px; font-weight: 500; color: var(--white); text-decoration: none;
  transition: border-color .2s;
}
.related-articles-grid a:hover { border-color: rgba(110,224,255,.3); text-decoration: none; }

/* Bottom CTA — video island */
.blog-cta {
  position: relative; overflow: hidden;
  margin-top: 76px; border-radius: 26px; padding: 60px 44px; text-align: center;
  background: linear-gradient(160deg, var(--s4), var(--s3));
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.blog-cta-vid-wrap {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.blog-cta-vid { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.4); filter: blur(8px); opacity: .22; }
.blog-cta-content { position: relative; z-index: 1; }
.blog-cta h3 { font-family: var(--font-d); font-size: 33px; font-weight: 700; letter-spacing: -0.03em; color: var(--white); margin-bottom: 14px; }
.blog-cta h3 em { font-style: italic; font-weight: 400; color: var(--accent); }
.blog-cta p { color: var(--muted); font-size: 16.5px; margin-bottom: 32px; }
.blog-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.blog-cta .btn-p {
  font-size: 14px; font-weight: 600; color: var(--bg); background: var(--white);
  padding: 13px 28px; border-radius: 100px; text-decoration: none; transition: opacity .2s;
}
.blog-cta .btn-p:hover { opacity: .85; text-decoration: none; }
.blog-cta .btn-s {
  font-size: 14px; font-weight: 600; color: var(--white); background: transparent;
  border: 1px solid var(--border); padding: 12px 28px; border-radius: 100px; text-decoration: none;
}
.blog-cta .btn-s:hover { border-color: rgba(245,245,247,0.25); text-decoration: none; }

/* Footer blur transition */
.footer-blur {
  position: relative; height: 90px; margin-bottom: -90px; z-index: 1;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 80%);
  mask-image: linear-gradient(to bottom, transparent, black 80%);
  pointer-events: none;
}

/* Footer */
.blog-footer {
  position: relative; z-index: 0;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px clamp(24px,4vw,64px) 32px; margin-top: 40px;
}
.blog-footer-inner { max-width: 1100px; margin: 0 auto; }
.blog-footer-cols { display: flex; gap: 64px; flex-wrap: wrap; margin-bottom: 36px; }
.blog-footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(245,245,247,0.28); margin-bottom: 14px; }
.blog-footer-col a { display: block; font-size: 13.5px; color: rgba(245,245,247,0.5); margin-bottom: 10px; text-decoration: none; }
.blog-footer-col a:hover { color: var(--white); }
.blog-footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border); }
.blog-footer-bottom img { height: 22px; width: auto; }
.blog-footer-copy { font-size: 12px; color: rgba(245,245,247,0.22); }

/* Table of contents — floating island, left edge */
.toc-island {
  position: fixed; left: 28px; top: 50%; transform: translateY(-50%) translateX(-8px);
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
  background: rgba(13,13,17,0.7); border: 1px solid var(--border);
  border-radius: 100px; padding: 16px 8px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.toc-island.visible { opacity: 1; pointer-events: auto; transform: translateY(-50%) translateX(0); }
.toc-island a {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245,245,247,0.18); position: relative;
  transition: background .2s ease, transform .2s ease;
}
.toc-island a:hover { background: rgba(245,245,247,0.4); text-decoration: none; }
.toc-island a.active { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transform: scale(1.25); }
.toc-island a .toc-label {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-b); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  color: var(--white); background: var(--s3); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.toc-island a:hover .toc-label, .toc-island a.active .toc-label { opacity: 1; }

@media (max-width: 1180px) {
  .toc-island { display: none; }
}

@media (max-width: 768px) {
  .blog-nav { padding: 14px 20px; }
  .crumb, .article-wrap { padding-left: 20px; padding-right: 20px; }
  .blog-cta { padding: 40px 24px; }
}
