/* ─────────────────────────────────────────────────────────
   longform.naviplus.io — modern editorial design
   ───────────────────────────────────────────────────────── */
:root {
  --ink: #15171c;
  --ink-soft: #51566177;
  --muted: #5b616e;
  --line: #e7e8ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --brand: #2f7d5b;
  --brand-2: #6d5cf0;
  --hero: #6d5cf0;
  --radius: 18px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(16,17,23,.05), 0 12px 32px -12px rgba(16,17,23,.12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; }
.lf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Header ───────────────────────────────────────────── */
.lf-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.lf-nav {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 62px; display: flex; align-items: center; gap: 18px;
}
.lf-logo { display: flex; align-items: center; gap: 8px; }
.lf-logo img { height: 26px; width: auto; }
.lf-logo-tag {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 17px;
  color: var(--ink); letter-spacing: -.01em;
}
.lf-nav-link { color: var(--muted); font-weight: 500; font-size: 14px; }
.lf-nav-link:hover { color: var(--ink); }
.lf-nav-spacer { flex: 1; }
.lf-nav-cta {
  font-weight: 600; font-size: 14px; color: #fff;
  background: var(--ink); padding: 8px 14px; border-radius: 10px;
}
.lf-nav-cta:hover { background: #000; }

/* Language switcher */
.lf-lang { position: relative; }
.lf-lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.lf-lang-btn:hover { color: var(--ink); border-color: #d2d4de; }
.lf-lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; min-width: 88px;
  display: none; grid-template-columns: 1fr 1fr; gap: 2px;
}
.lf-lang:hover .lf-lang-menu, .lf-lang:focus-within .lf-lang-menu { display: grid; }
.lf-lang-item {
  text-align: center; font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 6px 8px; border-radius: 8px;
}
.lf-lang-item:hover { background: var(--bg-soft); color: var(--ink); }
.lf-lang-item.is-active { color: var(--brand); background: #eef6f1; }

/* ── Hero (home) ──────────────────────────────────────── */
.lf-hero { padding: 78px 0 38px; text-align: center;
  background:
    radial-gradient(60% 120% at 50% -10%, #eef0ff 0%, transparent 60%),
    radial-gradient(40% 90% at 90% 0%, #eafaf2 0%, transparent 55%);
}
.lf-hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--brand);
  background: #eef6f1; border: 1px solid #d6eade; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.lf-hero-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 auto 18px; max-width: 16ch;
}
.lf-hero-sub { font-size: clamp(16px,2.1vw,20px); color: var(--muted); max-width: 60ch; margin: 0 auto; }

/* ── Guide grid (home) ────────────────────────────────── */
.lf-guides { padding: 30px 0 80px; }

/* ── Category Sections ──────────────────────────────────── */
.lf-category-section {
  background: var(--bg); border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 40px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  border: 1px solid color-mix(in srgb, var(--cat-color) 12%, var(--line));
}
.lf-category-section:last-of-type { margin-bottom: 80px; }

.lf-category-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 20px; gap: 24px;
}

.lf-category-name {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: 28px; line-height: 1.2; letter-spacing: -.01em;
  color: var(--ink); margin: 0;
}

.lf-category-desc {
  font-size: 15.5px; color: var(--muted);
  margin: 6px 0 0; max-width: 52ch;
}

.lf-view-more {
  display: inline-block; font-weight: 600; font-size: 14.5px;
  color: var(--brand); white-space: nowrap; text-decoration: none;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: all .18s ease;
}
.lf-view-more:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}

@media (max-width: 640px) {
  .lf-category-header { flex-direction: column; gap: 12px; }
  .lf-view-more { align-self: flex-start; }
}

/* ── Category Page ──────────────────────────────────────── */
.lf-category-page { padding: 40px 0 80px; }
.lf-category-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: 42px; line-height: 1.1; margin: 12px 0 10px;
}
.lf-category-lead {
  font-size: 19px; color: var(--muted);
  margin: 0 0 40px; max-width: 64ch;
}

