:root {
  --p-bg: #ffffff;
  --p-surface: #f5f5f5;
  --p-ink: #0a0a0a;
  --p-muted: #737373;
  --p-accent: #0297de;
  --p-accent-ink: #ffffff;
  --p-action: #0297de;
  --p-action-ink: #ffffff;
  --p-inv-bg: #171717;
  --p-inv-surface: #1e1e1e;
  --p-inv-ink: #ffffff;
  --p-inv-muted: #9a9a9a;
  --p-inv-accent: #ffffff;
  --p-inv-accent-ink: #111111;
  --p-inv-action: #ffffff;
  --p-inv-action-ink: #111111;
  --font-display: "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
  --font-mono:
    "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 104%;
  --ly-scale: 0.96;
}

/* the hero window: the assistant answering from the purchases beside it */
.hero--centred .hero__lead,
.hero--centred p.hero__lead {
  color: var(--ink);
  opacity: 1;
}
.hero__window {
  background: var(--ground, var(--p-surface));
}
.d-win {
  background: #fff;
  color: #16181a;
  border-radius: 12px;
  overflow: hidden;
  font: 400 14px/1.4 var(--font-text);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.06),
    0 30px 70px -30px rgb(0 0 0 / 0.35);
}
.d-win__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid rgb(0 0 0 / 0.07);
  font-size: 13px;
  color: #5d6268;
}
.d-win__bar b {
  font-weight: 500;
  color: #16181a;
}
.d-win__bar .sp {
  flex: 1;
}
.d-win__dots {
  display: flex;
  gap: 6px;
}
.d-win__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdfe2;
}
.d-win__body {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 420px;
}
.list {
  border-right: 1px solid rgb(0 0 0 / 0.07);
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 2px;
}
.list .q {
  height: 34px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgb(0 0 0 / 0.05);
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #6b7076;
  font-size: 13px;
}
.list .t {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 1px 10px;
  padding: 9px 8px;
  border-radius: 9px;
  font-size: 13px;
}
.list .t.is-on {
  background: rgb(26 75 224 / 0.08);
}
.list .t i {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 13px/1 var(--font-text);
  font-style: normal;
  color: #111;
}
.list .t b {
  font-weight: 500;
}
.list .t em {
  font-style: normal;
  color: #16181a;
  font-variant-numeric: tabular-nums;
}
.list .t span {
  grid-column: 2 / -1;
  color: #6b7076;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convo {
  display: grid;
  min-width: 0;
  align-content: start;
}
.d-chat {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 14px 18px;
  font-size: 14px;
}
.d-msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  background: #f1f2f4;
  line-height: 1.45;
}
.d-msg--me {
  justify-self: end;
  background: #111;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.d-msg--bot {
  border-bottom-left-radius: 6px;
}
.d-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #6b7076;
}
.d-tool::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
}
.acts {
  display: flex;
  gap: 8px;
}
.acts span {
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  background: #111;
  color: #fff;
}
.acts span + span {
  background: rgb(0 0 0 / 0.06);
  color: #16181a;
}
@media (max-width: 639px) {
  .d-win__body {
    grid-template-columns: 1fr;
  }
  .list {
    display: none;
  }
  .d-chat {
    font-size: 13px;
    padding: 12px 14px;
  }
  .d-win__bar .sp ~ span,
  .d-tool {
    display: none;
  }
}
/* the pricing numbers: each figure over a small pane */
.stat-cards .card {
  --c-text: var(--muted);
}
.stat-cards strong {
  display: block;
  font: var(--display-weight) var(--t-stat)/1 var(--font-display);
  letter-spacing: var(--display-tracking);
  font-stretch: var(--display-stretch);
}
.stat-cards .card > p {
  margin-top: var(--s-3);
}
.stat-cards .panel {
  --p-h: 236px;
}
.stat-cards .stage > .at-rise {
  --ax: 20px;
  --ay: 28px;
  --fit-max: 300px;
}
.d-pane {
  background: #fff;
  color: #16181a;
  border-radius: 12px;
  padding: 14px 16px;
  font: 400 13px/1.4 var(--font-text);
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.07),
    0 20px 40px -24px rgb(0 0 0 / 0.3);
}
.d-pane h5 {
  margin: 0 0 10px;
  font: 500 13px/1.3 var(--font-text);
  color: #5d6268;
}
.d-times {
  display: grid;
}
.d-times span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgb(0 0 0 / 0.07);
}
.d-times span:first-child {
  border-top: 0;
}
.d-times b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat-cards > .card {
  grid-column: 1 / -1;
}
@media (min-width: 1024px) {
  .stat-cards > .card {
    grid-column: auto / span 4;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .stat-cards > .card {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-auto-rows: min-content;
    column-gap: var(--s-6);
    align-content: start;
  }
  .stat-cards > .card > :not(.panel) {
    grid-column: 1;
  }
  .stat-cards > .card > .panel {
    grid-column: 2;
    grid-row: 1 / span 4;
    --p-h: 208px;
  }
}
@media (max-width: 639px) {
  .stat-cards .panel {
    --p-h: 148px;
  }
  .stat-cards .d-times span:nth-child(n + 3) {
    display: none;
  }
}
#features .panel {
  --p-h: 300px;
}
@media (max-width: 639px) {
  #features .panel {
    --p-h: 180px;
  }
  #features .stage {
    --fade-h: 40px;
  }
}
@media (max-width: 639px) {
  #statement .mo-la__type {
    font-size: 64px;
    line-height: 1;
  }
  #statement .mo-la__sub {
    margin-top: var(--s-6);
    font-size: 20px;
  }
}
.statement__pane {
  display: none;
}
@media (max-width: 639px) {
  .statement__pane {
    display: block;
    margin-top: var(--s-6);
  }
}
.menu-card .panel {
  --p-h: 200px;
  display: grid;
  place-items: center;
}
.menu-card .ui-logo {
  transform: scale(1.5);
}
.menu-card .d-pane {
  width: min(100% - 48px, 260px);
}

