@font-face {
  font-family: Figtree;
  src: url('assets/fonts/figtree.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/geist-mono.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Figtree, system-ui, sans-serif;
  --ink: #130e26;
  --canvas: #fef9ff;
  --paper: #fff;
  --muted: #635b71;
  --border: #e6dfe9;
  --hairline: #eee8ef;
  --soft-ink: #40364c;
  --magenta: #ff29b8;
  --teal: #00a9ba;
  --orange: #ff9e17;
  --mono: 'Geist Mono', ui-monospace, monospace;
  background: var(--canvas);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; min-height: 100vh; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, .prompt:focus-visible { outline: 2px solid #a547b0; outline-offset: 3px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.demo-page {
  position: relative;
  max-width: 1220px;
  margin-inline: auto;
  padding: 48px 42px 42px;
  isolation: isolate;
}

.demo-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 470px;
  pointer-events: none;
  background-image: radial-gradient(#130e2625 .75px, transparent .75px),
    radial-gradient(56% 75% at 12% 0%, #00a9ba18, transparent 72%),
    radial-gradient(62% 72% at 83% 12%, #ff29b818, transparent 75%),
    radial-gradient(48% 60% at 69% 38%, #ff9e171d, transparent 75%);
  background-size: 14px 14px, auto, auto, auto;
  mask-image: radial-gradient(ellipse 72% 75% at 50% 20%, #000, transparent 90%);
}

.demo-intro { margin: 0 0 27px; text-align: center; }
.demo-intro h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.demo-intro h1 span {
  background-image: linear-gradient(90deg, #00818d, #cc238c 53%, #b86009);
  background-clip: text;
  color: transparent;
}
.demo-intro p {
  max-width: 545px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: balance;
}

.zeer-widget {
  overflow: hidden;
  min-width: 0;
  border: 1px solid #ded4e2;
  border-radius: 19px;
  background: var(--paper);
  box-shadow: 0 2px 3px #130e2608, 0 18px 48px #130e2610;
}

.widget-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 10px 17px;
  border-bottom: 1px solid var(--border);
}

.widget-brand, .widget-controls { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-logo { flex: 0 0 auto; display: block; width: 97px; height: auto; }
.toolbar-divider { width: 1px; height: 17px; background: var(--border); }
.brand-product { color: var(--muted); font-size: 13px; font-weight: 550; }
.example-tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e8e0ec;
  border-radius: 9px;
  background: #f7f3f8;
}
.example-tabs button {
  min-width: 64px;
  height: 31px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.example-tabs button:hover { color: var(--ink); }
.example-tabs button[aria-selected="true"] {
  border-color: #e2d9e7;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px #130e2610;
}
.replay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 39px;
  padding-inline: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}
.replay-button:hover { background: #faf5fb; color: var(--ink); }
.replay-icon { font-size: 18px; font-weight: 400; line-height: 1; }

.editor {
  overflow: hidden;
  margin: 14px 14px 0;
  border: 1px solid #454545;
  border-radius: 12px;
  background: #303030;
  color: #f2f2f2;
  box-shadow: 0 5px 14px #00000024;
}

[data-state]:not([data-state="complete"]) .editor { margin-bottom: 14px; }

.editor-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding-inline: 13px;
  border-bottom: 1px solid #414141;
  background: #1f1f1f;
}

.terminal-lights { display: flex; align-items: center; gap: 6px; }
.terminal-lights span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-lights span:nth-child(1) { background: #ff5e59; }
.terminal-lights span:nth-child(2) { background: #f9ba3c; }
.terminal-lights span:nth-child(3) { background: #2ac753; }
.terminal-title { color: #d7d7d7; font: 11px var(--mono); white-space: nowrap; }
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 6px;
  min-height: 30px;
  padding-inline: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #c5c5c5;
  font-size: 12px;
  white-space: nowrap;
}
.copy-button:hover { color: #fff; }
.copy-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 9px;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.copy-icon::after {
  content: '';
  position: absolute;
  inset: -4px -4px 2px 2px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  border-radius: 2px;
}

.editor-compose {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 16px 17px 0;
  color: #ededed;
  font: 13px / 1.8 var(--mono);
}

.editor-prompt-mark { color: #ff9bdc; }
.prompt { min-width: 0; min-height: 4.6em; overflow-wrap: anywhere; border-radius: 2px; }
.prompt-caret {
  display: none;
  width: 7px;
  height: 1.12em;
  margin-left: 3px;
  border-radius: 1px;
  vertical-align: -.18em;
  background: #ff87d5;
}
[data-state="typing"] .prompt-caret, [data-state="idle"] .prompt-caret {
  display: inline-block;
  animation: caret-blink .8s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.editor-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 8px 13px 12px;
}
.editor-hint { color: #c5c5c5; font-size: 11px; white-space: nowrap; }
.editor-hint kbd { padding: 3px 5px; border: 1px solid #6b6b6b; border-radius: 4px; font: 10px var(--mono); }
.run-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 13px;
  min-width: 126px;
  min-height: 36px;
  padding: 0 10px 0 12px;
  border: 1px solid #f9d4ee;
  border-radius: 7px;
  background: #fdf5fc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.run-button:hover:not(:disabled) { background: #ffeaf9; }
.run-button:disabled { border-color: #5a5a5a; background: #414141; color: #e9e9e9; }
[data-state="submitting"] .run-button { background: #fce7f7; color: var(--ink); animation: press .14s ease-in-out; }
@keyframes press { 50% { scale: .96; } }
.run-arrow { padding-left: 7px; border-left: 1px solid currentColor; font-size: 14px; line-height: 15px; }

.terminal-progress {
  padding: 11px 17px 14px;
  border-top: 1px solid #454545;
  background: #282828;
  animation: terminal-progress-in .22s ease-out both;
}
.terminal-progress h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #eeeeee;
  font: 11px var(--mono);
}
.loading-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid #6b6b6b;
  border-right-color: #ff9bdc;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
@keyframes terminal-progress-in { from { opacity: 0; translate: 0 -3px; } }
.loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.loading-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #b9b9b9;
  font: 10px var(--mono);
}
.loading-steps li::before { content: '○'; width: 10px; color: #aa95b7; text-align: center; }
.loading-steps li[data-active] { color: #fdf6ff; }
.loading-steps li[data-active]::before { content: '◉'; color: #ff91d6; }
.loading-steps li[data-done]::before { content: '✓'; color: #6ce1df; }

.result-zone { padding: 14px; }
.result-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(248px, 300px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 19px #2711360c;
}

.audience-overview {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 24px 14px;
  border-right: 1px solid var(--border);
  background: #fcfafc;
}

.summary-label { color: var(--muted); font-size: 12px; font-weight: 600; }

.audience-overview h2 {
  margin: 6px 0 14px;
  font-size: 24px;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.audience-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-bottom: 12px; }
.audience-stat strong {
  font-size: 34px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.audience-stat span { color: var(--muted); font-size: 13px; font-weight: 500; }

.audience-overview p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-wrap: pretty;
}

.summary-groups { margin: auto 0 0; padding-top: 22px; }
.summary-groups div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.summary-groups dt { color: var(--soft-ink); font-size: 13px; font-weight: 500; }
.summary-groups dd { margin: 0; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

.contacts { container: contacts / inline-size; min-width: 0; padding: 0 24px; }
.contacts-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.contacts-header h2 { margin: 0; color: inherit; font: inherit; }
.column-label { display: none; }
.contact-count { font-weight: 500; white-space: nowrap; }
.contact-list { margin: 0; padding: 0; list-style: none; }

.contact {
  --avatar: 40px;
  --person-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "person" "signal";
  gap: 10px 24px;
  min-width: 0;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.person { grid-area: person; display: flex; align-items: flex-start; gap: var(--person-gap); min-width: 0; }
.person-info { min-width: 0; }
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 var(--avatar);
  width: var(--avatar);
  height: var(--avatar);
  overflow: hidden;
  border-radius: 50%;
  background: #f4eaf7;
  color: #744881;
  font-size: 13px;
  font-weight: 650;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar::after, .company-mark::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #130e261a;
  content: '';
}
.person-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-decoration: none;
}
.person-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-arrow {
  display: inline-block;
  margin-left: 5px;
  color: #9a8da3;
  font-size: 11px;
  text-decoration: none;
  transition: translate .16s ease-out, color .16s ease-out;
}
.person-name:hover .profile-arrow { color: var(--ink); translate: 1px -1px; }
.job-title { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }

.person-company {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-top: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.company-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-mark {
  --mark: 28px;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--mark);
  height: var(--mark);
  overflow: hidden;
  border-radius: 7px;
  background: #fff;
}
.company-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.company-mark[data-bundled] { padding: 3px; }
.company-mark[data-bundled="wide"] { width: auto; max-width: calc(var(--mark) * 2.4); padding-inline: 5px; }
.company-mark[data-bundled="wide"] img { width: auto; max-width: 100%; }

.signal { grid-area: signal; min-width: 0; padding-left: calc(var(--avatar) + var(--person-gap)); }
.signal-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.signal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.signal-tag::before { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); content: ''; }
.signal-tag[data-kind="web"]::before { background: var(--teal); }
.track-tag {
  padding: 2px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.signal p { margin: 6px 0 0; color: var(--soft-ink); font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.signal strong { color: var(--ink); font-weight: 650; }

@container contacts (min-width: 520px) {
  .contact, .contacts-header {
    display: grid;
    grid-template-columns: minmax(200px, .8fr) minmax(0, 1.3fr);
    column-gap: 24px;
  }
  .contacts-header > * { grid-row: 1; }
  .column-label { display: block; }
  .column-label, .contact-count { grid-column: 2; }
  .contact-count { justify-self: end; }
  .contact { grid-template-areas: "person signal"; }
  .signal { padding-left: 0; }
}

@container contacts (min-width: 800px) {
  .contact, .contacts-header { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.9fr); column-gap: 32px; }
  .contact { --avatar: 44px; }
}

.result-content.is-revealing { animation: show-panel .46s cubic-bezier(.18,.78,.24,1) both; }
.is-revealing .contact { animation: show-record .32s ease-out both; animation-delay: calc(85ms + 68ms * var(--row-number)); }
@keyframes show-panel { from { opacity: 0; translate: 0 14px; scale: .985; } to { opacity: 1; translate: 0; scale: 1; } }
@keyframes show-record { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0; } }

.widget-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 8px 15px;
  border-top: 1px solid var(--border);
  background: #fcf9fc;
  color: var(--muted);
  font: 10px var(--mono);
}
.footer-source { display: inline-flex; align-items: center; gap: 6px; }
.source-dot { width: 6px; height: 6px; border-radius: 50%; background: #a99aae; }
[data-state="complete"] .source-dot { background: #00868c; }
.footer-status { white-space: nowrap; }
.no-script { margin: 8px 15px; }

html.is-embed { background: transparent; }
.is-embed .demo-page { width: 100%; max-width: none; padding: 0; }
.is-embed .demo-intro, .is-embed .demo-page::before { display: none; }
.is-embed .zeer-widget { box-shadow: none; }

@media (max-width: 880px) {
  .demo-page { padding: 36px 25px 36px; }
  .result-content { grid-template-columns: minmax(0, 1fr); }
  .audience-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
    column-gap: 40px;
    align-items: end;
    padding: 20px 20px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .audience-overview > * { grid-column: 1; }
  .audience-overview p { padding-bottom: 10px; }
  .summary-groups { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; }
  .summary-groups div:first-child { border-top: 0; }
  .contacts { padding-inline: 20px; }
}

@media (max-width: 650px) {
  .demo-page { padding: 27px 12px 25px; }
  .demo-intro { margin-bottom: 18px; }
  .demo-intro h1 { font-size: clamp(32px, 10vw, 49px); }
  .demo-intro p { margin-top: 8px; font-size: 13px; }
  .zeer-widget { border-radius: 14px; }
  .widget-toolbar { min-height: 54px; padding: 7px 9px; gap: 7px; }
  .widget-brand, .widget-controls { gap: 6px; }
  .brand-logo { width: 78px; }
  .toolbar-divider, .brand-product, .replay-label { display: none; }
  .example-tabs button { min-width: 50px; padding-inline: 7px; }
  .replay-button { width: 35px; padding: 0; }
  .editor { margin: 9px 9px 0; }
  [data-state]:not([data-state="complete"]) .editor { margin-bottom: 9px; }
  .editor-bar { min-height: 38px; padding-inline: 10px; }
  .terminal-lights { gap: 5px; }
  .terminal-lights span { width: 9px; height: 9px; }
  .terminal-title { font-size: 10px; }
  .copy-button { font-size: 11px; }
  .editor-compose { grid-template-columns: 11px minmax(0, 1fr); gap: 6px; padding: 10px 12px 0; font-size: 12px; line-height: 1.6; }
  .prompt { min-height: 8em; }
  .terminal-progress { padding-inline: 11px; }
  .loading-steps { gap: 5px 9px; }
  .result-zone { padding: 9px; }
  .audience-overview { display: flex; align-items: stretch; padding: 16px 16px 6px; }
  .audience-overview h2 { font-size: 22px; }
  .audience-overview p { padding-bottom: 0; }
  .summary-groups { margin-top: 16px; }
  .summary-groups div:first-child { border-top: 1px solid var(--border); }
  .contacts { padding-inline: 16px; }
  .widget-footer { padding-inline: 9px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .zeer-widget *, .zeer-widget *::before, .zeer-widget *::after { animation: none !important; }
}

@media (forced-colors: active) {
  .demo-intro h1 span { color: CanvasText; }
}
