/* The website's stylesheet. Colours, type and spacing are named once here;
   the pages only use the names. The sample product has its own file,
   site/sample/crm.css; the build joins every .css under site/ into one. */

:root {
  /* Ink and paper: near-black on white, greys are the ink at lower strength. */
  --ink: #171717;
  --ink-2: rgba(23, 23, 23, .72);      /* body text */
  --ink-3: rgba(23, 23, 23, .55);      /* quiet text, labels */
  --rule: rgba(23, 23, 23, .12);       /* borders */
  --rule-soft: rgba(23, 23, 23, .07);
  --paper: #ffffff;
  --paper-2: #fafafa;                  /* soft bands and panels */
  --night: #171717;                    /* dark bands */
  --night-2: #0b0b0b;

  /* One warm accent, plus the colours charts and status use. */
  --orange: #ea863f;
  --orange-deep: #d67a3b;
  --green: #2fa86b;
  --green-deep: #23764b;
  --blue: #4679f2;
  --sky: #4ebcfc;
  --purple: #a369ea;
  --red: #f84747;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;   /* the sample product's type */

  --page: 1100px;                      /* the widest a page gets */
  --gutter: clamp(16px, 8vw, 128px);    /* room at the sides */
  --gap: clamp(72px, 10vw, 128px);     /* between sections */
  --radius: 10px;
  --radius-lg: 16px;

  --shadow: 0 1px 2px rgba(23, 23, 23, .04), 0 12px 32px -12px rgba(23, 23, 23, .14);

  /* The dot texture: the accent as a fine halftone. */
  --dots: radial-gradient(circle, rgba(234, 134, 63, .55) 1.1px, transparent 1.7px) 0 0 / 7px 7px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 400; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap, .nav-in, .foot-in { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }

.rotate { display: inline-block; }
.rotate.out { opacity: 0; filter: blur(3px); transition: opacity .18s, filter .18s; }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* A placeholder: a logo, a number or a name to fill in before going live. */
.ph { outline: 1.5px dashed var(--orange); outline-offset: 3px; border-radius: 4px; color: var(--orange-deep); }

/* ── Buttons and links ─────────────────────────────────────────────────── */

.button {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius);
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: background .15s, border-color .15s, transform .15s;
}
.button:hover { background: #333; border-color: #333; }
.button:active { transform: scale(.98); }
.button .arrow { transition: transform .15s; }
.button:hover .arrow { transform: translateX(2px); }
.button.quiet { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--rule); backdrop-filter: blur(6px); }
.button.quiet:hover { background: var(--paper-2); border-color: rgba(23, 23, 23, .22); }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; }
.button.orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.button.orange:hover { background: #f0975a; border-color: #f0975a; }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.button.ghost:hover { background: rgba(255, 255, 255, .08); }

.more { display: inline-flex; gap: 6px; margin-top: 28px; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.more:hover { text-decoration-color: currentColor; }

/* ── Top bar ───────────────────────────────────────────────────────────── */

.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--rule); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: block; flex: none; text-decoration: none; }
.logo img { height: 26px; width: auto; }
.nav-link { text-decoration: none; color: var(--ink); transition: color .15s; }
.nav-link:hover { color: var(--orange); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
/* The badge sits with the buttons, just before Try a live demo. */
.hunt { display: block; flex: none; line-height: 0; transition: opacity .15s; }
.hunt img { height: 38px; width: auto; }
.hunt:hover { opacity: .85; }
/* On a phone the badge goes. */
@media (max-width: 760px) { .hunt { display: none; } }

/* ── Hero and the live demo ────────────────────────────────────────────── */

.hero { position: relative; text-align: center; }
.hero::before {           /* the halftone glow behind the headline and demo */
  content: ""; position: absolute; inset: 120px 0 auto; height: 900px; z-index: -1; background: var(--dots);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 10%, transparent 70%);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The frame: thin rules down both sides, as the opening section's edges. */
.hero-frame { border-inline: 1px solid var(--rule); padding: clamp(40px, 6vw, 72px) clamp(0px, 4vw, 56px) 0; }

/* The opening card: dark, the headline over a blurred product screen. */
.hero-card { position: relative; isolation: isolate; overflow: hidden; max-width: 860px; margin-inline: auto; min-height: clamp(380px, 42vw, 480px); display: grid; place-items: center; border-radius: 20px; background: var(--night); box-shadow: 0 40px 90px -40px rgba(23, 23, 23, .55), 0 0 0 1px rgba(23, 23, 23, .06); }
.hero-shot { position: absolute; inset: 18px; z-index: -1; display: grid; grid-template-columns: 20% 1fr 26%; gap: 14px; filter: blur(9px); opacity: .7; }
.hero-shot .side { border-radius: 10px; background: #2a2a2a; }
.hero-shot .main { display: grid; gap: 14px; align-content: start; padding: 14px; border-radius: 10px; background: #222; }
.hero-shot b { display: block; height: 54px; border-radius: 8px; background: #383838; }
.hero-shot b.g { background: rgba(47, 168, 107, .45); }
.hero-shot b.w { height: 110px; }
.hero-shot .orbit { border-radius: 10px; background: radial-gradient(circle at 50% 28%, var(--orange) 0 34px, transparent 36px), #262626; }
.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots); opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, #000 90%); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, #000 90%); }
.hero-copy { padding: 40px 24px; color: #fff; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.035em; max-width: 13ch; margin-inline: auto; }
.accent { color: var(--orange); }
.hero .lead { margin-top: 18px; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .78); }
.button.start { margin-top: 28px; height: 48px; padding: 0 6px 0 20px; gap: 14px; border-radius: 999px; background: #fff; border-color: #fff; color: var(--ink); }
.button.start:hover { background: #f1f1f1; border-color: #f1f1f1; }
.button.start .go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--ink); transition: transform .15s; }
.button.start:hover .go { transform: translateX(2px); }

/* The demo, in the page: a real call (public/embed.js puts it here). Empty,
   it and its frame take no room. */
.stage { container-type: inline-size; width: min(1160px, 100% - 2 * var(--gutter)); margin: clamp(48px, 6vw, 72px) auto 0; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.stage:has(.live:empty) { display: none; }
/* The demo lays itself out as the product (16 to 10) beside a chat 300 px wide, so its window
   takes its height from its width: the product is never squeezed and never left with empty
   bands. Narrow, the two stack: the product, then the chat under it. */
.live { height: calc((100cqw - 338px) / 1.6 + 26px); border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--rule-soft); text-align: left; }
.live:empty { display: none; }
@container (max-width: 862px) { .live { height: calc((100cqw - 18px) / 1.6 + 314px); } }
/* The hero is the demo's cover: the demo waits behind it, then takes its place. */
.hero:not(.playing) .stage { display: none; }
.hero.playing .hero-frame { display: none; }
.hero.playing .stage { animation: stage-in .45s ease-out; }
@keyframes stage-in { from { opacity: 0; transform: translateY(14px); } }

/* Four numbers under the hero, in a row of cells, inside the frame's side rules. */
.metrics { padding-top: clamp(40px, 6vw, 72px); border-inline: 1px solid var(--rule); }
.metrics ul { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--rule); }
.metrics li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 30px 16px; text-align: center; }
.metrics li + li { border-left: 1px solid var(--rule); }
.metrics strong { font-size: clamp(32px, 3.6vw, 44px); font-weight: 400; line-height: 1; letter-spacing: -.03em; color: var(--orange); }
.metrics span { max-width: 18ch; font-size: 16px; color: var(--ink-2); }
@media (max-width: 760px) {
  .metrics ul { grid-template-columns: 1fr 1fr; }
  .metrics span { font-size: 14px; }
  .metrics li:nth-child(3) { border-left: 0; }
  .metrics li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.logos { margin-top: 0; padding: clamp(48px, 6vw, 72px) 0; border-inline: 1px solid var(--rule); }
.logos ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 44px; max-width: 1000px; margin: 22px auto 0; }
.logos img { width: auto; }

/* ── Sections ──────────────────────────────────────────────────────────── */

section h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; }
section h2.center { text-align: center; margin-inline: auto; }
.sub { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 60ch; }

.statement { padding: var(--gap) 0; text-align: center; border-top: 1px solid var(--rule); }
.statement h2 { max-width: 17ch; margin-inline: auto; }
.statement p { max-width: 66ch; margin: 24px auto 0; font-size: 18px; color: var(--ink-2); }

.band { padding: var(--gap) 0; }
.band.soft { background: var(--paper-2); border-block: 1px solid var(--rule); }

/* A customer story: numbers on the left, the story on the right. */
.story { display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow); }
.story-stats { position: relative; padding: clamp(28px, 4vw, 44px); border-right: 1px solid var(--rule); background: linear-gradient(160deg, rgba(234, 134, 63, .10), transparent 60%), var(--paper); }
.ph-logo { display: block; width: fit-content; padding: 6px 12px; font-size: 14px; }
.big { margin-top: 40px; font-size: clamp(64px, 9vw, 104px); line-height: 1; letter-spacing: -.045em; display: block; width: fit-content; }
.big-label { margin-top: 14px; font-weight: 500; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.minis strong { display: inline-block; font-size: 20px; font-weight: 500; }
.minis span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-3); }
.story-text { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.story-text h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.story-text p { margin-top: 24px; color: var(--ink-2); }
.story-text .more { margin-top: auto; padding-top: 32px; }

/* Where it fits: tabs on the left, the chosen one on the right. */
.fits { padding: var(--gap) 0; }
.tabs { display: grid; grid-template-columns: 290px 1fr; gap: clamp(32px, 6vw, 72px); margin-top: 56px; }
.tab-list { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.tab-list button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--ink-3); transition: color .15s; position: relative; }
.tab-list button strong { font-size: 19px; font-weight: 500; }
.tab-list button span { font-size: 13px; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.tab-list button:hover { color: var(--ink-2); }
.tab-list button[aria-selected="true"] { color: var(--ink); }
.tab-list button[aria-selected="true"]::after { content: "\2192"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 18px; }
.tab-list button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.tab-panel { padding-left: clamp(0px, 4vw, 56px); border-left: 1px solid var(--rule); }
.tab-panel h3 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; max-width: 18ch; }
.tab-panel p { margin-top: 18px; font-size: 17px; color: var(--ink-2); max-width: 56ch; }
.lines { margin: 28px 0 32px; border-top: 1px solid var(--rule); }
.lines li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.lines li::before { content: "\2713"; color: var(--green); margin-right: 10px; }
.fits > .more { margin-top: 40px; }

