:root {
  color-scheme: dark;
  background: #081012;
  color: #eef7f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(100, 213, 193, 0.1), transparent 320px),
    linear-gradient(90deg, rgba(237, 247, 244, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(237, 247, 244, 0.018) 1px, transparent 1px),
    #081012;
  background-size: auto, 80px 80px, 80px 80px, auto;
  color: #eef7f3;
}

a {
  color: #64d5c1;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.topbar {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 32px;
}

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

.brand img {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(237, 247, 244, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.back-button {
  min-height: 40px;
  border: 1px solid rgba(237, 247, 244, 0.12);
  border-radius: 8px;
  background: rgba(16, 27, 31, 0.82);
  color: #d7e4e0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  padding: 0 14px;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.back-button:hover,
.back-button:focus-visible {
  border-color: rgba(100, 213, 193, 0.46);
  background: rgba(100, 213, 193, 0.1);
  color: #eef7f3;
  outline: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 14px;
}

.nav a {
  color: #b8c9c5;
  text-decoration: none;
}

.nav a:hover {
  color: #eef7f3;
}

main {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(237, 247, 244, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(237, 247, 244, 0.035), transparent 190px),
    rgba(16, 27, 31, 0.95);
  padding: 42px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 90px rgba(0, 0, 0, 0.34);
}

main::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 213, 193, 0.46), transparent);
  content: "";
}

.eyebrow {
  margin: 0 0 10px;
  color: #64d5c1;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 14px;
  font-size: 3.5rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 32px 0 10px;
  font-size: 22px;
}

p,
li {
  color: #d7e4e0;
  font-size: 16px;
  line-height: 1.65;
}

ul {
  padding-left: 22px;
}

.summary {
  max-width: 720px;
  color: #d7e4e0;
  font-size: 18px;
}

.note {
  margin-top: 24px;
  border-left: 3px solid #64d5c1;
  border-radius: 8px;
  background: rgba(100, 213, 193, 0.08);
  padding: 14px 16px;
}

.offline-app-box {
  margin-top: 26px;
  border: 1px solid rgba(112, 220, 200, 0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(100, 213, 193, 0.12), rgba(13, 37, 34, 0.88));
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 38px rgba(0, 0, 0, 0.18);
}

.offline-app-box h2 {
  margin-top: 0;
}

.offline-app-box p {
  max-width: 680px;
  margin: 0 0 16px;
  color: #d7e4e0;
}

.offline-app-box .cta {
  margin-top: 2px;
}
.workflow-bridge {
  margin-top: 28px;
  border: 1px solid rgba(237, 247, 244, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(100, 213, 193, 0.08), transparent 130px),
    rgba(237, 247, 244, 0.025);
  padding: 22px;
}

.workflow-bridge h2 {
  margin-top: 0;
}

.workflow-bridge p {
  margin: 0 0 12px;
}

.workflow-bridge ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding-left: 22px;
}

.workflow-bridge .cta-row {
  margin-top: 18px;
}

.workflow-bridge-note {
  border-top: 1px solid rgba(237, 247, 244, 0.1);
  padding-top: 14px;
  color: #b8c9c5;
  font-size: 15px;
}

.cta-row,
.link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.cta,
.link-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 213, 193, 0.4);
  border-radius: 8px;
  background: rgba(100, 213, 193, 0.1);
  color: #eef7f3;
  font-weight: 760;
  padding: 0 16px;
  text-decoration: none;
}

.cta.primary {
  border-color: rgba(112, 220, 200, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    #174943;
  color: #f4fbf8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.cta.primary:hover,
.cta.primary:focus-visible {
  border-color: rgba(166, 234, 220, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), transparent),
    #205b53;
  color: #ffffff;
}

.feature-grid,
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature-grid article,
.faq-list article {
  border: 1px solid rgba(237, 247, 244, 0.1);
  border-radius: 8px;
  background: rgba(237, 247, 244, 0.025);
  padding: 18px;
}

.feature-grid h2,
.faq-list h2 {
  margin-top: 0;
}

.feature-grid p,
.faq-list p {
  margin-bottom: 0;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  border-top: 1px solid rgba(100, 213, 193, 0.3);
  padding: 12px 0;
  font-weight: 700;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #8da39d;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #b8c9c5;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #eef7f3;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 34px;
}

.article-meta span {
  border: 1px solid rgba(100, 213, 193, 0.22);
  border-radius: 8px;
  background: rgba(100, 213, 193, 0.07);
  color: #b8c9c5;
  font-size: 13px;
  font-weight: 760;
  padding: 8px 10px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(100, 213, 193, 0.34);
  padding-top: 14px;
}

.toc strong {
  color: #eef7f3;
  font-size: 14px;
}

.toc a {
  color: #9db0ac;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  color: #64d5c1;
}

.article-body section {
  scroll-margin-top: 24px;
  border-top: 1px solid rgba(237, 247, 244, 0.1);
  margin-top: 34px;
  padding-top: 18px;
}

.article-body section:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.formula {
  overflow-x: auto;
  border: 1px solid rgba(100, 213, 193, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(5, 12, 13, 0.48);
  color: #eef7f3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  font-weight: 700;
  margin: 14px 0;
  padding: 12px 14px;
  white-space: nowrap;
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid rgba(237, 247, 244, 0.1);
  border-radius: 8px;
}

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

th,
td {
  border-bottom: 1px solid rgba(237, 247, 244, 0.09);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #eef7f3;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #d7e4e0;
  line-height: 1.5;
}

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

.steps,
.checklist {
  display: grid;
  gap: 10px;
}

.example-card,
.resource-list article {
  border: 1px solid rgba(237, 247, 244, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(237, 247, 244, 0.035), transparent 140px),
    rgba(237, 247, 244, 0.02);
  margin-top: 14px;
  padding: 18px;
}

.example-card h3,
.resource-list h2 {
  margin-top: 0;
}

.resource-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.resource-list h2 a,
.resource-link {
  color: #eef7f3;
  text-decoration: none;
}

.resource-list h2 a:hover,
.resource-link:hover {
  color: #64d5c1;
}

.resource-link {
  display: inline-flex;
  margin-top: 8px;
  color: #64d5c1;
  font-weight: 760;
}

.footer {
  padding-top: 24px;
  color: #8da39d;
  font-size: 13px;
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  main {
    padding: 22px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .feature-grid,
  .faq-list,
  .trust-list {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .formula {
    white-space: normal;
  }
}

.app-page-note { padding:12px 16px; border-left:3px solid #64d5c1; background:rgba(100,213,193,.06); }
.worked-example { margin:28px 0; padding:20px; border:1px solid rgba(100,213,193,.3); border-radius:8px; }
.worked-example h2:first-child { margin-top:0; }
.table-scroll { overflow-x:auto; max-width:100%; margin:24px 0; }
.table-scroll table { width:100%; min-width:570px; border-collapse:collapse; }
.table-scroll th,.table-scroll td { padding:10px; border-bottom:1px solid rgba(255,255,255,.14); text-align:left; font-size:.9rem; }
.table-scroll caption { text-align:left; color:#b8c9c5; margin-bottom:12px; }
.plate-map td,.plate-map th { text-align:center; }
.plate-map .standard { background:#205d52; color:#e2fff4; }
.plate-map .blank { background:#41433a; color:#ffe5a5; }
.plate-map .unused { color:#b8c9c5; }
.plan-screenshot { max-width:320px; margin:24px auto; }
.plan-screenshot img { width:100%; height:auto; border-radius:12px; }
.plan-screenshot figcaption { font-size:.9rem; line-height:1.6; color:#b8c9c5; }
