@font-face {
  font-family: Bricolage;
  src: url(bricolage-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  font:
    16px/1.5 Bricolage,
    system-ui,
    sans-serif;
  color: #15181a;
  background: #f3f4f0;
  --green: #095c42;
  --line: #d4d9d1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.bar,
main,
footer {
  width: min(1176px, 90%);
  margin: auto;
}
.bar,
footer,
.links,
.controls,
.brand,
.demohead {
  display: flex;
  align-items: center;
}
.bar {
  height: 82px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  gap: 10px;
  font-size: 19px;
  font-weight: 660;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 31px;
  border-radius: 22%;
}
.parent,
a {
  color: var(--green);
}
a {
  text-underline-offset: 4px;
}
.parent {
  font-size: 14px;
}
.bar .top {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.hero {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  align-items: center;
  gap: clamp(30px, 5vw, 84px);
  padding: clamp(40px, 6vw, 87px) 0 24px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(42px, 4.9vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.48;
  color: #46534b;
  max-width: 37ch;
  margin: 24px 0;
}
.steps {
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 18px;
}
.fine {
  font-size: 14px;
  line-height: 1.5;
  color: #5d6a62;
  max-width: 44ch;
  margin-top: 18px;
}
.links {
  gap: 24px;
  flex-wrap: wrap;
}
.primary {
  background: var(--green);
  color: white;
  text-decoration: none;
  border-radius: 9px;
  padding: 13px 20px;
  font-weight: 600;
}
.quiz-link {
  margin-bottom: 34px;
}
.demo {
  background: #fff;
  border: 1px solid #cbd4cc;
  border-radius: 21px;
  overflow: hidden;
  box-shadow: 0 18px 54px -28px #254b3a66;
}
.demohead {
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: #59675e;
  font-size: 12px;
}
.demohead .brand {
  font: 600 14px system-ui;
  color: #181e1b;
}
.demohead img {
  width: 23px;
}
.stage {
  min-height: 365px;
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  position: relative;
  background: #e4ede6;
}
.portrait {
  position: relative;
  overflow: hidden;
  background: #265b4e;
}
.portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sweep {
  position: absolute;
  left: 0;
  right: 0;
  top: 8%;
  height: 2px;
  background: #d1ffd8;
  box-shadow: 0 -8px 18px 5px #a8e3b966;
  animation: sweep 3.5s ease-in-out infinite;
}
.stage:not([data-step="selfie"]) .sweep {
  display: none;
}
@keyframes sweep {
  50% {
    top: 90%;
  }
}
.scene {
  padding: clamp(16px, 2vw, 32px);
  align-self: center;
}
.stage h2 {
  font-size: clamp(25px, 2.4vw, 35px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 8px 0 12px;
}
.scene p {
  font-size: 16px;
  color: #405448;
}
.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}
.layers button,
.demo-action {
  font: inherit;
  font-size: 13px;
  border: 1px solid #b3c4b6;
  border-radius: 6px;
  background: #f8fbf8;
  color: #094f39;
  padding: 5px 8px;
  cursor: pointer;
}
.layers button[aria-pressed="true"] {
  background: #095c42;
  border-color: #095c42;
  color: white;
}
.demo-action {
  margin-top: 16px;
}
.controls {
  gap: 5px;
  padding: 12px;
}
.controls button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: transparent;
  border-radius: 7px;
  padding: 8px 12px;
  cursor: pointer;
  color: #405448;
}
.controls button[aria-pressed="true"] {
  background: #e4ede6;
  color: #094f39;
}
.controls #play {
  margin-left: auto;
  min-width: 38px;
}
.scene:not([hidden]) {
  animation: appear 0.35s ease-out;
}
@keyframes appear {
  from {
    opacity: 0.2;
    transform: translateY(5px);
  }
}
body.paused .sweep {
  animation-play-state: paused;
}
.explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9%;
  border-top: 1px solid var(--line);
  padding: 38px 0 60px;
}
.explain h2 {
  font-size: 25px;
  letter-spacing: -0.04em;
}
.explain p {
  max-width: 56ch;
  color: #536057;
  margin: 9px 0;
}
.explain a {
  font-size: 14px;
}
footer {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0 40px;
}
footer p,
footer a {
  font-size: 12px;
}
footer p {
  color: #657068;
  margin-top: 5px;
}
footer nav {
  display: flex;
  gap: 14px;
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .lede {
    max-width: 46ch;
  }
  .stage {
    min-height: 330px;
  }
  .explain {
    gap: 30px;
  }
  .bar {
    height: 68px;
  }
}
@media (max-width: 520px) {
  .stage {
    min-height: 294px;
    grid-template-columns: minmax(0, 48fr) minmax(0, 52fr);
  }
  h1 {
    font-size: clamp(42px, 11vw, 58px);
  }
  .stage h2 {
    font-size: 24px;
  }
  .scene {
    padding: 14px;
  }
  .scene p {
    font-size: 14px;
  }
  .demohead {
    padding: 13px;
  }
  .explain {
    grid-template-columns: 1fr;
  }
  .controls {
    padding: 8px;
  }
  .controls button {
    padding: 8px 10px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .bar .brand {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.chat-line {
  display: flex;
  justify-content: flex-end;
  padding: 12px 18px;
  background: #fff;
}
.chat-line span {
  font: 14px/1.4 system-ui;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: #f1f3ef;
  color: #333c34;
}
