@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");

:root {
  --navy-950: #0f252d;
  --navy-900: #142c35;
  --navy-800: #1b3a45;
  --ink: #17272d;
  --muted: #607178;
  --paper: #fffdf8;
  --cream: #f4f0e7;
  --line: #d9dfdc;
  --mint: #d8ebdf;
  --mint-strong: #8fc1a2;
  --amber: #e7a45f;
  --white: #fff;
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  line-height: 1.55;
}
a {
  color: inherit;
}
input,
select {
  font: inherit;
}
.guide-shell {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 0.4rem;
  background: white;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
.guide-header {
  background: var(--navy-950);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.nav-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-row {
  min-height: 76px;
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand-signal {
  color: var(--mint-strong);
  font-size: 1.05rem;
}
nav {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  text-decoration: none;
}
nav a:hover {
  color: white;
}
.publisher-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.guide-hero {
  padding: 42px 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.hero-layout {
  display: block;
}
.hero-message {
  max-width: 980px;
}
.date-label,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--mint-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(3rem, 5vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.hero-intro {
  max-width: 670px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.12rem;
  line-height: 1.75;
}
.guide-home .date-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.guide-hero .hero-intro {
  color: #43555b;
  line-height: 1.6;
}
.hero-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.hero-source a {
  text-underline-offset: 4px;
}

.matrix-section {
  padding: 36px 0 76px;
  background: #f7f5ef;
}
.matrix-header {
  display: grid;
  max-width: 920px;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  column-gap: 4rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
.matrix-header .section-kicker {
  grid-column: 1 / -1;
}
.matrix-header h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.matrix-header > p:last-child {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.workflow-matrix {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid #aeb8b4;
  background: var(--paper);
}
.matrix-tier {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  min-width: 0;
}
.matrix-tier-current {
  background: #e7f1e9;
}
.matrix-tier-current + .matrix-tier-current {
  border-left: 1px solid #aeb8b4;
}
.matrix-tier-heading {
  min-height: 110px;
  padding: 1.2rem 1.4rem 1.35rem;
  border-bottom: 1px solid #aeb8b4;
}
.matrix-tier-heading p {
  margin-bottom: 0.35rem;
  color: #286347;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.matrix-tier-heading h3 {
  max-width: 380px;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}
.workflow-cell {
  position: relative;
  min-height: 235px;
  padding: 1.45rem 5.25rem 1.55rem 1.4rem;
  border-bottom: 1px solid #bcc7c2;
  transition: background-color 150ms ease;
}
.matrix-tier .workflow-cell:last-child {
  border-bottom: 0;
}
.matrix-tier-current .workflow-cell:hover,
.matrix-tier-current .workflow-cell:focus-within {
  background: #d9eadf;
}
.workflow-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  margin: 0;
  color: rgba(20, 44, 53, 0.16);
  font-size: 3.15rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.08em;
}
.workflow-status {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid #83ad91;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  color: #225c3d;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.workflow-cell h4 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.045em;
}
.workflow-cell p:not(.workflow-number, .workflow-status) {
  max-width: 470px;
  margin-bottom: 0.9rem;
  color: #43555b;
  font-size: 0.88rem;
}
.workflow-cell .workflow-job {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}
.workflow-cell a,
.complete-comparison a {
  color: #285e47;
  font-size: 0.82rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.workflow-cell a::after {
  content: " →";
}
.matrix-actions {
  margin-top: 1.5rem;
}
.beta-action {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  background: var(--navy-900);
  color: white;
}
.beta-action h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.beta-action p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
}
.primary-action {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 0.55rem;
  background: var(--navy-900);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.primary-action:hover {
  background: var(--navy-800);
}
.beta-action .primary-action {
  display: inline-flex;
  width: auto;
  flex: 0 0 auto;
  align-items: center;
  padding-inline: 1.15rem;
  background: var(--mint);
  color: var(--navy-950);
  text-decoration: none;
}
.beta-action .primary-action:hover {
  background: var(--mint-strong);
}
.complete-comparison {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.related-guides {
  padding-block: 72px;
}
.related-guides h2 {
  max-width: 650px;
  margin-bottom: 2rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.related-guides .section-kicker {
  color: var(--muted);
}
.guide-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.guide-link-list a {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1rem 1.2rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.guide-link-list a:nth-child(odd) {
  padding-right: 1.5rem;
}
.guide-link-list a:nth-child(even) {
  padding-left: 1.5rem;
  border-left: 1px solid var(--line);
}
.guide-link-list a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.guide-link-list span {
  color: var(--muted);
  font-size: 0.82rem;
}
.disclosure-strip {
  padding: 2rem 0;
}
.disclosure-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.guide-footer {
  padding: 2.2rem 0;
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.68);
}
.footer-row p {
  margin: 0;
  font-size: 0.82rem;
}

.page-hero {
  padding: 76px 0 64px;
  background: var(--navy-950);
  color: white;
}
.page-hero .guide-shell {
  max-width: 920px;
  margin-left: max(1.5rem, calc((100% - 1120px) / 2));
}
.page-hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 5vw, 4.8rem);
}
.page-hero .hero-intro {
  margin-bottom: 0;
}
.breadcrumbs {
  margin: 0 0 1.6rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}
.breadcrumbs a {
  text-underline-offset: 3px;
}
.page-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 5rem;
  padding-block: 72px 96px;
}
.article {
  max-width: 790px;
}
.article section + section {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--line);
}
.article h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.article h3 {
  margin: 1.8rem 0 0.55rem;
  font-size: 1.15rem;
}
.article p,
.article li {
  color: #43555b;
}
.article a {
  color: #236143;
  text-underline-offset: 4px;
}
.article li + li {
  margin-top: 0.5rem;
}
.article-lede {
  padding: 1.2rem 1.35rem;
  border-left: 3px solid var(--mint-strong);
  background: #f2f7f3;
  font-size: 1.02rem;
}
.page-aside {
  align-self: start;
  position: sticky;
  top: 1.5rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #faf8f1;
}
.page-aside strong {
  display: block;
  margin-bottom: 0.45rem;
}
.page-aside p,
.page-aside li {
  color: var(--muted);
  font-size: 0.76rem;
}
.page-aside ul {
  padding-left: 1.1rem;
}
.page-aside a {
  color: #285e47;
  font-size: 0.78rem;
  font-weight: 700;
  text-underline-offset: 4px;
}
.comparison-table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.85rem 0.75rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.comparison-table th {
  background: #eef2ef;
  color: #31444a;
}
.comparison-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}
.comparison-sources {
  color: var(--muted);
  font-size: 0.76rem;
}
.fit-good,
.fit-partial,
.fit-none {
  display: inline-flex;
  padding: 0.22rem 0.48rem;
  border-radius: 99px;
  font-size: 0.66rem;
  font-weight: 700;
}
.fit-good {
  background: #dff1e4;
  color: #23603f;
}
.fit-partial {
  background: #fff0d9;
  color: #805324;
}
.fit-none {
  background: #edf0f1;
  color: #56666c;
}
.source-list {
  padding: 0;
  list-style: none;
}
.source-list li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.source-list small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}
.callout {
  margin: 2rem 0;
  padding: 1.3rem;
  border-radius: 0.7rem;
  background: var(--navy-900);
  color: white;
}
.callout p {
  color: rgba(255, 255, 255, 0.72);
}
.callout .primary-action {
  display: inline-flex;
  width: auto;
  padding-inline: 1rem;
  background: var(--mint);
  color: var(--navy-950);
  text-decoration: none;
}
.timeline {
  padding: 0;
  list-style: none;
}
.timeline li {
  position: relative;
  padding: 0 0 1.5rem 1.5rem;
  border-left: 1px solid #aec8b7;
}
.timeline li::before {
  position: absolute;
  width: 9px;
  height: 9px;
  top: 0.38rem;
  left: -5px;
  border-radius: 50%;
  background: #397558;
  content: "";
}
.timeline strong {
  display: block;
  color: var(--ink);
}
.criteria-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.criteria-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.criteria-card h3 {
  margin-top: 0;
}

@media (max-width: 820px) {
  .page-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .page-aside {
    position: static;
  }
  .comparison-scroll {
    overflow-x: auto;
  }
}

@media (max-width: 820px) {
  .matrix-header {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .workflow-matrix {
    grid-template-columns: 1fr;
  }
  .matrix-tier-current {
    border-bottom: 1px solid #aeb8b4;
  }
  .matrix-tier-current + .matrix-tier-current {
    border-left: 0;
  }
  .matrix-tier:last-child {
    border-bottom: 0;
  }
  .nav-row nav a:not(.publisher-link) {
    display: none;
  }
  .guide-link-list {
    grid-template-columns: 1fr;
  }
  .guide-link-list a:nth-child(odd),
  .guide-link-list a:nth-child(even) {
    padding-inline: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .guide-shell {
    width: min(100% - 2rem, 1120px);
  }
  .guide-hero {
    padding: 48px 0 44px;
  }
  h1 {
    font-size: 2.8rem;
  }
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }
  .matrix-section {
    padding: 48px 0 60px;
  }
  .matrix-header h2 {
    font-size: 2.4rem;
  }
  .workflow-cell {
    min-height: 0;
    padding: 1.35rem 4.5rem 1.45rem 1.15rem;
  }
  .beta-action {
    align-items: flex-start;
    flex-direction: column;
  }
  .beta-action .primary-action {
    width: 100%;
    justify-content: center;
  }
  .publisher-link {
    display: none;
  }
  .footer-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .criteria-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none;
    animation: none;
  }
  .workflow-cell {
    transition: none;
  }
}
