/* Brand colors come straight from the final logo file: cream, deep violet and five area colors. */
@font-face {
  font-family: 'Fraunces Soft';
  src: url('/fonts/fraunces-soft.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

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

:root {
  --paper: #f7f3f1;
  --card: #fffdfc;
  --violet: #2e129e;
  --violet-deep: #1e0b6e;
  --ink: #1b1240;
  --muted: #5a5277;
  --line: rgb(46 18 158 / 18%);
  --on-violet: #f7f3f1;
  --on-violet-muted: #d8d2f0;
  /* The five dots in the logo, in the same order. */
  --red: #f4431f;
  --orange: #ff9500;
  --green: #8fbf1f;
  --blue: #2d7ff9;
  --pink: #e93cac;
  --spectrum: linear-gradient(90deg, var(--red) 0 20%, var(--orange) 20% 40%, var(--green) 40% 60%, var(--blue) 60% 80%, var(--pink) 80% 100%);
  --display: 'Fraunces Soft', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 9rem);
}

/* Each area of the business has one of the logo's colors. To change which is which, change it here. */
[data-area='email'],
[data-area='chat'] {
  --area: var(--blue);
}

[data-area='calendar'],
[data-area='tasks'] {
  --area: var(--orange);
}

[data-area='finances'] {
  --area: var(--green);
}

[data-area='customers'] {
  --area: var(--pink);
}

[data-area='files'],
[data-area='knowledge'] {
  --area: var(--red);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--violet);
}

h3 {
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
}