.lf-section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 4px;
}
.lf-guide-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-top: 24px;
  border-top: 1px solid color-mix(in srgb, var(--cat-color) 15%, var(--line));
}
.lf-guide-card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius);
  padding: 20px 20px 18px; overflow: hidden;
  transition: background .18s ease;
  color: var(--ink);
}
.lf-guide-card:hover { background: color-mix(in srgb, var(--cat-color) 5%, transparent); }
.lf-guide-arrow {
  position: absolute; top: 14px; right: 14px;
  font-size: 16px; font-weight: 700; color: var(--cat-color, var(--brand));
  opacity: 0; transform: translate(-4px, 4px);
  transition: opacity .18s ease, transform .18s ease;
}
.lf-guide-card:hover .lf-guide-arrow { opacity: 1; transform: translate(0, 0); }
.lf-guide-read { font-size: 12.5px; color: var(--ink-soft); font-weight: 500; margin-bottom: 10px; }
.lf-guide-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 21px; line-height: 1.25;
  letter-spacing: -.01em; margin: 0 0 8px;
}
.lf-guide-desc { color: var(--muted); font-size: 14.5px; line-height: 1.45; margin: 0; flex: 1; }

/* ── Featured Card (first article per category) ─────────── */
.lf-featured-card {
  position: relative; display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden; color: var(--ink); margin-bottom: 18px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lf-featured-card:hover { background: color-mix(in srgb, var(--cat-color) 4%, transparent); }
.lf-featured-card:hover .lf-guide-arrow { opacity: 1; transform: translate(0, 0); }

.lf-featured-image {
  background: color-mix(in srgb, var(--cat-color) 8%, var(--bg-soft));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.lf-featured-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.lf-featured-content {
  position: relative; display: flex; flex-direction: column;
  padding: 28px 28px 24px;
}
.lf-featured-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 28px; line-height: 1.2;
  letter-spacing: -.01em; margin: 0 0 12px;
}
.lf-featured-desc { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; flex: 1; }

@media (max-width: 720px) {
  .lf-featured-card { grid-template-columns: 1fr; min-height: auto; }
  .lf-featured-image { min-height: 220px; }
  .lf-featured-content { padding: 22px 20px 18px; }
  .lf-featured-title { font-size: 23px; }
  .lf-featured-desc { font-size: 15px; }
}

.lf-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--hero);
  background: color-mix(in srgb, var(--hero) 12%, #fff);
  padding: 4px 10px; border-radius: 999px;
}

