/* ==========================================================================
   Snaptapp — design system
   Dark, technical, product-led. Palette is intentionally adjacent to the
   More or Less app tokens (client/lib/core/constants/app_colors.dart) so the
   studio site and the product read as one family.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Canvas & surfaces */
  --carbon-950: #07080b;
  --carbon-900: #0b0d13;
  --carbon-850: #11141c;
  --carbon-800: #161a24;
  --carbon-700: #1d222f;
  --border: #232838;
  --border-strong: #313850;

  /* Accents */
  --cyan: #22d3ee;
  --cyan-dark: #0e7490;
  --volt: #ccff00;
  --volt-dark: #8bae00;
  --purple: #a855f7;
  --red: #ff1e56;

  /* Text */
  --ink: #ffffff;
  --ink-2: #c3cadb;
  --ink-3: #8d95a9;
  --ink-4: #666d80;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text",
    "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --gap: 1.25rem;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1140px;
  --shell-narrow: 760px;
  --header-h: 68px;

  /* Effects */
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --gradient-brand: linear-gradient(96deg, var(--cyan) 0%, #7be0a4 46%, var(--volt) 100%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background-color: var(--carbon-950);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient studio glow. Fixed + non-interactive so it never blocks clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58rem 34rem at 12% -8%, rgba(34, 211, 238, 0.13), transparent 62%),
    radial-gradient(46rem 30rem at 92% 6%, rgba(204, 255, 0, 0.07), transparent 60%),
    radial-gradient(52rem 40rem at 50% 108%, rgba(168, 85, 247, 0.08), transparent 65%);
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  height: 1px;
  border: 0;
  margin: 3rem 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

::selection {
  background: rgba(204, 255, 0, 0.24);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--volt);
  color: #0a0c10;
  font-weight: 650;
  transition: top 0.18s var(--ease);
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Typography ---------- */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 640;
  line-height: 1.12;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.35rem, 1.35rem + 3.9vw, 4.15rem);
  letter-spacing: -0.033em;
  line-height: 1.03;
}

h2 {
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  letter-spacing: -0.027em;
}

h3 {
  font-size: clamp(1.13rem, 1.02rem + 0.42vw, 1.35rem);
}

h4 {
  font-size: 1rem;
  font-weight: 620;
}

p {
  margin: 0 0 1.1em;
}

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

strong {
  color: var(--ink);
  font-weight: 620;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.14em 0.42em;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--carbon-850);
  color: #d8dee9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.05rem, 0.99rem + 0.28vw, 1.2rem);
  color: var(--ink-2);
}

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--ink-3);
}

.small {
  font-size: 0.875rem;
}

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

/* ---------- 4. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.75rem, 8vw, 7rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--edge {
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 60ch;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.grid {
  display: grid;
  gap: var(--gap);
}

/* Explicit column counts rather than auto-fit: auto-fit resolves against the
   1140px shell and quietly produced 3 and 4 columns here, which orphaned the
   last card in a 4-item or 6-item set. */
.grid--2,
.grid--3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 46rem) {

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

@media (min-width: 62rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.stack>*+* {
  margin-top: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ---------- 5. Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 8, 11, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  color: var(--ink);
  font-weight: 660;
  font-size: 1.06rem;
  letter-spacing: -0.021em;
  flex: 0 0 auto;
}

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

.brand__mark {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

.brand__sub {
  color: var(--ink-4);
  font-weight: 450;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 0.62rem;
  margin-left: 0.1rem;
  border-left: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* :not(.btn) matters — a bare `.nav a` selector outranks `.btn--primary` on
   specificity and would repaint the CTA's label in muted grey on volt. */
.nav a:not(.btn) {
  padding: 0.46rem 0.72rem;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 0.925rem;
  font-weight: 500;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav a:not(.btn):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.nav a:not(.btn)[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--carbon-850);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.28rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.945rem;
  font-weight: 600;
  letter-spacing: -0.008em;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--volt);
  color: #0a0c10;
  box-shadow: 0 10px 26px -14px rgba(204, 255, 0, 0.6);
}

.btn--primary:hover {
  background: #d9ff3d;
  box-shadow: 0 14px 30px -14px rgba(204, 255, 0, 0.75);
}

.btn--secondary {
  background: var(--carbon-800);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--carbon-700);
  border-color: #3d4560;
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-2);
}

.btn--ghost:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
}