.skip:focus {
  top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85em 1.5em;
  border: 0;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font: 700 1rem/1.1 var(--body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.btn:hover {
  background: var(--violet-deep);
  transform: translateY(-1px);
}

.btn--small {
  padding: 0.7em 1.15em;
  font-size: 0.95rem;
}

.btn[hidden] {
  display: none;
}

.btn--light {
  background: var(--paper);
  color: var(--violet);
}

.btn--light:hover {
  background: #fff;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(247 243 241 / 90%);
  backdrop-filter: blur(10px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
}

.nav__logo img {
  width: auto;
  height: clamp(2.75rem, 4vw, 3.5rem);
}

/* Hero */
.hero {
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 4vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.25rem;
  color: var(--violet);
  font-size: 0.98rem;
  font-weight: 650;
}

.eyebrow__dot {
  /* The logo's five colors in a row: one dot plus four copies drawn as shadows. */
  flex: none;
  width: 0.55em;
  height: 0.55em;
  margin-right: 3.2em;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0.8em 0 0 var(--orange), 1.6em 0 0 var(--green), 2.4em 0 0 var(--blue), 3.2em 0 0 var(--pink);
}

h1 {
  color: var(--violet);
  /* Height matters too: the form has to stay on screen on short laptops. */
  font-size: clamp(2.65rem, min(5.3vw, 9vh), 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

@media (min-width: 961px) {
  h1 span {
    display: block;
  }
}

mark {
  padding-inline: 0.04em;
  white-space: nowrap;
  /* All five colors under "whole business": every area of it, together. */
  background: var(--spectrum) 0 94% / 100% 0.12em no-repeat;
  color: inherit;
}

.lede {
  max-width: 37em;
  margin-top: 1.5rem;
  font-size: 1.1em;
}

/* What people get for joining, right under the form */
.perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  max-width: 34rem;
  margin-top: 0.9rem;
  color: var(--violet-deep);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 0.45em;
}

.perks li::before {
  content: '';
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--violet);
}

/* Waitlist form */
.waitlist {
  max-width: 34rem;
  margin-top: 1.9rem;
}

.waitlist__row {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 2px solid var(--violet);
  border-radius: 999px;
  background: var(--card);
}

.waitlist__row:focus-within {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.waitlist input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.6rem 0.75rem 0.6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 500 1.05rem/1.2 var(--body);
}

.waitlist input[type='email']::placeholder {
  color: #746c91;
}

.waitlist input[type='email']:focus {
  outline: none;
}

.waitlist__trap {
  position: absolute;
  left: -9999px;
}

.waitlist__msg {
  margin-top: 0.6rem;
  color: #a31238;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Stays in the page while empty, so screen readers announce it when it fills. */
.waitlist__msg:empty {
  margin: 0;
}

.waitlist.is-busy .btn {
  opacity: 0.65;
  cursor: progress;
}

.joined {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 34rem;
  margin-top: 1.9rem;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--green);
  color: var(--violet-deep);
  line-height: 1.35;
}

.joined:focus {
  outline: none;
}

.joined strong {
  display: block;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
}

.joined__dot {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background: var(--violet);
  animation: pop 420ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}

@keyframes pop {
  from {
    transform: scale(0);
  }
}

/* After joining: the sales points give way to the two optional questions. */
.is-joined .perks,
.is-joined .final__lede,
.is-joined .final__perks {
  display: none;
}

.followup {
  max-width: 34rem;
  margin-top: 0.6rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--card);
  box-shadow: inset 0 0 0 1.5px var(--line);
  color: var(--ink);
}

.followup__title {
  color: var(--violet);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
}

.followup__hint {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.followup fieldset {
  min-width: 0;
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.followup legend {
  padding: 0;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.3;
}

.followup legend span {
  color: var(--muted);
  font-weight: 400;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.choice {
  position: relative;
  display: block;
}

/* Real checkboxes and radio buttons, laid over the styled label so keyboards and screen readers work as normal. */
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice span {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.choice[data-area] span::before {
  content: '';
  flex: none;
  width: 0.62em;
  height: 0.62em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--area);
}

.choice:hover span {
  border-color: var(--violet);
}

.choice input:checked + span {
  border-color: var(--violet);
  background: var(--violet);
  color: var(--on-violet);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--violet);
  outline-offset: 2px;
}

.followup__send {
  margin-top: 1.1rem;
}

.followup__send:disabled {
  opacity: 0.65;
  cursor: progress;
}

.final .followup :focus-visible {
  outline-color: var(--violet);
}

.followup__msg {
  margin-top: 0.6rem;
  color: #a31238;
  font-size: 0.95rem;
  font-weight: 600;
}

.followup__msg:empty {
  margin: 0;
}

.followup__done {
  max-width: 34rem;
  margin-top: 0.75rem;
  color: var(--violet-deep);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.followup__done:focus {
  outline: none;
}

.final .followup__done {
  color: var(--on-violet);
}

/* The hero graphic: the logo's burst, drawn as a diagram of the business */
.hero__visual {
  /* Stays at the top of its column, so a taller column of text can't push the panel off a short screen. */
  align-self: start;
  width: 100%;
  max-width: 35rem;
  margin-inline: auto;
}

.stage {
  container-type: inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orbit {
  --tile: 12.6cqw;
  container-type: inline-size;
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
}

/* Beside the copy, the diagram follows the screen height so the whole panel stays in view. */
@media (min-width: 961px) {
  .orbit {
    width: min(100%, 100vh - 24rem);
  }
}

.orbit__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit__rays circle {
  fill: none;
  stroke: rgb(46 18 158 / 13%);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}

.orbit__rays line {
  stroke: rgb(46 18 158 / 34%);
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-dasharray: 0.5 8;
  vector-effect: non-scaling-stroke;
  transition: stroke 240ms ease;
}

.orbit__rays line.is-on {
  stroke: var(--area);
  stroke-width: 3.5px;
  animation: flow 900ms linear infinite;
}

@keyframes flow {
  to {
    stroke-dashoffset: 17;
  }
}

.node {
  position: absolute;
  width: 0;
  height: 0;
  animation: drift 7s ease-in-out infinite alternate;
}

.node:nth-of-type(odd) {
  animation-duration: 9s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(-0.6cqw, 0.4cqw);
  }

  to {
    transform: translate(0.6cqw, -0.6cqw);
  }
}

.node i {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: 50%;
  background: var(--area);
  color: var(--violet-deep);
  box-shadow: 0 0.8cqw 2.2cqw rgb(46 18 158 / 22%);
  transform: translate(-50%, -50%);
  transition: background-color 240ms ease, color 240ms ease, box-shadow 240ms ease, scale 260ms cubic-bezier(0.2, 1.5, 0.4, 1);
}

.node svg {
  width: 50%;
  height: 50%;
}

.node b {
  position: absolute;
  top: calc(var(--tile) / 2 + 2cqw);
  left: 0;
  color: var(--violet-deep);
  font-size: max(0.72rem, 3cqw);
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.node--up b {
  top: auto;
  bottom: calc(var(--tile) / 2 + 2cqw);
}

.node.is-on i {
  box-shadow: 0 0 0 0.6cqw var(--paper), 0 0 0 1.2cqw var(--area), 0 0 5cqw color-mix(in srgb, var(--area) 50%, transparent);
  scale: 1.06;
}

/* Once the animation has played out, everything holds still. */
.orbit.is-settled .node,
.orbit.is-settled .ai-bubble,
.orbit.is-settled .orbit__rays line {
  animation-play-state: paused;
}

/* A purple circle holds the logos, with a small cream disc in the middle for the name. */
.orbit__core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #3e20b6 0%, #5338cf 100%);
  box-shadow:
    0 0 0 1.6cqw rgb(46 18 158 / 8%),
    0 1.6cqw 5cqw rgb(46 18 158 / 26%);
  color: var(--violet);
  font-family: var(--display);
  font-size: max(0.72rem, 4.2cqw);
  font-weight: 800;
  line-height: 1;
  transform: translate(-50%, -50%);
}

.orbit__center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15em;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 5cqw rgb(255 255 255 / 28%);
  transform: translate(-50%, -50%);
}

.orbit__model {
  font-family: var(--body);
  font-size: max(0.62rem, 2.4cqw);
  font-weight: 700;
  white-space: nowrap;
}

.orbit__model:empty {
  display: none;
}

/* The smallest phones have no room for the name here. The button below still shows the pick. */
@container (max-width: 17rem) {
  .orbit__model {
    display: none;
  }
}

/* Each AI floats in the circle on its own white disc, so its logo keeps its own colors and some clear space. */
.ai-bubble {
  position: absolute;
  display: grid;
  place-items: center;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0.6cqw 1.8cqw rgb(18 6 80 / 38%);
  transform: translate(-50%, -50%);
  animation: float-a 6s ease-in-out infinite alternate;
  transition: scale 220ms ease, box-shadow 220ms ease;
}

.ai-bubble img {
  width: 60%;
  height: 60%;
}

.ai-bubble[data-ai-bubble='claude'] {
  animation: float-b 7.5s ease-in-out -2s infinite alternate;
}

.ai-bubble[data-ai-bubble='gemini'] {
  animation: float-b 6.4s ease-in-out -5s infinite alternate-reverse;
}

.ai-bubble[data-ai-bubble='grok'] {
  animation: float-a 6.8s ease-in-out -4s infinite alternate-reverse;
}

.ai-bubble[data-ai-bubble='hermes'] {
  animation: float-b 5.6s ease-in-out -1s infinite alternate-reverse;
}

.ai-bubble[data-ai-bubble='own'] {
  animation: float-a 8s ease-in-out -3s infinite alternate;
}

@keyframes float-a {
  from {
    translate: -6% 7%;
  }

  to {
    translate: 7% -8%;
  }
}

@keyframes float-b {
  from {
    translate: 7% 6%;
  }

  to {
    translate: -6% -7%;
  }
}

/* Picking an AI brings it forward. The others shrink back but keep their full color. */
.orbit__core.has-pick .ai-bubble {
  scale: 0.82;
}

.orbit__core.has-pick .ai-bubble.is-picked {
  z-index: 1;
  scale: 1.12;
  box-shadow: 0 0 0 2px var(--violet), 0 0 0 5px var(--paper);
}

.orbit__core.is-ready .orbit__center {
  animation: ready 900ms ease-out;
}

@keyframes ready {
  35% {
    filter: brightness(1.12);
    scale: 1.08;
  }
}

/* The AI picker */
.picker {
  width: 100%;
  margin-top: 1.1rem;
  text-align: center;
}

.picker__title {
  color: var(--violet);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.picker__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.picker__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 650 0.9rem/1 var(--body);
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.js .picker__item {
  cursor: pointer;
}

.js .picker__item:hover {
  border-color: var(--violet);
}

.picker__item img {
  box-sizing: content-box;
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--card);
}

.picker__item[aria-pressed='true'] {
  border-color: var(--violet);
  background: rgb(46 18 158 / 8%);
  box-shadow: 0 0 0 1px var(--violet);
}

/* Narrower panels: tighter, so the names still fit in three columns. */
@container (max-width: 24rem) {
  .picker__item {
    gap: 0.3rem;
    padding: 0.25rem 0.45rem 0.25rem 0.25rem;
    font-size: 0.8rem;
  }

  .picker__item img {
    width: 1rem;
    height: 1rem;
    padding: 0.22rem;
  }
}

/* The smallest phones: two columns, so every name fits. */
@container (max-width: 17rem) {
  .picker__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The story card */
.ticker-wrap {
  position: relative;
  width: min(100%, 27rem);
  margin: 0.9rem auto 0;
  border-radius: 999px;
}

.ticker__stop {
  position: absolute;
  top: 50%;
  right: 0.6rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.ticker__stop:hover {
  background: rgb(46 18 158 / 10%);
}

/* A pause symbol: two bars. */
.ticker__stop::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0.7rem;
  height: 0.8rem;
  border-inline: 0.22rem solid var(--violet);
}

.ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding: 0.6rem 3.1rem 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0.6rem 1.6rem -0.6rem rgb(30 11 110 / 30%), 0 0 0 1.5px rgb(46 18 158 / 12%);
  font-size: 0.95rem;
  line-height: 1.2;
  transition: opacity 180ms ease;
}

.ticker.is-swapping {
  opacity: 0;
}

.ticker__label {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.7em;
  border-radius: 999px;
  background: rgb(46 18 158 / 9%);
  color: var(--violet);
  font-size: 0.82em;
  font-weight: 700;
}

.ticker__label::before {
  content: '';
  flex: none;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--area, var(--violet));
}

.ticker.is-ready .ticker__label::before {
  display: none;
}

.ticker.is-ready .ticker__label {
  background: var(--violet);
  color: var(--on-violet);
}

.ticker__text {
  font-weight: 550;
}

/* Problem */
.problem {
  padding-block: var(--section);
  border-top: 1.5px solid var(--line);
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2.5rem, 7vw, 7rem);
}

.problem__grid h2 {
  grid-column: 1 / -1;
  max-width: 17em;
}

.scatter {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.1rem + 1.25vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.scatter li {
  padding-block: 0.7em;
  border-top: 1.5px solid var(--line);
}

.scatter strong {
  color: var(--violet);
  font-weight: 800;
}

.scatter__you {
  border-bottom: 1.5px solid var(--line);
}

.scatter__you strong {
  background: var(--spectrum) 0 94% / 100% 0.1em no-repeat;
}

.problem__body {
  display: grid;
  align-content: start;
  gap: 1.2em;
}

.problem__turn {
  color: var(--violet);
  font-family: var(--display);
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Demo */
.demo {
  padding-block: var(--section);
  background: var(--violet);
  color: var(--on-violet);
}

.demo h2 {
  color: var(--on-violet);
}

.demo__head {
  max-width: 50rem;
}

.demo__head p {
  max-width: 35em;
  margin-top: 1.25rem;
  color: var(--on-violet-muted);
}

.mail {
  display: flex;
  gap: 1rem;
  max-width: 42rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 1.3rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--card);
  color: var(--ink);
}

.mail__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgb(233 60 172 / 18%);
  color: var(--violet-deep);
  font-size: 0.85rem;
  font-weight: 800;
}

.mail__from {
  color: var(--muted);
  font-size: 0.92rem;
}

.mail__from strong {
  color: var(--ink);
}

.mail__body {
  margin-top: 0.2rem;
  font-weight: 500;
}

.demo__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

.panel {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 1.75rem;
}

.panel h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
}

.panel__label {
  margin-top: 1.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel blockquote {
  margin: 0;
  line-height: 1.5;
}

.panel--blind {
  border: 1.5px solid rgb(247 243 241 / 38%);
  color: var(--on-violet);
}

.panel--blind .panel__label {
  color: var(--on-violet-muted);
}

.panel--blind blockquote {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgb(247 243 241 / 12%);
}

.panel__after {
  margin-top: 1.25rem;
  font-weight: 600;
}

.panel--sees {
  background: var(--card);
  color: var(--ink);
}

.panel--sees h3 {
  color: var(--violet);
}

.panel--sees .panel__label {
  color: var(--muted);
}

.panel--sees blockquote {
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: rgb(46 18 158 / 7%);
}

.sources li {
  position: relative;
  padding: 0.28em 0 0.28em 1.5em;
  line-height: 1.35;
}

.sources li::before {
  content: '';
  position: absolute;
  top: 0.62em;
  left: 0.15em;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--area, var(--paper));
}

.sources .is-missing {
  color: var(--on-violet-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.sources .is-missing::before {
  border: 1.5px solid var(--on-violet-muted);
  background: transparent;
}

.panel__approve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.panel__approve span:last-child {
  flex: 1 1 14rem;
}

.panel__fakebtn {
  padding: 0.65em 1.1em;
  border-radius: 999px;
  background: var(--violet);
  color: var(--on-violet);
  font-weight: 700;
  white-space: nowrap;
}

.demo__foot {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  max-width: 48rem;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  text-align: center;
}

.demo__why {
  font-family: var(--display);
  font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Control */
.control {
  padding-block: var(--section);
  background: #e7e2f4;
  color: var(--violet-deep);
}

.control h2 {
  color: var(--violet-deep);
}

.control__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.control__grid > div {
  padding-top: 1.1rem;
  border-top: 3px solid var(--violet-deep);
}

.control h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.9rem);
}

.control p {
  max-width: 34em;
  margin-top: 0.7rem;
}

/* The line people can hand to their own agent */
.agent-try {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 1.25rem clamp(1.75rem, 3.5vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.25rem, 2.5vw, 2rem);
  border-radius: 1.75rem;
  background: var(--card);
}

.agent-try__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--violet-deep);
  color: var(--on-violet);
}

