:root {
  color-scheme: light;
  --bg: #f6f8f4;
  --surface: #ffffff;
  --ink: #18221e;
  --muted: #64706a;
  --line: #dfe6df;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --amber: #c47a10;
  --soft-teal: #e7f3ef;
  --soft-amber: #fff1d6;
  --shadow: 0 18px 50px rgba(24, 34, 30, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f7faf8;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(246, 248, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.85rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

main {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: 76vh;
  padding: 64px 0 42px;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-copy p {
  max-width: 650px;
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.workflow {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.concept-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.concept-image img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.workflow-row span,
.rank {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--soft-amber);
  color: #8a4e05;
  font-weight: 800;
  font-size: 0.82rem;
}

.workflow-row strong { line-height: 1.1; }
.workflow-row em {
  grid-column: 2;
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.workflow-row.complete span,
.workflow-row.active span {
  background: var(--soft-teal);
  color: var(--teal-dark);
}

.workflow-row.active {
  border-color: rgba(15, 118, 110, 0.35);
  background: #f0faf7;
}

.section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.grid-two {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.quality-list {
  display: grid;
  gap: 12px;
}

.quality-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.quality-list span {
  color: var(--muted);
}

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

.section-heading p { max-width: 520px; }

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

.page-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.label {
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 0.86rem;
  font-weight: 800;
}

.page-card h3 a { text-decoration: none; }
.page-card h3 a:hover { color: var(--teal); }

dl {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-size: 0.94rem;
}

.process ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.process li {
  padding: 18px;
  border-top: 4px solid var(--teal);
  background: var(--surface);
}

.article-hero {
  padding: 56px 0 36px;
}

.article-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.article-hero p {
  max-width: 820px;
  font-size: 1.15rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.article-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

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

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.product-notes {
  display: grid;
  gap: 16px;
}

.product-note {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-heading {
  display: flex;
  gap: 14px;
  align-items: start;
}

.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}

.note-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.criteria {
  padding: 28px;
  border: 1px solid rgba(196, 122, 16, 0.28);
  border-radius: 8px;
  background: var(--soft-amber);
}

.faq details {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  max-width: 760px;
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 36px));
  margin: 40px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 540px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid-two,
  .concept-grid,
  .page-grid,
  .process ol,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .page-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1;
  }

  .quality-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .workflow-row {
    grid-template-columns: 32px 1fr;
    padding: 12px;
  }

  th, td {
    padding: 12px;
  }
}