:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f9ff;
  --surface-blue: #eef5ff;
  --ink: #111827;
  --muted: #667085;
  --line: #dce6f5;
  --line-strong: #c7d7ef;
  --blue: #2f6cff;
  --blue-deep: #174ed1;
  --cyan: #19c7e8;
  --violet: #7656ff;
  --green: #15b88a;
  --shadow: 0 18px 50px rgba(50, 88, 140, .10);
  --shadow-soft: 0 10px 30px rgba(70, 98, 140, .08);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(47,108,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,108,255,.035) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.container.narrow {
  width: min(780px, calc(100% - 40px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(199,215,239,.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.brand-name {
  font-size: 21px;
}

.brand-mark {
  width: 34px;
  height: 28px;
  position: relative;
  display: inline-block;
}

.brand-mark span {
  position: absolute;
  top: 2px;
  width: 16px;
  height: 24px;
  border-radius: 6px 2px 6px 2px;
  transform: skewX(-18deg);
}

.brand-mark span:first-child {
  left: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.brand-mark span:last-child {
  right: 1px;
  background: linear-gradient(180deg, var(--blue), var(--violet));
}

.custom-logo {
  max-height: 42px;
  width: auto;
}

.primary-nav {
  justify-self: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: #293349;
  font-size: 14px;
  font-weight: 650;
  transition: color .2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--blue);
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #1dbaf0 0%, #2f6cff 46%, #7656ff 100%);
  box-shadow: 0 10px 28px rgba(47,108,255,.23);
}

.button-secondary {
  background: rgba(255,255,255,.9);
  border-color: var(--line-strong);
  color: #26334c;
  box-shadow: 0 6px 18px rgba(80,110,150,.06);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(25,199,232,.16), transparent 26%),
    radial-gradient(circle at 86% 31%, rgba(118,86,255,.13), transparent 24%),
    linear-gradient(180deg, rgba(246,249,255,.88), rgba(255,255,255,.97));
  border-bottom: 1px solid var(--line);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .32;
  pointer-events: none;
}

.hero::before {
  background: #ccefff;
  right: 15%;
  top: 0;
}

.hero::after {
  background: #e4dbff;
  right: -5%;
  top: 35%;
}

.hero-grid {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 36px;
  padding-block: 72px 64px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  color: var(--blue-deep);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: 12px;
  font-weight: 800;
}

.eyebrow {
  padding: 7px 11px;
  border: 1px solid #b9d6ff;
  background: rgba(255,255,255,.78);
  border-radius: 999px;
}

.hero h1,
.page-hero h1,
.single-hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #6e52ff, #2f6cff 55%, #18bbdf);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: #344054;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.trust-row div {
  position: relative;
  padding-left: 32px;
}

.trust-row div::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #edf7ff;
  border: 1px solid #cde9ff;
  font-size: 12px;
  font-weight: 900;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  font-size: 13px;
}

.trust-row span {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 455px;
  border: 1px solid rgba(180,205,236,.78);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(244,249,255,.92)),
    linear-gradient(135deg, #eef7ff, #f6f0ff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(216,233,250,.7));
  pointer-events: none;
}

.route-map {
  position: absolute;
  inset: 15px 0 0;
  width: 100%;
  height: 100%;
}

.mountain {
  fill: rgba(126,161,204,.12);
  stroke: rgba(75,117,177,.16);
  stroke-width: 1.5;
}

.mountain-b {
  fill: rgba(142,119,222,.07);
}

.route-line {
  fill: none;
  stroke: url(#routeGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 2 13;
}

.route-node {
  fill: #fff;
  stroke: #2f6cff;
  stroke-width: 4;
}

.goal-node {
  fill: #fff;
  stroke: #7656ff;
  stroke-width: 7;
}

.map-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: .65;
}

.glow-one {
  width: 240px;
  height: 240px;
  right: 20px;
  top: 20px;
  background: rgba(74,174,255,.25);
}

.glow-two {
  width: 170px;
  height: 170px;
  left: 80px;
  bottom: 30px;
  background: rgba(118,86,255,.18);
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 165px;
  padding: 12px 14px;
  border: 1px solid rgba(177,204,237,.95);
  background: rgba(255,255,255,.83);
  backdrop-filter: blur(14px);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(67,97,136,.12);
}

.floating-card > span {
  font-size: 21px;
  color: var(--blue);
}

.floating-card strong,
.floating-card small {
  display: block;
}

.floating-card strong {
  font-size: 13px;
}

.floating-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.card-ai { top: 50px; left: 52px; }
.card-search { bottom: 92px; left: 34px; }
.card-content { top: 150px; right: 24px; }
.card-goal { top: 26px; right: 44px; }

.section {
  padding-block: 78px;
}

.section-soft {
  background: linear-gradient(180deg, #f8fbff, #f5f8ff);
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 30px;
}

.section-head h2 {
  margin: 6px 0 8px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.section-head p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
}

.split-head,
.section-head-link {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.split-head > p {
  max-width: 430px;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.goal-card,
.tool-card,
.article-card,
.comparison-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-soft);
}

.goal-card {
  min-height: 245px;
  padding: 22px;
  border-radius: 20px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.goal-card:hover {
  transform: translateY(-4px);
  border-color: #a9c9ff;
  box-shadow: var(--shadow);
}

.goal-icon {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(145deg, #eef8ff, #f4efff);
  border: 1px solid #d7e5fb;
  font-size: 25px;
  font-weight: 900;
}

.goal-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  letter-spacing: -.02em;
}

.goal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--blue);
  border: 1px solid #cadbf5;
  border-radius: 50%;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tool-card {
  border-radius: 20px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -42px;
  top: -48px;
  border-radius: 50%;
  background: rgba(47,108,255,.07);
  filter: blur(8px);
}

.tool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 50%, var(--violet));
  box-shadow: 0 10px 22px rgba(47,108,255,.18);
}