.agent-try__box code {
  flex: 1 1 auto;
  min-width: 0;
  font: 500 0.92rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
  user-select: all;
}

.agent-try__box .btn {
  flex: none;
  min-width: 5.2em;
  background: var(--paper);
  color: var(--violet);
}

.agent-try__box :focus-visible {
  outline-color: var(--paper);
}

/* Office */
.office {
  padding-block: var(--section);
}

.office__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.office__head {
  max-width: 54rem;
}

.office__head p {
  max-width: 38em;
  margin-top: 1.25rem;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 6vw, 6rem);
  border-bottom: 1.5px solid var(--line);
}

.rooms li {
  position: relative;
  padding: 1.25rem 0 1.25rem 2rem;
  border-top: 1.5px solid var(--line);
}

.rooms li::before {
  content: '';
  position: absolute;
  top: 1.65rem;
  left: 0;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--area);
}

.rooms h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2em 0.6em;
  color: var(--violet);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
}

.rooms p {
  margin-top: 0.25rem;
  color: var(--muted);
}

/* Something you'd actually say to it, drawn as a message you've just sent. */
.rooms .rooms__ask {
  width: fit-content;
  margin-top: 0.7rem;
  padding: 0.5rem 0.85rem;
  border-radius: 1rem 1rem 1rem 0.3rem;
  background: color-mix(in srgb, var(--area) 14%, var(--card));
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 550;
  line-height: 1.35;
}