/* ── Article ──────────────────────────────────────────── */
.lf-article-hero {
  padding: 54px 0 40px;
  background:
    radial-gradient(70% 120% at 12% -10%, color-mix(in srgb, var(--hero) 16%, #fff) 0%, transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.lf-crumb { font-size: 14px; font-weight: 600; color: var(--muted); }
.lf-crumb:hover { color: var(--ink); }
.lf-article-hero .lf-tag { margin: 18px 0 0; }
.lf-article-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -.03em;
  margin: 14px 0 16px; max-width: 22ch;
}
.lf-article-lede { font-size: clamp(17px,2.2vw,21px); color: var(--muted); max-width: 64ch; margin: 0; }
.lf-article-meta { display: flex; gap: 18px; margin-top: 22px; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.lf-article-meta span { position: relative; }
.lf-article-meta span + span::before { content: "·"; position: absolute; left: -11px; }

.lf-article-body { padding: 46px 24px 0; }
.lf-prose { max-width: 720px; margin: 0 auto; }
.lf-prose > * { margin-left: auto; margin-right: auto; max-width: 720px; }
.lf-prose h2 {
  position: relative;
  font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 26px; line-height: 1.2;
  letter-spacing: -.016em; margin: 52px 0 12px; padding-top: 24px;
}
.lf-prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--hero) 44%, #fff), transparent);
}
.lf-prose h2::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hero);
  box-shadow: 18px 0 0 color-mix(in srgb, var(--hero) 22%, #fff);
}
.lf-prose h3 { font-weight: 700; font-size: 18px; letter-spacing: -.01em; margin: 30px 0 8px; }
.lf-prose p { margin: 0 0 18px; }
.lf-prose ul, .lf-prose ol { margin: 0 0 18px; padding-left: 22px; }
.lf-prose li { margin: 6px 0; }
.lf-prose strong {
  color: var(--ink);
  font-weight: 750;
  background: linear-gradient(transparent 64%, color-mix(in srgb, var(--hero) 18%, #fff) 0);
}
.lf-prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: color-mix(in srgb, var(--brand) 42%, transparent);
}
.lf-prose a:hover { text-decoration-color: var(--brand); }
.lf-prose blockquote {
  margin: 26px 0; padding: 14px 22px; border-left: 4px solid var(--hero);
  background: var(--bg-soft); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 17px;
}
.lf-prose img { border-radius: 12px; }
.lf-prose figure {
  position: relative;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--hero) 10%, var(--line));
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--hero) 4%, #fff));
}
.lf-prose figure img {
  display: block;
  cursor: zoom-in;
  box-shadow: 0 10px 30px -18px rgba(15, 17, 23, .35);
}
.lf-prose figure img:hover { filter: saturate(1.02) contrast(1.02); }
.lf-image-tools {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
.lf-prose figure:hover .lf-image-tools,
.lf-prose figure:focus-within .lf-image-tools {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.lf-image-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(15,17,23,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: var(--ink) !important;
  box-shadow: 0 12px 28px -18px rgba(15,17,23,.35);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lf-image-tool:hover {
  background: #fff;
  border-color: rgba(15,17,23,.18);
}
.lf-image-tool--pin { color: #bd081c !important; }
.lf-prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }

.lf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: rgba(12, 14, 20, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lf-lightbox.is-open { display: flex; }
.lf-lightbox[aria-hidden="true"] { pointer-events: none; }
.lf-lightbox__button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lf-lightbox__button:hover { background: rgba(255,255,255,.2); }
.lf-lightbox__figure {
  margin: 0;
  max-width: min(96vw, 1440px);
  max-height: 92vh;
}
.lf-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(92vh - 48px);
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 28px 90px rgba(0,0,0,.36);
}
.lf-lightbox__caption {
  margin-top: 12px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

/* Inline "read the full deep-dive" link at the end of each topic section */
.lf-readmore {
  position: relative;
  margin: 18px auto 40px !important; padding: 14px 18px 14px 48px;
  border: 1px solid var(--line); border-left: 4px solid var(--hero);
  border-radius: 0 12px 12px 0; background: var(--bg-soft);
  font-weight: 600;
}
.lf-readmore::before {
  content: "→";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hero) 12%, #fff);
  color: var(--hero);
  font-weight: 800;
  line-height: 1;
}
.lf-readmore a { color: var(--brand); text-decoration: none; }
.lf-readmore a:hover { text-decoration: underline; }
.lf-readmore .lf-readmore-kicker {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px;
}

/* Explore (child links) */
.lf-explore { max-width: 920px; margin: 60px auto 0; }
.lf-explore h2 { font-family: "Inter", system-ui, sans-serif; font-weight: 700; font-size: 24px; letter-spacing: -.018em; margin: 0 0 6px; }
.lf-explore-sub { color: var(--muted); margin: 0 0 22px; }
.lf-explore-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }
.lf-explore-card {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 18px 44px;
  position: relative; color: var(--ink); transition: border-color .15s, background .15s;
}
.lf-explore-card:hover { border-color: var(--hero); background: var(--bg-soft); }
.lf-explore-arrow { position: absolute; left: 18px; top: 18px; color: var(--hero); font-weight: 700; }
.lf-explore-title { font-weight: 600; font-size: 16px; }
.lf-explore-desc { font-size: 14px; color: var(--muted); }

/* Share */
.lf-share {
  max-width: 720px; margin: 56px auto 0; padding: 18px 0 0; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.lf-share span:first-child { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.lf-share a, .lf-copy {
  font-size: 14px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: none; cursor: pointer; font-family: inherit;
}
.lf-share a:hover, .lf-copy:hover { color: var(--ink); border-color: #d2d4de; }

/* Backlink (topic → parent) */
.lf-backlink { max-width: 720px; margin: 40px auto 0; padding: 20px 22px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; }
.lf-backlink a { font-weight: 600; }
.lf-topic-parent { color: var(--muted); font-size: 14px; margin: 16px 0 0; }

/* CTA */
.lf-cta {
  margin-top: 80px; padding: 64px 0; text-align: center;
  background: linear-gradient(180deg, #0f1117, #1a1d27); color: #fff;
}
.lf-cta h2 { font-family: "Inter", system-ui, sans-serif; font-weight: 800; font-size: clamp(24px,3.4vw,36px); letter-spacing: -.024em; margin: 0 0 10px; color: #fff; }
.lf-cta p { color: #b9bdc9; max-width: 52ch; margin: 0 auto 26px; }
.lf-cta-btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; padding: 13px 26px; border-radius: 12px; }
.lf-cta-btn:hover { transform: translateY(-2px); }

/* ── Footer ───────────────────────────────────────────── */
.lf-footer { border-top: 1px solid var(--line); padding: 36px 0; margin-top: 0; }
.lf-footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.lf-footer-inner img { height: 22px; }
.lf-footer-note { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* topic head spacing */
.lf-topic-head { padding-top: 40px; }

/* ── Rich article components ──────────────────────────── */
/* Tables — display:block enables overflow-x scroll + border-radius on mobile */
.lf-prose table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 24px auto 26px;
  font-size: 15.5px; border: 1px solid var(--line); border-radius: 12px;
}
.lf-prose thead th {
  background: var(--bg-soft); text-align: left; font-weight: 700;
  font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-soft);
}
.lf-prose th, .lf-prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.lf-prose tbody tr:last-child td { border-bottom: 0; }
.lf-prose tbody tr:hover { background: color-mix(in srgb, var(--hero) 4%, #fff); }
/* Round corners on first/last cells */
.lf-prose thead tr:first-child th:first-child { border-radius: 12px 0 0 0; }
.lf-prose thead tr:first-child th:last-child  { border-radius: 0 12px 0 0; }
.lf-prose tbody tr:last-child td:first-child   { border-radius: 0 0 0 12px; }
.lf-prose tbody tr:last-child td:last-child    { border-radius: 0 0 12px 0; }

/* Key takeaways / callout box */
.lf-key {
  margin: 30px auto; padding: 20px 22px 10px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--hero) 6%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--hero) 22%, #fff);
  border-radius: 14px;
  box-shadow: 0 14px 34px -28px color-mix(in srgb, var(--hero) 50%, #000);
}
.lf-key-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--hero); margin-bottom: 8px;
}
.lf-key-title::before {
  content: "✦";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--hero) 12%, #fff);
  color: var(--hero);
  font-size: 13px;
  letter-spacing: 0;
}
.lf-key ul { margin: 0 0 12px !important; padding-left: 20px; }
.lf-key li { margin: 5px 0; }

.lf-note {
  position: relative;
  margin: 28px auto;
  padding: 18px 20px 18px 54px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  color: var(--ink);
}
.lf-note::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, #fff);
  color: var(--brand);
  font-weight: 800;
}
.lf-note-title {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 800;
}

/* Pull-stat */
.lf-stat { margin: 30px auto; text-align: center; }
.lf-stat-num {
  display: block; font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(36px, 6vw, 54px); line-height: 1; color: var(--hero); letter-spacing: -.02em;
}
.lf-stat-cap { display: block; color: var(--muted); font-size: 15px; margin-top: 8px; }

/* Figure + caption */
.lf-prose figure { margin: 26px auto; }
.lf-prose figcaption { color: var(--ink-soft); font-size: 14px; text-align: center; margin-top: 8px; }

/* FAQ (native <details>) */
.lf-faq { margin: 26px auto; }
.lf-faq details {
  border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; margin: 0 0 10px;
  background: var(--bg);
}
.lf-faq summary {
  cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary::after { content: "+"; color: var(--hero); font-weight: 700; font-size: 20px; }
.lf-faq details[open] summary::after { content: "−"; }
.lf-faq details[open] summary { border-bottom: 1px solid var(--line); }
.lf-faq details > p { margin: 14px 0; color: var(--muted); }

/* ── Language pill grid — override ported header's flex-wrap to keep pills even */
.np-mob-lang {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 6px !important;
}
.np-mob-lang-item {
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .lf-nav { gap: 12px; }
  .lf-nav-link { display: none; }
  .lf-article-body { padding-top: 32px; }
  .lf-prose h2 { font-size: 25px; }
  /* Tables: allow shorter cell text to wrap on very narrow screens */
  .lf-prose th, .lf-prose td { white-space: normal; min-width: 90px; }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — compare.naviplus.io
   ═══════════════════════════════════════════════════════════ */

/* ── Shared section layout ───────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.section        { padding: 72px 0; }
.section-alt    { padding: 72px 0; background: var(--bg-soft); }
.section-title  {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 10px; text-align: center;
}
.section-subtitle {
  text-align: center; color: var(--muted);
  font-size: 17px; max-width: 60ch; margin: 0 auto 44px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 88px 28px 72px;
  text-align: center;
  background:
    radial-gradient(60% 140% at 50% -5%, #ede9ff 0%, transparent 55%),
    radial-gradient(40% 90% at 85% 0%, #e0f6ed 0%, transparent 55%);
}
.hero h1 {
  font-family: "Inter", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05;
  letter-spacing: -.025em; margin: 0 auto 20px; max-width: 18ch;
  color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--brand-2); }
.hero p {
  font-size: clamp(17px, 2.2vw, 21px); color: var(--muted);
  max-width: 60ch; margin: 0 auto 36px;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
}
.btn-primary {
  display: inline-block;
  background: var(--brand-2); color: #fff;
  font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 12px;
  transition: filter .18s ease, transform .18s ease;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  display: inline-block;
  background: #fff; color: var(--ink);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 26px; border-radius: 12px;
  border: 1.5px solid var(--line);
  transition: border-color .18s ease, transform .18s ease;
}
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand-2); transform: translateY(-2px); }

/* ── Compare Cards ───────────────────────────────────────── */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 44px;
}
.compare-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease;
  cursor: pointer;
}
.compare-card:hover {
  border-color: var(--brand-2);
  box-shadow: 0 8px 32px -12px rgba(109,92,240,.18);
  transform: translateY(-3px);
}
.compare-card.navi {
  background: linear-gradient(135deg, #f3f1ff 0%, #eaf6f1 100%);
  border-color: color-mix(in srgb, var(--brand-2) 30%, var(--line));
  cursor: default;
}
.compare-card.navi:hover { transform: none; }
.card-label {
  font-size: 11px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.card-vs {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: 24px; line-height: 1.1; color: var(--ink);
}
.compare-card.navi .card-vs { color: var(--brand-2); }
.card-desc {
  font-size: 14px; color: var(--muted); line-height: 1.45;
}
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: auto; padding-top: 12px;
  font-size: 13.5px; font-weight: 700; color: var(--brand-2);
}

/* ── Feature Table ───────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px -6px rgba(15,17,23,.08);
}
.feat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 680px;
}
.feat-table th {
  padding: 14px 16px;
  background: var(--bg-soft);
  text-align: center;
  font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.feat-table th:first-child { text-align: left; }
.feat-table .col-navi {
  background: linear-gradient(180deg, #f0eeff, #f7f5ff);
  color: var(--brand-2) !important;
  border-left: 2px solid var(--brand-2);
  border-right: 2px solid var(--brand-2);
}
.feat-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.feat-table td:first-child {
  text-align: left; color: var(--ink);
  font-weight: 500; padding-left: 20px;
}
.feat-table td.col-navi {
  background: rgba(109,92,240,.04);
  border-left: 2px solid var(--brand-2);
  border-right: 2px solid var(--brand-2);
}
.feat-table tbody tr:last-child td { border-bottom: 0; }
.feat-table tbody tr:hover td { background: var(--bg-soft); }
.feat-table tbody tr:hover td.col-navi { background: rgba(109,92,240,.07); }
.feat-cat td {
  font-size: 11.5px; font-weight: 800; letter-spacing: .10em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--bg-soft) !important;
  padding: 10px 20px;
  border-top: 1px solid var(--line);
}
.feat-cat td.col-navi { background: linear-gradient(180deg, #f0eeff, #f7f5ff) !important; }
.check { color: #16a34a; font-size: 17px; font-weight: 700; }
.cross { color: #dc2626; font-size: 17px; font-weight: 700; }
.partial { color: #d97706; font-size: 17px; font-weight: 700; }

/* ── Reasons grid ────────────────────────────────────────── */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 44px;
}
.reason-card {
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: box-shadow .18s ease, transform .15s ease;
}
.reason-card:hover {
  box-shadow: 0 8px 28px -10px rgba(15,17,23,.10);
  transform: translateY(-2px);
}
.reason-icon {
  font-size: 28px; margin-bottom: 14px;
  display: block;
}
.reason-card h3 {
  font-family: "Inter", system-ui, sans-serif; font-weight: 600;
  font-size: 20px; line-height: 1.2; margin: 0 0 8px; color: var(--ink);
}
.reason-card p {
  color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0;
}

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  padding: 80px 28px;
  text-align: center;
  background: linear-gradient(135deg, #0f1117 0%, #1c1a2e 100%);
  color: #fff;
}
.cta-banner h2 {
  font-family: "Inter", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 14px; color: #fff;
}
.cta-banner p {
  color: rgba(255,255,255,.65);
  font-size: 18px; max-width: 56ch; margin: 0 auto 36px;
}
.cta-banner-btns {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center;
}
.btn-white {
  display: inline-block;
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: 15.5px;
  padding: 13px 28px; border-radius: 12px;
  transition: transform .18s ease;
}
.btn-white:hover { transform: translateY(-2px); color: var(--ink); }
.btn-outline-white {
  display: inline-block;
  background: transparent; color: #fff;
  font-weight: 600; font-size: 15.5px;
  padding: 12px 28px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,.35);
  transition: border-color .18s ease, transform .18s ease;
}
.btn-outline-white:hover {
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 640px) {
  .hero { padding: 60px 20px 50px; }
  .section, .section-alt { padding: 48px 0; }
  .compare-cards { grid-template-columns: 1fr 1fr; }
  .reasons-grid  { grid-template-columns: 1fr; }
  .cta-banner    { padding: 56px 20px; }
}

/* ─────────────────────────────────────────────────────────────
   Compare Homepage — Platform Sections
   ──────────────────────────────────────────────────────────── */

/* Hero */
.cp-hero {
  padding: 72px 0 44px; text-align: center;
  background:
    radial-gradient(55% 110% at 50% -5%, #eef0ff 0%, transparent 60%),
    radial-gradient(35% 80% at 80% 0%, #eafaf2 0%, transparent 55%);
}
.cp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #eef6f1; border: 1px solid #d6eade; border-radius: 999px;
  padding: 5px 14px; margin-bottom: 20px;
}
.cp-hero-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(28px, 4.8vw, 54px); line-height: 1.06; letter-spacing: -.03em;
  margin: 0 auto 18px; max-width: 20ch;
}
.cp-hero-title em { font-style: normal; color: var(--brand); }
.cp-hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--muted);
  max-width: 58ch; margin: 0 auto 30px; line-height: 1.6;
}
.cp-hero-pills {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.cp-hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--muted);
  font-size: 14px; font-weight: 600; background: #fff;
  transition: border-color .18s, color .18s, background .18s;
}
.cp-hero-pill:hover { border-color: var(--brand); color: var(--brand); background: #f0faf5; }
.cp-hero-pill-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: currentColor; opacity: .5; flex-shrink: 0;
}