.btn__arrow {
  transition: transform 0.18s var(--ease);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 560;
}

.link-arrow svg {
  transition: transform 0.18s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
}

/* Must be a child of .shell, never combined with it: .shell centres its own
   max-width box, so putting a narrower max-width on the same element pushes the
   hero right and breaks the left alignment shared by every other section. */
.hero__inner {
  max-width: 54rem;
}

.hero .nowrap {
  white-space: nowrap;
}

.hero h1 {
  margin-bottom: 1.15rem;
}

.hero .lede {
  max-width: 54ch;
  font-size: clamp(1.08rem, 1rem + 0.42vw, 1.28rem);
}

.hero__actions {
  margin-top: 2.1rem;
}

/* Self-contained: the shared `ul` reset used to live after this block and
   silently flattened the margin-top/padding-top back to zero. */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.4rem;
  list-style: none;
  margin: 2.85rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.755rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.85;
}

.trust-strip a {
  color: inherit;
}

.trust-strip a:hover {
  color: var(--ink-2);
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.85rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(178deg, var(--carbon-850), var(--carbon-900));
  box-shadow: var(--shadow-card);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.card--hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.945rem;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--carbon-800);
  color: var(--cyan);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card__num {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--ink-4);
}

/* Product card — the flagship layout on / and /products/ */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.6rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(34rem 20rem at 100% 0%, rgba(204, 255, 0, 0.07), transparent 62%),
    linear-gradient(176deg, var(--carbon-850), var(--carbon-900));
  box-shadow: var(--shadow-card);
}

@media (min-width: 62rem) {
  .product {
    grid-template-columns: 8.5rem minmax(0, 1fr);
    align-items: start;
  }
}

.product__art {
  width: 8.5rem;
  max-width: 40vw;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--carbon-800);
  overflow: hidden;
}

.product__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.product__title h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
  letter-spacing: -0.026em;
}

.product__tagline {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--volt);
}

.product__meta {
  display: grid;
  gap: 1.15rem 2rem;
  margin: 1.6rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}

.product__meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 0.3rem;
}

.product__meta dd {
  margin: 0;
  font-size: 0.925rem;
  color: var(--ink);
}

/* Placeholder / upcoming product slot */
.card--empty {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.4rem;
  min-height: 11rem;
  border-style: dashed;
  border-color: #262c3d;
  background: rgba(17, 20, 28, 0.4);
  box-shadow: none;
  text-align: center;
}

/* ---------- 9. Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.24rem 0.62rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--carbon-800);
  font-family: var(--font-mono);
  font-size: 0.685rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--live {
  border-color: rgba(204, 255, 0, 0.42);
  background: rgba(204, 255, 0, 0.1);
  color: var(--volt);
}

.badge--soon {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
  color: #c99bff;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--live .dot {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.5);
  }

  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 5px rgba(204, 255, 0, 0);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  padding: 0.28rem 0.66rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.755rem;
  color: var(--ink-3);
}

/* ---------- 10. Stat / metric rows ---------- */
.stats {
  display: grid;
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.stats>div {
  padding: 1.45rem clamp(1.1rem, 2vw, 1.6rem);
  background: var(--carbon-900);
}

.stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.stats dd {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: clamp(1.28rem, 1.1rem + 0.7vw, 1.62rem);
  font-weight: 640;
  letter-spacing: -0.024em;
}

/* ---------- 11. CTA band ---------- */
.cta {
  position: relative;
  padding: clamp(2.1rem, 5vw, 3.4rem);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(38rem 22rem at 8% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(30rem 20rem at 98% 100%, rgba(204, 255, 0, 0.1), transparent 62%),
    linear-gradient(170deg, var(--carbon-850), var(--carbon-900));
  overflow: hidden;
}

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

.cta p {
  max-width: 52ch;
}

/* ---------- 12. Prose (legal + support pages) ---------- */
.prose {
  max-width: var(--shell-narrow);
}

.prose h2 {
  margin-top: 2.9rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--border);
  font-size: clamp(1.3rem, 1.1rem + 0.72vw, 1.6rem);
}

.prose h3 {
  margin-top: 2rem;
}

.prose>h2:first-of-type {
  margin-top: 2.4rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--cyan);
}

