/* PRD-719 roam.com landing pages — dedicated, self-contained stylesheet.
   No Bootstrap, no shared app.scss. Bundled standalone by esbuild (see build.js). */

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/roam-com/fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/roam-com/fonts/ibm-plex-mono/IBMPlexMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/roam-com/fonts/ibm-plex-mono/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --roam-com-font: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Desktop margins (design/home-desktop/spec-v2.md section 1): uniform 80px
     all sides. Mobile values below the 768px breakpoint override these. CSS
     custom properties can't be read inside an @media condition, so the
     breakpoint itself must stay hardcoded at 768px wherever it's used below. */
  --roam-com-margin-top: 80px;
  --roam-com-margin-right: 80px;
  --roam-com-margin-bottom: 80px;
  --roam-com-margin-left: 80px;

  --roam-com-nav-gap: 16px;
  --roam-com-nav-color: rgba(255, 255, 255, 0.8);
  --roam-com-nav-color-hover: rgba(255, 255, 255, 1);
  --roam-com-caret-color: rgba(255, 255, 255, 0.6);
  --roam-com-scrim-color: rgba(0, 0, 0, 0.4);
  --roam-com-scrim-mid-color: rgba(0, 0, 0, 0.3);

  /* Consumed by web/assets/js/roam_com/typewriter.js's injected caret element.
     Review feedback calls for a classic floating terminal cursor: a subtle
     overshoot above and below IBM Plex Mono's cap-height-to-baseline box. */
  --roam-typewriter-caret-width: 2px;
  --roam-typewriter-caret-height: 16px;
  --roam-typewriter-caret-bottom: -2px;
  --roam-typewriter-caret-gap: 2px;
  --roam-typewriter-caret-color: var(--roam-com-caret-color);
}

@keyframes roam-typewriter-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.roam-typewriter__caret {
  display: inline-block;
  position: relative;
  width: 0;
  height: 0;
  vertical-align: baseline;
  pointer-events: none;
}

.roam-typewriter__caret::before {
  content: "";
  position: absolute;
  left: var(--roam-typewriter-caret-gap, 2px);
  bottom: var(--roam-typewriter-caret-bottom, -2px);
  width: var(--roam-typewriter-caret-width, 2px);
  height: var(--roam-typewriter-caret-height, 16px);
  background: var(--roam-typewriter-caret-color, rgba(255, 255, 255, 0.6));
  animation: roam-typewriter-caret-blink var(--roam-typewriter-caret-blink-duration, 1s) steps(1, end) infinite;
}

.roam-typewriter__caret[data-state="typing"]::before {
  opacity: 1;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .roam-typewriter__caret::before {
    opacity: 1;
    animation: none;
  }
}

@media (max-width: 768px) {
  :root {
    --roam-com-margin-top: 88px;
    --roam-com-margin-right: 40px;
    --roam-com-margin-bottom: 48px;
    --roam-com-margin-left: 40px;
  }
}

* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  /* Oversized decorative scrims must not create sideways page overflow. */
  overflow-x: hidden;
  overflow-x: clip;
  background: #000;
}

body.roam-com {
  font-family: var(--roam-com-font);
  overflow-y: auto;
  overscroll-behavior: none;
}

.roam-com a {
  text-decoration: none;
}

.roam-com-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Global darkening scrim above the video, below all content (design spec:
   full-frame solid black @60%, present on every frame). Distinct from the
   local blurred scrims behind each bottom-anchored text block. */
.roam-com-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.roam-com-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  /* Clip scrim paint to the hero, which still grows with real page content. */
  overflow: hidden;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--roam-com-margin-top) var(--roam-com-margin-right) var(--roam-com-margin-bottom) var(--roam-com-margin-left);
}

.roam-com-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.roam-com-logo img {
  display: block;
  width: 67px;
  height: 14px;
}

.roam-com-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--roam-com-nav-gap);
}

.roam-com-nav a {
  font-family: var(--roam-com-font);
  font-weight: 500;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.23px;
  text-transform: uppercase;
  color: var(--roam-com-nav-color);
  white-space: nowrap;
  cursor: pointer;
}

.roam-com-nav a:hover {
  color: var(--roam-com-nav-color-hover);
}

.roam-com-content {
  position: relative;
}

.roam-com-content--home {
  width: max-content;
}

.roam-com-content--company {
  width: 720px;
}

.roam-com-content--contact {
  width: 400px;
}

@media (max-width: 768px) {
  .roam-com-content--home {
    width: 240px;
  }

  .roam-com-content--company,
  .roam-com-content--contact {
    width: 100%;
  }
}

/* Local feathered legibility scrim behind each bottom-anchored text block —
   not a global overlay (design spec: z-order/overlays section). A filtered
   translucent rectangle exposes its compositing bounds over video in Safari,
   so use an oversized alpha-fading gradient instead of filter: blur(). */
.roam-com-scrim {
  position: absolute;
  inset: -80px;
  z-index: 0;
  background: radial-gradient(
    ellipse at center,
    var(--roam-com-scrim-color) 0%,
    var(--roam-com-scrim-mid-color) 45%,
    rgba(0, 0, 0, 0) 75%
  );
  pointer-events: none;
}

.roam-com-content--company .roam-com-scrim,
.roam-com-content--contact .roam-com-scrim {
  inset: -120px;
}

.roam-com-headline {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--roam-com-font);
  font-weight: 500;
  font-size: 17px;
  line-height: 30px;
  letter-spacing: -0.43px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .roam-com-headline {
    white-space: normal;
  }
}

.roam-com-stanzas,
.roam-com-contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.roam-com-stanza {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.roam-com-heading,
.roam-com-body,
.roam-com-divider {
  margin: 0;
  font-family: var(--roam-com-font);
  font-size: 17px;
  line-height: 26px;
  letter-spacing: -0.43px;
  text-transform: uppercase;
}

.roam-com-heading {
  font-weight: 600;
  color: #ffffff;
}

.roam-com-body {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.roam-com-body a {
  color: inherit;
}

.roam-com-divider {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
}