/* Platform sections */
.cp-platforms { padding: 0 0 64px; }
.cp-platform {
  padding: 56px 0 48px;
  border-top: 1.5px solid var(--line);
}

.cp-platform-header {
  display: flex; align-items: flex-start; gap: 22px;
  margin-bottom: 22px;
}

/* Platform logo placeholder */
.cp-platform-logo {
  width: 72px; height: 72px; border-radius: 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.cp-platform-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
/* Platform icon with Remix Icon */
.cp-platform-icon {
  width: 72px; height: 72px; border-radius: 16px;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 10%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--cat-color, var(--brand)) 22%, var(--line));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--cat-color, var(--brand));
  font-size: 30px;
}

.cp-platform-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--cat-color, var(--brand));
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--brand)) 20%, var(--line));
  border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.cp-platform-title {
  font-family: "Inter", system-ui, sans-serif; font-weight: 800;
  font-size: clamp(20px, 2.8vw, 30px); line-height: 1.15;
  letter-spacing: -.022em; color: var(--ink); margin: 0 0 8px;
}
.cp-platform-desc {
  font-size: 15.5px; color: var(--muted); max-width: 66ch; margin: 0; line-height: 1.55;
}

/* Key points row */
.cp-kp-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px;
}
.cp-kp {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  background: color-mix(in srgb, var(--cat-color,var(--brand)) 7%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat-color,var(--brand)) 18%, var(--line));
  border-radius: 999px; padding: 5px 12px;
}
.cp-kp-check {
  color: var(--cat-color,var(--brand));
  font-size: 14px; line-height: 1; flex-shrink: 0;
}

