:root {
  --ink: #102018;
  --muted: #5b6f62;
  --paper: #ffffff;
  --soft: #f3f8f4;
  --line: #d9e8dd;
  --green: #0f5d3f;
  --green-2: #19764f;
  --green-soft: #e5f3ea;
  --gold: #b8831b;
  --danger: #9f2f2f;
  --shadow: 0 18px 55px rgba(13, 48, 31, 0.12);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 50;
  background: var(--paper);
  color: var(--green);
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 12px;
}

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

.site-header[data-scrolled] {
  box-shadow: 0 12px 35px rgba(13, 48, 31, 0.08);
}

.top-bar {
  background: var(--green);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.82rem;
}

.top-bar-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.top-bar a {
  color: #fff;
  font-weight: 700;
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--green-soft);
  color: var(--green);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0f2f22;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 29, 20, 0.92), rgba(7, 29, 20, 0.62), rgba(7, 29, 20, 0.18));
}

.hero-board {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  opacity: 0.55;
  transform: scale(1.08);
}

.hero-board span {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.38);
  font-size: clamp(1.6rem, 4vw, 4.6rem);
  font-weight: 800;
}

.hero-board .piece {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 92px 0;
}

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

.hero .eyebrow,
.product-hero .eyebrow {
  color: #92dfb8;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0;
}

.hero-copy {
  max-width: 760px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--green);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.page-hero .button.secondary,
.section .button.secondary {
  border-color: var(--line);
  color: var(--green);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(900px, 100%);
  margin: 44px 0 0;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.trust-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
}

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

.hero dt {
  color: rgba(255, 255, 255, 0.7);
}

dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.review-panel {
  width: min(760px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.review-panel div {
  position: relative;
  padding-left: 28px;
}

.review-panel strong {
  display: block;
  color: #fff;
  line-height: 1.2;
}

.review-panel p {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.review-panel a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
}

.status-dot {
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8ff0b8;
  box-shadow: 0 0 0 6px rgba(143, 240, 184, 0.15);
}

.section {
  padding: 92px 0;
}

.soft-section {
  background: var(--soft);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.product-grid,
.phase-grid,
.feature-grid,
.contact-grid,
.document-grid,
.requirement-grid,
.email-grid,
.mode-grid,
.metric-grid,
.standards-grid,
.review-pack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.mode-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.standards-grid,
.review-pack {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.product-card,
.phase-card,
.feature-grid article,
.contact-grid article,
.document-grid article,
.requirement-grid article,
.email-grid article,
.mode-grid article,
.metric-grid article,
.standards-grid article,
.review-pack article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--paper);
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
}

.product-card p,
.phase-card p,
.feature-grid p,
.contact-grid p,
.document-grid p,
.requirement-grid p,
.email-grid p,
.mode-grid p,
.metric-grid p,
.standards-grid p,
.review-pack p,
.timeline p,
.wide-copy {
  color: var(--muted);
}

.metric-grid article {
  padding: 24px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.metric-grid strong {
  display: block;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.95;
  color: var(--green);
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.metric-grid p {
  margin-top: 10px;
}

.mode-grid article {
  min-height: 230px;
  background:
    linear-gradient(180deg, rgba(15, 93, 63, 0.04), rgba(184, 131, 27, 0.05)),
    var(--paper);
}

.mode-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 900;
}

.table-tier-grid {
  display: grid;
  gap: 14px;
}

.table-tier-grid article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--paper);
}

.table-tier-grid strong {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff4d4;
  border: 2px solid #c88a22;
  color: #7d1f18;
  font-size: 1.35rem;
  font-weight: 900;
}

.table-tier-grid h3 {
  margin-bottom: 4px;
}

.table-tier-grid p {
  color: var(--muted);
}

.policy-callout {
  border: 1px solid #e3c883;
  border-radius: var(--radius);
  padding: 26px;
  background: #fffaf0;
  color: #33260b;
}

.policy-callout h3 {
  margin-bottom: 10px;
  color: #6e4810;
}

.policy-callout p,
.policy-callout li {
  color: #604917;
}

.policy-callout ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.policy-callout li {
  position: relative;
  padding-left: 24px;
}

.policy-callout li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.product-type,
.phase-card span {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
}

.product-card h3,
.phase-card h3,
.feature-grid h3,
.contact-grid h3,
.document-grid h3,
.requirement-grid h3,
.email-grid h3,
.mode-grid h3,
.standards-grid h3,
.review-pack h3,
.timeline h3 {
  margin-bottom: 10px;
}

.product-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 20px;
}

