:root {
  --ink: #16211d;
  --muted: #5a6b63;
  --muted-dark: rgba(243, 240, 233, 0.68);
  --cream: #f6f2ea;
  --cream-2: #efe9dd;
  --paper: #fcfaf5;
  --green: #008169;
  --green-deep: #0a4a3c;
  --green-900: #063a30;
  --soft: #c1f3ad;
  --soft-2: #ddf4cb;
  --blue: #1c74d9;
  --line: rgba(10, 74, 60, 0.15);
  --line-2: rgba(10, 74, 60, 0.28);
  --line-dark: rgba(255, 255, 255, 0.16);
  --type-mega: 126px;
  --type-title: 56px;
  --type-subtitle: 31px;
  --type-body: 24px;
  --type-small: 18px;
  --type-kicker: 19px;
  --pad-x: 104px;
  --pad-y: 82px;
  --bar-h: 48px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #061510;
  color: var(--ink);
  font-family: "Hanken Grotesk", sans-serif;
  -webkit-font-smoothing: antialiased;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

a {
  color: inherit;
  text-decoration: none;
}

.version-bar {
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: #05241d;
  color: #f3f0e9;
  font-size: 13px;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(193, 243, 173, 0.16);
  position: relative;
  z-index: 20;
}

.version-bar strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.version-bar nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.version-bar a,
.version-bar span.current {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(243, 240, 233, 0.78);
}

.version-bar a:hover {
  border-color: rgba(193, 243, 173, 0.35);
  color: #fff;
}

.version-bar span.current {
  background: rgba(193, 243, 173, 0.16);
  color: var(--soft);
  font-weight: 700;
}

.version-bar .badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.version-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.version-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #061510;
}

.stage-wrap {
  height: calc(100% - var(--bar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#app.is-principal .stage-wrap {
  height: 100%;
}

.stage {
  width: 1920px;
  height: 1080px;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  transform-origin: center center;
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
}

.slide.is-on {
  display: block;
}

.slide > section {
  height: 100%;
  width: 100%;
}

.hit {
  position: absolute;
  top: var(--bar-h);
  bottom: 0;
  width: 10%;
  z-index: 8;
  cursor: pointer;
  background: transparent;
}

.hit-prev {
  left: 0;
}

.hit-next {
  right: 0;
}

#app.is-principal .hit {
  top: 0;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(10, 74, 60, 0.12);
  z-index: 9;
  pointer-events: none;
}

.progress > i {
  display: block;
  height: 100%;
  background: var(--green);
  width: 0;
}

.counter {
  position: absolute;
  right: 28px;
  bottom: 16px;
  z-index: 9;
  font-size: 13px;
  font-weight: 600;
  color: rgba(10, 74, 60, 0.45);
  pointer-events: none;
}

.slide.is-dark .counter,
.stage:has(.slide.is-on.is-dark) .counter {
  color: rgba(243, 240, 233, 0.42);
}

.phone {
  background: #0b141a;
  border-radius: 46px;
  padding: 13px;
  box-shadow: 0 44px 100px rgba(10, 74, 60, 0.3);
}

.phone-inner {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #e4ddd4;
}

.phone-head {
  background: var(--green);
  color: #fff;
  padding: 18px 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.phone-thread {
  flex: 1;
  padding: 18px 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  overflow: hidden;
  background-color: #e5ddd3;
  background-image: url("./wa-pattern.png");
  background-repeat: repeat;
}

.bubble {
  max-width: 82%;
  padding: 10px 13px;
  font-size: 17px;
  line-height: 1.35;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
  animation: pop 0.26s ease;
  color: #0b1a12;
}

.bubble-out {
  align-self: flex-end;
  background: #dcf8c6;
  border-radius: 15px 15px 4px 15px;
}

.bubble-in {
  align-self: flex-start;
  background: #fff;
  border-radius: 15px 15px 15px 4px;
}

.bubble-confirm {
  align-self: flex-start;
  max-width: 88%;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 14px 14px 14px 4px;
}

.bubble-done {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-2);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-900);
  box-shadow: none;
}

.bubble time {
  display: block;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.42);
  text-align: right;
  margin-top: 2px;
}

.typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 15px 15px 15px 4px;
  padding: 14px 16px;
  display: flex;
  gap: 5px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.09);
  animation: pop 0.2s ease;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa2a0;
  animation: blink 1.2s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.phone-composer {
  background: #f3f0ea;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-composer div {
  flex: 1;
  background: #fff;
  border-radius: 22px;
  padding: 11px 16px;
  color: #9aa;
  font-size: 15px;
}

.phone-composer span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 129, 105, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(0, 129, 105, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 129, 105, 0);
  }
}

@media (max-width: 900px) {
  .version-bar {
    gap: 10px;
    padding: 0 12px;
    font-size: 12px;
  }
  .version-bar .badge {
    display: none;
  }
}
