/* GetNews.uk — modern dark theme */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #0b1120;
  --bg-soft: #0f172a;
  --bg-raised: #131e36;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --grad-start: #818cf8;
  --grad-mid: #8b5cf6;
  --grad-end: #22d3ee;
  --accent: #a5b4fc;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(139, 92, 246, 0.4); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.grad-text {
  background: linear-gradient(120deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 17, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.header-nav { display: flex; gap: 0.35rem; }
.header-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); text-decoration: none; }
.header-nav a.active { color: var(--text); background: rgba(148, 163, 184, 0.14); }

/* ---------- hero ---------- */
.home { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 3rem; width: 100%; }
.hero {
  position: relative;
  padding: 6rem 0 4.5rem;
  text-align: center;
  overflow: visible;
}
.hero-glow {
  position: absolute;
  top: -6rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(48rem, 90vw);
  height: 22rem;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.12) 55%, transparent 75%);
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: -1;
}
.hero-content { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.badge {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--border-strong);
  background: rgba(129, 140, 248, 0.08);
  padding: 0.3rem 1rem;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}
.lead { font-size: 1.1rem; color: var(--text-muted); max-width: 42rem; margin: 0; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center; margin-top: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--grad-start), var(--grad-mid), var(--grad-end));
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 28px -8px rgba(139, 92, 246, 0.75); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: rgba(148, 163, 184, 0.05);
}
.btn-ghost:hover { background: rgba(148, 163, 184, 0.12); }

/* ---------- sections & cards ---------- */
.home-section { margin-top: 3.5rem; }
.home-section h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
.section-lead { color: var(--text-muted); margin: 0 0 1.5rem; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
}
.glass-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(148, 163, 184, 0.02));
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.glass-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 14px 34px -14px rgba(139, 92, 246, 0.4);
}
.glass-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.glass-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); flex: 1; }
.card-cta { font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ---------- layout: sidebar + prose + toc ---------- */
.with-sidebar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.has-toc { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .with-sidebar { grid-template-columns: 16rem minmax(0, 1fr); }
  .has-toc { grid-template-columns: 16rem minmax(0, 1fr) 13rem; }
}

.sidebar { display: none; }
@media (min-width: 1024px) {
  .sidebar {
    display: block;
    position: sticky;
    top: 5rem;
    align-self: start;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
    padding-right: 0.5rem;
    font-size: 0.9rem;
  }
}
.sidebar-group { margin-bottom: 1.4rem; }
.sidebar-heading {
  display: block;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar-link {
  display: block;
  padding: 0.28rem 0.75rem;
  border-radius: 8px;
  color: var(--text-muted);
  line-height: 1.45;
}
.sidebar-link:hover { color: var(--text); background: rgba(148, 163, 184, 0.08); text-decoration: none; }
.sidebar-link.active { color: var(--accent); background: rgba(129, 140, 248, 0.12); }

.toc { display: none; }
@media (min-width: 1280px) {
  .toc {
    display: block;
    position: sticky;
    top: 5rem;
    align-self: start;
    font-size: 0.85rem;
    max-height: calc(100dvh - 7rem);
    overflow-y: auto;
  }
}
.toc-title { font-weight: 700; color: var(--text); margin: 0 0 0.5rem; font-size: 0.9rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc ul ul { padding-left: 0.9rem; }
.toc li { margin: 0.25rem 0; }
.toc a { color: var(--text-muted); }
.toc a:hover { color: var(--accent); }

/* ---------- prose ---------- */
.prose { max-width: 50rem; min-width: 0; }
.prose.narrow { max-width: 46rem; margin: 0 auto; }
.prose h1 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}
.prose h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 2.2rem 0 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border);
}
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6rem 0 0.6rem; }
.prose h4, .prose h5 { font-size: 1rem; font-weight: 600; margin: 1.3rem 0 0.5rem; }
.prose p { margin: 0.8rem 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0.8rem 0; }
.prose li { margin: 0.35rem 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); }
.prose code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.prose pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote {
  margin: 1rem 0;
  padding: 0.4rem 1.1rem;
  border-left: 3px solid var(--grad-mid);
  background: rgba(139, 92, 246, 0.07);
  border-radius: 0 10px 10px 0;
  color: var(--text-muted);
}
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.8rem; text-align: left; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose iframe { max-width: 100%; border-radius: var(--radius); }

/* ---------- callout notes ---------- */
.note {
  margin: 1.1rem 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(129, 140, 248, 0.07);
}
.note ul, .note ol { margin: 0.3rem 0; }
.note-warning {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.08);
}

/* ---------- tool cards / comparison tables ---------- */
.no-md-flow { margin: 1.2rem 0; }
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 1.1rem 1.3rem;
  margin: 1.1rem 0;
}
.tool-name { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.5rem; font-size: 1.05rem; }
.tool-name a { color: var(--text); font-weight: 700; }
.tool-logo { width: 1.5rem; height: 1.5rem; object-fit: contain; border: none; border-radius: 0; }
.tool-use { font-size: 0.9rem; color: var(--text-muted); }
.pc-grid { display: grid; grid-template-columns: 1fr; gap: 0.5rem 1.5rem; }
@media (min-width: 768px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
.pc-pros h5, .pc-pros h4, .pc-col h4, .pc-col h5 { color: #4ade80; margin: 0.4rem 0; }
.pc-cons h4, .pc-cons h5 { color: #f87171; }
.pc-col ul { padding-left: 1.2rem; }
.pc-col li { font-size: 0.92rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.criteria-table { border-collapse: collapse; width: 100%; font-size: 0.88rem; min-width: 40rem; }
.criteria-table th, .criteria-table td { border-bottom: 1px solid var(--border); padding: 0.55rem 0.8rem; text-align: left; }
.criteria-table thead th { background: var(--bg-soft); position: sticky; top: 0; }
.criteria-table tbody tr:last-child td { border-bottom: none; }
.criteria-table tbody tr:hover { background: rgba(148, 163, 184, 0.05); }

.link-grid {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}
.link-card a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  color: var(--text);
  height: 100%;
  transition: border-color 0.15s, transform 0.15s;
}
.link-card a:hover { text-decoration: none; border-color: rgba(139, 92, 246, 0.5); transform: translateY(-2px); }
.link-card span { display: flex; flex-direction: column; }
.link-card small { color: var(--text-muted); font-size: 0.8rem; }
.link-card.not-encouraged a { border-color: rgba(251, 146, 60, 0.4); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner nav { display: flex; gap: 1.2rem; }
.footer-inner a { color: var(--text-muted); }
.footer-inner a:hover { color: var(--accent); }

/* ---------- misc ---------- */
.notfound { text-align: center; padding: 5rem 0; }
.notfound .hero-actions { justify-content: center; margin-top: 1.5rem; }