/* FAQ */
.faq {
  padding-block: var(--section);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.faq__list {
  border-bottom: 1.5px solid var(--line);
}

details {
  border-top: 1.5px solid var(--line);
}

summary {
  position: relative;
  padding: 1.15rem 2.5rem 1.15rem 0;
  color: var(--violet);
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--violet);
  transform: translateY(-50%);
  transition: background-color 160ms ease, transform 160ms ease;
}

details[open] summary::after {
  background: var(--violet);
  transform: translateY(-50%) scale(1.25);
}

details p {
  max-width: 40em;
  padding-bottom: 1.4rem;
}

/* Final */
.final {
  position: relative;
  overflow: hidden;
  padding-block: var(--section);
  background: var(--violet);
  color: var(--on-violet);
}

.final__burst {
  position: absolute;
  top: 50%;
  /* It's the logo mark now, so the whole of it stays on screen. */
  right: 1.5vw;
  width: clamp(14rem, 24vw, 22rem);
  transform: translateY(-50%);
}

.final__inner {
  position: relative;
}

.final h2 {
  /* Stays clear of the burst at every width where the burst is at full strength. */
  max-width: min(13.5em, 80%);
  color: var(--on-violet);
}

.final__lede {
  max-width: 28em;
  margin-top: 1.25rem;
  color: var(--on-violet-muted);
}