.tool-karma .tool-icon {
  background: linear-gradient(145deg, #1b2435, #4c6888);
}

.tool-slide .tool-icon {
  background: linear-gradient(145deg, #169fe8, #4258d5);
}

.tool-actvox .tool-icon {
  background: linear-gradient(145deg, #16233f, #7656ff);
}

.status-badge {
  padding: 6px 9px;
  border-radius: 999px;
  background: #e4fbf4;
  color: #0f8d6c;
  font-size: 11px;
  font-weight: 800;
}

.tool-card h3 {
  margin: 16px 0 6px;
  font-size: 21px;
  letter-spacing: -.025em;
}

.tool-card p {
  color: var(--muted);
  min-height: 76px;
  margin: 0;
  font-size: 14px;
}

.tag-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.tag-row span,
.article-label {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3f7fd;
  border: 1px solid #dce8f7;
  color: #31527f;
  font-size: 11px;
  font-weight: 700;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  font-size: 14px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  border-radius: 20px;
  overflow: hidden;
}

.article-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 20%, rgba(25,199,232,.42), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(118,86,255,.28), transparent 34%),
    linear-gradient(135deg, #eaf6ff, #f5efff);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-placeholder {
  font-size: 42px;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
}

.article-body {
  padding: 20px;
}

.article-body h3,
.article-body h2 {
  margin: 10px 0 8px;
  font-size: 21px;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.article-body p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 14px;
}

.article-meta {
  color: #8190a4;
  font-size: 12px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.comparison-card {
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  transition: transform .2s ease, border-color .2s ease;
}

.comparison-card:hover {
  transform: translateY(-3px);
  border-color: #adcafb;
}

.comparison-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #eef5ff;
  font-size: 22px;
  font-weight: 900;
}

.comparison-card h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.comparison-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 20px 22px;
  border-left: 2px solid #c9daf5;
}

.step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 850;
  margin-bottom: 14px;
}

.step strong {
  font-size: 20px;
}

.step p {
  color: var(--muted);
  margin: 5px 0 0;
  font-size: 14px;
}