/* How it works: connect, guide and execute, deploy (the deck's slide). */
.how h2 { max-width: none; }
.how-cols { display: grid; grid-template-columns: 1fr auto 1.35fr auto 1fr; align-items: stretch; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.how-col { display: flex; flex-direction: column; padding: 28px 26px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--rule); }
.how-step { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.how-step b { margin-right: 8px; }
.how svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.how-list { display: grid; gap: 18px; margin-top: 26px; }
.how-list li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.how-list svg { color: var(--orange-deep); }
.how-from { margin-top: auto; padding-top: 28px; font-size: 13px; color: var(--ink-3); }
.how-arrow { align-self: center; color: var(--orange-deep); font-size: 20px; }
/* The middle step wears the hero card's dark ground: night, with the halftone dots at its edges. */
.how-core { position: relative; isolation: isolate; overflow: hidden; background: var(--night); border-color: var(--night); color: #fff; }
.how-core::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots); opacity: .35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, #000 90%); mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 30%, #000 90%); }
.how-core .how-step { color: #fff; }
.how-rows { display: grid; gap: 14px; margin-top: 26px; flex: 1; align-content: center; }
.how-rows li { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 17px; }
.how-api { margin-top: 26px; padding: 16px 18px; border-radius: 12px; border: 1.5px solid var(--orange); background: rgba(234, 134, 63, .08); display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-2); }
.how-api p { flex-basis: 100%; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--orange-deep); }
.how-control { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 20px 24px; border-radius: var(--radius-lg); background: rgba(234, 134, 63, .1); font-size: 16px; }
.how-control svg { width: 24px; height: 24px; color: var(--orange-deep); }
.how-control strong { color: var(--orange-deep); font-weight: 600; margin-right: 4px; }
.how-note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) {
  .how-cols { grid-template-columns: 1fr; }
  .how-arrow { justify-self: center; rotate: 90deg; }
}