.final__perks {
  display: grid;
  gap: 0.65rem;
  max-width: 34rem;
  margin-top: 0.9rem;
  color: var(--on-violet-muted);
  line-height: 1.4;
}

.final__perks li {
  position: relative;
  padding-left: 1.45rem;
}

.final__perks li::before {
  content: '';
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 0.72em;
  height: 0.72em;
  border-radius: 50%;
  background: var(--paper);
}

.final__perks strong {
  color: var(--on-violet);
  font-weight: 700;
}

.waitlist--dark .waitlist__row {
  border-color: var(--card);
}

.waitlist--dark .waitlist__msg {
  color: #fff;
}

.demo :focus-visible,
.final :focus-visible,
.waitlist--dark .waitlist__row:focus-within {
  outline-color: var(--paper);
}

/* Footer */
.footer {
  padding-block: 2rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer img {
  --logo-height: 2.6rem;
  /* The tail of the j hangs below the letters, so the logo moves down until its letters sit on the text's line. */
  position: relative;
  top: calc(var(--logo-height) * 0.1934);
  width: auto;
  height: var(--logo-height);
}

.footer__end {
  margin-left: auto;
}

/* Reveal on scroll. The .js class is removed again if main.js fails to load. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Layout changes */
@media (max-width: 960px) {
  .hero__grid,
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  h1 {
    font-size: clamp(2.65rem, 7.4vw, 4.3rem);
  }

  .demo__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel--sees {
    order: 2;
  }

  .control__grid,
  .agent-try {
    grid-template-columns: minmax(0, 1fr);
  }

  .final h2 {
    max-width: 13.5em;
  }

  .final {
    padding-top: 11rem;
  }

  .final__burst {
    top: 1.5rem;
    right: var(--gutter);
    width: 9rem;
    transform: none;
  }
}

@media (max-width: 680px) {
  .problem__grid,
  .rooms {
    grid-template-columns: minmax(0, 1fr);
  }

  .rooms li + li {
    border-top: 1.5px solid var(--line);
  }
}

@media (max-width: 720px) {
  .footer__end {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  /* Phone browsers show about 660px once their toolbars are in the way. Keep the form in that space. */
  h1 {
    font-size: clamp(2.2rem, 10vw, 2.5rem);
  }

  .eyebrow {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
  }

  .lede {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .waitlist {
    margin-top: 1.25rem;
  }

  .nav__inner {
    padding-block: 0.6rem;
  }

  .hero {
    padding-top: 0.75rem;
  }

  .waitlist__row {
    flex-direction: column;
    padding: 0;
    border: 0;
    background: none;
  }

  .waitlist__row:focus-within {
    outline: none;
  }

  .waitlist input[type='email'] {
    padding: 0.85rem 1.1rem;
    border: 2px solid var(--violet);
    background: var(--card);
  }

  .waitlist input[type='email']:focus {
    outline: 3px solid var(--violet);
    outline-offset: 2px;
  }

  .waitlist--dark input[type='email']:focus {
    outline-color: var(--paper);
  }

  .waitlist--dark input[type='email'] {
    border-color: var(--card);
  }

  .waitlist .btn {
    width: 100%;
  }

  .ticker,
  .ticker-wrap {
    border-radius: 1.25rem;
  }

  .agent-try__box {
    flex-direction: column;
    align-items: stretch;
  }

}

/* The smallest phones can't fit the full-size logo and button side by side. */
@media (max-width: 360px) {
  .nav__logo img {
    height: 2.25rem;
  }

  .btn--small {
    padding: 0.6em 0.9em;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
