/*
 * The industry pages' hero window — built by lib/pages/industry.ts.
 *
 * The window of Build with MiTrust (public/build/build.css), flat: everything
 * inside it is sized in --u, one 413th of its width, so it keeps the design's
 * proportions at any size. The resting state is the no-JavaScript one: the
 * first use case's invitation.
 */
.mt-uc {
  /* A length, not a percentage: the window's height and type are worked out from it. */
  --w: 360px;
  --u: calc(var(--w) / 413);
  --blue: #1C63EF;
  --ease: cubic-bezier(.2, .7, .2, 1);
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  width: 100%;
  font-family: 'Onest Variable', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #171719;
}

.mt-uc-window {
  position: relative;
  display: flex; flex-direction: column;
  width: var(--w); height: calc(560 * var(--u));
  background: #fff;
  border: 1px solid rgba(151, 151, 151, .35);
  border-radius: calc(14 * var(--u));
  box-shadow: 0 40px 80px -30px rgba(17, 34, 105, .25), 0 12px 24px -12px rgba(17, 34, 105, .12);
  overflow: hidden;
}

.mt-uc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(40 * var(--u)) calc(48 * var(--u)) 0 calc(41 * var(--u));
}
.mt-uc-brand {
  display: grid; place-items: center;
  width: calc(156 * var(--u)); height: calc(46 * var(--u));
  border: 1px dashed #CACBCC; border-radius: calc(12 * var(--u));
  color: #A4A4A7; font-size: calc(12 * var(--u)); font-weight: 500; letter-spacing: -.023em;
}
.mt-uc-wordmark { display: block; width: calc(108 * var(--u)); height: auto; }
/* The last screen is back on the client's own page, so MiTrust's wordmark
   leaves and the client's logo takes the middle (Martin, 13 November). */
.mt-ux[data-step="4"] .mt-uc-head { justify-content: center; padding-left: calc(48 * var(--u)); }
.mt-ux[data-step="4"] .mt-uc-wordmark { display: none; }

.mt-uc-screens { position: relative; flex: 1; }
.mt-uc-screen {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
  text-align: center;
}
.mt-uc-screen.is-on { opacity: 1; transform: none; transition-delay: .08s; }

/* The invitation */
.mt-uc-art {
  position: absolute; left: 0; right: 0; top: calc(8 * var(--u)); height: calc(220 * var(--u));
  display: grid; place-items: center;
}
.mt-uc-art > img { display: block; width: calc(190 * var(--u)); height: auto; }
.mt-uc-line {
  position: absolute; left: 50%; top: calc(240 * var(--u));
  width: calc(300 * var(--u)); margin: 0;
  transform: translateX(-50%);
  font-size: calc(17.5 * var(--u)); font-weight: 500; line-height: calc(22.5 * var(--u)); letter-spacing: -.023em;
}
.mt-uc-cta {
  position: absolute; left: 50%; top: calc(350 * var(--u));
  display: grid; place-items: center;
  width: calc(279 * var(--u)); height: calc(44 * var(--u));
  transform: translateX(-50%);
  border: 1px solid rgba(0, 0, 0, .1); border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-ink);
  box-shadow: 0 calc(9 * var(--u)) calc(14 * var(--u)) calc(-4 * var(--u)) rgba(0, 0, 0, .17);
  font-size: calc(16 * var(--u)); font-weight: 700; letter-spacing: -.023em;
}

.mt-uc-doc {
  position: relative; display: block;
  width: calc(83 * var(--u)); height: calc(108 * var(--u));
  border-radius: calc(10 * var(--u));
  background: #fff;
  box-shadow: 0 calc(9 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .08), 0 0 0 1px rgba(0, 0, 0, .03);
  transform: rotate(-4deg);
}
.mt-uc-doc i { position: absolute; left: calc(11 * var(--u)); height: calc(13 * var(--u)); border-radius: calc(5 * var(--u)); background: rgba(0, 0, 0, .07); }
.mt-uc-doc i:nth-child(1) { top: calc(14 * var(--u)); width: calc(59 * var(--u)); }
.mt-uc-doc i:nth-child(2) { top: calc(34 * var(--u)); width: calc(44 * var(--u)); }
.mt-uc-doc b { position: absolute; right: calc(9 * var(--u)); bottom: calc(12 * var(--u)); width: calc(20 * var(--u)); height: calc(20 * var(--u)); color: var(--accent); }
.mt-uc-doc b svg, .mt-uc-portrait b svg { display: block; width: 100%; height: 100%; }
.mt-uc-docs { display: flex; }
.mt-uc-docs .mt-uc-doc { width: calc(64 * var(--u)); height: calc(83 * var(--u)); transform: none; box-shadow: 0 calc(8 * var(--u)) calc(28 * var(--u)) calc(-6 * var(--u)) rgba(0, 0, 0, .1), 0 0 0 1px rgba(0, 0, 0, .09); }
.mt-uc-docs .mt-uc-doc + .mt-uc-doc { margin-left: calc(-38 * var(--u)); margin-top: calc(4 * var(--u)); }
.mt-uc-docs .mt-uc-doc i { left: calc(8 * var(--u)); height: calc(10 * var(--u)); }
.mt-uc-docs .mt-uc-doc i:nth-child(1) { top: calc(11 * var(--u)); width: calc(45 * var(--u)); }
.mt-uc-docs .mt-uc-doc i:nth-child(2) { top: calc(26 * var(--u)); width: calc(34 * var(--u)); }
.mt-uc-docs .mt-uc-doc b { width: calc(15 * var(--u)); height: calc(15 * var(--u)); right: calc(7 * var(--u)); bottom: calc(9 * var(--u)); }

