*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-950);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--ink-950); color: #fff; text-decoration: none; font-weight: 600; transition: top 0.15s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--green-400); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }

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

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 0.95rem; text-decoration: none; letter-spacing: 0.003em; white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 1.05rem; font-size: 0.875rem; }
.btn-primary { background: var(--ink-950); color: #fff; box-shadow: 0 10px 24px -12px rgba(3, 22, 16, 0.7); }
.btn-primary:hover { background: var(--green-800); }
.btn-ghost { background: rgba(255, 255, 255, 0.65); border-color: rgba(4, 20, 14, 0.2); color: var(--ink-950); }
.btn-ghost:hover { background: #fff; border-color: rgba(4, 20, 14, 0.45); }
.btn-accent { background: linear-gradient(135deg, var(--green-400), var(--mint-300)); color: var(--green-950); box-shadow: 0 14px 34px -14px rgba(62, 224, 143, 0.8); }
.btn-accent:hover { box-shadow: 0 18px 40px -12px rgba(62, 224, 143, 0.95); }
.btn-outline-light { background: rgba(255, 255, 255, 0.04); border-color: rgba(125, 244, 186, 0.55); color: #eafff3; }
.btn-outline-light:hover { background: rgba(125, 244, 186, 0.12); }

/* wordmark + brand lockup */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-950); }
.brand img { width: 42px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; line-height: 1; }
.wordmark .u { color: var(--green-600); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark .u { background: linear-gradient(90deg, #12a35a, #3ee08f); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.brand-tag { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-500); line-height: 1; white-space: nowrap; }
.on-dark .brand { color: #fff; }
.on-dark .wordmark .u { color: var(--mint-300); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .on-dark .wordmark .u { background: linear-gradient(90deg, #7df4ba, #c4ffe0); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.on-dark .brand-tag { color: rgba(232, 242, 239, 0.7); }