/* The wordmark uses the app's face, Bricolage Grotesque bold, not the page's display face */
.nav__logo {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.nav__logo {
  font-size: 20px;
}
.nav__logo img {
  height: 22px;
  width: 22px;
}
@media (max-width: 639px) {
  .nav__logo {
    font-size: 18px;
  }
}

.nav__logo {
  gap: 6px;
}

/* hero: light ground, a glowing orb on stepped rings, tight heavy headline */
.hero--orb {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff 0, #fff 20px, rgb(255 255 255 / 0) 90px),
    radial-gradient(60% 50% at 78% 30%, #ffd2c2 0%, transparent 70%),
    radial-gradient(70% 60% at 20% 10%, #c9e8f8 0%, transparent 70%),
    linear-gradient(180deg, #e3f1fa, #f4f9fd 70%, #fff);
}
.hero--orb .hero__c {
  align-items: flex-start;
  text-align: left;
  max-width: 560px;
  position: relative;
  z-index: 1;
}
.hero--orb h1 {
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero--orb .btn--primary {
  background: #0b0b10;
  color: #fff;
}
.hero--orb .btn-row,
.hero--orb .ea {
  justify-content: flex-start;
}
.hero__stats {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}
.hero__stats div {
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.1);
}
.hero__stats b {
  display: block;
  font: 500 28px/1.1 var(--font-display);
  letter-spacing: -0.03em;
}
.hero__stats span {
  font-size: 13px;
  color: var(--p-muted);
}
.orb {
  position: absolute;
  right: 4%;
  top: 40px;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  pointer-events: none;
}
/* the orb, after the reference: a hazy frosted ball that melts into white at its edge, on glassy stepped discs with white lit rims and faint ripples, all in the app's blue, orange and green */
@media (prefers-reduced-motion: reduce) {
}
/* the glassy discs and the faint ripples around them */
@media (prefers-reduced-motion: reduce) {
}
@media (max-width: 900px) {
  .orb {
    position: relative;
    right: auto;
    top: auto;
    width: 80%;
    margin: 24px auto 0;
  }
  .hero__stats {
    flex-wrap: wrap;
  }
}
.hero--orb .hero-text {
  align-items: flex-start;
  text-align: left;
}
.hero--orb .hero__c {
  margin: 0;
  width: 100%;
}
.hero--orb .hero__lead {
  max-width: 560px;
  margin-left: 0;
}
.hero--orb h1 {
  max-width: 520px;
}
.orb {
  right: max(4%, calc(50% - 640px));
  width: min(42vw, 540px);
}
/* between a tablet and a wide screen the picture takes 42% of the width, so the text column gives way to it instead of running under it */
@media (min-width: 901px) and (max-width: 1279px) {
  .hero--orb .hero__c {
    max-width: calc(48vw - 80px);
  }
  .hero--orb h1,
  .hero--orb .hero__lead {
    max-width: none;
  }
}
@media (max-width: 900px) {
  /* beats the desktop width above, which made the picture a thumbnail on a phone */
  .hero--orb .orb {
    right: auto;
    width: 100%;
    margin: 16px auto 0;
  }
}
.hero--orb .hero__c > * {
  margin-left: 0;
  margin-right: 0;
}
.hero--orb .btn-row,
.hero--orb .ea {
  justify-content: flex-start;
  width: auto;
}
.hero--orb .hero__c {
  justify-items: start;
}
.hero--orb .hero__window {
  display: none;
}
.hero--orb {
  height: auto;
  min-height: 0;
  padding-bottom: 0;
}
main > .hero.hero--orb,
main > .hero.hero--orb > .wrap {
  height: auto;
  min-height: 0;
}

/* header: no background over the light hero, links centred, black pill button */
.nav {
  background: none;
  border-bottom-color: transparent;
}
.nav__links {
  margin-inline: auto;
}
.nav__actions .btn--primary {
  background: #0b0b10;
  color: #fff;
}
@media (min-width: 1024px) {
  .nav__bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--s-4);
  }
  .nav__links {
    margin-inline: 0;
    justify-self: center;
  }
  .nav__actions {
    justify-self: end;
  }
}

/* on a phone the bar's button is the compact size, so the name, button and menu fit on one line */
@media (max-width: 1023px) {
  .nav:not(.is-open) .nav__bar .nav__actions .btn {
    height: 36px;
    padding-inline: 12px;
    font-size: 14px;
  }
}
@media (max-width: 359px) {
  .nav:not(.is-open) .nav__bar .nav__actions {
    display: none;
  }
  .nav:not(.is-open) .nav__bar .nav__actions + .nav__toggle {
    margin-left: auto;
  }
}

.nav__sheet-head {
  display: none;
}
/* the menu and close buttons are just the icon, no frame */
@media (max-width: 1023px) {
  .nav .nav__toggle {
    border: 0;
    border-radius: 12px;
  }
}
/* the closing section's button keeps its own width on a phone instead of stretching across */
.closing__cta .section-head--split > .btn {
  width: auto;
}

/* the open menu on a phone: the header itself grows into a rounded card, numbered links then the actions, over a lightly dimmed page */
@media (max-width: 1023px) {
  .nav.is-open {
    background: transparent;
    border-bottom-color: transparent;
  }
  .nav.is-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgb(10 10 10 / 0.22);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  .nav.is-open .nav__sheet-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0 18px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav__close {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  /* the card carries its own logo and close button, so the header's go while it's open */
  .nav.is-open .nav__bar > .nav__logo,
  .nav.is-open .nav__toggle {
    opacity: 0;
    transition: opacity 320ms ease;
  }
  /* while it closes the header comes back with it, so nothing pops in at the end */
  .nav.is-open.is-closing .nav__bar > .nav__logo,
  .nav.is-open.is-closing .nav__toggle {
    opacity: 1;
  }
  .nav.is-open.is-closing.is-scrolled {
    margin: 8px 12px 0;
    border: 1px solid rgb(10 10 10 / 0.08);
    border-radius: 16px;
    background: rgb(255 255 255 / 0.7);
  }
  .nav.is-open .nav__links {
    top: 8px;
    left: 12px;
    right: 12px;
    bottom: auto;
    height: 408px;
    padding: 68px 14px 0;
    border-radius: 28px;
    background: #fff;
    box-shadow:
      0 0 0 1px rgb(10 10 10 / 0.06),
      0 24px 60px -12px rgb(10 10 10 / 0.3);
    overflow: hidden;
    counter-reset: n;
  }
  .nav.is-open .nav__item {
    border-bottom: 0;
    counter-increment: n;
  }
  .nav.is-open .nav__link {
    height: 52px;
    gap: 14px;
    padding: 0 14px;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-radius: 14px;
  }
  .nav.is-open .nav__links .nav__link::before {
    content: counter(n, decimal-leading-zero);
    display: inline;
    position: static;
    height: auto;
    background: none;
    transform: none;
    font: 500 12px/1 var(--font-mono, ui-monospace, monospace);
    letter-spacing: 0.04em;
    color: rgb(10 10 10 / 0.35);
  }
  .nav.is-open .nav__link:active {
    background: rgb(23 23 23 / 0.07);
  }
  .nav.is-open .nav__actions {
    top: 300px;
    left: 28px;
    right: 28px;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }
  .nav.is-open .nav__actions .btn {
    height: 48px;
    padding-inline: 8px;
  }
  .nav.is-open .nav__actions .btn,
  .nav.is-open .nav__actions .nav__link {
    height: 44px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 12px;
  }
  .nav.is-open .nav__actions .nav__link {
    height: 40px;
    padding: 0;
    gap: 6px;
    justify-content: center;
    background: none;
  }
  .nav.is-open .nav__actions .nav__link::before {
    content: "Have an account?";
    display: inline;
    position: static;
    height: auto;
    background: none;
    transform: none;
    font-weight: 400;
    color: rgb(10 10 10 / 0.5);
  }
}
/* on a tablet the card is a compact panel under the right-hand buttons, not the full width */
@media (min-width: 640px) and (max-width: 1023px) {
  .nav.is-open .nav__links {
    left: auto;
    width: 400px;
  }
  .nav.is-open .nav__actions {
    left: auto;
    width: 356px;
  }
  .nav.is-open .nav__links {
    transform-origin: 100% 0;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open .nav__links {
    animation: nav-grow 320ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
    transform-origin: 50% 0;
  }
  .nav.is-open .nav__actions {
    animation: nav-fade 260ms ease 120ms backwards;
  }
  .nav.is-open::after {
    animation: nav-fade 200ms ease backwards;
  }
}
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open.is-closing .nav__links {
    animation: nav-shrink 320ms cubic-bezier(0.3, 0, 0.3, 1) forwards;
  }
  .nav.is-open.is-closing .nav__actions,
  .nav.is-open.is-closing::after {
    animation: nav-fade-out 300ms ease forwards;
  }
}
@keyframes nav-shrink {
  to {
    opacity: 0;
    transform: scale(0.96, 0.7);
  }
}
@keyframes nav-fade-out {
  to {
    opacity: 0;
  }
}
@keyframes nav-grow {
  from {
    opacity: 0;
    transform: scale(0.96, 0.7);
  }
}
@keyframes nav-fade {
  from {
    opacity: 0;
  }
}

/* buttons follow the app's Button (apps/app/src/components/ui/button.tsx): 10px radius, 36px high, 14px medium; default is the near-black primary, secondary the light grey */
.btn {
  height: 36px;
  padding: 0 12px;
  gap: 6px;
  border-radius: 10px;
  font: 500 14px/1 var(--font-text);
}
/* hover, press and focus follow the app's Button: a lit top edge and a soft drop shadow that deepens on hover, an inset press, and a 1px sink */
.btn {
  background-clip: border-box;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
.ea__button:focus-visible {
  outline: 3px solid rgb(115 115 115 / 0.5);
  outline-offset: 0;
}
.btn--primary,
.nav__actions .btn--primary,
.hero--orb .btn--primary,
.ea__button {
  background: #171717;
  color: #fafafa;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    inset 0 -1px 0 rgb(0 0 0 / 0.18),
    0 1px 2px rgb(0 0 0 / 0.25),
    0 3px 6px -2px rgb(0 0 0 / 0.2);
}
.btn--primary:hover,
.nav__actions .btn--primary:hover,
.hero--orb .btn--primary:hover,
.ea__button:hover:not(:disabled) {
  background: rgb(23 23 23 / 0.85);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 -1px 0 rgb(0 0 0 / 0.18),
    0 1px 2px rgb(0 0 0 / 0.25),
    0 6px 12px -3px rgb(0 0 0 / 0.3);
}
.btn--primary:active,
.nav__actions .btn--primary:active,
.hero--orb .btn--primary:active,
.ea__button:active:not(:disabled) {
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.3);
}
.btn--secondary {
  background: #f5f5f5;
  color: #171717;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 -1px 0 rgb(0 0 0 / 0.06),
    0 1px 2px rgb(0 0 0 / 0.08);
}
.btn--secondary:hover {
  background: color-mix(in oklab, #f5f5f5, #171717 5%);
}
.btn--secondary:active {
  box-shadow: inset 0 2px 3px rgb(0 0 0 / 0.12);
}
/* the kit's motion layer tints the hover toward the accent, lifts the button and shrinks it on press; the app's Button does none of that */
html:not([data-motion="off"]) {
  .btn {
    transition:
      background-color 150ms ease,
      box-shadow 150ms ease,
      transform 150ms ease;
  }
  .btn:hover {
    transform: none;
  }
  .btn:active {
    transform: translateY(1px);
  }
  .btn--primary:hover {
    background: rgb(23 23 23 / 0.85);
  }
  .btn--secondary:hover {
    background: color-mix(in oklab, #f5f5f5, #171717 5%);
    border-color: transparent;
  }
}
.btn svg {
  width: 16px;
  height: 16px;
}
.nav .btn,
.nav__actions .btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 14px;
}

/* a mailbox name with its logo */
.mb {
  white-space: nowrap;
}
.mb img {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  margin-right: 0.25em;
}

.eyebrow {
  margin: 0;
  font: 500 12px/1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p-muted);
}

/* nav links hover like the app's ghost Button, a touch darker so it shows on white: a light grey fill, no underline */
.nav__link::before,
.nav__link[aria-current="page"]::after {
  display: none;
}
.nav__link {
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__item:hover > .nav__link {
  background: rgb(23 23 23 / 0.07);
}

/* what shows past the page on a hard scroll: browsers read a plain colour off html and body (Safari reads body), so both are white, which is also the header's colour at the top; the hero's gradient starts just below it */
html,
body {
  background: #fff;
}
main > section:not(.hero) {
  background: #fff;
}

/* how it works: a few outlined cards, scattered and joined by dashed lines */
.flow {
  position: relative;
  aspect-ratio: 100 / 50;
  margin-top: var(--s-4);
}
.flow__edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.flow__edges path {
  fill: none;
  stroke: rgb(10 10 10 / 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}
.flow__node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 26%;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.1);
}
.flow__node b {
  font: 500 16px/1.2 var(--font-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.flow__node span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--p-muted);
}
@media (max-width: 899px) {
  .flow {
    aspect-ratio: auto;
    display: grid;
    gap: 12px;
    padding-left: 20px;
    border-left: 2px dashed rgb(10 10 10 / 0.25);
  }
  .flow__edges {
    display: none;
  }
  .flow__node {
    position: static;
    width: auto;
    transform: none;
  }
}

/* phone: the same graph stood upright. The inbox feeds Moneyboy AI, which glows, and its three results hang off a dashed line */
@media (max-width: 899px) {
  .flow {
    gap: 12px;
    padding-left: 0;
    border-left: 0;
  }
  .flow .flow__node {
    position: relative;
    left: auto !important; /* beats the inline desktop position */
    top: auto !important;
    animation: none;
  }
  .flow .flow__node:nth-of-type(-n + 2) {
    margin-bottom: 16px;
  }
  .flow .flow__node:nth-of-type(-n + 2)::after {
    content: "";
    position: absolute;
    left: 20px;
    top: 100%;
    height: 28px;
    border-left: 2px dashed rgb(10 10 10 / 0.25);
  }
  .flow .flow__node:nth-of-type(2) {
    background:
      radial-gradient(70% 90% at 90% 0%, #ffd2c2 0%, transparent 70%),
      radial-gradient(80% 90% at 10% 100%, #c9e8f8 0%, transparent 70%), #fff;
    box-shadow:
      0 0 0 1px rgb(2 151 222 / 0.35),
      0 16px 40px rgb(2 151 222 / 0.22);
  }
  .flow .flow__node:nth-of-type(n + 3) {
    margin-left: 40px;
  }
  .flow .flow__node:nth-of-type(n + 3)::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 50%;
    width: 20px;
    border-top: 2px dashed rgb(10 10 10 / 0.25);
  }
  .flow .flow__node:nth-of-type(n + 3)::after {
    content: "";
    position: absolute;
    left: -20px;
    top: -12px;
    height: calc(50% + 12px);
    border-left: 2px dashed rgb(10 10 10 / 0.25);
  }
  .flow .flow__node:nth-of-type(3)::after {
    top: -32px;
    height: calc(50% + 32px);
  }
}

/* sections take the height of their content instead of a full screen each */
main > :is(section, .section):not(.hero, .section--hero) {
  height: auto;
  min-height: 0;
  padding-block: 80px;
}
main > #statement {
  min-height: 420px;
}
@media (max-width: 639px) {
  main > :is(section, .section):not(.hero, .section--hero) {
    padding-block: 56px;
  }
}
main > :is(section, .section):not(.hero) > .wrap,
main > :is(section, .section):not(.hero) .group {
  height: auto;
  min-height: 0;
  flex: none;
  display: block;
}
main > :is(section, .section):not(.hero) .group > .fill,
main > :is(section, .section):not(.hero) .grid {
  flex: none;
  min-height: 0;
}

/* the panels and the closing section stand on the app's blue (series-1 #0297de, lightened), with the app's own ink */
html[data-ground="sky"] {
  --ground-bg: #cfe8f6;
  --ground-surface: #e6f3fb;
  --ground-ink: #0a0a0a;
  --ground-muted: #525252;
  --ground-accent: #0297de;
}

/* frosted once the page has scrolled under it (the class is set by a small script in the layout) */
.nav {
  transition:
    background-color 200ms ease,
    backdrop-filter 200ms ease,
    border-color 200ms ease,
    margin 200ms ease,
    border-radius 200ms ease;
}
.nav.is-scrolled {
  background: rgb(255 255 255 / 0.7);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
}
/* and it floats as a rounded bar; the open phone menu stays full width */
.nav.is-scrolled:not(.is-open) {
  margin: 8px 12px 0;
  border: 1px solid rgb(10 10 10 / 0.08);
  border-radius: 16px;
}
/* the content sits close to the bar's rounded ends */
.nav.is-scrolled:not(.is-open) .wrap,
.nav.is-scrolled.is-closing .wrap {
  width: calc(100% - 32px);
  max-width: none;
}
@media (max-width: 639px) {
  .nav .wrap {
    width: calc(100% - 32px);
  }
  .nav.is-scrolled:not(.is-open) .wrap,
  .nav.is-scrolled.is-closing .wrap {
    width: calc(100% - 20px);
  }
}

@media (min-width: 640px) {
  .nav {
    height: 60px;
  }
}

/* the graph moves: the dashes run along each line, from the inbox out to the answers, and the cards drift a little */
@media (prefers-reduced-motion: no-preference) {
  .flow__edges path {
    animation: flow-run 1.2s linear infinite;
  }
  .flow__node {
    animation: flow-drift 6s ease-in-out infinite;
  }
  .flow__node:nth-of-type(2) {
    animation-delay: -1.5s;
  }
  .flow__node:nth-of-type(3) {
    animation-delay: -3s;
  }
  .flow__node:nth-of-type(4) {
    animation-delay: -4.5s;
  }
}
@keyframes flow-run {
  to {
    stroke-dashoffset: -9;
  }
}
@keyframes flow-drift {
  50% {
    translate: 0 -6px;
  }
}

/* pricing: one receipt. The sign-up credit on the left, the terms as dotted lines on the right */
.receipt {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: var(--s-6);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.1);
}
.receipt__lead {
  display: grid;
  align-content: space-between;
  gap: 24px;
  padding: 32px;
  border-right: 1.5px dashed rgb(10 10 10 / 0.2);
}
.receipt__lead strong {
  display: block;
  margin-top: 12px;
  font: 500 clamp(56px, 7vw, 96px) / 1 var(--font-display);
  letter-spacing: -0.04em;
}
.receipt__lead p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--p-muted);
  font-size: 16px;
}
.receipt__lead .btn {
  justify-self: start;
}
.receipt__rows {
  margin: 0;
  padding: 32px;
  display: grid;
  align-content: center;
  gap: 14px;
}
.receipt__rows div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
}
.receipt__rows i {
  flex: 1;
  border-bottom: 1.5px dotted rgb(10 10 10 / 0.25);
  transform: translateY(-3px);
}
.receipt__rows dt {
  margin: 0;
}
.receipt__rows dd {
  margin: 0;
  font-weight: 500;
}
.receipt__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  padding: 20px 32px;
  border-top: 1.5px dashed rgb(10 10 10 / 0.2);
  font-size: 14px;
  color: var(--p-muted);
}
.receipt__foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--p-ink);
}
.receipt__foot span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #1baf7a;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.3 3 3 6-6.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (max-width: 899px) {
  .receipt {
    grid-template-columns: 1fr;
  }
  .receipt__lead {
    border-right: 0;
    border-bottom: 1.5px dashed rgb(10 10 10 / 0.2);
    padding: 24px;
  }
  .receipt__rows {
    padding: 24px;
  }
  .receipt__foot {
    padding: 20px 24px;
  }
}

