:root {
  color-scheme: light;
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-strong: #475569;
  --primary: #3857ff;
  --primary-dark: #2745d8;
  --accent: #09b8d8;
  --border: #dbe5ff;
  --border-strong: #c4d2ff;
  --soft: #eef3ff;
  --ink: #0f172a;
  --shadow: 0 16px 40px rgba(28, 45, 87, 0.07);
  --line: #dde6ff;
  --article-max: 760px;
  --wide-max: 960px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(180deg, #f8faff 0%, #f4f7fc 100%);
  line-height: 1.54;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--primary-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 255, 0.9);
  color: var(--text);
  padding: 0;
  border-bottom: 1px solid rgba(196, 210, 255, 0.82);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1180px, calc(100% - 36px));
  min-height: 76px;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 740;
  letter-spacing: 0;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 24px rgba(56, 87, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}

.nav .nav-cta {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #2563eb 55%, var(--accent));
  color: #fff;
}

main {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 24px 58px;
}

main.wide,
.wide {
  width: min(100%, 1180px);
  max-width: 1180px;
}

article {
  padding: 0;
}

article > * {
  max-width: var(--article-max);
  margin-left: auto;
  margin-right: auto;
}

article > h1 {
  max-width: 900px;
}

article > .answer-box,
article > .toc,
article > .callout,
article > .cta,
article > .faq-block,
article > .article-inline-cta,
article > .article-final-cta,
article > .article-hero-media,
article > .article-feature-slider,
article > .comparison,
article > .pros-cons {
  max-width: var(--wide-max);
}

.article-card,
.hero-panel,
.toc,
.callout,
.cta,
.answer-box,
.faq-block,
.article-inline-cta,
.article-final-cta,
.article-hero-media,
.article-feature-slider,
.feature-slide {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 22px;
}

main > .hero-panel:first-child {
  background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 58%, #edfaff 100%);
  border-color: #cbd8ff;
  box-shadow: 0 26px 78px rgba(35, 53, 94, 0.1);
}

main > .hero-panel:first-child::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), #22c55e);
  opacity: 0.82;
}

main > .hero-panel:first-child > * {
  position: relative;
  z-index: 1;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid rgba(203, 216, 255, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #2f3d59;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(35, 53, 94, 0.05);
}

.hero-proof span:nth-child(3n + 1) {
  background: #f0f4ff;
}

.hero-proof span:nth-child(3n + 2) {
  background: #ecfbff;
}

.hero-proof span:nth-child(3n + 3) {
  background: #effaf4;
}

.hero-proof strong {
  color: var(--primary-dark);
  margin-right: 5px;
}

.eyebrow,
.tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--primary-dark);
  background: rgba(238, 243, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 14px 0 14px;
  font-size: clamp(27px, 2.7vw, 34px);
  font-weight: 740;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(196, 210, 255, 0.72);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-panel h2 {
  margin-top: 8px;
  padding-top: 0;
  border-top: 0;
}

h3 {
  margin-top: 22px;
  font-size: 17px;
  font-weight: 740;
  line-height: 1.25;
}

p,
li {
  color: #253149;
  font-size: 15px;
  line-height: 1.58;
}

p {
  margin: 12px auto;
}

li + li {
  margin-top: 7px;
}

.lede {
  color: var(--muted-strong);
  font-size: clamp(15.5px, 1.4vw, 17px);
  line-height: 1.5;
  font-weight: 500;
}

.meta {
  display: inline-flex;
  width: fit-content;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 auto 18px;
}

.article-hero-media {
  position: relative;
  overflow: hidden;
  height: clamp(220px, 32vw, 340px);
  margin-top: 24px;
  margin-bottom: 24px;
  border-color: #cbd8ff;
  background: #eaf0ff;
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.article-hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  max-width: 640px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(15, 23, 42, 0.5);
}

.article-hero-media figcaption span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.54);
  color: white;
  text-shadow: none;
}

.toc,
.callout,
.cta,
.answer-box,
.faq-block {
  padding: 20px 22px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.toc {
  color: #243047;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.answer-box {
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.answer-box strong,
.toc strong,
.callout strong,
.cta strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-box p,
.toc p,
.callout p,
.cta p {
  margin: 8px 0 0;
}

.answer-box ul,
.toc ul,
.callout ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.toc a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(196, 210, 255, 0.54);
}

.toc a:first-of-type {
  border-top: 0;
}

.faq-block {
  background: rgba(248, 251, 255, 0.92);
  box-shadow: none;
}

.faq-block h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.faq-block h3 {
  margin: 18px 0 6px;
}

.faq-block p {
  margin-top: 0;
}

.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 26px auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(28, 45, 87, 0.06);
}

.comparison th,
.comparison td {
  text-align: left;
  vertical-align: top;
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.45;
}

.comparison th {
  background: #eef4ff;
  color: #253149;
  font-weight: 700;
}

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

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

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px auto;
}

.pros-cons > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.84);
}

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

