/* ChatNab — base.
   Type scale and container copied exactly from montra (the base DNA):
   container 1260 (1200 + 30 gutters), section rhythm 200px, display 100/100/-1.4px. */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;   /* digits line up in prices, timers, counts */
  font-size: 1.125rem;          /* 18 */
  line-height: 1.3;             /* 23.4 */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* the page's own colour changes once, at §03; everything else inherits it */
  transition: background-color .35s var(--ease-flip), color .35s var(--ease-flip);
}

img, svg, canvas, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1260px; margin-inline: auto; padding-inline: 30px; }
.section { padding-block: 200px; position: relative; scroll-margin-top: 92px; }
.section--tight { padding-block: 120px; }

/* ---------- type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7.4vw, 6.25rem);   /* -> 100px */
  line-height: 1;
  letter-spacing: -0.014em;                  /* -1.4px at 100 */
  margin: 0;
}
h2, .h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);         /* 48 */
  line-height: 1.2; letter-spacing: -0.021em; margin: 0;
}
h3, .h3 { font-family: var(--font-display); font-weight: 600;
          font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
.h3-lg { font-family: var(--font-display); font-weight: 600;
         font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h4, .h4 { font-family: var(--font-display); font-weight: 600;
          font-size: 1.5rem; line-height: 1.2; margin: 0; }
p { margin: 0; }
.lede { font-size: 1.375rem; line-height: 1.45; color: var(--ink-body); max-width: 46ch; }
.body-sm { font-size: .875rem; line-height: 1.3; }
.mono { font-variant-numeric: tabular-nums; }

/* montra's rule: the eyebrow is a pill, and it is never set in caps */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; line-height: 1.3; color: var(--ink-body);
  background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--r-pill); padding: .4rem .85rem;
}
.eyebrow .dot {
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
  position: relative;
}
/* verteal's live pulse, exactly: 2.2s ease-out infinite, completing at 70% */
.eyebrow .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent); animation: cn-pulse 2.2s ease-out infinite;
}
@keyframes cn-pulse {
  0%   { opacity: .5; transform: scale(.7); }
  70%  { opacity: 0;  transform: scale(1.7); }
  100% { opacity: 0;  transform: scale(1.7); }
}

/* ---------- buttons: montra's clipped duplicate-label swap ---------- */
.btn {
  --btn-bg: var(--accent);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 44px; border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--ink-inverse);
  font-weight: 500; cursor: pointer; overflow: hidden;
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn:hover { box-shadow: 0 0 0 6px var(--accent-glow); }
.btn__label { display: block; height: 1.3em; overflow: hidden; }
/* the throw distance IS the gap — montra ships the same value */
.btn__label span { display: flex; flex-direction: column; gap: 30px;
                   transition: transform .45s var(--ease-swap); }
/* one line and one gap — -100% of the whole stack overshot the second copy and
   left the button empty on hover */
.btn__label i { display: block; height: 1.3em; line-height: 1.3em; font-style: normal; }
.btn:hover .btn__label span { transform: translateY(calc(-1.3em - 30px)); }
.btn--ghost { --btn-bg: transparent; color: var(--ink);
              box-shadow: inset 0 0 0 1px var(--surface-2); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink-faint); }

.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* ---------- reveal (verteal M01-a): opacity, y16, blur 8 -> 0 ----------
   Gated on .js: without it the copy is simply visible. An opacity:0 that only
   JS can undo means one stalled script leaves the page unreadable. */
.js .rv { opacity: 0; transform: translateY(16px); filter: blur(8px); }
.rv.is-in { opacity: 1; transform: none; filter: none;
            transition: opacity .8s var(--ease-out), transform .8s var(--ease-out),
                        filter .8s var(--ease-out); }

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

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; filter: none; }
  .eyebrow .dot::after { animation: none; opacity: 0; }
  .btn__label span { transition: none; }
  body { transition: none; }
}

@media (max-width: 860px) {
  .section { padding-block: 110px; }
  .wrap { padding-inline: 20px; }
}