/* FAQ items open and close */
.faq details.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
details.faq__item > summary::-webkit-details-marker {
  display: none;
}
details.faq__item > summary h3 {
  margin: 0;
}
details.faq__item > summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
  transition: transform 200ms ease;
}
details.faq__item[open] > summary::after {
  transform: rotate(45deg);
}
details.faq__item > p {
  margin-top: 12px;
}
.faq details.faq__item > summary {
  pointer-events: auto;
}
details.faq__item:not([open])::details-content {
  content-visibility: hidden;
}

/* product: what it does, as outlined cards with a small sample of each */
.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--s-6);
}
.feat {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.1);
  transition: box-shadow 200ms ease;
}
.feat:hover {
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.2);
}
.feat__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.1);
  margin-bottom: 8px;
}
.feat__icon svg {
  width: 20px;
  height: 20px;
}
.feat h3 {
  margin: 0;
  font: 500 18px/1.25 var(--font-text);
  letter-spacing: -0.01em;
}
.feat > p {
  margin: 0;
  color: var(--p-muted);
  font-size: 15px;
  line-height: 1.45;
}
.feat__demo {
  margin-top: 16px;
  display: grid;
  gap: 0;
  align-self: end;
  padding-top: 4px;
  border-top: 1px solid rgb(10 10 10 / 0.08);
  font-size: 14px;
}
.feat__demo .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(10 10 10 / 0.06);
}
.feat__demo .row:last-child {
  border-bottom: 0;
}
.feat__demo .row img {
  width: 16px;
  height: 16px;
  flex: none;
}
.feat__demo .row b {
  font-weight: 500;
}
.feat__demo .row span {
  margin-left: auto;
  color: var(--p-muted);
}
.feat__demo .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}
.feat__demo .chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.12);
}
.feat__demo .chips span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.feat__demo .meter {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}
.feat__demo .meter div {
  display: flex;
  justify-content: space-between;
}
.feat__demo .meter b {
  font-weight: 500;
}
.feat__demo .meter span {
  color: var(--p-muted);
}
.feat__demo .meter i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: #fc734d;
  width: var(--w);
}
.feat__demo .ask {
  display: grid;
  gap: 8px;
  padding-top: 14px;
}
.feat__demo .ask p {
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 92%;
  line-height: 1.4;
}
.feat__demo .ask p:first-of-type {
  justify-self: end;
  background: #171717;
  color: #fafafa;
}
.feat__demo .ask p:last-of-type {
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.12);
}
@media (max-width: 1023px) {
  .feats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639px) {
  .feats {
    grid-template-columns: 1fr;
  }
}