.page-hero,
.single-hero {
  padding: 82px 0 58px;
  background:
    radial-gradient(circle at 85% 10%, rgba(25,199,232,.14), transparent 28%),
    radial-gradient(circle at 70% 45%, rgba(118,86,255,.09), transparent 27%),
    linear-gradient(180deg, #f7fbff, #fff);
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  font-size: clamp(42px, 5vw, 66px);
}

.single-hero h1 {
  font-size: clamp(44px, 5.5vw, 72px);
}

.post-meta {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.single-deck {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
}

.single-cover {
  margin-top: 34px;
}

.single-cover img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.prose {
  font-size: 18px;
  line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
  line-height: 1.18;
  letter-spacing: -.035em;
  margin-top: 2em;
  margin-bottom: .7em;
}

.prose h2 { font-size: 34px; }
.prose h3 { font-size: 26px; }

.prose a:not(.button) {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--blue);
  background: var(--surface-soft);
  border-radius: 0 16px 16px 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
}

.prose th {
  background: var(--surface-soft);
}

.archive-grid {
  margin-bottom: 28px;
}

.pagination-wrap {
  margin-top: 34px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.page-numbers.current {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.not-found {
  min-height: 62vh;
  display: grid;
  align-items: center;
}

.not-found h1 {
  font-size: clamp(48px, 7vw, 80px);
  line-height: 1;
  margin: 8px 0 18px;
}

.site-footer {
  background: #f7faff;
  border-top: 1px solid var(--line);
  padding-top: 58px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr .8fr .8fr 1.1fr;
  gap: 44px;
}

.footer-brand p,
.footer-note p {
  color: var(--muted);
  max-width: 350px;
}

.footer-tagline {
  font-weight: 800;
  color: var(--ink) !important;
  margin-bottom: 6px;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-size: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin: 7px 0;
}

.footer-links a {
  color: #526176;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 46px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8090a6;
  font-size: 12px;
}

@media (max-width: 1080px) {
  .header-cta { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
  .primary-nav { justify-self: end; }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .goal-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-menu {
    display: grid;
    gap: 5px;
  }

  .nav-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-menu a:hover {
    background: var(--surface-soft);
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .goal-grid,
  .article-grid,
  .comparison-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split-head,
  .section-head-link {
    display: block;
  }

  .split-head > p {
    margin-top: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow {
    width: min(100% - 26px, var(--container));
  }

  .hero-grid {
    min-height: auto;
    padding-block: 42px 40px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 360px;
    border-radius: 24px;
  }

  .floating-card {
    min-width: 132px;
    padding: 9px 10px;
  }

  .floating-card strong {
    font-size: 11px;
  }

  .floating-card small {
    font-size: 9px;
  }

  .card-ai { top: 35px; left: 16px; }
  .card-search { bottom: 48px; left: 16px; }
  .card-content { top: 140px; right: 12px; }
  .card-goal { top: 24px; right: 16px; }

  .section {
    padding-block: 56px;
  }

  .section-head h2 {
    font-size: 36px;
  }

  .goal-grid,
  .tool-grid,
  .article-grid,
  .comparison-grid,
  .steps-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    display: grid;
  }

  .prose {
    font-size: 17px;
  }

  .prose h2 { font-size: 30px; }
  .prose h3 { font-size: 24px; }
}


/* Utility / legal features */
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-cookie-settings {
  color: #8090a6;
  font-size: 12px;
}

.footer-cookie-settings {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.footer-cookie-settings:hover,
.footer-legal a:hover {
  color: var(--blue);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(166,196,238,.95);
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #1dbaf0, #2f6cff 55%, #7656ff);
  box-shadow: 0 12px 28px rgba(47,108,255,.25);
  font-size: 21px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 200;
}

.cookie-banner-inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #c9d9f0;
  border-radius: 18px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 60px rgba(43,76,122,.20);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-copy strong {
  display: block;
  margin-bottom: 3px;
  font-size: 16px;
}

.cookie-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-copy a {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.cookie-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 42px;
  white-space: nowrap;
}

.sitemap-page {
  display: grid;
  gap: 38px;
}

.sitemap-group h2 {
  margin: 0 0 14px;
  font-size: 30px;
  letter-spacing: -.035em;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.sitemap-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.sitemap-list li:last-child {
  border-bottom: 0;
}

.sitemap-list a {
  color: #24324a;
  font-weight: 700;
}

.sitemap-list a:hover {
  color: var(--blue);
}

.sitemap-list span {
  color: #8a98aa;
  font-size: 12px;
}

.sitemap-xml-note,
.legal-note {
  padding: 16px 18px;
  border: 1px solid #cfe1fa;
  border-radius: 16px;
  background: #f5f9ff;
}

.sitemap-xml-note a {
  color: var(--blue);
  font-weight: 800;
}

.prose code {
  padding: .12em .4em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f8fc;
  font-size: .9em;
}

@media (max-width: 700px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-inner {
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .cookie-actions .button {
    width: 100%;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }

  .sitemap-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}


/* v0.4 — calmer editorial CTAs and larger article media */
.prose .button {
  text-decoration: none !important;
}

.prose .button-primary {
  color: #ffffff;
  background: #2f6cff;
  border: 1px solid #2f6cff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(47, 108, 255, .14);
  min-height: 44px;
  padding: 0 18px;
  font-weight: 750;
}

.prose .button-primary:hover,
.prose .button-primary:focus-visible {
  color: #ffffff;
  background: #245de0;
  border-color: #245de0;
  box-shadow: 0 8px 18px rgba(47, 108, 255, .16);
  transform: translateY(-1px);
  text-decoration: none;
}

.prose .button-secondary {
  color: #23324a;
  background: #ffffff;
  border-color: #cbd8ec;
  box-shadow: none;
  text-decoration: none;
}

.prose .button-secondary:hover,
.prose .button-secondary:focus-visible {
  color: var(--blue-deep);
  background: #f7faff;
  border-color: #a9c5f4;
  text-decoration: none;
}

/* Make article cover/inline review images feel intentional rather than thumbnail-sized. */
.prose .wp-block-image,
.prose figure.wp-block-image {
  width: 100%;
  margin: 28px 0 34px;
}

.prose .wp-block-image img,
.prose figure.wp-block-image img {
  width: 100% !important;
  height: auto !important;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(57, 89, 132, .08);
}

.prose .wp-block-image figcaption {
  color: #8492a6;
  font-size: 12px;
  text-align: left;
  margin-top: 8px;
}

/* Slightly calmer long-form page title scale. */
.single-hero h1 {
  font-size: clamp(40px, 4.8vw, 64px);
  line-height: 1.02;
  max-width: 900px;
}

@media (max-width: 560px) {
  .single-hero h1 {
    font-size: 40px;
  }

  .prose .button-primary,
  .prose .button-secondary {
    width: auto;
    max-width: 100%;
  }
}


/* v0.5 — Review template, editorial sidebar and related content */
.review-title-wrap {
  width: min(var(--container), calc(100% - 40px));
}

.review-page-hero h1 {
  max-width: 880px;
}

.review-hero-deck {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.review-layout-section {
  padding-top: 52px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(260px, 330px);
  justify-content: center;
  align-items: start;
  gap: 50px;
}

.review-main {
  min-width: 0;
}

.review-sidebar {
  min-width: 0;
}

.review-sidebar-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.review-snapshot,
.review-toc {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-soft);
}

.review-snapshot {
  padding: 22px;
}

.review-snapshot-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 850;
}

.review-snapshot h2 {
  margin: 5px 0 18px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.snapshot-list {
  margin: 0;
}

.snapshot-list > div {
  padding: 11px 0;
  border-top: 1px solid #e8eef8;
}

.snapshot-list dt {
  margin: 0 0 2px;
  color: #8795a8;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.snapshot-list dd {
  margin: 0;
  color: #25334c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.review-assessment {
  margin: 16px 0 18px;
  padding: 14px;
  border: 1px solid #dbe8fa;
  border-radius: 14px;
  background: #f7faff;
}

.review-assessment h3 {
  margin: 0 0 8px;
  font-size: 13px;
}

.assessment-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-top: 1px solid #e4edf9;
  color: #68778c;
  font-size: 12px;
}

.assessment-row:first-of-type {
  border-top: 0;
}

.assessment-row strong {
  color: #263650;
}

.review-visit-button {
  width: 100%;
  min-height: 44px;
  color: #fff;
  background: #2f6cff;
  border: 1px solid #2f6cff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(47,108,255,.14);
  text-align: center;
}

.review-visit-button:hover,
.review-visit-button:focus-visible {
  color: #fff;
  background: #245de0;
  border-color: #245de0;
  transform: translateY(-1px);
}

.snapshot-disclosure {
  margin: 10px 0 0;
  color: #8a98aa;
  font-size: 10px;
  line-height: 1.45;
}

.review-toc {
  padding: 18px 20px;
  max-height: calc(100vh - 390px);
  overflow: auto;
}

.review-toc h3 {
  margin: 0 0 11px;
  font-size: 14px;
}

.review-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.review-toc li + li {
  margin-top: 4px;
}

.review-toc a {
  display: block;
  padding: 6px 0;
  color: #65758a;
  font-size: 12px;
  line-height: 1.35;
}

.review-toc a:hover,
.review-toc a:focus-visible {
  color: var(--blue);
}

.related-reviews {
  margin-top: 64px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.related-reviews-head h2,
.continue-research h2 {
  margin: 6px 0 20px;
  font-size: 32px;
}

.related-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.related-review-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(65,96,139,.07);
  transition: transform .2s ease, border-color .2s ease;
}

.related-review-card:hover {
  transform: translateY(-3px);
  border-color: #aac8f7;
}

.related-review-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 15%, rgba(25,199,232,.34), transparent 31%),
    radial-gradient(circle at 80% 75%, rgba(118,86,255,.24), transparent 34%),
    #f1f6ff;
}

.related-review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-review-placeholder {
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 36px;
  font-weight: 900;
}

.related-review-body {
  padding: 14px;
}

.related-review-body > span {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 850;
}

.related-review-body h3 {
  margin: 5px 0;
  font-size: 15px;
  line-height: 1.22;
}

.related-review-body p {
  margin: 0 0 10px;
  min-height: 38px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.related-review-body strong {
  color: var(--blue);
  font-size: 11px;
}

.continue-research {
  margin-top: 48px;
}

.continue-research-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.continue-research-links a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  text-decoration: none !important;
}

.continue-research-links span,
.continue-research-links strong {
  display: block;
}

.continue-research-links span {
  color: #485a72;
  font-size: 14px;
  font-weight: 750;
}

.continue-research-links strong {
  margin-top: 7px;
  color: var(--blue);
  font-size: 12px;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f7faff;
  box-shadow: var(--shadow-soft);
}

.contact-card h2 {
  margin-top: 5px;
}

.contact-email {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 850;
}

@media (max-width: 980px) {
  .review-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 28px;
  }

  .review-sidebar {
    order: -1;
  }

  .review-sidebar-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .review-toc {
    max-height: 350px;
  }
}

@media (max-width: 700px) {
  .review-title-wrap {
    width: min(100% - 26px, var(--container));
  }

  .review-sidebar-sticky {
    grid-template-columns: 1fr;
  }

  .review-toc {
    max-height: none;
  }

  .related-review-grid,
  .continue-research-links {
    grid-template-columns: 1fr;
  }

  .related-review-body p {
    min-height: 0;
  }
}


/* v0.7 — Comparison / Best Tools template */
.comparison-page-hero {
  padding: 66px 0 46px;
  background:
    radial-gradient(circle at 82% 8%, rgba(25,199,232,.14), transparent 28%),
    radial-gradient(circle at 70% 45%, rgba(118,86,255,.08), transparent 30%),
    linear-gradient(180deg, #f7fbff, #fff);
  border-bottom: 1px solid var(--line);
}

.comparison-title-wrap {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.comparison-page-hero h1 {
  max-width: 960px;
  margin: 10px 0 12px;
  font-size: clamp(42px, 4.5vw, 62px);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.comparison-hero-deck {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.comparison-layout-section {
  padding-top: 48px;
}

.comparison-shell {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 860px) minmax(260px, 310px);
  justify-content: center;
  align-items: start;
  gap: 46px;
}

.comparison-main {
  min-width: 0;
  font-size: 17px;
}

.comparison-main > p:first-child {
  font-size: 19px;
  color: #334155;
}

/* Treat the first editorial image/figure as a real cover. */
.comparison-main > .wp-block-image:first-of-type,
.comparison-main > figure.wp-block-image:first-of-type,
.comparison-main > p:first-of-type + .wp-block-image,
.comparison-main > p:first-of-type + figure.wp-block-image {
  margin-top: 28px;
}

.comparison-main .wp-block-image img,
.comparison-main figure.wp-block-image img,
.comparison-main p > img {
  max-width: 100% !important;
  height: auto !important;
}

.comparison-main > p > img,
.comparison-main > .wp-block-image:first-of-type img,
.comparison-main > figure.wp-block-image:first-of-type img {
  width: 100% !important;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(58, 88, 128, .10);
}

/* Stronger comparison tables */
.comparison-main table {
  width: 100%;
  margin: 26px 0 36px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #cedcf0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(67, 97, 136, .08);
  font-size: 14px;
}

.comparison-main thead th {
  color: #fff;
  background: linear-gradient(135deg, #2669f5, #6251e9);
  border-color: rgba(255,255,255,.16);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.comparison-main th,
.comparison-main td {
  padding: 14px 15px;
  border-right: 1px solid #e1e9f4;
  border-bottom: 1px solid #e1e9f4;
  vertical-align: top;
}

.comparison-main th:last-child,
.comparison-main td:last-child {
  border-right: 0;
}

.comparison-main tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-main tbody tr:nth-child(even) td {
  background: #f8fbff;
}

.comparison-main tbody td:first-child {
  color: #17253d;
  font-weight: 800;
}

.comparison-main tbody tr:hover td {
  background: #f1f6ff;
}

.comparison-sidebar {
  min-width: 0;
}

.comparison-sidebar-sticky {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.quick-picks,
.comparison-toc {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--shadow-soft);
}

.quick-picks {
  padding: 21px;
}

.quick-picks-label {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 11px;
  font-weight: 850;
}

.quick-picks h2 {
  margin: 5px 0 14px;
  font-size: 25px;
  letter-spacing: -.035em;
}

.quick-picks-list {
  display: grid;
  gap: 9px;
}

.quick-pick {
  display: block;
  padding: 12px 13px;
  border: 1px solid #dce7f6;
  border-radius: 13px;
  background: #f8fbff;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-pick:hover,
.quick-pick:focus-visible {
  transform: translateY(-2px);
  border-color: #a8c5f5;
  background: #f2f7ff;
}

.quick-pick span,
.quick-pick strong,
.quick-pick small {
  display: block;
}

.quick-pick span {
  color: #6c7b90;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .055em;
  font-weight: 800;
}

.quick-pick strong {
  margin-top: 2px;
  color: #1d2e49;
  font-size: 14px;
}

.quick-pick small {
  margin-top: 2px;
  color: #7e8ca0;
  font-size: 11px;
  line-height: 1.35;
}

.comparison-toc {
  padding: 18px 20px;
  max-height: calc(100vh - 420px);
  overflow: auto;
}

.comparison-toc h3 {
  margin: 0 0 10px;
  font-size: 14px;
}

.comparison-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comparison-toc li + li {
  margin-top: 4px;
}

.comparison-toc a {
  display: block;
  padding: 6px 0;
  color: #65758a;
  font-size: 12px;
  line-height: 1.35;
}

.comparison-toc a:hover,
.comparison-toc a:focus-visible {
  color: var(--blue);
}

.related-comparisons {
  margin-top: 68px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.related-comparisons-head h2 {
  margin: 6px 0 20px;
  font-size: 32px;
}

.related-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.related-comparison-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(65,96,139,.07);
  transition: transform .2s ease, border-color .2s ease;
  text-decoration: none !important;
}

.related-comparison-card:hover {
  transform: translateY(-3px);
  border-color: #aac8f7;
}

.related-comparison-thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 25% 15%, rgba(25,199,232,.34), transparent 31%),
    radial-gradient(circle at 80% 75%, rgba(118,86,255,.24), transparent 34%),
    #f1f6ff;
}

.related-comparison-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-comparison-placeholder {
  color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 36px;
  font-weight: 900;
}

.related-comparison-body {
  padding: 14px;
}

.related-comparison-body > span {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 850;
}

.related-comparison-body h3 {
  margin: 5px 0 12px;
  font-size: 15px;
  line-height: 1.22;
}

.related-comparison-body strong {
  color: var(--blue);
  font-size: 11px;
}

@media (max-width: 1040px) {
  .comparison-shell {
    grid-template-columns: minmax(0, 860px);
    gap: 28px;
  }

  .comparison-sidebar {
    order: -1;
  }

  .comparison-sidebar-sticky {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .comparison-toc {
    max-height: 360px;
  }
}

@media (max-width: 700px) {
  .comparison-title-wrap,
  .comparison-shell {
    width: min(100% - 26px, 1280px);
  }

  .comparison-page-hero h1 {
    font-size: 40px;
  }

  .comparison-sidebar-sticky {
    grid-template-columns: 1fr;
  }

  .comparison-toc {
    max-height: none;
  }

  .related-comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-main table {
    min-width: 680px;
  }
}


/* v0.8 — concise header labels + meaningful guide placeholders */
.site-header .nav-menu {
  gap: 30px;
}

.site-header .nav-menu a {
  white-space: nowrap;
}

/* Front-page guide artwork used until a real featured image is assigned. */
.article-thumb .guide-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, .35), transparent 31%),
    radial-gradient(circle at 84% 82%, rgba(124, 92, 255, .28), transparent 34%),
    linear-gradient(135deg, #eef7ff 0%, #f3f2ff 52%, #e8f4ff 100%);
}

.article-thumb .guide-visual::before,
.article-thumb .guide-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(70, 120, 255, .13);
  z-index: -1;
}

.article-thumb .guide-visual::before {
  width: 260px;
  height: 260px;
  right: -82px;
  top: -72px;
}

.article-thumb .guide-visual::after {
  width: 180px;
  height: 180px;
  left: -58px;
  bottom: -76px;
}

.guide-visual-icon {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #fff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #20c9ef, #2f6cff 55%, #7656ff);
  box-shadow: 0 16px 34px rgba(47,108,255,.22);
}

.guide-visual-seo .guide-visual-icon {
  background: linear-gradient(135deg, #23b7ff, #506cff 55%, #8a5cff);
}

.guide-visual-content .guide-visual-icon {
  background: linear-gradient(135deg, #20d4c5, #2f8cff 55%, #7358ff);
}

.guide-visual-line {
  position: absolute;
  height: 3px;
  border-radius: 999px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(47,108,255,.10), rgba(47,108,255,.65), rgba(118,86,255,.12));
}

.guide-line-one {
  width: 48%;
  left: 14%;
  top: 34%;
  transform: rotate(12deg);
}

.guide-line-two {
  width: 44%;
  left: 43%;
  top: 65%;
  transform: rotate(-14deg);
}

.guide-visual-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #4776ff;
  box-shadow: 0 0 0 6px rgba(71,118,255,.08);
}

.guide-dot-one {
  left: 24%;
  top: 36%;
}

.guide-dot-two {
  right: 18%;
  bottom: 29%;
}

.guide-visual-label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 7px 11px;
  border: 1px solid rgba(110,136,183,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  color: #375175;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

@media (max-width: 1180px) {
  .site-header .nav-menu {
    gap: 18px;
  }
}

/* v0.9 — Guide template, larger editorial imagery, related content and final comparison polish */
.guide-hero {
  padding: 78px 0 38px;
  background:
    radial-gradient(circle at 82% 10%, rgba(32,199,239,.14), transparent 30%),
    radial-gradient(circle at 18% 70%, rgba(118,86,255,.09), transparent 34%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.guide-title-wrap {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.guide-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guide-topic-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid #d5e4fb;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #31557f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
}

.guide-hero h1 {
  max-width: 980px;
  margin: 18px 0 18px;
  font-size: clamp(44px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.guide-hero .single-deck {
  max-width: 850px;
  margin: 0;
  color: #60718d;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.guide-meta {
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  margin-top: 24px;
  color: #73839d;
  font-size: 13px;
  font-weight: 700;
}

.guide-cover {
  width: min(100% - 40px, 1220px);
  margin: 34px auto 0;
  padding: 0;
}

.guide-cover img {
  display: block;
  width: 100%;
  max-height: 690px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(51,84,133,.12);
}

.guide-layout-section { padding-top: 52px; }

.guide-shell {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 790px) 300px;
  gap: 56px;
  align-items: start;
}

.guide-main { min-width: 0; }
.guide-main > p:first-child { font-size: 20px; line-height: 1.72; color: #384b67; }
.guide-main h2 { scroll-margin-top: 110px; }

.guide-sidebar-sticky {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 16px;
}

.guide-toc,
.guide-next-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 10px 30px rgba(69,96,134,.07);
}

.guide-toc h3 { margin: 0 0 12px; font-size: 16px; }
.guide-toc ol { margin: 0; padding-left: 18px; }
.guide-toc li { margin: 8px 0; color: #7c8ba2; font-size: 12px; }
.guide-toc a { color: #405775; text-decoration: none; }
.guide-toc a:hover { color: var(--blue); }

.guide-next-step > span,
.guide-review-grid > a > span,
.guide-card-body > span,
.guide-continue-grid > a > span {
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 9px;
  font-weight: 850;
}

.guide-next-step strong {
  display: block;
  margin: 7px 0 16px;
  font-size: 18px;
  line-height: 1.25;
}

.guide-next-step .button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.guide-related,
.guide-review-links,
.guide-continue {
  margin-top: 58px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}

.guide-related-head h2,
.guide-continue h2 { margin: 6px 0 20px; font-size: 32px; }

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(65,96,139,.07);
  text-decoration: none !important;
  transition: transform .2s ease, border-color .2s ease;
}

.guide-card:hover { transform: translateY(-3px); border-color: #aac8f7; }
.guide-card-thumb { aspect-ratio: 16/9; overflow: hidden; background: #eef5ff; display: grid; place-items: center; }
.guide-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-card-placeholder { font-size: 34px; font-weight: 900; color: var(--blue); }
.guide-card-body { padding: 14px; }
.guide-card-body h3 { margin: 5px 0 12px; font-size: 15px; line-height: 1.28; }
.guide-card-body strong { color: var(--blue); font-size: 11px; }

.guide-review-grid,
.guide-continue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.guide-review-grid > a,
.guide-continue-grid > a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(65,96,139,.05);
}

.guide-review-grid strong,
.guide-continue-grid strong { color: #17233a; font-size: 15px; line-height: 1.3; }
.guide-review-grid small { color: #71809a; }

.guide-continue-grid { grid-template-columns: repeat(3, 1fr); }
.guide-continue-grid > a:hover strong,
.guide-review-grid > a:hover strong { color: var(--blue); }

/* Affiliate Manager buttons rendered through shortcode should match review CTA. */
.review-snapshot .navigoal-affiliate-link.button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* Let comparison covers use the available main-column width. */
.comparison-main > p:first-child + p img,
.comparison-main > p:first-child img,
.comparison-main > figure:first-child img,
.comparison-main > p:first-of-type img {
  width: 100%;
  height: auto;
}

@media (max-width: 1040px) {
  .guide-shell { grid-template-columns: minmax(0, 850px); gap: 28px; }
  .guide-sidebar { order: -1; }
  .guide-sidebar-sticky { position: static; grid-template-columns: 1fr 1fr; }
  .guide-toc { max-height: 330px; overflow: auto; }
}

@media (max-width: 700px) {
  .guide-title-wrap,
  .guide-cover,
  .guide-shell { width: min(100% - 26px, 1180px); }
  .guide-hero { padding-top: 52px; }
  .guide-hero h1 { font-size: 42px; }
  .guide-cover img { border-radius: 18px; }
  .guide-sidebar-sticky,
  .guide-card-grid,
  .guide-review-grid,
  .guide-continue-grid { grid-template-columns: 1fr; }
  .guide-toc { max-height: none; }
}
