/* LineaScore SEO Pages — Shared Stylesheet
   Design system matches index.html and use-cases.html exactly.
   All SEO pages in /pages/ link to this file. */

/* ── Design tokens ── */
:root {
  --ink: #192a4c;
  --ink-soft: #42536f;
  --muted: #7a8aa0;
  --line: #e4e8f0;
  --line-strong: #cbd4e2;
  --paper: #f5f7fb;
  --card: #ffffff;
  --brand: #205478;
  --brand-deep: #192a4c;
  --brand-tint: #e7eff5;
  --accent: #85c52c;
  --s4: #5ba829;
  --s3: #e98315;
  --s2: #d2641b;
  --s1: #c20011;
  --s4-bg: #eaf5e0;
  --s3-bg: #fdeedd;
  --s2-bg: #fbe6d6;
  --s1-bg: #fbe0e2;
  --shadow: 0 1px 3px rgba(25,42,76,.06), 0 8px 32px -8px rgba(25,42,76,.16);
  --shadow-lg: 0 24px 64px -24px rgba(25,42,76,.32);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(20px, 4vw, 40px);
}
.topbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; flex: none; }
.brand-name {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 19px;
  color: var(--ink); letter-spacing: -.02em;
}
.brand-name b { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff;
  padding: 8px 16px; border-radius: 9px;
  font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: .15s; white-space: nowrap;
}
.nav-cta:hover { background: var(--brand-deep); color: #fff; text-decoration: none; }

/* ── Buttons ── */
.btn-primary {
  background: var(--brand); color: #fff;
  padding: 13px 22px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: .16s; box-shadow: 0 4px 14px -4px rgba(32,84,120,.45);
}
.btn-primary:hover {
  background: var(--brand-deep); color: #fff;
  text-decoration: none; transform: translateY(-1px);
}
.btn-ghost {
  color: var(--ink-soft); font-size: 14px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 4px; transition: .15s;
}
.btn-ghost:hover { color: var(--brand); text-decoration: none; }


/* ── Page Hero ── */
.page-hero {
  background: linear-gradient(160deg, #eef4fb 0%, var(--paper) 60%);
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.page-hero-inner {
  max-width: 760px; margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.06; margin-bottom: 20px;
}
.page-hero p {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.65; max-width: 56ch; margin: 0 auto 32px;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.hero-note {
  font-size: 13px; color: var(--muted); margin: 0 !important;
}

/* ── Article / Prose ── */
.page-article {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 40px);
}
.article-inner {
  max-width: 760px; margin: 0 auto;
}
.article-inner h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 48px 0 16px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.article-inner h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-inner h3 {
  font-size: 20px; margin: 32px 0 12px;
}
.article-inner p {
  font-size: 16px; color: var(--ink-soft);
  line-height: 1.75; margin-bottom: 18px;
}
.article-inner ul, .article-inner ol {
  margin: 0 0 20px 0; padding-left: 0; list-style: none;
}
/* Markers are positioned, not flex items: with display:flex, an item like
   "<strong>Label.</strong> text" split into side-by-side columns. */
.article-inner li {
  position: relative; padding-left: 17px;
  font-size: 15.5px; color: var(--ink-soft); line-height: 1.6;
  margin-bottom: 10px;
}
.article-inner li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
}
.article-inner ol { counter-reset: ol-counter; }
.article-inner ol li { counter-increment: ol-counter; padding-left: 32px; }
.article-inner ol li::before {
  content: counter(ol-counter); top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  font-size: 12px; font-weight: 700; font-family: "IBM Plex Mono", monospace;
  display: grid; place-items: center;
}
.article-inner strong { color: var(--ink); font-weight: 700; }
.article-inner p a, .article-inner li a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.article-inner p a:hover, .article-inner li a:hover { text-decoration-color: currentColor; }

/* ── Comparison table (scrolls sideways on narrow screens) ── */
.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.compare-table thead th { background: var(--paper); color: var(--ink); font-weight: 700; }
.compare-table tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.compare-table td { color: var(--ink-soft); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }

/* ── FAQ ── */
.faq h3 { font-size: 18px; margin: 24px 0 8px; }
.faq h3 + p { margin-bottom: 14px; }

/* ── Inline CTA block (mid-article) ── */
.inline-cta {
  background: var(--brand-tint);
  border: 1px solid #c5d8e8;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.inline-cta-text { flex: 1; min-width: 0; }
.inline-cta-text h3 {
  font-size: 18px; margin-bottom: 6px;
}
.inline-cta-text p {
  font-size: 14px; color: var(--ink-soft); margin: 0;
}

/* ── Pro Callout ── */
.pro-callout {
  background: linear-gradient(135deg, var(--brand-deep) 0%, #2d5a82 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pro-badge {
  background: rgba(255,255,255,.15);
  color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: .15em; font-family: "IBM Plex Mono", monospace;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap; flex: none;
}
.pro-callout-text { flex: 1; min-width: 0; }
.pro-callout-text h3 {
  font-size: 17px; color: #fff; margin-bottom: 5px;
}
.pro-callout-text p {
  font-size: 13.5px; color: rgba(255,255,255,.7); margin: 0;
}
.pro-callout .btn-pro {
  background: #fff; color: var(--brand-deep);
  padding: 10px 18px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex: none;
  transition: .15s;
}
.pro-callout .btn-pro:hover {
  background: var(--brand-tint); text-decoration: none;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 32px 0;
}
.feature-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px;
  box-shadow: var(--shadow);
}
.feature-card-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand-tint); display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature-card-icon svg { width: 20px; height: 20px; stroke: var(--brand); }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.6; }

/* ── Plan comparison ── */
.plan-compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 32px 0;
}
.plan-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow);
}
.plan-card.plan-pro { border-color: var(--brand); }
.plan-card .plan-name {
  font-size: 13px; font-weight: 700;
  color: var(--muted); margin-bottom: 6px;
}
.plan-card.plan-pro .plan-name { color: var(--brand); }
.plan-card .plan-price {
  font-family: "Fraunces", serif; font-size: 28px; color: var(--ink); margin-bottom: 16px;
}
.plan-card .plan-price span { font-size: 14px; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; }
.plan-card ul { margin: 0; }
.plan-card li::before { background: var(--s4); }