/* sections ease in as they scroll into view (set up by a small script in the layout; without it everything just shows) */
.rv {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-d, 0ms),
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-d, 0ms);
}
.rv.rv-in {
  opacity: 1;
  transform: none;
}

.feat__demo .note {
  margin-top: 12px;
  color: var(--p-muted);
  font-size: 13px;
  line-height: 1.4;
}

/* product card pictures */
.feat__demo .av {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c);
  font: 600 11px/1 var(--font-text);
  font-style: normal;
  color: #0a0a0a;
}
.feat__demo .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.12);
  font-size: 12px;
  white-space: nowrap;
}
.feat__demo .tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
}
.feat__demo .exp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgb(10 10 10 / 0.06);
}
.feat__demo .exp:last-of-type {
  border-bottom: 0;
}
.feat__demo .exp > div {
  flex: 1;
  min-width: 0;
  display: grid;
}
.feat__demo .exp b {
  font-weight: 500;
}
.feat__demo .exp div span {
  color: var(--p-muted);
  font-size: 12px;
}
.feat__demo .exp em {
  font-style: normal;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.feat__demo .exp em small {
  display: block;
  color: var(--p-muted);
  font-size: 11px;
  font-weight: 400;
}
.feat__demo .badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f5f5f5;
  font-size: 11px;
  white-space: nowrap;
}
.feat__demo .badge--ok {
  background: rgb(27 175 122 / 0.14);
  color: #107a55;
}
.feat__demo .badge--bad {
  background: rgb(227 73 72 / 0.12);
  color: #b42626;
}
.feat__demo .mail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgb(10 10 10 / 0.12);
}
.feat__demo .mail img {
  width: 18px;
  height: 18px;
  flex: none;
}
.feat__demo .mail div {
  display: grid;
}
.feat__demo .mail span {
  color: var(--p-muted);
  font-size: 12px;
}
.feat__demo .step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--p-muted);
  font-size: 12px;
}
.feat__demo .step .down {
  width: 14px;
  height: 14px;
}
.feat__demo .tool {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--p-muted);
  font-size: 12px;
}
.feat__demo .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1baf7a;
  box-shadow: 0 0 0 3px rgb(27 175 122 / 0.2);
  flex: none;
}
.feat__demo .pair {
  display: inline-flex;
  flex: none;
}
.feat__demo .pair i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(10 10 10 / 0.1),
    0 2px 6px rgb(10 10 10 / 0.1);
}
.feat__demo .pair__b {
  margin-left: -8px;
}
.feat__demo .pair svg {
  width: 14px;
  height: 14px;
}
.feat__demo .pair img {
  width: 16px;
  height: 16px;
}
.feat__demo .tool--head {
  color: var(--p-ink);
  font-weight: 500;
  font-size: 13px;
}
.feat__demo .note--top {
  margin: 12px 0 0;
  color: #b4421f;
  font-weight: 500;
}
.feat__demo .meter {
  padding-top: 12px;
}
.feat__demo .meter i {
  background: var(--b);
}

