:root {
  --page: #f5f6f6;
  --paper: #ffffff;
  --ink: #1f2524;
  --muted: #596263;
  --rule: #ccd1d2;
  --rule-dark: #8c9698;
  --tab: #d9c88e;
  --tab-dark: #b79c3b;
  --green: #235342;
  --green-soft: #e7f0ed;
  --steel: #eef0f1;
  --warning: #7a3f24;
  --shadow: 0 18px 50px rgba(38, 46, 48, 0.1);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(31, 37, 36, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcfc 0%, var(--page) 100%);
  background-size: 32px 32px, auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #7f774a;
  background: var(--tab);
  box-shadow: 0 2px 0 rgba(31, 37, 36, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0.85rem 1rem 0.7rem;
  color: #161916;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 1.7rem;
  border: 1px solid rgba(31, 37, 36, 0.55);
  background: var(--green);
  color: #fffef8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0 1rem;
}

.tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  border: 1px solid #8e8145;
  border-bottom: 0;
  background: #e7dba8;
  color: #242412;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.tabs a + a {
  border-left: 0;
}

.tabs a:hover,
.tabs a:focus-visible {
  background: #fff7c7;
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.catalog-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin: 1.2rem auto 0;
  padding-bottom: 3rem;
}

.tab-panel {
  scroll-margin-top: 7.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rule-dark);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.panel-header {
  padding: 2.2rem 2rem;
  border-bottom: 1px solid var(--rule);
  background: linear-gradient(180deg, #ffffff 0%, #f3f5f5 100%);
}

.panel-header.compact {
  padding-bottom: 1.6rem;
}

.kicker,
.path-line,
.error-line {
  font-family: "IBM Plex Mono", monospace;
}

.kicker {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0.65rem;
  font-size: clamp(2.45rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  line-height: 1.25;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

p,
li,
dd,
td {
  color: var(--muted);
  line-height: 1.6;
}

.subtitle {
  max-width: 760px;
  margin: 0;
  color: #2f3533;
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  font-weight: 600;
}

.intro-grid,
.sales-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 1rem;
  padding: 1rem;
}

.summary-card,
.requirements-card,
.spec-box,
.setup-table-wrap,
.feature-list {
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 1.15rem;
}

.summary-card p {
  max-width: 680px;
  margin-bottom: 0;
  color: #303736;
  font-size: 1.15rem;
}

.requirements-card {
  background: var(--green-soft);
}

.requirements-card p:last-child,
.spec-box p:last-child {
  margin-bottom: 0;
}

.feature-list {
  margin: 0 1rem 1rem;
}

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

.gallery-strip img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(38, 46, 48, 0.08);
}

ul,
ol {
  margin: 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

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

.spec-box.wide {
  grid-column: 1 / -1;
}

.spec-table {
  margin: 0;
}

.spec-table div {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
  border-top: 1px solid var(--rule);
}

.spec-table div:first-child {
  border-top: 0;
}

.spec-table dt,
.spec-table dd {
  margin: 0;
  padding: 0.55rem 0;
}

.spec-table dt {
  color: var(--ink);
  font-weight: 700;
}

.numbered-list {
  counter-reset: workflow;
  list-style: none;
  padding: 0;
}

.numbered-list li {
  counter-increment: workflow;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.numbered-list li::before {
  content: counter(workflow, decimal-leading-zero);
  color: var(--green);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
}

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

.permission-grid article {
  border-left: 4px solid var(--green);
  padding-left: 1rem;
}

.path-line {
  padding: 0.7rem;
  border: 1px solid var(--rule);
  background: var(--steel);
  color: #30332e;
  font-size: 0.9rem;
}

.error-line {
  color: var(--warning);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: transform 140ms ease, background-color 140ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  background: #17372c;
  outline: 2px solid var(--tab-dark);
  outline-offset: 2px;
}

.button.secondary {
  background: #ffffff;
  color: var(--green);
}

.legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.legal-links h2 {
  margin-bottom: 0.2rem;
}

.support-email a {
  color: var(--green);
  font-weight: 700;
}

.setup-table-wrap {
  margin: 0 1rem 1rem;
  overflow-x: auto;
}

.setup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}

.setup-table th,
.setup-table td {
  padding: 0.75rem;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.setup-table th {
  color: var(--ink);
  background: var(--steel);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(calc(100% - 2rem), var(--content));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 0.55rem 1rem 0.7rem;
  background: #eceff0;
  border-top: 1px solid rgba(31, 37, 36, 0.1);
}

.page-nav a {
  border: 1px solid var(--rule);
  background: #ffffff;
  color: var(--green);
  padding: 0.42rem 0.62rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.legal-body {
  display: grid;
  gap: 1rem;
}

.legal-body article {
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 1rem;
}

.legal-body article h2 {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.45rem;
}

.proof-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 1rem;
}

.proof-panel {
  border: 1px solid var(--rule);
  background: var(--green-soft);
  padding: 1rem;
}

.section {
  width: min(calc(100% - 2rem), var(--content));
  margin: 1rem auto;
  border: 1px solid var(--rule-dark);
  background: var(--paper);
  padding: 1.25rem;
}

.section-heading {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}

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

.feature-grid article {
  border: 1px solid var(--rule);
  background: #ffffff;
  padding: 1rem;
}

@media (max-width: 760px) {
  .brand {
    padding-inline: 0.8rem;
  }

  .tabs {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .tabs a {
    border-left: 0;
    border-right: 0;
  }

  .catalog-shell,
  .site-footer {
    width: min(calc(100% - 1rem), var(--content));
  }

  .panel-header,
  .intro-grid,
  .spec-layout,
  .sales-grid {
    padding: 0.85rem;
  }

  .intro-grid,
  .spec-layout,
  .sales-grid,
  .permission-grid,
  .two-column,
  .feature-grid,
  .proof-hero {
    grid-template-columns: 1fr;
  }

  .spec-box.wide {
    grid-column: auto;
  }

  .feature-list,
  .gallery-strip,
  .setup-table-wrap {
    margin: 0 0.85rem 0.85rem;
  }

  .gallery-strip {
    grid-template-columns: 1fr;
    padding: 0 0.85rem 0.85rem;
  }

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