/* Competitor grid */
.cp-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--cat-color,var(--brand)) 14%, var(--line));
}

.cp-card {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: 16px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink); transition: border-color .18s, box-shadow .18s, transform .15s;
}
.cp-card:hover {
  border-color: color-mix(in srgb, var(--cat-color,var(--brand)) 45%, var(--line));
  box-shadow: 0 4px 24px -4px rgba(16,17,23,.09);
  transform: translateY(-2px);
}

.cp-card-top { display: flex; align-items: center; gap: 12px; }

/* App logo / Remix Icon */
.cp-card-logo {
  width: 52px; height: 52px; border-radius: 12px;
  background: color-mix(in srgb, var(--cat-color, var(--brand)) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--cat-color, var(--brand)) 18%, var(--line));
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  color: var(--cat-color, var(--brand)); font-size: 22px;
}
.cp-card-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

.cp-card-meta {}
.cp-card-vs { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.cp-card-name { font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); }

.cp-card-tagline { font-size: 13.5px; color: var(--muted); line-height: 1.45; margin: 0; flex: 1; }

.cp-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--cat-color, var(--brand));
}
.cp-card-footer::after { content: "→"; font-size: 15px; }

/* Platform color tokens */
.cp-platform.shopify { --cat-color: #008060; }
.cp-platform.wix     { --cat-color: #0C6EFC; }
.cp-platform.wp      { --cat-color: #21759b; }

/* CTA section */
.cp-cta-section {
  padding: 0 0 72px;
}
.cp-cta-inner {
  padding: 56px 40px;
  background: linear-gradient(135deg, #0f2820 0%, #1c4d37 100%);
  border-radius: 24px; text-align: center; color: white;
}
.cp-cta-inner h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(22px, 3.8vw, 36px); font-weight: 800;
  margin: 0 0 12px; letter-spacing: -.026em;
  color: #ffffff !important;
}
.cp-cta-inner p { font-size: 17px; color: rgba(255,255,255,.78) !important; margin: 0 0 28px; }
.cp-cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cp-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px;
  background: white; color: #0f2820;
  font-size: 15px; font-weight: 700;
  transition: background .15s;
}
.cp-cta-primary:hover { background: #eaf5ee; }
.cp-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.35); color: white;
  font-size: 15px; font-weight: 600;
  transition: border-color .15s, background .15s;
}
.cp-cta-secondary:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); }

/* Responsive */
@media (max-width: 720px) {
  .cp-hero { padding: 54px 0 32px; }
  .cp-platform-header { flex-direction: column; gap: 14px; }
  .cp-cta-inner { padding: 40px 20px; border-radius: 18px; }
}