/* Research: the statement on the left, three rows on the right. */
.research { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px clamp(32px, 7vw, 96px); padding: var(--gap) 0; }
.research p { margin-top: 24px; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.research .backed { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 18px; }
.logo-row img { width: auto; max-height: 26px; }
.rows > div { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; padding: 28px 0; border-top: 1px solid var(--rule); }
.rows > div:last-child { border-bottom: 1px solid var(--rule); }
.rows dt { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.03em; line-height: 1.1; }
.rows dd { color: var(--ink-2); }

/* The dark band: insights, and staying current. */
.band.dark { background: var(--night); color: #fff; }
.band.dark p { color: rgba(255, 255, 255, .66); }
.band.dark .more { text-decoration-color: rgba(255, 255, 255, .3); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px clamp(32px, 7vw, 96px); align-items: center; }
.split + .split { margin-top: var(--gap); }
.split h2 { max-width: 16ch; }
.split p { margin-top: 24px; font-size: 17px; max-width: 48ch; }

.insight-art { position: relative; min-height: 340px; }
.globe { position: absolute; inset: 0 auto 0 0; width: 300px; aspect-ratio: 1; margin: auto 0; border-radius: 50%; border: 1px solid rgba(234, 134, 63, .35);
  background: radial-gradient(circle, rgba(234, 134, 63, .8) 1.2px, transparent 1.8px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 71%); mask-image: radial-gradient(circle, #000 55%, transparent 71%); }
.insight-cards { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: grid; gap: 10px; width: min(270px, 70%); }
.insight-cards li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(8px); font-size: 14px; }
.insight-cards .tag { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
/* Conversion cards first (orange), then adoption cards (green). */
.insight-cards li:nth-child(n+3) .tag { color: var(--green); }

.split.reverse .call-art { order: -1; }
.call-art { position: relative; padding: 24px 0 40px; }
.win { border-radius: 14px; background: #f4f4f4; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(234, 134, 63, .45); }
.win-bar { display: flex; gap: 6px; padding: 10px 12px; background: #e9e9e9; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cfcfcf; }
.win-body { display: grid; grid-template-columns: 1fr 120px; gap: 10px; padding: 12px; }
.app { display: grid; grid-template-columns: 70px 1fr; border-radius: 8px; overflow: hidden; background: #fff; min-height: 190px; }
.app .side { background: var(--ink); }
.app .main { display: grid; gap: 10px; align-content: start; padding: 14px; }
.app b { display: block; height: 34px; border-radius: 6px; background: #ececec; }
.app b.g { background: rgba(47, 168, 107, .22); }
.panel { display: grid; gap: 8px; align-content: start; padding: 10px; border-radius: 8px; background: #fff; }
.orb { width: 54px; height: 54px; margin: 4px auto 6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1ad, var(--orange) 45%, #9a4a16); box-shadow: 0 6px 18px -4px rgba(234, 134, 63, .7); }
.msg { height: 22px; border-radius: 6px; background: #ededed; }
.msg.me { width: 70%; margin-left: auto; background: var(--blue); opacity: .85; }
.controls { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #262626; border: 1px solid rgba(255, 255, 255, .12); }
.controls span { width: 30px; height: 30px; border-radius: 50%; background: #3a3a3a; }
.controls .end { background: var(--red); }
.toast { position: absolute; right: -8px; top: 4px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: var(--shadow); }
.toast small { grid-column: 2; font-weight: 400; color: var(--ink-3); }
.toast .dot { grid-row: span 2; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 168, 107, .2); }

/* Starting out: 50 free sessions, two ways in, and the founders. */
.free { padding: var(--gap) 0; }
.free-grid { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 24px; margin-top: clamp(40px, 5vw, 64px); align-items: start; }
.free-step { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); font-weight: 600; }
.free-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--rule); background: var(--paper); transition: transform .15s, box-shadow .15s; }
.free-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.free-card svg { width: 30px; height: 30px; margin-bottom: 22px; fill: none; stroke: var(--orange-deep); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.free-card strong { font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.free-go { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; height: 46px; padding: 0 26px; border-radius: 999px; background: var(--orange); color: var(--ink); font-weight: 500; }
.free-card:hover .free-go span { transform: translateX(2px); }
.free-go span { transition: transform .15s; }
.free-card.book { background: var(--orange); border-color: var(--orange); color: #fff; }
.free-card.book svg { stroke: #fff; }
.free-card.book .free-step { color: #fff; }
.free-card.book .free-go { background: #fff8f1; color: var(--orange-deep); }
.founders ul { display: grid; gap: 24px; margin-top: 18px; }
.founders li { display: flex; gap: 18px; align-items: flex-start; }
.face { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1ad, #ea863f 45%, #9a4a16); color: #fff; font-weight: 600; font-size: 18px; }
.founders b { display: block; font-size: 17px; font-weight: 600; }
.founders em { display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-deep); }
.founders li p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.founders .was { margin-top: 22px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 960px) { .free-grid { grid-template-columns: 1fr; } }

/* The last call to action, on dark, running into the footer. */
.closing { position: relative; padding: var(--gap) 0 clamp(56px, 7vw, 88px); background: var(--night-2); color: #fff; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: var(--dots); opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 100% 100%, #000, transparent 70%); mask-image: radial-gradient(ellipse 50% 70% at 100% 100%, #000, transparent 70%); }
.closing .wrap { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.closing h2 { max-width: 18ch; }
.closing .actions { flex-direction: column; margin: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.foot { background: var(--night-2); color: rgba(255, 255, 255, .6); font-size: 14px; overflow: hidden; }
.foot-in { padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .1); }
.page-index .foot-in { border-top-color: rgba(255, 255, 255, .1); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot-links { display: grid; grid-template-columns: repeat(3, auto); gap: 14px 56px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding: 24px 0 40px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }


/* ── Smaller screens ───────────────────────────────────────────────────── */

@media (max-width: 960px) {
  .story, .research, .split, .tabs { grid-template-columns: 1fr; }
  .story-stats { border-right: 0; border-bottom: 1px solid var(--rule); }
  .tab-panel { padding-left: 0; border-left: 0; }
  .split.reverse .call-art { order: 0; }
  .insight-art { min-height: 320px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }   /* a phone keeps its width */
  .nav-link { display: none; }
  .logo img { height: 22px; }
  .logos ul { gap: 20px 28px; }
  .hero .actions .button { flex: 1 1 100%; }
  .stage { padding: 6px; border-radius: 16px; }
  .rows > div { grid-template-columns: 1fr; }
  .rows > div { gap: 8px; }
  .globe { width: 220px; }
  .insight-cards { width: 62%; }
  .toast { right: 0; }
  .win-body { grid-template-columns: 1fr 84px; }
  .closing .actions { width: 100%; }
  .closing .button { width: 100%; }
  .foot-links { grid-template-columns: repeat(2, auto); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── Customer tabs over the story ──────────────────────────────────────── */

.story-tabs { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 12px; margin-top: 40px; }
/* Side by side, the gap between the two customers sits over the line that splits the story. */
@media (min-width: 961px) { .story-tabs { grid-template-columns: 56px calc(50% - 74px) 1fr; } }
.story { margin-top: 20px; }

/* ── The bubble in the corner ──────────────────────────────────────────── */

.bubble { position: fixed; right: 92px; bottom: 24px; z-index: 30; width: 250px; padding: 16px 16px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 24px 60px -20px rgba(23, 23, 23, .35); }
.bubble-logo { width: 84px; height: auto; }
.bubble p { margin: 10px 0 12px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.bubble-close { all: unset; cursor: pointer; position: absolute; top: 8px; right: 10px; width: 24px; height: 24px; text-align: center; font-size: 20px; line-height: 24px; color: var(--ink-3); }
.bubble-close:hover { color: var(--ink); }
.bubble-orb { position: fixed; right: 22px; bottom: 28px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1ad, var(--orange) 45%, #9a4a16); box-shadow: 0 10px 30px -6px rgba(234, 134, 63, .7); transition: transform .2s; }
.bubble-orb:hover { transform: scale(1.06); }
/* The real orb, once its shader is up (site/main.ts): the ball under it is only what shows until then. */
.orb { position: relative; }
.orb.gl { background: none; }
.orb canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
/* While the demo is open in the page, the offer of a demo steps aside. */
body:has(.hero.playing) .bubble, body:has(.hero.playing) .bubble-orb { display: none; }

@media (max-width: 600px) {
  .hero-frame, .logos, .metrics { border-inline: 0; padding-inline: 0; }
  .hero-shot { grid-template-columns: 1fr; }
  .hero-shot .side, .hero-shot .orbit { display: none; }
  .story-tabs { grid-template-columns: 44px 1fr 1fr; }
  .bubble { display: none; }
  .bubble-orb { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* The customers' logos in the tabs: in colour when chosen, grey when not. */
.story-tabs img { width: auto; }
.story-logo { height: 28px; width: auto; }

/* The tabs are buttons; the chosen one is white and its bar fills over 7s. */
.story-tabs button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; position: relative; height: 72px; border-radius: 12px; border: 1px solid var(--rule); background: rgba(23, 23, 23, .03); overflow: hidden; transition: background .2s, box-shadow .2s; }
.story-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.story-tabs .pause { font-family: var(--mono); font-size: 13px; letter-spacing: -.1em; color: var(--ink-3); }
.story-tabs .pause:hover { color: var(--ink); }
.story-tabs [role=tab] img { transition: filter .2s, opacity .2s; }
.story-tabs [aria-selected=false] img { filter: grayscale(1); opacity: .45; }
.story-tabs [aria-selected=false]:hover img { opacity: .75; }
.story-tabs [aria-selected=true] { background: var(--paper); box-shadow: var(--shadow); }
.story-tabs i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); }
.story-tabs [aria-selected=true] i { animation: story-fill 7s linear forwards; }
.stories:not(.seen) .story-tabs i, .stories.paused .story-tabs i { animation-play-state: paused; }
@keyframes story-fill { to { width: 100%; } }
.story:not([hidden]) { animation: story-in .45s ease both; }
@keyframes story-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .story-tabs [aria-selected=true] i { animation: none; width: 100%; }
}

/* ── The demo library (/demos) ─────────────────────────────────────────── */

/* The top: a label, a light headline and one sentence, over the halftone. */
.lib-top { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); text-align: center; }
.lib-top::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--dots);
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 5%, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 60% at 50% 45%, #000 5%, transparent 70%); }
.lib-top h1 { margin-top: 18px; font-size: clamp(36px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.035em; }
.lib-top .sub { margin-inline: auto; }

/* One card per demo: its words on top, the demo itself under them. Cards are
   divided by the rule, not boxed: the demo's frame is the only box. */
.lib { padding-bottom: var(--gap); }
.lib-demo { padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--rule); }
.lib-head { display: grid; grid-template-columns: 1fr auto; gap: 24px 56px; align-items: end; }
.lib-head h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.03em; }
.lib-line { margin-top: 12px; max-width: 60ch; color: var(--ink-2); }
.lib-open { margin-top: 16px; }
.lib-facts { display: grid; gap: 10px; min-width: 220px; padding-left: 24px; border-left: 1px solid var(--rule); font-size: 15px; }
.lib-facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.lib-facts dd { color: var(--ink); }

/* The demo's frame: the homepage's .stage at the width of the page. Until the
   demo is put in, its place is kept, so nothing jumps when it arrives. */
.lib-stage { container-type: inline-size; margin-top: 28px; padding: 10px; border-radius: 22px; background: rgba(255, 255, 255, .6); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.lib-stage .live:empty { display: block; background: var(--paper-2); }

@media (max-width: 760px) {
  .lib-head { grid-template-columns: 1fr; }
  .lib-facts { grid-template-columns: 1fr 1fr; padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .lib-stage { padding: 6px; border-radius: 16px; }
}

/* The blog: /blog and every article (site/article.html). Ink on paper, as
   the rest of the site: light headings, one orange, text at reading width. */

/* ── An article ── */
.post { padding: clamp(28px, 4vw, 48px) 0 var(--gap); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-deep); }
.post-head { max-width: 860px; margin-top: clamp(28px, 4vw, 48px); }
.post-head h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.035em; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 28px; }
.post-head { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.post-face { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1ad, var(--orange) 45%, #9a4a16); color: var(--ink); font-size: 14px; font-weight: 600; }
.byline-who b, .post-author b { display: block; font-weight: 500; }
.byline-who small, .post-author small { display: block; font-size: 14px; color: var(--ink-3); }
.byline-dates { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 14px; color: var(--ink-3); }

.post-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); margin-top: clamp(32px, 4vw, 48px); align-items: start; }
.toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.toc ol { margin-top: 12px; display: grid; gap: 10px; border-left: 1px solid var(--rule); }
.toc a { display: block; padding-left: 14px; margin-left: -1px; border-left: 1px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-3); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }

/* The text itself. */
.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 20px; }
.prose .lede { font-size: 20px; line-height: 1.6; color: var(--ink); }
.prose h2, .prose section h2 { margin-top: 56px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.03em; color: var(--ink); }
.prose h3 { margin-top: 36px; font-size: 21px; line-height: 1.3; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(234, 134, 63, .6); text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-deep); }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--ink-3); }
.prose blockquote { margin: 28px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--orange); color: var(--ink); }

/* Key takeaways, a note, a table. */
.prose .key { margin-top: 32px; padding: 24px 28px; border-radius: var(--radius-lg); background: var(--paper-2); border: 1px solid var(--rule); }
.prose .key h2 { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.prose .key ul { margin-top: 12px; }
.prose .key li { color: var(--ink); }
.prose .note { padding: 16px 20px; border-radius: var(--radius); background: rgba(234, 134, 63, .08); color: var(--ink); font-size: 16px; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.prose th { background: var(--paper-2); font-weight: 600; color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* The questions and the sources. */
.prose .faq h3 { margin-top: 28px; font-size: 19px; }
.prose .sources ol { font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.prose .sources a { color: var(--ink-2); word-break: break-word; }

/* The call to action, and who wrote it. */
.post-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.prose .post-cta-line { margin-top: 10px; font-size: 20px; line-height: 1.45; color: var(--ink); }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.prose .post-cta a { text-decoration: none; }
.prose .post-cta .button { color: #fff; }
.prose .post-cta .button.orange { color: var(--ink); }   /* text on orange is ink */
.prose .post-cta .button.quiet { color: var(--ink); }
.prose .post-cta-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.post-author { display: flex; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule); }
.post-author .label { margin-bottom: 6px; }
.post-author p:last-child { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; padding: 20px; border-radius: var(--radius-lg); background: var(--paper-2); }
  .byline-dates { margin-left: 0; flex-basis: 100%; }
}

/* ── /blog ── */
/* The header sits on the halftone, faded out towards the bottom. */
.blog-index { position: relative; isolation: isolate; padding: clamp(28px, 4vw, 48px) 0 var(--gap); }
.blog-index::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; background: var(--dots); opacity: .28;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.blog-index h1 { margin-top: clamp(24px, 3vw, 36px); font-size: clamp(40px, 5vw, 60px); line-height: 1.05; letter-spacing: -.035em; }
.blog-lead { margin-top: 14px; max-width: 60ch; font-size: 18px; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Search, then the topics. */
.blog-search { display: flex; align-items: center; gap: 12px; max-width: 560px; height: 52px; margin-top: 32px; padding: 0 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.blog-search:focus-within { border-color: var(--orange); }
.blog-search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.blog-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.blog-search input::placeholder { color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--paper); font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.chip span { color: var(--ink-3); font-weight: 400; }
.chip:hover { border-color: var(--orange); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chip[aria-pressed="true"] span { color: rgba(23, 23, 23, .7); }
.blog-empty { margin-top: 32px; color: var(--ink-3); }

/* An article's topics, under its byline. */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.post-tags a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink-2); }
.post-tags a:hover { border-color: var(--orange); color: var(--ink); }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.post-card { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--rule); background: var(--paper); text-decoration: none; color: inherit; transition: box-shadow .2s, border-color .2s; }
.post-card:hover { border-color: rgba(23, 23, 23, .22); box-shadow: var(--shadow); }
.post-card h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.post-card p { font-size: 15px; color: var(--ink-2); }
.post-card time { margin-top: auto; font-size: 13px; color: var(--ink-3); }

/* The sample product (site/parts/crm.html): a made-up CRM that fills the
   window of its own page, /fernhill. Its look is kept apart from the site's,
   so that it reads as someone else's product: a light side menu, one blue,
   white cards on a pale ground. */

.crm {
  --ink: #1b2136; --dim: #6c748c; --faint: #9aa1b5; --line: #e6e8f0; --soft: #f0f2f7; --paper: #f6f7fa;
  --blue: #4353e0; --blue-soft: #eceefd; --green: #1d8a5b; --green-soft: #e4f4ec; --amber: #b8641a; --amber-soft: #fff1dc; --red: #c0392b;
  position: relative; width: 100vw; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 212px 1fr;
  font: 13px/1.4 var(--body); color: var(--ink); background: var(--paper); text-align: left;
}
.bare { margin: 0; background: #f6f7fa; }
.crm button, .crm input, .crm select { font: inherit; color: inherit; }
.crm h3, .crm h4, .crm h5 { font-family: var(--body); letter-spacing: 0; margin: 0; }
.crm em { font-style: normal; }
.crm ul { list-style: none; margin: 0; padding: 0; }
.crm-sprite { position: absolute; width: 0; height: 0; }
.crm .ic { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* People and companies: a round face for a person, a square mark for a company */
.crm-face, .crm-logo { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 9.5px; font-weight: 600; letter-spacing: .01em; color: #fff; }
.crm-logo { border-radius: 7px; font-size: 11.5px; }
.crm-face.big { width: 40px; height: 40px; font-size: 14px; }
.crm .a { background: #4353e0; } .crm .b { background: #0f8f7a; } .crm .c { background: #c2573f; } .crm .d { background: #8456d6; }
.crm .e { background: #2f7fc1; } .crm .f { background: #b5528e; } .crm .g { background: #5b6b8c; } .crm .h { background: #a8782a; }
.crm-tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; background: var(--soft); color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.crm-tag.blue { background: var(--blue-soft); color: var(--blue); }
.crm-tag.green { background: var(--green-soft); color: var(--green); }
.crm-glyph { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }

/* The menu */
.crm-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px 12px; background: #fff; border-right: 1px solid var(--line); }
.crm-brand { display: flex; align-items: center; gap: 9px; padding: 2px 8px 14px; font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.crm-brand i { position: relative; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(140deg, #6f7dff, var(--blue)); }
.crm-brand i::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 2.5px solid #fff; border-right-color: transparent; transform: rotate(-45deg); }
.crm-side nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.crm-side p { margin: 14px 8px 4px; font-size: 11px; font-weight: 500; color: var(--faint); }
.crm-side button { display: flex; align-items: center; gap: 10px; height: 31px; padding: 0 9px; border: 0; border-radius: 8px; background: none; color: #454d66; font-weight: 500; text-align: left; cursor: pointer; }
.crm-side button .ic { color: #8089a3; }
.crm-side button:hover { background: var(--soft); }
.crm-side button.on { background: var(--blue-soft); color: var(--blue); }
.crm-side button.on .ic { color: var(--blue); }
.crm-side button em { margin-left: auto; min-width: 20px; text-align: center; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--soft); color: var(--dim); }
.crm-side button.on em { background: #fff; color: var(--blue); }
.crm-me { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 10px 8px 2px; border-top: 1px solid var(--line); }
.crm-me b { display: block; font-size: 12.5px; font-weight: 600; }
.crm-me small { color: var(--dim); font-size: 11.5px; }

/* The top bar */
.crm-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.crm-top { flex: none; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; background: #fff; border-bottom: 1px solid var(--line); }
.crm-search { flex: 1; max-width: 400px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line); color: var(--faint); margin-right: auto; }
.crm-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--dim); font-size: 12px; font-weight: 500; white-space: nowrap; }
.crm-pill.solid { color: var(--ink); }
.crm-pill .ic { width: 14px; height: 14px; }
.crm-round { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--dim); }
.crm-top .crm-face { width: 30px; height: 30px; font-size: 11px; margin-left: 4px; }
.crm-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 500; cursor: pointer; white-space: nowrap; }
.crm-btn .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.crm-btn:hover { filter: brightness(1.08); }
.crm-btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.crm-btn.ghost .ic { stroke-width: 1.8; color: var(--dim); }

/* A view: its heading, then its content */
.crm-view { display: none; flex: 1; min-height: 0; flex-direction: column; gap: 14px; padding: 20px 22px; }
.crm-view.on { display: flex; }
.crm-head { flex: none; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.crm-head h3 { font-size: 20px; font-weight: 600; letter-spacing: -.015em; margin-right: 10px; }
.crm-head h3 em, .crm-card h4 em, .crm-tasks h4 em { font-size: 11.5px; font-weight: 500; color: var(--dim); margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #e9ebf3; vertical-align: 2px; }
.crm-head .crm-btn:first-of-type { margin-left: auto; }
.crm-tabs { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: #e9ebf3; font-size: 12px; margin-right: 4px; }
.crm-tabs b, .crm-tabs span { padding: 4px 11px; border-radius: 7px; font-weight: 500; color: var(--dim); }
.crm-tabs b { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(27, 33, 54, .08); }
.crm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; min-height: 0; }
.crm-card h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.crm-card small { color: var(--dim); }
.crm-cardhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crm-cardhead h4 { margin: 0; }

/* Numbers at a glance */
.crm-kpis { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.crm-kpis.three { grid-template-columns: repeat(3, 1fr); }
.crm-kpis > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 3px; }
.crm-kpis small { color: var(--dim); font-size: 12px; }
.crm-kpis b { font-size: 25px; font-weight: 600; letter-spacing: -.025em; }
.crm-kpis em { font-size: 11.5px; color: var(--dim); }
.crm-kpis em.up { color: var(--green); }
.crm-kpis em.down { color: var(--red); }
.crm-split { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
.crm-split .crm-card { display: flex; flex-direction: column; }
.crm-bars { flex: 1; min-height: 120px; display: flex; align-items: flex-end; gap: 14px; padding: 22px 4px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 24.6%, #f0f2f7 24.6% 25%); }
.crm-bars.short { min-height: 90px; }
.crm-bars i { position: relative; flex: 1; border-radius: 6px 6px 0 0; background: #c9cff8; }
.crm-bars i.now { background: var(--blue); }
.crm-bars i b { position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-size: 10.5px; font-weight: 500; color: var(--dim); font-style: normal; }
.crm-axis { display: flex; gap: 14px; padding: 7px 4px 0; }
.crm-axis span { flex: 1; text-align: center; font-size: 10.5px; color: var(--faint); white-space: nowrap; }
.crm-list { display: flex; flex-direction: column; }
.crm-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--soft); }
.crm-list li:first-child { border-top: 0; padding-top: 2px; }
.crm-list li i { flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 5px; border: 1.5px solid #c4c9d9; }
.crm-list small { display: block; font-size: 11.5px; color: var(--dim); }
.crm-list.feed .crm-face { margin-top: 1px; }

/* Inbox */
.crm-mail { flex: 1; min-height: 0; display: grid; grid-template-columns: 330px 1fr; gap: 12px; }
.crm-threads { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.crm-threads li { position: relative; display: flex; gap: 10px; padding: 11px 14px 11px 18px; border-bottom: 1px solid var(--soft); cursor: pointer; }
.crm-threads li.on { background: var(--blue-soft); }
.crm-threads li.unread::before { content: ""; position: absolute; left: 7px; top: 20px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.crm-threads div { min-width: 0; flex: 1; }
.crm-threads b { display: block; font-weight: 500; }
.crm-threads li.unread b, .crm-threads li.unread div span { font-weight: 600; }
.crm-threads div span { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-threads small { display: block; color: var(--dim); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-threads time { flex: none; font-size: 11.5px; color: var(--faint); }
.crm-letter { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; min-height: 0; }
.crm-letter header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--soft); }
.crm-letter header .crm-face { width: 34px; height: 34px; font-size: 12px; }
.crm-letter header div { flex: 1; min-width: 0; }
.crm-letter h4 { font-size: 15.5px; font-weight: 600; }
.crm-letter small { color: var(--dim); }
.crm-letter small b { font-weight: 500; color: var(--ink); }
.crm-letter p { margin: 0; font-size: 13.5px; line-height: 1.55; max-width: 62ch; }
.crm-suggest { display: flex; gap: 7px; margin-top: auto; }
.crm-suggest span { padding: 5px 11px; border-radius: 999px; border: 1px solid #cfd4f7; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 500; }
.crm-reply { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--paper); }
.crm-reply span { flex: 1; color: var(--faint); }

/* Tasks */
.crm-tasks { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 6px; }
.crm-tasks h4 { font-size: 12.5px; font-weight: 600; margin: 8px 2px 2px; }
.crm-tasks h4:first-child { margin-top: 0; }
.crm-tasks > div { display: grid; grid-template-columns: 16px minmax(0, 1fr) 150px 96px 84px 24px; align-items: center; gap: 12px; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.crm-tasks > div > i { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #c4c9d9; cursor: pointer; }
.crm-tasks > div b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-tasks > div .crm-tag { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.crm-tasks small { display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 12px; }
.crm-tasks small .ic { width: 14px; height: 14px; }
.crm-tasks time { font-size: 12px; color: var(--dim); }
.crm-tasks time.due { color: var(--amber); font-weight: 500; }
.crm-tasks .done b { color: var(--faint); text-decoration: line-through; }
.crm-tasks .done > i { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--green); }

/* The deals board */
.crm-board { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.crm-col { background: #eceef5; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.crm-col h4 { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 2px 3px 3px; }
.crm-col h4 i, .crm-stages i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.crm .s1 { background: #9aa1b5; } .crm .s2 { background: #2f7fc1; } .crm .s3 { background: #8456d6; } .crm .s4 { background: #c98a1b; } .crm .s5 { background: var(--green); }
.crm-col h4 em { font-weight: 500; color: var(--dim); }
.crm-col h4 span { margin-left: auto; font-weight: 500; color: var(--dim); font-size: 11.5px; }
.crm-col article { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 8px; box-shadow: 0 1px 2px rgba(27, 33, 54, .04); }
.crm-col article[data-open] { cursor: pointer; }
.crm-col article b { grid-column: 1 / -1; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-col article > span:not(.crm-face) { font-size: 12.5px; font-weight: 500; }
.crm-col article small { grid-column: 1; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-col article .crm-face { grid-column: 2; grid-row: 2 / span 2; width: 22px; height: 22px; font-size: 9px; }
.crm-col article.won { border-left: 3px solid var(--green); }

/* Tables */
.crm-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.crm-table th, .crm-mini th { text-align: left; font-weight: 500; font-size: 11.5px; color: var(--dim); padding: 10px 16px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.crm-table td { padding: 9px 16px; border-bottom: 1px solid var(--soft); }
.crm-table tr:last-child td { border-bottom: 0; }
.crm-table tr[data-open] { cursor: pointer; }
.crm-table td:first-child, .crm-mini td:first-child { font-weight: 500; }
.crm-table td:first-child > span, .crm-mini td:first-child > span, .crm-owners span > span, .crm-sheet dd > span { margin-right: 9px; vertical-align: middle; }
.crm-table td:nth-child(3) { color: var(--dim); }
.crm-table em, .crm-mini em { font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.crm-table em.lead, .crm-mini em.lead { background: var(--blue-soft); color: var(--blue); }
.crm-table em.new { background: var(--amber-soft); color: var(--amber); }
.crm-mini { width: 100%; border-collapse: collapse; }
.crm-mini th { background: none; padding: 0 10px 8px 0; }
.crm-mini td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--soft); }
.crm-mini tr:last-child td { border-bottom: 0; }
.crm-mini.wide td { padding: 9px 10px 9px 0; }

/* Automations */
.crm-rules { display: flex; flex-direction: column; gap: 8px; }
.crm-rules > div { display: grid; grid-template-columns: 28px 230px 1fr 70px 34px; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.crm-rules > div > b { font-weight: 600; }
.crm-rules > div > span:not(.crm-glyph), .crm-rules small { color: var(--dim); }
.crm-rules i { width: 34px; height: 20px; border-radius: 999px; background: #cfd3e0; position: relative; }
.crm-rules i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.crm-rules i.on { background: var(--green); }
.crm-rules i.on::after { left: 16px; }

/* Forecast and reports */
.crm-meter { height: 12px; border-radius: 6px; background: #e9ebf3; overflow: hidden; margin-bottom: 8px; }
.crm-meter i, .crm-owners i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.crm-owners { display: grid; grid-template-columns: 170px 1fr 70px; align-items: center; gap: 12px 14px; }
.crm-owners.stages { grid-template-columns: 96px 1fr 70px; gap: 13px 14px; }
.crm-owners div { height: 10px; border-radius: 5px; background: #e9ebf3; }
.crm-owners i.won { background: var(--green); }
.crm-owners > b { font-weight: 600; text-align: right; }
.crm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 12px; }
.crm-grid .crm-card { display: flex; flex-direction: column; }
.crm-grid .crm-owners, .crm-grid .crm-pie { flex: 1; align-content: space-evenly; }
.crm-pie { display: flex; align-items: center; gap: 28px; }
.crm-pie > i { flex: none; width: 138px; height: 138px; border-radius: 50%; background: conic-gradient(var(--blue) 0 38%, #7f8cff 38% 65%, #b9c0fb 65% 84%, #dfe2f7 84% 100%); -webkit-mask: radial-gradient(circle, transparent 41px, #000 42px); mask: radial-gradient(circle, transparent 41px, #000 42px); }
.crm-pie ul { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.crm-pie li { display: flex; align-items: center; gap: 9px; }
.crm-pie li b { width: 10px; height: 10px; border-radius: 3px; }
.crm-pie li span { margin-left: auto; font-weight: 600; }
.crm .p1 { background: var(--blue); } .crm .p2 { background: #7f8cff; } .crm .p3 { background: #b9c0fb; } .crm .p4 { background: #dfe2f7; }

/* Settings */
.crm-settings { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 18px; }
.crm-stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.crm-stages { display: flex; gap: 8px; }
.crm-stages span { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 500; }

/* A sheet from the right: one deal, one contact */
.crm-sheet { position: absolute; top: 0; right: 0; bottom: 0; z-index: 2; width: 420px; display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; background: #fff; border-left: 1px solid var(--line); box-shadow: -30px 0 60px -30px rgba(27, 33, 54, .35); animation: crm-sheet .22s ease-out; }
.crm-sheet header { display: flex; align-items: center; gap: 12px; }
.crm-sheet header .crm-logo { width: 40px; height: 40px; border-radius: 11px; font-size: 17px; }
.crm-sheet header div { flex: 1; min-width: 0; }
.crm-sheet h4 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.crm-sheet small { color: var(--dim); }
.crm-x { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.crm-x:hover { background: var(--soft); }
.crm-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.crm-steps span { padding: 6px 0; text-align: center; font-size: 11.5px; font-weight: 500; color: var(--dim); background: var(--soft); }
.crm-steps span:first-child { border-radius: 8px 0 0 8px; } .crm-steps span:last-child { border-radius: 0 8px 8px 0; }
.crm-steps span.done { background: var(--blue-soft); color: var(--blue); }
.crm-steps span.on { background: var(--blue); color: #fff; }
.crm-sheet dl { display: grid; grid-template-columns: 112px 1fr; gap: 10px 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--soft); border-bottom: 1px solid var(--soft); }
.crm-sheet dt { color: var(--dim); }
.crm-sheet dd { margin: 0; }
.crm-sheet dd b { font-weight: 600; }
.crm-sheet h5 { font-size: 12.5px; font-weight: 600; }
.crm-sheet .crm-list { flex: 1; min-height: 0; }
.crm-sheet footer { display: flex; justify-content: flex-end; gap: 8px; }

/* A dialog over the page */
.crm-dialog { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: rgba(27, 33, 54, .36); }
.crm-dialog form { width: 440px; background: #fff; border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px -20px rgba(27, 33, 54, .5); }
.crm-dialog h4 { font-size: 17px; font-weight: 600; margin-bottom: 2px; }
.crm-dialog label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 500; color: var(--dim); }
.crm-dialog input, .crm-dialog select { height: 36px; padding: 0 11px; border-radius: 9px; border: 1px solid #cfd3e0; background: #fff; font-size: 13px; color: var(--ink); outline: none; width: 100%; }
.crm-dialog input:focus, .crm-dialog select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(67, 83, 224, .16); }
.crm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crm-when { display: flex; flex-direction: column; gap: 12px; }
.crm-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.crm-file { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 9px; background: var(--paper); border: 1px dashed #c4c9d9; }
.crm-file .ic { color: var(--blue); }
.crm-file span { color: var(--dim); font-size: 12px; }
.crm-map { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.crm-map span, .crm-map b { padding: 8px 12px; border-bottom: 1px solid var(--soft); }
.crm-map span { color: var(--dim); }
.crm-map b { font-weight: 500; color: var(--green); }
.crm-map b.skip { color: var(--faint); font-weight: 400; }
.crm-map > :nth-last-child(-n + 2) { border-bottom: 0; }

.crm-toast { position: absolute; left: 212px; right: 0; bottom: 22px; z-index: 4; width: max-content; margin-inline: auto; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 10px 30px -10px rgba(27, 33, 54, .6); animation: crm-in .25s; }
.crm .fresh { animation: crm-fresh 2.4s ease-out; }
@keyframes crm-fresh { 0%, 40% { background-color: #fff3d6; } }
@keyframes crm-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes crm-sheet { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