.mt-uc-portrait { position: relative; display: block; width: calc(140 * var(--u)); height: calc(140 * var(--u)); }
.mt-uc-portrait img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.mt-uc-portrait b {
  position: absolute; right: 0; bottom: 0;
  display: grid; place-items: center;
  width: calc(35 * var(--u)); height: calc(35 * var(--u));
  border: calc(4 * var(--u)) solid #fff; border-radius: 50%;
  background: var(--accent); color: #fff;
}
.mt-uc-portrait b svg { width: 60%; height: 60%; }

/* The consent screen: what the user is about to share */
.mt-uc-consent { --navy: #09215F; }
.mt-uc-steps {
  display: flex; justify-content: center; align-items: center;
  list-style: none; margin: calc(44 * var(--u)) 0 0; padding: 0;
  font-size: calc(13.4 * var(--u)); font-weight: 500; line-height: calc(16 * var(--u));
}
.mt-uc-steps li { display: flex; align-items: center; color: #A4A4A7; }
.mt-uc-steps li.is-on { color: #000; }
.mt-uc-steps li + li::before { content: ''; width: calc(28 * var(--u)); height: 1px; margin: 0 calc(10 * var(--u)); background: #DADBDE; }
.mt-uc-data {
  width: calc(303 * var(--u));
  margin: calc(32 * var(--u)) auto 0; padding: 0 calc(12 * var(--u));
  list-style: none; text-align: left;
  border: 1px solid #E8E8EA; border-radius: calc(10 * var(--u));
}
.mt-uc-data li {
  display: flex; align-items: flex-start; gap: calc(8 * var(--u));
  padding: calc(11 * var(--u)) 0 calc(12 * var(--u));
}
.mt-uc-data li + li { border-top: 1px solid #F0F0F2; }
.mt-uc-data svg { width: calc(13 * var(--u)); height: calc(13 * var(--u)); margin-top: calc(4 * var(--u)); color: var(--navy); flex-shrink: 0; }
.mt-uc-data b { display: block; font-size: calc(15 * var(--u)); font-weight: 500; line-height: calc(20 * var(--u)); color: #2B2C30; }
.mt-uc-data i {
  display: block; margin-top: calc(2 * var(--u));
  font: 400 calc(13 * var(--u)) / 1.4 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-style: normal; color: #6B6C75;
}
.mt-uc-badges {
  display: flex; justify-content: center; gap: calc(14 * var(--u));
  margin: calc(28 * var(--u)) 0 0;
  color: rgba(57, 59, 70, .6); font-size: calc(10.5 * var(--u)); font-weight: 500;
}
.mt-uc-share {
  display: flex; align-items: center;
  width: calc(289 * var(--u)); height: calc(60 * var(--u)); margin: calc(20 * var(--u)) auto 0; padding: calc(4 * var(--u));
  border-radius: 999px; background: #fff;
  box-shadow: 0 calc(6 * var(--u)) calc(24 * var(--u)) rgba(9, 33, 95, .1), 0 0 0 1px rgba(9, 33, 95, .04);
  color: var(--navy); font-size: calc(13.4 * var(--u)); font-weight: 500;
}
.mt-uc-share i {
  display: grid; place-items: center; flex-shrink: 0;
  width: calc(52 * var(--u)); height: calc(52 * var(--u)); border-radius: 50%;
  background: var(--navy); color: #fff;
}
.mt-uc-share i svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.mt-uc-share span { flex: 1; text-align: center; padding-right: calc(40 * var(--u)); }

.mt-uc-built { position: absolute; left: 0; right: 0; bottom: calc(14 * var(--u)); margin: 0 auto; width: calc(118 * var(--u)); height: auto; }

/* "Featured use cases", now an <h2>: keep the eyebrow's look */
h2.mt-uc-eyebrow { margin: 0; }
#use-cases { scroll-margin-top: 80px; }

@media (max-width: 767px) {
  .mt-uc { --w: min(340px, calc(100vw - 32px)); margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt-uc-screen { transition: none; }
}


/* The journey running in the window (public/js/journey.js): the still
   screens give way to it. Its ending carries the badge itself; the other
   screens need the room for their buttons. */
.mt-uc.has-journey .mt-uc-screen { display: none; }
.mt-uc.has-journey .mt-uc-built { display: none; }