.article-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  background: var(--card-tint, #f6f8ff);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.article-thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1200 / 630;
  margin-bottom: 14px;
  border: 1px solid rgba(196, 210, 255, 0.86);
  border-radius: 10px;
  background: #eaf0ff;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.025);
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--card-accent, var(--primary));
  opacity: 0.72;
}

.grid .article-card:nth-child(3n + 1) {
  --card-accent: #3857ff;
  --card-tint: #f0f4ff;
}

.grid .article-card:nth-child(3n + 2) {
  --card-accent: #09b8d8;
  --card-tint: #ecfbff;
}

.grid .article-card:nth-child(3n + 3) {
  --card-accent: #22c55e;
  --card-tint: #effaf4;
}

.article-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 20px 56px rgba(28, 45, 87, 0.11);
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .article-card {
    transition: none;
  }

  .article-card:hover,
  .article-card:hover .article-thumb img {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.reveal-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms ease,
      transform 520ms ease,
      border-color 160ms ease,
      box-shadow 160ms ease;
    transition-delay: var(--reveal-delay, 0ms);
  }

  html.reveal-ready .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-card h2 {
  margin: 10px 0 8px;
  padding-top: 0;
  border-top: 0;
  font-size: 17px;
  line-height: 1.24;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.read {
  margin-top: 20px;
  color: var(--primary);
  font-weight: 700;
}

.section-title {
  margin: 30px 0 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-inline-cta,
.article-final-cta {
  border-color: var(--border-strong);
  background: linear-gradient(135deg, #ffffff 0%, #eef7ff 100%);
}

.article-feature-slider {
  padding: 20px;
  margin: 28px auto;
  overflow: hidden;
  border-color: #cbd8ff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.95)),
    radial-gradient(circle at 12% 10%, rgba(56, 87, 255, 0.14), transparent 34%);
}

.feature-slider-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.feature-slider-head h2 {
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  font-size: clamp(20px, 1.8vw, 24px);
}

.feature-slider-controls {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.feature-slider-controls button {
  width: 38px;
  height: 38px;
  border: 1px solid #cbd8ff;
  border-radius: 999px;
  background: white;
  color: var(--primary);
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(35, 53, 94, 0.08);
}

.feature-slider-viewport {
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
}

.feature-slider-track {
  display: flex;
  gap: 14px;
  min-width: min-content;
}

.feature-slide {
  flex: 0 0 min(310px, 82vw);
  min-height: 176px;
  padding: 18px;
  scroll-snap-align: start;
  box-shadow: 0 12px 34px rgba(28, 45, 87, 0.07);
}

.feature-slide:nth-child(3n + 1) {
  background: #f0f4ff;
}

.feature-slide:nth-child(3n + 2) {
  background: #ecfbff;
}

.feature-slide:nth-child(3n + 3) {
  background: #effaf4;
}

.feature-slide-number {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-slide h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.22;
}

.feature-slide p {
  margin: 10px 0 0;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.48;
}

.article-inline-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  margin: 30px auto;
}

.article-inline-cta span,
.article-final-cta .eyebrow {
  display: inline-flex;
  width: fit-content;
  color: var(--primary);
  background: #eaf0ff;
  border: 1px solid #d8e1ff;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-inline-cta strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.2;
  color: var(--ink);
}

.article-inline-cta p,
.article-final-cta p {
  margin: 8px 0 0;
  color: var(--muted);
}

.article-inline-cta a,
.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 700;
  white-space: nowrap;
}

.article-inline-cta a,
.primary-cta {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 30px rgba(53, 82, 255, 0.19);
}

.article-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  margin: 36px auto 4px;
}

.article-final-cta h2 {
  margin: 14px 0 0;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.16;
  letter-spacing: 0;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 180px;
}

.secondary-cta {
  color: var(--primary);
  background: white;
  border: 1px solid #cbd8ff;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 0 18px 30px;
}

footer a {
  margin: 0 8px;
  color: var(--muted);
}

.site-footer-links {
  margin-bottom: 8px;
}

.site-footer-copy {
  color: #94a3b8;
  font-size: 11px;
}

@media (max-width: 940px) {
  main {
    padding: 28px 18px 54px;
  }

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

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .comparison {
    display: block;
    overflow-x: auto;
  }

  .article-inline-cta,
  .article-final-cta {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .feature-slider-head {
    flex-direction: column;
  }

  .article-inline-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-inline-cta a,
  .primary-cta,
  .secondary-cta {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .nav {
    gap: 10px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.12;
  }

  h2 {
    margin-top: 30px;
    font-size: 20px;
  }

  p,
  li {
    font-size: 15px;
    line-height: 1.58;
  }

  .lede {
    font-size: 16px;
  }

  .hero-panel,
  .toc,
  .callout,
  .cta,
  .answer-box,
  .faq-block,
  .article-inline-cta,
  .article-final-cta,
  .article-hero-media,
  .article-feature-slider,
  .feature-slide,
  .article-card {
    border-radius: 10px;
  }

  .article-hero-media {
    height: 228px;
  }

  .article-hero-media figcaption {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
