:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #59665f;
  --line: #d9e2dc;
  --paper: #f6f7f3;
  --panel: #ffffff;
  --green: #1f6f5b;
  --green-dark: #13483d;
  --blue: #245b8f;
  --amber: #b7791f;
  --rose: #b6425b;
  --shadow: 0 18px 45px rgba(27, 40, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 239, 235, 0.9), rgba(246, 247, 243, 0.7) 44rem),
    var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(217, 226, 220, 0.8);
  background: rgba(246, 247, 243, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.top-nav {
  display: flex;
  gap: 1.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: start;
  min-height: auto;
  padding: 2.5rem 0 3.25rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.search-panel {
  max-width: 680px;
  padding: 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label,
.newsletter-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.search-row,
.newsletter-form {
  display: flex;
  gap: 0.75rem;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 0.95rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

button {
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

.hero-metrics {
  display: grid;
  gap: 1rem;
  align-self: start;
}

.hero-metrics div {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-metrics strong {
  display: block;
  font-size: 2.3rem;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
}

.filters {
  position: sticky;
  top: 68px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 243, 0.92);
  backdrop-filter: blur(14px);
}

.filter-chip {
  min-height: 38px;
  color: var(--muted);
  background: #fff;
  border-color: var(--line);
}

.filter-chip:hover,
.filter-chip.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.section {
  padding: 4.5rem 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.tool-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.tool-card,
.guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.tool-card[hidden] {
  display: none;
}

.tool-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.pill {
  flex: 0 0 auto;
  padding: 0.28rem 0.5rem;
  color: var(--green-dark);
  border: 1px solid #b8d2c7;
  border-radius: 999px;
  background: #eef7f3;
  font-size: 0.75rem;
  font-weight: 800;
}

.tool-card p,
.guide-card p {
  margin: 0 0 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.tool-card ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
}

.comparison-section {
  padding-top: 6rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: #f0f4f1;
  font-size: 0.84rem;
  text-transform: uppercase;
}

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

.guide-card {
  min-height: 190px;
}

.guide-card span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-card strong {
  display: block;
  margin: 0.55rem 0 0.7rem;
  font-size: 1.25rem;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.directory-grid > div {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.directory-grid h3 {
  margin: 0 0 0.9rem;
}

.directory-grid a,
.related-links a {
  display: block;
  padding: 0.72rem 0;
  color: var(--green);
  border-top: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.content-page {
  width: min(920px, 90vw);
}

.article-shell {
  padding: 4rem 0 1rem;
}

.hero-screenshot {
  display: grid;
  gap: 0.9rem;
  align-self: start;
}

.hero-screenshot figure,
.screenshot-panel {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-screenshot img,
.screenshot-panel img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.shot-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.shot-meta strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.info-strip > div,
.changelog-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.info-strip span,
.changelog-item span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.info-strip strong,
.changelog-item strong {
  display: block;
  line-height: 1.45;
}

.page-changelog {
  margin-top: 1rem;
}

.page-changelog h2 {
  margin-bottom: 1rem;
}

.changelog-list {
  display: grid;
  gap: 0.75rem;
}

.changelog-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.content-page .article-hero.has-screenshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.content-page .article-hero.has-screenshot > :first-child {
  min-width: 0;
}

.content-page .article-hero.has-screenshot .hero-screenshot {
  margin-top: 0.25rem;
}

.content-page .article-hero.has-screenshot h1 {
  max-width: 100%;
}

.content-page .article-hero.has-screenshot p {
  max-width: 100%;
}

.content-page .primary-link {
  margin-bottom: 1rem;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .trust-band,
  .newsletter,
  .content-page .article-hero.has-screenshot {
    grid-template-columns: 1fr;
  }

  .hero-screenshot {
    order: -1;
  }

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

  .content-page .article-hero.has-screenshot .hero-screenshot {
    order: 2;
  }
}

.breadcrumb {
  margin-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.article-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 5.5vw, 5.2rem);
}

.article-hero p {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.primary-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  margin-top: 0.5rem;
  padding: 0 1rem;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.fact-grid div {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.fact-grid span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-grid strong {
  display: block;
  line-height: 1.55;
}

.article-body {
  max-width: 780px;
  padding-bottom: 3rem;
}

.article-body h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.article-body p,
.article-body li {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.78;
}

.article-body ul {
  padding-left: 1.2rem;
}

.mini-tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.mini-tool-list article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mini-tool-list h3 {
  margin: 0 0 0.7rem;
  font-size: 1.15rem;
}

.mini-tool-list h3 a {
  color: var(--green);
  text-decoration: none;
}

.mini-tool-list p {
  margin: 0 0 0.7rem;
  font-size: 0.96rem;
}

.mini-tool-list p:last-child {
  margin-bottom: 0;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  margin-top: 1rem;
}

.trust-band,
.newsletter {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 2rem;
  margin-top: 5.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.trust-band .eyebrow,
.newsletter .eyebrow {
  color: #96d7c3;
}

.trust-band h2,
.newsletter h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.trust-list {
  display: grid;
  gap: 1rem;
}

.trust-list p,
.newsletter p {
  margin: 0;
  color: #d7e4de;
  line-height: 1.65;
}

.newsletter {
  align-items: center;
  background: var(--blue);
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

.newsletter-form label,
.newsletter-form .form-note {
  grid-column: 1 / -1;
}

.newsletter-form button {
  background: var(--ink);
}

.form-note {
  font-size: 0.86rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .trust-band,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

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

  .tool-grid,
  .guide-grid,
  .directory-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .top-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.88rem;
  }

  .filters {
    top: 108px;
  }

  main,
  .content-page,
  .site-footer {
    width: min(100% - 1.5rem, 1180px);
  }

  h1 {
    font-size: 3rem;
  }

  .search-row,
  .newsletter-form {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero-metrics,
  .tool-grid,
  .guide-grid,
  .directory-grid,
  .fact-grid,
  .mini-tool-list,
  .related-links {
    grid-template-columns: 1fr;
  }

  .trust-band,
  .newsletter {
    padding: 1.25rem;
  }

  .site-footer {
    flex-direction: column;
  }
}
