Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

6.3 KB
Raw Blame
.feature-overview {
  width: min(780px, calc(100vw - 40px));
  margin-left: calc((100% - min(780px, 100vw - 40px)) / 2);
}
.feature-flow {
  position: relative;
  width: 100%;
  height: clamp(280px, 36vw, 370px);
  isolation: isolate;
}
.feature-flow-core {
  position: absolute;
  left: 48%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  color: var(--color-ink);

}
.feature-flow-core svg { width: 43px; height: 43px; }
.feature-flow-node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; }
.feature-flow-node > span { position: absolute; top: calc(100% + 12px); font-size: 13px; color: var(--color-ink-muted); white-space: nowrap; }
.feature-flow-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: var(--color-ink);
}
/* Share the homepage's translucent material in onboarding and during travel.
   The halo is already soft, so no live backdrop filters are needed. */
.feature-flow-icon,
.feature-flow-core {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--color-ink) 10%, transparent),
    color-mix(in srgb, var(--color-ink) 6%, transparent));
  backdrop-filter: none;
}
.feature-flow-core {
  background: color-mix(in srgb, var(--color-ink) 12%, transparent);
}
.feature-flow-icon svg { width: 27px; height: 27px; }
@media (max-width: 639px) {
  .feature-flow { height: 280px; }
  .feature-flow-core { width: 66px; height: 66px; }
  .feature-flow-core svg { width: 33px; height: 33px; }
  .feature-flow-icon { width: 54px; height: 54px; }
  .feature-flow-icon svg { width: 21px; height: 21px; }
  .feature-flow-node > span { font-size: 11px; top: calc(100% + 9px); }
}

/* Halo centers share the exact node coordinates, independently of icon surfaces. */
.feature-flow-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.feature-flow-halo {
  position: absolute;
  width: clamp(200px, 48vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--halo-color) 11%, transparent) 0%,
    color-mix(in srgb, var(--halo-color) 7%, transparent) 22%,
    color-mix(in srgb, var(--halo-color) 3%, transparent) 45%,
    transparent 72%);
}
.feature-flow-halo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
  mask-image: radial-gradient(circle, black 5%, transparent 70%);
}

.feature-flow-texture {
  position: absolute;
  opacity: .5;
  left: 50%;
  top: 50%;
  width: 150%;
  height: 190%;
  max-width: calc(100vw - 48px);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* Onboarding uses the chosen workspace accent and keeps every bubble interactive. */
.feature-overview .feature-flow-expanded { height: 380px; margin-top: 22px; }
.feature-overview .feature-flow-core { left: 50%; top: 49%; width: 88px; height: 88px; }
.feature-overview .feature-flow-icon { width: 54px; height: 54px; transition: background 180ms ease, box-shadow 180ms ease; }
.feature-overview .feature-flow-node > span { top: calc(100% + 9px); font-size: 12px; }
.feature-overview button.feature-flow-node { border: 0; padding: 0; background: transparent; border-radius: 50%; outline: none; }
.feature-overview button.feature-flow-node:hover .feature-flow-icon,
.feature-overview button.feature-flow-node[aria-pressed=true] .feature-flow-icon {
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--feature-accent) 22%, transparent),
    color-mix(in srgb, var(--feature-accent) 10%, transparent));
  box-shadow: var(--glass-shadow), inset 0 0 0 1px color-mix(in srgb, var(--feature-accent) 60%, transparent);
}
.feature-overview button.feature-flow-node:focus-visible .feature-flow-icon { outline: 2px solid var(--feature-accent); outline-offset: 4px; }
.feature-overview button.feature-flow-node[aria-pressed=true] > span { color: var(--feature-accent); }
.feature-overview .feature-flow-check {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--feature-accent);
  color: var(--color-surface);
}
.feature-overview .feature-flow-check svg { width: 12px; height: 12px; }
.feature-overview-description { min-height: 24px; }
.feature-overview .feature-flow-light { opacity: .28; }
@media (min-width: 640px) and (max-height: 800px) {
  [data-onboarding-hero]:has(.feature-overview) { padding-top: 76px; padding-bottom: 24px; }
  .feature-overview .feature-flow-expanded { height: 320px; margin-top: 12px; margin-bottom: -32px; }
  .feature-overview .feature-flow-icon { width: 48px; height: 48px; }
  .feature-overview .feature-flow-node > span { font-size: 11px; line-height: 14px; top: calc(100% + 7px); }
  .feature-overview header { margin-top: 8px; }
  .feature-overview h1 { font-size: 30px; }
  .feature-overview-description { margin-top: 16px; }
}
@media (max-width: 639px) {
  .feature-overview { width: 100%; margin-left: 0; overflow-x: clip; overflow-clip-margin: 24px; }
  .feature-overview .feature-flow-expanded { height: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; margin-top: 0; }
  .feature-overview .feature-flow-core { display: none; }
  .feature-overview button.feature-flow-node { position: relative; left: auto !important; top: auto !important; transform: none; gap: 7px; border-radius: 8px; }
  .feature-overview .feature-flow-icon { width: 44px; height: 44px; }
  .feature-overview .feature-flow-node > span { position: static; font-size: 10px; line-height: 14px; white-space: normal; }
  .feature-overview .feature-overview-description { min-height: 48px; }
}
@media (max-width: 359px) {
  .feature-overview h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-overview .feature-flow-icon { transition: none; }
}