/* SPDX-License-Identifier: LicenseRef-BitGab-Proprietary */

:root {
  color-scheme: dark;

  --bg: #0b0d0c;
  --bg-deep: #090b0a;
  --bg-panel: #141815;
  --bg-code: #0a0c0b;
  --line: #2a312b;
  --line-strong: #3f4a41;
  --line-button: #5b6a5f;

  --text: #eef2ee;
  --text-muted: #b8c2ba;
  --text-dim: #a9b4ab;

  --mint: #8fd8b2;
  --mint-bright: #b5efce;
  --mint-dim: #2f5a45;
  --focus: #b5efce;

  --amber-text: #f1d9a6;
  --amber-strong: #ffe9bd;
  --amber-line: #6a5730;
  --amber-bg: #1a160d;

  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 76rem;
  --measure: 68ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(70rem 34rem at 50% -18rem, rgba(143, 216, 178, 0.055), transparent 72%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mint);
  color: #08110b;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.022em;
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 1.55rem + 3vw, 3.6rem);
  letter-spacing: -0.032em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 1.2rem + 1.1vw, 2rem);
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  max-width: var(--measure);
}

li {
  margin: 0.3rem 0;
}

li::marker {
  color: var(--mint);
}

strong {
  color: var(--text);
  font-weight: 650;
}

a {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(143, 216, 178, 0.58);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mint-bright);
  text-decoration-color: currentColor;
}

:where(a, summary, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

main:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: -5rem;
  left: 1rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--mint);
  border-radius: 2px;
  background: var(--bg-deep);
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

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

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 12, 0.9);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 0.8rem;
  height: 0.8rem;
  border: 1px solid var(--mint);
  background: linear-gradient(135deg, var(--mint) 0 46%, transparent 46% 100%);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.925rem;
}

.site-nav a {
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  border-bottom-color: var(--line-strong);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--mint);
  color: var(--text);
}

/* Type helpers */

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.fine {
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.55;
}

.note {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mono {
  font-family: var(--mono);
}

/* Hero and page heads */

.hero {
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  max-width: 25ch;
}

.hero .lede {
  max-width: 56ch;
  margin-top: 1.35rem;
}

.hero .fine {
  margin-top: 1.4rem;
}

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.page-head h1 {
  max-width: 24ch;
}

.page-head .lede {
  max-width: 62ch;
  margin-top: 1rem;
}

/* Actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.05rem;
  border: 1px solid var(--line-button);
  border-radius: 2px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 620;
  text-align: center;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button:hover {
  border-color: var(--mint);
  color: var(--text);
  text-decoration: none;
}

.button-primary {
  border-color: var(--mint);
  background: var(--mint);
  color: #08110b;
}

.button-primary:hover {
  border-color: var(--mint-bright);
  background: var(--mint-bright);
  color: #08110b;
}

/* Sections */

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head .lede {
  margin: 0.65rem 0 0;
}

/* Tables */

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

caption {
  padding: 0 0 0.7rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  text-align: left;
}

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

thead th {
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

tbody th {
  width: 34%;
  color: var(--text);
  font-weight: 600;
}

td {
  color: var(--text-muted);
  font-size: 0.975rem;
}

td strong {
  color: var(--text);
}

td code {
  color: var(--text);
  overflow-wrap: anywhere;
}

.facts tbody th {
  width: 42%;
}

.facts td {
  overflow-wrap: anywhere;
}

/* Boundary and notices */

.boundary {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--mint);
  background:
    linear-gradient(180deg, rgba(143, 216, 178, 0.06), transparent 65%),
    var(--bg-panel);
}

.boundary h2 {
  max-width: 30ch;
}

.boundary p {
  color: var(--text-muted);
}

.notice {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--amber-line);
  background: var(--amber-bg);
}

.notice p {
  max-width: none;
  color: var(--amber-text);
}

.notice strong {
  color: var(--amber-strong);
}

.contact-card {
  margin: 1.5rem 0 2rem;
  padding: 1.5rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
}

.contact-card h2 {
  font-size: 1.25rem;
}

.contact-card .email {
  font-family: var(--mono);
  font-size: 1.02rem;
}

/* Cards and grids */

.grid-2,
.grid-3,
.pricing-grid,
.product-line {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

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

.card,
.price-card,
.product-line article {
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.card p,
.product-line article p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.card p:last-child,
.product-line article p:last-child {
  margin-bottom: 0;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.price-card-primary {
  border-color: var(--mint-dim);
}

.price-card .button {
  align-self: flex-start;
  margin-top: 1.1rem;
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin: 0.8rem 0;
}

.price-amount {
  color: var(--text);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}

.price-unit {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.price-card p {
  color: var(--text-muted);
  font-size: 0.975rem;
}

.product-line article h3 {
  color: var(--text);
}

.subhead {
  margin-top: 2rem;
}

/* Numbered steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  max-width: none;
}

.steps li {
  position: relative;
  margin: 0;
  padding: 1.25rem 0 1.25rem 3rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.steps li::before {
  position: absolute;
  top: 1.38rem;
  left: 0;
  color: var(--mint);
  font-family: var(--mono);
  font-size: 0.8rem;
  content: counter(step, decimal-leading-zero);
}

.steps p {
  color: var(--text-muted);
}

/* Details / FAQ */

details {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

summary {
  position: relative;
  padding-right: 2rem;
  color: var(--text);
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--mint);
  font-family: var(--mono);
  content: "+";
}

details[open] summary::after {
  content: "\2212";
}

details p,
details ul {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

/* Code and hashes */

pre {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-code);
  color: #d9e5dc;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-x: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

pre code {
  color: inherit;
  font-family: inherit;
}

:not(pre) > code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.fingerprint {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.header-value {
  color: #d9e5dc;
  font-family: var(--mono);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  padding-block: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--text-muted);
  font-size: 0.925rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: var(--text-dim);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.8rem;
  max-width: none;
}

.footer-meta code {
  color: var(--text-muted);
  font-family: var(--mono);
}

/* Responsive */

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .pricing-grid,
  .product-line,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
  }

  .boundary {
    padding: 1.25rem;
  }
}

@media (max-width: 520px) {
  th,
  td {
    padding: 0.68rem 0.5rem;
  }

  td {
    font-size: 0.94rem;
  }

  tbody th {
    width: 38%;
  }

  .facts tbody th {
    width: 44%;
  }

  .price-amount {
    font-size: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