.feat__demo .badge {
  color: #404040;
}
.feat__demo .badge--info {
  background: rgb(2 151 222 / 0.12);
  color: #0a6fa3;
}

/* the assistant card, as the app's chat looks: a blue bubble for you, the logo and a quiet tool call for the reply */
.feat__demo .chat {
  display: grid;
  gap: 14px;
  padding-top: 14px;
}
.feat__demo .chat__me {
  justify-self: end;
  max-width: 85%;
  margin: 0;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: linear-gradient(
    135deg,
    #0297de,
    color-mix(in oklab, #0297de, black 18%)
  );
  box-shadow: 0 1px 3px rgb(2 151 222 / 0.25);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.feat__demo .chat__bot {
  display: flex;
  gap: 10px;
}
.feat__demo .chat__logo {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}
.feat__demo .chat__bot > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.feat__demo .chat__tool {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  color: var(--p-muted);
  font-size: 12px;
}
.feat__demo .chat__tool b {
  font-weight: 500;
}
.feat__demo .chat__tool code {
  font: inherit;
  font-family: var(--font-mono);
}
.feat__demo .chat__tool span {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.feat__demo .chat__tool svg {
  width: 14px;
  height: 14px;
}
.feat__demo .chat__bot p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.feat__demo .chat__bot strong {
  font-weight: 600;
}

/* the sections after the hero carry the app's colours as soft washes, so they are not plain white; each fades back to white at its top and bottom so the seams stay quiet */
main > #features {
  background:
    radial-gradient(45% 40% at 8% 30%, rgb(2 151 222 / 0.16), transparent 70%),
    radial-gradient(
      40% 36% at 94% 78%,
      rgb(252 115 77 / 0.13),
      transparent 70%
    ),
    linear-gradient(180deg, #fff 0%, #f1f8fd 22%, #f1f8fd 78%, #fff 100%);
}
main > #product {
  background:
    radial-gradient(42% 36% at 92% 18%, rgb(237 161 0 / 0.15), transparent 70%),
    radial-gradient(44% 38% at 6% 84%, rgb(252 115 77 / 0.14), transparent 70%),
    linear-gradient(180deg, #fff 0%, #fff7f0 22%, #fff7f0 78%, #fff 100%);
}
main > #statement {
  background:
    radial-gradient(
      50% 44% at 50% 50%,
      rgb(27 175 122 / 0.12),
      transparent 72%
    ),
    linear-gradient(180deg, #fff 0%, #f2fbf7 30%, #f2fbf7 70%, #fff 100%);
}
main > #pricing {
  background:
    radial-gradient(
      44% 38% at 90% 22%,
      rgb(27 175 122 / 0.17),
      transparent 70%
    ),
    radial-gradient(40% 36% at 8% 80%, rgb(2 151 222 / 0.13), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f1faf6 22%, #f1faf6 78%, #fff 100%);
}
main > #faq {
  background:
    radial-gradient(44% 40% at 10% 24%, rgb(2 151 222 / 0.14), transparent 70%),
    radial-gradient(40% 36% at 92% 80%, rgb(237 161 0 / 0.12), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f1f8fd 22%, #f1f8fd 78%, #fff 100%);
}

/* early access, after the Dribbble reference: a frosted field with an icon, a consent line under it, and a full-width black button */
.ea {
  width: 100%;
  max-width: 440px;
  margin-top: 8px;
}
.ea__body {
  display: grid;
  gap: 14px;
}
.ea__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.55);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.7),
    0 0 0 1px rgb(10 10 10 / 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #737373;
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}
.ea__field:focus-within {
  background: rgb(255 255 255 / 0.85);
  box-shadow:
    inset 0 0 0 1px #fff,
    0 0 0 1px rgb(10 10 10 / 0.25);
}
.ea__icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.ea__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  font: 400 16px/1 var(--font-text);
  color: #0a0a0a;
  outline: none;
}
/* browsers paint autofilled fields yellow or blue; the long delay keeps the field's own look */
.ea__input:-webkit-autofill,
.ea__input:-webkit-autofill:hover,
.ea__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0a0a0a;
  caret-color: #0a0a0a;
  transition: background-color 600000s 0s;
}
.ea__input::placeholder {
  color: #8a8a8a;
}
.ea__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #0a0a0a;
  cursor: pointer;
}
.ea__consent input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.8);
  box-shadow: inset 0 0 0 1px rgb(10 10 10 / 0.18);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.ea__consent input:checked {
  background: #171717;
  box-shadow: none;
}
.ea__consent input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.ea__consent input:focus-visible {
  outline: 2px solid #0297de;
  outline-offset: 2px;
}
.ea__consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ea__button {
  height: 44px;
  border: 0;
  border-radius: 12px;
  font: 500 15px/1 var(--font-text);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}