.prose dl {
  margin: 0 0 1.2em;
}

.prose dt {
  color: var(--ink);
  font-weight: 620;
  margin-top: 1.1em;
}

.prose dd {
  margin: 0.25em 0 0;
}

.prose table {
  width: 100%;
  margin: 0 0 1.5em;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--carbon-850);
  color: var(--ink);
  font-weight: 620;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 2.4rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--carbon-850);
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--ink-3);
  list-style: none;
}

.callout {
  margin: 1.6rem 0;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--cyan);
  border-radius: var(--radius-sm);
  background: var(--carbon-850);
  font-size: 0.93rem;
}

.callout strong {
  color: var(--cyan);
}

.toc {
  padding: 1.25rem 1.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--carbon-900);
  margin-bottom: 2.5rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  border: 0;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  columns: 2;
  column-gap: 2rem;
}

@media (max-width: 40rem) {
  .toc ol {
    columns: 1;
  }
}

/* ---------- 13. Contact list ---------- */
.contact-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 44rem) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 62rem) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.contact-card a {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 1.02rem;
  font-weight: 560;
  color: var(--ink);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--cyan);
}

.contact-card p {
  margin: 0.5rem 0 0;
  font-size: 0.885rem;
  color: var(--ink-3);
}

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--border);
  background: rgba(9, 11, 16, 0.6);
  padding-block: clamp(2.6rem, 5vw, 4rem) 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  margin-bottom: 2.6rem;
}

.footer-grid h2 {
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-grid a {
  color: var(--ink-2);
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-about p {
  max-width: 34ch;
  color: var(--ink-3);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.7rem;
  border-top: 1px solid var(--border);
  color: var(--ink-4);
  font-size: 0.83rem;
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom a {
  color: var(--ink-4);
}

.footer-bottom a:hover {
  color: var(--ink-2);
}

/* ---------- 15. Page header (subpages) ---------- */
.page-head {
  padding-block: clamp(2.6rem, 6vw, 4.6rem) clamp(1.5rem, 3vw, 2.4rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--ink-4);
}

.breadcrumb li+li::before {
  content: "/";
  margin-right: 0.45rem;
  color: #3a4258;
}

.breadcrumb a {
  color: var(--ink-3);
}

/* ---------- 15b. Spacing utilities ----------
   Small, named steps so no page needs an inline style attribute — that keeps
   the Content-Security-Policy at style-src 'self' with no unsafe-inline. */
.mt-xs {
  margin-top: 0.6rem;
}

.mt-sm {
  margin-top: 1.1rem;
}

.mt-md {
  margin-top: 1.55rem;
}

.mt-lg {
  margin-top: 1.95rem;
}

.mt-gap {
  margin-top: var(--gap);
}

.mb-0 {
  margin-bottom: 0;
}

/* ---------- 16. Reveal animation ---------- */
/* Content is visible by default so a blocked/failed script never hides the
   page. boot.js swaps .no-js -> .js before first paint, which is the only
   thing that arms the hidden start state. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. Responsive nav ---------- */
@media (max-width: 54rem) {
  .brand__sub {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.85rem clamp(1.1rem, 4vw, 2rem) 1.35rem;
    /* Fully opaque: at 97% the hero headline ghosted through the open panel. */
    background: var(--carbon-950);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 22px 40px -20px rgba(0, 0, 0, 0.9);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.72rem 0.75rem;
    font-size: 1rem;
  }

  .nav .btn {
    margin-top: 0.5rem;
    justify-content: center;
  }

  .site-header {
    position: sticky;
    background: rgba(7, 8, 11, 0.86);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
  }

  .site-header__inner {
    position: relative;
  }
}

@media (max-width: 30rem) {

  .hero__actions .btn,
  .cta .btn {
    width: 100%;
  }
}

/* ---------- 18. Print (legal pages get printed / attached to filings) ---------- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  body::before,
  .site-header,
  .site-footer,
  .cta,
  .skip-link {
    display: none !important;
  }

  .prose {
    max-width: none;
  }

  /* Scroll reveals never fire when printing — force them visible so a printed
     or PDF-exported page is not blank below the fold. */
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
  }
}