.product-card dt {
  color: var(--green);
}

.product-card .text-link {
  margin-top: auto;
}

.text-link {
  font-weight: 800;
}

.check-list,
.plain-list,
.ordered-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.check-list li {
  position: relative;
  padding: 18px 18px 18px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
}

.ordered-list {
  counter-reset: item;
  display: grid;
  gap: 12px;
}

.ordered-list li {
  counter-increment: item;
  position: relative;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.ordered-list li::before {
  content: counter(item);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.plain-list {
  display: grid;
  gap: 8px;
}

.link-list a {
  font-weight: 700;
}

.page-hero {
  padding: 86px 0;
  background:
    linear-gradient(135deg, rgba(15, 93, 63, 0.11), rgba(25, 118, 79, 0)),
    var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  color: var(--ink);
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.2rem;
}

.product-hero {
  background: #0f2f22;
  color: #fff;
  padding: 80px 0;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.product-hero h1 {
  margin-bottom: 18px;
}

.product-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.15rem;
}

.chess-preview {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: min(520px, 100%);
  aspect-ratio: 9 / 10;
  border: 2px solid rgba(255, 255, 255, 0.78);
  background: #f3efe0;
  color: #7e1f1f;
  box-shadow: var(--shadow);
}

.chess-preview span {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(54, 36, 16, 0.35);
  border-bottom: 1px solid rgba(54, 36, 16, 0.35);
  font-weight: 900;
  font-size: clamp(1rem, 3vw, 2rem);
}

.chess-preview .has-piece {
  background: radial-gradient(circle, #fff7df 0 50%, #e6d5a7 51% 100%);
}

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

.info-table {
  width: 100%;
  border-collapse: collapse;
}

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

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 260px;
  color: var(--green);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.note {
  margin-top: 16px;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  color: #6f4f10;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.code-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #102018;
  color: #dff5e7;
  overflow-x: auto;
}

.code-panel pre {
  margin: 0;
  padding: 22px;
  font-size: 0.92rem;
}

.wide-copy {
  max-width: 860px;
  font-size: 1.06rem;
}

.site-footer {
  background: #102018;
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.7fr;
  gap: 34px;
}

.footer-brand {
  color: #fff;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.site-footer p,
.site-footer li,
.site-footer small {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a {
  color: #a7efc8;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .product-grid,
  .phase-grid,
  .feature-grid,
  .contact-grid,
  .document-grid,
  .requirement-grid,
  .email-grid,
  .mode-grid,
  .metric-grid,
  .standards-grid,
  .review-pack,
  .check-list,
  .footer-grid,
  .product-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 640px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 72px 0;
  }

  .trust-strip,
  .review-panel,
  .product-grid,
  .phase-grid,
  .feature-grid,
  .contact-grid,
  .document-grid,
  .requirement-grid,
  .email-grid,
  .mode-grid,
  .metric-grid,
  .standards-grid,
  .review-pack,
  .check-list,
  .footer-grid,
  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .top-bar-inner {
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .review-panel {
    display: grid;
  }

  .policy-callout ul {
    grid-template-columns: 1fr;
  }

  .table-tier-grid article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .section {
    padding: 68px 0;
  }

  .page-hero,
  .product-hero {
    padding: 62px 0;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    padding-bottom: 4px;
  }

  .info-table td {
    padding-top: 4px;
  }

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