/* ── Related topics ── */
.related-section {
  background: var(--card); border-top: 1px solid var(--line);
  padding: clamp(40px, 5vw, 60px) clamp(20px, 4vw, 40px);
}
.section-inner { max-width: 1100px; margin: 0 auto; }
.related-title {
  font-size: 15px; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.related-link {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px;
  font-size: 14px; font-weight: 600; color: var(--brand);
  text-decoration: none; transition: .15s; line-height: 1.35;
  display: flex; align-items: center; gap: 8px;
}
.related-link::after {
  content: '→'; opacity: .5; margin-left: auto; flex: none;
}
.related-link:hover {
  background: var(--brand-tint); border-color: #c5d8e8;
  text-decoration: none; transform: translateY(-1px);
}

/* ── Bottom CTA ── */
.bottom-cta {
  background: linear-gradient(160deg, var(--brand-deep) 0%, #1a3d5c 100%);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 4vw, 40px);
  text-align: center;
}
.bottom-cta-inner { max-width: 640px; margin: 0 auto; }
.bottom-cta h2 {
  font-size: clamp(26px, 3.5vw, 40px); color: #fff; margin-bottom: 16px;
}
.bottom-cta p {
  font-size: 16px; color: rgba(255,255,255,.65);
  max-width: 44ch; margin: 0 auto 36px; line-height: 1.65;
}
.bottom-cta .cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.bottom-cta .btn-primary {
  background: #fff; color: var(--brand-deep);
  box-shadow: 0 4px 20px -4px rgba(0,0,0,.3);
}
.bottom-cta .btn-primary:hover {
  background: var(--brand-tint); color: var(--brand-deep);
}
.bottom-cta .btn-ghost { color: rgba(255,255,255,.65); }
.bottom-cta .btn-ghost:hover { color: #fff; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line);
  padding: 22px clamp(20px, 4vw, 40px);
  background: rgba(255,255,255,.55);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.footer-links { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.footer-links a { color: var(--brand); font-weight: 600; }
.footer-links .sep { color: var(--line-strong); }
.footer-copy { font-size: 12.5px; color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .plan-compare { grid-template-columns: 1fr; }
  .pro-callout { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .inline-cta { flex-direction: column; }
  /* the logo image already spells "Linea Score"; drop the wordmark so the CTA fits */
  .brand-name { display: none; }
}

/* ── Guides hub link (shared with the homepage) ── */
.guides-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--brand); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.guides-link span { transition: transform .15s; }
.guides-link:hover, .guides-link:focus-visible { text-decoration: underline; }
.guides-link:hover span { transform: translateX(2px); }
.guides-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