.ea__button:active:not(:disabled) {
  transform: translateY(1px);
}
.ea__button:disabled {
  opacity: 0.6;
  cursor: default;
}
.ea__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.ea__note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--p-muted);
}
.ea__note:empty {
  display: none;
}
.ea--bad .ea__note {
  color: #b42626;
}
.ea__done {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ea__tick {
  flex: none;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #107a55;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ea__tick circle {
  fill: rgb(16 122 85 / 0.1);
  stroke-width: 1.5;
}
.ea__title {
  margin: 0;
  font: 500 20px/1.2 var(--font-display);
  letter-spacing: var(--display-tracking);
  color: #0a0a0a;
}
.ea--done .ea__note {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--p-muted);
}
@media (prefers-reduced-motion: no-preference) {
  .ea__tick circle {
    stroke-dasharray: 140;
    animation: ea-draw 600ms ease-out both;
  }
  .ea__tick path {
    stroke-dasharray: 40;
    animation: ea-draw 400ms 350ms ease-out both;
  }
  .ea__title,
  .ea--done .ea__note {
    animation: ea-rise 500ms 500ms ease-out both;
  }
  .ea--done .ea__note {
    animation-delay: 650ms;
  }
}
@keyframes ea-draw {
  from {
    stroke-dashoffset: 140;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes ea-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.hero--orb .ea {
  justify-self: stretch;
}
.ea-slot {
  min-height: 168px;
  scroll-margin-top: 96px; /* the fixed header would cover it when a link jumps here */
}
.ea-slot:has(.ea) {
  min-height: 0;
}
.hero--orb .ea-slot {
  justify-self: stretch;
}

/* the hero object: an envelope holding the spending ring, in real 3D (CSS transforms), sized in container units so it scales with the page. The envelope sits 26cqw behind the ring (and is drawn bigger to look the same size), so the turning ring is never cut by it */
.o3 {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1;
}
.o3__stage {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 120cqw;
  transform-style: preserve-3d;
}
.o3::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(28% 28% at 34% 26%, #ffd2c2, transparent 100%),
    radial-gradient(30% 30% at 66% 66%, #c9e8f8, transparent 100%),
    radial-gradient(22% 22% at 24% 66%, #b9ecd6, transparent 100%);
}
.o3__ring {
  position: absolute;
  left: 36cqw;
  top: 12cqw;
  width: 58cqw;
  height: 58cqw;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-26deg);
}
.o3__layers {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}
.o3__layers i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    #0297de 0 37.4%,
    #fff 37.4% 38.2%,
    #fc734d 38.2% 60.4%,
    #fff 60.4% 61.2%,
    #1baf7a 61.2% 79.4%,
    #fff 79.4% 80.2%,
    #eda100 80.2% 99.4%,
    #fff 99.4% 100%
  );
  -webkit-mask: radial-gradient(
    circle closest-side,
    transparent 52%,
    #000 52.4%
  );
  mask: radial-gradient(circle closest-side, transparent 52%, #000 52.4%);
  transform: translateZ(calc((var(--i) - 8) * 0.6cqw));
  filter: brightness(calc(0.74 + var(--i) * 0.0173));
}
.o3__amt {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  transform: translateZ(1cqw);
}
.o3__amt strong {
  font: 500 5.4cqw/1 var(--font-text);
  letter-spacing: -0.03em;
  color: #0a0a0a;
}
.o3__amt span {
  margin-top: 1cqw;
  font-size: 2.3cqw;
  color: #737373;
}
.o3__env {
  position: absolute;
  left: -6cqw;
  top: 50cqw;
  width: 58.4cqw;
  height: 38.9cqw;
  transform-style: preserve-3d;
  transform: translateZ(-26cqw) rotateX(12deg) rotateY(24deg) rotateZ(-6deg);
}
.o3__env > * {
  position: absolute;
  inset: 0;
}
.o3__back {
  border-radius: 2cqw;
  box-shadow: 0 3cqw 4cqw -1cqw rgb(10 10 10 / 0.22);
  background: linear-gradient(180deg, #8ec9f0, #5aaee6);
}
.o3__flap {
  bottom: 100%;
  top: auto;
  height: 60%;
  transform: translateZ(0.2cqw);
}
.o3__letter {
  inset: -22% 8% 22%;
  display: grid;
  align-content: start;
  gap: 1.6cqw;
  padding: 3cqw;
  border-radius: 1.4cqw;
  background: #fff;
  transform: translateZ(1cqw);
}
.o3__letter b {
  font: 600 2.3cqw/1.2 var(--font-text);
  letter-spacing: -0.01em;
  color: #0a0a0a;
  white-space: nowrap;
}
.o3__letter u {
  height: 1.2cqw;
  border-radius: 1cqw;
  background: #cfe6f8;
}
.o3__letter u:nth-of-type(2) {
  width: 70%;
  background: #ffd2c2;
}
.o3__letter u:nth-of-type(3) {
  width: 55%;
  background: #b9ecd6;
}
.o3__front {
  transform: translateZ(2cqw);
}
.o3__flap svg,
.o3__front svg {
  display: block;
  width: 100%;
  height: 100%;
}
.o3__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.6cqw 2.4cqw;
  border-radius: 2.2cqw;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(10 10 10 / 0.08),
    0 2cqw 4cqw -1cqw rgb(10 10 10 / 0.18);
  font-size: 2.5cqw;
  white-space: nowrap;
}
.o3__chip i {
  width: 1.8cqw;
  height: 1.8cqw;
  border-radius: 50%;
  background: var(--c);
}
.o3__chip b {
  margin-left: 1.6cqw;
  font-weight: 600;
}
.o3__chip--2 {
  left: 60cqw;
  top: 80cqw;
  transform: translateZ(12cqw);
}
.o3__chip--3 {
  left: 36cqw;
  top: 85cqw;
  transform: translateZ(8cqw);
}
@media (prefers-reduced-motion: no-preference) {
  .o3__ring {
    animation: o3-turn 9s ease-in-out infinite alternate;
  }
  .o3__env {
    animation: o3-float 7s ease-in-out infinite alternate;
  }
  .o3__chip {
    animation: o3-bob 6s ease-in-out infinite alternate;
  }
  .o3__chat {
    animation: o3-bob 7s ease-in-out infinite alternate -1s;
  }
  .o3__chip--2 {
    animation-delay: -2s;
  }
  .o3__chip--3 {
    animation-delay: -4s;
  }
}
@keyframes o3-turn {
  from {
    transform: rotateX(10deg) rotateY(-34deg);
  }
  to {
    transform: rotateX(6deg) rotateY(16deg);
  }
}
@keyframes o3-float {
  from {
    transform: translateZ(-26cqw) rotateX(12deg) rotateY(24deg) rotateZ(-6deg)
      translateY(0);
  }
  to {
    transform: translateZ(-26cqw) rotateX(8deg) rotateY(14deg) rotateZ(-4deg)
      translateY(-2cqw);
  }
}
@keyframes o3-bob {
  to {
    translate: 0 -1.2cqw;
  }
}

/* the chat: a question and its answer, floating at the ring's left, to show you can ask about your money */
.o3__chat {
  position: absolute;
  left: 12cqw;
  top: 6cqw;
  width: 32cqw;
  display: grid;
  gap: 1.6cqw;
  transform: translateZ(8cqw) rotateY(16deg) rotateX(3deg) rotateZ(-3deg);
}
.o3__chat p {
  margin: 0;
  font-size: 2.2cqw;
  line-height: 1.3;
}
.o3__q {
  justify-self: end;
  max-width: 24cqw;
  padding: 1.8cqw 2.4cqw;
  border-radius: 2.6cqw 2.6cqw 0.8cqw 2.6cqw;
  background: #171717;
  color: #fafafa;
  box-shadow: 0 2cqw 4cqw -1cqw rgb(10 10 10 / 0.3);
}
.o3__a {
  display: flex;
  gap: 1.4cqw;
  align-items: flex-start;
  padding: 1.8cqw 2.4cqw;
  border-radius: 2.6cqw 2.6cqw 2.6cqw 0.8cqw;
  background: #fff;
  box-shadow:
    0 0 0 1px rgb(10 10 10 / 0.08),
    0 2cqw 4cqw -1cqw rgb(10 10 10 / 0.18);
}
.o3__a svg {
  flex: none;
  width: 3cqw;
  height: 3cqw;
}
.o3__a b {
  font-weight: 600;
}
