:root {
  --ink: #17202a;
  --muted: #64717f;
  --line: #dfe6ec;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --brand: #1d7f8c;
  --brand-2: #3657c9;
  --accent: #d96b2b;
  --good: #0f8a5f;
  --warn: #a15f03;
  --shadow: 0 16px 38px rgba(23, 32, 42, 0.08);
  --radius: 8px;
}

* { box-sizing: border-box; }

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--soft);
}

body {
  margin: 0;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand img { width: 210px; height: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #394653;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  border-radius: 7px;
  padding: 10px 12px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: #eaf3f4;
  color: #115f6a;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  line-height: 1.1;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.button.ghost {
  background: transparent;
  color: var(--brand);
  padding-inline: 0;
}

.layout {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  gap: 28px;
  padding: 48px 0 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
.h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.08;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.lead {
  max-width: 720px;
  margin: 20px 0 0;
  color: #435261;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.finder {
  align-self: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.finder-head strong { font-size: 18px; }
.finder-head span { color: var(--muted); font-size: 14px; }

.finder-body {
  display: grid;
  gap: 14px;
  padding: 20px;
}

label {
  color: #2d3945;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd8e2;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head p {
  max-width: 620px;
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 20px;
}

.card:hover { border-color: #a9c9cf; }

.software-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 310px;
}

.directory-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(180px, .7fr) minmax(180px, .7fr);
  gap: 14px;
  padding: 20px;
}

.directory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  color: var(--muted);
}

.directory-list {
  display: grid;
  gap: 18px;
  padding-bottom: 50px;
}

.directory-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 16px;
}

.directory-card:hover { border-color: #a9c9cf; }

.directory-card-main {
  min-width: 0;
  overflow: hidden;
}

.directory-card-main p {
  max-width: 100%;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.directory-card-actions {
  display: grid;
  align-content: end;
  gap: 10px;
}

.preview-window {
  min-height: 178px;
  border: 1px solid #cad6df;
  border-radius: 7px;
  background: linear-gradient(180deg, #f7fafb, #ffffff);
  overflow: hidden;
}

.site-shot {
  position: relative;
  min-height: 248px;
  margin: 0;
  border: 1px solid #cad6df;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.site-shot img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
  object-position: top center;
  border-top: 1px solid #e0e8ee;
}

.site-shot figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  overflow: hidden;
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(23, 32, 42, 0.76);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shot-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px;
}

.shot-identity .preview-mark {
  width: 46px;
  height: 46px;
}

.shot-identity strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.shot-identity small {
  display: block;
  max-width: 165px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.large-shot {
  margin-bottom: 24px;
}

.large-shot img {
  height: 330px;
}

.large-shot .shot-identity {
  min-height: 86px;
  padding: 16px;
}

.large-shot .shot-identity .preview-mark {
  width: 58px;
  height: 58px;
}

.preview-bar {
  display: flex;
  gap: 5px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid #dce5eb;
  background: #eef3f6;
  padding: 0 10px;
}

.preview-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa8b3;
}

.preview-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px 12px;
}

.preview-body strong {
  display: block;
  font-size: 20px;
  line-height: 1.15;
}

.preview-body small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 700;
}

.preview-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 900;
}

.preview-lines {
  display: grid;
  gap: 8px;
  padding: 4px 18px 18px;
}

.preview-lines i {
  display: block;
  height: 9px;
  border-radius: 99px;
  background: #e4ebf0;
}

.preview-lines i:nth-child(2) { width: 76%; }
.preview-lines i:nth-child(3) { width: 54%; }
.preview-lines i:nth-child(4) { width: 88%; }

.large-preview {
  margin-bottom: 24px;
  min-height: 230px;
}

.large-preview .preview-body {
  padding-top: 28px;
}

.large-preview .preview-mark {
  width: 70px;
  height: 70px;
  font-size: 22px;
}

.feature-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}

.feature-grid-mini span {
  display: grid;
  gap: 4px;
  border: 1px solid #e0e8ee;
  border-radius: 7px;
  padding: 8px;
  color: #44515e;
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
}

.feature-dot {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 900;
}

.feature-dot.yes {
  background: #e8f7ef;
  color: var(--good);
}

.feature-dot.no {
  background: #f0f3f6;
  color: #6c7782;
}

.feature-dot.check {
  background: #fff5df;
  color: var(--warn);
}

.compact-table table {
  min-width: 0;
}

.compact-table th {
  width: 45%;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #eaf3f4;
  color: var(--brand);
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag {
  border: 1px solid #cddfe3;
  border-radius: 999px;
  padding: 5px 8px;
  background: #f7fbfb;
  color: #31515a;
  font-size: 12px;
  font-weight: 800;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.meta span {
  border-radius: 999px;
  background: #eef2f7;
  padding: 6px 9px;
  color: #465563;
  font-size: 12px;
  font-weight: 800;
}

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

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

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

th {
  background: #f7fafb;
  color: #33404c;
  font-size: 13px;
  text-transform: uppercase;
}

td { color: #435261; }

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

.check { color: var(--good); font-weight: 900; }
.unknown { color: var(--warn); font-weight: 900; }

.band {
  margin: 40px 0;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 32px;
  align-items: center;
  padding: 38px 0;
}

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

.guide-card small,
.software-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
}

.page-title {
  padding: 46px 0 24px;
}

.page-title h1 {
  max-width: 900px;
  font-size: clamp(38px, 5vw, 60px);
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 50px;
}

.article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 30px;
}

.article h2 { margin-top: 30px; }
.article h2:first-child { margin-top: 0; }
.article ul { color: var(--muted); line-height: 1.7; }

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}

.notice {
  border-left: 4px solid var(--brand);
  background: #eef8f7;
  padding: 14px 16px;
  color: #31515a;
  line-height: 1.6;
}

.software-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.profile-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 28px;
}

.facts {
  display: grid;
  gap: 10px;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
}

.fact strong { color: var(--ink); }

.site-footer {
  border-top: 1px solid var(--line);
  background: #17202a;
  color: #d8e1e8;
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}

.site-footer a { color: #d8e1e8; }
.site-footer p { color: #aebbc7; font-size: 15px; }

.footer-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: #aebbc7;
  font-size: 15px;
}

.disclosure {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 18px;
  color: #aebbc7;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav-links { flex-wrap: wrap; }
  .hero,
  .band-inner,
  .content,
  .software-profile,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy { min-height: 0; }
  .grid.cols-3,
  .grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .directory-toolbar,
  .directory-card {
    grid-template-columns: 1fr;
  }
  .directory-card-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar { position: static; }
}

@media (max-width: 620px) {
  .layout,
  .nav { width: min(100% - 22px, 1180px); }
  .brand img { width: 185px; }
  .nav-links { gap: 2px; font-size: 14px; }
  h1, .h1 { font-size: 38px; }
  h2 { font-size: 27px; }
  .lead { font-size: 18px; }
  .grid.cols-3,
  .grid.cols-4 { grid-template-columns: 1fr; }
  .feature-grid-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-card-actions { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .article,
  .profile-hero { padding: 20px; }
}
